1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="dbus/dbus.h" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar GETTEXT_PACKAGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LT_CURRENT LT_REVISION LT_AGE 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP DBUS_BUILD_TESTS_TRUE DBUS_BUILD_TESTS_FALSE R_DYNAMIC_LDFLAG SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DBUS_GCOV_ENABLED_TRUE DBUS_GCOV_ENABLED_FALSE DBUS_INT64_TYPE DBUS_INT64_CONSTANT DBUS_UINT64_CONSTANT DBUS_HAVE_INT64 DBUS_INT32_TYPE DBUS_INT16_TYPE DBUS_PATH_OR_ABSTRACT PKG_CONFIG LIBXML_CFLAGS LIBXML_LIBS DBUS_USE_EXPAT_TRUE DBUS_USE_EXPAT_FALSE DBUS_USE_LIBXML_TRUE DBUS_USE_LIBXML_FALSE HAVE_SELINUX_TRUE HAVE_SELINUX_FALSE DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE DBUS_BUS_ENABLE_KQUEUE_TRUE DBUS_BUS_ENABLE_KQUEUE_FALSE HAVE_CONSOLE_OWNER_FILE_TRUE HAVE_CONSOLE_OWNER_FILE_FALSE DBUS_CLIENT_CFLAGS DBUS_CLIENT_LIBS DBUS_BUS_CFLAGS DBUS_BUS_LIBS DBUS_TEST_CFLAGS DBUS_TEST_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS DBUS_X_CFLAGS DBUS_X_LIBS DOXYGEN DBUS_DOXYGEN_DOCS_ENABLED_TRUE DBUS_DOXYGEN_DOCS_ENABLED_FALSE XMLTO DBUS_XML_DOCS_ENABLED_TRUE DBUS_XML_DOCS_ENABLED_FALSE EXPANDED_LOCALSTATEDIR EXPANDED_SYSCONFDIR EXPANDED_BINDIR EXPANDED_LIBDIR EXPANDED_DATADIR DBUS_INIT_SCRIPTS_RED_HAT_TRUE DBUS_INIT_SCRIPTS_RED_HAT_FALSE DBUS_INIT_SCRIPTS_SLACKWARE_TRUE DBUS_INIT_SCRIPTS_SLACKWARE_FALSE DBUS_SYSTEM_SOCKET DBUS_SYSTEM_BUS_DEFAULT_ADDRESS DBUS_SYSTEM_PID_FILE DBUS_CONSOLE_AUTH_DIR DBUS_CONSOLE_OWNER_FILE DBUS_USER DBUS_DATADIR DBUS_DAEMONDIR DBUS_BINDIR TEST_SERVICE_DIR TEST_SERVICE_BINARY TEST_SHELL_SERVICE_BINARY TEST_EXIT_BINARY TEST_SEGFAULT_BINARY TEST_SLEEP_FOREVER_BINARY TEST_BUS_BINARY TEST_SOCKET_DIR DBUS_SESSION_SOCKET_DIR LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CXX_set=${CXX+set} 924ac_env_CXX_value=$CXX 925ac_cv_env_CXX_set=${CXX+set} 926ac_cv_env_CXX_value=$CXX 927ac_env_CXXFLAGS_set=${CXXFLAGS+set} 928ac_env_CXXFLAGS_value=$CXXFLAGS 929ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 930ac_cv_env_CXXFLAGS_value=$CXXFLAGS 931ac_env_CPP_set=${CPP+set} 932ac_env_CPP_value=$CPP 933ac_cv_env_CPP_set=${CPP+set} 934ac_cv_env_CPP_value=$CPP 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013X features: 1014 --x-includes=DIR X include files are in DIR 1015 --x-libraries=DIR X library files are in DIR 1016 1017System types: 1018 --build=BUILD configure for building on BUILD [guessed] 1019 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1020 --target=TARGET configure for building compilers for TARGET [HOST] 1021_ACEOF 1022fi 1023 1024if test -n "$ac_init_help"; then 1025 1026 cat <<\_ACEOF 1027 1028Optional Features: 1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1031 --enable-maintainer-mode enable make rules and dependencies not useful 1032 (and sometimes confusing) to the casual installer 1033 --disable-dependency-tracking speeds up one-time build 1034 --enable-dependency-tracking do not reject slow dependency extractors 1035 --enable-tests enable unit test code 1036 --enable-ansi enable -ansi -pedantic gcc flags 1037 --enable-verbose-mode support verbose debug mode 1038 --enable-asserts include assertion checks 1039 --enable-checks include sanity checks on public API 1040 --enable-xml-docs build XML documentation (requires xmlto) 1041 --enable-doxygen-docs build DOXYGEN documentation (requires Doxygen) 1042 --enable-gcov compile with coverage profiling instrumentation (gcc 1043 only) 1044 --enable-abstract-sockets 1045 use abstract socket namespace (linux only) 1046 --enable-selinux build with SELinux support 1047 --enable-dnotify build with dnotify support (linux only) 1048 --enable-kqueue build with kqueue support 1049 --enable-console-owner-file 1050 enable console owner file 1051 --enable-shared[=PKGS] 1052 build shared libraries [default=yes] 1053 --enable-static[=PKGS] 1054 build static libraries [default=yes] 1055 --enable-fast-install[=PKGS] 1056 optimize for fast installation [default=yes] 1057 --disable-libtool-lock avoid locking (might break parallel builds) 1058 1059Optional Packages: 1060 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1061 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1062 --with-xml=libxml/expat XML library to use 1063 --with-init-scripts=redhat 1064 Style of init scripts to install 1065 --with-session-socket-dir=dirname 1066 Where to put sockets for the per-login-session 1067 message bus 1068 --with-test-socket-dir=dirname 1069 Where to put sockets for make check 1070 --with-system-pid-file=pidfile 1071 PID file for systemwide daemon 1072 --with-system-socket=filename 1073 UNIX domain socket for systemwide daemon 1074 --with-console-auth-dir=dirname 1075 directory to check for console ownerhip 1076 --with-console-owner-file=filename 1077 file whose owner determines current console owner 1078 --with-dbus-user=<user> User for running the DBUS daemon (messagebus) 1079 --with-dbus-daemondir=dirname 1080 Directory for installing the DBUS daemon 1081 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1082 --with-pic try to use only PIC/non-PIC objects [default=use 1083 both] 1084 --with-tags[=TAGS] 1085 include additional configurations [automatic] 1086 --with-x use the X Window System 1087 1088Some influential environment variables: 1089 CC C compiler command 1090 CFLAGS C compiler flags 1091 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1092 nonstandard directory <lib dir> 1093 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1094 headers in a nonstandard directory <include dir> 1095 CXX C++ compiler command 1096 CXXFLAGS C++ compiler flags 1097 CPP C preprocessor 1098 CXXCPP C++ preprocessor 1099 F77 Fortran 77 compiler command 1100 FFLAGS Fortran 77 compiler flags 1101 1102Use these variables to override the choices made by `configure' or to help 1103it to find libraries and programs with nonstandard names/locations. 1104 1105_ACEOF 1106fi 1107 1108if test "$ac_init_help" = "recursive"; then 1109 # If there are subdirs, report their specific --help. 1110 ac_popdir=`pwd` 1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1112 test -d $ac_dir || continue 1113 ac_builddir=. 1114 1115if test "$ac_dir" != .; then 1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1117 # A "../" for each directory in $ac_dir_suffix. 1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1119else 1120 ac_dir_suffix= ac_top_builddir= 1121fi 1122 1123case $srcdir in 1124 .) # No --srcdir option. We are building in place. 1125 ac_srcdir=. 1126 if test -z "$ac_top_builddir"; then 1127 ac_top_srcdir=. 1128 else 1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1130 fi ;; 1131 [\\/]* | ?:[\\/]* ) # Absolute path. 1132 ac_srcdir=$srcdir$ac_dir_suffix; 1133 ac_top_srcdir=$srcdir ;; 1134 *) # Relative path. 1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1136 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1137esac 1138 1139# Do not use `cd foo && pwd` to compute absolute paths, because 1140# the directories may not exist. 1141case `pwd` in 1142.) ac_abs_builddir="$ac_dir";; 1143*) 1144 case "$ac_dir" in 1145 .) ac_abs_builddir=`pwd`;; 1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1147 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1148 esac;; 1149esac 1150case $ac_abs_builddir in 1151.) ac_abs_top_builddir=${ac_top_builddir}.;; 1152*) 1153 case ${ac_top_builddir}. in 1154 .) ac_abs_top_builddir=$ac_abs_builddir;; 1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1157 esac;; 1158esac 1159case $ac_abs_builddir in 1160.) ac_abs_srcdir=$ac_srcdir;; 1161*) 1162 case $ac_srcdir in 1163 .) ac_abs_srcdir=$ac_abs_builddir;; 1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1166 esac;; 1167esac 1168case $ac_abs_builddir in 1169.) ac_abs_top_srcdir=$ac_top_srcdir;; 1170*) 1171 case $ac_top_srcdir in 1172 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1175 esac;; 1176esac 1177 1178 cd $ac_dir 1179 # Check for guested configure; otherwise get Cygnus style configure. 1180 if test -f $ac_srcdir/configure.gnu; then 1181 echo 1182 $SHELL $ac_srcdir/configure.gnu --help=recursive 1183 elif test -f $ac_srcdir/configure; then 1184 echo 1185 $SHELL $ac_srcdir/configure --help=recursive 1186 elif test -f $ac_srcdir/configure.ac || 1187 test -f $ac_srcdir/configure.in; then 1188 echo 1189 $ac_configure --help 1190 else 1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1192 fi 1193 cd $ac_popdir 1194 done 1195fi 1196 1197test -n "$ac_init_help" && exit 0 1198if $ac_init_version; then 1199 cat <<\_ACEOF 1200 1201Copyright (C) 2003 Free Software Foundation, Inc. 1202This configure script is free software; the Free Software Foundation 1203gives unlimited permission to copy, distribute and modify it. 1204_ACEOF 1205 exit 0 1206fi 1207exec 5>config.log 1208cat >&5 <<_ACEOF 1209This file contains any messages produced by compilers while 1210running configure, to aid debugging if configure makes a mistake. 1211 1212It was created by $as_me, which was 1213generated by GNU Autoconf 2.59. Invocation command line was 1214 1215 $ $0 $@ 1216 1217_ACEOF 1218{ 1219cat <<_ASUNAME 1220## --------- ## 1221## Platform. ## 1222## --------- ## 1223 1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1225uname -m = `(uname -m) 2>/dev/null || echo unknown` 1226uname -r = `(uname -r) 2>/dev/null || echo unknown` 1227uname -s = `(uname -s) 2>/dev/null || echo unknown` 1228uname -v = `(uname -v) 2>/dev/null || echo unknown` 1229 1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1232 1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1240 1241_ASUNAME 1242 1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1244for as_dir in $PATH 1245do 1246 IFS=$as_save_IFS 1247 test -z "$as_dir" && as_dir=. 1248 echo "PATH: $as_dir" 1249done 1250 1251} >&5 1252 1253cat >&5 <<_ACEOF 1254 1255 1256## ----------- ## 1257## Core tests. ## 1258## ----------- ## 1259 1260_ACEOF 1261 1262 1263# Keep a trace of the command line. 1264# Strip out --no-create and --no-recursion so they do not pile up. 1265# Strip out --silent because we don't want to record it for future runs. 1266# Also quote any args containing shell meta-characters. 1267# Make two passes to allow for proper duplicate-argument suppression. 1268ac_configure_args= 1269ac_configure_args0= 1270ac_configure_args1= 1271ac_sep= 1272ac_must_keep_next=false 1273for ac_pass in 1 2 1274do 1275 for ac_arg 1276 do 1277 case $ac_arg in 1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1280 | -silent | --silent | --silen | --sile | --sil) 1281 continue ;; 1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1284 esac 1285 case $ac_pass in 1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1287 2) 1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1289 if test $ac_must_keep_next = true; then 1290 ac_must_keep_next=false # Got value, back to normal. 1291 else 1292 case $ac_arg in 1293 *=* | --config-cache | -C | -disable-* | --disable-* \ 1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1296 | -with-* | --with-* | -without-* | --without-* | --x) 1297 case "$ac_configure_args0 " in 1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1299 esac 1300 ;; 1301 -* ) ac_must_keep_next=true ;; 1302 esac 1303 fi 1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1305 # Get rid of the leading space. 1306 ac_sep=" " 1307 ;; 1308 esac 1309 done 1310done 1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1313 1314# When interrupted or exit'd, cleanup temporary files, and complete 1315# config.log. We remove comments because anyway the quotes in there 1316# would cause problems or look ugly. 1317# WARNING: Be sure not to use single quotes in there, as some shells, 1318# such as our DU 5.0 friend, will then `close' the trap. 1319trap 'exit_status=$? 1320 # Save into config.log some information that might help in debugging. 1321 { 1322 echo 1323 1324 cat <<\_ASBOX 1325## ---------------- ## 1326## Cache variables. ## 1327## ---------------- ## 1328_ASBOX 1329 echo 1330 # The following way of writing the cache mishandles newlines in values, 1331{ 1332 (set) 2>&1 | 1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1334 *ac_space=\ *) 1335 sed -n \ 1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1338 ;; 1339 *) 1340 sed -n \ 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1342 ;; 1343 esac; 1344} 1345 echo 1346 1347 cat <<\_ASBOX 1348## ----------------- ## 1349## Output variables. ## 1350## ----------------- ## 1351_ASBOX 1352 echo 1353 for ac_var in $ac_subst_vars 1354 do 1355 eval ac_val=$`echo $ac_var` 1356 echo "$ac_var='"'"'$ac_val'"'"'" 1357 done | sort 1358 echo 1359 1360 if test -n "$ac_subst_files"; then 1361 cat <<\_ASBOX 1362## ------------- ## 1363## Output files. ## 1364## ------------- ## 1365_ASBOX 1366 echo 1367 for ac_var in $ac_subst_files 1368 do 1369 eval ac_val=$`echo $ac_var` 1370 echo "$ac_var='"'"'$ac_val'"'"'" 1371 done | sort 1372 echo 1373 fi 1374 1375 if test -s confdefs.h; then 1376 cat <<\_ASBOX 1377## ----------- ## 1378## confdefs.h. ## 1379## ----------- ## 1380_ASBOX 1381 echo 1382 sed "/^$/d" confdefs.h | sort 1383 echo 1384 fi 1385 test "$ac_signal" != 0 && 1386 echo "$as_me: caught signal $ac_signal" 1387 echo "$as_me: exit $exit_status" 1388 } >&5 1389 rm -f core *.core && 1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1391 exit $exit_status 1392 ' 0 1393for ac_signal in 1 2 13 15; do 1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1395done 1396ac_signal=0 1397 1398# confdefs.h avoids OS command line length limits that DEFS can exceed. 1399rm -rf conftest* confdefs.h 1400# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1401echo >confdefs.h 1402 1403# Predefined preprocessor variables. 1404 1405cat >>confdefs.h <<_ACEOF 1406#define PACKAGE_NAME "$PACKAGE_NAME" 1407_ACEOF 1408 1409 1410cat >>confdefs.h <<_ACEOF 1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1412_ACEOF 1413 1414 1415cat >>confdefs.h <<_ACEOF 1416#define PACKAGE_VERSION "$PACKAGE_VERSION" 1417_ACEOF 1418 1419 1420cat >>confdefs.h <<_ACEOF 1421#define PACKAGE_STRING "$PACKAGE_STRING" 1422_ACEOF 1423 1424 1425cat >>confdefs.h <<_ACEOF 1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1427_ACEOF 1428 1429 1430# Let the site file select an alternate cache file if it wants to. 1431# Prefer explicitly selected file to automatically selected ones. 1432if test -z "$CONFIG_SITE"; then 1433 if test "x$prefix" != xNONE; then 1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1435 else 1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1437 fi 1438fi 1439for ac_site_file in $CONFIG_SITE; do 1440 if test -r "$ac_site_file"; then 1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1442echo "$as_me: loading site script $ac_site_file" >&6;} 1443 sed 's/^/| /' "$ac_site_file" >&5 1444 . "$ac_site_file" 1445 fi 1446done 1447 1448if test -r "$cache_file"; then 1449 # Some versions of bash will fail to source /dev/null (special 1450 # files actually), so we avoid doing that. 1451 if test -f "$cache_file"; then 1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1453echo "$as_me: loading cache $cache_file" >&6;} 1454 case $cache_file in 1455 [\\/]* | ?:[\\/]* ) . $cache_file;; 1456 *) . ./$cache_file;; 1457 esac 1458 fi 1459else 1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1461echo "$as_me: creating cache $cache_file" >&6;} 1462 >$cache_file 1463fi 1464 1465# Check that the precious variables saved in the cache have kept the same 1466# value. 1467ac_cache_corrupted=false 1468for ac_var in `(set) 2>&1 | 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1471 eval ac_new_set=\$ac_env_${ac_var}_set 1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1473 eval ac_new_val="\$ac_env_${ac_var}_value" 1474 case $ac_old_set,$ac_new_set in 1475 set,) 1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1478 ac_cache_corrupted=: ;; 1479 ,set) 1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1482 ac_cache_corrupted=: ;; 1483 ,);; 1484 *) 1485 if test "x$ac_old_val" != "x$ac_new_val"; then 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1489echo "$as_me: former value: $ac_old_val" >&2;} 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1491echo "$as_me: current value: $ac_new_val" >&2;} 1492 ac_cache_corrupted=: 1493 fi;; 1494 esac 1495 # Pass precious variables to config.status. 1496 if test "$ac_new_set" = set; then 1497 case $ac_new_val in 1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1500 *) ac_arg=$ac_var=$ac_new_val ;; 1501 esac 1502 case " $ac_configure_args " in 1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1505 esac 1506 fi 1507done 1508if $ac_cache_corrupted; then 1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1510echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1513 { (exit 1); exit 1; }; } 1514fi 1515 1516ac_ext=c 1517ac_cpp='$CPP $CPPFLAGS' 1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1520ac_compiler_gnu=$ac_cv_c_compiler_gnu 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541ac_aux_dir= 1542for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1543 if test -f $ac_dir/install-sh; then 1544 ac_aux_dir=$ac_dir 1545 ac_install_sh="$ac_aux_dir/install-sh -c" 1546 break 1547 elif test -f $ac_dir/install.sh; then 1548 ac_aux_dir=$ac_dir 1549 ac_install_sh="$ac_aux_dir/install.sh -c" 1550 break 1551 elif test -f $ac_dir/shtool; then 1552 ac_aux_dir=$ac_dir 1553 ac_install_sh="$ac_aux_dir/shtool install -c" 1554 break 1555 fi 1556done 1557if test -z "$ac_aux_dir"; then 1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1559echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1560 { (exit 1); exit 1; }; } 1561fi 1562ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1563ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1564ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1565 1566# Make sure we can run config.sub. 1567$ac_config_sub sun4 >/dev/null 2>&1 || 1568 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1569echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1570 { (exit 1); exit 1; }; } 1571 1572echo "$as_me:$LINENO: checking build system type" >&5 1573echo $ECHO_N "checking build system type... $ECHO_C" >&6 1574if test "${ac_cv_build+set}" = set; then 1575 echo $ECHO_N "(cached) $ECHO_C" >&6 1576else 1577 ac_cv_build_alias=$build_alias 1578test -z "$ac_cv_build_alias" && 1579 ac_cv_build_alias=`$ac_config_guess` 1580test -z "$ac_cv_build_alias" && 1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1582echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1583 { (exit 1); exit 1; }; } 1584ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1586echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1587 { (exit 1); exit 1; }; } 1588 1589fi 1590echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1591echo "${ECHO_T}$ac_cv_build" >&6 1592build=$ac_cv_build 1593build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1594build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1595build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1596 1597 1598echo "$as_me:$LINENO: checking host system type" >&5 1599echo $ECHO_N "checking host system type... $ECHO_C" >&6 1600if test "${ac_cv_host+set}" = set; then 1601 echo $ECHO_N "(cached) $ECHO_C" >&6 1602else 1603 ac_cv_host_alias=$host_alias 1604test -z "$ac_cv_host_alias" && 1605 ac_cv_host_alias=$ac_cv_build_alias 1606ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1608echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1609 { (exit 1); exit 1; }; } 1610 1611fi 1612echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1613echo "${ECHO_T}$ac_cv_host" >&6 1614host=$ac_cv_host 1615host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1616host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1617host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1618 1619 1620echo "$as_me:$LINENO: checking target system type" >&5 1621echo $ECHO_N "checking target system type... $ECHO_C" >&6 1622if test "${ac_cv_target+set}" = set; then 1623 echo $ECHO_N "(cached) $ECHO_C" >&6 1624else 1625 ac_cv_target_alias=$target_alias 1626test "x$ac_cv_target_alias" = "x" && 1627 ac_cv_target_alias=$ac_cv_host_alias 1628ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1630echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1631 { (exit 1); exit 1; }; } 1632 1633fi 1634echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1635echo "${ECHO_T}$ac_cv_target" >&6 1636target=$ac_cv_target 1637target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1638target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1639target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1640 1641 1642# The aliases save the names the user supplied, while $host etc. 1643# will get canonicalized. 1644test -n "$target_alias" && 1645 test "$program_prefix$program_suffix$program_transform_name" = \ 1646 NONENONEs,x,x, && 1647 program_prefix=${target_alias}- 1648 1649am__api_version="1.9" 1650# Find a good install program. We prefer a C program (faster), 1651# so one script is as good as another. But avoid the broken or 1652# incompatible versions: 1653# SysV /etc/install, /usr/sbin/install 1654# SunOS /usr/etc/install 1655# IRIX /sbin/install 1656# AIX /bin/install 1657# AmigaOS /C/install, which installs bootblocks on floppy discs 1658# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1659# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1660# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1661# OS/2's system install, which has a completely different semantic 1662# ./install, which can be erroneously created by make from ./install.sh. 1663echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1664echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1665if test -z "$INSTALL"; then 1666if test "${ac_cv_path_install+set}" = set; then 1667 echo $ECHO_N "(cached) $ECHO_C" >&6 1668else 1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1670for as_dir in $PATH 1671do 1672 IFS=$as_save_IFS 1673 test -z "$as_dir" && as_dir=. 1674 # Account for people who put trailing slashes in PATH elements. 1675case $as_dir/ in 1676 ./ | .// | /cC/* | \ 1677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1678 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1679 /usr/ucb/* ) ;; 1680 *) 1681 # OSF1 and SCO ODT 3.0 have their own names for install. 1682 # Don't use installbsd from OSF since it installs stuff as root 1683 # by default. 1684 for ac_prog in ginstall scoinst install; do 1685 for ac_exec_ext in '' $ac_executable_extensions; do 1686 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1687 if test $ac_prog = install && 1688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1689 # AIX install. It has an incompatible calling convention. 1690 : 1691 elif test $ac_prog = install && 1692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1693 # program-specific install script used by HP pwplus--don't use. 1694 : 1695 else 1696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1697 break 3 1698 fi 1699 fi 1700 done 1701 done 1702 ;; 1703esac 1704done 1705 1706 1707fi 1708 if test "${ac_cv_path_install+set}" = set; then 1709 INSTALL=$ac_cv_path_install 1710 else 1711 # As a last resort, use the slow shell script. We don't cache a 1712 # path for INSTALL within a source directory, because that will 1713 # break other packages using the cache if that directory is 1714 # removed, or if the path is relative. 1715 INSTALL=$ac_install_sh 1716 fi 1717fi 1718echo "$as_me:$LINENO: result: $INSTALL" >&5 1719echo "${ECHO_T}$INSTALL" >&6 1720 1721# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1722# It thinks the first close brace ends the variable substitution. 1723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1724 1725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1726 1727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1728 1729echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1730echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1731# Just in case 1732sleep 1 1733echo timestamp > conftest.file 1734# Do `set' in a subshell so we don't clobber the current shell's 1735# arguments. Must try -L first in case configure is actually a 1736# symlink; some systems play weird games with the mod time of symlinks 1737# (eg FreeBSD returns the mod time of the symlink's containing 1738# directory). 1739if ( 1740 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1741 if test "$*" = "X"; then 1742 # -L didn't work. 1743 set X `ls -t $srcdir/configure conftest.file` 1744 fi 1745 rm -f conftest.file 1746 if test "$*" != "X $srcdir/configure conftest.file" \ 1747 && test "$*" != "X conftest.file $srcdir/configure"; then 1748 1749 # If neither matched, then we have a broken ls. This can happen 1750 # if, for instance, CONFIG_SHELL is bash and it inherits a 1751 # broken ls alias from the environment. This has actually 1752 # happened. Such a system could not be considered "sane". 1753 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1754alias in your environment" >&5 1755echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1756alias in your environment" >&2;} 1757 { (exit 1); exit 1; }; } 1758 fi 1759 1760 test "$2" = conftest.file 1761 ) 1762then 1763 # Ok. 1764 : 1765else 1766 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1767Check your system clock" >&5 1768echo "$as_me: error: newly created file is older than distributed files! 1769Check your system clock" >&2;} 1770 { (exit 1); exit 1; }; } 1771fi 1772echo "$as_me:$LINENO: result: yes" >&5 1773echo "${ECHO_T}yes" >&6 1774test "$program_prefix" != NONE && 1775 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1776# Use a double $ so make ignores it. 1777test "$program_suffix" != NONE && 1778 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1779# Double any \ or $. echo might interpret backslashes. 1780# By default was `s,x,x', remove it if useless. 1781cat <<\_ACEOF >conftest.sed 1782s/[\\$]/&&/g;s/;s,x,x,$// 1783_ACEOF 1784program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1785rm conftest.sed 1786 1787# expand $ac_aux_dir to an absolute path 1788am_aux_dir=`cd $ac_aux_dir && pwd` 1789 1790test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1791# Use eval to expand $SHELL 1792if eval "$MISSING --run true"; then 1793 am_missing_run="$MISSING --run " 1794else 1795 am_missing_run= 1796 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1797echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1798fi 1799 1800if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1801 # We used to keeping the `.' as first argument, in order to 1802 # allow $(mkdir_p) to be used without argument. As in 1803 # $(mkdir_p) $(somedir) 1804 # where $(somedir) is conditionally defined. However this is wrong 1805 # for two reasons: 1806 # 1. if the package is installed by a user who cannot write `.' 1807 # make install will fail, 1808 # 2. the above comment should most certainly read 1809 # $(mkdir_p) $(DESTDIR)$(somedir) 1810 # so it does not work when $(somedir) is undefined and 1811 # $(DESTDIR) is not. 1812 # To support the latter case, we have to write 1813 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1814 # so the `.' trick is pointless. 1815 mkdir_p='mkdir -p --' 1816else 1817 # On NextStep and OpenStep, the `mkdir' command does not 1818 # recognize any option. It will interpret all options as 1819 # directories to create, and then abort because `.' already 1820 # exists. 1821 for d in ./-p ./--version; 1822 do 1823 test -d $d && rmdir $d 1824 done 1825 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1826 if test -f "$ac_aux_dir/mkinstalldirs"; then 1827 mkdir_p='$(mkinstalldirs)' 1828 else 1829 mkdir_p='$(install_sh) -d' 1830 fi 1831fi 1832 1833for ac_prog in gawk mawk nawk awk 1834do 1835 # Extract the first word of "$ac_prog", so it can be a program name with args. 1836set dummy $ac_prog; ac_word=$2 1837echo "$as_me:$LINENO: checking for $ac_word" >&5 1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1839if test "${ac_cv_prog_AWK+set}" = set; then 1840 echo $ECHO_N "(cached) $ECHO_C" >&6 1841else 1842 if test -n "$AWK"; then 1843 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1844else 1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1846for as_dir in $PATH 1847do 1848 IFS=$as_save_IFS 1849 test -z "$as_dir" && as_dir=. 1850 for ac_exec_ext in '' $ac_executable_extensions; do 1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1852 ac_cv_prog_AWK="$ac_prog" 1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1854 break 2 1855 fi 1856done 1857done 1858 1859fi 1860fi 1861AWK=$ac_cv_prog_AWK 1862if test -n "$AWK"; then 1863 echo "$as_me:$LINENO: result: $AWK" >&5 1864echo "${ECHO_T}$AWK" >&6 1865else 1866 echo "$as_me:$LINENO: result: no" >&5 1867echo "${ECHO_T}no" >&6 1868fi 1869 1870 test -n "$AWK" && break 1871done 1872 1873echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1874echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1875set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1876if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1877 echo $ECHO_N "(cached) $ECHO_C" >&6 1878else 1879 cat >conftest.make <<\_ACEOF 1880all: 1881 @echo 'ac_maketemp="$(MAKE)"' 1882_ACEOF 1883# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1884eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1885if test -n "$ac_maketemp"; then 1886 eval ac_cv_prog_make_${ac_make}_set=yes 1887else 1888 eval ac_cv_prog_make_${ac_make}_set=no 1889fi 1890rm -f conftest.make 1891fi 1892if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1893 echo "$as_me:$LINENO: result: yes" >&5 1894echo "${ECHO_T}yes" >&6 1895 SET_MAKE= 1896else 1897 echo "$as_me:$LINENO: result: no" >&5 1898echo "${ECHO_T}no" >&6 1899 SET_MAKE="MAKE=${MAKE-make}" 1900fi 1901 1902rm -rf .tst 2>/dev/null 1903mkdir .tst 2>/dev/null 1904if test -d .tst; then 1905 am__leading_dot=. 1906else 1907 am__leading_dot=_ 1908fi 1909rmdir .tst 2>/dev/null 1910 1911# test to see if srcdir already configured 1912if test "`cd $srcdir && pwd`" != "`pwd`" && 1913 test -f $srcdir/config.status; then 1914 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1915echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1916 { (exit 1); exit 1; }; } 1917fi 1918 1919# test whether we have cygpath 1920if test -z "$CYGPATH_W"; then 1921 if (cygpath --version) >/dev/null 2>/dev/null; then 1922 CYGPATH_W='cygpath -w' 1923 else 1924 CYGPATH_W=echo 1925 fi 1926fi 1927 1928 1929# Define the identity of the package. 1930 PACKAGE=dbus 1931 VERSION=1.0.2 1932 1933 1934cat >>confdefs.h <<_ACEOF 1935#define PACKAGE "$PACKAGE" 1936_ACEOF 1937 1938 1939cat >>confdefs.h <<_ACEOF 1940#define VERSION "$VERSION" 1941_ACEOF 1942 1943# Some tools Automake needs. 1944 1945ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1946 1947 1948AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1949 1950 1951AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1952 1953 1954AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1955 1956 1957MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1958 1959install_sh=${install_sh-"$am_aux_dir/install-sh"} 1960 1961# Installed binaries are usually stripped using `strip' when the user 1962# run `make install-strip'. However `strip' might not be the right 1963# tool to use in cross-compilation environments, therefore Automake 1964# will honor the `STRIP' environment variable to overrule this program. 1965if test "$cross_compiling" != no; then 1966 if test -n "$ac_tool_prefix"; then 1967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1968set dummy ${ac_tool_prefix}strip; ac_word=$2 1969echo "$as_me:$LINENO: checking for $ac_word" >&5 1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1971if test "${ac_cv_prog_STRIP+set}" = set; then 1972 echo $ECHO_N "(cached) $ECHO_C" >&6 1973else 1974 if test -n "$STRIP"; then 1975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1976else 1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978for as_dir in $PATH 1979do 1980 IFS=$as_save_IFS 1981 test -z "$as_dir" && as_dir=. 1982 for ac_exec_ext in '' $ac_executable_extensions; do 1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1984 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 break 2 1987 fi 1988done 1989done 1990 1991fi 1992fi 1993STRIP=$ac_cv_prog_STRIP 1994if test -n "$STRIP"; then 1995 echo "$as_me:$LINENO: result: $STRIP" >&5 1996echo "${ECHO_T}$STRIP" >&6 1997else 1998 echo "$as_me:$LINENO: result: no" >&5 1999echo "${ECHO_T}no" >&6 2000fi 2001 2002fi 2003if test -z "$ac_cv_prog_STRIP"; then 2004 ac_ct_STRIP=$STRIP 2005 # Extract the first word of "strip", so it can be a program name with args. 2006set dummy strip; ac_word=$2 2007echo "$as_me:$LINENO: checking for $ac_word" >&5 2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2009if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011else 2012 if test -n "$ac_ct_STRIP"; then 2013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2014else 2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016for as_dir in $PATH 2017do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 for ac_exec_ext in '' $ac_executable_extensions; do 2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2022 ac_cv_prog_ac_ct_STRIP="strip" 2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2024 break 2 2025 fi 2026done 2027done 2028 2029 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2030fi 2031fi 2032ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2033if test -n "$ac_ct_STRIP"; then 2034 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2035echo "${ECHO_T}$ac_ct_STRIP" >&6 2036else 2037 echo "$as_me:$LINENO: result: no" >&5 2038echo "${ECHO_T}no" >&6 2039fi 2040 2041 STRIP=$ac_ct_STRIP 2042else 2043 STRIP="$ac_cv_prog_STRIP" 2044fi 2045 2046fi 2047INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2048 2049# We need awk for the "check" target. The system "awk" is bad on 2050# some platforms. 2051# Always define AMTAR for backward compatibility. 2052 2053AMTAR=${AMTAR-"${am_missing_run}tar"} 2054 2055am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2056 2057 2058 2059 2060 2061 2062 ac_config_headers="$ac_config_headers config.h" 2063 2064 2065# Honor aclocal flags 2066ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" 2067 2068GETTEXT_PACKAGE=dbus-1 2069 2070 2071cat >>confdefs.h <<_ACEOF 2072#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 2073_ACEOF 2074 2075 2076 ## must come before we use the $USE_MAINTAINER_MODE variable later 2077echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2078echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 2079 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 2080if test "${enable_maintainer_mode+set}" = set; then 2081 enableval="$enable_maintainer_mode" 2082 USE_MAINTAINER_MODE=$enableval 2083else 2084 USE_MAINTAINER_MODE=no 2085fi; 2086 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2087echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 2088 2089 2090if test $USE_MAINTAINER_MODE = yes; then 2091 MAINTAINER_MODE_TRUE= 2092 MAINTAINER_MODE_FALSE='#' 2093else 2094 MAINTAINER_MODE_TRUE='#' 2095 MAINTAINER_MODE_FALSE= 2096fi 2097 2098 MAINT=$MAINTAINER_MODE_TRUE 2099 2100 2101 2102# libtool versioning - this applies to libdbus 2103# 2104# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details 2105# 2106 2107## increment if the interface has additions, changes, removals. 2108LT_CURRENT=5 2109 2110## increment any time the source changes; set to 2111## 0 if you increment CURRENT 2112LT_REVISION=0 2113 2114## increment if any interfaces have been added; set to 0 2115## if any interfaces have been changed or removed. removal has 2116## precedence over adding, so set to 0 if both happened. 2117LT_AGE=2 2118 2119 2120 2121 2122 2123 2124ac_ext=c 2125ac_cpp='$CPP $CPPFLAGS' 2126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2128ac_compiler_gnu=$ac_cv_c_compiler_gnu 2129if test -n "$ac_tool_prefix"; then 2130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2131set dummy ${ac_tool_prefix}gcc; ac_word=$2 2132echo "$as_me:$LINENO: checking for $ac_word" >&5 2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2134if test "${ac_cv_prog_CC+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136else 2137 if test -n "$CC"; then 2138 ac_cv_prog_CC="$CC" # Let the user override the test. 2139else 2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2141for as_dir in $PATH 2142do 2143 IFS=$as_save_IFS 2144 test -z "$as_dir" && as_dir=. 2145 for ac_exec_ext in '' $ac_executable_extensions; do 2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2147 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2149 break 2 2150 fi 2151done 2152done 2153 2154fi 2155fi 2156CC=$ac_cv_prog_CC 2157if test -n "$CC"; then 2158 echo "$as_me:$LINENO: result: $CC" >&5 2159echo "${ECHO_T}$CC" >&6 2160else 2161 echo "$as_me:$LINENO: result: no" >&5 2162echo "${ECHO_T}no" >&6 2163fi 2164 2165fi 2166if test -z "$ac_cv_prog_CC"; then 2167 ac_ct_CC=$CC 2168 # Extract the first word of "gcc", so it can be a program name with args. 2169set dummy gcc; ac_word=$2 2170echo "$as_me:$LINENO: checking for $ac_word" >&5 2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2172if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2173 echo $ECHO_N "(cached) $ECHO_C" >&6 2174else 2175 if test -n "$ac_ct_CC"; then 2176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2177else 2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2179for as_dir in $PATH 2180do 2181 IFS=$as_save_IFS 2182 test -z "$as_dir" && as_dir=. 2183 for ac_exec_ext in '' $ac_executable_extensions; do 2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2185 ac_cv_prog_ac_ct_CC="gcc" 2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2187 break 2 2188 fi 2189done 2190done 2191 2192fi 2193fi 2194ac_ct_CC=$ac_cv_prog_ac_ct_CC 2195if test -n "$ac_ct_CC"; then 2196 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2197echo "${ECHO_T}$ac_ct_CC" >&6 2198else 2199 echo "$as_me:$LINENO: result: no" >&5 2200echo "${ECHO_T}no" >&6 2201fi 2202 2203 CC=$ac_ct_CC 2204else 2205 CC="$ac_cv_prog_CC" 2206fi 2207 2208if test -z "$CC"; then 2209 if test -n "$ac_tool_prefix"; then 2210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2211set dummy ${ac_tool_prefix}cc; ac_word=$2 2212echo "$as_me:$LINENO: checking for $ac_word" >&5 2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2214if test "${ac_cv_prog_CC+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216else 2217 if test -n "$CC"; then 2218 ac_cv_prog_CC="$CC" # Let the user override the test. 2219else 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 for ac_exec_ext in '' $ac_executable_extensions; do 2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2227 ac_cv_prog_CC="${ac_tool_prefix}cc" 2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2229 break 2 2230 fi 2231done 2232done 2233 2234fi 2235fi 2236CC=$ac_cv_prog_CC 2237if test -n "$CC"; then 2238 echo "$as_me:$LINENO: result: $CC" >&5 2239echo "${ECHO_T}$CC" >&6 2240else 2241 echo "$as_me:$LINENO: result: no" >&5 2242echo "${ECHO_T}no" >&6 2243fi 2244 2245fi 2246if test -z "$ac_cv_prog_CC"; then 2247 ac_ct_CC=$CC 2248 # Extract the first word of "cc", so it can be a program name with args. 2249set dummy cc; ac_word=$2 2250echo "$as_me:$LINENO: checking for $ac_word" >&5 2251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 if test -n "$ac_ct_CC"; then 2256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2257else 2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 for ac_exec_ext in '' $ac_executable_extensions; do 2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2265 ac_cv_prog_ac_ct_CC="cc" 2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2267 break 2 2268 fi 2269done 2270done 2271 2272fi 2273fi 2274ac_ct_CC=$ac_cv_prog_ac_ct_CC 2275if test -n "$ac_ct_CC"; then 2276 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2277echo "${ECHO_T}$ac_ct_CC" >&6 2278else 2279 echo "$as_me:$LINENO: result: no" >&5 2280echo "${ECHO_T}no" >&6 2281fi 2282 2283 CC=$ac_ct_CC 2284else 2285 CC="$ac_cv_prog_CC" 2286fi 2287 2288fi 2289if test -z "$CC"; then 2290 # Extract the first word of "cc", so it can be a program name with args. 2291set dummy cc; ac_word=$2 2292echo "$as_me:$LINENO: checking for $ac_word" >&5 2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2294if test "${ac_cv_prog_CC+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 if test -n "$CC"; then 2298 ac_cv_prog_CC="$CC" # Let the user override the test. 2299else 2300 ac_prog_rejected=no 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 for ac_exec_ext in '' $ac_executable_extensions; do 2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2309 ac_prog_rejected=yes 2310 continue 2311 fi 2312 ac_cv_prog_CC="cc" 2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2314 break 2 2315 fi 2316done 2317done 2318 2319if test $ac_prog_rejected = yes; then 2320 # We found a bogon in the path, so make sure we never use it. 2321 set dummy $ac_cv_prog_CC 2322 shift 2323 if test $# != 0; then 2324 # We chose a different compiler from the bogus one. 2325 # However, it has the same basename, so the bogon will be chosen 2326 # first if we set CC to just the basename; use the full file name. 2327 shift 2328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2329 fi 2330fi 2331fi 2332fi 2333CC=$ac_cv_prog_CC 2334if test -n "$CC"; then 2335 echo "$as_me:$LINENO: result: $CC" >&5 2336echo "${ECHO_T}$CC" >&6 2337else 2338 echo "$as_me:$LINENO: result: no" >&5 2339echo "${ECHO_T}no" >&6 2340fi 2341 2342fi 2343if test -z "$CC"; then 2344 if test -n "$ac_tool_prefix"; then 2345 for ac_prog in cl 2346 do 2347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2348set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2349echo "$as_me:$LINENO: checking for $ac_word" >&5 2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2351if test "${ac_cv_prog_CC+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353else 2354 if test -n "$CC"; then 2355 ac_cv_prog_CC="$CC" # Let the user override the test. 2356else 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2364 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368done 2369done 2370 2371fi 2372fi 2373CC=$ac_cv_prog_CC 2374if test -n "$CC"; then 2375 echo "$as_me:$LINENO: result: $CC" >&5 2376echo "${ECHO_T}$CC" >&6 2377else 2378 echo "$as_me:$LINENO: result: no" >&5 2379echo "${ECHO_T}no" >&6 2380fi 2381 2382 test -n "$CC" && break 2383 done 2384fi 2385if test -z "$CC"; then 2386 ac_ct_CC=$CC 2387 for ac_prog in cl 2388do 2389 # Extract the first word of "$ac_prog", so it can be a program name with args. 2390set dummy $ac_prog; ac_word=$2 2391echo "$as_me:$LINENO: checking for $ac_word" >&5 2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2393if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 if test -n "$ac_ct_CC"; then 2397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2398else 2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2406 ac_cv_prog_ac_ct_CC="$ac_prog" 2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410done 2411done 2412 2413fi 2414fi 2415ac_ct_CC=$ac_cv_prog_ac_ct_CC 2416if test -n "$ac_ct_CC"; then 2417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2418echo "${ECHO_T}$ac_ct_CC" >&6 2419else 2420 echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6 2422fi 2423 2424 test -n "$ac_ct_CC" && break 2425done 2426 2427 CC=$ac_ct_CC 2428fi 2429 2430fi 2431 2432 2433test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2434See \`config.log' for more details." >&5 2435echo "$as_me: error: no acceptable C compiler found in \$PATH 2436See \`config.log' for more details." >&2;} 2437 { (exit 1); exit 1; }; } 2438 2439# Provide some information about the compiler. 2440echo "$as_me:$LINENO:" \ 2441 "checking for C compiler version" >&5 2442ac_compiler=`set X $ac_compile; echo $2` 2443{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2444 (eval $ac_compiler --version </dev/null >&5) 2>&5 2445 ac_status=$? 2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2447 (exit $ac_status); } 2448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2449 (eval $ac_compiler -v </dev/null >&5) 2>&5 2450 ac_status=$? 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2452 (exit $ac_status); } 2453{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2454 (eval $ac_compiler -V </dev/null >&5) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); } 2458 2459cat >conftest.$ac_ext <<_ACEOF 2460/* confdefs.h. */ 2461_ACEOF 2462cat confdefs.h >>conftest.$ac_ext 2463cat >>conftest.$ac_ext <<_ACEOF 2464/* end confdefs.h. */ 2465 2466int 2467main () 2468{ 2469 2470 ; 2471 return 0; 2472} 2473_ACEOF 2474ac_clean_files_save=$ac_clean_files 2475ac_clean_files="$ac_clean_files a.out a.exe b.out" 2476# Try to create an executable without -o first, disregard a.out. 2477# It will help us diagnose broken compilers, and finding out an intuition 2478# of exeext. 2479echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2480echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2481ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2482if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2483 (eval $ac_link_default) 2>&5 2484 ac_status=$? 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); }; then 2487 # Find the output, starting from the most likely. This scheme is 2488# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2489# resort. 2490 2491# Be careful to initialize this variable, since it used to be cached. 2492# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2493ac_cv_exeext= 2494# b.out is created by i960 compilers. 2495for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2496do 2497 test -f "$ac_file" || continue 2498 case $ac_file in 2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2500 ;; 2501 conftest.$ac_ext ) 2502 # This is the source file. 2503 ;; 2504 [ab].out ) 2505 # We found the default executable, but exeext='' is most 2506 # certainly right. 2507 break;; 2508 *.* ) 2509 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2510 # FIXME: I believe we export ac_cv_exeext for Libtool, 2511 # but it would be cool to find out if it's true. Does anybody 2512 # maintain Libtool? --akim. 2513 export ac_cv_exeext 2514 break;; 2515 * ) 2516 break;; 2517 esac 2518done 2519else 2520 echo "$as_me: failed program was:" >&5 2521sed 's/^/| /' conftest.$ac_ext >&5 2522 2523{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2524See \`config.log' for more details." >&5 2525echo "$as_me: error: C compiler cannot create executables 2526See \`config.log' for more details." >&2;} 2527 { (exit 77); exit 77; }; } 2528fi 2529 2530ac_exeext=$ac_cv_exeext 2531echo "$as_me:$LINENO: result: $ac_file" >&5 2532echo "${ECHO_T}$ac_file" >&6 2533 2534# Check the compiler produces executables we can run. If not, either 2535# the compiler is broken, or we cross compile. 2536echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2537echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2538# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2539# If not cross compiling, check that we can run a simple program. 2540if test "$cross_compiling" != yes; then 2541 if { ac_try='./$ac_file' 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2543 (eval $ac_try) 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); }; }; then 2547 cross_compiling=no 2548 else 2549 if test "$cross_compiling" = maybe; then 2550 cross_compiling=yes 2551 else 2552 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2553If you meant to cross compile, use \`--host'. 2554See \`config.log' for more details." >&5 2555echo "$as_me: error: cannot run C compiled programs. 2556If you meant to cross compile, use \`--host'. 2557See \`config.log' for more details." >&2;} 2558 { (exit 1); exit 1; }; } 2559 fi 2560 fi 2561fi 2562echo "$as_me:$LINENO: result: yes" >&5 2563echo "${ECHO_T}yes" >&6 2564 2565rm -f a.out a.exe conftest$ac_cv_exeext b.out 2566ac_clean_files=$ac_clean_files_save 2567# Check the compiler produces executables we can run. If not, either 2568# the compiler is broken, or we cross compile. 2569echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2570echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2571echo "$as_me:$LINENO: result: $cross_compiling" >&5 2572echo "${ECHO_T}$cross_compiling" >&6 2573 2574echo "$as_me:$LINENO: checking for suffix of executables" >&5 2575echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2577 (eval $ac_link) 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; then 2581 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2582# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2583# work properly (i.e., refer to `conftest.exe'), while it won't with 2584# `rm'. 2585for ac_file in conftest.exe conftest conftest.*; do 2586 test -f "$ac_file" || continue 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2590 export ac_cv_exeext 2591 break;; 2592 * ) break;; 2593 esac 2594done 2595else 2596 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2597See \`config.log' for more details." >&5 2598echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2599See \`config.log' for more details." >&2;} 2600 { (exit 1); exit 1; }; } 2601fi 2602 2603rm -f conftest$ac_cv_exeext 2604echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2605echo "${ECHO_T}$ac_cv_exeext" >&6 2606 2607rm -f conftest.$ac_ext 2608EXEEXT=$ac_cv_exeext 2609ac_exeext=$EXEEXT 2610echo "$as_me:$LINENO: checking for suffix of object files" >&5 2611echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2612if test "${ac_cv_objext+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614else 2615 cat >conftest.$ac_ext <<_ACEOF 2616/* confdefs.h. */ 2617_ACEOF 2618cat confdefs.h >>conftest.$ac_ext 2619cat >>conftest.$ac_ext <<_ACEOF 2620/* end confdefs.h. */ 2621 2622int 2623main () 2624{ 2625 2626 ; 2627 return 0; 2628} 2629_ACEOF 2630rm -f conftest.o conftest.obj 2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2632 (eval $ac_compile) 2>&5 2633 ac_status=$? 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); }; then 2636 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2637 case $ac_file in 2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2640 break;; 2641 esac 2642done 2643else 2644 echo "$as_me: failed program was:" >&5 2645sed 's/^/| /' conftest.$ac_ext >&5 2646 2647{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2648See \`config.log' for more details." >&5 2649echo "$as_me: error: cannot compute suffix of object files: cannot compile 2650See \`config.log' for more details." >&2;} 2651 { (exit 1); exit 1; }; } 2652fi 2653 2654rm -f conftest.$ac_cv_objext conftest.$ac_ext 2655fi 2656echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2657echo "${ECHO_T}$ac_cv_objext" >&6 2658OBJEXT=$ac_cv_objext 2659ac_objext=$OBJEXT 2660echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2661echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2662if test "${ac_cv_c_compiler_gnu+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664else 2665 cat >conftest.$ac_ext <<_ACEOF 2666/* confdefs.h. */ 2667_ACEOF 2668cat confdefs.h >>conftest.$ac_ext 2669cat >>conftest.$ac_ext <<_ACEOF 2670/* end confdefs.h. */ 2671 2672int 2673main () 2674{ 2675#ifndef __GNUC__ 2676 choke me 2677#endif 2678 2679 ; 2680 return 0; 2681} 2682_ACEOF 2683rm -f conftest.$ac_objext 2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2685 (eval $ac_compile) 2>conftest.er1 2686 ac_status=$? 2687 grep -v '^ *+' conftest.er1 >conftest.err 2688 rm -f conftest.er1 2689 cat conftest.err >&5 2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2691 (exit $ac_status); } && 2692 { ac_try='test -z "$ac_c_werror_flag" 2693 || test ! -s conftest.err' 2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2695 (eval $ac_try) 2>&5 2696 ac_status=$? 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); }; } && 2699 { ac_try='test -s conftest.$ac_objext' 2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2701 (eval $ac_try) 2>&5 2702 ac_status=$? 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); }; }; then 2705 ac_compiler_gnu=yes 2706else 2707 echo "$as_me: failed program was:" >&5 2708sed 's/^/| /' conftest.$ac_ext >&5 2709 2710ac_compiler_gnu=no 2711fi 2712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2713ac_cv_c_compiler_gnu=$ac_compiler_gnu 2714 2715fi 2716echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2717echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2718GCC=`test $ac_compiler_gnu = yes && echo yes` 2719ac_test_CFLAGS=${CFLAGS+set} 2720ac_save_CFLAGS=$CFLAGS 2721CFLAGS="-g" 2722echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2723echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2724if test "${ac_cv_prog_cc_g+set}" = set; then 2725 echo $ECHO_N "(cached) $ECHO_C" >&6 2726else 2727 cat >conftest.$ac_ext <<_ACEOF 2728/* confdefs.h. */ 2729_ACEOF 2730cat confdefs.h >>conftest.$ac_ext 2731cat >>conftest.$ac_ext <<_ACEOF 2732/* end confdefs.h. */ 2733 2734int 2735main () 2736{ 2737 2738 ; 2739 return 0; 2740} 2741_ACEOF 2742rm -f conftest.$ac_objext 2743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2744 (eval $ac_compile) 2>conftest.er1 2745 ac_status=$? 2746 grep -v '^ *+' conftest.er1 >conftest.err 2747 rm -f conftest.er1 2748 cat conftest.err >&5 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } && 2751 { ac_try='test -z "$ac_c_werror_flag" 2752 || test ! -s conftest.err' 2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2754 (eval $ac_try) 2>&5 2755 ac_status=$? 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); }; } && 2758 { ac_try='test -s conftest.$ac_objext' 2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2760 (eval $ac_try) 2>&5 2761 ac_status=$? 2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2763 (exit $ac_status); }; }; then 2764 ac_cv_prog_cc_g=yes 2765else 2766 echo "$as_me: failed program was:" >&5 2767sed 's/^/| /' conftest.$ac_ext >&5 2768 2769ac_cv_prog_cc_g=no 2770fi 2771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2772fi 2773echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2774echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2775if test "$ac_test_CFLAGS" = set; then 2776 CFLAGS=$ac_save_CFLAGS 2777elif test $ac_cv_prog_cc_g = yes; then 2778 if test "$GCC" = yes; then 2779 CFLAGS="-g -O2" 2780 else 2781 CFLAGS="-g" 2782 fi 2783else 2784 if test "$GCC" = yes; then 2785 CFLAGS="-O2" 2786 else 2787 CFLAGS= 2788 fi 2789fi 2790echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2791echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2792if test "${ac_cv_prog_cc_stdc+set}" = set; then 2793 echo $ECHO_N "(cached) $ECHO_C" >&6 2794else 2795 ac_cv_prog_cc_stdc=no 2796ac_save_CC=$CC 2797cat >conftest.$ac_ext <<_ACEOF 2798/* confdefs.h. */ 2799_ACEOF 2800cat confdefs.h >>conftest.$ac_ext 2801cat >>conftest.$ac_ext <<_ACEOF 2802/* end confdefs.h. */ 2803#include <stdarg.h> 2804#include <stdio.h> 2805#include <sys/types.h> 2806#include <sys/stat.h> 2807/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2808struct buf { int x; }; 2809FILE * (*rcsopen) (struct buf *, struct stat *, int); 2810static char *e (p, i) 2811 char **p; 2812 int i; 2813{ 2814 return p[i]; 2815} 2816static char *f (char * (*g) (char **, int), char **p, ...) 2817{ 2818 char *s; 2819 va_list v; 2820 va_start (v,p); 2821 s = g (p, va_arg (v,int)); 2822 va_end (v); 2823 return s; 2824} 2825 2826/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2827 function prototypes and stuff, but not '\xHH' hex character constants. 2828 These don't provoke an error unfortunately, instead are silently treated 2829 as 'x'. The following induces an error, until -std1 is added to get 2830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2831 array size at least. It's necessary to write '\x00'==0 to get something 2832 that's true only with -std1. */ 2833int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2834 2835int test (int i, double x); 2836struct s1 {int (*f) (int a);}; 2837struct s2 {int (*f) (double a);}; 2838int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2839int argc; 2840char **argv; 2841int 2842main () 2843{ 2844return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2845 ; 2846 return 0; 2847} 2848_ACEOF 2849# Don't try gcc -ansi; that turns off useful extensions and 2850# breaks some systems' header files. 2851# AIX -qlanglvl=ansi 2852# Ultrix and OSF/1 -std1 2853# HP-UX 10.20 and later -Ae 2854# HP-UX older versions -Aa -D_HPUX_SOURCE 2855# SVR4 -Xc -D__EXTENSIONS__ 2856for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2857do 2858 CC="$ac_save_CC $ac_arg" 2859 rm -f conftest.$ac_objext 2860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2861 (eval $ac_compile) 2>conftest.er1 2862 ac_status=$? 2863 grep -v '^ *+' conftest.er1 >conftest.err 2864 rm -f conftest.er1 2865 cat conftest.err >&5 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2867 (exit $ac_status); } && 2868 { ac_try='test -z "$ac_c_werror_flag" 2869 || test ! -s conftest.err' 2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2871 (eval $ac_try) 2>&5 2872 ac_status=$? 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); }; } && 2875 { ac_try='test -s conftest.$ac_objext' 2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2877 (eval $ac_try) 2>&5 2878 ac_status=$? 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2880 (exit $ac_status); }; }; then 2881 ac_cv_prog_cc_stdc=$ac_arg 2882break 2883else 2884 echo "$as_me: failed program was:" >&5 2885sed 's/^/| /' conftest.$ac_ext >&5 2886 2887fi 2888rm -f conftest.err conftest.$ac_objext 2889done 2890rm -f conftest.$ac_ext conftest.$ac_objext 2891CC=$ac_save_CC 2892 2893fi 2894 2895case "x$ac_cv_prog_cc_stdc" in 2896 x|xno) 2897 echo "$as_me:$LINENO: result: none needed" >&5 2898echo "${ECHO_T}none needed" >&6 ;; 2899 *) 2900 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2901echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2902 CC="$CC $ac_cv_prog_cc_stdc" ;; 2903esac 2904 2905# Some people use a C++ compiler to compile C. Since we use `exit', 2906# in C++ we need to declare it. In case someone uses the same compiler 2907# for both compiling C and C++ we need to have the C++ compiler decide 2908# the declaration of exit, since it's the most demanding environment. 2909cat >conftest.$ac_ext <<_ACEOF 2910#ifndef __cplusplus 2911 choke me 2912#endif 2913_ACEOF 2914rm -f conftest.$ac_objext 2915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2916 (eval $ac_compile) 2>conftest.er1 2917 ac_status=$? 2918 grep -v '^ *+' conftest.er1 >conftest.err 2919 rm -f conftest.er1 2920 cat conftest.err >&5 2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2922 (exit $ac_status); } && 2923 { ac_try='test -z "$ac_c_werror_flag" 2924 || test ! -s conftest.err' 2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2926 (eval $ac_try) 2>&5 2927 ac_status=$? 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); }; } && 2930 { ac_try='test -s conftest.$ac_objext' 2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2932 (eval $ac_try) 2>&5 2933 ac_status=$? 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2935 (exit $ac_status); }; }; then 2936 for ac_declaration in \ 2937 '' \ 2938 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2939 'extern "C" void std::exit (int); using std::exit;' \ 2940 'extern "C" void exit (int) throw ();' \ 2941 'extern "C" void exit (int);' \ 2942 'void exit (int);' 2943do 2944 cat >conftest.$ac_ext <<_ACEOF 2945/* confdefs.h. */ 2946_ACEOF 2947cat confdefs.h >>conftest.$ac_ext 2948cat >>conftest.$ac_ext <<_ACEOF 2949/* end confdefs.h. */ 2950$ac_declaration 2951#include <stdlib.h> 2952int 2953main () 2954{ 2955exit (42); 2956 ; 2957 return 0; 2958} 2959_ACEOF 2960rm -f conftest.$ac_objext 2961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2962 (eval $ac_compile) 2>conftest.er1 2963 ac_status=$? 2964 grep -v '^ *+' conftest.er1 >conftest.err 2965 rm -f conftest.er1 2966 cat conftest.err >&5 2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); } && 2969 { ac_try='test -z "$ac_c_werror_flag" 2970 || test ! -s conftest.err' 2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2972 (eval $ac_try) 2>&5 2973 ac_status=$? 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); }; } && 2976 { ac_try='test -s conftest.$ac_objext' 2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2978 (eval $ac_try) 2>&5 2979 ac_status=$? 2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2981 (exit $ac_status); }; }; then 2982 : 2983else 2984 echo "$as_me: failed program was:" >&5 2985sed 's/^/| /' conftest.$ac_ext >&5 2986 2987continue 2988fi 2989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2990 cat >conftest.$ac_ext <<_ACEOF 2991/* confdefs.h. */ 2992_ACEOF 2993cat confdefs.h >>conftest.$ac_ext 2994cat >>conftest.$ac_ext <<_ACEOF 2995/* end confdefs.h. */ 2996$ac_declaration 2997int 2998main () 2999{ 3000exit (42); 3001 ; 3002 return 0; 3003} 3004_ACEOF 3005rm -f conftest.$ac_objext 3006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3007 (eval $ac_compile) 2>conftest.er1 3008 ac_status=$? 3009 grep -v '^ *+' conftest.er1 >conftest.err 3010 rm -f conftest.er1 3011 cat conftest.err >&5 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); } && 3014 { ac_try='test -z "$ac_c_werror_flag" 3015 || test ! -s conftest.err' 3016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3017 (eval $ac_try) 2>&5 3018 ac_status=$? 3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3020 (exit $ac_status); }; } && 3021 { ac_try='test -s conftest.$ac_objext' 3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3023 (eval $ac_try) 2>&5 3024 ac_status=$? 3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3026 (exit $ac_status); }; }; then 3027 break 3028else 3029 echo "$as_me: failed program was:" >&5 3030sed 's/^/| /' conftest.$ac_ext >&5 3031 3032fi 3033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3034done 3035rm -f conftest* 3036if test -n "$ac_declaration"; then 3037 echo '#ifdef __cplusplus' >>confdefs.h 3038 echo $ac_declaration >>confdefs.h 3039 echo '#endif' >>confdefs.h 3040fi 3041 3042else 3043 echo "$as_me: failed program was:" >&5 3044sed 's/^/| /' conftest.$ac_ext >&5 3045 3046fi 3047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3048ac_ext=c 3049ac_cpp='$CPP $CPPFLAGS' 3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053DEPDIR="${am__leading_dot}deps" 3054 3055 ac_config_commands="$ac_config_commands depfiles" 3056 3057 3058am_make=${MAKE-make} 3059cat > confinc << 'END' 3060am__doit: 3061 @echo done 3062.PHONY: am__doit 3063END 3064# If we don't find an include directive, just comment out the code. 3065echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3066echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3067am__include="#" 3068am__quote= 3069_am_result=none 3070# First try GNU make style include. 3071echo "include confinc" > confmf 3072# We grep out `Entering directory' and `Leaving directory' 3073# messages which can occur if `w' ends up in MAKEFLAGS. 3074# In particular we don't look at `^make:' because GNU make might 3075# be invoked under some other name (usually "gmake"), in which 3076# case it prints its new name instead of `make'. 3077if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3078 am__include=include 3079 am__quote= 3080 _am_result=GNU 3081fi 3082# Now try BSD make style include. 3083if test "$am__include" = "#"; then 3084 echo '.include "confinc"' > confmf 3085 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3086 am__include=.include 3087 am__quote="\"" 3088 _am_result=BSD 3089 fi 3090fi 3091 3092 3093echo "$as_me:$LINENO: result: $_am_result" >&5 3094echo "${ECHO_T}$_am_result" >&6 3095rm -f confinc confmf 3096 3097# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3098if test "${enable_dependency_tracking+set}" = set; then 3099 enableval="$enable_dependency_tracking" 3100 3101fi; 3102if test "x$enable_dependency_tracking" != xno; then 3103 am_depcomp="$ac_aux_dir/depcomp" 3104 AMDEPBACKSLASH='\' 3105fi 3106 3107 3108if test "x$enable_dependency_tracking" != xno; then 3109 AMDEP_TRUE= 3110 AMDEP_FALSE='#' 3111else 3112 AMDEP_TRUE='#' 3113 AMDEP_FALSE= 3114fi 3115 3116 3117 3118 3119depcc="$CC" am_compiler_list= 3120 3121echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3122echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3123if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3124 echo $ECHO_N "(cached) $ECHO_C" >&6 3125else 3126 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3127 # We make a subdir and do the tests there. Otherwise we can end up 3128 # making bogus files that we don't know about and never remove. For 3129 # instance it was reported that on HP-UX the gcc test will end up 3130 # making a dummy file named `D' -- because `-MD' means `put the output 3131 # in D'. 3132 mkdir conftest.dir 3133 # Copy depcomp to subdir because otherwise we won't find it if we're 3134 # using a relative directory. 3135 cp "$am_depcomp" conftest.dir 3136 cd conftest.dir 3137 # We will build objects and dependencies in a subdirectory because 3138 # it helps to detect inapplicable dependency modes. For instance 3139 # both Tru64's cc and ICC support -MD to output dependencies as a 3140 # side effect of compilation, but ICC will put the dependencies in 3141 # the current directory while Tru64 will put them in the object 3142 # directory. 3143 mkdir sub 3144 3145 am_cv_CC_dependencies_compiler_type=none 3146 if test "$am_compiler_list" = ""; then 3147 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3148 fi 3149 for depmode in $am_compiler_list; do 3150 # Setup a source with many dependencies, because some compilers 3151 # like to wrap large dependency lists on column 80 (with \), and 3152 # we should not choose a depcomp mode which is confused by this. 3153 # 3154 # We need to recreate these files for each test, as the compiler may 3155 # overwrite some of them when testing with obscure command lines. 3156 # This happens at least with the AIX C compiler. 3157 : > sub/conftest.c 3158 for i in 1 2 3 4 5 6; do 3159 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3161 # Solaris 8's {/usr,}/bin/sh. 3162 touch sub/conftst$i.h 3163 done 3164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3165 3166 case $depmode in 3167 nosideeffect) 3168 # after this tag, mechanisms are not by side-effect, so they'll 3169 # only be used when explicitly requested 3170 if test "x$enable_dependency_tracking" = xyes; then 3171 continue 3172 else 3173 break 3174 fi 3175 ;; 3176 none) break ;; 3177 esac 3178 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3179 # mode. It turns out that the SunPro C++ compiler does not properly 3180 # handle `-M -o', and we need to detect this. 3181 if depmode=$depmode \ 3182 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3184 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3185 >/dev/null 2>conftest.err && 3186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3187 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3189 # icc doesn't choke on unknown options, it will just issue warnings 3190 # or remarks (even with -Werror). So we grep stderr for any message 3191 # that says an option was ignored or not supported. 3192 # When given -MP, icc 7.0 and 7.1 complain thusly: 3193 # icc: Command line warning: ignoring option '-M'; no argument required 3194 # The diagnosis changed in icc 8.0: 3195 # icc: Command line remark: option '-MP' not supported 3196 if (grep 'ignoring option' conftest.err || 3197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3198 am_cv_CC_dependencies_compiler_type=$depmode 3199 break 3200 fi 3201 fi 3202 done 3203 3204 cd .. 3205 rm -rf conftest.dir 3206else 3207 am_cv_CC_dependencies_compiler_type=none 3208fi 3209 3210fi 3211echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3212echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3213CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3214 3215 3216 3217if 3218 test "x$enable_dependency_tracking" != xno \ 3219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3220 am__fastdepCC_TRUE= 3221 am__fastdepCC_FALSE='#' 3222else 3223 am__fastdepCC_TRUE='#' 3224 am__fastdepCC_FALSE= 3225fi 3226 3227 3228ac_ext=cc 3229ac_cpp='$CXXCPP $CPPFLAGS' 3230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3233if test -n "$ac_tool_prefix"; then 3234 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3235 do 3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3237set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3238echo "$as_me:$LINENO: checking for $ac_word" >&5 3239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3240if test "${ac_cv_prog_CXX+set}" = set; then 3241 echo $ECHO_N "(cached) $ECHO_C" >&6 3242else 3243 if test -n "$CXX"; then 3244 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3245else 3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3247for as_dir in $PATH 3248do 3249 IFS=$as_save_IFS 3250 test -z "$as_dir" && as_dir=. 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3253 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258done 3259 3260fi 3261fi 3262CXX=$ac_cv_prog_CXX 3263if test -n "$CXX"; then 3264 echo "$as_me:$LINENO: result: $CXX" >&5 3265echo "${ECHO_T}$CXX" >&6 3266else 3267 echo "$as_me:$LINENO: result: no" >&5 3268echo "${ECHO_T}no" >&6 3269fi 3270 3271 test -n "$CXX" && break 3272 done 3273fi 3274if test -z "$CXX"; then 3275 ac_ct_CXX=$CXX 3276 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3277do 3278 # Extract the first word of "$ac_prog", so it can be a program name with args. 3279set dummy $ac_prog; ac_word=$2 3280echo "$as_me:$LINENO: checking for $ac_word" >&5 3281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3282if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284else 3285 if test -n "$ac_ct_CXX"; then 3286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3287else 3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289for as_dir in $PATH 3290do 3291 IFS=$as_save_IFS 3292 test -z "$as_dir" && as_dir=. 3293 for ac_exec_ext in '' $ac_executable_extensions; do 3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3295 ac_cv_prog_ac_ct_CXX="$ac_prog" 3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3297 break 2 3298 fi 3299done 3300done 3301 3302fi 3303fi 3304ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3305if test -n "$ac_ct_CXX"; then 3306 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3307echo "${ECHO_T}$ac_ct_CXX" >&6 3308else 3309 echo "$as_me:$LINENO: result: no" >&5 3310echo "${ECHO_T}no" >&6 3311fi 3312 3313 test -n "$ac_ct_CXX" && break 3314done 3315test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3316 3317 CXX=$ac_ct_CXX 3318fi 3319 3320 3321# Provide some information about the compiler. 3322echo "$as_me:$LINENO:" \ 3323 "checking for C++ compiler version" >&5 3324ac_compiler=`set X $ac_compile; echo $2` 3325{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3326 (eval $ac_compiler --version </dev/null >&5) 2>&5 3327 ac_status=$? 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } 3330{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3331 (eval $ac_compiler -v </dev/null >&5) 2>&5 3332 ac_status=$? 3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 (exit $ac_status); } 3335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3336 (eval $ac_compiler -V </dev/null >&5) 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } 3340 3341echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3342echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3343if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3344 echo $ECHO_N "(cached) $ECHO_C" >&6 3345else 3346 cat >conftest.$ac_ext <<_ACEOF 3347/* confdefs.h. */ 3348_ACEOF 3349cat confdefs.h >>conftest.$ac_ext 3350cat >>conftest.$ac_ext <<_ACEOF 3351/* end confdefs.h. */ 3352 3353int 3354main () 3355{ 3356#ifndef __GNUC__ 3357 choke me 3358#endif 3359 3360 ; 3361 return 0; 3362} 3363_ACEOF 3364rm -f conftest.$ac_objext 3365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3366 (eval $ac_compile) 2>conftest.er1 3367 ac_status=$? 3368 grep -v '^ *+' conftest.er1 >conftest.err 3369 rm -f conftest.er1 3370 cat conftest.err >&5 3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); } && 3373 { ac_try='test -z "$ac_cxx_werror_flag" 3374 || test ! -s conftest.err' 3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3376 (eval $ac_try) 2>&5 3377 ac_status=$? 3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3379 (exit $ac_status); }; } && 3380 { ac_try='test -s conftest.$ac_objext' 3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3382 (eval $ac_try) 2>&5 3383 ac_status=$? 3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3385 (exit $ac_status); }; }; then 3386 ac_compiler_gnu=yes 3387else 3388 echo "$as_me: failed program was:" >&5 3389sed 's/^/| /' conftest.$ac_ext >&5 3390 3391ac_compiler_gnu=no 3392fi 3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3394ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3395 3396fi 3397echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3398echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3399GXX=`test $ac_compiler_gnu = yes && echo yes` 3400ac_test_CXXFLAGS=${CXXFLAGS+set} 3401ac_save_CXXFLAGS=$CXXFLAGS 3402CXXFLAGS="-g" 3403echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3404echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3405if test "${ac_cv_prog_cxx_g+set}" = set; then 3406 echo $ECHO_N "(cached) $ECHO_C" >&6 3407else 3408 cat >conftest.$ac_ext <<_ACEOF 3409/* confdefs.h. */ 3410_ACEOF 3411cat confdefs.h >>conftest.$ac_ext 3412cat >>conftest.$ac_ext <<_ACEOF 3413/* end confdefs.h. */ 3414 3415int 3416main () 3417{ 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423rm -f conftest.$ac_objext 3424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3425 (eval $ac_compile) 2>conftest.er1 3426 ac_status=$? 3427 grep -v '^ *+' conftest.er1 >conftest.err 3428 rm -f conftest.er1 3429 cat conftest.err >&5 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); } && 3432 { ac_try='test -z "$ac_cxx_werror_flag" 3433 || test ! -s conftest.err' 3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3435 (eval $ac_try) 2>&5 3436 ac_status=$? 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); }; } && 3439 { ac_try='test -s conftest.$ac_objext' 3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3441 (eval $ac_try) 2>&5 3442 ac_status=$? 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 (exit $ac_status); }; }; then 3445 ac_cv_prog_cxx_g=yes 3446else 3447 echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450ac_cv_prog_cxx_g=no 3451fi 3452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3453fi 3454echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3455echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3456if test "$ac_test_CXXFLAGS" = set; then 3457 CXXFLAGS=$ac_save_CXXFLAGS 3458elif test $ac_cv_prog_cxx_g = yes; then 3459 if test "$GXX" = yes; then 3460 CXXFLAGS="-g -O2" 3461 else 3462 CXXFLAGS="-g" 3463 fi 3464else 3465 if test "$GXX" = yes; then 3466 CXXFLAGS="-O2" 3467 else 3468 CXXFLAGS= 3469 fi 3470fi 3471for ac_declaration in \ 3472 '' \ 3473 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3474 'extern "C" void std::exit (int); using std::exit;' \ 3475 'extern "C" void exit (int) throw ();' \ 3476 'extern "C" void exit (int);' \ 3477 'void exit (int);' 3478do 3479 cat >conftest.$ac_ext <<_ACEOF 3480/* confdefs.h. */ 3481_ACEOF 3482cat confdefs.h >>conftest.$ac_ext 3483cat >>conftest.$ac_ext <<_ACEOF 3484/* end confdefs.h. */ 3485$ac_declaration 3486#include <stdlib.h> 3487int 3488main () 3489{ 3490exit (42); 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495rm -f conftest.$ac_objext 3496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3497 (eval $ac_compile) 2>conftest.er1 3498 ac_status=$? 3499 grep -v '^ *+' conftest.er1 >conftest.err 3500 rm -f conftest.er1 3501 cat conftest.err >&5 3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3503 (exit $ac_status); } && 3504 { ac_try='test -z "$ac_cxx_werror_flag" 3505 || test ! -s conftest.err' 3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3507 (eval $ac_try) 2>&5 3508 ac_status=$? 3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); }; } && 3511 { ac_try='test -s conftest.$ac_objext' 3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3513 (eval $ac_try) 2>&5 3514 ac_status=$? 3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3516 (exit $ac_status); }; }; then 3517 : 3518else 3519 echo "$as_me: failed program was:" >&5 3520sed 's/^/| /' conftest.$ac_ext >&5 3521 3522continue 3523fi 3524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3525 cat >conftest.$ac_ext <<_ACEOF 3526/* confdefs.h. */ 3527_ACEOF 3528cat confdefs.h >>conftest.$ac_ext 3529cat >>conftest.$ac_ext <<_ACEOF 3530/* end confdefs.h. */ 3531$ac_declaration 3532int 3533main () 3534{ 3535exit (42); 3536 ; 3537 return 0; 3538} 3539_ACEOF 3540rm -f conftest.$ac_objext 3541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3542 (eval $ac_compile) 2>conftest.er1 3543 ac_status=$? 3544 grep -v '^ *+' conftest.er1 >conftest.err 3545 rm -f conftest.er1 3546 cat conftest.err >&5 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); } && 3549 { ac_try='test -z "$ac_cxx_werror_flag" 3550 || test ! -s conftest.err' 3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3552 (eval $ac_try) 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; } && 3556 { ac_try='test -s conftest.$ac_objext' 3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3558 (eval $ac_try) 2>&5 3559 ac_status=$? 3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3561 (exit $ac_status); }; }; then 3562 break 3563else 3564 echo "$as_me: failed program was:" >&5 3565sed 's/^/| /' conftest.$ac_ext >&5 3566 3567fi 3568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3569done 3570rm -f conftest* 3571if test -n "$ac_declaration"; then 3572 echo '#ifdef __cplusplus' >>confdefs.h 3573 echo $ac_declaration >>confdefs.h 3574 echo '#endif' >>confdefs.h 3575fi 3576 3577ac_ext=c 3578ac_cpp='$CPP $CPPFLAGS' 3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582 3583depcc="$CXX" am_compiler_list= 3584 3585echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3586echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3587if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3588 echo $ECHO_N "(cached) $ECHO_C" >&6 3589else 3590 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3591 # We make a subdir and do the tests there. Otherwise we can end up 3592 # making bogus files that we don't know about and never remove. For 3593 # instance it was reported that on HP-UX the gcc test will end up 3594 # making a dummy file named `D' -- because `-MD' means `put the output 3595 # in D'. 3596 mkdir conftest.dir 3597 # Copy depcomp to subdir because otherwise we won't find it if we're 3598 # using a relative directory. 3599 cp "$am_depcomp" conftest.dir 3600 cd conftest.dir 3601 # We will build objects and dependencies in a subdirectory because 3602 # it helps to detect inapplicable dependency modes. For instance 3603 # both Tru64's cc and ICC support -MD to output dependencies as a 3604 # side effect of compilation, but ICC will put the dependencies in 3605 # the current directory while Tru64 will put them in the object 3606 # directory. 3607 mkdir sub 3608 3609 am_cv_CXX_dependencies_compiler_type=none 3610 if test "$am_compiler_list" = ""; then 3611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3612 fi 3613 for depmode in $am_compiler_list; do 3614 # Setup a source with many dependencies, because some compilers 3615 # like to wrap large dependency lists on column 80 (with \), and 3616 # we should not choose a depcomp mode which is confused by this. 3617 # 3618 # We need to recreate these files for each test, as the compiler may 3619 # overwrite some of them when testing with obscure command lines. 3620 # This happens at least with the AIX C compiler. 3621 : > sub/conftest.c 3622 for i in 1 2 3 4 5 6; do 3623 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3624 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3625 # Solaris 8's {/usr,}/bin/sh. 3626 touch sub/conftst$i.h 3627 done 3628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3629 3630 case $depmode in 3631 nosideeffect) 3632 # after this tag, mechanisms are not by side-effect, so they'll 3633 # only be used when explicitly requested 3634 if test "x$enable_dependency_tracking" = xyes; then 3635 continue 3636 else 3637 break 3638 fi 3639 ;; 3640 none) break ;; 3641 esac 3642 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3643 # mode. It turns out that the SunPro C++ compiler does not properly 3644 # handle `-M -o', and we need to detect this. 3645 if depmode=$depmode \ 3646 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3648 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3649 >/dev/null 2>conftest.err && 3650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3651 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3653 # icc doesn't choke on unknown options, it will just issue warnings 3654 # or remarks (even with -Werror). So we grep stderr for any message 3655 # that says an option was ignored or not supported. 3656 # When given -MP, icc 7.0 and 7.1 complain thusly: 3657 # icc: Command line warning: ignoring option '-M'; no argument required 3658 # The diagnosis changed in icc 8.0: 3659 # icc: Command line remark: option '-MP' not supported 3660 if (grep 'ignoring option' conftest.err || 3661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3662 am_cv_CXX_dependencies_compiler_type=$depmode 3663 break 3664 fi 3665 fi 3666 done 3667 3668 cd .. 3669 rm -rf conftest.dir 3670else 3671 am_cv_CXX_dependencies_compiler_type=none 3672fi 3673 3674fi 3675echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3676echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3677CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3678 3679 3680 3681if 3682 test "x$enable_dependency_tracking" != xno \ 3683 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3684 am__fastdepCXX_TRUE= 3685 am__fastdepCXX_FALSE='#' 3686else 3687 am__fastdepCXX_TRUE='#' 3688 am__fastdepCXX_FALSE= 3689fi 3690 3691 3692 3693echo "$as_me:$LINENO: checking for library containing strerror" >&5 3694echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3695if test "${ac_cv_search_strerror+set}" = set; then 3696 echo $ECHO_N "(cached) $ECHO_C" >&6 3697else 3698 ac_func_search_save_LIBS=$LIBS 3699ac_cv_search_strerror=no 3700cat >conftest.$ac_ext <<_ACEOF 3701/* confdefs.h. */ 3702_ACEOF 3703cat confdefs.h >>conftest.$ac_ext 3704cat >>conftest.$ac_ext <<_ACEOF 3705/* end confdefs.h. */ 3706 3707/* Override any gcc2 internal prototype to avoid an error. */ 3708#ifdef __cplusplus 3709extern "C" 3710#endif 3711/* We use char because int might match the return type of a gcc2 3712 builtin and then its argument prototype would still apply. */ 3713char strerror (); 3714int 3715main () 3716{ 3717strerror (); 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722rm -f conftest.$ac_objext conftest$ac_exeext 3723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3724 (eval $ac_link) 2>conftest.er1 3725 ac_status=$? 3726 grep -v '^ *+' conftest.er1 >conftest.err 3727 rm -f conftest.er1 3728 cat conftest.err >&5 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); } && 3731 { ac_try='test -z "$ac_c_werror_flag" 3732 || test ! -s conftest.err' 3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3734 (eval $ac_try) 2>&5 3735 ac_status=$? 3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3737 (exit $ac_status); }; } && 3738 { ac_try='test -s conftest$ac_exeext' 3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3740 (eval $ac_try) 2>&5 3741 ac_status=$? 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); }; }; then 3744 ac_cv_search_strerror="none required" 3745else 3746 echo "$as_me: failed program was:" >&5 3747sed 's/^/| /' conftest.$ac_ext >&5 3748 3749fi 3750rm -f conftest.err conftest.$ac_objext \ 3751 conftest$ac_exeext conftest.$ac_ext 3752if test "$ac_cv_search_strerror" = no; then 3753 for ac_lib in cposix; do 3754 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3755 cat >conftest.$ac_ext <<_ACEOF 3756/* confdefs.h. */ 3757_ACEOF 3758cat confdefs.h >>conftest.$ac_ext 3759cat >>conftest.$ac_ext <<_ACEOF 3760/* end confdefs.h. */ 3761 3762/* Override any gcc2 internal prototype to avoid an error. */ 3763#ifdef __cplusplus 3764extern "C" 3765#endif 3766/* We use char because int might match the return type of a gcc2 3767 builtin and then its argument prototype would still apply. */ 3768char strerror (); 3769int 3770main () 3771{ 3772strerror (); 3773 ; 3774 return 0; 3775} 3776_ACEOF 3777rm -f conftest.$ac_objext conftest$ac_exeext 3778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3779 (eval $ac_link) 2>conftest.er1 3780 ac_status=$? 3781 grep -v '^ *+' conftest.er1 >conftest.err 3782 rm -f conftest.er1 3783 cat conftest.err >&5 3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3785 (exit $ac_status); } && 3786 { ac_try='test -z "$ac_c_werror_flag" 3787 || test ! -s conftest.err' 3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3789 (eval $ac_try) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; } && 3793 { ac_try='test -s conftest$ac_exeext' 3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3795 (eval $ac_try) 2>&5 3796 ac_status=$? 3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3798 (exit $ac_status); }; }; then 3799 ac_cv_search_strerror="-l$ac_lib" 3800break 3801else 3802 echo "$as_me: failed program was:" >&5 3803sed 's/^/| /' conftest.$ac_ext >&5 3804 3805fi 3806rm -f conftest.err conftest.$ac_objext \ 3807 conftest$ac_exeext conftest.$ac_ext 3808 done 3809fi 3810LIBS=$ac_func_search_save_LIBS 3811fi 3812echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3813echo "${ECHO_T}$ac_cv_search_strerror" >&6 3814if test "$ac_cv_search_strerror" != no; then 3815 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3816 3817fi 3818 3819ac_ext=c 3820ac_cpp='$CPP $CPPFLAGS' 3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3823ac_compiler_gnu=$ac_cv_c_compiler_gnu 3824echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3825echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3826# On Suns, sometimes $CPP names a directory. 3827if test -n "$CPP" && test -d "$CPP"; then 3828 CPP= 3829fi 3830if test -z "$CPP"; then 3831 if test "${ac_cv_prog_CPP+set}" = set; then 3832 echo $ECHO_N "(cached) $ECHO_C" >&6 3833else 3834 # Double quotes because CPP needs to be expanded 3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3836 do 3837 ac_preproc_ok=false 3838for ac_c_preproc_warn_flag in '' yes 3839do 3840 # Use a header file that comes with gcc, so configuring glibc 3841 # with a fresh cross-compiler works. 3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3843 # <limits.h> exists even on freestanding compilers. 3844 # On the NeXT, cc -E runs the code through the compiler's parser, 3845 # not just through cpp. "Syntax error" is here to catch this case. 3846 cat >conftest.$ac_ext <<_ACEOF 3847/* confdefs.h. */ 3848_ACEOF 3849cat confdefs.h >>conftest.$ac_ext 3850cat >>conftest.$ac_ext <<_ACEOF 3851/* end confdefs.h. */ 3852#ifdef __STDC__ 3853# include <limits.h> 3854#else 3855# include <assert.h> 3856#endif 3857 Syntax error 3858_ACEOF 3859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3861 ac_status=$? 3862 grep -v '^ *+' conftest.er1 >conftest.err 3863 rm -f conftest.er1 3864 cat conftest.err >&5 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3866 (exit $ac_status); } >/dev/null; then 3867 if test -s conftest.err; then 3868 ac_cpp_err=$ac_c_preproc_warn_flag 3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3870 else 3871 ac_cpp_err= 3872 fi 3873else 3874 ac_cpp_err=yes 3875fi 3876if test -z "$ac_cpp_err"; then 3877 : 3878else 3879 echo "$as_me: failed program was:" >&5 3880sed 's/^/| /' conftest.$ac_ext >&5 3881 3882 # Broken: fails on valid input. 3883continue 3884fi 3885rm -f conftest.err conftest.$ac_ext 3886 3887 # OK, works on sane cases. Now check whether non-existent headers 3888 # can be detected and how. 3889 cat >conftest.$ac_ext <<_ACEOF 3890/* confdefs.h. */ 3891_ACEOF 3892cat confdefs.h >>conftest.$ac_ext 3893cat >>conftest.$ac_ext <<_ACEOF 3894/* end confdefs.h. */ 3895#include <ac_nonexistent.h> 3896_ACEOF 3897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3899 ac_status=$? 3900 grep -v '^ *+' conftest.er1 >conftest.err 3901 rm -f conftest.er1 3902 cat conftest.err >&5 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } >/dev/null; then 3905 if test -s conftest.err; then 3906 ac_cpp_err=$ac_c_preproc_warn_flag 3907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3908 else 3909 ac_cpp_err= 3910 fi 3911else 3912 ac_cpp_err=yes 3913fi 3914if test -z "$ac_cpp_err"; then 3915 # Broken: success on invalid input. 3916continue 3917else 3918 echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921 # Passes both tests. 3922ac_preproc_ok=: 3923break 3924fi 3925rm -f conftest.err conftest.$ac_ext 3926 3927done 3928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3929rm -f conftest.err conftest.$ac_ext 3930if $ac_preproc_ok; then 3931 break 3932fi 3933 3934 done 3935 ac_cv_prog_CPP=$CPP 3936 3937fi 3938 CPP=$ac_cv_prog_CPP 3939else 3940 ac_cv_prog_CPP=$CPP 3941fi 3942echo "$as_me:$LINENO: result: $CPP" >&5 3943echo "${ECHO_T}$CPP" >&6 3944ac_preproc_ok=false 3945for ac_c_preproc_warn_flag in '' yes 3946do 3947 # Use a header file that comes with gcc, so configuring glibc 3948 # with a fresh cross-compiler works. 3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3950 # <limits.h> exists even on freestanding compilers. 3951 # On the NeXT, cc -E runs the code through the compiler's parser, 3952 # not just through cpp. "Syntax error" is here to catch this case. 3953 cat >conftest.$ac_ext <<_ACEOF 3954/* confdefs.h. */ 3955_ACEOF 3956cat confdefs.h >>conftest.$ac_ext 3957cat >>conftest.$ac_ext <<_ACEOF 3958/* end confdefs.h. */ 3959#ifdef __STDC__ 3960# include <limits.h> 3961#else 3962# include <assert.h> 3963#endif 3964 Syntax error 3965_ACEOF 3966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3968 ac_status=$? 3969 grep -v '^ *+' conftest.er1 >conftest.err 3970 rm -f conftest.er1 3971 cat conftest.err >&5 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3973 (exit $ac_status); } >/dev/null; then 3974 if test -s conftest.err; then 3975 ac_cpp_err=$ac_c_preproc_warn_flag 3976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3977 else 3978 ac_cpp_err= 3979 fi 3980else 3981 ac_cpp_err=yes 3982fi 3983if test -z "$ac_cpp_err"; then 3984 : 3985else 3986 echo "$as_me: failed program was:" >&5 3987sed 's/^/| /' conftest.$ac_ext >&5 3988 3989 # Broken: fails on valid input. 3990continue 3991fi 3992rm -f conftest.err conftest.$ac_ext 3993 3994 # OK, works on sane cases. Now check whether non-existent headers 3995 # can be detected and how. 3996 cat >conftest.$ac_ext <<_ACEOF 3997/* confdefs.h. */ 3998_ACEOF 3999cat confdefs.h >>conftest.$ac_ext 4000cat >>conftest.$ac_ext <<_ACEOF 4001/* end confdefs.h. */ 4002#include <ac_nonexistent.h> 4003_ACEOF 4004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4006 ac_status=$? 4007 grep -v '^ *+' conftest.er1 >conftest.err 4008 rm -f conftest.er1 4009 cat conftest.err >&5 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 (exit $ac_status); } >/dev/null; then 4012 if test -s conftest.err; then 4013 ac_cpp_err=$ac_c_preproc_warn_flag 4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4015 else 4016 ac_cpp_err= 4017 fi 4018else 4019 ac_cpp_err=yes 4020fi 4021if test -z "$ac_cpp_err"; then 4022 # Broken: success on invalid input. 4023continue 4024else 4025 echo "$as_me: failed program was:" >&5 4026sed 's/^/| /' conftest.$ac_ext >&5 4027 4028 # Passes both tests. 4029ac_preproc_ok=: 4030break 4031fi 4032rm -f conftest.err conftest.$ac_ext 4033 4034done 4035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4036rm -f conftest.err conftest.$ac_ext 4037if $ac_preproc_ok; then 4038 : 4039else 4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4041See \`config.log' for more details." >&5 4042echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4043See \`config.log' for more details." >&2;} 4044 { (exit 1); exit 1; }; } 4045fi 4046 4047ac_ext=c 4048ac_cpp='$CPP $CPPFLAGS' 4049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052 4053 4054echo "$as_me:$LINENO: checking for egrep" >&5 4055echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4056if test "${ac_cv_prog_egrep+set}" = set; then 4057 echo $ECHO_N "(cached) $ECHO_C" >&6 4058else 4059 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4060 then ac_cv_prog_egrep='grep -E' 4061 else ac_cv_prog_egrep='egrep' 4062 fi 4063fi 4064echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4065echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4066 EGREP=$ac_cv_prog_egrep 4067 4068 4069echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4070echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4071if test "${ac_cv_header_stdc+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 cat >conftest.$ac_ext <<_ACEOF 4075/* confdefs.h. */ 4076_ACEOF 4077cat confdefs.h >>conftest.$ac_ext 4078cat >>conftest.$ac_ext <<_ACEOF 4079/* end confdefs.h. */ 4080#include <stdlib.h> 4081#include <stdarg.h> 4082#include <string.h> 4083#include <float.h> 4084 4085int 4086main () 4087{ 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093rm -f conftest.$ac_objext 4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>conftest.er1 4096 ac_status=$? 4097 grep -v '^ *+' conftest.er1 >conftest.err 4098 rm -f conftest.er1 4099 cat conftest.err >&5 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); } && 4102 { ac_try='test -z "$ac_c_werror_flag" 4103 || test ! -s conftest.err' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; } && 4109 { ac_try='test -s conftest.$ac_objext' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; }; then 4115 ac_cv_header_stdc=yes 4116else 4117 echo "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120ac_cv_header_stdc=no 4121fi 4122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4123 4124if test $ac_cv_header_stdc = yes; then 4125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4126 cat >conftest.$ac_ext <<_ACEOF 4127/* confdefs.h. */ 4128_ACEOF 4129cat confdefs.h >>conftest.$ac_ext 4130cat >>conftest.$ac_ext <<_ACEOF 4131/* end confdefs.h. */ 4132#include <string.h> 4133 4134_ACEOF 4135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4136 $EGREP "memchr" >/dev/null 2>&1; then 4137 : 4138else 4139 ac_cv_header_stdc=no 4140fi 4141rm -f conftest* 4142 4143fi 4144 4145if test $ac_cv_header_stdc = yes; then 4146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4147 cat >conftest.$ac_ext <<_ACEOF 4148/* confdefs.h. */ 4149_ACEOF 4150cat confdefs.h >>conftest.$ac_ext 4151cat >>conftest.$ac_ext <<_ACEOF 4152/* end confdefs.h. */ 4153#include <stdlib.h> 4154 4155_ACEOF 4156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4157 $EGREP "free" >/dev/null 2>&1; then 4158 : 4159else 4160 ac_cv_header_stdc=no 4161fi 4162rm -f conftest* 4163 4164fi 4165 4166if test $ac_cv_header_stdc = yes; then 4167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4168 if test "$cross_compiling" = yes; then 4169 : 4170else 4171 cat >conftest.$ac_ext <<_ACEOF 4172/* confdefs.h. */ 4173_ACEOF 4174cat confdefs.h >>conftest.$ac_ext 4175cat >>conftest.$ac_ext <<_ACEOF 4176/* end confdefs.h. */ 4177#include <ctype.h> 4178#if ((' ' & 0x0FF) == 0x020) 4179# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4180# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4181#else 4182# define ISLOWER(c) \ 4183 (('a' <= (c) && (c) <= 'i') \ 4184 || ('j' <= (c) && (c) <= 'r') \ 4185 || ('s' <= (c) && (c) <= 'z')) 4186# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4187#endif 4188 4189#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4190int 4191main () 4192{ 4193 int i; 4194 for (i = 0; i < 256; i++) 4195 if (XOR (islower (i), ISLOWER (i)) 4196 || toupper (i) != TOUPPER (i)) 4197 exit(2); 4198 exit (0); 4199} 4200_ACEOF 4201rm -f conftest$ac_exeext 4202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4203 (eval $ac_link) 2>&5 4204 ac_status=$? 4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4208 (eval $ac_try) 2>&5 4209 ac_status=$? 4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); }; }; then 4212 : 4213else 4214 echo "$as_me: program exited with status $ac_status" >&5 4215echo "$as_me: failed program was:" >&5 4216sed 's/^/| /' conftest.$ac_ext >&5 4217 4218( exit $ac_status ) 4219ac_cv_header_stdc=no 4220fi 4221rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4222fi 4223fi 4224fi 4225echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4226echo "${ECHO_T}$ac_cv_header_stdc" >&6 4227if test $ac_cv_header_stdc = yes; then 4228 4229cat >>confdefs.h <<\_ACEOF 4230#define STDC_HEADERS 1 4231_ACEOF 4232 4233fi 4234 4235 4236# Check whether --enable-tests or --disable-tests was given. 4237if test "${enable_tests+set}" = set; then 4238 enableval="$enable_tests" 4239 enable_tests=$enableval 4240else 4241 enable_tests=$USE_MAINTAINER_MODE 4242fi; 4243# Check whether --enable-ansi or --disable-ansi was given. 4244if test "${enable_ansi+set}" = set; then 4245 enableval="$enable_ansi" 4246 enable_ansi=$enableval 4247else 4248 enable_ansi=no 4249fi; 4250# Check whether --enable-verbose-mode or --disable-verbose-mode was given. 4251if test "${enable_verbose_mode+set}" = set; then 4252 enableval="$enable_verbose_mode" 4253 enable_verbose_mode=$enableval 4254else 4255 enable_verbose_mode=$USE_MAINTAINER_MODE 4256fi; 4257# Check whether --enable-asserts or --disable-asserts was given. 4258if test "${enable_asserts+set}" = set; then 4259 enableval="$enable_asserts" 4260 enable_asserts=$enableval 4261else 4262 enable_asserts=$USE_MAINTAINER_MODE 4263fi; 4264# Check whether --enable-checks or --disable-checks was given. 4265if test "${enable_checks+set}" = set; then 4266 enableval="$enable_checks" 4267 enable_checks=$enableval 4268else 4269 enable_checks=yes 4270fi; 4271# Check whether --enable-xml-docs or --disable-xml-docs was given. 4272if test "${enable_xml_docs+set}" = set; then 4273 enableval="$enable_xml_docs" 4274 enable_xml_docs=$enableval 4275else 4276 enable_xml_docs=auto 4277fi; 4278# Check whether --enable-doxygen-docs or --disable-doxygen-docs was given. 4279if test "${enable_doxygen_docs+set}" = set; then 4280 enableval="$enable_doxygen_docs" 4281 enable_doxygen_docs=$enableval 4282else 4283 enable_doxygen_docs=auto 4284fi; 4285# Check whether --enable-gcov or --disable-gcov was given. 4286if test "${enable_gcov+set}" = set; then 4287 enableval="$enable_gcov" 4288 enable_gcov=$enableval 4289else 4290 enable_gcov=no 4291fi; 4292# Check whether --enable-abstract-sockets or --disable-abstract-sockets was given. 4293if test "${enable_abstract_sockets+set}" = set; then 4294 enableval="$enable_abstract_sockets" 4295 enable_abstract_sockets=$enableval 4296else 4297 enable_abstract_sockets=auto 4298fi; 4299# Check whether --enable-selinux or --disable-selinux was given. 4300if test "${enable_selinux+set}" = set; then 4301 enableval="$enable_selinux" 4302 enable_selinux=$enableval 4303else 4304 enable_selinux=auto 4305fi; 4306# Check whether --enable-dnotify or --disable-dnotify was given. 4307if test "${enable_dnotify+set}" = set; then 4308 enableval="$enable_dnotify" 4309 enable_dnotify=$enableval 4310else 4311 enable_dnotify=auto 4312fi; 4313# Check whether --enable-kqueue or --disable-kqueue was given. 4314if test "${enable_kqueue+set}" = set; then 4315 enableval="$enable_kqueue" 4316 enable_kqueue=$enableval 4317else 4318 enable_kqueue=auto 4319fi; 4320# Check whether --enable-console-owner-file or --disable-console-owner-file was given. 4321if test "${enable_console_owner_file+set}" = set; then 4322 enableval="$enable_console_owner_file" 4323 enable_console_owner_file=$enableval 4324else 4325 enable_console_owner_file=auto 4326fi; 4327 4328 4329# Check whether --with-xml or --without-xml was given. 4330if test "${with_xml+set}" = set; then 4331 withval="$with_xml" 4332 4333fi; 4334 4335# Check whether --with-init-scripts or --without-init-scripts was given. 4336if test "${with_init_scripts+set}" = set; then 4337 withval="$with_init_scripts" 4338 4339fi; 4340 4341# Check whether --with-session-socket-dir or --without-session-socket-dir was given. 4342if test "${with_session_socket_dir+set}" = set; then 4343 withval="$with_session_socket_dir" 4344 4345fi; 4346 4347# Check whether --with-test-socket-dir or --without-test-socket-dir was given. 4348if test "${with_test_socket_dir+set}" = set; then 4349 withval="$with_test_socket_dir" 4350 4351fi; 4352 4353# Check whether --with-system-pid-file or --without-system-pid-file was given. 4354if test "${with_system_pid_file+set}" = set; then 4355 withval="$with_system_pid_file" 4356 4357fi; 4358 4359# Check whether --with-system-socket or --without-system-socket was given. 4360if test "${with_system_socket+set}" = set; then 4361 withval="$with_system_socket" 4362 4363fi; 4364 4365# Check whether --with-console-auth-dir or --without-console-auth-dir was given. 4366if test "${with_console_auth_dir+set}" = set; then 4367 withval="$with_console_auth_dir" 4368 4369fi; 4370 4371# Check whether --with-console-owner-file or --without-console-owner-file was given. 4372if test "${with_console_owner_file+set}" = set; then 4373 withval="$with_console_owner_file" 4374 4375fi; 4376 4377# Check whether --with-dbus_user or --without-dbus_user was given. 4378if test "${with_dbus_user+set}" = set; then 4379 withval="$with_dbus_user" 4380 4381fi; 4382 4383# Check whether --with-dbus_daemondir or --without-dbus_daemondir was given. 4384if test "${with_dbus_daemondir+set}" = set; then 4385 withval="$with_dbus_daemondir" 4386 4387fi; 4388 4389 4390 4391 4392if test x$enable_tests = xyes; then 4393 DBUS_BUILD_TESTS_TRUE= 4394 DBUS_BUILD_TESTS_FALSE='#' 4395else 4396 DBUS_BUILD_TESTS_TRUE='#' 4397 DBUS_BUILD_TESTS_FALSE= 4398fi 4399 4400if test x$enable_tests = xyes; then 4401 4402cat >>confdefs.h <<\_ACEOF 4403#define DBUS_BUILD_TESTS 1 4404_ACEOF 4405 4406fi 4407 4408if test x$enable_verbose_mode = xyes; then 4409 4410cat >>confdefs.h <<\_ACEOF 4411#define DBUS_ENABLE_VERBOSE_MODE 1 4412_ACEOF 4413 4414fi 4415 4416if test x$enable_asserts = xno; then 4417 4418cat >>confdefs.h <<\_ACEOF 4419#define DBUS_DISABLE_ASSERT 1 4420_ACEOF 4421 4422 4423cat >>confdefs.h <<\_ACEOF 4424#define G_DISABLE_ASSERT 1 4425_ACEOF 4426 4427 R_DYNAMIC_LDFLAG="" 4428else 4429 # -rdynamic is needed for glibc's backtrace_symbols to work. 4430 # No clue how much overhead this adds, but it's useful 4431 # to do this on any assertion failure, 4432 # so for now it's enabled anytime asserts are (currently not 4433 # in production builds). 4434 4435 # To get -rdynamic you pass -export-dynamic to libtool. 4436 4437cat >>confdefs.h <<\_ACEOF 4438#define DBUS_BUILT_R_DYNAMIC 1 4439_ACEOF 4440 4441 R_DYNAMIC_LDFLAG=-export-dynamic 4442fi 4443 4444 4445if test x$enable_checks = xno; then 4446 4447cat >>confdefs.h <<\_ACEOF 4448#define DBUS_DISABLE_CHECKS 1 4449_ACEOF 4450 4451 4452cat >>confdefs.h <<\_ACEOF 4453#define G_DISABLE_CHECKS 1 4454_ACEOF 4455 4456fi 4457 4458#### gcc warning flags 4459 4460cc_supports_flag() { 4461 echo "$as_me:$LINENO: checking whether $CC supports \"$@\"" >&5 4462echo $ECHO_N "checking whether $CC supports \"$@\"... $ECHO_C" >&6 4463 Cfile=/tmp/foo${$} 4464 touch ${Cfile}.c 4465 $CC -c "$@" ${Cfile}.c -o ${Cfile}.o >/dev/null 2>&1 4466 rc=$? 4467 rm -f ${Cfile}.c ${Cfile}.o 4468 case $rc in 4469 0) echo "$as_me:$LINENO: result: yes" >&5 4470echo "${ECHO_T}yes" >&6;; 4471 *) echo "$as_me:$LINENO: result: no" >&5 4472echo "${ECHO_T}no" >&6;; 4473 esac 4474 return $rc 4475} 4476 4477if test "x$GCC" = "xyes"; then 4478 case " $CFLAGS " in 4479 *[\ \ ]-Wall[\ \ ]*) ;; 4480 *) CFLAGS="$CFLAGS -Wall" ;; 4481 esac 4482 4483 case " $CFLAGS " in 4484 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;; 4485 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;; 4486 esac 4487 4488 case " $CFLAGS " in 4489 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;; 4490 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;; 4491 esac 4492 4493 case " $CFLAGS " in 4494 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;; 4495 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;; 4496 esac 4497 4498 case " $CFLAGS " in 4499 *[\ \ ]-Wnested-externs[\ \ ]*) ;; 4500 *) CFLAGS="$CFLAGS -Wnested-externs" ;; 4501 esac 4502 4503 case " $CFLAGS " in 4504 *[\ \ ]-Wpointer-arith[\ \ ]*) ;; 4505 *) CFLAGS="$CFLAGS -Wpointer-arith" ;; 4506 esac 4507 4508 case " $CFLAGS " in 4509 *[\ \ ]-Wcast-align[\ \ ]*) ;; 4510 *) CFLAGS="$CFLAGS -Wcast-align" ;; 4511 esac 4512 4513 case " $CFLAGS " in 4514 *[\ \ ]-Wfloat-equal[\ \ ]*) ;; 4515 *) if cc_supports_flag -Wfloat-equals; then 4516 CFLAGS="$CFLAGS -Wfloat-equal" 4517 fi 4518 ;; 4519 esac 4520 4521 case " $CFLAGS " in 4522 *[\ \ ]-Wsign-compare[\ \ ]*) ;; 4523 *) CFLAGS="$CFLAGS -Wsign-compare" ;; 4524 esac 4525 4526 case " $CFLAGS " in 4527 *[\ \ ]-Wdeclaration-after-statement[\ \ ]*) ;; 4528 *) if cc_supports_flag -Wdeclaration-after-statement; then 4529 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4530 fi 4531 ;; 4532 esac 4533 4534 case " $CFLAGS " in 4535 *[\ \ ]-fno-common[\ \ ]*) ;; 4536 *) if cc_supports_flag -fno-common; then 4537 CFLAGS="$CFLAGS -fno-common" 4538 fi 4539 ;; 4540 esac 4541 4542 case " $CFLAGS " in 4543 *[\ \ ]-fPIC[\ \ ]*) ;; 4544 *) if cc_supports_flag -fPIC; then 4545 CFLAGS="$CFLAGS -fPIC" 4546 fi 4547 ;; 4548 esac 4549 4550 if test "x$enable_ansi" = "xyes"; then 4551 case " $CFLAGS " in 4552 *[\ \ ]-ansi[\ \ ]*) ;; 4553 *) CFLAGS="$CFLAGS -ansi" ;; 4554 esac 4555 4556 case " $CFLAGS " in 4557 *[\ \ ]-D_POSIX_C_SOURCE*) ;; 4558 *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;; 4559 esac 4560 4561 case " $CFLAGS " in 4562 *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;; 4563 *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;; 4564 esac 4565 4566 case " $CFLAGS " in 4567 *[\ \ ]-pedantic[\ \ ]*) ;; 4568 *) CFLAGS="$CFLAGS -pedantic" ;; 4569 esac 4570 fi 4571 if test x$enable_gcov = xyes; then 4572 case " $CFLAGS " in 4573 *[\ \ ]-fprofile-arcs[\ \ ]*) ;; 4574 *) CFLAGS="$CFLAGS -fprofile-arcs" ;; 4575 esac 4576 case " $CFLAGS " in 4577 *[\ \ ]-ftest-coverage[\ \ ]*) ;; 4578 *) CFLAGS="$CFLAGS -ftest-coverage" ;; 4579 esac 4580 4581 ## remove optimization 4582 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'` 4583 fi 4584 else 4585 if test x$enable_gcov = xyes; then 4586 { { echo "$as_me:$LINENO: error: --enable-gcov can only be used with gcc" >&5 4587echo "$as_me: error: --enable-gcov can only be used with gcc" >&2;} 4588 { (exit 1); exit 1; }; } 4589 fi 4590fi 4591 4592# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris 4593# 4594case $target_os in 4595 solaris*) 4596 CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;; 4597esac 4598 4599# Check whether --enable-shared or --disable-shared was given. 4600if test "${enable_shared+set}" = set; then 4601 enableval="$enable_shared" 4602 p=${PACKAGE-default} 4603 case $enableval in 4604 yes) enable_shared=yes ;; 4605 no) enable_shared=no ;; 4606 *) 4607 enable_shared=no 4608 # Look at the argument we got. We use all the common list separators. 4609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4610 for pkg in $enableval; do 4611 IFS="$lt_save_ifs" 4612 if test "X$pkg" = "X$p"; then 4613 enable_shared=yes 4614 fi 4615 done 4616 IFS="$lt_save_ifs" 4617 ;; 4618 esac 4619else 4620 enable_shared=yes 4621fi; 4622 4623# Check whether --enable-static or --disable-static was given. 4624if test "${enable_static+set}" = set; then 4625 enableval="$enable_static" 4626 p=${PACKAGE-default} 4627 case $enableval in 4628 yes) enable_static=yes ;; 4629 no) enable_static=no ;; 4630 *) 4631 enable_static=no 4632 # Look at the argument we got. We use all the common list separators. 4633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4634 for pkg in $enableval; do 4635 IFS="$lt_save_ifs" 4636 if test "X$pkg" = "X$p"; then 4637 enable_static=yes 4638 fi 4639 done 4640 IFS="$lt_save_ifs" 4641 ;; 4642 esac 4643else 4644 enable_static=yes 4645fi; 4646 4647# Check whether --enable-fast-install or --disable-fast-install was given. 4648if test "${enable_fast_install+set}" = set; then 4649 enableval="$enable_fast_install" 4650 p=${PACKAGE-default} 4651 case $enableval in 4652 yes) enable_fast_install=yes ;; 4653 no) enable_fast_install=no ;; 4654 *) 4655 enable_fast_install=no 4656 # Look at the argument we got. We use all the common list separators. 4657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4658 for pkg in $enableval; do 4659 IFS="$lt_save_ifs" 4660 if test "X$pkg" = "X$p"; then 4661 enable_fast_install=yes 4662 fi 4663 done 4664 IFS="$lt_save_ifs" 4665 ;; 4666 esac 4667else 4668 enable_fast_install=yes 4669fi; 4670 4671echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4672echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4673if test "${lt_cv_path_SED+set}" = set; then 4674 echo $ECHO_N "(cached) $ECHO_C" >&6 4675else 4676 # Loop through the user's path and test for sed and gsed. 4677# Then use that list of sed's as ones to test for truncation. 4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679for as_dir in $PATH 4680do 4681 IFS=$as_save_IFS 4682 test -z "$as_dir" && as_dir=. 4683 for lt_ac_prog in sed gsed; do 4684 for ac_exec_ext in '' $ac_executable_extensions; do 4685 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4686 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4687 fi 4688 done 4689 done 4690done 4691IFS=$as_save_IFS 4692lt_ac_max=0 4693lt_ac_count=0 4694# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4695# along with /bin/sed that truncates output. 4696for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4697 test ! -f $lt_ac_sed && continue 4698 cat /dev/null > conftest.in 4699 lt_ac_count=0 4700 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4701 # Check for GNU sed and select it if it is found. 4702 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4703 lt_cv_path_SED=$lt_ac_sed 4704 break 4705 fi 4706 while true; do 4707 cat conftest.in conftest.in >conftest.tmp 4708 mv conftest.tmp conftest.in 4709 cp conftest.in conftest.nl 4710 echo >>conftest.nl 4711 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4712 cmp -s conftest.out conftest.nl || break 4713 # 10000 chars as input seems more than enough 4714 test $lt_ac_count -gt 10 && break 4715 lt_ac_count=`expr $lt_ac_count + 1` 4716 if test $lt_ac_count -gt $lt_ac_max; then 4717 lt_ac_max=$lt_ac_count 4718 lt_cv_path_SED=$lt_ac_sed 4719 fi 4720 done 4721done 4722 4723fi 4724 4725SED=$lt_cv_path_SED 4726 4727echo "$as_me:$LINENO: result: $SED" >&5 4728echo "${ECHO_T}$SED" >&6 4729 4730 4731# Check whether --with-gnu-ld or --without-gnu-ld was given. 4732if test "${with_gnu_ld+set}" = set; then 4733 withval="$with_gnu_ld" 4734 test "$withval" = no || with_gnu_ld=yes 4735else 4736 with_gnu_ld=no 4737fi; 4738ac_prog=ld 4739if test "$GCC" = yes; then 4740 # Check if gcc -print-prog-name=ld gives a path. 4741 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4742echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4743 case $host in 4744 *-*-mingw*) 4745 # gcc leaves a trailing carriage return which upsets mingw 4746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4747 *) 4748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4749 esac 4750 case $ac_prog in 4751 # Accept absolute paths. 4752 [\\/]* | ?:[\\/]*) 4753 re_direlt='/[^/][^/]*/\.\./' 4754 # Canonicalize the pathname of ld 4755 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4756 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4757 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4758 done 4759 test -z "$LD" && LD="$ac_prog" 4760 ;; 4761 "") 4762 # If it fails, then pretend we aren't using GCC. 4763 ac_prog=ld 4764 ;; 4765 *) 4766 # If it is relative, then search for the first ld in PATH. 4767 with_gnu_ld=unknown 4768 ;; 4769 esac 4770elif test "$with_gnu_ld" = yes; then 4771 echo "$as_me:$LINENO: checking for GNU ld" >&5 4772echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4773else 4774 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4775echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4776fi 4777if test "${lt_cv_path_LD+set}" = set; then 4778 echo $ECHO_N "(cached) $ECHO_C" >&6 4779else 4780 if test -z "$LD"; then 4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4782 for ac_dir in $PATH; do 4783 IFS="$lt_save_ifs" 4784 test -z "$ac_dir" && ac_dir=. 4785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4786 lt_cv_path_LD="$ac_dir/$ac_prog" 4787 # Check to see if the program is GNU ld. I'd rather use --version, 4788 # but apparently some variants of GNU ld only accept -v. 4789 # Break only if it was the GNU/non-GNU ld that we prefer. 4790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4791 *GNU* | *'with BFD'*) 4792 test "$with_gnu_ld" != no && break 4793 ;; 4794 *) 4795 test "$with_gnu_ld" != yes && break 4796 ;; 4797 esac 4798 fi 4799 done 4800 IFS="$lt_save_ifs" 4801else 4802 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4803fi 4804fi 4805 4806LD="$lt_cv_path_LD" 4807if test -n "$LD"; then 4808 echo "$as_me:$LINENO: result: $LD" >&5 4809echo "${ECHO_T}$LD" >&6 4810else 4811 echo "$as_me:$LINENO: result: no" >&5 4812echo "${ECHO_T}no" >&6 4813fi 4814test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4815echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4816 { (exit 1); exit 1; }; } 4817echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4818echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4819if test "${lt_cv_prog_gnu_ld+set}" = set; then 4820 echo $ECHO_N "(cached) $ECHO_C" >&6 4821else 4822 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4823case `$LD -v 2>&1 </dev/null` in 4824*GNU* | *'with BFD'*) 4825 lt_cv_prog_gnu_ld=yes 4826 ;; 4827*) 4828 lt_cv_prog_gnu_ld=no 4829 ;; 4830esac 4831fi 4832echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4833echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4834with_gnu_ld=$lt_cv_prog_gnu_ld 4835 4836 4837echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4838echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4839if test "${lt_cv_ld_reload_flag+set}" = set; then 4840 echo $ECHO_N "(cached) $ECHO_C" >&6 4841else 4842 lt_cv_ld_reload_flag='-r' 4843fi 4844echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4845echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4846reload_flag=$lt_cv_ld_reload_flag 4847case $reload_flag in 4848"" | " "*) ;; 4849*) reload_flag=" $reload_flag" ;; 4850esac 4851reload_cmds='$LD$reload_flag -o $output$reload_objs' 4852case $host_os in 4853 darwin*) 4854 if test "$GCC" = yes; then 4855 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4856 else 4857 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4858 fi 4859 ;; 4860esac 4861 4862echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4863echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4864if test "${lt_cv_path_NM+set}" = set; then 4865 echo $ECHO_N "(cached) $ECHO_C" >&6 4866else 4867 if test -n "$NM"; then 4868 # Let the user override the test. 4869 lt_cv_path_NM="$NM" 4870else 4871 lt_nm_to_check="${ac_tool_prefix}nm" 4872 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4873 lt_nm_to_check="$lt_nm_to_check nm" 4874 fi 4875 for lt_tmp_nm in $lt_nm_to_check; do 4876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4877 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4878 IFS="$lt_save_ifs" 4879 test -z "$ac_dir" && ac_dir=. 4880 tmp_nm="$ac_dir/$lt_tmp_nm" 4881 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4882 # Check to see if the nm accepts a BSD-compat flag. 4883 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4884 # nm: unknown option "B" ignored 4885 # Tru64's nm complains that /dev/null is an invalid object file 4886 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4887 */dev/null* | *'Invalid file or object type'*) 4888 lt_cv_path_NM="$tmp_nm -B" 4889 break 4890 ;; 4891 *) 4892 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4893 */dev/null*) 4894 lt_cv_path_NM="$tmp_nm -p" 4895 break 4896 ;; 4897 *) 4898 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4899 continue # so that we can try to find one that supports BSD flags 4900 ;; 4901 esac 4902 ;; 4903 esac 4904 fi 4905 done 4906 IFS="$lt_save_ifs" 4907 done 4908 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4909fi 4910fi 4911echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4912echo "${ECHO_T}$lt_cv_path_NM" >&6 4913NM="$lt_cv_path_NM" 4914 4915echo "$as_me:$LINENO: checking whether ln -s works" >&5 4916echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4917LN_S=$as_ln_s 4918if test "$LN_S" = "ln -s"; then 4919 echo "$as_me:$LINENO: result: yes" >&5 4920echo "${ECHO_T}yes" >&6 4921else 4922 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4923echo "${ECHO_T}no, using $LN_S" >&6 4924fi 4925 4926echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4927echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4928if test "${lt_cv_deplibs_check_method+set}" = set; then 4929 echo $ECHO_N "(cached) $ECHO_C" >&6 4930else 4931 lt_cv_file_magic_cmd='$MAGIC_CMD' 4932lt_cv_file_magic_test_file= 4933lt_cv_deplibs_check_method='unknown' 4934# Need to set the preceding variable on all platforms that support 4935# interlibrary dependencies. 4936# 'none' -- dependencies not supported. 4937# `unknown' -- same as none, but documents that we really don't know. 4938# 'pass_all' -- all dependencies passed with no checks. 4939# 'test_compile' -- check by making test program. 4940# 'file_magic [[regex]]' -- check by looking for files in library path 4941# which responds to the $file_magic_cmd with a given extended regex. 4942# If you have `file' or equivalent on your system and you're not sure 4943# whether `pass_all' will *always* work, you probably want this one. 4944 4945case $host_os in 4946aix4* | aix5*) 4947 lt_cv_deplibs_check_method=pass_all 4948 ;; 4949 4950beos*) 4951 lt_cv_deplibs_check_method=pass_all 4952 ;; 4953 4954bsdi[45]*) 4955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4956 lt_cv_file_magic_cmd='/usr/bin/file -L' 4957 lt_cv_file_magic_test_file=/shlib/libc.so 4958 ;; 4959 4960cygwin*) 4961 # func_win32_libid is a shell function defined in ltmain.sh 4962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4963 lt_cv_file_magic_cmd='func_win32_libid' 4964 ;; 4965 4966mingw* | pw32*) 4967 # Base MSYS/MinGW do not provide the 'file' command needed by 4968 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4969 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4970 lt_cv_file_magic_cmd='$OBJDUMP -f' 4971 ;; 4972 4973darwin* | rhapsody*) 4974 lt_cv_deplibs_check_method=pass_all 4975 ;; 4976 4977freebsd* | kfreebsd*-gnu | dragonfly*) 4978 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4979 case $host_cpu in 4980 i*86 ) 4981 # Not sure whether the presence of OpenBSD here was a mistake. 4982 # Let's accept both of them until this is cleared up. 4983 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4984 lt_cv_file_magic_cmd=/usr/bin/file 4985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4986 ;; 4987 esac 4988 else 4989 lt_cv_deplibs_check_method=pass_all 4990 fi 4991 ;; 4992 4993gnu*) 4994 lt_cv_deplibs_check_method=pass_all 4995 ;; 4996 4997hpux10.20* | hpux11*) 4998 lt_cv_file_magic_cmd=/usr/bin/file 4999 case $host_cpu in 5000 ia64*) 5001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5003 ;; 5004 hppa*64*) 5005 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]' 5006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5007 ;; 5008 *) 5009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5010 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5011 ;; 5012 esac 5013 ;; 5014 5015interix3*) 5016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5018 ;; 5019 5020irix5* | irix6* | nonstopux*) 5021 case $LD in 5022 *-32|*"-32 ") libmagic=32-bit;; 5023 *-n32|*"-n32 ") libmagic=N32;; 5024 *-64|*"-64 ") libmagic=64-bit;; 5025 *) libmagic=never-match;; 5026 esac 5027 lt_cv_deplibs_check_method=pass_all 5028 ;; 5029 5030# This must be Linux ELF. 5031linux*) 5032 lt_cv_deplibs_check_method=pass_all 5033 ;; 5034 5035netbsd*) 5036 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5038 else 5039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5040 fi 5041 ;; 5042 5043newos6*) 5044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5045 lt_cv_file_magic_cmd=/usr/bin/file 5046 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5047 ;; 5048 5049nto-qnx*) 5050 lt_cv_deplibs_check_method=unknown 5051 ;; 5052 5053openbsd*) 5054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5056 else 5057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5058 fi 5059 ;; 5060 5061osf3* | osf4* | osf5*) 5062 lt_cv_deplibs_check_method=pass_all 5063 ;; 5064 5065solaris*) 5066 lt_cv_deplibs_check_method=pass_all 5067 ;; 5068 5069sysv4 | sysv4.3*) 5070 case $host_vendor in 5071 motorola) 5072 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]' 5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5074 ;; 5075 ncr) 5076 lt_cv_deplibs_check_method=pass_all 5077 ;; 5078 sequent) 5079 lt_cv_file_magic_cmd='/bin/file' 5080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5081 ;; 5082 sni) 5083 lt_cv_file_magic_cmd='/bin/file' 5084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5085 lt_cv_file_magic_test_file=/lib/libc.so 5086 ;; 5087 siemens) 5088 lt_cv_deplibs_check_method=pass_all 5089 ;; 5090 pc) 5091 lt_cv_deplibs_check_method=pass_all 5092 ;; 5093 esac 5094 ;; 5095 5096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5097 lt_cv_deplibs_check_method=pass_all 5098 ;; 5099esac 5100 5101fi 5102echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5103echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 5104file_magic_cmd=$lt_cv_file_magic_cmd 5105deplibs_check_method=$lt_cv_deplibs_check_method 5106test -z "$deplibs_check_method" && deplibs_check_method=unknown 5107 5108 5109 5110 5111# If no C compiler was specified, use CC. 5112LTCC=${LTCC-"$CC"} 5113 5114# If no C compiler flags were specified, use CFLAGS. 5115LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5116 5117# Allow CC to be a program name with arguments. 5118compiler=$CC 5119 5120# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5121if test "${enable_libtool_lock+set}" = set; then 5122 enableval="$enable_libtool_lock" 5123 5124fi; 5125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5126 5127# Some flags need to be propagated to the compiler or linker for good 5128# libtool support. 5129case $host in 5130ia64-*-hpux*) 5131 # Find out which ABI we are using. 5132 echo 'int i;' > conftest.$ac_ext 5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5134 (eval $ac_compile) 2>&5 5135 ac_status=$? 5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5137 (exit $ac_status); }; then 5138 case `/usr/bin/file conftest.$ac_objext` in 5139 *ELF-32*) 5140 HPUX_IA64_MODE="32" 5141 ;; 5142 *ELF-64*) 5143 HPUX_IA64_MODE="64" 5144 ;; 5145 esac 5146 fi 5147 rm -rf conftest* 5148 ;; 5149*-*-irix6*) 5150 # Find out which ABI we are using. 5151 echo '#line 5151 "configure"' > conftest.$ac_ext 5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5153 (eval $ac_compile) 2>&5 5154 ac_status=$? 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); }; then 5157 if test "$lt_cv_prog_gnu_ld" = yes; then 5158 case `/usr/bin/file conftest.$ac_objext` in 5159 *32-bit*) 5160 LD="${LD-ld} -melf32bsmip" 5161 ;; 5162 *N32*) 5163 LD="${LD-ld} -melf32bmipn32" 5164 ;; 5165 *64-bit*) 5166 LD="${LD-ld} -melf64bmip" 5167 ;; 5168 esac 5169 else 5170 case `/usr/bin/file conftest.$ac_objext` in 5171 *32-bit*) 5172 LD="${LD-ld} -32" 5173 ;; 5174 *N32*) 5175 LD="${LD-ld} -n32" 5176 ;; 5177 *64-bit*) 5178 LD="${LD-ld} -64" 5179 ;; 5180 esac 5181 fi 5182 fi 5183 rm -rf conftest* 5184 ;; 5185 5186x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5187 # Find out which ABI we are using. 5188 echo 'int i;' > conftest.$ac_ext 5189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5190 (eval $ac_compile) 2>&5 5191 ac_status=$? 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); }; then 5194 case `/usr/bin/file conftest.o` in 5195 *32-bit*) 5196 case $host in 5197 x86_64-*linux*) 5198 LD="${LD-ld} -m elf_i386" 5199 ;; 5200 ppc64-*linux*|powerpc64-*linux*) 5201 LD="${LD-ld} -m elf32ppclinux" 5202 ;; 5203 s390x-*linux*) 5204 LD="${LD-ld} -m elf_s390" 5205 ;; 5206 sparc64-*linux*) 5207 LD="${LD-ld} -m elf32_sparc" 5208 ;; 5209 esac 5210 ;; 5211 *64-bit*) 5212 case $host in 5213 x86_64-*linux*) 5214 LD="${LD-ld} -m elf_x86_64" 5215 ;; 5216 ppc*-*linux*|powerpc*-*linux*) 5217 LD="${LD-ld} -m elf64ppc" 5218 ;; 5219 s390*-*linux*) 5220 LD="${LD-ld} -m elf64_s390" 5221 ;; 5222 sparc*-*linux*) 5223 LD="${LD-ld} -m elf64_sparc" 5224 ;; 5225 esac 5226 ;; 5227 esac 5228 fi 5229 rm -rf conftest* 5230 ;; 5231 5232*-*-sco3.2v5*) 5233 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5234 SAVE_CFLAGS="$CFLAGS" 5235 CFLAGS="$CFLAGS -belf" 5236 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5237echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5238if test "${lt_cv_cc_needs_belf+set}" = set; then 5239 echo $ECHO_N "(cached) $ECHO_C" >&6 5240else 5241 ac_ext=c 5242ac_cpp='$CPP $CPPFLAGS' 5243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5245ac_compiler_gnu=$ac_cv_c_compiler_gnu 5246 5247 cat >conftest.$ac_ext <<_ACEOF 5248/* confdefs.h. */ 5249_ACEOF 5250cat confdefs.h >>conftest.$ac_ext 5251cat >>conftest.$ac_ext <<_ACEOF 5252/* end confdefs.h. */ 5253 5254int 5255main () 5256{ 5257 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262rm -f conftest.$ac_objext conftest$ac_exeext 5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5264 (eval $ac_link) 2>conftest.er1 5265 ac_status=$? 5266 grep -v '^ *+' conftest.er1 >conftest.err 5267 rm -f conftest.er1 5268 cat conftest.err >&5 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } && 5271 { ac_try='test -z "$ac_c_werror_flag" 5272 || test ! -s conftest.err' 5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5274 (eval $ac_try) 2>&5 5275 ac_status=$? 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); }; } && 5278 { ac_try='test -s conftest$ac_exeext' 5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5280 (eval $ac_try) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; }; then 5284 lt_cv_cc_needs_belf=yes 5285else 5286 echo "$as_me: failed program was:" >&5 5287sed 's/^/| /' conftest.$ac_ext >&5 5288 5289lt_cv_cc_needs_belf=no 5290fi 5291rm -f conftest.err conftest.$ac_objext \ 5292 conftest$ac_exeext conftest.$ac_ext 5293 ac_ext=c 5294ac_cpp='$CPP $CPPFLAGS' 5295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5297ac_compiler_gnu=$ac_cv_c_compiler_gnu 5298 5299fi 5300echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5301echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5302 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5303 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5304 CFLAGS="$SAVE_CFLAGS" 5305 fi 5306 ;; 5307sparc*-*solaris*) 5308 # Find out which ABI we are using. 5309 echo 'int i;' > conftest.$ac_ext 5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5311 (eval $ac_compile) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); }; then 5315 case `/usr/bin/file conftest.o` in 5316 *64-bit*) 5317 case $lt_cv_prog_gnu_ld in 5318 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5319 *) LD="${LD-ld} -64" ;; 5320 esac 5321 ;; 5322 esac 5323 fi 5324 rm -rf conftest* 5325 ;; 5326 5327 5328esac 5329 5330need_locks="$enable_libtool_lock" 5331 5332 5333# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5344 inttypes.h stdint.h unistd.h 5345do 5346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5347echo "$as_me:$LINENO: checking for $ac_header" >&5 5348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5349if eval "test \"\${$as_ac_Header+set}\" = set"; then 5350 echo $ECHO_N "(cached) $ECHO_C" >&6 5351else 5352 cat >conftest.$ac_ext <<_ACEOF 5353/* confdefs.h. */ 5354_ACEOF 5355cat confdefs.h >>conftest.$ac_ext 5356cat >>conftest.$ac_ext <<_ACEOF 5357/* end confdefs.h. */ 5358$ac_includes_default 5359 5360#include <$ac_header> 5361_ACEOF 5362rm -f conftest.$ac_objext 5363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5364 (eval $ac_compile) 2>conftest.er1 5365 ac_status=$? 5366 grep -v '^ *+' conftest.er1 >conftest.err 5367 rm -f conftest.er1 5368 cat conftest.err >&5 5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5370 (exit $ac_status); } && 5371 { ac_try='test -z "$ac_c_werror_flag" 5372 || test ! -s conftest.err' 5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5374 (eval $ac_try) 2>&5 5375 ac_status=$? 5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5377 (exit $ac_status); }; } && 5378 { ac_try='test -s conftest.$ac_objext' 5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5380 (eval $ac_try) 2>&5 5381 ac_status=$? 5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5383 (exit $ac_status); }; }; then 5384 eval "$as_ac_Header=yes" 5385else 5386 echo "$as_me: failed program was:" >&5 5387sed 's/^/| /' conftest.$ac_ext >&5 5388 5389eval "$as_ac_Header=no" 5390fi 5391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5392fi 5393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5395if test `eval echo '${'$as_ac_Header'}'` = yes; then 5396 cat >>confdefs.h <<_ACEOF 5397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5398_ACEOF 5399 5400fi 5401 5402done 5403 5404 5405 5406for ac_header in dlfcn.h 5407do 5408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5409if eval "test \"\${$as_ac_Header+set}\" = set"; then 5410 echo "$as_me:$LINENO: checking for $ac_header" >&5 5411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5412if eval "test \"\${$as_ac_Header+set}\" = set"; then 5413 echo $ECHO_N "(cached) $ECHO_C" >&6 5414fi 5415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5417else 5418 # Is the header compilable? 5419echo "$as_me:$LINENO: checking $ac_header usability" >&5 5420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5421cat >conftest.$ac_ext <<_ACEOF 5422/* confdefs.h. */ 5423_ACEOF 5424cat confdefs.h >>conftest.$ac_ext 5425cat >>conftest.$ac_ext <<_ACEOF 5426/* end confdefs.h. */ 5427$ac_includes_default 5428#include <$ac_header> 5429_ACEOF 5430rm -f conftest.$ac_objext 5431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5432 (eval $ac_compile) 2>conftest.er1 5433 ac_status=$? 5434 grep -v '^ *+' conftest.er1 >conftest.err 5435 rm -f conftest.er1 5436 cat conftest.err >&5 5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5438 (exit $ac_status); } && 5439 { ac_try='test -z "$ac_c_werror_flag" 5440 || test ! -s conftest.err' 5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5442 (eval $ac_try) 2>&5 5443 ac_status=$? 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); }; } && 5446 { ac_try='test -s conftest.$ac_objext' 5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5448 (eval $ac_try) 2>&5 5449 ac_status=$? 5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5451 (exit $ac_status); }; }; then 5452 ac_header_compiler=yes 5453else 5454 echo "$as_me: failed program was:" >&5 5455sed 's/^/| /' conftest.$ac_ext >&5 5456 5457ac_header_compiler=no 5458fi 5459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5461echo "${ECHO_T}$ac_header_compiler" >&6 5462 5463# Is the header present? 5464echo "$as_me:$LINENO: checking $ac_header presence" >&5 5465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5466cat >conftest.$ac_ext <<_ACEOF 5467/* confdefs.h. */ 5468_ACEOF 5469cat confdefs.h >>conftest.$ac_ext 5470cat >>conftest.$ac_ext <<_ACEOF 5471/* end confdefs.h. */ 5472#include <$ac_header> 5473_ACEOF 5474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5476 ac_status=$? 5477 grep -v '^ *+' conftest.er1 >conftest.err 5478 rm -f conftest.er1 5479 cat conftest.err >&5 5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5481 (exit $ac_status); } >/dev/null; then 5482 if test -s conftest.err; then 5483 ac_cpp_err=$ac_c_preproc_warn_flag 5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5485 else 5486 ac_cpp_err= 5487 fi 5488else 5489 ac_cpp_err=yes 5490fi 5491if test -z "$ac_cpp_err"; then 5492 ac_header_preproc=yes 5493else 5494 echo "$as_me: failed program was:" >&5 5495sed 's/^/| /' conftest.$ac_ext >&5 5496 5497 ac_header_preproc=no 5498fi 5499rm -f conftest.err conftest.$ac_ext 5500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5501echo "${ECHO_T}$ac_header_preproc" >&6 5502 5503# So? What about this header? 5504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5505 yes:no: ) 5506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5510 ac_header_preproc=yes 5511 ;; 5512 no:yes:* ) 5513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5525 ( 5526 cat <<\_ASBOX 5527## ------------------------------------------ ## 5528## Report this to the AC_PACKAGE_NAME lists. ## 5529## ------------------------------------------ ## 5530_ASBOX 5531 ) | 5532 sed "s/^/$as_me: WARNING: /" >&2 5533 ;; 5534esac 5535echo "$as_me:$LINENO: checking for $ac_header" >&5 5536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5537if eval "test \"\${$as_ac_Header+set}\" = set"; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539else 5540 eval "$as_ac_Header=\$ac_header_preproc" 5541fi 5542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5544 5545fi 5546if test `eval echo '${'$as_ac_Header'}'` = yes; then 5547 cat >>confdefs.h <<_ACEOF 5548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5549_ACEOF 5550 5551fi 5552 5553done 5554 5555 5556 5557if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5558 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5559 (test "X$CXX" != "Xg++"))) ; then 5560 ac_ext=cc 5561ac_cpp='$CXXCPP $CPPFLAGS' 5562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5565echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5566echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5567if test -z "$CXXCPP"; then 5568 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5569 echo $ECHO_N "(cached) $ECHO_C" >&6 5570else 5571 # Double quotes because CXXCPP needs to be expanded 5572 for CXXCPP in "$CXX -E" "/lib/cpp" 5573 do 5574 ac_preproc_ok=false 5575for ac_cxx_preproc_warn_flag in '' yes 5576do 5577 # Use a header file that comes with gcc, so configuring glibc 5578 # with a fresh cross-compiler works. 5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5580 # <limits.h> exists even on freestanding compilers. 5581 # On the NeXT, cc -E runs the code through the compiler's parser, 5582 # not just through cpp. "Syntax error" is here to catch this case. 5583 cat >conftest.$ac_ext <<_ACEOF 5584/* confdefs.h. */ 5585_ACEOF 5586cat confdefs.h >>conftest.$ac_ext 5587cat >>conftest.$ac_ext <<_ACEOF 5588/* end confdefs.h. */ 5589#ifdef __STDC__ 5590# include <limits.h> 5591#else 5592# include <assert.h> 5593#endif 5594 Syntax error 5595_ACEOF 5596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5598 ac_status=$? 5599 grep -v '^ *+' conftest.er1 >conftest.err 5600 rm -f conftest.er1 5601 cat conftest.err >&5 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); } >/dev/null; then 5604 if test -s conftest.err; then 5605 ac_cpp_err=$ac_cxx_preproc_warn_flag 5606 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5607 else 5608 ac_cpp_err= 5609 fi 5610else 5611 ac_cpp_err=yes 5612fi 5613if test -z "$ac_cpp_err"; then 5614 : 5615else 5616 echo "$as_me: failed program was:" >&5 5617sed 's/^/| /' conftest.$ac_ext >&5 5618 5619 # Broken: fails on valid input. 5620continue 5621fi 5622rm -f conftest.err conftest.$ac_ext 5623 5624 # OK, works on sane cases. Now check whether non-existent headers 5625 # can be detected and how. 5626 cat >conftest.$ac_ext <<_ACEOF 5627/* confdefs.h. */ 5628_ACEOF 5629cat confdefs.h >>conftest.$ac_ext 5630cat >>conftest.$ac_ext <<_ACEOF 5631/* end confdefs.h. */ 5632#include <ac_nonexistent.h> 5633_ACEOF 5634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5636 ac_status=$? 5637 grep -v '^ *+' conftest.er1 >conftest.err 5638 rm -f conftest.er1 5639 cat conftest.err >&5 5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5641 (exit $ac_status); } >/dev/null; then 5642 if test -s conftest.err; then 5643 ac_cpp_err=$ac_cxx_preproc_warn_flag 5644 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5645 else 5646 ac_cpp_err= 5647 fi 5648else 5649 ac_cpp_err=yes 5650fi 5651if test -z "$ac_cpp_err"; then 5652 # Broken: success on invalid input. 5653continue 5654else 5655 echo "$as_me: failed program was:" >&5 5656sed 's/^/| /' conftest.$ac_ext >&5 5657 5658 # Passes both tests. 5659ac_preproc_ok=: 5660break 5661fi 5662rm -f conftest.err conftest.$ac_ext 5663 5664done 5665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5666rm -f conftest.err conftest.$ac_ext 5667if $ac_preproc_ok; then 5668 break 5669fi 5670 5671 done 5672 ac_cv_prog_CXXCPP=$CXXCPP 5673 5674fi 5675 CXXCPP=$ac_cv_prog_CXXCPP 5676else 5677 ac_cv_prog_CXXCPP=$CXXCPP 5678fi 5679echo "$as_me:$LINENO: result: $CXXCPP" >&5 5680echo "${ECHO_T}$CXXCPP" >&6 5681ac_preproc_ok=false 5682for ac_cxx_preproc_warn_flag in '' yes 5683do 5684 # Use a header file that comes with gcc, so configuring glibc 5685 # with a fresh cross-compiler works. 5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5687 # <limits.h> exists even on freestanding compilers. 5688 # On the NeXT, cc -E runs the code through the compiler's parser, 5689 # not just through cpp. "Syntax error" is here to catch this case. 5690 cat >conftest.$ac_ext <<_ACEOF 5691/* confdefs.h. */ 5692_ACEOF 5693cat confdefs.h >>conftest.$ac_ext 5694cat >>conftest.$ac_ext <<_ACEOF 5695/* end confdefs.h. */ 5696#ifdef __STDC__ 5697# include <limits.h> 5698#else 5699# include <assert.h> 5700#endif 5701 Syntax error 5702_ACEOF 5703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5705 ac_status=$? 5706 grep -v '^ *+' conftest.er1 >conftest.err 5707 rm -f conftest.er1 5708 cat conftest.err >&5 5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 (exit $ac_status); } >/dev/null; then 5711 if test -s conftest.err; then 5712 ac_cpp_err=$ac_cxx_preproc_warn_flag 5713 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5714 else 5715 ac_cpp_err= 5716 fi 5717else 5718 ac_cpp_err=yes 5719fi 5720if test -z "$ac_cpp_err"; then 5721 : 5722else 5723 echo "$as_me: failed program was:" >&5 5724sed 's/^/| /' conftest.$ac_ext >&5 5725 5726 # Broken: fails on valid input. 5727continue 5728fi 5729rm -f conftest.err conftest.$ac_ext 5730 5731 # OK, works on sane cases. Now check whether non-existent headers 5732 # can be detected and how. 5733 cat >conftest.$ac_ext <<_ACEOF 5734/* confdefs.h. */ 5735_ACEOF 5736cat confdefs.h >>conftest.$ac_ext 5737cat >>conftest.$ac_ext <<_ACEOF 5738/* end confdefs.h. */ 5739#include <ac_nonexistent.h> 5740_ACEOF 5741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5743 ac_status=$? 5744 grep -v '^ *+' conftest.er1 >conftest.err 5745 rm -f conftest.er1 5746 cat conftest.err >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); } >/dev/null; then 5749 if test -s conftest.err; then 5750 ac_cpp_err=$ac_cxx_preproc_warn_flag 5751 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5752 else 5753 ac_cpp_err= 5754 fi 5755else 5756 ac_cpp_err=yes 5757fi 5758if test -z "$ac_cpp_err"; then 5759 # Broken: success on invalid input. 5760continue 5761else 5762 echo "$as_me: failed program was:" >&5 5763sed 's/^/| /' conftest.$ac_ext >&5 5764 5765 # Passes both tests. 5766ac_preproc_ok=: 5767break 5768fi 5769rm -f conftest.err conftest.$ac_ext 5770 5771done 5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5773rm -f conftest.err conftest.$ac_ext 5774if $ac_preproc_ok; then 5775 : 5776else 5777 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5778See \`config.log' for more details." >&5 5779echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5780See \`config.log' for more details." >&2;} 5781 { (exit 1); exit 1; }; } 5782fi 5783 5784ac_ext=cc 5785ac_cpp='$CXXCPP $CPPFLAGS' 5786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5789 5790fi 5791 5792 5793ac_ext=f 5794ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5795ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5796ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5797if test -n "$ac_tool_prefix"; then 5798 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5799 do 5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5801set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5802echo "$as_me:$LINENO: checking for $ac_word" >&5 5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5804if test "${ac_cv_prog_F77+set}" = set; then 5805 echo $ECHO_N "(cached) $ECHO_C" >&6 5806else 5807 if test -n "$F77"; then 5808 ac_cv_prog_F77="$F77" # Let the user override the test. 5809else 5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811for as_dir in $PATH 5812do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5817 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821done 5822done 5823 5824fi 5825fi 5826F77=$ac_cv_prog_F77 5827if test -n "$F77"; then 5828 echo "$as_me:$LINENO: result: $F77" >&5 5829echo "${ECHO_T}$F77" >&6 5830else 5831 echo "$as_me:$LINENO: result: no" >&5 5832echo "${ECHO_T}no" >&6 5833fi 5834 5835 test -n "$F77" && break 5836 done 5837fi 5838if test -z "$F77"; then 5839 ac_ct_F77=$F77 5840 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5841do 5842 # Extract the first word of "$ac_prog", so it can be a program name with args. 5843set dummy $ac_prog; ac_word=$2 5844echo "$as_me:$LINENO: checking for $ac_word" >&5 5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5846if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5847 echo $ECHO_N "(cached) $ECHO_C" >&6 5848else 5849 if test -n "$ac_ct_F77"; then 5850 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5851else 5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853for as_dir in $PATH 5854do 5855 IFS=$as_save_IFS 5856 test -z "$as_dir" && as_dir=. 5857 for ac_exec_ext in '' $ac_executable_extensions; do 5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5859 ac_cv_prog_ac_ct_F77="$ac_prog" 5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5861 break 2 5862 fi 5863done 5864done 5865 5866fi 5867fi 5868ac_ct_F77=$ac_cv_prog_ac_ct_F77 5869if test -n "$ac_ct_F77"; then 5870 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5871echo "${ECHO_T}$ac_ct_F77" >&6 5872else 5873 echo "$as_me:$LINENO: result: no" >&5 5874echo "${ECHO_T}no" >&6 5875fi 5876 5877 test -n "$ac_ct_F77" && break 5878done 5879 5880 F77=$ac_ct_F77 5881fi 5882 5883 5884# Provide some information about the compiler. 5885echo "$as_me:5885:" \ 5886 "checking for Fortran 77 compiler version" >&5 5887ac_compiler=`set X $ac_compile; echo $2` 5888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5889 (eval $ac_compiler --version </dev/null >&5) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); } 5893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5894 (eval $ac_compiler -v </dev/null >&5) 2>&5 5895 ac_status=$? 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5897 (exit $ac_status); } 5898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5899 (eval $ac_compiler -V </dev/null >&5) 2>&5 5900 ac_status=$? 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); } 5903rm -f a.out 5904 5905# If we don't use `.F' as extension, the preprocessor is not run on the 5906# input file. (Note that this only needs to work for GNU compilers.) 5907ac_save_ext=$ac_ext 5908ac_ext=F 5909echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5910echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5911if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913else 5914 cat >conftest.$ac_ext <<_ACEOF 5915 program main 5916#ifndef __GNUC__ 5917 choke me 5918#endif 5919 5920 end 5921_ACEOF 5922rm -f conftest.$ac_objext 5923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5924 (eval $ac_compile) 2>conftest.er1 5925 ac_status=$? 5926 grep -v '^ *+' conftest.er1 >conftest.err 5927 rm -f conftest.er1 5928 cat conftest.err >&5 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); } && 5931 { ac_try='test -z "$ac_f77_werror_flag" 5932 || test ! -s conftest.err' 5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5934 (eval $ac_try) 2>&5 5935 ac_status=$? 5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5937 (exit $ac_status); }; } && 5938 { ac_try='test -s conftest.$ac_objext' 5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5940 (eval $ac_try) 2>&5 5941 ac_status=$? 5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5943 (exit $ac_status); }; }; then 5944 ac_compiler_gnu=yes 5945else 5946 echo "$as_me: failed program was:" >&5 5947sed 's/^/| /' conftest.$ac_ext >&5 5948 5949ac_compiler_gnu=no 5950fi 5951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5952ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5953 5954fi 5955echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5956echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5957ac_ext=$ac_save_ext 5958ac_test_FFLAGS=${FFLAGS+set} 5959ac_save_FFLAGS=$FFLAGS 5960FFLAGS= 5961echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5962echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5963if test "${ac_cv_prog_f77_g+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965else 5966 FFLAGS=-g 5967cat >conftest.$ac_ext <<_ACEOF 5968 program main 5969 5970 end 5971_ACEOF 5972rm -f conftest.$ac_objext 5973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5974 (eval $ac_compile) 2>conftest.er1 5975 ac_status=$? 5976 grep -v '^ *+' conftest.er1 >conftest.err 5977 rm -f conftest.er1 5978 cat conftest.err >&5 5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5980 (exit $ac_status); } && 5981 { ac_try='test -z "$ac_f77_werror_flag" 5982 || test ! -s conftest.err' 5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5984 (eval $ac_try) 2>&5 5985 ac_status=$? 5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5987 (exit $ac_status); }; } && 5988 { ac_try='test -s conftest.$ac_objext' 5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5990 (eval $ac_try) 2>&5 5991 ac_status=$? 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); }; }; then 5994 ac_cv_prog_f77_g=yes 5995else 5996 echo "$as_me: failed program was:" >&5 5997sed 's/^/| /' conftest.$ac_ext >&5 5998 5999ac_cv_prog_f77_g=no 6000fi 6001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6002 6003fi 6004echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6005echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6006if test "$ac_test_FFLAGS" = set; then 6007 FFLAGS=$ac_save_FFLAGS 6008elif test $ac_cv_prog_f77_g = yes; then 6009 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6010 FFLAGS="-g -O2" 6011 else 6012 FFLAGS="-g" 6013 fi 6014else 6015 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6016 FFLAGS="-O2" 6017 else 6018 FFLAGS= 6019 fi 6020fi 6021 6022G77=`test $ac_compiler_gnu = yes && echo yes` 6023ac_ext=c 6024ac_cpp='$CPP $CPPFLAGS' 6025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6027ac_compiler_gnu=$ac_cv_c_compiler_gnu 6028 6029 6030 6031# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6032 6033# find the maximum length of command line arguments 6034echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6035echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6036if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6037 echo $ECHO_N "(cached) $ECHO_C" >&6 6038else 6039 i=0 6040 teststring="ABCD" 6041 6042 case $build_os in 6043 msdosdjgpp*) 6044 # On DJGPP, this test can blow up pretty badly due to problems in libc 6045 # (any single argument exceeding 2000 bytes causes a buffer overrun 6046 # during glob expansion). Even if it were fixed, the result of this 6047 # check would be larger than it should be. 6048 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6049 ;; 6050 6051 gnu*) 6052 # Under GNU Hurd, this test is not required because there is 6053 # no limit to the length of command line arguments. 6054 # Libtool will interpret -1 as no limit whatsoever 6055 lt_cv_sys_max_cmd_len=-1; 6056 ;; 6057 6058 cygwin* | mingw*) 6059 # On Win9x/ME, this test blows up -- it succeeds, but takes 6060 # about 5 minutes as the teststring grows exponentially. 6061 # Worse, since 9x/ME are not pre-emptively multitasking, 6062 # you end up with a "frozen" computer, even though with patience 6063 # the test eventually succeeds (with a max line length of 256k). 6064 # Instead, let's just punt: use the minimum linelength reported by 6065 # all of the supported platforms: 8192 (on NT/2K/XP). 6066 lt_cv_sys_max_cmd_len=8192; 6067 ;; 6068 6069 amigaos*) 6070 # On AmigaOS with pdksh, this test takes hours, literally. 6071 # So we just punt and use a minimum line length of 8192. 6072 lt_cv_sys_max_cmd_len=8192; 6073 ;; 6074 6075 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6076 # This has been around since 386BSD, at least. Likely further. 6077 if test -x /sbin/sysctl; then 6078 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6079 elif test -x /usr/sbin/sysctl; then 6080 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6081 else 6082 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6083 fi 6084 # And add a safety zone 6085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6087 ;; 6088 6089 interix*) 6090 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6091 lt_cv_sys_max_cmd_len=196608 6092 ;; 6093 6094 osf*) 6095 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6096 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6097 # nice to cause kernel panics so lets avoid the loop below. 6098 # First set a reasonable default. 6099 lt_cv_sys_max_cmd_len=16384 6100 # 6101 if test -x /sbin/sysconfig; then 6102 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6103 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6104 esac 6105 fi 6106 ;; 6107 sco3.2v5*) 6108 lt_cv_sys_max_cmd_len=102400 6109 ;; 6110 sysv5* | sco5v6* | sysv4.2uw2*) 6111 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6112 if test -n "$kargmax"; then 6113 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6114 else 6115 lt_cv_sys_max_cmd_len=32768 6116 fi 6117 ;; 6118 *) 6119 # If test is not a shell built-in, we'll probably end up computing a 6120 # maximum length that is only half of the actual maximum length, but 6121 # we can't tell. 6122 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6123 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6124 = "XX$teststring") >/dev/null 2>&1 && 6125 new_result=`expr "X$teststring" : ".*" 2>&1` && 6126 lt_cv_sys_max_cmd_len=$new_result && 6127 test $i != 17 # 1/2 MB should be enough 6128 do 6129 i=`expr $i + 1` 6130 teststring=$teststring$teststring 6131 done 6132 teststring= 6133 # Add a significant safety factor because C++ compilers can tack on massive 6134 # amounts of additional arguments before passing them to the linker. 6135 # It appears as though 1/2 is a usable value. 6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6137 ;; 6138 esac 6139 6140fi 6141 6142if test -n $lt_cv_sys_max_cmd_len ; then 6143 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6144echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6145else 6146 echo "$as_me:$LINENO: result: none" >&5 6147echo "${ECHO_T}none" >&6 6148fi 6149 6150 6151 6152 6153# Check for command to grab the raw symbol name followed by C symbol from nm. 6154echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6155echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6156if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6157 echo $ECHO_N "(cached) $ECHO_C" >&6 6158else 6159 6160# These are sane defaults that work on at least a few old systems. 6161# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6162 6163# Character class describing NM global symbol codes. 6164symcode='[BCDEGRST]' 6165 6166# Regexp to match symbols that can be accessed directly from C. 6167sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6168 6169# Transform an extracted symbol line into a proper C declaration 6170lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6171 6172# Transform an extracted symbol line into symbol name and symbol address 6173lt_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'" 6174 6175# Define system-specific variables. 6176case $host_os in 6177aix*) 6178 symcode='[BCDT]' 6179 ;; 6180cygwin* | mingw* | pw32*) 6181 symcode='[ABCDGISTW]' 6182 ;; 6183hpux*) # Its linker distinguishes data from code symbols 6184 if test "$host_cpu" = ia64; then 6185 symcode='[ABCDEGRST]' 6186 fi 6187 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6188 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'" 6189 ;; 6190linux*) 6191 if test "$host_cpu" = ia64; then 6192 symcode='[ABCDGIRSTW]' 6193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6194 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'" 6195 fi 6196 ;; 6197irix* | nonstopux*) 6198 symcode='[BCDEGRST]' 6199 ;; 6200osf*) 6201 symcode='[BCDEGQRST]' 6202 ;; 6203solaris*) 6204 symcode='[BDRT]' 6205 ;; 6206sco3.2v5*) 6207 symcode='[DT]' 6208 ;; 6209sysv4.2uw2*) 6210 symcode='[DT]' 6211 ;; 6212sysv5* | sco5v6* | unixware* | OpenUNIX*) 6213 symcode='[ABDT]' 6214 ;; 6215sysv4) 6216 symcode='[DFNSTU]' 6217 ;; 6218esac 6219 6220# Handle CRLF in mingw tool chain 6221opt_cr= 6222case $build_os in 6223mingw*) 6224 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6225 ;; 6226esac 6227 6228# If we're using GNU nm, then use its standard symbol codes. 6229case `$NM -V 2>&1` in 6230*GNU* | *'with BFD'*) 6231 symcode='[ABCDGIRSTW]' ;; 6232esac 6233 6234# Try without a prefix undercore, then with it. 6235for ac_symprfx in "" "_"; do 6236 6237 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6238 symxfrm="\\1 $ac_symprfx\\2 \\2" 6239 6240 # Write the raw and C identifiers. 6241 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6242 6243 # Check to see that the pipe works correctly. 6244 pipe_works=no 6245 6246 rm -f conftest* 6247 cat > conftest.$ac_ext <<EOF 6248#ifdef __cplusplus 6249extern "C" { 6250#endif 6251char nm_test_var; 6252void nm_test_func(){} 6253#ifdef __cplusplus 6254} 6255#endif 6256int main(){nm_test_var='a';nm_test_func();return(0);} 6257EOF 6258 6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6260 (eval $ac_compile) 2>&5 6261 ac_status=$? 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6263 (exit $ac_status); }; then 6264 # Now try to grab the symbols. 6265 nlist=conftest.nm 6266 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6267 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6268 ac_status=$? 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6270 (exit $ac_status); } && test -s "$nlist"; then 6271 # Try sorting and uniquifying the output. 6272 if sort "$nlist" | uniq > "$nlist"T; then 6273 mv -f "$nlist"T "$nlist" 6274 else 6275 rm -f "$nlist"T 6276 fi 6277 6278 # Make sure that we snagged all the symbols we need. 6279 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6280 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6281 cat <<EOF > conftest.$ac_ext 6282#ifdef __cplusplus 6283extern "C" { 6284#endif 6285 6286EOF 6287 # Now generate the symbol file. 6288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6289 6290 cat <<EOF >> conftest.$ac_ext 6291#if defined (__STDC__) && __STDC__ 6292# define lt_ptr_t void * 6293#else 6294# define lt_ptr_t char * 6295# define const 6296#endif 6297 6298/* The mapping between symbol names and symbols. */ 6299const struct { 6300 const char *name; 6301 lt_ptr_t address; 6302} 6303lt_preloaded_symbols[] = 6304{ 6305EOF 6306 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6307 cat <<\EOF >> conftest.$ac_ext 6308 {0, (lt_ptr_t) 0} 6309}; 6310 6311#ifdef __cplusplus 6312} 6313#endif 6314EOF 6315 # Now try linking the two files. 6316 mv conftest.$ac_objext conftstm.$ac_objext 6317 lt_save_LIBS="$LIBS" 6318 lt_save_CFLAGS="$CFLAGS" 6319 LIBS="conftstm.$ac_objext" 6320 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6322 (eval $ac_link) 2>&5 6323 ac_status=$? 6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6325 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6326 pipe_works=yes 6327 fi 6328 LIBS="$lt_save_LIBS" 6329 CFLAGS="$lt_save_CFLAGS" 6330 else 6331 echo "cannot find nm_test_func in $nlist" >&5 6332 fi 6333 else 6334 echo "cannot find nm_test_var in $nlist" >&5 6335 fi 6336 else 6337 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6338 fi 6339 else 6340 echo "$progname: failed program was:" >&5 6341 cat conftest.$ac_ext >&5 6342 fi 6343 rm -f conftest* conftst* 6344 6345 # Do not use the global_symbol_pipe unless it works. 6346 if test "$pipe_works" = yes; then 6347 break 6348 else 6349 lt_cv_sys_global_symbol_pipe= 6350 fi 6351done 6352 6353fi 6354 6355if test -z "$lt_cv_sys_global_symbol_pipe"; then 6356 lt_cv_sys_global_symbol_to_cdecl= 6357fi 6358if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6359 echo "$as_me:$LINENO: result: failed" >&5 6360echo "${ECHO_T}failed" >&6 6361else 6362 echo "$as_me:$LINENO: result: ok" >&5 6363echo "${ECHO_T}ok" >&6 6364fi 6365 6366echo "$as_me:$LINENO: checking for objdir" >&5 6367echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6368if test "${lt_cv_objdir+set}" = set; then 6369 echo $ECHO_N "(cached) $ECHO_C" >&6 6370else 6371 rm -f .libs 2>/dev/null 6372mkdir .libs 2>/dev/null 6373if test -d .libs; then 6374 lt_cv_objdir=.libs 6375else 6376 # MS-DOS does not allow filenames that begin with a dot. 6377 lt_cv_objdir=_libs 6378fi 6379rmdir .libs 2>/dev/null 6380fi 6381echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6382echo "${ECHO_T}$lt_cv_objdir" >&6 6383objdir=$lt_cv_objdir 6384 6385 6386 6387 6388 6389case $host_os in 6390aix3*) 6391 # AIX sometimes has problems with the GCC collect2 program. For some 6392 # reason, if we set the COLLECT_NAMES environment variable, the problems 6393 # vanish in a puff of smoke. 6394 if test "X${COLLECT_NAMES+set}" != Xset; then 6395 COLLECT_NAMES= 6396 export COLLECT_NAMES 6397 fi 6398 ;; 6399esac 6400 6401# Sed substitution that helps us do robust quoting. It backslashifies 6402# metacharacters that are still active within double-quoted strings. 6403Xsed='sed -e 1s/^X//' 6404sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6405 6406# Same as above, but do not quote variable references. 6407double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6408 6409# Sed substitution to delay expansion of an escaped shell variable in a 6410# double_quote_subst'ed string. 6411delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6412 6413# Sed substitution to avoid accidental globbing in evaled expressions 6414no_glob_subst='s/\*/\\\*/g' 6415 6416# Constants: 6417rm="rm -f" 6418 6419# Global variables: 6420default_ofile=libtool 6421can_build_shared=yes 6422 6423# All known linkers require a `.a' archive for static linking (except MSVC, 6424# which needs '.lib'). 6425libext=a 6426ltmain="$ac_aux_dir/ltmain.sh" 6427ofile="$default_ofile" 6428with_gnu_ld="$lt_cv_prog_gnu_ld" 6429 6430if test -n "$ac_tool_prefix"; then 6431 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6432set dummy ${ac_tool_prefix}ar; ac_word=$2 6433echo "$as_me:$LINENO: checking for $ac_word" >&5 6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6435if test "${ac_cv_prog_AR+set}" = set; then 6436 echo $ECHO_N "(cached) $ECHO_C" >&6 6437else 6438 if test -n "$AR"; then 6439 ac_cv_prog_AR="$AR" # Let the user override the test. 6440else 6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442for as_dir in $PATH 6443do 6444 IFS=$as_save_IFS 6445 test -z "$as_dir" && as_dir=. 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6448 ac_cv_prog_AR="${ac_tool_prefix}ar" 6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452done 6453done 6454 6455fi 6456fi 6457AR=$ac_cv_prog_AR 6458if test -n "$AR"; then 6459 echo "$as_me:$LINENO: result: $AR" >&5 6460echo "${ECHO_T}$AR" >&6 6461else 6462 echo "$as_me:$LINENO: result: no" >&5 6463echo "${ECHO_T}no" >&6 6464fi 6465 6466fi 6467if test -z "$ac_cv_prog_AR"; then 6468 ac_ct_AR=$AR 6469 # Extract the first word of "ar", so it can be a program name with args. 6470set dummy ar; ac_word=$2 6471echo "$as_me:$LINENO: checking for $ac_word" >&5 6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6473if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6474 echo $ECHO_N "(cached) $ECHO_C" >&6 6475else 6476 if test -n "$ac_ct_AR"; then 6477 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_ac_ct_AR="ar" 6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491done 6492 6493 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6494fi 6495fi 6496ac_ct_AR=$ac_cv_prog_ac_ct_AR 6497if test -n "$ac_ct_AR"; then 6498 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6499echo "${ECHO_T}$ac_ct_AR" >&6 6500else 6501 echo "$as_me:$LINENO: result: no" >&5 6502echo "${ECHO_T}no" >&6 6503fi 6504 6505 AR=$ac_ct_AR 6506else 6507 AR="$ac_cv_prog_AR" 6508fi 6509 6510if test -n "$ac_tool_prefix"; then 6511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6512set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6513echo "$as_me:$LINENO: checking for $ac_word" >&5 6514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6515if test "${ac_cv_prog_RANLIB+set}" = set; then 6516 echo $ECHO_N "(cached) $ECHO_C" >&6 6517else 6518 if test -n "$RANLIB"; then 6519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533done 6534 6535fi 6536fi 6537RANLIB=$ac_cv_prog_RANLIB 6538if test -n "$RANLIB"; then 6539 echo "$as_me:$LINENO: result: $RANLIB" >&5 6540echo "${ECHO_T}$RANLIB" >&6 6541else 6542 echo "$as_me:$LINENO: result: no" >&5 6543echo "${ECHO_T}no" >&6 6544fi 6545 6546fi 6547if test -z "$ac_cv_prog_RANLIB"; then 6548 ac_ct_RANLIB=$RANLIB 6549 # Extract the first word of "ranlib", so it can be a program name with args. 6550set dummy ranlib; ac_word=$2 6551echo "$as_me:$LINENO: checking for $ac_word" >&5 6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6553if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6554 echo $ECHO_N "(cached) $ECHO_C" >&6 6555else 6556 if test -n "$ac_ct_RANLIB"; then 6557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6558else 6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560for as_dir in $PATH 6561do 6562 IFS=$as_save_IFS 6563 test -z "$as_dir" && as_dir=. 6564 for ac_exec_ext in '' $ac_executable_extensions; do 6565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6566 ac_cv_prog_ac_ct_RANLIB="ranlib" 6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6568 break 2 6569 fi 6570done 6571done 6572 6573 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6574fi 6575fi 6576ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6577if test -n "$ac_ct_RANLIB"; then 6578 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6579echo "${ECHO_T}$ac_ct_RANLIB" >&6 6580else 6581 echo "$as_me:$LINENO: result: no" >&5 6582echo "${ECHO_T}no" >&6 6583fi 6584 6585 RANLIB=$ac_ct_RANLIB 6586else 6587 RANLIB="$ac_cv_prog_RANLIB" 6588fi 6589 6590if test -n "$ac_tool_prefix"; then 6591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6592set dummy ${ac_tool_prefix}strip; ac_word=$2 6593echo "$as_me:$LINENO: checking for $ac_word" >&5 6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6595if test "${ac_cv_prog_STRIP+set}" = set; then 6596 echo $ECHO_N "(cached) $ECHO_C" >&6 6597else 6598 if test -n "$STRIP"; then 6599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6600else 6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6608 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613done 6614 6615fi 6616fi 6617STRIP=$ac_cv_prog_STRIP 6618if test -n "$STRIP"; then 6619 echo "$as_me:$LINENO: result: $STRIP" >&5 6620echo "${ECHO_T}$STRIP" >&6 6621else 6622 echo "$as_me:$LINENO: result: no" >&5 6623echo "${ECHO_T}no" >&6 6624fi 6625 6626fi 6627if test -z "$ac_cv_prog_STRIP"; then 6628 ac_ct_STRIP=$STRIP 6629 # Extract the first word of "strip", so it can be a program name with args. 6630set dummy strip; ac_word=$2 6631echo "$as_me:$LINENO: checking for $ac_word" >&5 6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6633if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6634 echo $ECHO_N "(cached) $ECHO_C" >&6 6635else 6636 if test -n "$ac_ct_STRIP"; then 6637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6638else 6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640for as_dir in $PATH 6641do 6642 IFS=$as_save_IFS 6643 test -z "$as_dir" && as_dir=. 6644 for ac_exec_ext in '' $ac_executable_extensions; do 6645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6646 ac_cv_prog_ac_ct_STRIP="strip" 6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6648 break 2 6649 fi 6650done 6651done 6652 6653 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6654fi 6655fi 6656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6657if test -n "$ac_ct_STRIP"; then 6658 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6659echo "${ECHO_T}$ac_ct_STRIP" >&6 6660else 6661 echo "$as_me:$LINENO: result: no" >&5 6662echo "${ECHO_T}no" >&6 6663fi 6664 6665 STRIP=$ac_ct_STRIP 6666else 6667 STRIP="$ac_cv_prog_STRIP" 6668fi 6669 6670 6671old_CC="$CC" 6672old_CFLAGS="$CFLAGS" 6673 6674# Set sane defaults for various variables 6675test -z "$AR" && AR=ar 6676test -z "$AR_FLAGS" && AR_FLAGS=cru 6677test -z "$AS" && AS=as 6678test -z "$CC" && CC=cc 6679test -z "$LTCC" && LTCC=$CC 6680test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6681test -z "$DLLTOOL" && DLLTOOL=dlltool 6682test -z "$LD" && LD=ld 6683test -z "$LN_S" && LN_S="ln -s" 6684test -z "$MAGIC_CMD" && MAGIC_CMD=file 6685test -z "$NM" && NM=nm 6686test -z "$SED" && SED=sed 6687test -z "$OBJDUMP" && OBJDUMP=objdump 6688test -z "$RANLIB" && RANLIB=: 6689test -z "$STRIP" && STRIP=: 6690test -z "$ac_objext" && ac_objext=o 6691 6692# Determine commands to create old-style static archives. 6693old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6694old_postinstall_cmds='chmod 644 $oldlib' 6695old_postuninstall_cmds= 6696 6697if test -n "$RANLIB"; then 6698 case $host_os in 6699 openbsd*) 6700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6701 ;; 6702 *) 6703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6704 ;; 6705 esac 6706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6707fi 6708 6709for cc_temp in $compiler""; do 6710 case $cc_temp in 6711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6713 \-*) ;; 6714 *) break;; 6715 esac 6716done 6717cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6718 6719 6720# Only perform the check for file, if the check method requires it 6721case $deplibs_check_method in 6722file_magic*) 6723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6724 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6725echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6726if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6727 echo $ECHO_N "(cached) $ECHO_C" >&6 6728else 6729 case $MAGIC_CMD in 6730[\\/*] | ?:[\\/]*) 6731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6732 ;; 6733*) 6734 lt_save_MAGIC_CMD="$MAGIC_CMD" 6735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6737 for ac_dir in $ac_dummy; do 6738 IFS="$lt_save_ifs" 6739 test -z "$ac_dir" && ac_dir=. 6740 if test -f $ac_dir/${ac_tool_prefix}file; then 6741 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6742 if test -n "$file_magic_test_file"; then 6743 case $deplibs_check_method in 6744 "file_magic "*) 6745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6748 $EGREP "$file_magic_regex" > /dev/null; then 6749 : 6750 else 6751 cat <<EOF 1>&2 6752 6753*** Warning: the command libtool uses to detect shared libraries, 6754*** $file_magic_cmd, produces output that libtool cannot recognize. 6755*** The result is that libtool may fail to recognize shared libraries 6756*** as such. This will affect the creation of libtool libraries that 6757*** depend on shared libraries, but programs linked with such libtool 6758*** libraries will work regardless of this problem. Nevertheless, you 6759*** may want to report the problem to your system manager and/or to 6760*** bug-libtool@gnu.org 6761 6762EOF 6763 fi ;; 6764 esac 6765 fi 6766 break 6767 fi 6768 done 6769 IFS="$lt_save_ifs" 6770 MAGIC_CMD="$lt_save_MAGIC_CMD" 6771 ;; 6772esac 6773fi 6774 6775MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6776if test -n "$MAGIC_CMD"; then 6777 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6778echo "${ECHO_T}$MAGIC_CMD" >&6 6779else 6780 echo "$as_me:$LINENO: result: no" >&5 6781echo "${ECHO_T}no" >&6 6782fi 6783 6784if test -z "$lt_cv_path_MAGIC_CMD"; then 6785 if test -n "$ac_tool_prefix"; then 6786 echo "$as_me:$LINENO: checking for file" >&5 6787echo $ECHO_N "checking for file... $ECHO_C" >&6 6788if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6789 echo $ECHO_N "(cached) $ECHO_C" >&6 6790else 6791 case $MAGIC_CMD in 6792[\\/*] | ?:[\\/]*) 6793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6794 ;; 6795*) 6796 lt_save_MAGIC_CMD="$MAGIC_CMD" 6797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6799 for ac_dir in $ac_dummy; do 6800 IFS="$lt_save_ifs" 6801 test -z "$ac_dir" && ac_dir=. 6802 if test -f $ac_dir/file; then 6803 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6804 if test -n "$file_magic_test_file"; then 6805 case $deplibs_check_method in 6806 "file_magic "*) 6807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6810 $EGREP "$file_magic_regex" > /dev/null; then 6811 : 6812 else 6813 cat <<EOF 1>&2 6814 6815*** Warning: the command libtool uses to detect shared libraries, 6816*** $file_magic_cmd, produces output that libtool cannot recognize. 6817*** The result is that libtool may fail to recognize shared libraries 6818*** as such. This will affect the creation of libtool libraries that 6819*** depend on shared libraries, but programs linked with such libtool 6820*** libraries will work regardless of this problem. Nevertheless, you 6821*** may want to report the problem to your system manager and/or to 6822*** bug-libtool@gnu.org 6823 6824EOF 6825 fi ;; 6826 esac 6827 fi 6828 break 6829 fi 6830 done 6831 IFS="$lt_save_ifs" 6832 MAGIC_CMD="$lt_save_MAGIC_CMD" 6833 ;; 6834esac 6835fi 6836 6837MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6838if test -n "$MAGIC_CMD"; then 6839 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6840echo "${ECHO_T}$MAGIC_CMD" >&6 6841else 6842 echo "$as_me:$LINENO: result: no" >&5 6843echo "${ECHO_T}no" >&6 6844fi 6845 6846 else 6847 MAGIC_CMD=: 6848 fi 6849fi 6850 6851 fi 6852 ;; 6853esac 6854 6855enable_dlopen=no 6856enable_win32_dll=no 6857 6858# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6859if test "${enable_libtool_lock+set}" = set; then 6860 enableval="$enable_libtool_lock" 6861 6862fi; 6863test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6864 6865 6866# Check whether --with-pic or --without-pic was given. 6867if test "${with_pic+set}" = set; then 6868 withval="$with_pic" 6869 pic_mode="$withval" 6870else 6871 pic_mode=default 6872fi; 6873test -z "$pic_mode" && pic_mode=default 6874 6875# Use C for the default configuration in the libtool script 6876tagname= 6877lt_save_CC="$CC" 6878ac_ext=c 6879ac_cpp='$CPP $CPPFLAGS' 6880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6882ac_compiler_gnu=$ac_cv_c_compiler_gnu 6883 6884 6885# Source file extension for C test sources. 6886ac_ext=c 6887 6888# Object file extension for compiled C test sources. 6889objext=o 6890objext=$objext 6891 6892# Code to be used in simple compile tests 6893lt_simple_compile_test_code="int some_variable = 0;\n" 6894 6895# Code to be used in simple link tests 6896lt_simple_link_test_code='int main(){return(0);}\n' 6897 6898 6899# If no C compiler was specified, use CC. 6900LTCC=${LTCC-"$CC"} 6901 6902# If no C compiler flags were specified, use CFLAGS. 6903LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6904 6905# Allow CC to be a program name with arguments. 6906compiler=$CC 6907 6908 6909# save warnings/boilerplate of simple test code 6910ac_outfile=conftest.$ac_objext 6911printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6912eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6913_lt_compiler_boilerplate=`cat conftest.err` 6914$rm conftest* 6915 6916ac_outfile=conftest.$ac_objext 6917printf "$lt_simple_link_test_code" >conftest.$ac_ext 6918eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6919_lt_linker_boilerplate=`cat conftest.err` 6920$rm conftest* 6921 6922 6923 6924lt_prog_compiler_no_builtin_flag= 6925 6926if test "$GCC" = yes; then 6927 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6928 6929 6930echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6931echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6932if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6933 echo $ECHO_N "(cached) $ECHO_C" >&6 6934else 6935 lt_cv_prog_compiler_rtti_exceptions=no 6936 ac_outfile=conftest.$ac_objext 6937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6938 lt_compiler_flag="-fno-rtti -fno-exceptions" 6939 # Insert the option either (1) after the last *FLAGS variable, or 6940 # (2) before a word containing "conftest.", or (3) at the end. 6941 # Note that $ac_compile itself does not contain backslashes and begins 6942 # with a dollar sign (not a hyphen), so the echo should work correctly. 6943 # The option is referenced via a variable to avoid confusing sed. 6944 lt_compile=`echo "$ac_compile" | $SED \ 6945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6947 -e 's:$: $lt_compiler_flag:'` 6948 (eval echo "\"\$as_me:6948: $lt_compile\"" >&5) 6949 (eval "$lt_compile" 2>conftest.err) 6950 ac_status=$? 6951 cat conftest.err >&5 6952 echo "$as_me:6952: \$? = $ac_status" >&5 6953 if (exit $ac_status) && test -s "$ac_outfile"; then 6954 # The compiler can only warn and ignore the option if not recognized 6955 # So say no if there are warnings other than the usual output. 6956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6959 lt_cv_prog_compiler_rtti_exceptions=yes 6960 fi 6961 fi 6962 $rm conftest* 6963 6964fi 6965echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6966echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6967 6968if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6970else 6971 : 6972fi 6973 6974fi 6975 6976lt_prog_compiler_wl= 6977lt_prog_compiler_pic= 6978lt_prog_compiler_static= 6979 6980echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6981echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6982 6983 if test "$GCC" = yes; then 6984 lt_prog_compiler_wl='-Wl,' 6985 lt_prog_compiler_static='-static' 6986 6987 case $host_os in 6988 aix*) 6989 # All AIX code is PIC. 6990 if test "$host_cpu" = ia64; then 6991 # AIX 5 now supports IA64 processor 6992 lt_prog_compiler_static='-Bstatic' 6993 fi 6994 ;; 6995 6996 amigaos*) 6997 # FIXME: we need at least 68020 code to build shared libraries, but 6998 # adding the `-m68020' flag to GCC prevents building anything better, 6999 # like `-m68040'. 7000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7001 ;; 7002 7003 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7004 # PIC is the default for these OSes. 7005 ;; 7006 7007 mingw* | pw32* | os2*) 7008 # This hack is so that the source file can tell whether it is being 7009 # built for inclusion in a dll (and should export symbols for example). 7010 lt_prog_compiler_pic='-DDLL_EXPORT' 7011 ;; 7012 7013 darwin* | rhapsody*) 7014 # PIC is the default on this platform 7015 # Common symbols not allowed in MH_DYLIB files 7016 lt_prog_compiler_pic='-fno-common' 7017 ;; 7018 7019 interix3*) 7020 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7021 # Instead, we relocate shared libraries at runtime. 7022 ;; 7023 7024 msdosdjgpp*) 7025 # Just because we use GCC doesn't mean we suddenly get shared libraries 7026 # on systems that don't support them. 7027 lt_prog_compiler_can_build_shared=no 7028 enable_shared=no 7029 ;; 7030 7031 sysv4*MP*) 7032 if test -d /usr/nec; then 7033 lt_prog_compiler_pic=-Kconform_pic 7034 fi 7035 ;; 7036 7037 hpux*) 7038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7039 # not for PA HP-UX. 7040 case $host_cpu in 7041 hppa*64*|ia64*) 7042 # +Z the default 7043 ;; 7044 *) 7045 lt_prog_compiler_pic='-fPIC' 7046 ;; 7047 esac 7048 ;; 7049 7050 *) 7051 lt_prog_compiler_pic='-fPIC' 7052 ;; 7053 esac 7054 else 7055 # PORTME Check for flag to pass linker flags through the system compiler. 7056 case $host_os in 7057 aix*) 7058 lt_prog_compiler_wl='-Wl,' 7059 if test "$host_cpu" = ia64; then 7060 # AIX 5 now supports IA64 processor 7061 lt_prog_compiler_static='-Bstatic' 7062 else 7063 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7064 fi 7065 ;; 7066 darwin*) 7067 # PIC is the default on this platform 7068 # Common symbols not allowed in MH_DYLIB files 7069 case $cc_basename in 7070 xlc*) 7071 lt_prog_compiler_pic='-qnocommon' 7072 lt_prog_compiler_wl='-Wl,' 7073 ;; 7074 esac 7075 ;; 7076 7077 mingw* | pw32* | os2*) 7078 # This hack is so that the source file can tell whether it is being 7079 # built for inclusion in a dll (and should export symbols for example). 7080 lt_prog_compiler_pic='-DDLL_EXPORT' 7081 ;; 7082 7083 hpux9* | hpux10* | hpux11*) 7084 lt_prog_compiler_wl='-Wl,' 7085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7086 # not for PA HP-UX. 7087 case $host_cpu in 7088 hppa*64*|ia64*) 7089 # +Z the default 7090 ;; 7091 *) 7092 lt_prog_compiler_pic='+Z' 7093 ;; 7094 esac 7095 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7096 lt_prog_compiler_static='${wl}-a ${wl}archive' 7097 ;; 7098 7099 irix5* | irix6* | nonstopux*) 7100 lt_prog_compiler_wl='-Wl,' 7101 # PIC (with -KPIC) is the default. 7102 lt_prog_compiler_static='-non_shared' 7103 ;; 7104 7105 newsos6) 7106 lt_prog_compiler_pic='-KPIC' 7107 lt_prog_compiler_static='-Bstatic' 7108 ;; 7109 7110 linux*) 7111 case $cc_basename in 7112 icc* | ecc*) 7113 lt_prog_compiler_wl='-Wl,' 7114 lt_prog_compiler_pic='-KPIC' 7115 lt_prog_compiler_static='-static' 7116 ;; 7117 pgcc* | pgf77* | pgf90* | pgf95*) 7118 # Portland Group compilers (*not* the Pentium gcc compiler, 7119 # which looks to be a dead project) 7120 lt_prog_compiler_wl='-Wl,' 7121 lt_prog_compiler_pic='-fpic' 7122 lt_prog_compiler_static='-Bstatic' 7123 ;; 7124 ccc*) 7125 lt_prog_compiler_wl='-Wl,' 7126 # All Alpha code is PIC. 7127 lt_prog_compiler_static='-non_shared' 7128 ;; 7129 esac 7130 ;; 7131 7132 osf3* | osf4* | osf5*) 7133 lt_prog_compiler_wl='-Wl,' 7134 # All OSF/1 code is PIC. 7135 lt_prog_compiler_static='-non_shared' 7136 ;; 7137 7138 solaris*) 7139 lt_prog_compiler_pic='-KPIC' 7140 lt_prog_compiler_static='-Bstatic' 7141 case $cc_basename in 7142 f77* | f90* | f95*) 7143 lt_prog_compiler_wl='-Qoption ld ';; 7144 *) 7145 lt_prog_compiler_wl='-Wl,';; 7146 esac 7147 ;; 7148 7149 sunos4*) 7150 lt_prog_compiler_wl='-Qoption ld ' 7151 lt_prog_compiler_pic='-PIC' 7152 lt_prog_compiler_static='-Bstatic' 7153 ;; 7154 7155 sysv4 | sysv4.2uw2* | sysv4.3*) 7156 lt_prog_compiler_wl='-Wl,' 7157 lt_prog_compiler_pic='-KPIC' 7158 lt_prog_compiler_static='-Bstatic' 7159 ;; 7160 7161 sysv4*MP*) 7162 if test -d /usr/nec ;then 7163 lt_prog_compiler_pic='-Kconform_pic' 7164 lt_prog_compiler_static='-Bstatic' 7165 fi 7166 ;; 7167 7168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7169 lt_prog_compiler_wl='-Wl,' 7170 lt_prog_compiler_pic='-KPIC' 7171 lt_prog_compiler_static='-Bstatic' 7172 ;; 7173 7174 unicos*) 7175 lt_prog_compiler_wl='-Wl,' 7176 lt_prog_compiler_can_build_shared=no 7177 ;; 7178 7179 uts4*) 7180 lt_prog_compiler_pic='-pic' 7181 lt_prog_compiler_static='-Bstatic' 7182 ;; 7183 7184 *) 7185 lt_prog_compiler_can_build_shared=no 7186 ;; 7187 esac 7188 fi 7189 7190echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7191echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7192 7193# 7194# Check to make sure the PIC flag actually works. 7195# 7196if test -n "$lt_prog_compiler_pic"; then 7197 7198echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7199echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7200if test "${lt_prog_compiler_pic_works+set}" = set; then 7201 echo $ECHO_N "(cached) $ECHO_C" >&6 7202else 7203 lt_prog_compiler_pic_works=no 7204 ac_outfile=conftest.$ac_objext 7205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7207 # Insert the option either (1) after the last *FLAGS variable, or 7208 # (2) before a word containing "conftest.", or (3) at the end. 7209 # Note that $ac_compile itself does not contain backslashes and begins 7210 # with a dollar sign (not a hyphen), so the echo should work correctly. 7211 # The option is referenced via a variable to avoid confusing sed. 7212 lt_compile=`echo "$ac_compile" | $SED \ 7213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7215 -e 's:$: $lt_compiler_flag:'` 7216 (eval echo "\"\$as_me:7216: $lt_compile\"" >&5) 7217 (eval "$lt_compile" 2>conftest.err) 7218 ac_status=$? 7219 cat conftest.err >&5 7220 echo "$as_me:7220: \$? = $ac_status" >&5 7221 if (exit $ac_status) && test -s "$ac_outfile"; then 7222 # The compiler can only warn and ignore the option if not recognized 7223 # So say no if there are warnings other than the usual output. 7224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7227 lt_prog_compiler_pic_works=yes 7228 fi 7229 fi 7230 $rm conftest* 7231 7232fi 7233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7234echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7235 7236if test x"$lt_prog_compiler_pic_works" = xyes; then 7237 case $lt_prog_compiler_pic in 7238 "" | " "*) ;; 7239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7240 esac 7241else 7242 lt_prog_compiler_pic= 7243 lt_prog_compiler_can_build_shared=no 7244fi 7245 7246fi 7247case $host_os in 7248 # For platforms which do not support PIC, -DPIC is meaningless: 7249 *djgpp*) 7250 lt_prog_compiler_pic= 7251 ;; 7252 *) 7253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7254 ;; 7255esac 7256 7257# 7258# Check to make sure the static flag actually works. 7259# 7260wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7261echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7262echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 7263if test "${lt_prog_compiler_static_works+set}" = set; then 7264 echo $ECHO_N "(cached) $ECHO_C" >&6 7265else 7266 lt_prog_compiler_static_works=no 7267 save_LDFLAGS="$LDFLAGS" 7268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7269 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7271 # The linker can only warn and ignore the option if not recognized 7272 # So say no if there are warnings 7273 if test -s conftest.err; then 7274 # Append any errors to the config.log. 7275 cat conftest.err 1>&5 7276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7278 if diff conftest.exp conftest.er2 >/dev/null; then 7279 lt_prog_compiler_static_works=yes 7280 fi 7281 else 7282 lt_prog_compiler_static_works=yes 7283 fi 7284 fi 7285 $rm conftest* 7286 LDFLAGS="$save_LDFLAGS" 7287 7288fi 7289echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7290echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7291 7292if test x"$lt_prog_compiler_static_works" = xyes; then 7293 : 7294else 7295 lt_prog_compiler_static= 7296fi 7297 7298 7299echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7300echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7301if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7302 echo $ECHO_N "(cached) $ECHO_C" >&6 7303else 7304 lt_cv_prog_compiler_c_o=no 7305 $rm -r conftest 2>/dev/null 7306 mkdir conftest 7307 cd conftest 7308 mkdir out 7309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7310 7311 lt_compiler_flag="-o out/conftest2.$ac_objext" 7312 # Insert the option either (1) after the last *FLAGS variable, or 7313 # (2) before a word containing "conftest.", or (3) at the end. 7314 # Note that $ac_compile itself does not contain backslashes and begins 7315 # with a dollar sign (not a hyphen), so the echo should work correctly. 7316 lt_compile=`echo "$ac_compile" | $SED \ 7317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7319 -e 's:$: $lt_compiler_flag:'` 7320 (eval echo "\"\$as_me:7320: $lt_compile\"" >&5) 7321 (eval "$lt_compile" 2>out/conftest.err) 7322 ac_status=$? 7323 cat out/conftest.err >&5 7324 echo "$as_me:7324: \$? = $ac_status" >&5 7325 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7326 then 7327 # The compiler can only warn and ignore the option if not recognized 7328 # So say no if there are warnings 7329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7332 lt_cv_prog_compiler_c_o=yes 7333 fi 7334 fi 7335 chmod u+w . 2>&5 7336 $rm conftest* 7337 # SGI C++ compiler will create directory out/ii_files/ for 7338 # template instantiation 7339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7340 $rm out/* && rmdir out 7341 cd .. 7342 rmdir conftest 7343 $rm conftest* 7344 7345fi 7346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7347echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7348 7349 7350hard_links="nottested" 7351if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7352 # do not overwrite the value of need_locks provided by the user 7353 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7354echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7355 hard_links=yes 7356 $rm conftest* 7357 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7358 touch conftest.a 7359 ln conftest.a conftest.b 2>&5 || hard_links=no 7360 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7361 echo "$as_me:$LINENO: result: $hard_links" >&5 7362echo "${ECHO_T}$hard_links" >&6 7363 if test "$hard_links" = no; then 7364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7365echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7366 need_locks=warn 7367 fi 7368else 7369 need_locks=no 7370fi 7371 7372echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7373echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7374 7375 runpath_var= 7376 allow_undefined_flag= 7377 enable_shared_with_static_runtimes=no 7378 archive_cmds= 7379 archive_expsym_cmds= 7380 old_archive_From_new_cmds= 7381 old_archive_from_expsyms_cmds= 7382 export_dynamic_flag_spec= 7383 whole_archive_flag_spec= 7384 thread_safe_flag_spec= 7385 hardcode_libdir_flag_spec= 7386 hardcode_libdir_flag_spec_ld= 7387 hardcode_libdir_separator= 7388 hardcode_direct=no 7389 hardcode_minus_L=no 7390 hardcode_shlibpath_var=unsupported 7391 link_all_deplibs=unknown 7392 hardcode_automatic=no 7393 module_cmds= 7394 module_expsym_cmds= 7395 always_export_symbols=no 7396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7397 # include_expsyms should be a list of space-separated symbols to be *always* 7398 # included in the symbol list 7399 include_expsyms= 7400 # exclude_expsyms can be an extended regexp of symbols to exclude 7401 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7403 # as well as any symbol that contains `d'. 7404 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7406 # platforms (ab)use it in PIC code, but their linkers get confused if 7407 # the symbol is explicitly referenced. Since portable code cannot 7408 # rely on this symbol name, it's probably fine to never include it in 7409 # preloaded symbol tables. 7410 extract_expsyms_cmds= 7411 # Just being paranoid about ensuring that cc_basename is set. 7412 for cc_temp in $compiler""; do 7413 case $cc_temp in 7414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7416 \-*) ;; 7417 *) break;; 7418 esac 7419done 7420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7421 7422 case $host_os in 7423 cygwin* | mingw* | pw32*) 7424 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7425 # When not using gcc, we currently assume that we are using 7426 # Microsoft Visual C++. 7427 if test "$GCC" != yes; then 7428 with_gnu_ld=no 7429 fi 7430 ;; 7431 interix*) 7432 # we just hope/assume this is gcc and not c89 (= MSVC++) 7433 with_gnu_ld=yes 7434 ;; 7435 openbsd*) 7436 with_gnu_ld=no 7437 ;; 7438 esac 7439 7440 ld_shlibs=yes 7441 if test "$with_gnu_ld" = yes; then 7442 # If archive_cmds runs LD, not CC, wlarc should be empty 7443 wlarc='${wl}' 7444 7445 # Set some defaults for GNU ld with shared library support. These 7446 # are reset later if shared libraries are not supported. Putting them 7447 # here allows them to be overridden if necessary. 7448 runpath_var=LD_RUN_PATH 7449 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7450 export_dynamic_flag_spec='${wl}--export-dynamic' 7451 # ancient GNU ld didn't support --whole-archive et. al. 7452 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7454 else 7455 whole_archive_flag_spec= 7456 fi 7457 supports_anon_versioning=no 7458 case `$LD -v 2>/dev/null` in 7459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7462 *\ 2.11.*) ;; # other 2.11 versions 7463 *) supports_anon_versioning=yes ;; 7464 esac 7465 7466 # See if GNU ld supports shared libraries. 7467 case $host_os in 7468 aix3* | aix4* | aix5*) 7469 # On AIX/PPC, the GNU linker is very broken 7470 if test "$host_cpu" != ia64; then 7471 ld_shlibs=no 7472 cat <<EOF 1>&2 7473 7474*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7475*** to be unable to reliably create shared libraries on AIX. 7476*** Therefore, libtool is disabling shared libraries support. If you 7477*** really care for shared libraries, you may want to modify your PATH 7478*** so that a non-GNU linker is found, and then restart. 7479 7480EOF 7481 fi 7482 ;; 7483 7484 amigaos*) 7485 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)' 7486 hardcode_libdir_flag_spec='-L$libdir' 7487 hardcode_minus_L=yes 7488 7489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7490 # that the semantics of dynamic libraries on AmigaOS, at least up 7491 # to version 4, is to share data among multiple programs linked 7492 # with the same dynamic library. Since this doesn't match the 7493 # behavior of shared libraries on other platforms, we can't use 7494 # them. 7495 ld_shlibs=no 7496 ;; 7497 7498 beos*) 7499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7500 allow_undefined_flag=unsupported 7501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7502 # support --undefined. This deserves some investigation. FIXME 7503 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7504 else 7505 ld_shlibs=no 7506 fi 7507 ;; 7508 7509 cygwin* | mingw* | pw32*) 7510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7511 # as there is no search path for DLLs. 7512 hardcode_libdir_flag_spec='-L$libdir' 7513 allow_undefined_flag=unsupported 7514 always_export_symbols=no 7515 enable_shared_with_static_runtimes=yes 7516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7517 7518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7520 # If the export-symbols file already is a .def file (1st line 7521 # is EXPORTS), use it as is; otherwise, prepend... 7522 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7523 cp $export_symbols $output_objdir/$soname.def; 7524 else 7525 echo EXPORTS > $output_objdir/$soname.def; 7526 cat $export_symbols >> $output_objdir/$soname.def; 7527 fi~ 7528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7529 else 7530 ld_shlibs=no 7531 fi 7532 ;; 7533 7534 interix3*) 7535 hardcode_direct=no 7536 hardcode_shlibpath_var=no 7537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7538 export_dynamic_flag_spec='${wl}-E' 7539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7540 # Instead, shared libraries are loaded at an image base (0x10000000 by 7541 # default) and relocated if they conflict, which is a slow very memory 7542 # consuming and fragmenting process. To avoid this, we pick a random, 7543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7544 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7546 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' 7547 ;; 7548 7549 linux*) 7550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7551 tmp_addflag= 7552 case $cc_basename,$host_cpu in 7553 pgcc*) # Portland Group C compiler 7554 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' 7555 tmp_addflag=' $pic_flag' 7556 ;; 7557 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7558 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' 7559 tmp_addflag=' $pic_flag -Mnomain' ;; 7560 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7561 tmp_addflag=' -i_dynamic' ;; 7562 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7563 tmp_addflag=' -i_dynamic -nofor_main' ;; 7564 ifc* | ifort*) # Intel Fortran compiler 7565 tmp_addflag=' -nofor_main' ;; 7566 esac 7567 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7568 7569 if test $supports_anon_versioning = yes; then 7570 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7572 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7573 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7574 fi 7575 else 7576 ld_shlibs=no 7577 fi 7578 ;; 7579 7580 netbsd*) 7581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7582 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7583 wlarc= 7584 else 7585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7587 fi 7588 ;; 7589 7590 solaris*) 7591 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7592 ld_shlibs=no 7593 cat <<EOF 1>&2 7594 7595*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7596*** create shared libraries on Solaris systems. Therefore, libtool 7597*** is disabling shared libraries support. We urge you to upgrade GNU 7598*** binutils to release 2.9.1 or newer. Another option is to modify 7599*** your PATH or compiler configuration so that the native linker is 7600*** used, and then restart. 7601 7602EOF 7603 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7606 else 7607 ld_shlibs=no 7608 fi 7609 ;; 7610 7611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7612 case `$LD -v 2>&1` in 7613 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7614 ld_shlibs=no 7615 cat <<_LT_EOF 1>&2 7616 7617*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7618*** reliably create shared libraries on SCO systems. Therefore, libtool 7619*** is disabling shared libraries support. We urge you to upgrade GNU 7620*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7621*** your PATH or compiler configuration so that the native linker is 7622*** used, and then restart. 7623 7624_LT_EOF 7625 ;; 7626 *) 7627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7628 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7631 else 7632 ld_shlibs=no 7633 fi 7634 ;; 7635 esac 7636 ;; 7637 7638 sunos4*) 7639 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7640 wlarc= 7641 hardcode_direct=yes 7642 hardcode_shlibpath_var=no 7643 ;; 7644 7645 *) 7646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7649 else 7650 ld_shlibs=no 7651 fi 7652 ;; 7653 esac 7654 7655 if test "$ld_shlibs" = no; then 7656 runpath_var= 7657 hardcode_libdir_flag_spec= 7658 export_dynamic_flag_spec= 7659 whole_archive_flag_spec= 7660 fi 7661 else 7662 # PORTME fill in a description of your system's linker (not GNU ld) 7663 case $host_os in 7664 aix3*) 7665 allow_undefined_flag=unsupported 7666 always_export_symbols=yes 7667 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' 7668 # Note: this linker hardcodes the directories in LIBPATH if there 7669 # are no directories specified by -L. 7670 hardcode_minus_L=yes 7671 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7672 # Neither direct hardcoding nor static linking is supported with a 7673 # broken collect2. 7674 hardcode_direct=unsupported 7675 fi 7676 ;; 7677 7678 aix4* | aix5*) 7679 if test "$host_cpu" = ia64; then 7680 # On IA64, the linker does run time linking by default, so we don't 7681 # have to do anything special. 7682 aix_use_runtimelinking=no 7683 exp_sym_flag='-Bexport' 7684 no_entry_flag="" 7685 else 7686 # If we're using GNU nm, then we don't want the "-C" option. 7687 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7688 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7689 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' 7690 else 7691 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' 7692 fi 7693 aix_use_runtimelinking=no 7694 7695 # Test if we are trying to use run time linking or normal 7696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7697 # need to do runtime linking. 7698 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7699 for ld_flag in $LDFLAGS; do 7700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7701 aix_use_runtimelinking=yes 7702 break 7703 fi 7704 done 7705 ;; 7706 esac 7707 7708 exp_sym_flag='-bexport' 7709 no_entry_flag='-bnoentry' 7710 fi 7711 7712 # When large executables or shared objects are built, AIX ld can 7713 # have problems creating the table of contents. If linking a library 7714 # or program results in "error TOC overflow" add -mminimal-toc to 7715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7717 7718 archive_cmds='' 7719 hardcode_direct=yes 7720 hardcode_libdir_separator=':' 7721 link_all_deplibs=yes 7722 7723 if test "$GCC" = yes; then 7724 case $host_os in aix4.[012]|aix4.[012].*) 7725 # We only want to do this on AIX 4.2 and lower, the check 7726 # below for broken collect2 doesn't work under 4.3+ 7727 collect2name=`${CC} -print-prog-name=collect2` 7728 if test -f "$collect2name" && \ 7729 strings "$collect2name" | grep resolve_lib_name >/dev/null 7730 then 7731 # We have reworked collect2 7732 hardcode_direct=yes 7733 else 7734 # We have old collect2 7735 hardcode_direct=unsupported 7736 # It fails to find uninstalled libraries when the uninstalled 7737 # path is not listed in the libpath. Setting hardcode_minus_L 7738 # to unsupported forces relinking 7739 hardcode_minus_L=yes 7740 hardcode_libdir_flag_spec='-L$libdir' 7741 hardcode_libdir_separator= 7742 fi 7743 ;; 7744 esac 7745 shared_flag='-shared' 7746 if test "$aix_use_runtimelinking" = yes; then 7747 shared_flag="$shared_flag "'${wl}-G' 7748 fi 7749 else 7750 # not using gcc 7751 if test "$host_cpu" = ia64; then 7752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7753 # chokes on -Wl,-G. The following line is correct: 7754 shared_flag='-G' 7755 else 7756 if test "$aix_use_runtimelinking" = yes; then 7757 shared_flag='${wl}-G' 7758 else 7759 shared_flag='${wl}-bM:SRE' 7760 fi 7761 fi 7762 fi 7763 7764 # It seems that -bexpall does not export symbols beginning with 7765 # underscore (_), so it is better to generate a list of symbols to export. 7766 always_export_symbols=yes 7767 if test "$aix_use_runtimelinking" = yes; then 7768 # Warning - without using the other runtime loading flags (-brtl), 7769 # -berok will link without error, but may produce a broken library. 7770 allow_undefined_flag='-berok' 7771 # Determine the default libpath from the value encoded in an empty executable. 7772 cat >conftest.$ac_ext <<_ACEOF 7773/* confdefs.h. */ 7774_ACEOF 7775cat confdefs.h >>conftest.$ac_ext 7776cat >>conftest.$ac_ext <<_ACEOF 7777/* end confdefs.h. */ 7778 7779int 7780main () 7781{ 7782 7783 ; 7784 return 0; 7785} 7786_ACEOF 7787rm -f conftest.$ac_objext conftest$ac_exeext 7788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7789 (eval $ac_link) 2>conftest.er1 7790 ac_status=$? 7791 grep -v '^ *+' conftest.er1 >conftest.err 7792 rm -f conftest.er1 7793 cat conftest.err >&5 7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 (exit $ac_status); } && 7796 { ac_try='test -z "$ac_c_werror_flag" 7797 || test ! -s conftest.err' 7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 (eval $ac_try) 2>&5 7800 ac_status=$? 7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 (exit $ac_status); }; } && 7803 { ac_try='test -s conftest$ac_exeext' 7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7805 (eval $ac_try) 2>&5 7806 ac_status=$? 7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7808 (exit $ac_status); }; }; then 7809 7810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7811}'` 7812# Check for a 64-bit object if we didn't find anything. 7813if 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; } 7814}'`; fi 7815else 7816 echo "$as_me: failed program was:" >&5 7817sed 's/^/| /' conftest.$ac_ext >&5 7818 7819fi 7820rm -f conftest.err conftest.$ac_objext \ 7821 conftest$ac_exeext conftest.$ac_ext 7822if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7823 7824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7825 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" 7826 else 7827 if test "$host_cpu" = ia64; then 7828 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7829 allow_undefined_flag="-z nodefs" 7830 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" 7831 else 7832 # Determine the default libpath from the value encoded in an empty executable. 7833 cat >conftest.$ac_ext <<_ACEOF 7834/* confdefs.h. */ 7835_ACEOF 7836cat confdefs.h >>conftest.$ac_ext 7837cat >>conftest.$ac_ext <<_ACEOF 7838/* end confdefs.h. */ 7839 7840int 7841main () 7842{ 7843 7844 ; 7845 return 0; 7846} 7847_ACEOF 7848rm -f conftest.$ac_objext conftest$ac_exeext 7849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7850 (eval $ac_link) 2>conftest.er1 7851 ac_status=$? 7852 grep -v '^ *+' conftest.er1 >conftest.err 7853 rm -f conftest.er1 7854 cat conftest.err >&5 7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7856 (exit $ac_status); } && 7857 { ac_try='test -z "$ac_c_werror_flag" 7858 || test ! -s conftest.err' 7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7860 (eval $ac_try) 2>&5 7861 ac_status=$? 7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7863 (exit $ac_status); }; } && 7864 { ac_try='test -s conftest$ac_exeext' 7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7866 (eval $ac_try) 2>&5 7867 ac_status=$? 7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7869 (exit $ac_status); }; }; then 7870 7871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7872}'` 7873# Check for a 64-bit object if we didn't find anything. 7874if 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; } 7875}'`; fi 7876else 7877 echo "$as_me: failed program was:" >&5 7878sed 's/^/| /' conftest.$ac_ext >&5 7879 7880fi 7881rm -f conftest.err conftest.$ac_objext \ 7882 conftest$ac_exeext conftest.$ac_ext 7883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7884 7885 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7886 # Warning - without using the other run time loading flags, 7887 # -berok will link without error, but may produce a broken library. 7888 no_undefined_flag=' ${wl}-bernotok' 7889 allow_undefined_flag=' ${wl}-berok' 7890 # Exported symbols can be pulled into shared objects from archives 7891 whole_archive_flag_spec='$convenience' 7892 archive_cmds_need_lc=yes 7893 # This is similar to how AIX traditionally builds its shared libraries. 7894 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' 7895 fi 7896 fi 7897 ;; 7898 7899 amigaos*) 7900 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)' 7901 hardcode_libdir_flag_spec='-L$libdir' 7902 hardcode_minus_L=yes 7903 # see comment about different semantics on the GNU ld section 7904 ld_shlibs=no 7905 ;; 7906 7907 bsdi[45]*) 7908 export_dynamic_flag_spec=-rdynamic 7909 ;; 7910 7911 cygwin* | mingw* | pw32*) 7912 # When not using gcc, we currently assume that we are using 7913 # Microsoft Visual C++. 7914 # hardcode_libdir_flag_spec is actually meaningless, as there is 7915 # no search path for DLLs. 7916 hardcode_libdir_flag_spec=' ' 7917 allow_undefined_flag=unsupported 7918 # Tell ltmain to make .lib files, not .a files. 7919 libext=lib 7920 # Tell ltmain to make .dll files, not .so files. 7921 shrext_cmds=".dll" 7922 # FIXME: Setting linknames here is a bad hack. 7923 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7924 # The linker will automatically build a .lib file if we build a DLL. 7925 old_archive_From_new_cmds='true' 7926 # FIXME: Should let the user specify the lib program. 7927 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7928 fix_srcfile_path='`cygpath -w "$srcfile"`' 7929 enable_shared_with_static_runtimes=yes 7930 ;; 7931 7932 darwin* | rhapsody*) 7933 case $host_os in 7934 rhapsody* | darwin1.[012]) 7935 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7936 ;; 7937 *) # Darwin 1.3 on 7938 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7939 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7940 else 7941 case ${MACOSX_DEPLOYMENT_TARGET} in 7942 10.[012]) 7943 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7944 ;; 7945 10.*) 7946 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7947 ;; 7948 esac 7949 fi 7950 ;; 7951 esac 7952 archive_cmds_need_lc=no 7953 hardcode_direct=no 7954 hardcode_automatic=yes 7955 hardcode_shlibpath_var=unsupported 7956 whole_archive_flag_spec='' 7957 link_all_deplibs=yes 7958 if test "$GCC" = yes ; then 7959 output_verbose_link_cmd='echo' 7960 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7961 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7962 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7963 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}' 7964 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}' 7965 else 7966 case $cc_basename in 7967 xlc*) 7968 output_verbose_link_cmd='echo' 7969 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7970 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7972 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}' 7973 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}' 7974 ;; 7975 *) 7976 ld_shlibs=no 7977 ;; 7978 esac 7979 fi 7980 ;; 7981 7982 dgux*) 7983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7984 hardcode_libdir_flag_spec='-L$libdir' 7985 hardcode_shlibpath_var=no 7986 ;; 7987 7988 freebsd1*) 7989 ld_shlibs=no 7990 ;; 7991 7992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7993 # support. Future versions do this automatically, but an explicit c++rt0.o 7994 # does not break anything, and helps significantly (at the cost of a little 7995 # extra space). 7996 freebsd2.2*) 7997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7998 hardcode_libdir_flag_spec='-R$libdir' 7999 hardcode_direct=yes 8000 hardcode_shlibpath_var=no 8001 ;; 8002 8003 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8004 freebsd2*) 8005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8006 hardcode_direct=yes 8007 hardcode_minus_L=yes 8008 hardcode_shlibpath_var=no 8009 ;; 8010 8011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8012 freebsd* | kfreebsd*-gnu | dragonfly*) 8013 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8014 hardcode_libdir_flag_spec='-R$libdir' 8015 hardcode_direct=yes 8016 hardcode_shlibpath_var=no 8017 ;; 8018 8019 hpux9*) 8020 if test "$GCC" = yes; then 8021 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' 8022 else 8023 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' 8024 fi 8025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8026 hardcode_libdir_separator=: 8027 hardcode_direct=yes 8028 8029 # hardcode_minus_L: Not really in the search PATH, 8030 # but as the default location of the library. 8031 hardcode_minus_L=yes 8032 export_dynamic_flag_spec='${wl}-E' 8033 ;; 8034 8035 hpux10*) 8036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8038 else 8039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8040 fi 8041 if test "$with_gnu_ld" = no; then 8042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8043 hardcode_libdir_separator=: 8044 8045 hardcode_direct=yes 8046 export_dynamic_flag_spec='${wl}-E' 8047 8048 # hardcode_minus_L: Not really in the search PATH, 8049 # but as the default location of the library. 8050 hardcode_minus_L=yes 8051 fi 8052 ;; 8053 8054 hpux11*) 8055 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8056 case $host_cpu in 8057 hppa*64*) 8058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8059 ;; 8060 ia64*) 8061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8062 ;; 8063 *) 8064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8065 ;; 8066 esac 8067 else 8068 case $host_cpu in 8069 hppa*64*) 8070 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8071 ;; 8072 ia64*) 8073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8074 ;; 8075 *) 8076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8077 ;; 8078 esac 8079 fi 8080 if test "$with_gnu_ld" = no; then 8081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8082 hardcode_libdir_separator=: 8083 8084 case $host_cpu in 8085 hppa*64*|ia64*) 8086 hardcode_libdir_flag_spec_ld='+b $libdir' 8087 hardcode_direct=no 8088 hardcode_shlibpath_var=no 8089 ;; 8090 *) 8091 hardcode_direct=yes 8092 export_dynamic_flag_spec='${wl}-E' 8093 8094 # hardcode_minus_L: Not really in the search PATH, 8095 # but as the default location of the library. 8096 hardcode_minus_L=yes 8097 ;; 8098 esac 8099 fi 8100 ;; 8101 8102 irix5* | irix6* | nonstopux*) 8103 if test "$GCC" = yes; then 8104 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' 8105 else 8106 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' 8107 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8108 fi 8109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8110 hardcode_libdir_separator=: 8111 link_all_deplibs=yes 8112 ;; 8113 8114 netbsd*) 8115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8117 else 8118 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8119 fi 8120 hardcode_libdir_flag_spec='-R$libdir' 8121 hardcode_direct=yes 8122 hardcode_shlibpath_var=no 8123 ;; 8124 8125 newsos6) 8126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8127 hardcode_direct=yes 8128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8129 hardcode_libdir_separator=: 8130 hardcode_shlibpath_var=no 8131 ;; 8132 8133 openbsd*) 8134 hardcode_direct=yes 8135 hardcode_shlibpath_var=no 8136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8138 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8139 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8140 export_dynamic_flag_spec='${wl}-E' 8141 else 8142 case $host_os in 8143 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8145 hardcode_libdir_flag_spec='-R$libdir' 8146 ;; 8147 *) 8148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8150 ;; 8151 esac 8152 fi 8153 ;; 8154 8155 os2*) 8156 hardcode_libdir_flag_spec='-L$libdir' 8157 hardcode_minus_L=yes 8158 allow_undefined_flag=unsupported 8159 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' 8160 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8161 ;; 8162 8163 osf3*) 8164 if test "$GCC" = yes; then 8165 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8166 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' 8167 else 8168 allow_undefined_flag=' -expect_unresolved \*' 8169 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' 8170 fi 8171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8172 hardcode_libdir_separator=: 8173 ;; 8174 8175 osf4* | osf5*) # as osf3* with the addition of -msym flag 8176 if test "$GCC" = yes; then 8177 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8178 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' 8179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8180 else 8181 allow_undefined_flag=' -expect_unresolved \*' 8182 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' 8183 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8184 $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' 8185 8186 # Both c and cxx compiler support -rpath directly 8187 hardcode_libdir_flag_spec='-rpath $libdir' 8188 fi 8189 hardcode_libdir_separator=: 8190 ;; 8191 8192 solaris*) 8193 no_undefined_flag=' -z text' 8194 if test "$GCC" = yes; then 8195 wlarc='${wl}' 8196 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8197 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8198 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8199 else 8200 wlarc='' 8201 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8202 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8203 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8204 fi 8205 hardcode_libdir_flag_spec='-R$libdir' 8206 hardcode_shlibpath_var=no 8207 case $host_os in 8208 solaris2.[0-5] | solaris2.[0-5].*) ;; 8209 *) 8210 # The compiler driver will combine linker options so we 8211 # cannot just pass the convience library names through 8212 # without $wl, iff we do not link with $LD. 8213 # Luckily, gcc supports the same syntax we need for Sun Studio. 8214 # Supported since Solaris 2.6 (maybe 2.5.1?) 8215 case $wlarc in 8216 '') 8217 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8218 *) 8219 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' ;; 8220 esac ;; 8221 esac 8222 link_all_deplibs=yes 8223 ;; 8224 8225 sunos4*) 8226 if test "x$host_vendor" = xsequent; then 8227 # Use $CC to link under sequent, because it throws in some extra .o 8228 # files that make .init and .fini sections work. 8229 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8230 else 8231 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8232 fi 8233 hardcode_libdir_flag_spec='-L$libdir' 8234 hardcode_direct=yes 8235 hardcode_minus_L=yes 8236 hardcode_shlibpath_var=no 8237 ;; 8238 8239 sysv4) 8240 case $host_vendor in 8241 sni) 8242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8243 hardcode_direct=yes # is this really true??? 8244 ;; 8245 siemens) 8246 ## LD is ld it makes a PLAMLIB 8247 ## CC just makes a GrossModule. 8248 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8249 reload_cmds='$CC -r -o $output$reload_objs' 8250 hardcode_direct=no 8251 ;; 8252 motorola) 8253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8254 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8255 ;; 8256 esac 8257 runpath_var='LD_RUN_PATH' 8258 hardcode_shlibpath_var=no 8259 ;; 8260 8261 sysv4.3*) 8262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8263 hardcode_shlibpath_var=no 8264 export_dynamic_flag_spec='-Bexport' 8265 ;; 8266 8267 sysv4*MP*) 8268 if test -d /usr/nec; then 8269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8270 hardcode_shlibpath_var=no 8271 runpath_var=LD_RUN_PATH 8272 hardcode_runpath_var=yes 8273 ld_shlibs=yes 8274 fi 8275 ;; 8276 8277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8278 no_undefined_flag='${wl}-z,text' 8279 archive_cmds_need_lc=no 8280 hardcode_shlibpath_var=no 8281 runpath_var='LD_RUN_PATH' 8282 8283 if test "$GCC" = yes; then 8284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8286 else 8287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8289 fi 8290 ;; 8291 8292 sysv5* | sco3.2v5* | sco5v6*) 8293 # Note: We can NOT use -z defs as we might desire, because we do not 8294 # link with -lc, and that would cause any symbols used from libc to 8295 # always be unresolved, which means just about no library would 8296 # ever link correctly. If we're not using GNU ld we use -z text 8297 # though, which does catch some bad symbols but isn't as heavy-handed 8298 # as -z defs. 8299 no_undefined_flag='${wl}-z,text' 8300 allow_undefined_flag='${wl}-z,nodefs' 8301 archive_cmds_need_lc=no 8302 hardcode_shlibpath_var=no 8303 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8304 hardcode_libdir_separator=':' 8305 link_all_deplibs=yes 8306 export_dynamic_flag_spec='${wl}-Bexport' 8307 runpath_var='LD_RUN_PATH' 8308 8309 if test "$GCC" = yes; then 8310 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8312 else 8313 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8315 fi 8316 ;; 8317 8318 uts4*) 8319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8320 hardcode_libdir_flag_spec='-L$libdir' 8321 hardcode_shlibpath_var=no 8322 ;; 8323 8324 *) 8325 ld_shlibs=no 8326 ;; 8327 esac 8328 fi 8329 8330echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8331echo "${ECHO_T}$ld_shlibs" >&6 8332test "$ld_shlibs" = no && can_build_shared=no 8333 8334# 8335# Do we need to explicitly link libc? 8336# 8337case "x$archive_cmds_need_lc" in 8338x|xyes) 8339 # Assume -lc should be added 8340 archive_cmds_need_lc=yes 8341 8342 if test "$enable_shared" = yes && test "$GCC" = yes; then 8343 case $archive_cmds in 8344 *'~'*) 8345 # FIXME: we may have to deal with multi-command sequences. 8346 ;; 8347 '$CC '*) 8348 # Test whether the compiler implicitly links with -lc since on some 8349 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8350 # to ld, don't add -lc before -lgcc. 8351 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8352echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8353 $rm conftest* 8354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8355 8356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8357 (eval $ac_compile) 2>&5 8358 ac_status=$? 8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); } 2>conftest.err; then 8361 soname=conftest 8362 lib=conftest 8363 libobjs=conftest.$ac_objext 8364 deplibs= 8365 wl=$lt_prog_compiler_wl 8366 pic_flag=$lt_prog_compiler_pic 8367 compiler_flags=-v 8368 linker_flags=-v 8369 verstring= 8370 output_objdir=. 8371 libname=conftest 8372 lt_save_allow_undefined_flag=$allow_undefined_flag 8373 allow_undefined_flag= 8374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8375 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8376 ac_status=$? 8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8378 (exit $ac_status); } 8379 then 8380 archive_cmds_need_lc=no 8381 else 8382 archive_cmds_need_lc=yes 8383 fi 8384 allow_undefined_flag=$lt_save_allow_undefined_flag 8385 else 8386 cat conftest.err 1>&5 8387 fi 8388 $rm conftest* 8389 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8390echo "${ECHO_T}$archive_cmds_need_lc" >&6 8391 ;; 8392 esac 8393 fi 8394 ;; 8395esac 8396 8397echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8398echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8399library_names_spec= 8400libname_spec='lib$name' 8401soname_spec= 8402shrext_cmds=".so" 8403postinstall_cmds= 8404postuninstall_cmds= 8405finish_cmds= 8406finish_eval= 8407shlibpath_var= 8408shlibpath_overrides_runpath=unknown 8409version_type=none 8410dynamic_linker="$host_os ld.so" 8411sys_lib_dlsearch_path_spec="/lib /usr/lib" 8412if test "$GCC" = yes; then 8413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8414 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8415 # if the path contains ";" then we assume it to be the separator 8416 # otherwise default to the standard path separator (i.e. ":") - it is 8417 # assumed that no part of a normal pathname contains ";" but that should 8418 # okay in the real world where ";" in dirpaths is itself problematic. 8419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8420 else 8421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8422 fi 8423else 8424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8425fi 8426need_lib_prefix=unknown 8427hardcode_into_libs=no 8428 8429# when you set need_version to no, make sure it does not cause -set_version 8430# flags to be left without arguments 8431need_version=unknown 8432 8433case $host_os in 8434aix3*) 8435 version_type=linux 8436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8437 shlibpath_var=LIBPATH 8438 8439 # AIX 3 has no versioning support, so we append a major version to the name. 8440 soname_spec='${libname}${release}${shared_ext}$major' 8441 ;; 8442 8443aix4* | aix5*) 8444 version_type=linux 8445 need_lib_prefix=no 8446 need_version=no 8447 hardcode_into_libs=yes 8448 if test "$host_cpu" = ia64; then 8449 # AIX 5 supports IA64 8450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8451 shlibpath_var=LD_LIBRARY_PATH 8452 else 8453 # With GCC up to 2.95.x, collect2 would create an import file 8454 # for dependence libraries. The import file would start with 8455 # the line `#! .'. This would cause the generated library to 8456 # depend on `.', always an invalid library. This was fixed in 8457 # development snapshots of GCC prior to 3.0. 8458 case $host_os in 8459 aix4 | aix4.[01] | aix4.[01].*) 8460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8461 echo ' yes ' 8462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8463 : 8464 else 8465 can_build_shared=no 8466 fi 8467 ;; 8468 esac 8469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8470 # soname into executable. Probably we can add versioning support to 8471 # collect2, so additional links can be useful in future. 8472 if test "$aix_use_runtimelinking" = yes; then 8473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8474 # instead of lib<name>.a to let people know that these are not 8475 # typical AIX shared libraries. 8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8477 else 8478 # We preserve .a as extension for shared libraries through AIX4.2 8479 # and later when we are not doing run time linking. 8480 library_names_spec='${libname}${release}.a $libname.a' 8481 soname_spec='${libname}${release}${shared_ext}$major' 8482 fi 8483 shlibpath_var=LIBPATH 8484 fi 8485 ;; 8486 8487amigaos*) 8488 library_names_spec='$libname.ixlibrary $libname.a' 8489 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8490 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' 8491 ;; 8492 8493beos*) 8494 library_names_spec='${libname}${shared_ext}' 8495 dynamic_linker="$host_os ld.so" 8496 shlibpath_var=LIBRARY_PATH 8497 ;; 8498 8499bsdi[45]*) 8500 version_type=linux 8501 need_version=no 8502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8503 soname_spec='${libname}${release}${shared_ext}$major' 8504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8505 shlibpath_var=LD_LIBRARY_PATH 8506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8508 # the default ld.so.conf also contains /usr/contrib/lib and 8509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8510 # libtool to hard-code these into programs 8511 ;; 8512 8513cygwin* | mingw* | pw32*) 8514 version_type=windows 8515 shrext_cmds=".dll" 8516 need_version=no 8517 need_lib_prefix=no 8518 8519 case $GCC,$host_os in 8520 yes,cygwin* | yes,mingw* | yes,pw32*) 8521 library_names_spec='$libname.dll.a' 8522 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8523 postinstall_cmds='base_file=`basename \${file}`~ 8524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8525 dldir=$destdir/`dirname \$dlpath`~ 8526 test -d \$dldir || mkdir -p \$dldir~ 8527 $install_prog $dir/$dlname \$dldir/$dlname~ 8528 chmod a+x \$dldir/$dlname' 8529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8530 dlpath=$dir/\$dldll~ 8531 $rm \$dlpath' 8532 shlibpath_overrides_runpath=yes 8533 8534 case $host_os in 8535 cygwin*) 8536 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8538 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8539 ;; 8540 mingw*) 8541 # MinGW DLLs use traditional 'lib' prefix 8542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8544 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8545 # It is most probably a Windows format PATH printed by 8546 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8547 # path with ; separators, and with drive letters. We can handle the 8548 # drive letters (cygwin fileutils understands them), so leave them, 8549 # especially as we might pass files found there to a mingw objdump, 8550 # which wouldn't understand a cygwinified path. Ahh. 8551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8552 else 8553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8554 fi 8555 ;; 8556 pw32*) 8557 # pw32 DLLs use 'pw' prefix rather than 'lib' 8558 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8559 ;; 8560 esac 8561 ;; 8562 8563 *) 8564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8565 ;; 8566 esac 8567 dynamic_linker='Win32 ld.exe' 8568 # FIXME: first we should search . and the directory the executable is in 8569 shlibpath_var=PATH 8570 ;; 8571 8572darwin* | rhapsody*) 8573 dynamic_linker="$host_os dyld" 8574 version_type=darwin 8575 need_lib_prefix=no 8576 need_version=no 8577 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8578 soname_spec='${libname}${release}${major}$shared_ext' 8579 shlibpath_overrides_runpath=yes 8580 shlibpath_var=DYLD_LIBRARY_PATH 8581 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8582 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8583 if test "$GCC" = yes; then 8584 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"` 8585 else 8586 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8587 fi 8588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8589 ;; 8590 8591dgux*) 8592 version_type=linux 8593 need_lib_prefix=no 8594 need_version=no 8595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8596 soname_spec='${libname}${release}${shared_ext}$major' 8597 shlibpath_var=LD_LIBRARY_PATH 8598 ;; 8599 8600freebsd1*) 8601 dynamic_linker=no 8602 ;; 8603 8604kfreebsd*-gnu) 8605 version_type=linux 8606 need_lib_prefix=no 8607 need_version=no 8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8609 soname_spec='${libname}${release}${shared_ext}$major' 8610 shlibpath_var=LD_LIBRARY_PATH 8611 shlibpath_overrides_runpath=no 8612 hardcode_into_libs=yes 8613 dynamic_linker='GNU ld.so' 8614 ;; 8615 8616freebsd* | dragonfly*) 8617 # DragonFly does not have aout. When/if they implement a new 8618 # versioning mechanism, adjust this. 8619 if test -x /usr/bin/objformat; then 8620 objformat=`/usr/bin/objformat` 8621 else 8622 case $host_os in 8623 freebsd[123]*) objformat=aout ;; 8624 *) objformat=elf ;; 8625 esac 8626 fi 8627 version_type=freebsd-$objformat 8628 case $version_type in 8629 freebsd-elf*) 8630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8631 need_version=no 8632 need_lib_prefix=no 8633 ;; 8634 freebsd-*) 8635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8636 need_version=yes 8637 ;; 8638 esac 8639 shlibpath_var=LD_LIBRARY_PATH 8640 case $host_os in 8641 freebsd2*) 8642 shlibpath_overrides_runpath=yes 8643 ;; 8644 freebsd3.[01]* | freebsdelf3.[01]*) 8645 shlibpath_overrides_runpath=yes 8646 hardcode_into_libs=yes 8647 ;; 8648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8650 shlibpath_overrides_runpath=no 8651 hardcode_into_libs=yes 8652 ;; 8653 freebsd*) # from 4.6 on 8654 shlibpath_overrides_runpath=yes 8655 hardcode_into_libs=yes 8656 ;; 8657 esac 8658 ;; 8659 8660gnu*) 8661 version_type=linux 8662 need_lib_prefix=no 8663 need_version=no 8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8665 soname_spec='${libname}${release}${shared_ext}$major' 8666 shlibpath_var=LD_LIBRARY_PATH 8667 hardcode_into_libs=yes 8668 ;; 8669 8670hpux9* | hpux10* | hpux11*) 8671 # Give a soname corresponding to the major version so that dld.sl refuses to 8672 # link against other versions. 8673 version_type=sunos 8674 need_lib_prefix=no 8675 need_version=no 8676 case $host_cpu in 8677 ia64*) 8678 shrext_cmds='.so' 8679 hardcode_into_libs=yes 8680 dynamic_linker="$host_os dld.so" 8681 shlibpath_var=LD_LIBRARY_PATH 8682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8684 soname_spec='${libname}${release}${shared_ext}$major' 8685 if test "X$HPUX_IA64_MODE" = X32; then 8686 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8687 else 8688 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8689 fi 8690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8691 ;; 8692 hppa*64*) 8693 shrext_cmds='.sl' 8694 hardcode_into_libs=yes 8695 dynamic_linker="$host_os dld.sl" 8696 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8699 soname_spec='${libname}${release}${shared_ext}$major' 8700 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8702 ;; 8703 *) 8704 shrext_cmds='.sl' 8705 dynamic_linker="$host_os dld.sl" 8706 shlibpath_var=SHLIB_PATH 8707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8709 soname_spec='${libname}${release}${shared_ext}$major' 8710 ;; 8711 esac 8712 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8713 postinstall_cmds='chmod 555 $lib' 8714 ;; 8715 8716interix3*) 8717 version_type=linux 8718 need_lib_prefix=no 8719 need_version=no 8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8721 soname_spec='${libname}${release}${shared_ext}$major' 8722 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8723 shlibpath_var=LD_LIBRARY_PATH 8724 shlibpath_overrides_runpath=no 8725 hardcode_into_libs=yes 8726 ;; 8727 8728irix5* | irix6* | nonstopux*) 8729 case $host_os in 8730 nonstopux*) version_type=nonstopux ;; 8731 *) 8732 if test "$lt_cv_prog_gnu_ld" = yes; then 8733 version_type=linux 8734 else 8735 version_type=irix 8736 fi ;; 8737 esac 8738 need_lib_prefix=no 8739 need_version=no 8740 soname_spec='${libname}${release}${shared_ext}$major' 8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8742 case $host_os in 8743 irix5* | nonstopux*) 8744 libsuff= shlibsuff= 8745 ;; 8746 *) 8747 case $LD in # libtool.m4 will add one of these switches to LD 8748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8749 libsuff= shlibsuff= libmagic=32-bit;; 8750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8751 libsuff=32 shlibsuff=N32 libmagic=N32;; 8752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8753 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8754 *) libsuff= shlibsuff= libmagic=never-match;; 8755 esac 8756 ;; 8757 esac 8758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8759 shlibpath_overrides_runpath=no 8760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8762 hardcode_into_libs=yes 8763 ;; 8764 8765# No shared lib support for Linux oldld, aout, or coff. 8766linux*oldld* | linux*aout* | linux*coff*) 8767 dynamic_linker=no 8768 ;; 8769 8770# This must be Linux ELF. 8771linux*) 8772 version_type=linux 8773 need_lib_prefix=no 8774 need_version=no 8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8776 soname_spec='${libname}${release}${shared_ext}$major' 8777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8778 shlibpath_var=LD_LIBRARY_PATH 8779 shlibpath_overrides_runpath=no 8780 # This implies no fast_install, which is unacceptable. 8781 # Some rework will be needed to allow for fast_install 8782 # before this can be enabled. 8783 hardcode_into_libs=yes 8784 8785 # find out which ABI we are using 8786 libsuff= 8787 case "$host_cpu" in 8788 x86_64*|s390x*|powerpc64*) 8789 echo '#line 8789 "configure"' > conftest.$ac_ext 8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8791 (eval $ac_compile) 2>&5 8792 ac_status=$? 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8794 (exit $ac_status); }; then 8795 case `/usr/bin/file conftest.$ac_objext` in 8796 *64-bit*) 8797 libsuff=64 8798 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8799 ;; 8800 esac 8801 fi 8802 rm -rf conftest* 8803 ;; 8804 esac 8805 8806 # Append ld.so.conf contents to the search path 8807 if test -f /etc/ld.so.conf; then 8808 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8809 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8810 fi 8811 8812 # We used to test for /lib/ld.so.1 and disable shared libraries on 8813 # powerpc, because MkLinux only supported shared libraries with the 8814 # GNU dynamic linker. Since this was broken with cross compilers, 8815 # most powerpc-linux boxes support dynamic linking these days and 8816 # people can always --disable-shared, the test was removed, and we 8817 # assume the GNU/Linux dynamic linker is in use. 8818 dynamic_linker='GNU/Linux ld.so' 8819 ;; 8820 8821knetbsd*-gnu) 8822 version_type=linux 8823 need_lib_prefix=no 8824 need_version=no 8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8826 soname_spec='${libname}${release}${shared_ext}$major' 8827 shlibpath_var=LD_LIBRARY_PATH 8828 shlibpath_overrides_runpath=no 8829 hardcode_into_libs=yes 8830 dynamic_linker='GNU ld.so' 8831 ;; 8832 8833netbsd*) 8834 version_type=sunos 8835 need_lib_prefix=no 8836 need_version=no 8837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8840 dynamic_linker='NetBSD (a.out) ld.so' 8841 else 8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8843 soname_spec='${libname}${release}${shared_ext}$major' 8844 dynamic_linker='NetBSD ld.elf_so' 8845 fi 8846 shlibpath_var=LD_LIBRARY_PATH 8847 shlibpath_overrides_runpath=yes 8848 hardcode_into_libs=yes 8849 ;; 8850 8851newsos6) 8852 version_type=linux 8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8854 shlibpath_var=LD_LIBRARY_PATH 8855 shlibpath_overrides_runpath=yes 8856 ;; 8857 8858nto-qnx*) 8859 version_type=linux 8860 need_lib_prefix=no 8861 need_version=no 8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8863 soname_spec='${libname}${release}${shared_ext}$major' 8864 shlibpath_var=LD_LIBRARY_PATH 8865 shlibpath_overrides_runpath=yes 8866 ;; 8867 8868openbsd*) 8869 version_type=sunos 8870 sys_lib_dlsearch_path_spec="/usr/lib" 8871 need_lib_prefix=no 8872 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8873 case $host_os in 8874 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8875 *) need_version=no ;; 8876 esac 8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8879 shlibpath_var=LD_LIBRARY_PATH 8880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8881 case $host_os in 8882 openbsd2.[89] | openbsd2.[89].*) 8883 shlibpath_overrides_runpath=no 8884 ;; 8885 *) 8886 shlibpath_overrides_runpath=yes 8887 ;; 8888 esac 8889 else 8890 shlibpath_overrides_runpath=yes 8891 fi 8892 ;; 8893 8894os2*) 8895 libname_spec='$name' 8896 shrext_cmds=".dll" 8897 need_lib_prefix=no 8898 library_names_spec='$libname${shared_ext} $libname.a' 8899 dynamic_linker='OS/2 ld.exe' 8900 shlibpath_var=LIBPATH 8901 ;; 8902 8903osf3* | osf4* | osf5*) 8904 version_type=osf 8905 need_lib_prefix=no 8906 need_version=no 8907 soname_spec='${libname}${release}${shared_ext}$major' 8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8909 shlibpath_var=LD_LIBRARY_PATH 8910 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8911 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8912 ;; 8913 8914solaris*) 8915 version_type=linux 8916 need_lib_prefix=no 8917 need_version=no 8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8919 soname_spec='${libname}${release}${shared_ext}$major' 8920 shlibpath_var=LD_LIBRARY_PATH 8921 shlibpath_overrides_runpath=yes 8922 hardcode_into_libs=yes 8923 # ldd complains unless libraries are executable 8924 postinstall_cmds='chmod +x $lib' 8925 ;; 8926 8927sunos4*) 8928 version_type=sunos 8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8931 shlibpath_var=LD_LIBRARY_PATH 8932 shlibpath_overrides_runpath=yes 8933 if test "$with_gnu_ld" = yes; then 8934 need_lib_prefix=no 8935 fi 8936 need_version=yes 8937 ;; 8938 8939sysv4 | sysv4.3*) 8940 version_type=linux 8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8942 soname_spec='${libname}${release}${shared_ext}$major' 8943 shlibpath_var=LD_LIBRARY_PATH 8944 case $host_vendor in 8945 sni) 8946 shlibpath_overrides_runpath=no 8947 need_lib_prefix=no 8948 export_dynamic_flag_spec='${wl}-Blargedynsym' 8949 runpath_var=LD_RUN_PATH 8950 ;; 8951 siemens) 8952 need_lib_prefix=no 8953 ;; 8954 motorola) 8955 need_lib_prefix=no 8956 need_version=no 8957 shlibpath_overrides_runpath=no 8958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8959 ;; 8960 esac 8961 ;; 8962 8963sysv4*MP*) 8964 if test -d /usr/nec ;then 8965 version_type=linux 8966 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8967 soname_spec='$libname${shared_ext}.$major' 8968 shlibpath_var=LD_LIBRARY_PATH 8969 fi 8970 ;; 8971 8972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8973 version_type=freebsd-elf 8974 need_lib_prefix=no 8975 need_version=no 8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8977 soname_spec='${libname}${release}${shared_ext}$major' 8978 shlibpath_var=LD_LIBRARY_PATH 8979 hardcode_into_libs=yes 8980 if test "$with_gnu_ld" = yes; then 8981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8982 shlibpath_overrides_runpath=no 8983 else 8984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8985 shlibpath_overrides_runpath=yes 8986 case $host_os in 8987 sco3.2v5*) 8988 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8989 ;; 8990 esac 8991 fi 8992 sys_lib_dlsearch_path_spec='/usr/lib' 8993 ;; 8994 8995uts4*) 8996 version_type=linux 8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8998 soname_spec='${libname}${release}${shared_ext}$major' 8999 shlibpath_var=LD_LIBRARY_PATH 9000 ;; 9001 9002*) 9003 dynamic_linker=no 9004 ;; 9005esac 9006echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9007echo "${ECHO_T}$dynamic_linker" >&6 9008test "$dynamic_linker" = no && can_build_shared=no 9009 9010variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9011if test "$GCC" = yes; then 9012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9013fi 9014 9015echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9016echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9017hardcode_action= 9018if test -n "$hardcode_libdir_flag_spec" || \ 9019 test -n "$runpath_var" || \ 9020 test "X$hardcode_automatic" = "Xyes" ; then 9021 9022 # We can hardcode non-existant directories. 9023 if test "$hardcode_direct" != no && 9024 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9025 # have to relink, otherwise we might link with an installed library 9026 # when we should be linking with a yet-to-be-installed one 9027 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9028 test "$hardcode_minus_L" != no; then 9029 # Linking always hardcodes the temporary library directory. 9030 hardcode_action=relink 9031 else 9032 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9033 hardcode_action=immediate 9034 fi 9035else 9036 # We cannot hardcode anything, or else we can only hardcode existing 9037 # directories. 9038 hardcode_action=unsupported 9039fi 9040echo "$as_me:$LINENO: result: $hardcode_action" >&5 9041echo "${ECHO_T}$hardcode_action" >&6 9042 9043if test "$hardcode_action" = relink; then 9044 # Fast installation is not supported 9045 enable_fast_install=no 9046elif test "$shlibpath_overrides_runpath" = yes || 9047 test "$enable_shared" = no; then 9048 # Fast installation is not necessary 9049 enable_fast_install=needless 9050fi 9051 9052striplib= 9053old_striplib= 9054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9055echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9058 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9059 echo "$as_me:$LINENO: result: yes" >&5 9060echo "${ECHO_T}yes" >&6 9061else 9062# FIXME - insert some real tests, host_os isn't really good enough 9063 case $host_os in 9064 darwin*) 9065 if test -n "$STRIP" ; then 9066 striplib="$STRIP -x" 9067 echo "$as_me:$LINENO: result: yes" >&5 9068echo "${ECHO_T}yes" >&6 9069 else 9070 echo "$as_me:$LINENO: result: no" >&5 9071echo "${ECHO_T}no" >&6 9072fi 9073 ;; 9074 *) 9075 echo "$as_me:$LINENO: result: no" >&5 9076echo "${ECHO_T}no" >&6 9077 ;; 9078 esac 9079fi 9080 9081if test "x$enable_dlopen" != xyes; then 9082 enable_dlopen=unknown 9083 enable_dlopen_self=unknown 9084 enable_dlopen_self_static=unknown 9085else 9086 lt_cv_dlopen=no 9087 lt_cv_dlopen_libs= 9088 9089 case $host_os in 9090 beos*) 9091 lt_cv_dlopen="load_add_on" 9092 lt_cv_dlopen_libs= 9093 lt_cv_dlopen_self=yes 9094 ;; 9095 9096 mingw* | pw32*) 9097 lt_cv_dlopen="LoadLibrary" 9098 lt_cv_dlopen_libs= 9099 ;; 9100 9101 cygwin*) 9102 lt_cv_dlopen="dlopen" 9103 lt_cv_dlopen_libs= 9104 ;; 9105 9106 darwin*) 9107 # if libdl is installed we need to link against it 9108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9109echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9110if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9111 echo $ECHO_N "(cached) $ECHO_C" >&6 9112else 9113 ac_check_lib_save_LIBS=$LIBS 9114LIBS="-ldl $LIBS" 9115cat >conftest.$ac_ext <<_ACEOF 9116/* confdefs.h. */ 9117_ACEOF 9118cat confdefs.h >>conftest.$ac_ext 9119cat >>conftest.$ac_ext <<_ACEOF 9120/* end confdefs.h. */ 9121 9122/* Override any gcc2 internal prototype to avoid an error. */ 9123#ifdef __cplusplus 9124extern "C" 9125#endif 9126/* We use char because int might match the return type of a gcc2 9127 builtin and then its argument prototype would still apply. */ 9128char dlopen (); 9129int 9130main () 9131{ 9132dlopen (); 9133 ; 9134 return 0; 9135} 9136_ACEOF 9137rm -f conftest.$ac_objext conftest$ac_exeext 9138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9139 (eval $ac_link) 2>conftest.er1 9140 ac_status=$? 9141 grep -v '^ *+' conftest.er1 >conftest.err 9142 rm -f conftest.er1 9143 cat conftest.err >&5 9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9145 (exit $ac_status); } && 9146 { ac_try='test -z "$ac_c_werror_flag" 9147 || test ! -s conftest.err' 9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9149 (eval $ac_try) 2>&5 9150 ac_status=$? 9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9152 (exit $ac_status); }; } && 9153 { ac_try='test -s conftest$ac_exeext' 9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9155 (eval $ac_try) 2>&5 9156 ac_status=$? 9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9158 (exit $ac_status); }; }; then 9159 ac_cv_lib_dl_dlopen=yes 9160else 9161 echo "$as_me: failed program was:" >&5 9162sed 's/^/| /' conftest.$ac_ext >&5 9163 9164ac_cv_lib_dl_dlopen=no 9165fi 9166rm -f conftest.err conftest.$ac_objext \ 9167 conftest$ac_exeext conftest.$ac_ext 9168LIBS=$ac_check_lib_save_LIBS 9169fi 9170echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9171echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9172if test $ac_cv_lib_dl_dlopen = yes; then 9173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9174else 9175 9176 lt_cv_dlopen="dyld" 9177 lt_cv_dlopen_libs= 9178 lt_cv_dlopen_self=yes 9179 9180fi 9181 9182 ;; 9183 9184 *) 9185 echo "$as_me:$LINENO: checking for shl_load" >&5 9186echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9187if test "${ac_cv_func_shl_load+set}" = set; then 9188 echo $ECHO_N "(cached) $ECHO_C" >&6 9189else 9190 cat >conftest.$ac_ext <<_ACEOF 9191/* confdefs.h. */ 9192_ACEOF 9193cat confdefs.h >>conftest.$ac_ext 9194cat >>conftest.$ac_ext <<_ACEOF 9195/* end confdefs.h. */ 9196/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9197 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9198#define shl_load innocuous_shl_load 9199 9200/* System header to define __stub macros and hopefully few prototypes, 9201 which can conflict with char shl_load (); below. 9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9203 <limits.h> exists even on freestanding compilers. */ 9204 9205#ifdef __STDC__ 9206# include <limits.h> 9207#else 9208# include <assert.h> 9209#endif 9210 9211#undef shl_load 9212 9213/* Override any gcc2 internal prototype to avoid an error. */ 9214#ifdef __cplusplus 9215extern "C" 9216{ 9217#endif 9218/* We use char because int might match the return type of a gcc2 9219 builtin and then its argument prototype would still apply. */ 9220char shl_load (); 9221/* The GNU C library defines this for functions which it implements 9222 to always fail with ENOSYS. Some functions are actually named 9223 something starting with __ and the normal name is an alias. */ 9224#if defined (__stub_shl_load) || defined (__stub___shl_load) 9225choke me 9226#else 9227char (*f) () = shl_load; 9228#endif 9229#ifdef __cplusplus 9230} 9231#endif 9232 9233int 9234main () 9235{ 9236return f != shl_load; 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241rm -f conftest.$ac_objext conftest$ac_exeext 9242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9243 (eval $ac_link) 2>conftest.er1 9244 ac_status=$? 9245 grep -v '^ *+' conftest.er1 >conftest.err 9246 rm -f conftest.er1 9247 cat conftest.err >&5 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 (exit $ac_status); } && 9250 { ac_try='test -z "$ac_c_werror_flag" 9251 || test ! -s conftest.err' 9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9253 (eval $ac_try) 2>&5 9254 ac_status=$? 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); }; } && 9257 { ac_try='test -s conftest$ac_exeext' 9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9259 (eval $ac_try) 2>&5 9260 ac_status=$? 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9262 (exit $ac_status); }; }; then 9263 ac_cv_func_shl_load=yes 9264else 9265 echo "$as_me: failed program was:" >&5 9266sed 's/^/| /' conftest.$ac_ext >&5 9267 9268ac_cv_func_shl_load=no 9269fi 9270rm -f conftest.err conftest.$ac_objext \ 9271 conftest$ac_exeext conftest.$ac_ext 9272fi 9273echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9274echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9275if test $ac_cv_func_shl_load = yes; then 9276 lt_cv_dlopen="shl_load" 9277else 9278 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9279echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9280if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9281 echo $ECHO_N "(cached) $ECHO_C" >&6 9282else 9283 ac_check_lib_save_LIBS=$LIBS 9284LIBS="-ldld $LIBS" 9285cat >conftest.$ac_ext <<_ACEOF 9286/* confdefs.h. */ 9287_ACEOF 9288cat confdefs.h >>conftest.$ac_ext 9289cat >>conftest.$ac_ext <<_ACEOF 9290/* end confdefs.h. */ 9291 9292/* Override any gcc2 internal prototype to avoid an error. */ 9293#ifdef __cplusplus 9294extern "C" 9295#endif 9296/* We use char because int might match the return type of a gcc2 9297 builtin and then its argument prototype would still apply. */ 9298char shl_load (); 9299int 9300main () 9301{ 9302shl_load (); 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307rm -f conftest.$ac_objext conftest$ac_exeext 9308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9309 (eval $ac_link) 2>conftest.er1 9310 ac_status=$? 9311 grep -v '^ *+' conftest.er1 >conftest.err 9312 rm -f conftest.er1 9313 cat conftest.err >&5 9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9315 (exit $ac_status); } && 9316 { ac_try='test -z "$ac_c_werror_flag" 9317 || test ! -s conftest.err' 9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9319 (eval $ac_try) 2>&5 9320 ac_status=$? 9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9322 (exit $ac_status); }; } && 9323 { ac_try='test -s conftest$ac_exeext' 9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9325 (eval $ac_try) 2>&5 9326 ac_status=$? 9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9328 (exit $ac_status); }; }; then 9329 ac_cv_lib_dld_shl_load=yes 9330else 9331 echo "$as_me: failed program was:" >&5 9332sed 's/^/| /' conftest.$ac_ext >&5 9333 9334ac_cv_lib_dld_shl_load=no 9335fi 9336rm -f conftest.err conftest.$ac_objext \ 9337 conftest$ac_exeext conftest.$ac_ext 9338LIBS=$ac_check_lib_save_LIBS 9339fi 9340echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9341echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9342if test $ac_cv_lib_dld_shl_load = yes; then 9343 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9344else 9345 echo "$as_me:$LINENO: checking for dlopen" >&5 9346echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9347if test "${ac_cv_func_dlopen+set}" = set; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349else 9350 cat >conftest.$ac_ext <<_ACEOF 9351/* confdefs.h. */ 9352_ACEOF 9353cat confdefs.h >>conftest.$ac_ext 9354cat >>conftest.$ac_ext <<_ACEOF 9355/* end confdefs.h. */ 9356/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9357 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9358#define dlopen innocuous_dlopen 9359 9360/* System header to define __stub macros and hopefully few prototypes, 9361 which can conflict with char dlopen (); below. 9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9363 <limits.h> exists even on freestanding compilers. */ 9364 9365#ifdef __STDC__ 9366# include <limits.h> 9367#else 9368# include <assert.h> 9369#endif 9370 9371#undef dlopen 9372 9373/* Override any gcc2 internal prototype to avoid an error. */ 9374#ifdef __cplusplus 9375extern "C" 9376{ 9377#endif 9378/* We use char because int might match the return type of a gcc2 9379 builtin and then its argument prototype would still apply. */ 9380char dlopen (); 9381/* The GNU C library defines this for functions which it implements 9382 to always fail with ENOSYS. Some functions are actually named 9383 something starting with __ and the normal name is an alias. */ 9384#if defined (__stub_dlopen) || defined (__stub___dlopen) 9385choke me 9386#else 9387char (*f) () = dlopen; 9388#endif 9389#ifdef __cplusplus 9390} 9391#endif 9392 9393int 9394main () 9395{ 9396return f != dlopen; 9397 ; 9398 return 0; 9399} 9400_ACEOF 9401rm -f conftest.$ac_objext conftest$ac_exeext 9402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9403 (eval $ac_link) 2>conftest.er1 9404 ac_status=$? 9405 grep -v '^ *+' conftest.er1 >conftest.err 9406 rm -f conftest.er1 9407 cat conftest.err >&5 9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9409 (exit $ac_status); } && 9410 { ac_try='test -z "$ac_c_werror_flag" 9411 || test ! -s conftest.err' 9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9413 (eval $ac_try) 2>&5 9414 ac_status=$? 9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9416 (exit $ac_status); }; } && 9417 { ac_try='test -s conftest$ac_exeext' 9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9419 (eval $ac_try) 2>&5 9420 ac_status=$? 9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9422 (exit $ac_status); }; }; then 9423 ac_cv_func_dlopen=yes 9424else 9425 echo "$as_me: failed program was:" >&5 9426sed 's/^/| /' conftest.$ac_ext >&5 9427 9428ac_cv_func_dlopen=no 9429fi 9430rm -f conftest.err conftest.$ac_objext \ 9431 conftest$ac_exeext conftest.$ac_ext 9432fi 9433echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9434echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9435if test $ac_cv_func_dlopen = yes; then 9436 lt_cv_dlopen="dlopen" 9437else 9438 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9439echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9440if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9441 echo $ECHO_N "(cached) $ECHO_C" >&6 9442else 9443 ac_check_lib_save_LIBS=$LIBS 9444LIBS="-ldl $LIBS" 9445cat >conftest.$ac_ext <<_ACEOF 9446/* confdefs.h. */ 9447_ACEOF 9448cat confdefs.h >>conftest.$ac_ext 9449cat >>conftest.$ac_ext <<_ACEOF 9450/* end confdefs.h. */ 9451 9452/* Override any gcc2 internal prototype to avoid an error. */ 9453#ifdef __cplusplus 9454extern "C" 9455#endif 9456/* We use char because int might match the return type of a gcc2 9457 builtin and then its argument prototype would still apply. */ 9458char dlopen (); 9459int 9460main () 9461{ 9462dlopen (); 9463 ; 9464 return 0; 9465} 9466_ACEOF 9467rm -f conftest.$ac_objext conftest$ac_exeext 9468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9469 (eval $ac_link) 2>conftest.er1 9470 ac_status=$? 9471 grep -v '^ *+' conftest.er1 >conftest.err 9472 rm -f conftest.er1 9473 cat conftest.err >&5 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9475 (exit $ac_status); } && 9476 { ac_try='test -z "$ac_c_werror_flag" 9477 || test ! -s conftest.err' 9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9479 (eval $ac_try) 2>&5 9480 ac_status=$? 9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9482 (exit $ac_status); }; } && 9483 { ac_try='test -s conftest$ac_exeext' 9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9485 (eval $ac_try) 2>&5 9486 ac_status=$? 9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9488 (exit $ac_status); }; }; then 9489 ac_cv_lib_dl_dlopen=yes 9490else 9491 echo "$as_me: failed program was:" >&5 9492sed 's/^/| /' conftest.$ac_ext >&5 9493 9494ac_cv_lib_dl_dlopen=no 9495fi 9496rm -f conftest.err conftest.$ac_objext \ 9497 conftest$ac_exeext conftest.$ac_ext 9498LIBS=$ac_check_lib_save_LIBS 9499fi 9500echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9501echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9502if test $ac_cv_lib_dl_dlopen = yes; then 9503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9504else 9505 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9506echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9507if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9508 echo $ECHO_N "(cached) $ECHO_C" >&6 9509else 9510 ac_check_lib_save_LIBS=$LIBS 9511LIBS="-lsvld $LIBS" 9512cat >conftest.$ac_ext <<_ACEOF 9513/* confdefs.h. */ 9514_ACEOF 9515cat confdefs.h >>conftest.$ac_ext 9516cat >>conftest.$ac_ext <<_ACEOF 9517/* end confdefs.h. */ 9518 9519/* Override any gcc2 internal prototype to avoid an error. */ 9520#ifdef __cplusplus 9521extern "C" 9522#endif 9523/* We use char because int might match the return type of a gcc2 9524 builtin and then its argument prototype would still apply. */ 9525char dlopen (); 9526int 9527main () 9528{ 9529dlopen (); 9530 ; 9531 return 0; 9532} 9533_ACEOF 9534rm -f conftest.$ac_objext conftest$ac_exeext 9535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9536 (eval $ac_link) 2>conftest.er1 9537 ac_status=$? 9538 grep -v '^ *+' conftest.er1 >conftest.err 9539 rm -f conftest.er1 9540 cat conftest.err >&5 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9542 (exit $ac_status); } && 9543 { ac_try='test -z "$ac_c_werror_flag" 9544 || test ! -s conftest.err' 9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9546 (eval $ac_try) 2>&5 9547 ac_status=$? 9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9549 (exit $ac_status); }; } && 9550 { ac_try='test -s conftest$ac_exeext' 9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9552 (eval $ac_try) 2>&5 9553 ac_status=$? 9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9555 (exit $ac_status); }; }; then 9556 ac_cv_lib_svld_dlopen=yes 9557else 9558 echo "$as_me: failed program was:" >&5 9559sed 's/^/| /' conftest.$ac_ext >&5 9560 9561ac_cv_lib_svld_dlopen=no 9562fi 9563rm -f conftest.err conftest.$ac_objext \ 9564 conftest$ac_exeext conftest.$ac_ext 9565LIBS=$ac_check_lib_save_LIBS 9566fi 9567echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9568echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9569if test $ac_cv_lib_svld_dlopen = yes; then 9570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9571else 9572 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9573echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9574if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9575 echo $ECHO_N "(cached) $ECHO_C" >&6 9576else 9577 ac_check_lib_save_LIBS=$LIBS 9578LIBS="-ldld $LIBS" 9579cat >conftest.$ac_ext <<_ACEOF 9580/* confdefs.h. */ 9581_ACEOF 9582cat confdefs.h >>conftest.$ac_ext 9583cat >>conftest.$ac_ext <<_ACEOF 9584/* end confdefs.h. */ 9585 9586/* Override any gcc2 internal prototype to avoid an error. */ 9587#ifdef __cplusplus 9588extern "C" 9589#endif 9590/* We use char because int might match the return type of a gcc2 9591 builtin and then its argument prototype would still apply. */ 9592char dld_link (); 9593int 9594main () 9595{ 9596dld_link (); 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601rm -f conftest.$ac_objext conftest$ac_exeext 9602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9603 (eval $ac_link) 2>conftest.er1 9604 ac_status=$? 9605 grep -v '^ *+' conftest.er1 >conftest.err 9606 rm -f conftest.er1 9607 cat conftest.err >&5 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && 9610 { ac_try='test -z "$ac_c_werror_flag" 9611 || test ! -s conftest.err' 9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9613 (eval $ac_try) 2>&5 9614 ac_status=$? 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); }; } && 9617 { ac_try='test -s conftest$ac_exeext' 9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9619 (eval $ac_try) 2>&5 9620 ac_status=$? 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 (exit $ac_status); }; }; then 9623 ac_cv_lib_dld_dld_link=yes 9624else 9625 echo "$as_me: failed program was:" >&5 9626sed 's/^/| /' conftest.$ac_ext >&5 9627 9628ac_cv_lib_dld_dld_link=no 9629fi 9630rm -f conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext conftest.$ac_ext 9632LIBS=$ac_check_lib_save_LIBS 9633fi 9634echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9635echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9636if test $ac_cv_lib_dld_dld_link = yes; then 9637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9638fi 9639 9640 9641fi 9642 9643 9644fi 9645 9646 9647fi 9648 9649 9650fi 9651 9652 9653fi 9654 9655 ;; 9656 esac 9657 9658 if test "x$lt_cv_dlopen" != xno; then 9659 enable_dlopen=yes 9660 else 9661 enable_dlopen=no 9662 fi 9663 9664 case $lt_cv_dlopen in 9665 dlopen) 9666 save_CPPFLAGS="$CPPFLAGS" 9667 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9668 9669 save_LDFLAGS="$LDFLAGS" 9670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9671 9672 save_LIBS="$LIBS" 9673 LIBS="$lt_cv_dlopen_libs $LIBS" 9674 9675 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9676echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9677if test "${lt_cv_dlopen_self+set}" = set; then 9678 echo $ECHO_N "(cached) $ECHO_C" >&6 9679else 9680 if test "$cross_compiling" = yes; then : 9681 lt_cv_dlopen_self=cross 9682else 9683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9684 lt_status=$lt_dlunknown 9685 cat > conftest.$ac_ext <<EOF 9686#line 9686 "configure" 9687#include "confdefs.h" 9688 9689#if HAVE_DLFCN_H 9690#include <dlfcn.h> 9691#endif 9692 9693#include <stdio.h> 9694 9695#ifdef RTLD_GLOBAL 9696# define LT_DLGLOBAL RTLD_GLOBAL 9697#else 9698# ifdef DL_GLOBAL 9699# define LT_DLGLOBAL DL_GLOBAL 9700# else 9701# define LT_DLGLOBAL 0 9702# endif 9703#endif 9704 9705/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9706 find out it does not work in some platform. */ 9707#ifndef LT_DLLAZY_OR_NOW 9708# ifdef RTLD_LAZY 9709# define LT_DLLAZY_OR_NOW RTLD_LAZY 9710# else 9711# ifdef DL_LAZY 9712# define LT_DLLAZY_OR_NOW DL_LAZY 9713# else 9714# ifdef RTLD_NOW 9715# define LT_DLLAZY_OR_NOW RTLD_NOW 9716# else 9717# ifdef DL_NOW 9718# define LT_DLLAZY_OR_NOW DL_NOW 9719# else 9720# define LT_DLLAZY_OR_NOW 0 9721# endif 9722# endif 9723# endif 9724# endif 9725#endif 9726 9727#ifdef __cplusplus 9728extern "C" void exit (int); 9729#endif 9730 9731void fnord() { int i=42;} 9732int main () 9733{ 9734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9735 int status = $lt_dlunknown; 9736 9737 if (self) 9738 { 9739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9740 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9741 /* dlclose (self); */ 9742 } 9743 else 9744 puts (dlerror ()); 9745 9746 exit (status); 9747} 9748EOF 9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9750 (eval $ac_link) 2>&5 9751 ac_status=$? 9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9754 (./conftest; exit; ) >&5 2>/dev/null 9755 lt_status=$? 9756 case x$lt_status in 9757 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9758 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9759 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9760 esac 9761 else : 9762 # compilation failed 9763 lt_cv_dlopen_self=no 9764 fi 9765fi 9766rm -fr conftest* 9767 9768 9769fi 9770echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9771echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9772 9773 if test "x$lt_cv_dlopen_self" = xyes; then 9774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9775 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9776echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9777if test "${lt_cv_dlopen_self_static+set}" = set; then 9778 echo $ECHO_N "(cached) $ECHO_C" >&6 9779else 9780 if test "$cross_compiling" = yes; then : 9781 lt_cv_dlopen_self_static=cross 9782else 9783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9784 lt_status=$lt_dlunknown 9785 cat > conftest.$ac_ext <<EOF 9786#line 9786 "configure" 9787#include "confdefs.h" 9788 9789#if HAVE_DLFCN_H 9790#include <dlfcn.h> 9791#endif 9792 9793#include <stdio.h> 9794 9795#ifdef RTLD_GLOBAL 9796# define LT_DLGLOBAL RTLD_GLOBAL 9797#else 9798# ifdef DL_GLOBAL 9799# define LT_DLGLOBAL DL_GLOBAL 9800# else 9801# define LT_DLGLOBAL 0 9802# endif 9803#endif 9804 9805/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9806 find out it does not work in some platform. */ 9807#ifndef LT_DLLAZY_OR_NOW 9808# ifdef RTLD_LAZY 9809# define LT_DLLAZY_OR_NOW RTLD_LAZY 9810# else 9811# ifdef DL_LAZY 9812# define LT_DLLAZY_OR_NOW DL_LAZY 9813# else 9814# ifdef RTLD_NOW 9815# define LT_DLLAZY_OR_NOW RTLD_NOW 9816# else 9817# ifdef DL_NOW 9818# define LT_DLLAZY_OR_NOW DL_NOW 9819# else 9820# define LT_DLLAZY_OR_NOW 0 9821# endif 9822# endif 9823# endif 9824# endif 9825#endif 9826 9827#ifdef __cplusplus 9828extern "C" void exit (int); 9829#endif 9830 9831void fnord() { int i=42;} 9832int main () 9833{ 9834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9835 int status = $lt_dlunknown; 9836 9837 if (self) 9838 { 9839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9841 /* dlclose (self); */ 9842 } 9843 else 9844 puts (dlerror ()); 9845 9846 exit (status); 9847} 9848EOF 9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9850 (eval $ac_link) 2>&5 9851 ac_status=$? 9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9853 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9854 (./conftest; exit; ) >&5 2>/dev/null 9855 lt_status=$? 9856 case x$lt_status in 9857 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9858 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9859 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9860 esac 9861 else : 9862 # compilation failed 9863 lt_cv_dlopen_self_static=no 9864 fi 9865fi 9866rm -fr conftest* 9867 9868 9869fi 9870echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9871echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9872 fi 9873 9874 CPPFLAGS="$save_CPPFLAGS" 9875 LDFLAGS="$save_LDFLAGS" 9876 LIBS="$save_LIBS" 9877 ;; 9878 esac 9879 9880 case $lt_cv_dlopen_self in 9881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9882 *) enable_dlopen_self=unknown ;; 9883 esac 9884 9885 case $lt_cv_dlopen_self_static in 9886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9887 *) enable_dlopen_self_static=unknown ;; 9888 esac 9889fi 9890 9891 9892# Report which library types will actually be built 9893echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9894echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9895echo "$as_me:$LINENO: result: $can_build_shared" >&5 9896echo "${ECHO_T}$can_build_shared" >&6 9897 9898echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9899echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9900test "$can_build_shared" = "no" && enable_shared=no 9901 9902# On AIX, shared libraries and static libraries use the same namespace, and 9903# are all built from PIC. 9904case $host_os in 9905aix3*) 9906 test "$enable_shared" = yes && enable_static=no 9907 if test -n "$RANLIB"; then 9908 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9909 postinstall_cmds='$RANLIB $lib' 9910 fi 9911 ;; 9912 9913aix4* | aix5*) 9914 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9915 test "$enable_shared" = yes && enable_static=no 9916 fi 9917 ;; 9918esac 9919echo "$as_me:$LINENO: result: $enable_shared" >&5 9920echo "${ECHO_T}$enable_shared" >&6 9921 9922echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9923echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9924# Make sure either enable_shared or enable_static is yes. 9925test "$enable_shared" = yes || enable_static=yes 9926echo "$as_me:$LINENO: result: $enable_static" >&5 9927echo "${ECHO_T}$enable_static" >&6 9928 9929# The else clause should only fire when bootstrapping the 9930# libtool distribution, otherwise you forgot to ship ltmain.sh 9931# with your package, and you will get complaints that there are 9932# no rules to generate ltmain.sh. 9933if test -f "$ltmain"; then 9934 # See if we are running on zsh, and set the options which allow our commands through 9935 # without removal of \ escapes. 9936 if test -n "${ZSH_VERSION+set}" ; then 9937 setopt NO_GLOB_SUBST 9938 fi 9939 # Now quote all the things that may contain metacharacters while being 9940 # careful not to overquote the AC_SUBSTed values. We take copies of the 9941 # variables and quote the copies for generation of the libtool script. 9942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9943 SED SHELL STRIP \ 9944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9946 deplibs_check_method reload_flag reload_cmds need_locks \ 9947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9948 lt_cv_sys_global_symbol_to_c_name_address \ 9949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9950 old_postinstall_cmds old_postuninstall_cmds \ 9951 compiler \ 9952 CC \ 9953 LD \ 9954 lt_prog_compiler_wl \ 9955 lt_prog_compiler_pic \ 9956 lt_prog_compiler_static \ 9957 lt_prog_compiler_no_builtin_flag \ 9958 export_dynamic_flag_spec \ 9959 thread_safe_flag_spec \ 9960 whole_archive_flag_spec \ 9961 enable_shared_with_static_runtimes \ 9962 old_archive_cmds \ 9963 old_archive_from_new_cmds \ 9964 predep_objects \ 9965 postdep_objects \ 9966 predeps \ 9967 postdeps \ 9968 compiler_lib_search_path \ 9969 archive_cmds \ 9970 archive_expsym_cmds \ 9971 postinstall_cmds \ 9972 postuninstall_cmds \ 9973 old_archive_from_expsyms_cmds \ 9974 allow_undefined_flag \ 9975 no_undefined_flag \ 9976 export_symbols_cmds \ 9977 hardcode_libdir_flag_spec \ 9978 hardcode_libdir_flag_spec_ld \ 9979 hardcode_libdir_separator \ 9980 hardcode_automatic \ 9981 module_cmds \ 9982 module_expsym_cmds \ 9983 lt_cv_prog_compiler_c_o \ 9984 exclude_expsyms \ 9985 include_expsyms; do 9986 9987 case $var in 9988 old_archive_cmds | \ 9989 old_archive_from_new_cmds | \ 9990 archive_cmds | \ 9991 archive_expsym_cmds | \ 9992 module_cmds | \ 9993 module_expsym_cmds | \ 9994 old_archive_from_expsyms_cmds | \ 9995 export_symbols_cmds | \ 9996 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9997 postinstall_cmds | postuninstall_cmds | \ 9998 old_postinstall_cmds | old_postuninstall_cmds | \ 9999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10000 # Double-quote double-evaled strings. 10001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10002 ;; 10003 *) 10004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10005 ;; 10006 esac 10007 done 10008 10009 case $lt_echo in 10010 *'\$0 --fallback-echo"') 10011 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10012 ;; 10013 esac 10014 10015cfgfile="${ofile}T" 10016 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10017 $rm -f "$cfgfile" 10018 { echo "$as_me:$LINENO: creating $ofile" >&5 10019echo "$as_me: creating $ofile" >&6;} 10020 10021 cat <<__EOF__ >> "$cfgfile" 10022#! $SHELL 10023 10024# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10025# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10026# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10027# 10028# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10029# Free Software Foundation, Inc. 10030# 10031# This file is part of GNU Libtool: 10032# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10033# 10034# This program is free software; you can redistribute it and/or modify 10035# it under the terms of the GNU General Public License as published by 10036# the Free Software Foundation; either version 2 of the License, or 10037# (at your option) any later version. 10038# 10039# This program is distributed in the hope that it will be useful, but 10040# WITHOUT ANY WARRANTY; without even the implied warranty of 10041# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10042# General Public License for more details. 10043# 10044# You should have received a copy of the GNU General Public License 10045# along with this program; if not, write to the Free Software 10046# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10047# 10048# As a special exception to the GNU General Public License, if you 10049# distribute this file as part of a program that contains a 10050# configuration script generated by Autoconf, you may include it under 10051# the same distribution terms that you use for the rest of that program. 10052 10053# A sed program that does not truncate output. 10054SED=$lt_SED 10055 10056# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10057Xsed="$SED -e 1s/^X//" 10058 10059# The HP-UX ksh and POSIX shell print the target directory to stdout 10060# if CDPATH is set. 10061(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10062 10063# The names of the tagged configurations supported by this script. 10064available_tags= 10065 10066# ### BEGIN LIBTOOL CONFIG 10067 10068# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10069 10070# Shell to use when invoking shell scripts. 10071SHELL=$lt_SHELL 10072 10073# Whether or not to build shared libraries. 10074build_libtool_libs=$enable_shared 10075 10076# Whether or not to build static libraries. 10077build_old_libs=$enable_static 10078 10079# Whether or not to add -lc for building shared libraries. 10080build_libtool_need_lc=$archive_cmds_need_lc 10081 10082# Whether or not to disallow shared libs when runtime libs are static 10083allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10084 10085# Whether or not to optimize for fast installation. 10086fast_install=$enable_fast_install 10087 10088# The host system. 10089host_alias=$host_alias 10090host=$host 10091host_os=$host_os 10092 10093# The build system. 10094build_alias=$build_alias 10095build=$build 10096build_os=$build_os 10097 10098# An echo program that does not interpret backslashes. 10099echo=$lt_echo 10100 10101# The archiver. 10102AR=$lt_AR 10103AR_FLAGS=$lt_AR_FLAGS 10104 10105# A C compiler. 10106LTCC=$lt_LTCC 10107 10108# LTCC compiler flags. 10109LTCFLAGS=$lt_LTCFLAGS 10110 10111# A language-specific compiler. 10112CC=$lt_compiler 10113 10114# Is the compiler the GNU C compiler? 10115with_gcc=$GCC 10116 10117gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 10118gcc_ver=\`gcc -dumpversion\` 10119 10120# An ERE matcher. 10121EGREP=$lt_EGREP 10122 10123# The linker used to build libraries. 10124LD=$lt_LD 10125 10126# Whether we need hard or soft links. 10127LN_S=$lt_LN_S 10128 10129# A BSD-compatible nm program. 10130NM=$lt_NM 10131 10132# A symbol stripping program 10133STRIP=$lt_STRIP 10134 10135# Used to examine libraries when file_magic_cmd begins "file" 10136MAGIC_CMD=$MAGIC_CMD 10137 10138# Used on cygwin: DLL creation program. 10139DLLTOOL="$DLLTOOL" 10140 10141# Used on cygwin: object dumper. 10142OBJDUMP="$OBJDUMP" 10143 10144# Used on cygwin: assembler. 10145AS="$AS" 10146 10147# The name of the directory that contains temporary libtool files. 10148objdir=$objdir 10149 10150# How to create reloadable object files. 10151reload_flag=$lt_reload_flag 10152reload_cmds=$lt_reload_cmds 10153 10154# How to pass a linker flag through the compiler. 10155wl=$lt_lt_prog_compiler_wl 10156 10157# Object file suffix (normally "o"). 10158objext="$ac_objext" 10159 10160# Old archive suffix (normally "a"). 10161libext="$libext" 10162 10163# Shared library suffix (normally ".so"). 10164shrext_cmds='$shrext_cmds' 10165 10166# Executable file suffix (normally ""). 10167exeext="$exeext" 10168 10169# Additional compiler flags for building library objects. 10170pic_flag=$lt_lt_prog_compiler_pic 10171pic_mode=$pic_mode 10172 10173# What is the maximum length of a command? 10174max_cmd_len=$lt_cv_sys_max_cmd_len 10175 10176# Does compiler simultaneously support -c and -o options? 10177compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10178 10179# Must we lock files when doing compilation? 10180need_locks=$lt_need_locks 10181 10182# Do we need the lib prefix for modules? 10183need_lib_prefix=$need_lib_prefix 10184 10185# Do we need a version for libraries? 10186need_version=$need_version 10187 10188# Whether dlopen is supported. 10189dlopen_support=$enable_dlopen 10190 10191# Whether dlopen of programs is supported. 10192dlopen_self=$enable_dlopen_self 10193 10194# Whether dlopen of statically linked programs is supported. 10195dlopen_self_static=$enable_dlopen_self_static 10196 10197# Compiler flag to prevent dynamic linking. 10198link_static_flag=$lt_lt_prog_compiler_static 10199 10200# Compiler flag to turn off builtin functions. 10201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10202 10203# Compiler flag to allow reflexive dlopens. 10204export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10205 10206# Compiler flag to generate shared objects directly from archives. 10207whole_archive_flag_spec=$lt_whole_archive_flag_spec 10208 10209# Compiler flag to generate thread-safe objects. 10210thread_safe_flag_spec=$lt_thread_safe_flag_spec 10211 10212# Library versioning type. 10213version_type=$version_type 10214 10215# Format of library name prefix. 10216libname_spec=$lt_libname_spec 10217 10218# List of archive names. First name is the real one, the rest are links. 10219# The last name is the one that the linker finds with -lNAME. 10220library_names_spec=$lt_library_names_spec 10221 10222# The coded name of the library, if different from the real name. 10223soname_spec=$lt_soname_spec 10224 10225# Commands used to build and install an old-style archive. 10226RANLIB=$lt_RANLIB 10227old_archive_cmds=$lt_old_archive_cmds 10228old_postinstall_cmds=$lt_old_postinstall_cmds 10229old_postuninstall_cmds=$lt_old_postuninstall_cmds 10230 10231# Create an old-style archive from a shared archive. 10232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10233 10234# Create a temporary old-style archive to link instead of a shared archive. 10235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10236 10237# Commands used to build and install a shared archive. 10238archive_cmds=$lt_archive_cmds 10239archive_expsym_cmds=$lt_archive_expsym_cmds 10240postinstall_cmds=$lt_postinstall_cmds 10241postuninstall_cmds=$lt_postuninstall_cmds 10242 10243# Commands used to build a loadable module (assumed same as above if empty) 10244module_cmds=$lt_module_cmds 10245module_expsym_cmds=$lt_module_expsym_cmds 10246 10247# Commands to strip libraries. 10248old_striplib=$lt_old_striplib 10249striplib=$lt_striplib 10250 10251# Dependencies to place before the objects being linked to create a 10252# shared library. 10253predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 10254 10255# Dependencies to place after the objects being linked to create a 10256# shared library. 10257postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 10258 10259# Dependencies to place before the objects being linked to create a 10260# shared library. 10261predeps=$lt_predeps 10262 10263# Dependencies to place after the objects being linked to create a 10264# shared library. 10265postdeps=$lt_postdeps 10266 10267# The library search path used internally by the compiler when linking 10268# a shared library. 10269compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 10270 10271# Method to check whether dependent libraries are shared objects. 10272deplibs_check_method=$lt_deplibs_check_method 10273 10274# Command to use when deplibs_check_method == file_magic. 10275file_magic_cmd=$lt_file_magic_cmd 10276 10277# Flag that allows shared libraries with undefined symbols to be built. 10278allow_undefined_flag=$lt_allow_undefined_flag 10279 10280# Flag that forces no undefined symbols. 10281no_undefined_flag=$lt_no_undefined_flag 10282 10283# Commands used to finish a libtool library installation in a directory. 10284finish_cmds=$lt_finish_cmds 10285 10286# Same as above, but a single script fragment to be evaled but not shown. 10287finish_eval=$lt_finish_eval 10288 10289# Take the output of nm and produce a listing of raw symbols and C names. 10290global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10291 10292# Transform the output of nm in a proper C declaration 10293global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10294 10295# Transform the output of nm in a C name address pair 10296global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10297 10298# This is the shared library runtime path variable. 10299runpath_var=$runpath_var 10300 10301# This is the shared library path variable. 10302shlibpath_var=$shlibpath_var 10303 10304# Is shlibpath searched before the hard-coded library search path? 10305shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10306 10307# How to hardcode a shared library path into an executable. 10308hardcode_action=$hardcode_action 10309 10310# Whether we should hardcode library paths into libraries. 10311hardcode_into_libs=$hardcode_into_libs 10312 10313# Flag to hardcode \$libdir into a binary during linking. 10314# This must work even if \$libdir does not exist. 10315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10316 10317# If ld is used when linking, flag to hardcode \$libdir into 10318# a binary during linking. This must work even if \$libdir does 10319# not exist. 10320hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10321 10322# Whether we need a single -rpath flag with a separated argument. 10323hardcode_libdir_separator=$lt_hardcode_libdir_separator 10324 10325# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10326# resulting binary. 10327hardcode_direct=$hardcode_direct 10328 10329# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10330# resulting binary. 10331hardcode_minus_L=$hardcode_minus_L 10332 10333# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10334# the resulting binary. 10335hardcode_shlibpath_var=$hardcode_shlibpath_var 10336 10337# Set to yes if building a shared library automatically hardcodes DIR into the library 10338# and all subsequent libraries and executables linked against it. 10339hardcode_automatic=$hardcode_automatic 10340 10341# Variables whose values should be saved in libtool wrapper scripts and 10342# restored at relink time. 10343variables_saved_for_relink="$variables_saved_for_relink" 10344 10345# Whether libtool must link a program against all its dependency libraries. 10346link_all_deplibs=$link_all_deplibs 10347 10348# Compile-time system search path for libraries 10349sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 10350 10351# Run-time system search path for libraries 10352sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10353 10354# Fix the shell variable \$srcfile for the compiler. 10355fix_srcfile_path="$fix_srcfile_path" 10356 10357# Set to yes if exported symbols are required. 10358always_export_symbols=$always_export_symbols 10359 10360# The commands to list exported symbols. 10361export_symbols_cmds=$lt_export_symbols_cmds 10362 10363# The commands to extract the exported symbol list from a shared archive. 10364extract_expsyms_cmds=$lt_extract_expsyms_cmds 10365 10366# Symbols that should not be listed in the preloaded symbols. 10367exclude_expsyms=$lt_exclude_expsyms 10368 10369# Symbols that must always be exported. 10370include_expsyms=$lt_include_expsyms 10371 10372# ### END LIBTOOL CONFIG 10373 10374__EOF__ 10375 10376 10377 case $host_os in 10378 aix3*) 10379 cat <<\EOF >> "$cfgfile" 10380 10381# AIX sometimes has problems with the GCC collect2 program. For some 10382# reason, if we set the COLLECT_NAMES environment variable, the problems 10383# vanish in a puff of smoke. 10384if test "X${COLLECT_NAMES+set}" != Xset; then 10385 COLLECT_NAMES= 10386 export COLLECT_NAMES 10387fi 10388EOF 10389 ;; 10390 esac 10391 10392 # We use sed instead of cat because bash on DJGPP gets confused if 10393 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10394 # text mode, it properly converts lines to CR/LF. This bash problem 10395 # is reportedly fixed, but why not run on old versions too? 10396 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10397 10398 mv -f "$cfgfile" "$ofile" || \ 10399 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10400 chmod +x "$ofile" 10401 10402else 10403 # If there is no Makefile yet, we rely on a make rule to execute 10404 # `config.status --recheck' to rerun these tests and create the 10405 # libtool script then. 10406 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10407 if test -f "$ltmain_in"; then 10408 test -f Makefile && make "$ltmain" 10409 fi 10410fi 10411 10412 10413ac_ext=c 10414ac_cpp='$CPP $CPPFLAGS' 10415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10417ac_compiler_gnu=$ac_cv_c_compiler_gnu 10418 10419CC="$lt_save_CC" 10420 10421 10422# Check whether --with-tags or --without-tags was given. 10423if test "${with_tags+set}" = set; then 10424 withval="$with_tags" 10425 tagnames="$withval" 10426fi; 10427 10428if test -f "$ltmain" && test -n "$tagnames"; then 10429 if test ! -f "${ofile}"; then 10430 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10431echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10432 fi 10433 10434 if test -z "$LTCC"; then 10435 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10436 if test -z "$LTCC"; then 10437 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10438echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10439 else 10440 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10441echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10442 fi 10443 fi 10444 if test -z "$LTCFLAGS"; then 10445 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10446 fi 10447 10448 # Extract list of available tagged configurations in $ofile. 10449 # Note that this assumes the entire list is on one line. 10450 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10451 10452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10453 for tagname in $tagnames; do 10454 IFS="$lt_save_ifs" 10455 # Check whether tagname contains only valid characters 10456 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10457 "") ;; 10458 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10459echo "$as_me: error: invalid tag name: $tagname" >&2;} 10460 { (exit 1); exit 1; }; } 10461 ;; 10462 esac 10463 10464 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10465 then 10466 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10467echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10468 { (exit 1); exit 1; }; } 10469 fi 10470 10471 # Update the list of available tags. 10472 if test -n "$tagname"; then 10473 echo appending configuration tag \"$tagname\" to $ofile 10474 10475 case $tagname in 10476 CXX) 10477 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10478 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10479 (test "X$CXX" != "Xg++"))) ; then 10480 ac_ext=cc 10481ac_cpp='$CXXCPP $CPPFLAGS' 10482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10485 10486 10487 10488 10489archive_cmds_need_lc_CXX=no 10490allow_undefined_flag_CXX= 10491always_export_symbols_CXX=no 10492archive_expsym_cmds_CXX= 10493export_dynamic_flag_spec_CXX= 10494hardcode_direct_CXX=no 10495hardcode_libdir_flag_spec_CXX= 10496hardcode_libdir_flag_spec_ld_CXX= 10497hardcode_libdir_separator_CXX= 10498hardcode_minus_L_CXX=no 10499hardcode_shlibpath_var_CXX=unsupported 10500hardcode_automatic_CXX=no 10501module_cmds_CXX= 10502module_expsym_cmds_CXX= 10503link_all_deplibs_CXX=unknown 10504old_archive_cmds_CXX=$old_archive_cmds 10505no_undefined_flag_CXX= 10506whole_archive_flag_spec_CXX= 10507enable_shared_with_static_runtimes_CXX=no 10508 10509# Dependencies to place before and after the object being linked: 10510predep_objects_CXX= 10511postdep_objects_CXX= 10512predeps_CXX= 10513postdeps_CXX= 10514compiler_lib_search_path_CXX= 10515 10516# Source file extension for C++ test sources. 10517ac_ext=cpp 10518 10519# Object file extension for compiled C++ test sources. 10520objext=o 10521objext_CXX=$objext 10522 10523# Code to be used in simple compile tests 10524lt_simple_compile_test_code="int some_variable = 0;\n" 10525 10526# Code to be used in simple link tests 10527lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10528 10529# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10530 10531# If no C compiler was specified, use CC. 10532LTCC=${LTCC-"$CC"} 10533 10534# If no C compiler flags were specified, use CFLAGS. 10535LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10536 10537# Allow CC to be a program name with arguments. 10538compiler=$CC 10539 10540 10541# save warnings/boilerplate of simple test code 10542ac_outfile=conftest.$ac_objext 10543printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10545_lt_compiler_boilerplate=`cat conftest.err` 10546$rm conftest* 10547 10548ac_outfile=conftest.$ac_objext 10549printf "$lt_simple_link_test_code" >conftest.$ac_ext 10550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10551_lt_linker_boilerplate=`cat conftest.err` 10552$rm conftest* 10553 10554 10555# Allow CC to be a program name with arguments. 10556lt_save_CC=$CC 10557lt_save_LD=$LD 10558lt_save_GCC=$GCC 10559GCC=$GXX 10560lt_save_with_gnu_ld=$with_gnu_ld 10561lt_save_path_LD=$lt_cv_path_LD 10562if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10563 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10564else 10565 $as_unset lt_cv_prog_gnu_ld 10566fi 10567if test -n "${lt_cv_path_LDCXX+set}"; then 10568 lt_cv_path_LD=$lt_cv_path_LDCXX 10569else 10570 $as_unset lt_cv_path_LD 10571fi 10572test -z "${LDCXX+set}" || LD=$LDCXX 10573CC=${CXX-"c++"} 10574compiler=$CC 10575compiler_CXX=$CC 10576for cc_temp in $compiler""; do 10577 case $cc_temp in 10578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10580 \-*) ;; 10581 *) break;; 10582 esac 10583done 10584cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10585 10586 10587# We don't want -fno-exception wen compiling C++ code, so set the 10588# no_builtin_flag separately 10589if test "$GXX" = yes; then 10590 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10591else 10592 lt_prog_compiler_no_builtin_flag_CXX= 10593fi 10594 10595if test "$GXX" = yes; then 10596 # Set up default GNU C++ configuration 10597 10598 10599# Check whether --with-gnu-ld or --without-gnu-ld was given. 10600if test "${with_gnu_ld+set}" = set; then 10601 withval="$with_gnu_ld" 10602 test "$withval" = no || with_gnu_ld=yes 10603else 10604 with_gnu_ld=no 10605fi; 10606ac_prog=ld 10607if test "$GCC" = yes; then 10608 # Check if gcc -print-prog-name=ld gives a path. 10609 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10610echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10611 case $host in 10612 *-*-mingw*) 10613 # gcc leaves a trailing carriage return which upsets mingw 10614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10615 *) 10616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10617 esac 10618 case $ac_prog in 10619 # Accept absolute paths. 10620 [\\/]* | ?:[\\/]*) 10621 re_direlt='/[^/][^/]*/\.\./' 10622 # Canonicalize the pathname of ld 10623 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10624 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10625 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10626 done 10627 test -z "$LD" && LD="$ac_prog" 10628 ;; 10629 "") 10630 # If it fails, then pretend we aren't using GCC. 10631 ac_prog=ld 10632 ;; 10633 *) 10634 # If it is relative, then search for the first ld in PATH. 10635 with_gnu_ld=unknown 10636 ;; 10637 esac 10638elif test "$with_gnu_ld" = yes; then 10639 echo "$as_me:$LINENO: checking for GNU ld" >&5 10640echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10641else 10642 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10643echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10644fi 10645if test "${lt_cv_path_LD+set}" = set; then 10646 echo $ECHO_N "(cached) $ECHO_C" >&6 10647else 10648 if test -z "$LD"; then 10649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10650 for ac_dir in $PATH; do 10651 IFS="$lt_save_ifs" 10652 test -z "$ac_dir" && ac_dir=. 10653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10654 lt_cv_path_LD="$ac_dir/$ac_prog" 10655 # Check to see if the program is GNU ld. I'd rather use --version, 10656 # but apparently some variants of GNU ld only accept -v. 10657 # Break only if it was the GNU/non-GNU ld that we prefer. 10658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10659 *GNU* | *'with BFD'*) 10660 test "$with_gnu_ld" != no && break 10661 ;; 10662 *) 10663 test "$with_gnu_ld" != yes && break 10664 ;; 10665 esac 10666 fi 10667 done 10668 IFS="$lt_save_ifs" 10669else 10670 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10671fi 10672fi 10673 10674LD="$lt_cv_path_LD" 10675if test -n "$LD"; then 10676 echo "$as_me:$LINENO: result: $LD" >&5 10677echo "${ECHO_T}$LD" >&6 10678else 10679 echo "$as_me:$LINENO: result: no" >&5 10680echo "${ECHO_T}no" >&6 10681fi 10682test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10683echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10684 { (exit 1); exit 1; }; } 10685echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10686echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10687if test "${lt_cv_prog_gnu_ld+set}" = set; then 10688 echo $ECHO_N "(cached) $ECHO_C" >&6 10689else 10690 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10691case `$LD -v 2>&1 </dev/null` in 10692*GNU* | *'with BFD'*) 10693 lt_cv_prog_gnu_ld=yes 10694 ;; 10695*) 10696 lt_cv_prog_gnu_ld=no 10697 ;; 10698esac 10699fi 10700echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10701echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10702with_gnu_ld=$lt_cv_prog_gnu_ld 10703 10704 10705 10706 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10707 # archiving commands below assume that GNU ld is being used. 10708 if test "$with_gnu_ld" = yes; then 10709 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10710 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' 10711 10712 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10714 10715 # If archive_cmds runs LD, not CC, wlarc should be empty 10716 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10717 # investigate it a little bit more. (MM) 10718 wlarc='${wl}' 10719 10720 # ancient GNU ld didn't support --whole-archive et. al. 10721 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10722 grep 'no-whole-archive' > /dev/null; then 10723 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10724 else 10725 whole_archive_flag_spec_CXX= 10726 fi 10727 else 10728 with_gnu_ld=no 10729 wlarc= 10730 10731 # A generic and very simple default shared library creation 10732 # command for GNU C++ for the case where it uses the native 10733 # linker, instead of GNU ld. If possible, this setting should 10734 # overridden to take advantage of the native linker features on 10735 # the platform it is being used on. 10736 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10737 fi 10738 10739 # Commands to make compiler produce verbose output that lists 10740 # what "hidden" libraries, object files and flags are used when 10741 # linking a shared library. 10742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10743 10744else 10745 GXX=no 10746 with_gnu_ld=no 10747 wlarc= 10748fi 10749 10750# PORTME: fill in a description of your system's C++ link characteristics 10751echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10752echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10753ld_shlibs_CXX=yes 10754case $host_os in 10755 aix3*) 10756 # FIXME: insert proper C++ library support 10757 ld_shlibs_CXX=no 10758 ;; 10759 aix4* | aix5*) 10760 if test "$host_cpu" = ia64; then 10761 # On IA64, the linker does run time linking by default, so we don't 10762 # have to do anything special. 10763 aix_use_runtimelinking=no 10764 exp_sym_flag='-Bexport' 10765 no_entry_flag="" 10766 else 10767 aix_use_runtimelinking=no 10768 10769 # Test if we are trying to use run time linking or normal 10770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10771 # need to do runtime linking. 10772 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10773 for ld_flag in $LDFLAGS; do 10774 case $ld_flag in 10775 *-brtl*) 10776 aix_use_runtimelinking=yes 10777 break 10778 ;; 10779 esac 10780 done 10781 ;; 10782 esac 10783 10784 exp_sym_flag='-bexport' 10785 no_entry_flag='-bnoentry' 10786 fi 10787 10788 # When large executables or shared objects are built, AIX ld can 10789 # have problems creating the table of contents. If linking a library 10790 # or program results in "error TOC overflow" add -mminimal-toc to 10791 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10792 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10793 10794 archive_cmds_CXX='' 10795 hardcode_direct_CXX=yes 10796 hardcode_libdir_separator_CXX=':' 10797 link_all_deplibs_CXX=yes 10798 10799 if test "$GXX" = yes; then 10800 case $host_os in aix4.[012]|aix4.[012].*) 10801 # We only want to do this on AIX 4.2 and lower, the check 10802 # below for broken collect2 doesn't work under 4.3+ 10803 collect2name=`${CC} -print-prog-name=collect2` 10804 if test -f "$collect2name" && \ 10805 strings "$collect2name" | grep resolve_lib_name >/dev/null 10806 then 10807 # We have reworked collect2 10808 hardcode_direct_CXX=yes 10809 else 10810 # We have old collect2 10811 hardcode_direct_CXX=unsupported 10812 # It fails to find uninstalled libraries when the uninstalled 10813 # path is not listed in the libpath. Setting hardcode_minus_L 10814 # to unsupported forces relinking 10815 hardcode_minus_L_CXX=yes 10816 hardcode_libdir_flag_spec_CXX='-L$libdir' 10817 hardcode_libdir_separator_CXX= 10818 fi 10819 ;; 10820 esac 10821 shared_flag='-shared' 10822 if test "$aix_use_runtimelinking" = yes; then 10823 shared_flag="$shared_flag "'${wl}-G' 10824 fi 10825 else 10826 # not using gcc 10827 if test "$host_cpu" = ia64; then 10828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10829 # chokes on -Wl,-G. The following line is correct: 10830 shared_flag='-G' 10831 else 10832 if test "$aix_use_runtimelinking" = yes; then 10833 shared_flag='${wl}-G' 10834 else 10835 shared_flag='${wl}-bM:SRE' 10836 fi 10837 fi 10838 fi 10839 10840 # It seems that -bexpall does not export symbols beginning with 10841 # underscore (_), so it is better to generate a list of symbols to export. 10842 always_export_symbols_CXX=yes 10843 if test "$aix_use_runtimelinking" = yes; then 10844 # Warning - without using the other runtime loading flags (-brtl), 10845 # -berok will link without error, but may produce a broken library. 10846 allow_undefined_flag_CXX='-berok' 10847 # Determine the default libpath from the value encoded in an empty executable. 10848 cat >conftest.$ac_ext <<_ACEOF 10849/* confdefs.h. */ 10850_ACEOF 10851cat confdefs.h >>conftest.$ac_ext 10852cat >>conftest.$ac_ext <<_ACEOF 10853/* end confdefs.h. */ 10854 10855int 10856main () 10857{ 10858 10859 ; 10860 return 0; 10861} 10862_ACEOF 10863rm -f conftest.$ac_objext conftest$ac_exeext 10864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10865 (eval $ac_link) 2>conftest.er1 10866 ac_status=$? 10867 grep -v '^ *+' conftest.er1 >conftest.err 10868 rm -f conftest.er1 10869 cat conftest.err >&5 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10871 (exit $ac_status); } && 10872 { ac_try='test -z "$ac_cxx_werror_flag" 10873 || test ! -s conftest.err' 10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10875 (eval $ac_try) 2>&5 10876 ac_status=$? 10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10878 (exit $ac_status); }; } && 10879 { ac_try='test -s conftest$ac_exeext' 10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10881 (eval $ac_try) 2>&5 10882 ac_status=$? 10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10884 (exit $ac_status); }; }; then 10885 10886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10887}'` 10888# Check for a 64-bit object if we didn't find anything. 10889if 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; } 10890}'`; fi 10891else 10892 echo "$as_me: failed program was:" >&5 10893sed 's/^/| /' conftest.$ac_ext >&5 10894 10895fi 10896rm -f conftest.err conftest.$ac_objext \ 10897 conftest$ac_exeext conftest.$ac_ext 10898if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10899 10900 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10901 10902 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" 10903 else 10904 if test "$host_cpu" = ia64; then 10905 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10906 allow_undefined_flag_CXX="-z nodefs" 10907 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" 10908 else 10909 # Determine the default libpath from the value encoded in an empty executable. 10910 cat >conftest.$ac_ext <<_ACEOF 10911/* confdefs.h. */ 10912_ACEOF 10913cat confdefs.h >>conftest.$ac_ext 10914cat >>conftest.$ac_ext <<_ACEOF 10915/* end confdefs.h. */ 10916 10917int 10918main () 10919{ 10920 10921 ; 10922 return 0; 10923} 10924_ACEOF 10925rm -f conftest.$ac_objext conftest$ac_exeext 10926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10927 (eval $ac_link) 2>conftest.er1 10928 ac_status=$? 10929 grep -v '^ *+' conftest.er1 >conftest.err 10930 rm -f conftest.er1 10931 cat conftest.err >&5 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10933 (exit $ac_status); } && 10934 { ac_try='test -z "$ac_cxx_werror_flag" 10935 || test ! -s conftest.err' 10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10937 (eval $ac_try) 2>&5 10938 ac_status=$? 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 (exit $ac_status); }; } && 10941 { ac_try='test -s conftest$ac_exeext' 10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10943 (eval $ac_try) 2>&5 10944 ac_status=$? 10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10946 (exit $ac_status); }; }; then 10947 10948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10949}'` 10950# Check for a 64-bit object if we didn't find anything. 10951if 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; } 10952}'`; fi 10953else 10954 echo "$as_me: failed program was:" >&5 10955sed 's/^/| /' conftest.$ac_ext >&5 10956 10957fi 10958rm -f conftest.err conftest.$ac_objext \ 10959 conftest$ac_exeext conftest.$ac_ext 10960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10961 10962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10963 # Warning - without using the other run time loading flags, 10964 # -berok will link without error, but may produce a broken library. 10965 no_undefined_flag_CXX=' ${wl}-bernotok' 10966 allow_undefined_flag_CXX=' ${wl}-berok' 10967 # Exported symbols can be pulled into shared objects from archives 10968 whole_archive_flag_spec_CXX='$convenience' 10969 archive_cmds_need_lc_CXX=yes 10970 # This is similar to how AIX traditionally builds its shared libraries. 10971 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' 10972 fi 10973 fi 10974 ;; 10975 10976 beos*) 10977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10978 allow_undefined_flag_CXX=unsupported 10979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10980 # support --undefined. This deserves some investigation. FIXME 10981 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10982 else 10983 ld_shlibs_CXX=no 10984 fi 10985 ;; 10986 10987 chorus*) 10988 case $cc_basename in 10989 *) 10990 # FIXME: insert proper C++ library support 10991 ld_shlibs_CXX=no 10992 ;; 10993 esac 10994 ;; 10995 10996 cygwin* | mingw* | pw32*) 10997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10998 # as there is no search path for DLLs. 10999 hardcode_libdir_flag_spec_CXX='-L$libdir' 11000 allow_undefined_flag_CXX=unsupported 11001 always_export_symbols_CXX=no 11002 enable_shared_with_static_runtimes_CXX=yes 11003 11004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11005 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' 11006 # If the export-symbols file already is a .def file (1st line 11007 # is EXPORTS), use it as is; otherwise, prepend... 11008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11009 cp $export_symbols $output_objdir/$soname.def; 11010 else 11011 echo EXPORTS > $output_objdir/$soname.def; 11012 cat $export_symbols >> $output_objdir/$soname.def; 11013 fi~ 11014 $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' 11015 else 11016 ld_shlibs_CXX=no 11017 fi 11018 ;; 11019 darwin* | rhapsody*) 11020 case $host_os in 11021 rhapsody* | darwin1.[012]) 11022 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11023 ;; 11024 *) # Darwin 1.3 on 11025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11026 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11027 else 11028 case ${MACOSX_DEPLOYMENT_TARGET} in 11029 10.[012]) 11030 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11031 ;; 11032 10.*) 11033 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11034 ;; 11035 esac 11036 fi 11037 ;; 11038 esac 11039 archive_cmds_need_lc_CXX=no 11040 hardcode_direct_CXX=no 11041 hardcode_automatic_CXX=yes 11042 hardcode_shlibpath_var_CXX=unsupported 11043 whole_archive_flag_spec_CXX='' 11044 link_all_deplibs_CXX=yes 11045 11046 if test "$GXX" = yes ; then 11047 lt_int_apple_cc_single_mod=no 11048 output_verbose_link_cmd='echo' 11049 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11050 lt_int_apple_cc_single_mod=yes 11051 fi 11052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11053 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11054 else 11055 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' 11056 fi 11057 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11060 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}' 11061 else 11062 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}' 11063 fi 11064 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}' 11065 else 11066 case $cc_basename in 11067 xlc*) 11068 output_verbose_link_cmd='echo' 11069 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' 11070 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11072 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}' 11073 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}' 11074 ;; 11075 *) 11076 ld_shlibs_CXX=no 11077 ;; 11078 esac 11079 fi 11080 ;; 11081 11082 dgux*) 11083 case $cc_basename in 11084 ec++*) 11085 # FIXME: insert proper C++ library support 11086 ld_shlibs_CXX=no 11087 ;; 11088 ghcx*) 11089 # Green Hills C++ Compiler 11090 # FIXME: insert proper C++ library support 11091 ld_shlibs_CXX=no 11092 ;; 11093 *) 11094 # FIXME: insert proper C++ library support 11095 ld_shlibs_CXX=no 11096 ;; 11097 esac 11098 ;; 11099 freebsd[12]*) 11100 # C++ shared libraries reported to be fairly broken before switch to ELF 11101 ld_shlibs_CXX=no 11102 ;; 11103 freebsd-elf*) 11104 archive_cmds_need_lc_CXX=no 11105 ;; 11106 freebsd* | kfreebsd*-gnu | dragonfly*) 11107 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11108 # conventions 11109 ld_shlibs_CXX=yes 11110 ;; 11111 gnu*) 11112 ;; 11113 hpux9*) 11114 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11115 hardcode_libdir_separator_CXX=: 11116 export_dynamic_flag_spec_CXX='${wl}-E' 11117 hardcode_direct_CXX=yes 11118 hardcode_minus_L_CXX=yes # Not in the search PATH, 11119 # but as the default 11120 # location of the library. 11121 11122 case $cc_basename in 11123 CC*) 11124 # FIXME: insert proper C++ library support 11125 ld_shlibs_CXX=no 11126 ;; 11127 aCC*) 11128 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' 11129 # Commands to make compiler produce verbose output that lists 11130 # what "hidden" libraries, object files and flags are used when 11131 # linking a shared library. 11132 # 11133 # There doesn't appear to be a way to prevent this compiler from 11134 # explicitly linking system object files so we need to strip them 11135 # from the output so that they don't get included in the library 11136 # dependencies. 11137 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' 11138 ;; 11139 *) 11140 if test "$GXX" = yes; then 11141 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' 11142 else 11143 # FIXME: insert proper C++ library support 11144 ld_shlibs_CXX=no 11145 fi 11146 ;; 11147 esac 11148 ;; 11149 hpux10*|hpux11*) 11150 if test $with_gnu_ld = no; then 11151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11152 hardcode_libdir_separator_CXX=: 11153 11154 case $host_cpu in 11155 hppa*64*|ia64*) 11156 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11157 ;; 11158 *) 11159 export_dynamic_flag_spec_CXX='${wl}-E' 11160 ;; 11161 esac 11162 fi 11163 case $host_cpu in 11164 hppa*64*|ia64*) 11165 hardcode_direct_CXX=no 11166 hardcode_shlibpath_var_CXX=no 11167 ;; 11168 *) 11169 hardcode_direct_CXX=yes 11170 hardcode_minus_L_CXX=yes # Not in the search PATH, 11171 # but as the default 11172 # location of the library. 11173 ;; 11174 esac 11175 11176 case $cc_basename in 11177 CC*) 11178 # FIXME: insert proper C++ library support 11179 ld_shlibs_CXX=no 11180 ;; 11181 aCC*) 11182 case $host_cpu in 11183 hppa*64*) 11184 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11185 ;; 11186 ia64*) 11187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11188 ;; 11189 *) 11190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11191 ;; 11192 esac 11193 # Commands to make compiler produce verbose output that lists 11194 # what "hidden" libraries, object files and flags are used when 11195 # linking a shared library. 11196 # 11197 # There doesn't appear to be a way to prevent this compiler from 11198 # explicitly linking system object files so we need to strip them 11199 # from the output so that they don't get included in the library 11200 # dependencies. 11201 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' 11202 ;; 11203 *) 11204 if test "$GXX" = yes; then 11205 if test $with_gnu_ld = no; then 11206 case $host_cpu in 11207 hppa*64*) 11208 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11209 ;; 11210 ia64*) 11211 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11212 ;; 11213 *) 11214 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' 11215 ;; 11216 esac 11217 fi 11218 else 11219 # FIXME: insert proper C++ library support 11220 ld_shlibs_CXX=no 11221 fi 11222 ;; 11223 esac 11224 ;; 11225 interix3*) 11226 hardcode_direct_CXX=no 11227 hardcode_shlibpath_var_CXX=no 11228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11229 export_dynamic_flag_spec_CXX='${wl}-E' 11230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11231 # Instead, shared libraries are loaded at an image base (0x10000000 by 11232 # default) and relocated if they conflict, which is a slow very memory 11233 # consuming and fragmenting process. To avoid this, we pick a random, 11234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11235 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11236 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' 11237 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' 11238 ;; 11239 irix5* | irix6*) 11240 case $cc_basename in 11241 CC*) 11242 # SGI C++ 11243 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' 11244 11245 # Archives containing C++ object files must be created using 11246 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11247 # necessary to make sure instantiated templates are included 11248 # in the archive. 11249 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11250 ;; 11251 *) 11252 if test "$GXX" = yes; then 11253 if test "$with_gnu_ld" = no; then 11254 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' 11255 else 11256 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' 11257 fi 11258 fi 11259 link_all_deplibs_CXX=yes 11260 ;; 11261 esac 11262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11263 hardcode_libdir_separator_CXX=: 11264 ;; 11265 linux*) 11266 case $cc_basename in 11267 KCC*) 11268 # Kuck and Associates, Inc. (KAI) C++ Compiler 11269 11270 # KCC will only create a shared library if the output file 11271 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11272 # to its proper name (with version) after linking. 11273 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' 11274 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' 11275 # Commands to make compiler produce verbose output that lists 11276 # what "hidden" libraries, object files and flags are used when 11277 # linking a shared library. 11278 # 11279 # There doesn't appear to be a way to prevent this compiler from 11280 # explicitly linking system object files so we need to strip them 11281 # from the output so that they don't get included in the library 11282 # dependencies. 11283 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' 11284 11285 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11287 11288 # Archives containing C++ object files must be created using 11289 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11290 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11291 ;; 11292 icpc*) 11293 # Intel C++ 11294 with_gnu_ld=yes 11295 # version 8.0 and above of icpc choke on multiply defined symbols 11296 # if we add $predep_objects and $postdep_objects, however 7.1 and 11297 # earlier do not add the objects themselves. 11298 case `$CC -V 2>&1` in 11299 *"Version 7."*) 11300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11301 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' 11302 ;; 11303 *) # Version 8.0 or newer 11304 tmp_idyn= 11305 case $host_cpu in 11306 ia64*) tmp_idyn=' -i_dynamic';; 11307 esac 11308 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11309 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' 11310 ;; 11311 esac 11312 archive_cmds_need_lc_CXX=no 11313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11316 ;; 11317 pgCC*) 11318 # Portland Group C++ compiler 11319 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11320 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' 11321 11322 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11324 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' 11325 ;; 11326 cxx*) 11327 # Compaq C++ 11328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11329 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' 11330 11331 runpath_var=LD_RUN_PATH 11332 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11333 hardcode_libdir_separator_CXX=: 11334 11335 # Commands to make compiler produce verbose output that lists 11336 # what "hidden" libraries, object files and flags are used when 11337 # linking a shared library. 11338 # 11339 # There doesn't appear to be a way to prevent this compiler from 11340 # explicitly linking system object files so we need to strip them 11341 # from the output so that they don't get included in the library 11342 # dependencies. 11343 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' 11344 ;; 11345 esac 11346 ;; 11347 lynxos*) 11348 # FIXME: insert proper C++ library support 11349 ld_shlibs_CXX=no 11350 ;; 11351 m88k*) 11352 # FIXME: insert proper C++ library support 11353 ld_shlibs_CXX=no 11354 ;; 11355 mvs*) 11356 case $cc_basename in 11357 cxx*) 11358 # FIXME: insert proper C++ library support 11359 ld_shlibs_CXX=no 11360 ;; 11361 *) 11362 # FIXME: insert proper C++ library support 11363 ld_shlibs_CXX=no 11364 ;; 11365 esac 11366 ;; 11367 netbsd*) 11368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11369 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11370 wlarc= 11371 hardcode_libdir_flag_spec_CXX='-R$libdir' 11372 hardcode_direct_CXX=yes 11373 hardcode_shlibpath_var_CXX=no 11374 fi 11375 # Workaround some broken pre-1.5 toolchains 11376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11377 ;; 11378 openbsd2*) 11379 # C++ shared libraries are fairly broken 11380 ld_shlibs_CXX=no 11381 ;; 11382 openbsd*) 11383 hardcode_direct_CXX=yes 11384 hardcode_shlibpath_var_CXX=no 11385 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11388 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11389 export_dynamic_flag_spec_CXX='${wl}-E' 11390 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11391 fi 11392 output_verbose_link_cmd='echo' 11393 ;; 11394 osf3*) 11395 case $cc_basename in 11396 KCC*) 11397 # Kuck and Associates, Inc. (KAI) C++ Compiler 11398 11399 # KCC will only create a shared library if the output file 11400 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11401 # to its proper name (with version) after linking. 11402 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' 11403 11404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11405 hardcode_libdir_separator_CXX=: 11406 11407 # Archives containing C++ object files must be created using 11408 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11409 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11410 11411 ;; 11412 RCC*) 11413 # Rational C++ 2.4.1 11414 # FIXME: insert proper C++ library support 11415 ld_shlibs_CXX=no 11416 ;; 11417 cxx*) 11418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11419 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' 11420 11421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11422 hardcode_libdir_separator_CXX=: 11423 11424 # Commands to make compiler produce verbose output that lists 11425 # what "hidden" libraries, object files and flags are used when 11426 # linking a shared library. 11427 # 11428 # There doesn't appear to be a way to prevent this compiler from 11429 # explicitly linking system object files so we need to strip them 11430 # from the output so that they don't get included in the library 11431 # dependencies. 11432 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' 11433 ;; 11434 *) 11435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11437 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' 11438 11439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11440 hardcode_libdir_separator_CXX=: 11441 11442 # Commands to make compiler produce verbose output that lists 11443 # what "hidden" libraries, object files and flags are used when 11444 # linking a shared library. 11445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11446 11447 else 11448 # FIXME: insert proper C++ library support 11449 ld_shlibs_CXX=no 11450 fi 11451 ;; 11452 esac 11453 ;; 11454 osf4* | osf5*) 11455 case $cc_basename in 11456 KCC*) 11457 # Kuck and Associates, Inc. (KAI) C++ Compiler 11458 11459 # KCC will only create a shared library if the output file 11460 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11461 # to its proper name (with version) after linking. 11462 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' 11463 11464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11465 hardcode_libdir_separator_CXX=: 11466 11467 # Archives containing C++ object files must be created using 11468 # the KAI C++ compiler. 11469 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11470 ;; 11471 RCC*) 11472 # Rational C++ 2.4.1 11473 # FIXME: insert proper C++ library support 11474 ld_shlibs_CXX=no 11475 ;; 11476 cxx*) 11477 allow_undefined_flag_CXX=' -expect_unresolved \*' 11478 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' 11479 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11480 echo "-hidden">> $lib.exp~ 11481 $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~ 11482 $rm $lib.exp' 11483 11484 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11485 hardcode_libdir_separator_CXX=: 11486 11487 # Commands to make compiler produce verbose output that lists 11488 # what "hidden" libraries, object files and flags are used when 11489 # linking a shared library. 11490 # 11491 # There doesn't appear to be a way to prevent this compiler from 11492 # explicitly linking system object files so we need to strip them 11493 # from the output so that they don't get included in the library 11494 # dependencies. 11495 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' 11496 ;; 11497 *) 11498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11500 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' 11501 11502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11503 hardcode_libdir_separator_CXX=: 11504 11505 # Commands to make compiler produce verbose output that lists 11506 # what "hidden" libraries, object files and flags are used when 11507 # linking a shared library. 11508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11509 11510 else 11511 # FIXME: insert proper C++ library support 11512 ld_shlibs_CXX=no 11513 fi 11514 ;; 11515 esac 11516 ;; 11517 psos*) 11518 # FIXME: insert proper C++ library support 11519 ld_shlibs_CXX=no 11520 ;; 11521 sunos4*) 11522 case $cc_basename in 11523 CC*) 11524 # Sun C++ 4.x 11525 # FIXME: insert proper C++ library support 11526 ld_shlibs_CXX=no 11527 ;; 11528 lcc*) 11529 # Lucid 11530 # FIXME: insert proper C++ library support 11531 ld_shlibs_CXX=no 11532 ;; 11533 *) 11534 # FIXME: insert proper C++ library support 11535 ld_shlibs_CXX=no 11536 ;; 11537 esac 11538 ;; 11539 solaris*) 11540 case $cc_basename in 11541 CC*) 11542 # Sun C++ 4.2, 5.x and Centerline C++ 11543 archive_cmds_need_lc_CXX=yes 11544 no_undefined_flag_CXX=' -zdefs' 11545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11547 $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' 11548 11549 hardcode_libdir_flag_spec_CXX='-R$libdir' 11550 hardcode_shlibpath_var_CXX=no 11551 case $host_os in 11552 solaris2.[0-5] | solaris2.[0-5].*) ;; 11553 *) 11554 # The C++ compiler is used as linker so we must use $wl 11555 # flag to pass the commands to the underlying system 11556 # linker. We must also pass each convience library through 11557 # to the system linker between allextract/defaultextract. 11558 # The C++ compiler will combine linker options so we 11559 # cannot just pass the convience library names through 11560 # without $wl. 11561 # Supported since Solaris 2.6 (maybe 2.5.1?) 11562 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' 11563 ;; 11564 esac 11565 link_all_deplibs_CXX=yes 11566 11567 output_verbose_link_cmd='echo' 11568 11569 # Archives containing C++ object files must be created using 11570 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11571 # necessary to make sure instantiated templates are included 11572 # in the archive. 11573 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11574 ;; 11575 gcx*) 11576 # Green Hills C++ Compiler 11577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11578 11579 # The C++ compiler must be used to create the archive. 11580 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11581 ;; 11582 *) 11583 # GNU C++ compiler with Solaris linker 11584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11585 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11586 if $CC --version | grep -v '^2\.7' > /dev/null; then 11587 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11590 11591 # Commands to make compiler produce verbose output that lists 11592 # what "hidden" libraries, object files and flags are used when 11593 # linking a shared library. 11594 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11595 else 11596 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11597 # platform. 11598 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11599 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11600 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11601 11602 # Commands to make compiler produce verbose output that lists 11603 # what "hidden" libraries, object files and flags are used when 11604 # linking a shared library. 11605 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11606 fi 11607 11608 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11609 fi 11610 ;; 11611 esac 11612 ;; 11613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11614 no_undefined_flag_CXX='${wl}-z,text' 11615 archive_cmds_need_lc_CXX=no 11616 hardcode_shlibpath_var_CXX=no 11617 runpath_var='LD_RUN_PATH' 11618 11619 case $cc_basename in 11620 CC*) 11621 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11622 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11623 ;; 11624 *) 11625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11627 ;; 11628 esac 11629 ;; 11630 sysv5* | sco3.2v5* | sco5v6*) 11631 # Note: We can NOT use -z defs as we might desire, because we do not 11632 # link with -lc, and that would cause any symbols used from libc to 11633 # always be unresolved, which means just about no library would 11634 # ever link correctly. If we're not using GNU ld we use -z text 11635 # though, which does catch some bad symbols but isn't as heavy-handed 11636 # as -z defs. 11637 # For security reasons, it is highly recommended that you always 11638 # use absolute paths for naming shared libraries, and exclude the 11639 # DT_RUNPATH tag from executables and libraries. But doing so 11640 # requires that you compile everything twice, which is a pain. 11641 # So that behaviour is only enabled if SCOABSPATH is set to a 11642 # non-empty value in the environment. Most likely only useful for 11643 # creating official distributions of packages. 11644 # This is a hack until libtool officially supports absolute path 11645 # names for shared libraries. 11646 no_undefined_flag_CXX='${wl}-z,text' 11647 allow_undefined_flag_CXX='${wl}-z,nodefs' 11648 archive_cmds_need_lc_CXX=no 11649 hardcode_shlibpath_var_CXX=no 11650 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11651 hardcode_libdir_separator_CXX=':' 11652 link_all_deplibs_CXX=yes 11653 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11654 runpath_var='LD_RUN_PATH' 11655 11656 case $cc_basename in 11657 CC*) 11658 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11659 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11660 ;; 11661 *) 11662 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11663 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11664 ;; 11665 esac 11666 ;; 11667 tandem*) 11668 case $cc_basename in 11669 NCC*) 11670 # NonStop-UX NCC 3.20 11671 # FIXME: insert proper C++ library support 11672 ld_shlibs_CXX=no 11673 ;; 11674 *) 11675 # FIXME: insert proper C++ library support 11676 ld_shlibs_CXX=no 11677 ;; 11678 esac 11679 ;; 11680 vxworks*) 11681 # FIXME: insert proper C++ library support 11682 ld_shlibs_CXX=no 11683 ;; 11684 *) 11685 # FIXME: insert proper C++ library support 11686 ld_shlibs_CXX=no 11687 ;; 11688esac 11689echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11690echo "${ECHO_T}$ld_shlibs_CXX" >&6 11691test "$ld_shlibs_CXX" = no && can_build_shared=no 11692 11693GCC_CXX="$GXX" 11694LD_CXX="$LD" 11695 11696 11697cat > conftest.$ac_ext <<EOF 11698class Foo 11699{ 11700public: 11701 Foo (void) { a = 0; } 11702private: 11703 int a; 11704}; 11705EOF 11706 11707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11708 (eval $ac_compile) 2>&5 11709 ac_status=$? 11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11711 (exit $ac_status); }; then 11712 # Parse the compiler output and extract the necessary 11713 # objects, libraries and library flags. 11714 11715 # Sentinel used to keep track of whether or not we are before 11716 # the conftest object file. 11717 pre_test_object_deps_done=no 11718 11719 # The `*' in the case matches for architectures that use `case' in 11720 # $output_verbose_cmd can trigger glob expansion during the loop 11721 # eval without this substitution. 11722 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11723 11724 for p in `eval $output_verbose_link_cmd`; do 11725 case $p in 11726 11727 -L* | -R* | -l*) 11728 # Some compilers place space between "-{L,R}" and the path. 11729 # Remove the space. 11730 if test $p = "-L" \ 11731 || test $p = "-R"; then 11732 prev=$p 11733 continue 11734 else 11735 prev= 11736 fi 11737 11738 if test "$pre_test_object_deps_done" = no; then 11739 case $p in 11740 -L* | -R*) 11741 # Internal compiler library paths should come after those 11742 # provided the user. The postdeps already come after the 11743 # user supplied libs so there is no need to process them. 11744 if test -z "$compiler_lib_search_path_CXX"; then 11745 compiler_lib_search_path_CXX="${prev}${p}" 11746 else 11747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11748 fi 11749 ;; 11750 # The "-l" case would never come before the object being 11751 # linked, so don't bother handling this case. 11752 esac 11753 else 11754 if test -z "$postdeps_CXX"; then 11755 postdeps_CXX="${prev}${p}" 11756 else 11757 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11758 fi 11759 fi 11760 ;; 11761 11762 *.$objext) 11763 # This assumes that the test object file only shows up 11764 # once in the compiler output. 11765 if test "$p" = "conftest.$objext"; then 11766 pre_test_object_deps_done=yes 11767 continue 11768 fi 11769 11770 if test "$pre_test_object_deps_done" = no; then 11771 if test -z "$predep_objects_CXX"; then 11772 predep_objects_CXX="$p" 11773 else 11774 predep_objects_CXX="$predep_objects_CXX $p" 11775 fi 11776 else 11777 if test -z "$postdep_objects_CXX"; then 11778 postdep_objects_CXX="$p" 11779 else 11780 postdep_objects_CXX="$postdep_objects_CXX $p" 11781 fi 11782 fi 11783 ;; 11784 11785 *) ;; # Ignore the rest. 11786 11787 esac 11788 done 11789 11790 # Clean up. 11791 rm -f a.out a.exe 11792else 11793 echo "libtool.m4: error: problem compiling CXX test program" 11794fi 11795 11796$rm -f confest.$objext 11797 11798# PORTME: override above test on systems where it is broken 11799case $host_os in 11800interix3*) 11801 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11802 # hack all around it, let's just trust "g++" to DTRT. 11803 predep_objects_CXX= 11804 postdep_objects_CXX= 11805 postdeps_CXX= 11806 ;; 11807 11808solaris*) 11809 case $cc_basename in 11810 CC*) 11811 # Adding this requires a known-good setup of shared libraries for 11812 # Sun compiler versions before 5.6, else PIC objects from an old 11813 # archive will be linked into the output, leading to subtle bugs. 11814 postdeps_CXX='-lCstd -lCrun' 11815 ;; 11816 esac 11817 ;; 11818esac 11819 11820 11821case " $postdeps_CXX " in 11822*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11823esac 11824 11825lt_prog_compiler_wl_CXX= 11826lt_prog_compiler_pic_CXX= 11827lt_prog_compiler_static_CXX= 11828 11829echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11830echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11831 11832 # C++ specific cases for pic, static, wl, etc. 11833 if test "$GXX" = yes; then 11834 lt_prog_compiler_wl_CXX='-Wl,' 11835 lt_prog_compiler_static_CXX='-static' 11836 11837 case $host_os in 11838 aix*) 11839 # All AIX code is PIC. 11840 if test "$host_cpu" = ia64; then 11841 # AIX 5 now supports IA64 processor 11842 lt_prog_compiler_static_CXX='-Bstatic' 11843 fi 11844 ;; 11845 amigaos*) 11846 # FIXME: we need at least 68020 code to build shared libraries, but 11847 # adding the `-m68020' flag to GCC prevents building anything better, 11848 # like `-m68040'. 11849 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11850 ;; 11851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11852 # PIC is the default for these OSes. 11853 ;; 11854 mingw* | os2* | pw32*) 11855 # This hack is so that the source file can tell whether it is being 11856 # built for inclusion in a dll (and should export symbols for example). 11857 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11858 ;; 11859 darwin* | rhapsody*) 11860 # PIC is the default on this platform 11861 # Common symbols not allowed in MH_DYLIB files 11862 lt_prog_compiler_pic_CXX='-fno-common' 11863 ;; 11864 *djgpp*) 11865 # DJGPP does not support shared libraries at all 11866 lt_prog_compiler_pic_CXX= 11867 ;; 11868 interix3*) 11869 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11870 # Instead, we relocate shared libraries at runtime. 11871 ;; 11872 sysv4*MP*) 11873 if test -d /usr/nec; then 11874 lt_prog_compiler_pic_CXX=-Kconform_pic 11875 fi 11876 ;; 11877 hpux*) 11878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11879 # not for PA HP-UX. 11880 case $host_cpu in 11881 hppa*64*|ia64*) 11882 ;; 11883 *) 11884 lt_prog_compiler_pic_CXX='-fPIC' 11885 ;; 11886 esac 11887 ;; 11888 *) 11889 lt_prog_compiler_pic_CXX='-fPIC' 11890 ;; 11891 esac 11892 else 11893 case $host_os in 11894 aix4* | aix5*) 11895 # All AIX code is PIC. 11896 if test "$host_cpu" = ia64; then 11897 # AIX 5 now supports IA64 processor 11898 lt_prog_compiler_static_CXX='-Bstatic' 11899 else 11900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11901 fi 11902 ;; 11903 chorus*) 11904 case $cc_basename in 11905 cxch68*) 11906 # Green Hills C++ Compiler 11907 # _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" 11908 ;; 11909 esac 11910 ;; 11911 darwin*) 11912 # PIC is the default on this platform 11913 # Common symbols not allowed in MH_DYLIB files 11914 case $cc_basename in 11915 xlc*) 11916 lt_prog_compiler_pic_CXX='-qnocommon' 11917 lt_prog_compiler_wl_CXX='-Wl,' 11918 ;; 11919 esac 11920 ;; 11921 dgux*) 11922 case $cc_basename in 11923 ec++*) 11924 lt_prog_compiler_pic_CXX='-KPIC' 11925 ;; 11926 ghcx*) 11927 # Green Hills C++ Compiler 11928 lt_prog_compiler_pic_CXX='-pic' 11929 ;; 11930 *) 11931 ;; 11932 esac 11933 ;; 11934 freebsd* | kfreebsd*-gnu | dragonfly*) 11935 # FreeBSD uses GNU C++ 11936 ;; 11937 hpux9* | hpux10* | hpux11*) 11938 case $cc_basename in 11939 CC*) 11940 lt_prog_compiler_wl_CXX='-Wl,' 11941 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11942 if test "$host_cpu" != ia64; then 11943 lt_prog_compiler_pic_CXX='+Z' 11944 fi 11945 ;; 11946 aCC*) 11947 lt_prog_compiler_wl_CXX='-Wl,' 11948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11949 case $host_cpu in 11950 hppa*64*|ia64*) 11951 # +Z the default 11952 ;; 11953 *) 11954 lt_prog_compiler_pic_CXX='+Z' 11955 ;; 11956 esac 11957 ;; 11958 *) 11959 ;; 11960 esac 11961 ;; 11962 interix*) 11963 # This is c89, which is MS Visual C++ (no shared libs) 11964 # Anyone wants to do a port? 11965 ;; 11966 irix5* | irix6* | nonstopux*) 11967 case $cc_basename in 11968 CC*) 11969 lt_prog_compiler_wl_CXX='-Wl,' 11970 lt_prog_compiler_static_CXX='-non_shared' 11971 # CC pic flag -KPIC is the default. 11972 ;; 11973 *) 11974 ;; 11975 esac 11976 ;; 11977 linux*) 11978 case $cc_basename in 11979 KCC*) 11980 # KAI C++ Compiler 11981 lt_prog_compiler_wl_CXX='--backend -Wl,' 11982 lt_prog_compiler_pic_CXX='-fPIC' 11983 ;; 11984 icpc* | ecpc*) 11985 # Intel C++ 11986 lt_prog_compiler_wl_CXX='-Wl,' 11987 lt_prog_compiler_pic_CXX='-KPIC' 11988 lt_prog_compiler_static_CXX='-static' 11989 ;; 11990 pgCC*) 11991 # Portland Group C++ compiler. 11992 lt_prog_compiler_wl_CXX='-Wl,' 11993 lt_prog_compiler_pic_CXX='-fpic' 11994 lt_prog_compiler_static_CXX='-Bstatic' 11995 ;; 11996 cxx*) 11997 # Compaq C++ 11998 # Make sure the PIC flag is empty. It appears that all Alpha 11999 # Linux and Compaq Tru64 Unix objects are PIC. 12000 lt_prog_compiler_pic_CXX= 12001 lt_prog_compiler_static_CXX='-non_shared' 12002 ;; 12003 *) 12004 ;; 12005 esac 12006 ;; 12007 lynxos*) 12008 ;; 12009 m88k*) 12010 ;; 12011 mvs*) 12012 case $cc_basename in 12013 cxx*) 12014 lt_prog_compiler_pic_CXX='-W c,exportall' 12015 ;; 12016 *) 12017 ;; 12018 esac 12019 ;; 12020 netbsd*) 12021 ;; 12022 osf3* | osf4* | osf5*) 12023 case $cc_basename in 12024 KCC*) 12025 lt_prog_compiler_wl_CXX='--backend -Wl,' 12026 ;; 12027 RCC*) 12028 # Rational C++ 2.4.1 12029 lt_prog_compiler_pic_CXX='-pic' 12030 ;; 12031 cxx*) 12032 # Digital/Compaq C++ 12033 lt_prog_compiler_wl_CXX='-Wl,' 12034 # Make sure the PIC flag is empty. It appears that all Alpha 12035 # Linux and Compaq Tru64 Unix objects are PIC. 12036 lt_prog_compiler_pic_CXX= 12037 lt_prog_compiler_static_CXX='-non_shared' 12038 ;; 12039 *) 12040 ;; 12041 esac 12042 ;; 12043 psos*) 12044 ;; 12045 solaris*) 12046 case $cc_basename in 12047 CC*) 12048 # Sun C++ 4.2, 5.x and Centerline C++ 12049 lt_prog_compiler_pic_CXX='-KPIC' 12050 lt_prog_compiler_static_CXX='-Bstatic' 12051 lt_prog_compiler_wl_CXX='-Qoption ld ' 12052 ;; 12053 gcx*) 12054 # Green Hills C++ Compiler 12055 lt_prog_compiler_pic_CXX='-PIC' 12056 ;; 12057 *) 12058 ;; 12059 esac 12060 ;; 12061 sunos4*) 12062 case $cc_basename in 12063 CC*) 12064 # Sun C++ 4.x 12065 lt_prog_compiler_pic_CXX='-pic' 12066 lt_prog_compiler_static_CXX='-Bstatic' 12067 ;; 12068 lcc*) 12069 # Lucid 12070 lt_prog_compiler_pic_CXX='-pic' 12071 ;; 12072 *) 12073 ;; 12074 esac 12075 ;; 12076 tandem*) 12077 case $cc_basename in 12078 NCC*) 12079 # NonStop-UX NCC 3.20 12080 lt_prog_compiler_pic_CXX='-KPIC' 12081 ;; 12082 *) 12083 ;; 12084 esac 12085 ;; 12086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12087 case $cc_basename in 12088 CC*) 12089 lt_prog_compiler_wl_CXX='-Wl,' 12090 lt_prog_compiler_pic_CXX='-KPIC' 12091 lt_prog_compiler_static_CXX='-Bstatic' 12092 ;; 12093 esac 12094 ;; 12095 vxworks*) 12096 ;; 12097 *) 12098 lt_prog_compiler_can_build_shared_CXX=no 12099 ;; 12100 esac 12101 fi 12102 12103echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12104echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12105 12106# 12107# Check to make sure the PIC flag actually works. 12108# 12109if test -n "$lt_prog_compiler_pic_CXX"; then 12110 12111echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12113if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12114 echo $ECHO_N "(cached) $ECHO_C" >&6 12115else 12116 lt_prog_compiler_pic_works_CXX=no 12117 ac_outfile=conftest.$ac_objext 12118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12119 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12120 # Insert the option either (1) after the last *FLAGS variable, or 12121 # (2) before a word containing "conftest.", or (3) at the end. 12122 # Note that $ac_compile itself does not contain backslashes and begins 12123 # with a dollar sign (not a hyphen), so the echo should work correctly. 12124 # The option is referenced via a variable to avoid confusing sed. 12125 lt_compile=`echo "$ac_compile" | $SED \ 12126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12128 -e 's:$: $lt_compiler_flag:'` 12129 (eval echo "\"\$as_me:12129: $lt_compile\"" >&5) 12130 (eval "$lt_compile" 2>conftest.err) 12131 ac_status=$? 12132 cat conftest.err >&5 12133 echo "$as_me:12133: \$? = $ac_status" >&5 12134 if (exit $ac_status) && test -s "$ac_outfile"; then 12135 # The compiler can only warn and ignore the option if not recognized 12136 # So say no if there are warnings other than the usual output. 12137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12140 lt_prog_compiler_pic_works_CXX=yes 12141 fi 12142 fi 12143 $rm conftest* 12144 12145fi 12146echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12147echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12148 12149if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12150 case $lt_prog_compiler_pic_CXX in 12151 "" | " "*) ;; 12152 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12153 esac 12154else 12155 lt_prog_compiler_pic_CXX= 12156 lt_prog_compiler_can_build_shared_CXX=no 12157fi 12158 12159fi 12160case $host_os in 12161 # For platforms which do not support PIC, -DPIC is meaningless: 12162 *djgpp*) 12163 lt_prog_compiler_pic_CXX= 12164 ;; 12165 *) 12166 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12167 ;; 12168esac 12169 12170# 12171# Check to make sure the static flag actually works. 12172# 12173wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12174echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12176if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12177 echo $ECHO_N "(cached) $ECHO_C" >&6 12178else 12179 lt_prog_compiler_static_works_CXX=no 12180 save_LDFLAGS="$LDFLAGS" 12181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12182 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12184 # The linker can only warn and ignore the option if not recognized 12185 # So say no if there are warnings 12186 if test -s conftest.err; then 12187 # Append any errors to the config.log. 12188 cat conftest.err 1>&5 12189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12191 if diff conftest.exp conftest.er2 >/dev/null; then 12192 lt_prog_compiler_static_works_CXX=yes 12193 fi 12194 else 12195 lt_prog_compiler_static_works_CXX=yes 12196 fi 12197 fi 12198 $rm conftest* 12199 LDFLAGS="$save_LDFLAGS" 12200 12201fi 12202echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12203echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 12204 12205if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12206 : 12207else 12208 lt_prog_compiler_static_CXX= 12209fi 12210 12211 12212echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12214if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12215 echo $ECHO_N "(cached) $ECHO_C" >&6 12216else 12217 lt_cv_prog_compiler_c_o_CXX=no 12218 $rm -r conftest 2>/dev/null 12219 mkdir conftest 12220 cd conftest 12221 mkdir out 12222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12223 12224 lt_compiler_flag="-o out/conftest2.$ac_objext" 12225 # Insert the option either (1) after the last *FLAGS variable, or 12226 # (2) before a word containing "conftest.", or (3) at the end. 12227 # Note that $ac_compile itself does not contain backslashes and begins 12228 # with a dollar sign (not a hyphen), so the echo should work correctly. 12229 lt_compile=`echo "$ac_compile" | $SED \ 12230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12232 -e 's:$: $lt_compiler_flag:'` 12233 (eval echo "\"\$as_me:12233: $lt_compile\"" >&5) 12234 (eval "$lt_compile" 2>out/conftest.err) 12235 ac_status=$? 12236 cat out/conftest.err >&5 12237 echo "$as_me:12237: \$? = $ac_status" >&5 12238 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12239 then 12240 # The compiler can only warn and ignore the option if not recognized 12241 # So say no if there are warnings 12242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12245 lt_cv_prog_compiler_c_o_CXX=yes 12246 fi 12247 fi 12248 chmod u+w . 2>&5 12249 $rm conftest* 12250 # SGI C++ compiler will create directory out/ii_files/ for 12251 # template instantiation 12252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12253 $rm out/* && rmdir out 12254 cd .. 12255 rmdir conftest 12256 $rm conftest* 12257 12258fi 12259echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12260echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12261 12262 12263hard_links="nottested" 12264if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12265 # do not overwrite the value of need_locks provided by the user 12266 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12268 hard_links=yes 12269 $rm conftest* 12270 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12271 touch conftest.a 12272 ln conftest.a conftest.b 2>&5 || hard_links=no 12273 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12274 echo "$as_me:$LINENO: result: $hard_links" >&5 12275echo "${ECHO_T}$hard_links" >&6 12276 if test "$hard_links" = no; then 12277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12279 need_locks=warn 12280 fi 12281else 12282 need_locks=no 12283fi 12284 12285echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12287 12288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12289 case $host_os in 12290 aix4* | aix5*) 12291 # If we're using GNU nm, then we don't want the "-C" option. 12292 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12294 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' 12295 else 12296 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' 12297 fi 12298 ;; 12299 pw32*) 12300 export_symbols_cmds_CXX="$ltdll_cmds" 12301 ;; 12302 cygwin* | mingw*) 12303 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' 12304 ;; 12305 *) 12306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12307 ;; 12308 esac 12309 12310echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12311echo "${ECHO_T}$ld_shlibs_CXX" >&6 12312test "$ld_shlibs_CXX" = no && can_build_shared=no 12313 12314# 12315# Do we need to explicitly link libc? 12316# 12317case "x$archive_cmds_need_lc_CXX" in 12318x|xyes) 12319 # Assume -lc should be added 12320 archive_cmds_need_lc_CXX=yes 12321 12322 if test "$enable_shared" = yes && test "$GCC" = yes; then 12323 case $archive_cmds_CXX in 12324 *'~'*) 12325 # FIXME: we may have to deal with multi-command sequences. 12326 ;; 12327 '$CC '*) 12328 # Test whether the compiler implicitly links with -lc since on some 12329 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12330 # to ld, don't add -lc before -lgcc. 12331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12333 $rm conftest* 12334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12335 12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12337 (eval $ac_compile) 2>&5 12338 ac_status=$? 12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12340 (exit $ac_status); } 2>conftest.err; then 12341 soname=conftest 12342 lib=conftest 12343 libobjs=conftest.$ac_objext 12344 deplibs= 12345 wl=$lt_prog_compiler_wl_CXX 12346 pic_flag=$lt_prog_compiler_pic_CXX 12347 compiler_flags=-v 12348 linker_flags=-v 12349 verstring= 12350 output_objdir=. 12351 libname=conftest 12352 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12353 allow_undefined_flag_CXX= 12354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12355 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12356 ac_status=$? 12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12358 (exit $ac_status); } 12359 then 12360 archive_cmds_need_lc_CXX=no 12361 else 12362 archive_cmds_need_lc_CXX=yes 12363 fi 12364 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12365 else 12366 cat conftest.err 1>&5 12367 fi 12368 $rm conftest* 12369 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12370echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12371 ;; 12372 esac 12373 fi 12374 ;; 12375esac 12376 12377echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12378echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12379library_names_spec= 12380libname_spec='lib$name' 12381soname_spec= 12382shrext_cmds=".so" 12383postinstall_cmds= 12384postuninstall_cmds= 12385finish_cmds= 12386finish_eval= 12387shlibpath_var= 12388shlibpath_overrides_runpath=unknown 12389version_type=none 12390dynamic_linker="$host_os ld.so" 12391sys_lib_dlsearch_path_spec="/lib /usr/lib" 12392if test "$GCC" = yes; then 12393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12395 # if the path contains ";" then we assume it to be the separator 12396 # otherwise default to the standard path separator (i.e. ":") - it is 12397 # assumed that no part of a normal pathname contains ";" but that should 12398 # okay in the real world where ";" in dirpaths is itself problematic. 12399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12400 else 12401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12402 fi 12403else 12404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12405fi 12406need_lib_prefix=unknown 12407hardcode_into_libs=no 12408 12409# when you set need_version to no, make sure it does not cause -set_version 12410# flags to be left without arguments 12411need_version=unknown 12412 12413case $host_os in 12414aix3*) 12415 version_type=linux 12416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12417 shlibpath_var=LIBPATH 12418 12419 # AIX 3 has no versioning support, so we append a major version to the name. 12420 soname_spec='${libname}${release}${shared_ext}$major' 12421 ;; 12422 12423aix4* | aix5*) 12424 version_type=linux 12425 need_lib_prefix=no 12426 need_version=no 12427 hardcode_into_libs=yes 12428 if test "$host_cpu" = ia64; then 12429 # AIX 5 supports IA64 12430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12431 shlibpath_var=LD_LIBRARY_PATH 12432 else 12433 # With GCC up to 2.95.x, collect2 would create an import file 12434 # for dependence libraries. The import file would start with 12435 # the line `#! .'. This would cause the generated library to 12436 # depend on `.', always an invalid library. This was fixed in 12437 # development snapshots of GCC prior to 3.0. 12438 case $host_os in 12439 aix4 | aix4.[01] | aix4.[01].*) 12440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12441 echo ' yes ' 12442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12443 : 12444 else 12445 can_build_shared=no 12446 fi 12447 ;; 12448 esac 12449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12450 # soname into executable. Probably we can add versioning support to 12451 # collect2, so additional links can be useful in future. 12452 if test "$aix_use_runtimelinking" = yes; then 12453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12454 # instead of lib<name>.a to let people know that these are not 12455 # typical AIX shared libraries. 12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12457 else 12458 # We preserve .a as extension for shared libraries through AIX4.2 12459 # and later when we are not doing run time linking. 12460 library_names_spec='${libname}${release}.a $libname.a' 12461 soname_spec='${libname}${release}${shared_ext}$major' 12462 fi 12463 shlibpath_var=LIBPATH 12464 fi 12465 ;; 12466 12467amigaos*) 12468 library_names_spec='$libname.ixlibrary $libname.a' 12469 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12470 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' 12471 ;; 12472 12473beos*) 12474 library_names_spec='${libname}${shared_ext}' 12475 dynamic_linker="$host_os ld.so" 12476 shlibpath_var=LIBRARY_PATH 12477 ;; 12478 12479bsdi[45]*) 12480 version_type=linux 12481 need_version=no 12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12483 soname_spec='${libname}${release}${shared_ext}$major' 12484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12485 shlibpath_var=LD_LIBRARY_PATH 12486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12488 # the default ld.so.conf also contains /usr/contrib/lib and 12489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12490 # libtool to hard-code these into programs 12491 ;; 12492 12493cygwin* | mingw* | pw32*) 12494 version_type=windows 12495 shrext_cmds=".dll" 12496 need_version=no 12497 need_lib_prefix=no 12498 12499 case $GCC,$host_os in 12500 yes,cygwin* | yes,mingw* | yes,pw32*) 12501 library_names_spec='$libname.dll.a' 12502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12503 postinstall_cmds='base_file=`basename \${file}`~ 12504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12505 dldir=$destdir/`dirname \$dlpath`~ 12506 test -d \$dldir || mkdir -p \$dldir~ 12507 $install_prog $dir/$dlname \$dldir/$dlname~ 12508 chmod a+x \$dldir/$dlname' 12509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12510 dlpath=$dir/\$dldll~ 12511 $rm \$dlpath' 12512 shlibpath_overrides_runpath=yes 12513 12514 case $host_os in 12515 cygwin*) 12516 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12519 ;; 12520 mingw*) 12521 # MinGW DLLs use traditional 'lib' prefix 12522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12525 # It is most probably a Windows format PATH printed by 12526 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12527 # path with ; separators, and with drive letters. We can handle the 12528 # drive letters (cygwin fileutils understands them), so leave them, 12529 # especially as we might pass files found there to a mingw objdump, 12530 # which wouldn't understand a cygwinified path. Ahh. 12531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12532 else 12533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12534 fi 12535 ;; 12536 pw32*) 12537 # pw32 DLLs use 'pw' prefix rather than 'lib' 12538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12539 ;; 12540 esac 12541 ;; 12542 12543 *) 12544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12545 ;; 12546 esac 12547 dynamic_linker='Win32 ld.exe' 12548 # FIXME: first we should search . and the directory the executable is in 12549 shlibpath_var=PATH 12550 ;; 12551 12552darwin* | rhapsody*) 12553 dynamic_linker="$host_os dyld" 12554 version_type=darwin 12555 need_lib_prefix=no 12556 need_version=no 12557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12558 soname_spec='${libname}${release}${major}$shared_ext' 12559 shlibpath_overrides_runpath=yes 12560 shlibpath_var=DYLD_LIBRARY_PATH 12561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12563 if test "$GCC" = yes; then 12564 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"` 12565 else 12566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12567 fi 12568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12569 ;; 12570 12571dgux*) 12572 version_type=linux 12573 need_lib_prefix=no 12574 need_version=no 12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12576 soname_spec='${libname}${release}${shared_ext}$major' 12577 shlibpath_var=LD_LIBRARY_PATH 12578 ;; 12579 12580freebsd1*) 12581 dynamic_linker=no 12582 ;; 12583 12584kfreebsd*-gnu) 12585 version_type=linux 12586 need_lib_prefix=no 12587 need_version=no 12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12589 soname_spec='${libname}${release}${shared_ext}$major' 12590 shlibpath_var=LD_LIBRARY_PATH 12591 shlibpath_overrides_runpath=no 12592 hardcode_into_libs=yes 12593 dynamic_linker='GNU ld.so' 12594 ;; 12595 12596freebsd* | dragonfly*) 12597 # DragonFly does not have aout. When/if they implement a new 12598 # versioning mechanism, adjust this. 12599 if test -x /usr/bin/objformat; then 12600 objformat=`/usr/bin/objformat` 12601 else 12602 case $host_os in 12603 freebsd[123]*) objformat=aout ;; 12604 *) objformat=elf ;; 12605 esac 12606 fi 12607 version_type=freebsd-$objformat 12608 case $version_type in 12609 freebsd-elf*) 12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12611 need_version=no 12612 need_lib_prefix=no 12613 ;; 12614 freebsd-*) 12615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12616 need_version=yes 12617 ;; 12618 esac 12619 shlibpath_var=LD_LIBRARY_PATH 12620 case $host_os in 12621 freebsd2*) 12622 shlibpath_overrides_runpath=yes 12623 ;; 12624 freebsd3.[01]* | freebsdelf3.[01]*) 12625 shlibpath_overrides_runpath=yes 12626 hardcode_into_libs=yes 12627 ;; 12628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12630 shlibpath_overrides_runpath=no 12631 hardcode_into_libs=yes 12632 ;; 12633 freebsd*) # from 4.6 on 12634 shlibpath_overrides_runpath=yes 12635 hardcode_into_libs=yes 12636 ;; 12637 esac 12638 ;; 12639 12640gnu*) 12641 version_type=linux 12642 need_lib_prefix=no 12643 need_version=no 12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12645 soname_spec='${libname}${release}${shared_ext}$major' 12646 shlibpath_var=LD_LIBRARY_PATH 12647 hardcode_into_libs=yes 12648 ;; 12649 12650hpux9* | hpux10* | hpux11*) 12651 # Give a soname corresponding to the major version so that dld.sl refuses to 12652 # link against other versions. 12653 version_type=sunos 12654 need_lib_prefix=no 12655 need_version=no 12656 case $host_cpu in 12657 ia64*) 12658 shrext_cmds='.so' 12659 hardcode_into_libs=yes 12660 dynamic_linker="$host_os dld.so" 12661 shlibpath_var=LD_LIBRARY_PATH 12662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12664 soname_spec='${libname}${release}${shared_ext}$major' 12665 if test "X$HPUX_IA64_MODE" = X32; then 12666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12667 else 12668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12669 fi 12670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12671 ;; 12672 hppa*64*) 12673 shrext_cmds='.sl' 12674 hardcode_into_libs=yes 12675 dynamic_linker="$host_os dld.sl" 12676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12679 soname_spec='${libname}${release}${shared_ext}$major' 12680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12682 ;; 12683 *) 12684 shrext_cmds='.sl' 12685 dynamic_linker="$host_os dld.sl" 12686 shlibpath_var=SHLIB_PATH 12687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12689 soname_spec='${libname}${release}${shared_ext}$major' 12690 ;; 12691 esac 12692 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12693 postinstall_cmds='chmod 555 $lib' 12694 ;; 12695 12696interix3*) 12697 version_type=linux 12698 need_lib_prefix=no 12699 need_version=no 12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12701 soname_spec='${libname}${release}${shared_ext}$major' 12702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12703 shlibpath_var=LD_LIBRARY_PATH 12704 shlibpath_overrides_runpath=no 12705 hardcode_into_libs=yes 12706 ;; 12707 12708irix5* | irix6* | nonstopux*) 12709 case $host_os in 12710 nonstopux*) version_type=nonstopux ;; 12711 *) 12712 if test "$lt_cv_prog_gnu_ld" = yes; then 12713 version_type=linux 12714 else 12715 version_type=irix 12716 fi ;; 12717 esac 12718 need_lib_prefix=no 12719 need_version=no 12720 soname_spec='${libname}${release}${shared_ext}$major' 12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12722 case $host_os in 12723 irix5* | nonstopux*) 12724 libsuff= shlibsuff= 12725 ;; 12726 *) 12727 case $LD in # libtool.m4 will add one of these switches to LD 12728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12729 libsuff= shlibsuff= libmagic=32-bit;; 12730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12731 libsuff=32 shlibsuff=N32 libmagic=N32;; 12732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12733 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12734 *) libsuff= shlibsuff= libmagic=never-match;; 12735 esac 12736 ;; 12737 esac 12738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12739 shlibpath_overrides_runpath=no 12740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12742 hardcode_into_libs=yes 12743 ;; 12744 12745# No shared lib support for Linux oldld, aout, or coff. 12746linux*oldld* | linux*aout* | linux*coff*) 12747 dynamic_linker=no 12748 ;; 12749 12750# This must be Linux ELF. 12751linux*) 12752 version_type=linux 12753 need_lib_prefix=no 12754 need_version=no 12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12756 soname_spec='${libname}${release}${shared_ext}$major' 12757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12758 shlibpath_var=LD_LIBRARY_PATH 12759 shlibpath_overrides_runpath=no 12760 # This implies no fast_install, which is unacceptable. 12761 # Some rework will be needed to allow for fast_install 12762 # before this can be enabled. 12763 hardcode_into_libs=yes 12764 12765 # find out which ABI we are using 12766 libsuff= 12767 case "$host_cpu" in 12768 x86_64*|s390x*|powerpc64*) 12769 echo '#line 12769 "configure"' > conftest.$ac_ext 12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12771 (eval $ac_compile) 2>&5 12772 ac_status=$? 12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12774 (exit $ac_status); }; then 12775 case `/usr/bin/file conftest.$ac_objext` in 12776 *64-bit*) 12777 libsuff=64 12778 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12779 ;; 12780 esac 12781 fi 12782 rm -rf conftest* 12783 ;; 12784 esac 12785 12786 # Append ld.so.conf contents to the search path 12787 if test -f /etc/ld.so.conf; then 12788 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12789 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12790 fi 12791 12792 # We used to test for /lib/ld.so.1 and disable shared libraries on 12793 # powerpc, because MkLinux only supported shared libraries with the 12794 # GNU dynamic linker. Since this was broken with cross compilers, 12795 # most powerpc-linux boxes support dynamic linking these days and 12796 # people can always --disable-shared, the test was removed, and we 12797 # assume the GNU/Linux dynamic linker is in use. 12798 dynamic_linker='GNU/Linux ld.so' 12799 ;; 12800 12801knetbsd*-gnu) 12802 version_type=linux 12803 need_lib_prefix=no 12804 need_version=no 12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12806 soname_spec='${libname}${release}${shared_ext}$major' 12807 shlibpath_var=LD_LIBRARY_PATH 12808 shlibpath_overrides_runpath=no 12809 hardcode_into_libs=yes 12810 dynamic_linker='GNU ld.so' 12811 ;; 12812 12813netbsd*) 12814 version_type=sunos 12815 need_lib_prefix=no 12816 need_version=no 12817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12820 dynamic_linker='NetBSD (a.out) ld.so' 12821 else 12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12823 soname_spec='${libname}${release}${shared_ext}$major' 12824 dynamic_linker='NetBSD ld.elf_so' 12825 fi 12826 shlibpath_var=LD_LIBRARY_PATH 12827 shlibpath_overrides_runpath=yes 12828 hardcode_into_libs=yes 12829 ;; 12830 12831newsos6) 12832 version_type=linux 12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12834 shlibpath_var=LD_LIBRARY_PATH 12835 shlibpath_overrides_runpath=yes 12836 ;; 12837 12838nto-qnx*) 12839 version_type=linux 12840 need_lib_prefix=no 12841 need_version=no 12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12843 soname_spec='${libname}${release}${shared_ext}$major' 12844 shlibpath_var=LD_LIBRARY_PATH 12845 shlibpath_overrides_runpath=yes 12846 ;; 12847 12848openbsd*) 12849 version_type=sunos 12850 sys_lib_dlsearch_path_spec="/usr/lib" 12851 need_lib_prefix=no 12852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12853 case $host_os in 12854 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12855 *) need_version=no ;; 12856 esac 12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12859 shlibpath_var=LD_LIBRARY_PATH 12860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12861 case $host_os in 12862 openbsd2.[89] | openbsd2.[89].*) 12863 shlibpath_overrides_runpath=no 12864 ;; 12865 *) 12866 shlibpath_overrides_runpath=yes 12867 ;; 12868 esac 12869 else 12870 shlibpath_overrides_runpath=yes 12871 fi 12872 ;; 12873 12874os2*) 12875 libname_spec='$name' 12876 shrext_cmds=".dll" 12877 need_lib_prefix=no 12878 library_names_spec='$libname${shared_ext} $libname.a' 12879 dynamic_linker='OS/2 ld.exe' 12880 shlibpath_var=LIBPATH 12881 ;; 12882 12883osf3* | osf4* | osf5*) 12884 version_type=osf 12885 need_lib_prefix=no 12886 need_version=no 12887 soname_spec='${libname}${release}${shared_ext}$major' 12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12889 shlibpath_var=LD_LIBRARY_PATH 12890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12892 ;; 12893 12894solaris*) 12895 version_type=linux 12896 need_lib_prefix=no 12897 need_version=no 12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12899 soname_spec='${libname}${release}${shared_ext}$major' 12900 shlibpath_var=LD_LIBRARY_PATH 12901 shlibpath_overrides_runpath=yes 12902 hardcode_into_libs=yes 12903 # ldd complains unless libraries are executable 12904 postinstall_cmds='chmod +x $lib' 12905 ;; 12906 12907sunos4*) 12908 version_type=sunos 12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12911 shlibpath_var=LD_LIBRARY_PATH 12912 shlibpath_overrides_runpath=yes 12913 if test "$with_gnu_ld" = yes; then 12914 need_lib_prefix=no 12915 fi 12916 need_version=yes 12917 ;; 12918 12919sysv4 | sysv4.3*) 12920 version_type=linux 12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12922 soname_spec='${libname}${release}${shared_ext}$major' 12923 shlibpath_var=LD_LIBRARY_PATH 12924 case $host_vendor in 12925 sni) 12926 shlibpath_overrides_runpath=no 12927 need_lib_prefix=no 12928 export_dynamic_flag_spec='${wl}-Blargedynsym' 12929 runpath_var=LD_RUN_PATH 12930 ;; 12931 siemens) 12932 need_lib_prefix=no 12933 ;; 12934 motorola) 12935 need_lib_prefix=no 12936 need_version=no 12937 shlibpath_overrides_runpath=no 12938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12939 ;; 12940 esac 12941 ;; 12942 12943sysv4*MP*) 12944 if test -d /usr/nec ;then 12945 version_type=linux 12946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12947 soname_spec='$libname${shared_ext}.$major' 12948 shlibpath_var=LD_LIBRARY_PATH 12949 fi 12950 ;; 12951 12952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12953 version_type=freebsd-elf 12954 need_lib_prefix=no 12955 need_version=no 12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12957 soname_spec='${libname}${release}${shared_ext}$major' 12958 shlibpath_var=LD_LIBRARY_PATH 12959 hardcode_into_libs=yes 12960 if test "$with_gnu_ld" = yes; then 12961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12962 shlibpath_overrides_runpath=no 12963 else 12964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12965 shlibpath_overrides_runpath=yes 12966 case $host_os in 12967 sco3.2v5*) 12968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12969 ;; 12970 esac 12971 fi 12972 sys_lib_dlsearch_path_spec='/usr/lib' 12973 ;; 12974 12975uts4*) 12976 version_type=linux 12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12978 soname_spec='${libname}${release}${shared_ext}$major' 12979 shlibpath_var=LD_LIBRARY_PATH 12980 ;; 12981 12982*) 12983 dynamic_linker=no 12984 ;; 12985esac 12986echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12987echo "${ECHO_T}$dynamic_linker" >&6 12988test "$dynamic_linker" = no && can_build_shared=no 12989 12990variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12991if test "$GCC" = yes; then 12992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12993fi 12994 12995echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12997hardcode_action_CXX= 12998if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12999 test -n "$runpath_var_CXX" || \ 13000 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13001 13002 # We can hardcode non-existant directories. 13003 if test "$hardcode_direct_CXX" != no && 13004 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13005 # have to relink, otherwise we might link with an installed library 13006 # when we should be linking with a yet-to-be-installed one 13007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13008 test "$hardcode_minus_L_CXX" != no; then 13009 # Linking always hardcodes the temporary library directory. 13010 hardcode_action_CXX=relink 13011 else 13012 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13013 hardcode_action_CXX=immediate 13014 fi 13015else 13016 # We cannot hardcode anything, or else we can only hardcode existing 13017 # directories. 13018 hardcode_action_CXX=unsupported 13019fi 13020echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13021echo "${ECHO_T}$hardcode_action_CXX" >&6 13022 13023if test "$hardcode_action_CXX" = relink; then 13024 # Fast installation is not supported 13025 enable_fast_install=no 13026elif test "$shlibpath_overrides_runpath" = yes || 13027 test "$enable_shared" = no; then 13028 # Fast installation is not necessary 13029 enable_fast_install=needless 13030fi 13031 13032 13033# The else clause should only fire when bootstrapping the 13034# libtool distribution, otherwise you forgot to ship ltmain.sh 13035# with your package, and you will get complaints that there are 13036# no rules to generate ltmain.sh. 13037if test -f "$ltmain"; then 13038 # See if we are running on zsh, and set the options which allow our commands through 13039 # without removal of \ escapes. 13040 if test -n "${ZSH_VERSION+set}" ; then 13041 setopt NO_GLOB_SUBST 13042 fi 13043 # Now quote all the things that may contain metacharacters while being 13044 # careful not to overquote the AC_SUBSTed values. We take copies of the 13045 # variables and quote the copies for generation of the libtool script. 13046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13047 SED SHELL STRIP \ 13048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13050 deplibs_check_method reload_flag reload_cmds need_locks \ 13051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13052 lt_cv_sys_global_symbol_to_c_name_address \ 13053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13054 old_postinstall_cmds old_postuninstall_cmds \ 13055 compiler_CXX \ 13056 CC_CXX \ 13057 LD_CXX \ 13058 lt_prog_compiler_wl_CXX \ 13059 lt_prog_compiler_pic_CXX \ 13060 lt_prog_compiler_static_CXX \ 13061 lt_prog_compiler_no_builtin_flag_CXX \ 13062 export_dynamic_flag_spec_CXX \ 13063 thread_safe_flag_spec_CXX \ 13064 whole_archive_flag_spec_CXX \ 13065 enable_shared_with_static_runtimes_CXX \ 13066 old_archive_cmds_CXX \ 13067 old_archive_from_new_cmds_CXX \ 13068 predep_objects_CXX \ 13069 postdep_objects_CXX \ 13070 predeps_CXX \ 13071 postdeps_CXX \ 13072 compiler_lib_search_path_CXX \ 13073 archive_cmds_CXX \ 13074 archive_expsym_cmds_CXX \ 13075 postinstall_cmds_CXX \ 13076 postuninstall_cmds_CXX \ 13077 old_archive_from_expsyms_cmds_CXX \ 13078 allow_undefined_flag_CXX \ 13079 no_undefined_flag_CXX \ 13080 export_symbols_cmds_CXX \ 13081 hardcode_libdir_flag_spec_CXX \ 13082 hardcode_libdir_flag_spec_ld_CXX \ 13083 hardcode_libdir_separator_CXX \ 13084 hardcode_automatic_CXX \ 13085 module_cmds_CXX \ 13086 module_expsym_cmds_CXX \ 13087 lt_cv_prog_compiler_c_o_CXX \ 13088 exclude_expsyms_CXX \ 13089 include_expsyms_CXX; do 13090 13091 case $var in 13092 old_archive_cmds_CXX | \ 13093 old_archive_from_new_cmds_CXX | \ 13094 archive_cmds_CXX | \ 13095 archive_expsym_cmds_CXX | \ 13096 module_cmds_CXX | \ 13097 module_expsym_cmds_CXX | \ 13098 old_archive_from_expsyms_cmds_CXX | \ 13099 export_symbols_cmds_CXX | \ 13100 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13101 postinstall_cmds | postuninstall_cmds | \ 13102 old_postinstall_cmds | old_postuninstall_cmds | \ 13103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13104 # Double-quote double-evaled strings. 13105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13106 ;; 13107 *) 13108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13109 ;; 13110 esac 13111 done 13112 13113 case $lt_echo in 13114 *'\$0 --fallback-echo"') 13115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13116 ;; 13117 esac 13118 13119cfgfile="$ofile" 13120 13121 cat <<__EOF__ >> "$cfgfile" 13122# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13123 13124# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13125 13126# Shell to use when invoking shell scripts. 13127SHELL=$lt_SHELL 13128 13129# Whether or not to build shared libraries. 13130build_libtool_libs=$enable_shared 13131 13132# Whether or not to build static libraries. 13133build_old_libs=$enable_static 13134 13135# Whether or not to add -lc for building shared libraries. 13136build_libtool_need_lc=$archive_cmds_need_lc_CXX 13137 13138# Whether or not to disallow shared libs when runtime libs are static 13139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13140 13141# Whether or not to optimize for fast installation. 13142fast_install=$enable_fast_install 13143 13144# The host system. 13145host_alias=$host_alias 13146host=$host 13147host_os=$host_os 13148 13149# The build system. 13150build_alias=$build_alias 13151build=$build 13152build_os=$build_os 13153 13154# An echo program that does not interpret backslashes. 13155echo=$lt_echo 13156 13157# The archiver. 13158AR=$lt_AR 13159AR_FLAGS=$lt_AR_FLAGS 13160 13161# A C compiler. 13162LTCC=$lt_LTCC 13163 13164# LTCC compiler flags. 13165LTCFLAGS=$lt_LTCFLAGS 13166 13167# A language-specific compiler. 13168CC=$lt_compiler_CXX 13169 13170# Is the compiler the GNU C compiler? 13171with_gcc=$GCC_CXX 13172 13173gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 13174gcc_ver=\`gcc -dumpversion\` 13175 13176# An ERE matcher. 13177EGREP=$lt_EGREP 13178 13179# The linker used to build libraries. 13180LD=$lt_LD_CXX 13181 13182# Whether we need hard or soft links. 13183LN_S=$lt_LN_S 13184 13185# A BSD-compatible nm program. 13186NM=$lt_NM 13187 13188# A symbol stripping program 13189STRIP=$lt_STRIP 13190 13191# Used to examine libraries when file_magic_cmd begins "file" 13192MAGIC_CMD=$MAGIC_CMD 13193 13194# Used on cygwin: DLL creation program. 13195DLLTOOL="$DLLTOOL" 13196 13197# Used on cygwin: object dumper. 13198OBJDUMP="$OBJDUMP" 13199 13200# Used on cygwin: assembler. 13201AS="$AS" 13202 13203# The name of the directory that contains temporary libtool files. 13204objdir=$objdir 13205 13206# How to create reloadable object files. 13207reload_flag=$lt_reload_flag 13208reload_cmds=$lt_reload_cmds 13209 13210# How to pass a linker flag through the compiler. 13211wl=$lt_lt_prog_compiler_wl_CXX 13212 13213# Object file suffix (normally "o"). 13214objext="$ac_objext" 13215 13216# Old archive suffix (normally "a"). 13217libext="$libext" 13218 13219# Shared library suffix (normally ".so"). 13220shrext_cmds='$shrext_cmds' 13221 13222# Executable file suffix (normally ""). 13223exeext="$exeext" 13224 13225# Additional compiler flags for building library objects. 13226pic_flag=$lt_lt_prog_compiler_pic_CXX 13227pic_mode=$pic_mode 13228 13229# What is the maximum length of a command? 13230max_cmd_len=$lt_cv_sys_max_cmd_len 13231 13232# Does compiler simultaneously support -c and -o options? 13233compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13234 13235# Must we lock files when doing compilation? 13236need_locks=$lt_need_locks 13237 13238# Do we need the lib prefix for modules? 13239need_lib_prefix=$need_lib_prefix 13240 13241# Do we need a version for libraries? 13242need_version=$need_version 13243 13244# Whether dlopen is supported. 13245dlopen_support=$enable_dlopen 13246 13247# Whether dlopen of programs is supported. 13248dlopen_self=$enable_dlopen_self 13249 13250# Whether dlopen of statically linked programs is supported. 13251dlopen_self_static=$enable_dlopen_self_static 13252 13253# Compiler flag to prevent dynamic linking. 13254link_static_flag=$lt_lt_prog_compiler_static_CXX 13255 13256# Compiler flag to turn off builtin functions. 13257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13258 13259# Compiler flag to allow reflexive dlopens. 13260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13261 13262# Compiler flag to generate shared objects directly from archives. 13263whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13264 13265# Compiler flag to generate thread-safe objects. 13266thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13267 13268# Library versioning type. 13269version_type=$version_type 13270 13271# Format of library name prefix. 13272libname_spec=$lt_libname_spec 13273 13274# List of archive names. First name is the real one, the rest are links. 13275# The last name is the one that the linker finds with -lNAME. 13276library_names_spec=$lt_library_names_spec 13277 13278# The coded name of the library, if different from the real name. 13279soname_spec=$lt_soname_spec 13280 13281# Commands used to build and install an old-style archive. 13282RANLIB=$lt_RANLIB 13283old_archive_cmds=$lt_old_archive_cmds_CXX 13284old_postinstall_cmds=$lt_old_postinstall_cmds 13285old_postuninstall_cmds=$lt_old_postuninstall_cmds 13286 13287# Create an old-style archive from a shared archive. 13288old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13289 13290# Create a temporary old-style archive to link instead of a shared archive. 13291old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13292 13293# Commands used to build and install a shared archive. 13294archive_cmds=$lt_archive_cmds_CXX 13295archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13296postinstall_cmds=$lt_postinstall_cmds 13297postuninstall_cmds=$lt_postuninstall_cmds 13298 13299# Commands used to build a loadable module (assumed same as above if empty) 13300module_cmds=$lt_module_cmds_CXX 13301module_expsym_cmds=$lt_module_expsym_cmds_CXX 13302 13303# Commands to strip libraries. 13304old_striplib=$lt_old_striplib 13305striplib=$lt_striplib 13306 13307# Dependencies to place before the objects being linked to create a 13308# shared library. 13309predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13310 13311# Dependencies to place after the objects being linked to create a 13312# shared library. 13313postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13314 13315# Dependencies to place before the objects being linked to create a 13316# shared library. 13317predeps=$lt_predeps_CXX 13318 13319# Dependencies to place after the objects being linked to create a 13320# shared library. 13321postdeps=$lt_postdeps_CXX 13322 13323# The library search path used internally by the compiler when linking 13324# a shared library. 13325compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13326 13327# Method to check whether dependent libraries are shared objects. 13328deplibs_check_method=$lt_deplibs_check_method 13329 13330# Command to use when deplibs_check_method == file_magic. 13331file_magic_cmd=$lt_file_magic_cmd 13332 13333# Flag that allows shared libraries with undefined symbols to be built. 13334allow_undefined_flag=$lt_allow_undefined_flag_CXX 13335 13336# Flag that forces no undefined symbols. 13337no_undefined_flag=$lt_no_undefined_flag_CXX 13338 13339# Commands used to finish a libtool library installation in a directory. 13340finish_cmds=$lt_finish_cmds 13341 13342# Same as above, but a single script fragment to be evaled but not shown. 13343finish_eval=$lt_finish_eval 13344 13345# Take the output of nm and produce a listing of raw symbols and C names. 13346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13347 13348# Transform the output of nm in a proper C declaration 13349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13350 13351# Transform the output of nm in a C name address pair 13352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13353 13354# This is the shared library runtime path variable. 13355runpath_var=$runpath_var 13356 13357# This is the shared library path variable. 13358shlibpath_var=$shlibpath_var 13359 13360# Is shlibpath searched before the hard-coded library search path? 13361shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13362 13363# How to hardcode a shared library path into an executable. 13364hardcode_action=$hardcode_action_CXX 13365 13366# Whether we should hardcode library paths into libraries. 13367hardcode_into_libs=$hardcode_into_libs 13368 13369# Flag to hardcode \$libdir into a binary during linking. 13370# This must work even if \$libdir does not exist. 13371hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13372 13373# If ld is used when linking, flag to hardcode \$libdir into 13374# a binary during linking. This must work even if \$libdir does 13375# not exist. 13376hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13377 13378# Whether we need a single -rpath flag with a separated argument. 13379hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13380 13381# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13382# resulting binary. 13383hardcode_direct=$hardcode_direct_CXX 13384 13385# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13386# resulting binary. 13387hardcode_minus_L=$hardcode_minus_L_CXX 13388 13389# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13390# the resulting binary. 13391hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13392 13393# Set to yes if building a shared library automatically hardcodes DIR into the library 13394# and all subsequent libraries and executables linked against it. 13395hardcode_automatic=$hardcode_automatic_CXX 13396 13397# Variables whose values should be saved in libtool wrapper scripts and 13398# restored at relink time. 13399variables_saved_for_relink="$variables_saved_for_relink" 13400 13401# Whether libtool must link a program against all its dependency libraries. 13402link_all_deplibs=$link_all_deplibs_CXX 13403 13404# Compile-time system search path for libraries 13405sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13406 13407# Run-time system search path for libraries 13408sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13409 13410# Fix the shell variable \$srcfile for the compiler. 13411fix_srcfile_path="$fix_srcfile_path_CXX" 13412 13413# Set to yes if exported symbols are required. 13414always_export_symbols=$always_export_symbols_CXX 13415 13416# The commands to list exported symbols. 13417export_symbols_cmds=$lt_export_symbols_cmds_CXX 13418 13419# The commands to extract the exported symbol list from a shared archive. 13420extract_expsyms_cmds=$lt_extract_expsyms_cmds 13421 13422# Symbols that should not be listed in the preloaded symbols. 13423exclude_expsyms=$lt_exclude_expsyms_CXX 13424 13425# Symbols that must always be exported. 13426include_expsyms=$lt_include_expsyms_CXX 13427 13428# ### END LIBTOOL TAG CONFIG: $tagname 13429 13430__EOF__ 13431 13432 13433else 13434 # If there is no Makefile yet, we rely on a make rule to execute 13435 # `config.status --recheck' to rerun these tests and create the 13436 # libtool script then. 13437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13438 if test -f "$ltmain_in"; then 13439 test -f Makefile && make "$ltmain" 13440 fi 13441fi 13442 13443 13444ac_ext=c 13445ac_cpp='$CPP $CPPFLAGS' 13446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13448ac_compiler_gnu=$ac_cv_c_compiler_gnu 13449 13450CC=$lt_save_CC 13451LDCXX=$LD 13452LD=$lt_save_LD 13453GCC=$lt_save_GCC 13454with_gnu_ldcxx=$with_gnu_ld 13455with_gnu_ld=$lt_save_with_gnu_ld 13456lt_cv_path_LDCXX=$lt_cv_path_LD 13457lt_cv_path_LD=$lt_save_path_LD 13458lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13459lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13460 13461 else 13462 tagname="" 13463 fi 13464 ;; 13465 13466 F77) 13467 if test -n "$F77" && test "X$F77" != "Xno"; then 13468 13469ac_ext=f 13470ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13471ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13472ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13473 13474 13475archive_cmds_need_lc_F77=no 13476allow_undefined_flag_F77= 13477always_export_symbols_F77=no 13478archive_expsym_cmds_F77= 13479export_dynamic_flag_spec_F77= 13480hardcode_direct_F77=no 13481hardcode_libdir_flag_spec_F77= 13482hardcode_libdir_flag_spec_ld_F77= 13483hardcode_libdir_separator_F77= 13484hardcode_minus_L_F77=no 13485hardcode_automatic_F77=no 13486module_cmds_F77= 13487module_expsym_cmds_F77= 13488link_all_deplibs_F77=unknown 13489old_archive_cmds_F77=$old_archive_cmds 13490no_undefined_flag_F77= 13491whole_archive_flag_spec_F77= 13492enable_shared_with_static_runtimes_F77=no 13493 13494# Source file extension for f77 test sources. 13495ac_ext=f 13496 13497# Object file extension for compiled f77 test sources. 13498objext=o 13499objext_F77=$objext 13500 13501# Code to be used in simple compile tests 13502lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13503 13504# Code to be used in simple link tests 13505lt_simple_link_test_code=" program t\n end\n" 13506 13507# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13508 13509# If no C compiler was specified, use CC. 13510LTCC=${LTCC-"$CC"} 13511 13512# If no C compiler flags were specified, use CFLAGS. 13513LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13514 13515# Allow CC to be a program name with arguments. 13516compiler=$CC 13517 13518 13519# save warnings/boilerplate of simple test code 13520ac_outfile=conftest.$ac_objext 13521printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13522eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13523_lt_compiler_boilerplate=`cat conftest.err` 13524$rm conftest* 13525 13526ac_outfile=conftest.$ac_objext 13527printf "$lt_simple_link_test_code" >conftest.$ac_ext 13528eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13529_lt_linker_boilerplate=`cat conftest.err` 13530$rm conftest* 13531 13532 13533# Allow CC to be a program name with arguments. 13534lt_save_CC="$CC" 13535CC=${F77-"f77"} 13536compiler=$CC 13537compiler_F77=$CC 13538for cc_temp in $compiler""; do 13539 case $cc_temp in 13540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13542 \-*) ;; 13543 *) break;; 13544 esac 13545done 13546cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13547 13548 13549echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13550echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13551echo "$as_me:$LINENO: result: $can_build_shared" >&5 13552echo "${ECHO_T}$can_build_shared" >&6 13553 13554echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13555echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13556test "$can_build_shared" = "no" && enable_shared=no 13557 13558# On AIX, shared libraries and static libraries use the same namespace, and 13559# are all built from PIC. 13560case $host_os in 13561aix3*) 13562 test "$enable_shared" = yes && enable_static=no 13563 if test -n "$RANLIB"; then 13564 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13565 postinstall_cmds='$RANLIB $lib' 13566 fi 13567 ;; 13568aix4* | aix5*) 13569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13570 test "$enable_shared" = yes && enable_static=no 13571 fi 13572 ;; 13573esac 13574echo "$as_me:$LINENO: result: $enable_shared" >&5 13575echo "${ECHO_T}$enable_shared" >&6 13576 13577echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13578echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13579# Make sure either enable_shared or enable_static is yes. 13580test "$enable_shared" = yes || enable_static=yes 13581echo "$as_me:$LINENO: result: $enable_static" >&5 13582echo "${ECHO_T}$enable_static" >&6 13583 13584GCC_F77="$G77" 13585LD_F77="$LD" 13586 13587lt_prog_compiler_wl_F77= 13588lt_prog_compiler_pic_F77= 13589lt_prog_compiler_static_F77= 13590 13591echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13592echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13593 13594 if test "$GCC" = yes; then 13595 lt_prog_compiler_wl_F77='-Wl,' 13596 lt_prog_compiler_static_F77='-static' 13597 13598 case $host_os in 13599 aix*) 13600 # All AIX code is PIC. 13601 if test "$host_cpu" = ia64; then 13602 # AIX 5 now supports IA64 processor 13603 lt_prog_compiler_static_F77='-Bstatic' 13604 fi 13605 ;; 13606 13607 amigaos*) 13608 # FIXME: we need at least 68020 code to build shared libraries, but 13609 # adding the `-m68020' flag to GCC prevents building anything better, 13610 # like `-m68040'. 13611 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13612 ;; 13613 13614 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13615 # PIC is the default for these OSes. 13616 ;; 13617 13618 mingw* | pw32* | os2*) 13619 # This hack is so that the source file can tell whether it is being 13620 # built for inclusion in a dll (and should export symbols for example). 13621 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13622 ;; 13623 13624 darwin* | rhapsody*) 13625 # PIC is the default on this platform 13626 # Common symbols not allowed in MH_DYLIB files 13627 lt_prog_compiler_pic_F77='-fno-common' 13628 ;; 13629 13630 interix3*) 13631 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13632 # Instead, we relocate shared libraries at runtime. 13633 ;; 13634 13635 msdosdjgpp*) 13636 # Just because we use GCC doesn't mean we suddenly get shared libraries 13637 # on systems that don't support them. 13638 lt_prog_compiler_can_build_shared_F77=no 13639 enable_shared=no 13640 ;; 13641 13642 sysv4*MP*) 13643 if test -d /usr/nec; then 13644 lt_prog_compiler_pic_F77=-Kconform_pic 13645 fi 13646 ;; 13647 13648 hpux*) 13649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13650 # not for PA HP-UX. 13651 case $host_cpu in 13652 hppa*64*|ia64*) 13653 # +Z the default 13654 ;; 13655 *) 13656 lt_prog_compiler_pic_F77='-fPIC' 13657 ;; 13658 esac 13659 ;; 13660 13661 *) 13662 lt_prog_compiler_pic_F77='-fPIC' 13663 ;; 13664 esac 13665 else 13666 # PORTME Check for flag to pass linker flags through the system compiler. 13667 case $host_os in 13668 aix*) 13669 lt_prog_compiler_wl_F77='-Wl,' 13670 if test "$host_cpu" = ia64; then 13671 # AIX 5 now supports IA64 processor 13672 lt_prog_compiler_static_F77='-Bstatic' 13673 else 13674 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13675 fi 13676 ;; 13677 darwin*) 13678 # PIC is the default on this platform 13679 # Common symbols not allowed in MH_DYLIB files 13680 case $cc_basename in 13681 xlc*) 13682 lt_prog_compiler_pic_F77='-qnocommon' 13683 lt_prog_compiler_wl_F77='-Wl,' 13684 ;; 13685 esac 13686 ;; 13687 13688 mingw* | pw32* | os2*) 13689 # This hack is so that the source file can tell whether it is being 13690 # built for inclusion in a dll (and should export symbols for example). 13691 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13692 ;; 13693 13694 hpux9* | hpux10* | hpux11*) 13695 lt_prog_compiler_wl_F77='-Wl,' 13696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13697 # not for PA HP-UX. 13698 case $host_cpu in 13699 hppa*64*|ia64*) 13700 # +Z the default 13701 ;; 13702 *) 13703 lt_prog_compiler_pic_F77='+Z' 13704 ;; 13705 esac 13706 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13707 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13708 ;; 13709 13710 irix5* | irix6* | nonstopux*) 13711 lt_prog_compiler_wl_F77='-Wl,' 13712 # PIC (with -KPIC) is the default. 13713 lt_prog_compiler_static_F77='-non_shared' 13714 ;; 13715 13716 newsos6) 13717 lt_prog_compiler_pic_F77='-KPIC' 13718 lt_prog_compiler_static_F77='-Bstatic' 13719 ;; 13720 13721 linux*) 13722 case $cc_basename in 13723 icc* | ecc*) 13724 lt_prog_compiler_wl_F77='-Wl,' 13725 lt_prog_compiler_pic_F77='-KPIC' 13726 lt_prog_compiler_static_F77='-static' 13727 ;; 13728 pgcc* | pgf77* | pgf90* | pgf95*) 13729 # Portland Group compilers (*not* the Pentium gcc compiler, 13730 # which looks to be a dead project) 13731 lt_prog_compiler_wl_F77='-Wl,' 13732 lt_prog_compiler_pic_F77='-fpic' 13733 lt_prog_compiler_static_F77='-Bstatic' 13734 ;; 13735 ccc*) 13736 lt_prog_compiler_wl_F77='-Wl,' 13737 # All Alpha code is PIC. 13738 lt_prog_compiler_static_F77='-non_shared' 13739 ;; 13740 esac 13741 ;; 13742 13743 osf3* | osf4* | osf5*) 13744 lt_prog_compiler_wl_F77='-Wl,' 13745 # All OSF/1 code is PIC. 13746 lt_prog_compiler_static_F77='-non_shared' 13747 ;; 13748 13749 solaris*) 13750 lt_prog_compiler_pic_F77='-KPIC' 13751 lt_prog_compiler_static_F77='-Bstatic' 13752 case $cc_basename in 13753 f77* | f90* | f95*) 13754 lt_prog_compiler_wl_F77='-Qoption ld ';; 13755 *) 13756 lt_prog_compiler_wl_F77='-Wl,';; 13757 esac 13758 ;; 13759 13760 sunos4*) 13761 lt_prog_compiler_wl_F77='-Qoption ld ' 13762 lt_prog_compiler_pic_F77='-PIC' 13763 lt_prog_compiler_static_F77='-Bstatic' 13764 ;; 13765 13766 sysv4 | sysv4.2uw2* | sysv4.3*) 13767 lt_prog_compiler_wl_F77='-Wl,' 13768 lt_prog_compiler_pic_F77='-KPIC' 13769 lt_prog_compiler_static_F77='-Bstatic' 13770 ;; 13771 13772 sysv4*MP*) 13773 if test -d /usr/nec ;then 13774 lt_prog_compiler_pic_F77='-Kconform_pic' 13775 lt_prog_compiler_static_F77='-Bstatic' 13776 fi 13777 ;; 13778 13779 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13780 lt_prog_compiler_wl_F77='-Wl,' 13781 lt_prog_compiler_pic_F77='-KPIC' 13782 lt_prog_compiler_static_F77='-Bstatic' 13783 ;; 13784 13785 unicos*) 13786 lt_prog_compiler_wl_F77='-Wl,' 13787 lt_prog_compiler_can_build_shared_F77=no 13788 ;; 13789 13790 uts4*) 13791 lt_prog_compiler_pic_F77='-pic' 13792 lt_prog_compiler_static_F77='-Bstatic' 13793 ;; 13794 13795 *) 13796 lt_prog_compiler_can_build_shared_F77=no 13797 ;; 13798 esac 13799 fi 13800 13801echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13802echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13803 13804# 13805# Check to make sure the PIC flag actually works. 13806# 13807if test -n "$lt_prog_compiler_pic_F77"; then 13808 13809echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13810echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13811if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13812 echo $ECHO_N "(cached) $ECHO_C" >&6 13813else 13814 lt_prog_compiler_pic_works_F77=no 13815 ac_outfile=conftest.$ac_objext 13816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13817 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13818 # Insert the option either (1) after the last *FLAGS variable, or 13819 # (2) before a word containing "conftest.", or (3) at the end. 13820 # Note that $ac_compile itself does not contain backslashes and begins 13821 # with a dollar sign (not a hyphen), so the echo should work correctly. 13822 # The option is referenced via a variable to avoid confusing sed. 13823 lt_compile=`echo "$ac_compile" | $SED \ 13824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13826 -e 's:$: $lt_compiler_flag:'` 13827 (eval echo "\"\$as_me:13827: $lt_compile\"" >&5) 13828 (eval "$lt_compile" 2>conftest.err) 13829 ac_status=$? 13830 cat conftest.err >&5 13831 echo "$as_me:13831: \$? = $ac_status" >&5 13832 if (exit $ac_status) && test -s "$ac_outfile"; then 13833 # The compiler can only warn and ignore the option if not recognized 13834 # So say no if there are warnings other than the usual output. 13835 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13838 lt_prog_compiler_pic_works_F77=yes 13839 fi 13840 fi 13841 $rm conftest* 13842 13843fi 13844echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13845echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13846 13847if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13848 case $lt_prog_compiler_pic_F77 in 13849 "" | " "*) ;; 13850 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13851 esac 13852else 13853 lt_prog_compiler_pic_F77= 13854 lt_prog_compiler_can_build_shared_F77=no 13855fi 13856 13857fi 13858case $host_os in 13859 # For platforms which do not support PIC, -DPIC is meaningless: 13860 *djgpp*) 13861 lt_prog_compiler_pic_F77= 13862 ;; 13863 *) 13864 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13865 ;; 13866esac 13867 13868# 13869# Check to make sure the static flag actually works. 13870# 13871wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13872echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13873echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13874if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13875 echo $ECHO_N "(cached) $ECHO_C" >&6 13876else 13877 lt_prog_compiler_static_works_F77=no 13878 save_LDFLAGS="$LDFLAGS" 13879 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13880 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13881 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13882 # The linker can only warn and ignore the option if not recognized 13883 # So say no if there are warnings 13884 if test -s conftest.err; then 13885 # Append any errors to the config.log. 13886 cat conftest.err 1>&5 13887 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13889 if diff conftest.exp conftest.er2 >/dev/null; then 13890 lt_prog_compiler_static_works_F77=yes 13891 fi 13892 else 13893 lt_prog_compiler_static_works_F77=yes 13894 fi 13895 fi 13896 $rm conftest* 13897 LDFLAGS="$save_LDFLAGS" 13898 13899fi 13900echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13901echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13902 13903if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13904 : 13905else 13906 lt_prog_compiler_static_F77= 13907fi 13908 13909 13910echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13911echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13912if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13913 echo $ECHO_N "(cached) $ECHO_C" >&6 13914else 13915 lt_cv_prog_compiler_c_o_F77=no 13916 $rm -r conftest 2>/dev/null 13917 mkdir conftest 13918 cd conftest 13919 mkdir out 13920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13921 13922 lt_compiler_flag="-o out/conftest2.$ac_objext" 13923 # Insert the option either (1) after the last *FLAGS variable, or 13924 # (2) before a word containing "conftest.", or (3) at the end. 13925 # Note that $ac_compile itself does not contain backslashes and begins 13926 # with a dollar sign (not a hyphen), so the echo should work correctly. 13927 lt_compile=`echo "$ac_compile" | $SED \ 13928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13930 -e 's:$: $lt_compiler_flag:'` 13931 (eval echo "\"\$as_me:13931: $lt_compile\"" >&5) 13932 (eval "$lt_compile" 2>out/conftest.err) 13933 ac_status=$? 13934 cat out/conftest.err >&5 13935 echo "$as_me:13935: \$? = $ac_status" >&5 13936 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13937 then 13938 # The compiler can only warn and ignore the option if not recognized 13939 # So say no if there are warnings 13940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13943 lt_cv_prog_compiler_c_o_F77=yes 13944 fi 13945 fi 13946 chmod u+w . 2>&5 13947 $rm conftest* 13948 # SGI C++ compiler will create directory out/ii_files/ for 13949 # template instantiation 13950 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13951 $rm out/* && rmdir out 13952 cd .. 13953 rmdir conftest 13954 $rm conftest* 13955 13956fi 13957echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13958echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13959 13960 13961hard_links="nottested" 13962if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13963 # do not overwrite the value of need_locks provided by the user 13964 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13965echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13966 hard_links=yes 13967 $rm conftest* 13968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13969 touch conftest.a 13970 ln conftest.a conftest.b 2>&5 || hard_links=no 13971 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13972 echo "$as_me:$LINENO: result: $hard_links" >&5 13973echo "${ECHO_T}$hard_links" >&6 13974 if test "$hard_links" = no; then 13975 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13976echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13977 need_locks=warn 13978 fi 13979else 13980 need_locks=no 13981fi 13982 13983echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13984echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13985 13986 runpath_var= 13987 allow_undefined_flag_F77= 13988 enable_shared_with_static_runtimes_F77=no 13989 archive_cmds_F77= 13990 archive_expsym_cmds_F77= 13991 old_archive_From_new_cmds_F77= 13992 old_archive_from_expsyms_cmds_F77= 13993 export_dynamic_flag_spec_F77= 13994 whole_archive_flag_spec_F77= 13995 thread_safe_flag_spec_F77= 13996 hardcode_libdir_flag_spec_F77= 13997 hardcode_libdir_flag_spec_ld_F77= 13998 hardcode_libdir_separator_F77= 13999 hardcode_direct_F77=no 14000 hardcode_minus_L_F77=no 14001 hardcode_shlibpath_var_F77=unsupported 14002 link_all_deplibs_F77=unknown 14003 hardcode_automatic_F77=no 14004 module_cmds_F77= 14005 module_expsym_cmds_F77= 14006 always_export_symbols_F77=no 14007 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14008 # include_expsyms should be a list of space-separated symbols to be *always* 14009 # included in the symbol list 14010 include_expsyms_F77= 14011 # exclude_expsyms can be an extended regexp of symbols to exclude 14012 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14014 # as well as any symbol that contains `d'. 14015 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14017 # platforms (ab)use it in PIC code, but their linkers get confused if 14018 # the symbol is explicitly referenced. Since portable code cannot 14019 # rely on this symbol name, it's probably fine to never include it in 14020 # preloaded symbol tables. 14021 extract_expsyms_cmds= 14022 # Just being paranoid about ensuring that cc_basename is set. 14023 for cc_temp in $compiler""; do 14024 case $cc_temp in 14025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14027 \-*) ;; 14028 *) break;; 14029 esac 14030done 14031cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14032 14033 case $host_os in 14034 cygwin* | mingw* | pw32*) 14035 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14036 # When not using gcc, we currently assume that we are using 14037 # Microsoft Visual C++. 14038 if test "$GCC" != yes; then 14039 with_gnu_ld=no 14040 fi 14041 ;; 14042 interix*) 14043 # we just hope/assume this is gcc and not c89 (= MSVC++) 14044 with_gnu_ld=yes 14045 ;; 14046 openbsd*) 14047 with_gnu_ld=no 14048 ;; 14049 esac 14050 14051 ld_shlibs_F77=yes 14052 if test "$with_gnu_ld" = yes; then 14053 # If archive_cmds runs LD, not CC, wlarc should be empty 14054 wlarc='${wl}' 14055 14056 # Set some defaults for GNU ld with shared library support. These 14057 # are reset later if shared libraries are not supported. Putting them 14058 # here allows them to be overridden if necessary. 14059 runpath_var=LD_RUN_PATH 14060 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14061 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14062 # ancient GNU ld didn't support --whole-archive et. al. 14063 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14064 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14065 else 14066 whole_archive_flag_spec_F77= 14067 fi 14068 supports_anon_versioning=no 14069 case `$LD -v 2>/dev/null` in 14070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14073 *\ 2.11.*) ;; # other 2.11 versions 14074 *) supports_anon_versioning=yes ;; 14075 esac 14076 14077 # See if GNU ld supports shared libraries. 14078 case $host_os in 14079 aix3* | aix4* | aix5*) 14080 # On AIX/PPC, the GNU linker is very broken 14081 if test "$host_cpu" != ia64; then 14082 ld_shlibs_F77=no 14083 cat <<EOF 1>&2 14084 14085*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14086*** to be unable to reliably create shared libraries on AIX. 14087*** Therefore, libtool is disabling shared libraries support. If you 14088*** really care for shared libraries, you may want to modify your PATH 14089*** so that a non-GNU linker is found, and then restart. 14090 14091EOF 14092 fi 14093 ;; 14094 14095 amigaos*) 14096 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14097 hardcode_libdir_flag_spec_F77='-L$libdir' 14098 hardcode_minus_L_F77=yes 14099 14100 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14101 # that the semantics of dynamic libraries on AmigaOS, at least up 14102 # to version 4, is to share data among multiple programs linked 14103 # with the same dynamic library. Since this doesn't match the 14104 # behavior of shared libraries on other platforms, we can't use 14105 # them. 14106 ld_shlibs_F77=no 14107 ;; 14108 14109 beos*) 14110 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14111 allow_undefined_flag_F77=unsupported 14112 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14113 # support --undefined. This deserves some investigation. FIXME 14114 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14115 else 14116 ld_shlibs_F77=no 14117 fi 14118 ;; 14119 14120 cygwin* | mingw* | pw32*) 14121 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14122 # as there is no search path for DLLs. 14123 hardcode_libdir_flag_spec_F77='-L$libdir' 14124 allow_undefined_flag_F77=unsupported 14125 always_export_symbols_F77=no 14126 enable_shared_with_static_runtimes_F77=yes 14127 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14128 14129 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14131 # If the export-symbols file already is a .def file (1st line 14132 # is EXPORTS), use it as is; otherwise, prepend... 14133 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14134 cp $export_symbols $output_objdir/$soname.def; 14135 else 14136 echo EXPORTS > $output_objdir/$soname.def; 14137 cat $export_symbols >> $output_objdir/$soname.def; 14138 fi~ 14139 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14140 else 14141 ld_shlibs_F77=no 14142 fi 14143 ;; 14144 14145 interix3*) 14146 hardcode_direct_F77=no 14147 hardcode_shlibpath_var_F77=no 14148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14149 export_dynamic_flag_spec_F77='${wl}-E' 14150 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14151 # Instead, shared libraries are loaded at an image base (0x10000000 by 14152 # default) and relocated if they conflict, which is a slow very memory 14153 # consuming and fragmenting process. To avoid this, we pick a random, 14154 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14155 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14156 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14157 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14158 ;; 14159 14160 linux*) 14161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14162 tmp_addflag= 14163 case $cc_basename,$host_cpu in 14164 pgcc*) # Portland Group C compiler 14165 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14166 tmp_addflag=' $pic_flag' 14167 ;; 14168 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14169 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14170 tmp_addflag=' $pic_flag -Mnomain' ;; 14171 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14172 tmp_addflag=' -i_dynamic' ;; 14173 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14174 tmp_addflag=' -i_dynamic -nofor_main' ;; 14175 ifc* | ifort*) # Intel Fortran compiler 14176 tmp_addflag=' -nofor_main' ;; 14177 esac 14178 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14179 14180 if test $supports_anon_versioning = yes; then 14181 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14183 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14184 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14185 fi 14186 else 14187 ld_shlibs_F77=no 14188 fi 14189 ;; 14190 14191 netbsd*) 14192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14193 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14194 wlarc= 14195 else 14196 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14197 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14198 fi 14199 ;; 14200 14201 solaris*) 14202 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14203 ld_shlibs_F77=no 14204 cat <<EOF 1>&2 14205 14206*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14207*** create shared libraries on Solaris systems. Therefore, libtool 14208*** is disabling shared libraries support. We urge you to upgrade GNU 14209*** binutils to release 2.9.1 or newer. Another option is to modify 14210*** your PATH or compiler configuration so that the native linker is 14211*** used, and then restart. 14212 14213EOF 14214 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14215 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14216 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14217 else 14218 ld_shlibs_F77=no 14219 fi 14220 ;; 14221 14222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14223 case `$LD -v 2>&1` in 14224 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14225 ld_shlibs_F77=no 14226 cat <<_LT_EOF 1>&2 14227 14228*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14229*** reliably create shared libraries on SCO systems. Therefore, libtool 14230*** is disabling shared libraries support. We urge you to upgrade GNU 14231*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14232*** your PATH or compiler configuration so that the native linker is 14233*** used, and then restart. 14234 14235_LT_EOF 14236 ;; 14237 *) 14238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14239 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14241 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14242 else 14243 ld_shlibs_F77=no 14244 fi 14245 ;; 14246 esac 14247 ;; 14248 14249 sunos4*) 14250 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14251 wlarc= 14252 hardcode_direct_F77=yes 14253 hardcode_shlibpath_var_F77=no 14254 ;; 14255 14256 *) 14257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14258 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14259 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14260 else 14261 ld_shlibs_F77=no 14262 fi 14263 ;; 14264 esac 14265 14266 if test "$ld_shlibs_F77" = no; then 14267 runpath_var= 14268 hardcode_libdir_flag_spec_F77= 14269 export_dynamic_flag_spec_F77= 14270 whole_archive_flag_spec_F77= 14271 fi 14272 else 14273 # PORTME fill in a description of your system's linker (not GNU ld) 14274 case $host_os in 14275 aix3*) 14276 allow_undefined_flag_F77=unsupported 14277 always_export_symbols_F77=yes 14278 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14279 # Note: this linker hardcodes the directories in LIBPATH if there 14280 # are no directories specified by -L. 14281 hardcode_minus_L_F77=yes 14282 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14283 # Neither direct hardcoding nor static linking is supported with a 14284 # broken collect2. 14285 hardcode_direct_F77=unsupported 14286 fi 14287 ;; 14288 14289 aix4* | aix5*) 14290 if test "$host_cpu" = ia64; then 14291 # On IA64, the linker does run time linking by default, so we don't 14292 # have to do anything special. 14293 aix_use_runtimelinking=no 14294 exp_sym_flag='-Bexport' 14295 no_entry_flag="" 14296 else 14297 # If we're using GNU nm, then we don't want the "-C" option. 14298 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14299 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14300 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14301 else 14302 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14303 fi 14304 aix_use_runtimelinking=no 14305 14306 # Test if we are trying to use run time linking or normal 14307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14308 # need to do runtime linking. 14309 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14310 for ld_flag in $LDFLAGS; do 14311 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14312 aix_use_runtimelinking=yes 14313 break 14314 fi 14315 done 14316 ;; 14317 esac 14318 14319 exp_sym_flag='-bexport' 14320 no_entry_flag='-bnoentry' 14321 fi 14322 14323 # When large executables or shared objects are built, AIX ld can 14324 # have problems creating the table of contents. If linking a library 14325 # or program results in "error TOC overflow" add -mminimal-toc to 14326 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14327 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14328 14329 archive_cmds_F77='' 14330 hardcode_direct_F77=yes 14331 hardcode_libdir_separator_F77=':' 14332 link_all_deplibs_F77=yes 14333 14334 if test "$GCC" = yes; then 14335 case $host_os in aix4.[012]|aix4.[012].*) 14336 # We only want to do this on AIX 4.2 and lower, the check 14337 # below for broken collect2 doesn't work under 4.3+ 14338 collect2name=`${CC} -print-prog-name=collect2` 14339 if test -f "$collect2name" && \ 14340 strings "$collect2name" | grep resolve_lib_name >/dev/null 14341 then 14342 # We have reworked collect2 14343 hardcode_direct_F77=yes 14344 else 14345 # We have old collect2 14346 hardcode_direct_F77=unsupported 14347 # It fails to find uninstalled libraries when the uninstalled 14348 # path is not listed in the libpath. Setting hardcode_minus_L 14349 # to unsupported forces relinking 14350 hardcode_minus_L_F77=yes 14351 hardcode_libdir_flag_spec_F77='-L$libdir' 14352 hardcode_libdir_separator_F77= 14353 fi 14354 ;; 14355 esac 14356 shared_flag='-shared' 14357 if test "$aix_use_runtimelinking" = yes; then 14358 shared_flag="$shared_flag "'${wl}-G' 14359 fi 14360 else 14361 # not using gcc 14362 if test "$host_cpu" = ia64; then 14363 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14364 # chokes on -Wl,-G. The following line is correct: 14365 shared_flag='-G' 14366 else 14367 if test "$aix_use_runtimelinking" = yes; then 14368 shared_flag='${wl}-G' 14369 else 14370 shared_flag='${wl}-bM:SRE' 14371 fi 14372 fi 14373 fi 14374 14375 # It seems that -bexpall does not export symbols beginning with 14376 # underscore (_), so it is better to generate a list of symbols to export. 14377 always_export_symbols_F77=yes 14378 if test "$aix_use_runtimelinking" = yes; then 14379 # Warning - without using the other runtime loading flags (-brtl), 14380 # -berok will link without error, but may produce a broken library. 14381 allow_undefined_flag_F77='-berok' 14382 # Determine the default libpath from the value encoded in an empty executable. 14383 cat >conftest.$ac_ext <<_ACEOF 14384 program main 14385 14386 end 14387_ACEOF 14388rm -f conftest.$ac_objext conftest$ac_exeext 14389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14390 (eval $ac_link) 2>conftest.er1 14391 ac_status=$? 14392 grep -v '^ *+' conftest.er1 >conftest.err 14393 rm -f conftest.er1 14394 cat conftest.err >&5 14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14396 (exit $ac_status); } && 14397 { ac_try='test -z "$ac_f77_werror_flag" 14398 || test ! -s conftest.err' 14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14400 (eval $ac_try) 2>&5 14401 ac_status=$? 14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14403 (exit $ac_status); }; } && 14404 { ac_try='test -s conftest$ac_exeext' 14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14406 (eval $ac_try) 2>&5 14407 ac_status=$? 14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14409 (exit $ac_status); }; }; then 14410 14411aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14412}'` 14413# Check for a 64-bit object if we didn't find anything. 14414if 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; } 14415}'`; fi 14416else 14417 echo "$as_me: failed program was:" >&5 14418sed 's/^/| /' conftest.$ac_ext >&5 14419 14420fi 14421rm -f conftest.err conftest.$ac_objext \ 14422 conftest$ac_exeext conftest.$ac_ext 14423if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14424 14425 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14426 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14427 else 14428 if test "$host_cpu" = ia64; then 14429 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14430 allow_undefined_flag_F77="-z nodefs" 14431 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 14432 else 14433 # Determine the default libpath from the value encoded in an empty executable. 14434 cat >conftest.$ac_ext <<_ACEOF 14435 program main 14436 14437 end 14438_ACEOF 14439rm -f conftest.$ac_objext conftest$ac_exeext 14440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14441 (eval $ac_link) 2>conftest.er1 14442 ac_status=$? 14443 grep -v '^ *+' conftest.er1 >conftest.err 14444 rm -f conftest.er1 14445 cat conftest.err >&5 14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14447 (exit $ac_status); } && 14448 { ac_try='test -z "$ac_f77_werror_flag" 14449 || test ! -s conftest.err' 14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14451 (eval $ac_try) 2>&5 14452 ac_status=$? 14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14454 (exit $ac_status); }; } && 14455 { ac_try='test -s conftest$ac_exeext' 14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14457 (eval $ac_try) 2>&5 14458 ac_status=$? 14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14460 (exit $ac_status); }; }; then 14461 14462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14463}'` 14464# Check for a 64-bit object if we didn't find anything. 14465if 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; } 14466}'`; fi 14467else 14468 echo "$as_me: failed program was:" >&5 14469sed 's/^/| /' conftest.$ac_ext >&5 14470 14471fi 14472rm -f conftest.err conftest.$ac_objext \ 14473 conftest$ac_exeext conftest.$ac_ext 14474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14475 14476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14477 # Warning - without using the other run time loading flags, 14478 # -berok will link without error, but may produce a broken library. 14479 no_undefined_flag_F77=' ${wl}-bernotok' 14480 allow_undefined_flag_F77=' ${wl}-berok' 14481 # Exported symbols can be pulled into shared objects from archives 14482 whole_archive_flag_spec_F77='$convenience' 14483 archive_cmds_need_lc_F77=yes 14484 # This is similar to how AIX traditionally builds its shared libraries. 14485 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14486 fi 14487 fi 14488 ;; 14489 14490 amigaos*) 14491 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14492 hardcode_libdir_flag_spec_F77='-L$libdir' 14493 hardcode_minus_L_F77=yes 14494 # see comment about different semantics on the GNU ld section 14495 ld_shlibs_F77=no 14496 ;; 14497 14498 bsdi[45]*) 14499 export_dynamic_flag_spec_F77=-rdynamic 14500 ;; 14501 14502 cygwin* | mingw* | pw32*) 14503 # When not using gcc, we currently assume that we are using 14504 # Microsoft Visual C++. 14505 # hardcode_libdir_flag_spec is actually meaningless, as there is 14506 # no search path for DLLs. 14507 hardcode_libdir_flag_spec_F77=' ' 14508 allow_undefined_flag_F77=unsupported 14509 # Tell ltmain to make .lib files, not .a files. 14510 libext=lib 14511 # Tell ltmain to make .dll files, not .so files. 14512 shrext_cmds=".dll" 14513 # FIXME: Setting linknames here is a bad hack. 14514 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14515 # The linker will automatically build a .lib file if we build a DLL. 14516 old_archive_From_new_cmds_F77='true' 14517 # FIXME: Should let the user specify the lib program. 14518 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14519 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14520 enable_shared_with_static_runtimes_F77=yes 14521 ;; 14522 14523 darwin* | rhapsody*) 14524 case $host_os in 14525 rhapsody* | darwin1.[012]) 14526 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14527 ;; 14528 *) # Darwin 1.3 on 14529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14530 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14531 else 14532 case ${MACOSX_DEPLOYMENT_TARGET} in 14533 10.[012]) 14534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14535 ;; 14536 10.*) 14537 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14538 ;; 14539 esac 14540 fi 14541 ;; 14542 esac 14543 archive_cmds_need_lc_F77=no 14544 hardcode_direct_F77=no 14545 hardcode_automatic_F77=yes 14546 hardcode_shlibpath_var_F77=unsupported 14547 whole_archive_flag_spec_F77='' 14548 link_all_deplibs_F77=yes 14549 if test "$GCC" = yes ; then 14550 output_verbose_link_cmd='echo' 14551 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14552 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14554 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14555 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14556 else 14557 case $cc_basename in 14558 xlc*) 14559 output_verbose_link_cmd='echo' 14560 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14561 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14563 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14564 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14565 ;; 14566 *) 14567 ld_shlibs_F77=no 14568 ;; 14569 esac 14570 fi 14571 ;; 14572 14573 dgux*) 14574 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14575 hardcode_libdir_flag_spec_F77='-L$libdir' 14576 hardcode_shlibpath_var_F77=no 14577 ;; 14578 14579 freebsd1*) 14580 ld_shlibs_F77=no 14581 ;; 14582 14583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14584 # support. Future versions do this automatically, but an explicit c++rt0.o 14585 # does not break anything, and helps significantly (at the cost of a little 14586 # extra space). 14587 freebsd2.2*) 14588 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14589 hardcode_libdir_flag_spec_F77='-R$libdir' 14590 hardcode_direct_F77=yes 14591 hardcode_shlibpath_var_F77=no 14592 ;; 14593 14594 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14595 freebsd2*) 14596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14597 hardcode_direct_F77=yes 14598 hardcode_minus_L_F77=yes 14599 hardcode_shlibpath_var_F77=no 14600 ;; 14601 14602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14603 freebsd* | kfreebsd*-gnu | dragonfly*) 14604 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14605 hardcode_libdir_flag_spec_F77='-R$libdir' 14606 hardcode_direct_F77=yes 14607 hardcode_shlibpath_var_F77=no 14608 ;; 14609 14610 hpux9*) 14611 if test "$GCC" = yes; then 14612 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14613 else 14614 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14615 fi 14616 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14617 hardcode_libdir_separator_F77=: 14618 hardcode_direct_F77=yes 14619 14620 # hardcode_minus_L: Not really in the search PATH, 14621 # but as the default location of the library. 14622 hardcode_minus_L_F77=yes 14623 export_dynamic_flag_spec_F77='${wl}-E' 14624 ;; 14625 14626 hpux10*) 14627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14628 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14629 else 14630 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14631 fi 14632 if test "$with_gnu_ld" = no; then 14633 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14634 hardcode_libdir_separator_F77=: 14635 14636 hardcode_direct_F77=yes 14637 export_dynamic_flag_spec_F77='${wl}-E' 14638 14639 # hardcode_minus_L: Not really in the search PATH, 14640 # but as the default location of the library. 14641 hardcode_minus_L_F77=yes 14642 fi 14643 ;; 14644 14645 hpux11*) 14646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14647 case $host_cpu in 14648 hppa*64*) 14649 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14650 ;; 14651 ia64*) 14652 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14653 ;; 14654 *) 14655 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14656 ;; 14657 esac 14658 else 14659 case $host_cpu in 14660 hppa*64*) 14661 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14662 ;; 14663 ia64*) 14664 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14665 ;; 14666 *) 14667 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14668 ;; 14669 esac 14670 fi 14671 if test "$with_gnu_ld" = no; then 14672 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14673 hardcode_libdir_separator_F77=: 14674 14675 case $host_cpu in 14676 hppa*64*|ia64*) 14677 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14678 hardcode_direct_F77=no 14679 hardcode_shlibpath_var_F77=no 14680 ;; 14681 *) 14682 hardcode_direct_F77=yes 14683 export_dynamic_flag_spec_F77='${wl}-E' 14684 14685 # hardcode_minus_L: Not really in the search PATH, 14686 # but as the default location of the library. 14687 hardcode_minus_L_F77=yes 14688 ;; 14689 esac 14690 fi 14691 ;; 14692 14693 irix5* | irix6* | nonstopux*) 14694 if test "$GCC" = yes; then 14695 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14696 else 14697 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14698 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14699 fi 14700 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14701 hardcode_libdir_separator_F77=: 14702 link_all_deplibs_F77=yes 14703 ;; 14704 14705 netbsd*) 14706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14707 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14708 else 14709 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14710 fi 14711 hardcode_libdir_flag_spec_F77='-R$libdir' 14712 hardcode_direct_F77=yes 14713 hardcode_shlibpath_var_F77=no 14714 ;; 14715 14716 newsos6) 14717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14718 hardcode_direct_F77=yes 14719 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14720 hardcode_libdir_separator_F77=: 14721 hardcode_shlibpath_var_F77=no 14722 ;; 14723 14724 openbsd*) 14725 hardcode_direct_F77=yes 14726 hardcode_shlibpath_var_F77=no 14727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14728 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14729 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14730 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14731 export_dynamic_flag_spec_F77='${wl}-E' 14732 else 14733 case $host_os in 14734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14735 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14736 hardcode_libdir_flag_spec_F77='-R$libdir' 14737 ;; 14738 *) 14739 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14740 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14741 ;; 14742 esac 14743 fi 14744 ;; 14745 14746 os2*) 14747 hardcode_libdir_flag_spec_F77='-L$libdir' 14748 hardcode_minus_L_F77=yes 14749 allow_undefined_flag_F77=unsupported 14750 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14751 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14752 ;; 14753 14754 osf3*) 14755 if test "$GCC" = yes; then 14756 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14757 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14758 else 14759 allow_undefined_flag_F77=' -expect_unresolved \*' 14760 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14761 fi 14762 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14763 hardcode_libdir_separator_F77=: 14764 ;; 14765 14766 osf4* | osf5*) # as osf3* with the addition of -msym flag 14767 if test "$GCC" = yes; then 14768 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14769 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14770 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14771 else 14772 allow_undefined_flag_F77=' -expect_unresolved \*' 14773 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14774 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14775 $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' 14776 14777 # Both c and cxx compiler support -rpath directly 14778 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14779 fi 14780 hardcode_libdir_separator_F77=: 14781 ;; 14782 14783 solaris*) 14784 no_undefined_flag_F77=' -z text' 14785 if test "$GCC" = yes; then 14786 wlarc='${wl}' 14787 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14788 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14789 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14790 else 14791 wlarc='' 14792 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14793 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14794 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14795 fi 14796 hardcode_libdir_flag_spec_F77='-R$libdir' 14797 hardcode_shlibpath_var_F77=no 14798 case $host_os in 14799 solaris2.[0-5] | solaris2.[0-5].*) ;; 14800 *) 14801 # The compiler driver will combine linker options so we 14802 # cannot just pass the convience library names through 14803 # without $wl, iff we do not link with $LD. 14804 # Luckily, gcc supports the same syntax we need for Sun Studio. 14805 # Supported since Solaris 2.6 (maybe 2.5.1?) 14806 case $wlarc in 14807 '') 14808 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14809 *) 14810 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14811 esac ;; 14812 esac 14813 link_all_deplibs_F77=yes 14814 ;; 14815 14816 sunos4*) 14817 if test "x$host_vendor" = xsequent; then 14818 # Use $CC to link under sequent, because it throws in some extra .o 14819 # files that make .init and .fini sections work. 14820 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14821 else 14822 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14823 fi 14824 hardcode_libdir_flag_spec_F77='-L$libdir' 14825 hardcode_direct_F77=yes 14826 hardcode_minus_L_F77=yes 14827 hardcode_shlibpath_var_F77=no 14828 ;; 14829 14830 sysv4) 14831 case $host_vendor in 14832 sni) 14833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14834 hardcode_direct_F77=yes # is this really true??? 14835 ;; 14836 siemens) 14837 ## LD is ld it makes a PLAMLIB 14838 ## CC just makes a GrossModule. 14839 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14840 reload_cmds_F77='$CC -r -o $output$reload_objs' 14841 hardcode_direct_F77=no 14842 ;; 14843 motorola) 14844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14845 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14846 ;; 14847 esac 14848 runpath_var='LD_RUN_PATH' 14849 hardcode_shlibpath_var_F77=no 14850 ;; 14851 14852 sysv4.3*) 14853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14854 hardcode_shlibpath_var_F77=no 14855 export_dynamic_flag_spec_F77='-Bexport' 14856 ;; 14857 14858 sysv4*MP*) 14859 if test -d /usr/nec; then 14860 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14861 hardcode_shlibpath_var_F77=no 14862 runpath_var=LD_RUN_PATH 14863 hardcode_runpath_var=yes 14864 ld_shlibs_F77=yes 14865 fi 14866 ;; 14867 14868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14869 no_undefined_flag_F77='${wl}-z,text' 14870 archive_cmds_need_lc_F77=no 14871 hardcode_shlibpath_var_F77=no 14872 runpath_var='LD_RUN_PATH' 14873 14874 if test "$GCC" = yes; then 14875 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14876 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14877 else 14878 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14879 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14880 fi 14881 ;; 14882 14883 sysv5* | sco3.2v5* | sco5v6*) 14884 # Note: We can NOT use -z defs as we might desire, because we do not 14885 # link with -lc, and that would cause any symbols used from libc to 14886 # always be unresolved, which means just about no library would 14887 # ever link correctly. If we're not using GNU ld we use -z text 14888 # though, which does catch some bad symbols but isn't as heavy-handed 14889 # as -z defs. 14890 no_undefined_flag_F77='${wl}-z,text' 14891 allow_undefined_flag_F77='${wl}-z,nodefs' 14892 archive_cmds_need_lc_F77=no 14893 hardcode_shlibpath_var_F77=no 14894 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14895 hardcode_libdir_separator_F77=':' 14896 link_all_deplibs_F77=yes 14897 export_dynamic_flag_spec_F77='${wl}-Bexport' 14898 runpath_var='LD_RUN_PATH' 14899 14900 if test "$GCC" = yes; then 14901 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14902 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14903 else 14904 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14905 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14906 fi 14907 ;; 14908 14909 uts4*) 14910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14911 hardcode_libdir_flag_spec_F77='-L$libdir' 14912 hardcode_shlibpath_var_F77=no 14913 ;; 14914 14915 *) 14916 ld_shlibs_F77=no 14917 ;; 14918 esac 14919 fi 14920 14921echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14922echo "${ECHO_T}$ld_shlibs_F77" >&6 14923test "$ld_shlibs_F77" = no && can_build_shared=no 14924 14925# 14926# Do we need to explicitly link libc? 14927# 14928case "x$archive_cmds_need_lc_F77" in 14929x|xyes) 14930 # Assume -lc should be added 14931 archive_cmds_need_lc_F77=yes 14932 14933 if test "$enable_shared" = yes && test "$GCC" = yes; then 14934 case $archive_cmds_F77 in 14935 *'~'*) 14936 # FIXME: we may have to deal with multi-command sequences. 14937 ;; 14938 '$CC '*) 14939 # Test whether the compiler implicitly links with -lc since on some 14940 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14941 # to ld, don't add -lc before -lgcc. 14942 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14943echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14944 $rm conftest* 14945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14946 14947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14948 (eval $ac_compile) 2>&5 14949 ac_status=$? 14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14951 (exit $ac_status); } 2>conftest.err; then 14952 soname=conftest 14953 lib=conftest 14954 libobjs=conftest.$ac_objext 14955 deplibs= 14956 wl=$lt_prog_compiler_wl_F77 14957 pic_flag=$lt_prog_compiler_pic_F77 14958 compiler_flags=-v 14959 linker_flags=-v 14960 verstring= 14961 output_objdir=. 14962 libname=conftest 14963 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14964 allow_undefined_flag_F77= 14965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14966 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14967 ac_status=$? 14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14969 (exit $ac_status); } 14970 then 14971 archive_cmds_need_lc_F77=no 14972 else 14973 archive_cmds_need_lc_F77=yes 14974 fi 14975 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14976 else 14977 cat conftest.err 1>&5 14978 fi 14979 $rm conftest* 14980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14981echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14982 ;; 14983 esac 14984 fi 14985 ;; 14986esac 14987 14988echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14989echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14990library_names_spec= 14991libname_spec='lib$name' 14992soname_spec= 14993shrext_cmds=".so" 14994postinstall_cmds= 14995postuninstall_cmds= 14996finish_cmds= 14997finish_eval= 14998shlibpath_var= 14999shlibpath_overrides_runpath=unknown 15000version_type=none 15001dynamic_linker="$host_os ld.so" 15002sys_lib_dlsearch_path_spec="/lib /usr/lib" 15003if test "$GCC" = yes; then 15004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15006 # if the path contains ";" then we assume it to be the separator 15007 # otherwise default to the standard path separator (i.e. ":") - it is 15008 # assumed that no part of a normal pathname contains ";" but that should 15009 # okay in the real world where ";" in dirpaths is itself problematic. 15010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15011 else 15012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15013 fi 15014else 15015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15016fi 15017need_lib_prefix=unknown 15018hardcode_into_libs=no 15019 15020# when you set need_version to no, make sure it does not cause -set_version 15021# flags to be left without arguments 15022need_version=unknown 15023 15024case $host_os in 15025aix3*) 15026 version_type=linux 15027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15028 shlibpath_var=LIBPATH 15029 15030 # AIX 3 has no versioning support, so we append a major version to the name. 15031 soname_spec='${libname}${release}${shared_ext}$major' 15032 ;; 15033 15034aix4* | aix5*) 15035 version_type=linux 15036 need_lib_prefix=no 15037 need_version=no 15038 hardcode_into_libs=yes 15039 if test "$host_cpu" = ia64; then 15040 # AIX 5 supports IA64 15041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15042 shlibpath_var=LD_LIBRARY_PATH 15043 else 15044 # With GCC up to 2.95.x, collect2 would create an import file 15045 # for dependence libraries. The import file would start with 15046 # the line `#! .'. This would cause the generated library to 15047 # depend on `.', always an invalid library. This was fixed in 15048 # development snapshots of GCC prior to 3.0. 15049 case $host_os in 15050 aix4 | aix4.[01] | aix4.[01].*) 15051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15052 echo ' yes ' 15053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15054 : 15055 else 15056 can_build_shared=no 15057 fi 15058 ;; 15059 esac 15060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15061 # soname into executable. Probably we can add versioning support to 15062 # collect2, so additional links can be useful in future. 15063 if test "$aix_use_runtimelinking" = yes; then 15064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15065 # instead of lib<name>.a to let people know that these are not 15066 # typical AIX shared libraries. 15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15068 else 15069 # We preserve .a as extension for shared libraries through AIX4.2 15070 # and later when we are not doing run time linking. 15071 library_names_spec='${libname}${release}.a $libname.a' 15072 soname_spec='${libname}${release}${shared_ext}$major' 15073 fi 15074 shlibpath_var=LIBPATH 15075 fi 15076 ;; 15077 15078amigaos*) 15079 library_names_spec='$libname.ixlibrary $libname.a' 15080 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15081 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' 15082 ;; 15083 15084beos*) 15085 library_names_spec='${libname}${shared_ext}' 15086 dynamic_linker="$host_os ld.so" 15087 shlibpath_var=LIBRARY_PATH 15088 ;; 15089 15090bsdi[45]*) 15091 version_type=linux 15092 need_version=no 15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15094 soname_spec='${libname}${release}${shared_ext}$major' 15095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15096 shlibpath_var=LD_LIBRARY_PATH 15097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15099 # the default ld.so.conf also contains /usr/contrib/lib and 15100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15101 # libtool to hard-code these into programs 15102 ;; 15103 15104cygwin* | mingw* | pw32*) 15105 version_type=windows 15106 shrext_cmds=".dll" 15107 need_version=no 15108 need_lib_prefix=no 15109 15110 case $GCC,$host_os in 15111 yes,cygwin* | yes,mingw* | yes,pw32*) 15112 library_names_spec='$libname.dll.a' 15113 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15114 postinstall_cmds='base_file=`basename \${file}`~ 15115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15116 dldir=$destdir/`dirname \$dlpath`~ 15117 test -d \$dldir || mkdir -p \$dldir~ 15118 $install_prog $dir/$dlname \$dldir/$dlname~ 15119 chmod a+x \$dldir/$dlname' 15120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15121 dlpath=$dir/\$dldll~ 15122 $rm \$dlpath' 15123 shlibpath_overrides_runpath=yes 15124 15125 case $host_os in 15126 cygwin*) 15127 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15130 ;; 15131 mingw*) 15132 # MinGW DLLs use traditional 'lib' prefix 15133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15136 # It is most probably a Windows format PATH printed by 15137 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15138 # path with ; separators, and with drive letters. We can handle the 15139 # drive letters (cygwin fileutils understands them), so leave them, 15140 # especially as we might pass files found there to a mingw objdump, 15141 # which wouldn't understand a cygwinified path. Ahh. 15142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15143 else 15144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15145 fi 15146 ;; 15147 pw32*) 15148 # pw32 DLLs use 'pw' prefix rather than 'lib' 15149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15150 ;; 15151 esac 15152 ;; 15153 15154 *) 15155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15156 ;; 15157 esac 15158 dynamic_linker='Win32 ld.exe' 15159 # FIXME: first we should search . and the directory the executable is in 15160 shlibpath_var=PATH 15161 ;; 15162 15163darwin* | rhapsody*) 15164 dynamic_linker="$host_os dyld" 15165 version_type=darwin 15166 need_lib_prefix=no 15167 need_version=no 15168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15169 soname_spec='${libname}${release}${major}$shared_ext' 15170 shlibpath_overrides_runpath=yes 15171 shlibpath_var=DYLD_LIBRARY_PATH 15172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15174 if test "$GCC" = yes; then 15175 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"` 15176 else 15177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15178 fi 15179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15180 ;; 15181 15182dgux*) 15183 version_type=linux 15184 need_lib_prefix=no 15185 need_version=no 15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15187 soname_spec='${libname}${release}${shared_ext}$major' 15188 shlibpath_var=LD_LIBRARY_PATH 15189 ;; 15190 15191freebsd1*) 15192 dynamic_linker=no 15193 ;; 15194 15195kfreebsd*-gnu) 15196 version_type=linux 15197 need_lib_prefix=no 15198 need_version=no 15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15200 soname_spec='${libname}${release}${shared_ext}$major' 15201 shlibpath_var=LD_LIBRARY_PATH 15202 shlibpath_overrides_runpath=no 15203 hardcode_into_libs=yes 15204 dynamic_linker='GNU ld.so' 15205 ;; 15206 15207freebsd* | dragonfly*) 15208 # DragonFly does not have aout. When/if they implement a new 15209 # versioning mechanism, adjust this. 15210 if test -x /usr/bin/objformat; then 15211 objformat=`/usr/bin/objformat` 15212 else 15213 case $host_os in 15214 freebsd[123]*) objformat=aout ;; 15215 *) objformat=elf ;; 15216 esac 15217 fi 15218 version_type=freebsd-$objformat 15219 case $version_type in 15220 freebsd-elf*) 15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15222 need_version=no 15223 need_lib_prefix=no 15224 ;; 15225 freebsd-*) 15226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15227 need_version=yes 15228 ;; 15229 esac 15230 shlibpath_var=LD_LIBRARY_PATH 15231 case $host_os in 15232 freebsd2*) 15233 shlibpath_overrides_runpath=yes 15234 ;; 15235 freebsd3.[01]* | freebsdelf3.[01]*) 15236 shlibpath_overrides_runpath=yes 15237 hardcode_into_libs=yes 15238 ;; 15239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15241 shlibpath_overrides_runpath=no 15242 hardcode_into_libs=yes 15243 ;; 15244 freebsd*) # from 4.6 on 15245 shlibpath_overrides_runpath=yes 15246 hardcode_into_libs=yes 15247 ;; 15248 esac 15249 ;; 15250 15251gnu*) 15252 version_type=linux 15253 need_lib_prefix=no 15254 need_version=no 15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15256 soname_spec='${libname}${release}${shared_ext}$major' 15257 shlibpath_var=LD_LIBRARY_PATH 15258 hardcode_into_libs=yes 15259 ;; 15260 15261hpux9* | hpux10* | hpux11*) 15262 # Give a soname corresponding to the major version so that dld.sl refuses to 15263 # link against other versions. 15264 version_type=sunos 15265 need_lib_prefix=no 15266 need_version=no 15267 case $host_cpu in 15268 ia64*) 15269 shrext_cmds='.so' 15270 hardcode_into_libs=yes 15271 dynamic_linker="$host_os dld.so" 15272 shlibpath_var=LD_LIBRARY_PATH 15273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15275 soname_spec='${libname}${release}${shared_ext}$major' 15276 if test "X$HPUX_IA64_MODE" = X32; then 15277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15278 else 15279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15280 fi 15281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15282 ;; 15283 hppa*64*) 15284 shrext_cmds='.sl' 15285 hardcode_into_libs=yes 15286 dynamic_linker="$host_os dld.sl" 15287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15290 soname_spec='${libname}${release}${shared_ext}$major' 15291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15293 ;; 15294 *) 15295 shrext_cmds='.sl' 15296 dynamic_linker="$host_os dld.sl" 15297 shlibpath_var=SHLIB_PATH 15298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15300 soname_spec='${libname}${release}${shared_ext}$major' 15301 ;; 15302 esac 15303 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15304 postinstall_cmds='chmod 555 $lib' 15305 ;; 15306 15307interix3*) 15308 version_type=linux 15309 need_lib_prefix=no 15310 need_version=no 15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15312 soname_spec='${libname}${release}${shared_ext}$major' 15313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15314 shlibpath_var=LD_LIBRARY_PATH 15315 shlibpath_overrides_runpath=no 15316 hardcode_into_libs=yes 15317 ;; 15318 15319irix5* | irix6* | nonstopux*) 15320 case $host_os in 15321 nonstopux*) version_type=nonstopux ;; 15322 *) 15323 if test "$lt_cv_prog_gnu_ld" = yes; then 15324 version_type=linux 15325 else 15326 version_type=irix 15327 fi ;; 15328 esac 15329 need_lib_prefix=no 15330 need_version=no 15331 soname_spec='${libname}${release}${shared_ext}$major' 15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15333 case $host_os in 15334 irix5* | nonstopux*) 15335 libsuff= shlibsuff= 15336 ;; 15337 *) 15338 case $LD in # libtool.m4 will add one of these switches to LD 15339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15340 libsuff= shlibsuff= libmagic=32-bit;; 15341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15342 libsuff=32 shlibsuff=N32 libmagic=N32;; 15343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15344 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15345 *) libsuff= shlibsuff= libmagic=never-match;; 15346 esac 15347 ;; 15348 esac 15349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15350 shlibpath_overrides_runpath=no 15351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15353 hardcode_into_libs=yes 15354 ;; 15355 15356# No shared lib support for Linux oldld, aout, or coff. 15357linux*oldld* | linux*aout* | linux*coff*) 15358 dynamic_linker=no 15359 ;; 15360 15361# This must be Linux ELF. 15362linux*) 15363 version_type=linux 15364 need_lib_prefix=no 15365 need_version=no 15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15367 soname_spec='${libname}${release}${shared_ext}$major' 15368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15369 shlibpath_var=LD_LIBRARY_PATH 15370 shlibpath_overrides_runpath=no 15371 # This implies no fast_install, which is unacceptable. 15372 # Some rework will be needed to allow for fast_install 15373 # before this can be enabled. 15374 hardcode_into_libs=yes 15375 15376 # find out which ABI we are using 15377 libsuff= 15378 case "$host_cpu" in 15379 x86_64*|s390x*|powerpc64*) 15380 echo '#line 15380 "configure"' > conftest.$ac_ext 15381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15382 (eval $ac_compile) 2>&5 15383 ac_status=$? 15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15385 (exit $ac_status); }; then 15386 case `/usr/bin/file conftest.$ac_objext` in 15387 *64-bit*) 15388 libsuff=64 15389 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15390 ;; 15391 esac 15392 fi 15393 rm -rf conftest* 15394 ;; 15395 esac 15396 15397 # Append ld.so.conf contents to the search path 15398 if test -f /etc/ld.so.conf; then 15399 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15400 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 15401 fi 15402 15403 # We used to test for /lib/ld.so.1 and disable shared libraries on 15404 # powerpc, because MkLinux only supported shared libraries with the 15405 # GNU dynamic linker. Since this was broken with cross compilers, 15406 # most powerpc-linux boxes support dynamic linking these days and 15407 # people can always --disable-shared, the test was removed, and we 15408 # assume the GNU/Linux dynamic linker is in use. 15409 dynamic_linker='GNU/Linux ld.so' 15410 ;; 15411 15412knetbsd*-gnu) 15413 version_type=linux 15414 need_lib_prefix=no 15415 need_version=no 15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15417 soname_spec='${libname}${release}${shared_ext}$major' 15418 shlibpath_var=LD_LIBRARY_PATH 15419 shlibpath_overrides_runpath=no 15420 hardcode_into_libs=yes 15421 dynamic_linker='GNU ld.so' 15422 ;; 15423 15424netbsd*) 15425 version_type=sunos 15426 need_lib_prefix=no 15427 need_version=no 15428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15431 dynamic_linker='NetBSD (a.out) ld.so' 15432 else 15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15434 soname_spec='${libname}${release}${shared_ext}$major' 15435 dynamic_linker='NetBSD ld.elf_so' 15436 fi 15437 shlibpath_var=LD_LIBRARY_PATH 15438 shlibpath_overrides_runpath=yes 15439 hardcode_into_libs=yes 15440 ;; 15441 15442newsos6) 15443 version_type=linux 15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15445 shlibpath_var=LD_LIBRARY_PATH 15446 shlibpath_overrides_runpath=yes 15447 ;; 15448 15449nto-qnx*) 15450 version_type=linux 15451 need_lib_prefix=no 15452 need_version=no 15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15454 soname_spec='${libname}${release}${shared_ext}$major' 15455 shlibpath_var=LD_LIBRARY_PATH 15456 shlibpath_overrides_runpath=yes 15457 ;; 15458 15459openbsd*) 15460 version_type=sunos 15461 sys_lib_dlsearch_path_spec="/usr/lib" 15462 need_lib_prefix=no 15463 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15464 case $host_os in 15465 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15466 *) need_version=no ;; 15467 esac 15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15470 shlibpath_var=LD_LIBRARY_PATH 15471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15472 case $host_os in 15473 openbsd2.[89] | openbsd2.[89].*) 15474 shlibpath_overrides_runpath=no 15475 ;; 15476 *) 15477 shlibpath_overrides_runpath=yes 15478 ;; 15479 esac 15480 else 15481 shlibpath_overrides_runpath=yes 15482 fi 15483 ;; 15484 15485os2*) 15486 libname_spec='$name' 15487 shrext_cmds=".dll" 15488 need_lib_prefix=no 15489 library_names_spec='$libname${shared_ext} $libname.a' 15490 dynamic_linker='OS/2 ld.exe' 15491 shlibpath_var=LIBPATH 15492 ;; 15493 15494osf3* | osf4* | osf5*) 15495 version_type=osf 15496 need_lib_prefix=no 15497 need_version=no 15498 soname_spec='${libname}${release}${shared_ext}$major' 15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15500 shlibpath_var=LD_LIBRARY_PATH 15501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15503 ;; 15504 15505solaris*) 15506 version_type=linux 15507 need_lib_prefix=no 15508 need_version=no 15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15510 soname_spec='${libname}${release}${shared_ext}$major' 15511 shlibpath_var=LD_LIBRARY_PATH 15512 shlibpath_overrides_runpath=yes 15513 hardcode_into_libs=yes 15514 # ldd complains unless libraries are executable 15515 postinstall_cmds='chmod +x $lib' 15516 ;; 15517 15518sunos4*) 15519 version_type=sunos 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15522 shlibpath_var=LD_LIBRARY_PATH 15523 shlibpath_overrides_runpath=yes 15524 if test "$with_gnu_ld" = yes; then 15525 need_lib_prefix=no 15526 fi 15527 need_version=yes 15528 ;; 15529 15530sysv4 | sysv4.3*) 15531 version_type=linux 15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15533 soname_spec='${libname}${release}${shared_ext}$major' 15534 shlibpath_var=LD_LIBRARY_PATH 15535 case $host_vendor in 15536 sni) 15537 shlibpath_overrides_runpath=no 15538 need_lib_prefix=no 15539 export_dynamic_flag_spec='${wl}-Blargedynsym' 15540 runpath_var=LD_RUN_PATH 15541 ;; 15542 siemens) 15543 need_lib_prefix=no 15544 ;; 15545 motorola) 15546 need_lib_prefix=no 15547 need_version=no 15548 shlibpath_overrides_runpath=no 15549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15550 ;; 15551 esac 15552 ;; 15553 15554sysv4*MP*) 15555 if test -d /usr/nec ;then 15556 version_type=linux 15557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15558 soname_spec='$libname${shared_ext}.$major' 15559 shlibpath_var=LD_LIBRARY_PATH 15560 fi 15561 ;; 15562 15563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15564 version_type=freebsd-elf 15565 need_lib_prefix=no 15566 need_version=no 15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15568 soname_spec='${libname}${release}${shared_ext}$major' 15569 shlibpath_var=LD_LIBRARY_PATH 15570 hardcode_into_libs=yes 15571 if test "$with_gnu_ld" = yes; then 15572 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15573 shlibpath_overrides_runpath=no 15574 else 15575 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15576 shlibpath_overrides_runpath=yes 15577 case $host_os in 15578 sco3.2v5*) 15579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15580 ;; 15581 esac 15582 fi 15583 sys_lib_dlsearch_path_spec='/usr/lib' 15584 ;; 15585 15586uts4*) 15587 version_type=linux 15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15589 soname_spec='${libname}${release}${shared_ext}$major' 15590 shlibpath_var=LD_LIBRARY_PATH 15591 ;; 15592 15593*) 15594 dynamic_linker=no 15595 ;; 15596esac 15597echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15598echo "${ECHO_T}$dynamic_linker" >&6 15599test "$dynamic_linker" = no && can_build_shared=no 15600 15601variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15602if test "$GCC" = yes; then 15603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15604fi 15605 15606echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15607echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15608hardcode_action_F77= 15609if test -n "$hardcode_libdir_flag_spec_F77" || \ 15610 test -n "$runpath_var_F77" || \ 15611 test "X$hardcode_automatic_F77" = "Xyes" ; then 15612 15613 # We can hardcode non-existant directories. 15614 if test "$hardcode_direct_F77" != no && 15615 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15616 # have to relink, otherwise we might link with an installed library 15617 # when we should be linking with a yet-to-be-installed one 15618 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15619 test "$hardcode_minus_L_F77" != no; then 15620 # Linking always hardcodes the temporary library directory. 15621 hardcode_action_F77=relink 15622 else 15623 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15624 hardcode_action_F77=immediate 15625 fi 15626else 15627 # We cannot hardcode anything, or else we can only hardcode existing 15628 # directories. 15629 hardcode_action_F77=unsupported 15630fi 15631echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15632echo "${ECHO_T}$hardcode_action_F77" >&6 15633 15634if test "$hardcode_action_F77" = relink; then 15635 # Fast installation is not supported 15636 enable_fast_install=no 15637elif test "$shlibpath_overrides_runpath" = yes || 15638 test "$enable_shared" = no; then 15639 # Fast installation is not necessary 15640 enable_fast_install=needless 15641fi 15642 15643 15644# The else clause should only fire when bootstrapping the 15645# libtool distribution, otherwise you forgot to ship ltmain.sh 15646# with your package, and you will get complaints that there are 15647# no rules to generate ltmain.sh. 15648if test -f "$ltmain"; then 15649 # See if we are running on zsh, and set the options which allow our commands through 15650 # without removal of \ escapes. 15651 if test -n "${ZSH_VERSION+set}" ; then 15652 setopt NO_GLOB_SUBST 15653 fi 15654 # Now quote all the things that may contain metacharacters while being 15655 # careful not to overquote the AC_SUBSTed values. We take copies of the 15656 # variables and quote the copies for generation of the libtool script. 15657 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15658 SED SHELL STRIP \ 15659 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15660 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15661 deplibs_check_method reload_flag reload_cmds need_locks \ 15662 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15663 lt_cv_sys_global_symbol_to_c_name_address \ 15664 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15665 old_postinstall_cmds old_postuninstall_cmds \ 15666 compiler_F77 \ 15667 CC_F77 \ 15668 LD_F77 \ 15669 lt_prog_compiler_wl_F77 \ 15670 lt_prog_compiler_pic_F77 \ 15671 lt_prog_compiler_static_F77 \ 15672 lt_prog_compiler_no_builtin_flag_F77 \ 15673 export_dynamic_flag_spec_F77 \ 15674 thread_safe_flag_spec_F77 \ 15675 whole_archive_flag_spec_F77 \ 15676 enable_shared_with_static_runtimes_F77 \ 15677 old_archive_cmds_F77 \ 15678 old_archive_from_new_cmds_F77 \ 15679 predep_objects_F77 \ 15680 postdep_objects_F77 \ 15681 predeps_F77 \ 15682 postdeps_F77 \ 15683 compiler_lib_search_path_F77 \ 15684 archive_cmds_F77 \ 15685 archive_expsym_cmds_F77 \ 15686 postinstall_cmds_F77 \ 15687 postuninstall_cmds_F77 \ 15688 old_archive_from_expsyms_cmds_F77 \ 15689 allow_undefined_flag_F77 \ 15690 no_undefined_flag_F77 \ 15691 export_symbols_cmds_F77 \ 15692 hardcode_libdir_flag_spec_F77 \ 15693 hardcode_libdir_flag_spec_ld_F77 \ 15694 hardcode_libdir_separator_F77 \ 15695 hardcode_automatic_F77 \ 15696 module_cmds_F77 \ 15697 module_expsym_cmds_F77 \ 15698 lt_cv_prog_compiler_c_o_F77 \ 15699 exclude_expsyms_F77 \ 15700 include_expsyms_F77; do 15701 15702 case $var in 15703 old_archive_cmds_F77 | \ 15704 old_archive_from_new_cmds_F77 | \ 15705 archive_cmds_F77 | \ 15706 archive_expsym_cmds_F77 | \ 15707 module_cmds_F77 | \ 15708 module_expsym_cmds_F77 | \ 15709 old_archive_from_expsyms_cmds_F77 | \ 15710 export_symbols_cmds_F77 | \ 15711 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15712 postinstall_cmds | postuninstall_cmds | \ 15713 old_postinstall_cmds | old_postuninstall_cmds | \ 15714 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15715 # Double-quote double-evaled strings. 15716 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15717 ;; 15718 *) 15719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15720 ;; 15721 esac 15722 done 15723 15724 case $lt_echo in 15725 *'\$0 --fallback-echo"') 15726 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15727 ;; 15728 esac 15729 15730cfgfile="$ofile" 15731 15732 cat <<__EOF__ >> "$cfgfile" 15733# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15734 15735# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15736 15737# Shell to use when invoking shell scripts. 15738SHELL=$lt_SHELL 15739 15740# Whether or not to build shared libraries. 15741build_libtool_libs=$enable_shared 15742 15743# Whether or not to build static libraries. 15744build_old_libs=$enable_static 15745 15746# Whether or not to add -lc for building shared libraries. 15747build_libtool_need_lc=$archive_cmds_need_lc_F77 15748 15749# Whether or not to disallow shared libs when runtime libs are static 15750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15751 15752# Whether or not to optimize for fast installation. 15753fast_install=$enable_fast_install 15754 15755# The host system. 15756host_alias=$host_alias 15757host=$host 15758host_os=$host_os 15759 15760# The build system. 15761build_alias=$build_alias 15762build=$build 15763build_os=$build_os 15764 15765# An echo program that does not interpret backslashes. 15766echo=$lt_echo 15767 15768# The archiver. 15769AR=$lt_AR 15770AR_FLAGS=$lt_AR_FLAGS 15771 15772# A C compiler. 15773LTCC=$lt_LTCC 15774 15775# LTCC compiler flags. 15776LTCFLAGS=$lt_LTCFLAGS 15777 15778# A language-specific compiler. 15779CC=$lt_compiler_F77 15780 15781# Is the compiler the GNU C compiler? 15782with_gcc=$GCC_F77 15783 15784gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 15785gcc_ver=\`gcc -dumpversion\` 15786 15787# An ERE matcher. 15788EGREP=$lt_EGREP 15789 15790# The linker used to build libraries. 15791LD=$lt_LD_F77 15792 15793# Whether we need hard or soft links. 15794LN_S=$lt_LN_S 15795 15796# A BSD-compatible nm program. 15797NM=$lt_NM 15798 15799# A symbol stripping program 15800STRIP=$lt_STRIP 15801 15802# Used to examine libraries when file_magic_cmd begins "file" 15803MAGIC_CMD=$MAGIC_CMD 15804 15805# Used on cygwin: DLL creation program. 15806DLLTOOL="$DLLTOOL" 15807 15808# Used on cygwin: object dumper. 15809OBJDUMP="$OBJDUMP" 15810 15811# Used on cygwin: assembler. 15812AS="$AS" 15813 15814# The name of the directory that contains temporary libtool files. 15815objdir=$objdir 15816 15817# How to create reloadable object files. 15818reload_flag=$lt_reload_flag 15819reload_cmds=$lt_reload_cmds 15820 15821# How to pass a linker flag through the compiler. 15822wl=$lt_lt_prog_compiler_wl_F77 15823 15824# Object file suffix (normally "o"). 15825objext="$ac_objext" 15826 15827# Old archive suffix (normally "a"). 15828libext="$libext" 15829 15830# Shared library suffix (normally ".so"). 15831shrext_cmds='$shrext_cmds' 15832 15833# Executable file suffix (normally ""). 15834exeext="$exeext" 15835 15836# Additional compiler flags for building library objects. 15837pic_flag=$lt_lt_prog_compiler_pic_F77 15838pic_mode=$pic_mode 15839 15840# What is the maximum length of a command? 15841max_cmd_len=$lt_cv_sys_max_cmd_len 15842 15843# Does compiler simultaneously support -c and -o options? 15844compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15845 15846# Must we lock files when doing compilation? 15847need_locks=$lt_need_locks 15848 15849# Do we need the lib prefix for modules? 15850need_lib_prefix=$need_lib_prefix 15851 15852# Do we need a version for libraries? 15853need_version=$need_version 15854 15855# Whether dlopen is supported. 15856dlopen_support=$enable_dlopen 15857 15858# Whether dlopen of programs is supported. 15859dlopen_self=$enable_dlopen_self 15860 15861# Whether dlopen of statically linked programs is supported. 15862dlopen_self_static=$enable_dlopen_self_static 15863 15864# Compiler flag to prevent dynamic linking. 15865link_static_flag=$lt_lt_prog_compiler_static_F77 15866 15867# Compiler flag to turn off builtin functions. 15868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15869 15870# Compiler flag to allow reflexive dlopens. 15871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15872 15873# Compiler flag to generate shared objects directly from archives. 15874whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15875 15876# Compiler flag to generate thread-safe objects. 15877thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15878 15879# Library versioning type. 15880version_type=$version_type 15881 15882# Format of library name prefix. 15883libname_spec=$lt_libname_spec 15884 15885# List of archive names. First name is the real one, the rest are links. 15886# The last name is the one that the linker finds with -lNAME. 15887library_names_spec=$lt_library_names_spec 15888 15889# The coded name of the library, if different from the real name. 15890soname_spec=$lt_soname_spec 15891 15892# Commands used to build and install an old-style archive. 15893RANLIB=$lt_RANLIB 15894old_archive_cmds=$lt_old_archive_cmds_F77 15895old_postinstall_cmds=$lt_old_postinstall_cmds 15896old_postuninstall_cmds=$lt_old_postuninstall_cmds 15897 15898# Create an old-style archive from a shared archive. 15899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15900 15901# Create a temporary old-style archive to link instead of a shared archive. 15902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15903 15904# Commands used to build and install a shared archive. 15905archive_cmds=$lt_archive_cmds_F77 15906archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15907postinstall_cmds=$lt_postinstall_cmds 15908postuninstall_cmds=$lt_postuninstall_cmds 15909 15910# Commands used to build a loadable module (assumed same as above if empty) 15911module_cmds=$lt_module_cmds_F77 15912module_expsym_cmds=$lt_module_expsym_cmds_F77 15913 15914# Commands to strip libraries. 15915old_striplib=$lt_old_striplib 15916striplib=$lt_striplib 15917 15918# Dependencies to place before the objects being linked to create a 15919# shared library. 15920predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15921 15922# Dependencies to place after the objects being linked to create a 15923# shared library. 15924postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15925 15926# Dependencies to place before the objects being linked to create a 15927# shared library. 15928predeps=$lt_predeps_F77 15929 15930# Dependencies to place after the objects being linked to create a 15931# shared library. 15932postdeps=$lt_postdeps_F77 15933 15934# The library search path used internally by the compiler when linking 15935# a shared library. 15936compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15937 15938# Method to check whether dependent libraries are shared objects. 15939deplibs_check_method=$lt_deplibs_check_method 15940 15941# Command to use when deplibs_check_method == file_magic. 15942file_magic_cmd=$lt_file_magic_cmd 15943 15944# Flag that allows shared libraries with undefined symbols to be built. 15945allow_undefined_flag=$lt_allow_undefined_flag_F77 15946 15947# Flag that forces no undefined symbols. 15948no_undefined_flag=$lt_no_undefined_flag_F77 15949 15950# Commands used to finish a libtool library installation in a directory. 15951finish_cmds=$lt_finish_cmds 15952 15953# Same as above, but a single script fragment to be evaled but not shown. 15954finish_eval=$lt_finish_eval 15955 15956# Take the output of nm and produce a listing of raw symbols and C names. 15957global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15958 15959# Transform the output of nm in a proper C declaration 15960global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15961 15962# Transform the output of nm in a C name address pair 15963global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15964 15965# This is the shared library runtime path variable. 15966runpath_var=$runpath_var 15967 15968# This is the shared library path variable. 15969shlibpath_var=$shlibpath_var 15970 15971# Is shlibpath searched before the hard-coded library search path? 15972shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15973 15974# How to hardcode a shared library path into an executable. 15975hardcode_action=$hardcode_action_F77 15976 15977# Whether we should hardcode library paths into libraries. 15978hardcode_into_libs=$hardcode_into_libs 15979 15980# Flag to hardcode \$libdir into a binary during linking. 15981# This must work even if \$libdir does not exist. 15982hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15983 15984# If ld is used when linking, flag to hardcode \$libdir into 15985# a binary during linking. This must work even if \$libdir does 15986# not exist. 15987hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15988 15989# Whether we need a single -rpath flag with a separated argument. 15990hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15991 15992# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15993# resulting binary. 15994hardcode_direct=$hardcode_direct_F77 15995 15996# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15997# resulting binary. 15998hardcode_minus_L=$hardcode_minus_L_F77 15999 16000# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16001# the resulting binary. 16002hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16003 16004# Set to yes if building a shared library automatically hardcodes DIR into the library 16005# and all subsequent libraries and executables linked against it. 16006hardcode_automatic=$hardcode_automatic_F77 16007 16008# Variables whose values should be saved in libtool wrapper scripts and 16009# restored at relink time. 16010variables_saved_for_relink="$variables_saved_for_relink" 16011 16012# Whether libtool must link a program against all its dependency libraries. 16013link_all_deplibs=$link_all_deplibs_F77 16014 16015# Compile-time system search path for libraries 16016sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 16017 16018# Run-time system search path for libraries 16019sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16020 16021# Fix the shell variable \$srcfile for the compiler. 16022fix_srcfile_path="$fix_srcfile_path_F77" 16023 16024# Set to yes if exported symbols are required. 16025always_export_symbols=$always_export_symbols_F77 16026 16027# The commands to list exported symbols. 16028export_symbols_cmds=$lt_export_symbols_cmds_F77 16029 16030# The commands to extract the exported symbol list from a shared archive. 16031extract_expsyms_cmds=$lt_extract_expsyms_cmds 16032 16033# Symbols that should not be listed in the preloaded symbols. 16034exclude_expsyms=$lt_exclude_expsyms_F77 16035 16036# Symbols that must always be exported. 16037include_expsyms=$lt_include_expsyms_F77 16038 16039# ### END LIBTOOL TAG CONFIG: $tagname 16040 16041__EOF__ 16042 16043 16044else 16045 # If there is no Makefile yet, we rely on a make rule to execute 16046 # `config.status --recheck' to rerun these tests and create the 16047 # libtool script then. 16048 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16049 if test -f "$ltmain_in"; then 16050 test -f Makefile && make "$ltmain" 16051 fi 16052fi 16053 16054 16055ac_ext=c 16056ac_cpp='$CPP $CPPFLAGS' 16057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16059ac_compiler_gnu=$ac_cv_c_compiler_gnu 16060 16061CC="$lt_save_CC" 16062 16063 else 16064 tagname="" 16065 fi 16066 ;; 16067 16068 GCJ) 16069 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16070 16071 16072 16073# Source file extension for Java test sources. 16074ac_ext=java 16075 16076# Object file extension for compiled Java test sources. 16077objext=o 16078objext_GCJ=$objext 16079 16080# Code to be used in simple compile tests 16081lt_simple_compile_test_code="class foo {}\n" 16082 16083# Code to be used in simple link tests 16084lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16085 16086# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16087 16088# If no C compiler was specified, use CC. 16089LTCC=${LTCC-"$CC"} 16090 16091# If no C compiler flags were specified, use CFLAGS. 16092LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16093 16094# Allow CC to be a program name with arguments. 16095compiler=$CC 16096 16097 16098# save warnings/boilerplate of simple test code 16099ac_outfile=conftest.$ac_objext 16100printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16102_lt_compiler_boilerplate=`cat conftest.err` 16103$rm conftest* 16104 16105ac_outfile=conftest.$ac_objext 16106printf "$lt_simple_link_test_code" >conftest.$ac_ext 16107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16108_lt_linker_boilerplate=`cat conftest.err` 16109$rm conftest* 16110 16111 16112# Allow CC to be a program name with arguments. 16113lt_save_CC="$CC" 16114CC=${GCJ-"gcj"} 16115compiler=$CC 16116compiler_GCJ=$CC 16117for cc_temp in $compiler""; do 16118 case $cc_temp in 16119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16121 \-*) ;; 16122 *) break;; 16123 esac 16124done 16125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16126 16127 16128# GCJ did not exist at the time GCC didn't implicitly link libc in. 16129archive_cmds_need_lc_GCJ=no 16130 16131old_archive_cmds_GCJ=$old_archive_cmds 16132 16133 16134lt_prog_compiler_no_builtin_flag_GCJ= 16135 16136if test "$GCC" = yes; then 16137 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16138 16139 16140echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16141echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16142if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16143 echo $ECHO_N "(cached) $ECHO_C" >&6 16144else 16145 lt_cv_prog_compiler_rtti_exceptions=no 16146 ac_outfile=conftest.$ac_objext 16147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16148 lt_compiler_flag="-fno-rtti -fno-exceptions" 16149 # Insert the option either (1) after the last *FLAGS variable, or 16150 # (2) before a word containing "conftest.", or (3) at the end. 16151 # Note that $ac_compile itself does not contain backslashes and begins 16152 # with a dollar sign (not a hyphen), so the echo should work correctly. 16153 # The option is referenced via a variable to avoid confusing sed. 16154 lt_compile=`echo "$ac_compile" | $SED \ 16155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16157 -e 's:$: $lt_compiler_flag:'` 16158 (eval echo "\"\$as_me:16158: $lt_compile\"" >&5) 16159 (eval "$lt_compile" 2>conftest.err) 16160 ac_status=$? 16161 cat conftest.err >&5 16162 echo "$as_me:16162: \$? = $ac_status" >&5 16163 if (exit $ac_status) && test -s "$ac_outfile"; then 16164 # The compiler can only warn and ignore the option if not recognized 16165 # So say no if there are warnings other than the usual output. 16166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16169 lt_cv_prog_compiler_rtti_exceptions=yes 16170 fi 16171 fi 16172 $rm conftest* 16173 16174fi 16175echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16176echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16177 16178if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16179 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16180else 16181 : 16182fi 16183 16184fi 16185 16186lt_prog_compiler_wl_GCJ= 16187lt_prog_compiler_pic_GCJ= 16188lt_prog_compiler_static_GCJ= 16189 16190echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16191echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16192 16193 if test "$GCC" = yes; then 16194 lt_prog_compiler_wl_GCJ='-Wl,' 16195 lt_prog_compiler_static_GCJ='-static' 16196 16197 case $host_os in 16198 aix*) 16199 # All AIX code is PIC. 16200 if test "$host_cpu" = ia64; then 16201 # AIX 5 now supports IA64 processor 16202 lt_prog_compiler_static_GCJ='-Bstatic' 16203 fi 16204 ;; 16205 16206 amigaos*) 16207 # FIXME: we need at least 68020 code to build shared libraries, but 16208 # adding the `-m68020' flag to GCC prevents building anything better, 16209 # like `-m68040'. 16210 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16211 ;; 16212 16213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16214 # PIC is the default for these OSes. 16215 ;; 16216 16217 mingw* | pw32* | os2*) 16218 # This hack is so that the source file can tell whether it is being 16219 # built for inclusion in a dll (and should export symbols for example). 16220 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16221 ;; 16222 16223 darwin* | rhapsody*) 16224 # PIC is the default on this platform 16225 # Common symbols not allowed in MH_DYLIB files 16226 lt_prog_compiler_pic_GCJ='-fno-common' 16227 ;; 16228 16229 interix3*) 16230 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16231 # Instead, we relocate shared libraries at runtime. 16232 ;; 16233 16234 msdosdjgpp*) 16235 # Just because we use GCC doesn't mean we suddenly get shared libraries 16236 # on systems that don't support them. 16237 lt_prog_compiler_can_build_shared_GCJ=no 16238 enable_shared=no 16239 ;; 16240 16241 sysv4*MP*) 16242 if test -d /usr/nec; then 16243 lt_prog_compiler_pic_GCJ=-Kconform_pic 16244 fi 16245 ;; 16246 16247 hpux*) 16248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16249 # not for PA HP-UX. 16250 case $host_cpu in 16251 hppa*64*|ia64*) 16252 # +Z the default 16253 ;; 16254 *) 16255 lt_prog_compiler_pic_GCJ='-fPIC' 16256 ;; 16257 esac 16258 ;; 16259 16260 *) 16261 lt_prog_compiler_pic_GCJ='-fPIC' 16262 ;; 16263 esac 16264 else 16265 # PORTME Check for flag to pass linker flags through the system compiler. 16266 case $host_os in 16267 aix*) 16268 lt_prog_compiler_wl_GCJ='-Wl,' 16269 if test "$host_cpu" = ia64; then 16270 # AIX 5 now supports IA64 processor 16271 lt_prog_compiler_static_GCJ='-Bstatic' 16272 else 16273 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16274 fi 16275 ;; 16276 darwin*) 16277 # PIC is the default on this platform 16278 # Common symbols not allowed in MH_DYLIB files 16279 case $cc_basename in 16280 xlc*) 16281 lt_prog_compiler_pic_GCJ='-qnocommon' 16282 lt_prog_compiler_wl_GCJ='-Wl,' 16283 ;; 16284 esac 16285 ;; 16286 16287 mingw* | pw32* | os2*) 16288 # This hack is so that the source file can tell whether it is being 16289 # built for inclusion in a dll (and should export symbols for example). 16290 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16291 ;; 16292 16293 hpux9* | hpux10* | hpux11*) 16294 lt_prog_compiler_wl_GCJ='-Wl,' 16295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16296 # not for PA HP-UX. 16297 case $host_cpu in 16298 hppa*64*|ia64*) 16299 # +Z the default 16300 ;; 16301 *) 16302 lt_prog_compiler_pic_GCJ='+Z' 16303 ;; 16304 esac 16305 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16306 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16307 ;; 16308 16309 irix5* | irix6* | nonstopux*) 16310 lt_prog_compiler_wl_GCJ='-Wl,' 16311 # PIC (with -KPIC) is the default. 16312 lt_prog_compiler_static_GCJ='-non_shared' 16313 ;; 16314 16315 newsos6) 16316 lt_prog_compiler_pic_GCJ='-KPIC' 16317 lt_prog_compiler_static_GCJ='-Bstatic' 16318 ;; 16319 16320 linux*) 16321 case $cc_basename in 16322 icc* | ecc*) 16323 lt_prog_compiler_wl_GCJ='-Wl,' 16324 lt_prog_compiler_pic_GCJ='-KPIC' 16325 lt_prog_compiler_static_GCJ='-static' 16326 ;; 16327 pgcc* | pgf77* | pgf90* | pgf95*) 16328 # Portland Group compilers (*not* the Pentium gcc compiler, 16329 # which looks to be a dead project) 16330 lt_prog_compiler_wl_GCJ='-Wl,' 16331 lt_prog_compiler_pic_GCJ='-fpic' 16332 lt_prog_compiler_static_GCJ='-Bstatic' 16333 ;; 16334 ccc*) 16335 lt_prog_compiler_wl_GCJ='-Wl,' 16336 # All Alpha code is PIC. 16337 lt_prog_compiler_static_GCJ='-non_shared' 16338 ;; 16339 esac 16340 ;; 16341 16342 osf3* | osf4* | osf5*) 16343 lt_prog_compiler_wl_GCJ='-Wl,' 16344 # All OSF/1 code is PIC. 16345 lt_prog_compiler_static_GCJ='-non_shared' 16346 ;; 16347 16348 solaris*) 16349 lt_prog_compiler_pic_GCJ='-KPIC' 16350 lt_prog_compiler_static_GCJ='-Bstatic' 16351 case $cc_basename in 16352 f77* | f90* | f95*) 16353 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16354 *) 16355 lt_prog_compiler_wl_GCJ='-Wl,';; 16356 esac 16357 ;; 16358 16359 sunos4*) 16360 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16361 lt_prog_compiler_pic_GCJ='-PIC' 16362 lt_prog_compiler_static_GCJ='-Bstatic' 16363 ;; 16364 16365 sysv4 | sysv4.2uw2* | sysv4.3*) 16366 lt_prog_compiler_wl_GCJ='-Wl,' 16367 lt_prog_compiler_pic_GCJ='-KPIC' 16368 lt_prog_compiler_static_GCJ='-Bstatic' 16369 ;; 16370 16371 sysv4*MP*) 16372 if test -d /usr/nec ;then 16373 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16374 lt_prog_compiler_static_GCJ='-Bstatic' 16375 fi 16376 ;; 16377 16378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16379 lt_prog_compiler_wl_GCJ='-Wl,' 16380 lt_prog_compiler_pic_GCJ='-KPIC' 16381 lt_prog_compiler_static_GCJ='-Bstatic' 16382 ;; 16383 16384 unicos*) 16385 lt_prog_compiler_wl_GCJ='-Wl,' 16386 lt_prog_compiler_can_build_shared_GCJ=no 16387 ;; 16388 16389 uts4*) 16390 lt_prog_compiler_pic_GCJ='-pic' 16391 lt_prog_compiler_static_GCJ='-Bstatic' 16392 ;; 16393 16394 *) 16395 lt_prog_compiler_can_build_shared_GCJ=no 16396 ;; 16397 esac 16398 fi 16399 16400echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16401echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16402 16403# 16404# Check to make sure the PIC flag actually works. 16405# 16406if test -n "$lt_prog_compiler_pic_GCJ"; then 16407 16408echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16410if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16411 echo $ECHO_N "(cached) $ECHO_C" >&6 16412else 16413 lt_prog_compiler_pic_works_GCJ=no 16414 ac_outfile=conftest.$ac_objext 16415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16416 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16417 # Insert the option either (1) after the last *FLAGS variable, or 16418 # (2) before a word containing "conftest.", or (3) at the end. 16419 # Note that $ac_compile itself does not contain backslashes and begins 16420 # with a dollar sign (not a hyphen), so the echo should work correctly. 16421 # The option is referenced via a variable to avoid confusing sed. 16422 lt_compile=`echo "$ac_compile" | $SED \ 16423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16425 -e 's:$: $lt_compiler_flag:'` 16426 (eval echo "\"\$as_me:16426: $lt_compile\"" >&5) 16427 (eval "$lt_compile" 2>conftest.err) 16428 ac_status=$? 16429 cat conftest.err >&5 16430 echo "$as_me:16430: \$? = $ac_status" >&5 16431 if (exit $ac_status) && test -s "$ac_outfile"; then 16432 # The compiler can only warn and ignore the option if not recognized 16433 # So say no if there are warnings other than the usual output. 16434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16437 lt_prog_compiler_pic_works_GCJ=yes 16438 fi 16439 fi 16440 $rm conftest* 16441 16442fi 16443echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16444echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16445 16446if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16447 case $lt_prog_compiler_pic_GCJ in 16448 "" | " "*) ;; 16449 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16450 esac 16451else 16452 lt_prog_compiler_pic_GCJ= 16453 lt_prog_compiler_can_build_shared_GCJ=no 16454fi 16455 16456fi 16457case $host_os in 16458 # For platforms which do not support PIC, -DPIC is meaningless: 16459 *djgpp*) 16460 lt_prog_compiler_pic_GCJ= 16461 ;; 16462 *) 16463 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16464 ;; 16465esac 16466 16467# 16468# Check to make sure the static flag actually works. 16469# 16470wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16471echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16472echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16473if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16474 echo $ECHO_N "(cached) $ECHO_C" >&6 16475else 16476 lt_prog_compiler_static_works_GCJ=no 16477 save_LDFLAGS="$LDFLAGS" 16478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16479 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16481 # The linker can only warn and ignore the option if not recognized 16482 # So say no if there are warnings 16483 if test -s conftest.err; then 16484 # Append any errors to the config.log. 16485 cat conftest.err 1>&5 16486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16488 if diff conftest.exp conftest.er2 >/dev/null; then 16489 lt_prog_compiler_static_works_GCJ=yes 16490 fi 16491 else 16492 lt_prog_compiler_static_works_GCJ=yes 16493 fi 16494 fi 16495 $rm conftest* 16496 LDFLAGS="$save_LDFLAGS" 16497 16498fi 16499echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16500echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 16501 16502if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16503 : 16504else 16505 lt_prog_compiler_static_GCJ= 16506fi 16507 16508 16509echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16510echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16511if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16512 echo $ECHO_N "(cached) $ECHO_C" >&6 16513else 16514 lt_cv_prog_compiler_c_o_GCJ=no 16515 $rm -r conftest 2>/dev/null 16516 mkdir conftest 16517 cd conftest 16518 mkdir out 16519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16520 16521 lt_compiler_flag="-o out/conftest2.$ac_objext" 16522 # Insert the option either (1) after the last *FLAGS variable, or 16523 # (2) before a word containing "conftest.", or (3) at the end. 16524 # Note that $ac_compile itself does not contain backslashes and begins 16525 # with a dollar sign (not a hyphen), so the echo should work correctly. 16526 lt_compile=`echo "$ac_compile" | $SED \ 16527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16529 -e 's:$: $lt_compiler_flag:'` 16530 (eval echo "\"\$as_me:16530: $lt_compile\"" >&5) 16531 (eval "$lt_compile" 2>out/conftest.err) 16532 ac_status=$? 16533 cat out/conftest.err >&5 16534 echo "$as_me:16534: \$? = $ac_status" >&5 16535 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16536 then 16537 # The compiler can only warn and ignore the option if not recognized 16538 # So say no if there are warnings 16539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16542 lt_cv_prog_compiler_c_o_GCJ=yes 16543 fi 16544 fi 16545 chmod u+w . 2>&5 16546 $rm conftest* 16547 # SGI C++ compiler will create directory out/ii_files/ for 16548 # template instantiation 16549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16550 $rm out/* && rmdir out 16551 cd .. 16552 rmdir conftest 16553 $rm conftest* 16554 16555fi 16556echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16557echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16558 16559 16560hard_links="nottested" 16561if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16562 # do not overwrite the value of need_locks provided by the user 16563 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16564echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16565 hard_links=yes 16566 $rm conftest* 16567 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16568 touch conftest.a 16569 ln conftest.a conftest.b 2>&5 || hard_links=no 16570 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16571 echo "$as_me:$LINENO: result: $hard_links" >&5 16572echo "${ECHO_T}$hard_links" >&6 16573 if test "$hard_links" = no; then 16574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16575echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16576 need_locks=warn 16577 fi 16578else 16579 need_locks=no 16580fi 16581 16582echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16584 16585 runpath_var= 16586 allow_undefined_flag_GCJ= 16587 enable_shared_with_static_runtimes_GCJ=no 16588 archive_cmds_GCJ= 16589 archive_expsym_cmds_GCJ= 16590 old_archive_From_new_cmds_GCJ= 16591 old_archive_from_expsyms_cmds_GCJ= 16592 export_dynamic_flag_spec_GCJ= 16593 whole_archive_flag_spec_GCJ= 16594 thread_safe_flag_spec_GCJ= 16595 hardcode_libdir_flag_spec_GCJ= 16596 hardcode_libdir_flag_spec_ld_GCJ= 16597 hardcode_libdir_separator_GCJ= 16598 hardcode_direct_GCJ=no 16599 hardcode_minus_L_GCJ=no 16600 hardcode_shlibpath_var_GCJ=unsupported 16601 link_all_deplibs_GCJ=unknown 16602 hardcode_automatic_GCJ=no 16603 module_cmds_GCJ= 16604 module_expsym_cmds_GCJ= 16605 always_export_symbols_GCJ=no 16606 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16607 # include_expsyms should be a list of space-separated symbols to be *always* 16608 # included in the symbol list 16609 include_expsyms_GCJ= 16610 # exclude_expsyms can be an extended regexp of symbols to exclude 16611 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16613 # as well as any symbol that contains `d'. 16614 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16616 # platforms (ab)use it in PIC code, but their linkers get confused if 16617 # the symbol is explicitly referenced. Since portable code cannot 16618 # rely on this symbol name, it's probably fine to never include it in 16619 # preloaded symbol tables. 16620 extract_expsyms_cmds= 16621 # Just being paranoid about ensuring that cc_basename is set. 16622 for cc_temp in $compiler""; do 16623 case $cc_temp in 16624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16626 \-*) ;; 16627 *) break;; 16628 esac 16629done 16630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16631 16632 case $host_os in 16633 cygwin* | mingw* | pw32*) 16634 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16635 # When not using gcc, we currently assume that we are using 16636 # Microsoft Visual C++. 16637 if test "$GCC" != yes; then 16638 with_gnu_ld=no 16639 fi 16640 ;; 16641 interix*) 16642 # we just hope/assume this is gcc and not c89 (= MSVC++) 16643 with_gnu_ld=yes 16644 ;; 16645 openbsd*) 16646 with_gnu_ld=no 16647 ;; 16648 esac 16649 16650 ld_shlibs_GCJ=yes 16651 if test "$with_gnu_ld" = yes; then 16652 # If archive_cmds runs LD, not CC, wlarc should be empty 16653 wlarc='${wl}' 16654 16655 # Set some defaults for GNU ld with shared library support. These 16656 # are reset later if shared libraries are not supported. Putting them 16657 # here allows them to be overridden if necessary. 16658 runpath_var=LD_RUN_PATH 16659 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16660 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16661 # ancient GNU ld didn't support --whole-archive et. al. 16662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16663 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16664 else 16665 whole_archive_flag_spec_GCJ= 16666 fi 16667 supports_anon_versioning=no 16668 case `$LD -v 2>/dev/null` in 16669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16672 *\ 2.11.*) ;; # other 2.11 versions 16673 *) supports_anon_versioning=yes ;; 16674 esac 16675 16676 # See if GNU ld supports shared libraries. 16677 case $host_os in 16678 aix3* | aix4* | aix5*) 16679 # On AIX/PPC, the GNU linker is very broken 16680 if test "$host_cpu" != ia64; then 16681 ld_shlibs_GCJ=no 16682 cat <<EOF 1>&2 16683 16684*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16685*** to be unable to reliably create shared libraries on AIX. 16686*** Therefore, libtool is disabling shared libraries support. If you 16687*** really care for shared libraries, you may want to modify your PATH 16688*** so that a non-GNU linker is found, and then restart. 16689 16690EOF 16691 fi 16692 ;; 16693 16694 amigaos*) 16695 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16696 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16697 hardcode_minus_L_GCJ=yes 16698 16699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16700 # that the semantics of dynamic libraries on AmigaOS, at least up 16701 # to version 4, is to share data among multiple programs linked 16702 # with the same dynamic library. Since this doesn't match the 16703 # behavior of shared libraries on other platforms, we can't use 16704 # them. 16705 ld_shlibs_GCJ=no 16706 ;; 16707 16708 beos*) 16709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16710 allow_undefined_flag_GCJ=unsupported 16711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16712 # support --undefined. This deserves some investigation. FIXME 16713 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16714 else 16715 ld_shlibs_GCJ=no 16716 fi 16717 ;; 16718 16719 cygwin* | mingw* | pw32*) 16720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16721 # as there is no search path for DLLs. 16722 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16723 allow_undefined_flag_GCJ=unsupported 16724 always_export_symbols_GCJ=no 16725 enable_shared_with_static_runtimes_GCJ=yes 16726 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16727 16728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16730 # If the export-symbols file already is a .def file (1st line 16731 # is EXPORTS), use it as is; otherwise, prepend... 16732 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16733 cp $export_symbols $output_objdir/$soname.def; 16734 else 16735 echo EXPORTS > $output_objdir/$soname.def; 16736 cat $export_symbols >> $output_objdir/$soname.def; 16737 fi~ 16738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16739 else 16740 ld_shlibs_GCJ=no 16741 fi 16742 ;; 16743 16744 interix3*) 16745 hardcode_direct_GCJ=no 16746 hardcode_shlibpath_var_GCJ=no 16747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16748 export_dynamic_flag_spec_GCJ='${wl}-E' 16749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16750 # Instead, shared libraries are loaded at an image base (0x10000000 by 16751 # default) and relocated if they conflict, which is a slow very memory 16752 # consuming and fragmenting process. To avoid this, we pick a random, 16753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16754 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16755 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16756 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16757 ;; 16758 16759 linux*) 16760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16761 tmp_addflag= 16762 case $cc_basename,$host_cpu in 16763 pgcc*) # Portland Group C compiler 16764 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16765 tmp_addflag=' $pic_flag' 16766 ;; 16767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16768 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16769 tmp_addflag=' $pic_flag -Mnomain' ;; 16770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16771 tmp_addflag=' -i_dynamic' ;; 16772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16773 tmp_addflag=' -i_dynamic -nofor_main' ;; 16774 ifc* | ifort*) # Intel Fortran compiler 16775 tmp_addflag=' -nofor_main' ;; 16776 esac 16777 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16778 16779 if test $supports_anon_versioning = yes; then 16780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16782 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16784 fi 16785 else 16786 ld_shlibs_GCJ=no 16787 fi 16788 ;; 16789 16790 netbsd*) 16791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16792 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16793 wlarc= 16794 else 16795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16797 fi 16798 ;; 16799 16800 solaris*) 16801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16802 ld_shlibs_GCJ=no 16803 cat <<EOF 1>&2 16804 16805*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16806*** create shared libraries on Solaris systems. Therefore, libtool 16807*** is disabling shared libraries support. We urge you to upgrade GNU 16808*** binutils to release 2.9.1 or newer. Another option is to modify 16809*** your PATH or compiler configuration so that the native linker is 16810*** used, and then restart. 16811 16812EOF 16813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16814 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16815 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16816 else 16817 ld_shlibs_GCJ=no 16818 fi 16819 ;; 16820 16821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16822 case `$LD -v 2>&1` in 16823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16824 ld_shlibs_GCJ=no 16825 cat <<_LT_EOF 1>&2 16826 16827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16828*** reliably create shared libraries on SCO systems. Therefore, libtool 16829*** is disabling shared libraries support. We urge you to upgrade GNU 16830*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16831*** your PATH or compiler configuration so that the native linker is 16832*** used, and then restart. 16833 16834_LT_EOF 16835 ;; 16836 *) 16837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16838 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16841 else 16842 ld_shlibs_GCJ=no 16843 fi 16844 ;; 16845 esac 16846 ;; 16847 16848 sunos4*) 16849 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16850 wlarc= 16851 hardcode_direct_GCJ=yes 16852 hardcode_shlibpath_var_GCJ=no 16853 ;; 16854 16855 *) 16856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16858 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16859 else 16860 ld_shlibs_GCJ=no 16861 fi 16862 ;; 16863 esac 16864 16865 if test "$ld_shlibs_GCJ" = no; then 16866 runpath_var= 16867 hardcode_libdir_flag_spec_GCJ= 16868 export_dynamic_flag_spec_GCJ= 16869 whole_archive_flag_spec_GCJ= 16870 fi 16871 else 16872 # PORTME fill in a description of your system's linker (not GNU ld) 16873 case $host_os in 16874 aix3*) 16875 allow_undefined_flag_GCJ=unsupported 16876 always_export_symbols_GCJ=yes 16877 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16878 # Note: this linker hardcodes the directories in LIBPATH if there 16879 # are no directories specified by -L. 16880 hardcode_minus_L_GCJ=yes 16881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16882 # Neither direct hardcoding nor static linking is supported with a 16883 # broken collect2. 16884 hardcode_direct_GCJ=unsupported 16885 fi 16886 ;; 16887 16888 aix4* | aix5*) 16889 if test "$host_cpu" = ia64; then 16890 # On IA64, the linker does run time linking by default, so we don't 16891 # have to do anything special. 16892 aix_use_runtimelinking=no 16893 exp_sym_flag='-Bexport' 16894 no_entry_flag="" 16895 else 16896 # If we're using GNU nm, then we don't want the "-C" option. 16897 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16899 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16900 else 16901 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16902 fi 16903 aix_use_runtimelinking=no 16904 16905 # Test if we are trying to use run time linking or normal 16906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16907 # need to do runtime linking. 16908 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16909 for ld_flag in $LDFLAGS; do 16910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16911 aix_use_runtimelinking=yes 16912 break 16913 fi 16914 done 16915 ;; 16916 esac 16917 16918 exp_sym_flag='-bexport' 16919 no_entry_flag='-bnoentry' 16920 fi 16921 16922 # When large executables or shared objects are built, AIX ld can 16923 # have problems creating the table of contents. If linking a library 16924 # or program results in "error TOC overflow" add -mminimal-toc to 16925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16927 16928 archive_cmds_GCJ='' 16929 hardcode_direct_GCJ=yes 16930 hardcode_libdir_separator_GCJ=':' 16931 link_all_deplibs_GCJ=yes 16932 16933 if test "$GCC" = yes; then 16934 case $host_os in aix4.[012]|aix4.[012].*) 16935 # We only want to do this on AIX 4.2 and lower, the check 16936 # below for broken collect2 doesn't work under 4.3+ 16937 collect2name=`${CC} -print-prog-name=collect2` 16938 if test -f "$collect2name" && \ 16939 strings "$collect2name" | grep resolve_lib_name >/dev/null 16940 then 16941 # We have reworked collect2 16942 hardcode_direct_GCJ=yes 16943 else 16944 # We have old collect2 16945 hardcode_direct_GCJ=unsupported 16946 # It fails to find uninstalled libraries when the uninstalled 16947 # path is not listed in the libpath. Setting hardcode_minus_L 16948 # to unsupported forces relinking 16949 hardcode_minus_L_GCJ=yes 16950 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16951 hardcode_libdir_separator_GCJ= 16952 fi 16953 ;; 16954 esac 16955 shared_flag='-shared' 16956 if test "$aix_use_runtimelinking" = yes; then 16957 shared_flag="$shared_flag "'${wl}-G' 16958 fi 16959 else 16960 # not using gcc 16961 if test "$host_cpu" = ia64; then 16962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16963 # chokes on -Wl,-G. The following line is correct: 16964 shared_flag='-G' 16965 else 16966 if test "$aix_use_runtimelinking" = yes; then 16967 shared_flag='${wl}-G' 16968 else 16969 shared_flag='${wl}-bM:SRE' 16970 fi 16971 fi 16972 fi 16973 16974 # It seems that -bexpall does not export symbols beginning with 16975 # underscore (_), so it is better to generate a list of symbols to export. 16976 always_export_symbols_GCJ=yes 16977 if test "$aix_use_runtimelinking" = yes; then 16978 # Warning - without using the other runtime loading flags (-brtl), 16979 # -berok will link without error, but may produce a broken library. 16980 allow_undefined_flag_GCJ='-berok' 16981 # Determine the default libpath from the value encoded in an empty executable. 16982 cat >conftest.$ac_ext <<_ACEOF 16983/* confdefs.h. */ 16984_ACEOF 16985cat confdefs.h >>conftest.$ac_ext 16986cat >>conftest.$ac_ext <<_ACEOF 16987/* end confdefs.h. */ 16988 16989int 16990main () 16991{ 16992 16993 ; 16994 return 0; 16995} 16996_ACEOF 16997rm -f conftest.$ac_objext conftest$ac_exeext 16998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16999 (eval $ac_link) 2>conftest.er1 17000 ac_status=$? 17001 grep -v '^ *+' conftest.er1 >conftest.err 17002 rm -f conftest.er1 17003 cat conftest.err >&5 17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17005 (exit $ac_status); } && 17006 { ac_try='test -z "$ac_c_werror_flag" 17007 || test ! -s conftest.err' 17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17009 (eval $ac_try) 2>&5 17010 ac_status=$? 17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17012 (exit $ac_status); }; } && 17013 { ac_try='test -s conftest$ac_exeext' 17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17015 (eval $ac_try) 2>&5 17016 ac_status=$? 17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17018 (exit $ac_status); }; }; then 17019 17020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17021}'` 17022# Check for a 64-bit object if we didn't find anything. 17023if 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; } 17024}'`; fi 17025else 17026 echo "$as_me: failed program was:" >&5 17027sed 's/^/| /' conftest.$ac_ext >&5 17028 17029fi 17030rm -f conftest.err conftest.$ac_objext \ 17031 conftest$ac_exeext conftest.$ac_ext 17032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17033 17034 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17035 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17036 else 17037 if test "$host_cpu" = ia64; then 17038 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17039 allow_undefined_flag_GCJ="-z nodefs" 17040 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 17041 else 17042 # Determine the default libpath from the value encoded in an empty executable. 17043 cat >conftest.$ac_ext <<_ACEOF 17044/* confdefs.h. */ 17045_ACEOF 17046cat confdefs.h >>conftest.$ac_ext 17047cat >>conftest.$ac_ext <<_ACEOF 17048/* end confdefs.h. */ 17049 17050int 17051main () 17052{ 17053 17054 ; 17055 return 0; 17056} 17057_ACEOF 17058rm -f conftest.$ac_objext conftest$ac_exeext 17059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17060 (eval $ac_link) 2>conftest.er1 17061 ac_status=$? 17062 grep -v '^ *+' conftest.er1 >conftest.err 17063 rm -f conftest.er1 17064 cat conftest.err >&5 17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17066 (exit $ac_status); } && 17067 { ac_try='test -z "$ac_c_werror_flag" 17068 || test ! -s conftest.err' 17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17070 (eval $ac_try) 2>&5 17071 ac_status=$? 17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17073 (exit $ac_status); }; } && 17074 { ac_try='test -s conftest$ac_exeext' 17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17076 (eval $ac_try) 2>&5 17077 ac_status=$? 17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17079 (exit $ac_status); }; }; then 17080 17081aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17082}'` 17083# Check for a 64-bit object if we didn't find anything. 17084if 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; } 17085}'`; fi 17086else 17087 echo "$as_me: failed program was:" >&5 17088sed 's/^/| /' conftest.$ac_ext >&5 17089 17090fi 17091rm -f conftest.err conftest.$ac_objext \ 17092 conftest$ac_exeext conftest.$ac_ext 17093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17094 17095 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17096 # Warning - without using the other run time loading flags, 17097 # -berok will link without error, but may produce a broken library. 17098 no_undefined_flag_GCJ=' ${wl}-bernotok' 17099 allow_undefined_flag_GCJ=' ${wl}-berok' 17100 # Exported symbols can be pulled into shared objects from archives 17101 whole_archive_flag_spec_GCJ='$convenience' 17102 archive_cmds_need_lc_GCJ=yes 17103 # This is similar to how AIX traditionally builds its shared libraries. 17104 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17105 fi 17106 fi 17107 ;; 17108 17109 amigaos*) 17110 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17111 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17112 hardcode_minus_L_GCJ=yes 17113 # see comment about different semantics on the GNU ld section 17114 ld_shlibs_GCJ=no 17115 ;; 17116 17117 bsdi[45]*) 17118 export_dynamic_flag_spec_GCJ=-rdynamic 17119 ;; 17120 17121 cygwin* | mingw* | pw32*) 17122 # When not using gcc, we currently assume that we are using 17123 # Microsoft Visual C++. 17124 # hardcode_libdir_flag_spec is actually meaningless, as there is 17125 # no search path for DLLs. 17126 hardcode_libdir_flag_spec_GCJ=' ' 17127 allow_undefined_flag_GCJ=unsupported 17128 # Tell ltmain to make .lib files, not .a files. 17129 libext=lib 17130 # Tell ltmain to make .dll files, not .so files. 17131 shrext_cmds=".dll" 17132 # FIXME: Setting linknames here is a bad hack. 17133 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17134 # The linker will automatically build a .lib file if we build a DLL. 17135 old_archive_From_new_cmds_GCJ='true' 17136 # FIXME: Should let the user specify the lib program. 17137 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17138 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17139 enable_shared_with_static_runtimes_GCJ=yes 17140 ;; 17141 17142 darwin* | rhapsody*) 17143 case $host_os in 17144 rhapsody* | darwin1.[012]) 17145 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17146 ;; 17147 *) # Darwin 1.3 on 17148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17149 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17150 else 17151 case ${MACOSX_DEPLOYMENT_TARGET} in 17152 10.[012]) 17153 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17154 ;; 17155 10.*) 17156 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17157 ;; 17158 esac 17159 fi 17160 ;; 17161 esac 17162 archive_cmds_need_lc_GCJ=no 17163 hardcode_direct_GCJ=no 17164 hardcode_automatic_GCJ=yes 17165 hardcode_shlibpath_var_GCJ=unsupported 17166 whole_archive_flag_spec_GCJ='' 17167 link_all_deplibs_GCJ=yes 17168 if test "$GCC" = yes ; then 17169 output_verbose_link_cmd='echo' 17170 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17171 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17173 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17174 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17175 else 17176 case $cc_basename in 17177 xlc*) 17178 output_verbose_link_cmd='echo' 17179 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17180 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17182 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17183 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17184 ;; 17185 *) 17186 ld_shlibs_GCJ=no 17187 ;; 17188 esac 17189 fi 17190 ;; 17191 17192 dgux*) 17193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17194 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17195 hardcode_shlibpath_var_GCJ=no 17196 ;; 17197 17198 freebsd1*) 17199 ld_shlibs_GCJ=no 17200 ;; 17201 17202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17203 # support. Future versions do this automatically, but an explicit c++rt0.o 17204 # does not break anything, and helps significantly (at the cost of a little 17205 # extra space). 17206 freebsd2.2*) 17207 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17208 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17209 hardcode_direct_GCJ=yes 17210 hardcode_shlibpath_var_GCJ=no 17211 ;; 17212 17213 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17214 freebsd2*) 17215 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17216 hardcode_direct_GCJ=yes 17217 hardcode_minus_L_GCJ=yes 17218 hardcode_shlibpath_var_GCJ=no 17219 ;; 17220 17221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17222 freebsd* | kfreebsd*-gnu | dragonfly*) 17223 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17224 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17225 hardcode_direct_GCJ=yes 17226 hardcode_shlibpath_var_GCJ=no 17227 ;; 17228 17229 hpux9*) 17230 if test "$GCC" = yes; then 17231 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17232 else 17233 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17234 fi 17235 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17236 hardcode_libdir_separator_GCJ=: 17237 hardcode_direct_GCJ=yes 17238 17239 # hardcode_minus_L: Not really in the search PATH, 17240 # but as the default location of the library. 17241 hardcode_minus_L_GCJ=yes 17242 export_dynamic_flag_spec_GCJ='${wl}-E' 17243 ;; 17244 17245 hpux10*) 17246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17247 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17248 else 17249 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17250 fi 17251 if test "$with_gnu_ld" = no; then 17252 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17253 hardcode_libdir_separator_GCJ=: 17254 17255 hardcode_direct_GCJ=yes 17256 export_dynamic_flag_spec_GCJ='${wl}-E' 17257 17258 # hardcode_minus_L: Not really in the search PATH, 17259 # but as the default location of the library. 17260 hardcode_minus_L_GCJ=yes 17261 fi 17262 ;; 17263 17264 hpux11*) 17265 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17266 case $host_cpu in 17267 hppa*64*) 17268 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17269 ;; 17270 ia64*) 17271 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17272 ;; 17273 *) 17274 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17275 ;; 17276 esac 17277 else 17278 case $host_cpu in 17279 hppa*64*) 17280 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17281 ;; 17282 ia64*) 17283 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17284 ;; 17285 *) 17286 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17287 ;; 17288 esac 17289 fi 17290 if test "$with_gnu_ld" = no; then 17291 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17292 hardcode_libdir_separator_GCJ=: 17293 17294 case $host_cpu in 17295 hppa*64*|ia64*) 17296 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17297 hardcode_direct_GCJ=no 17298 hardcode_shlibpath_var_GCJ=no 17299 ;; 17300 *) 17301 hardcode_direct_GCJ=yes 17302 export_dynamic_flag_spec_GCJ='${wl}-E' 17303 17304 # hardcode_minus_L: Not really in the search PATH, 17305 # but as the default location of the library. 17306 hardcode_minus_L_GCJ=yes 17307 ;; 17308 esac 17309 fi 17310 ;; 17311 17312 irix5* | irix6* | nonstopux*) 17313 if test "$GCC" = yes; then 17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17315 else 17316 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17317 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17318 fi 17319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17320 hardcode_libdir_separator_GCJ=: 17321 link_all_deplibs_GCJ=yes 17322 ;; 17323 17324 netbsd*) 17325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17327 else 17328 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17329 fi 17330 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17331 hardcode_direct_GCJ=yes 17332 hardcode_shlibpath_var_GCJ=no 17333 ;; 17334 17335 newsos6) 17336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17337 hardcode_direct_GCJ=yes 17338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17339 hardcode_libdir_separator_GCJ=: 17340 hardcode_shlibpath_var_GCJ=no 17341 ;; 17342 17343 openbsd*) 17344 hardcode_direct_GCJ=yes 17345 hardcode_shlibpath_var_GCJ=no 17346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17348 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17350 export_dynamic_flag_spec_GCJ='${wl}-E' 17351 else 17352 case $host_os in 17353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17355 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17356 ;; 17357 *) 17358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17359 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17360 ;; 17361 esac 17362 fi 17363 ;; 17364 17365 os2*) 17366 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17367 hardcode_minus_L_GCJ=yes 17368 allow_undefined_flag_GCJ=unsupported 17369 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 17370 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17371 ;; 17372 17373 osf3*) 17374 if test "$GCC" = yes; then 17375 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17376 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17377 else 17378 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17379 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17380 fi 17381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17382 hardcode_libdir_separator_GCJ=: 17383 ;; 17384 17385 osf4* | osf5*) # as osf3* with the addition of -msym flag 17386 if test "$GCC" = yes; then 17387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17388 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17390 else 17391 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17392 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17393 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17394 $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' 17395 17396 # Both c and cxx compiler support -rpath directly 17397 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17398 fi 17399 hardcode_libdir_separator_GCJ=: 17400 ;; 17401 17402 solaris*) 17403 no_undefined_flag_GCJ=' -z text' 17404 if test "$GCC" = yes; then 17405 wlarc='${wl}' 17406 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17407 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17408 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17409 else 17410 wlarc='' 17411 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17412 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17413 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17414 fi 17415 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17416 hardcode_shlibpath_var_GCJ=no 17417 case $host_os in 17418 solaris2.[0-5] | solaris2.[0-5].*) ;; 17419 *) 17420 # The compiler driver will combine linker options so we 17421 # cannot just pass the convience library names through 17422 # without $wl, iff we do not link with $LD. 17423 # Luckily, gcc supports the same syntax we need for Sun Studio. 17424 # Supported since Solaris 2.6 (maybe 2.5.1?) 17425 case $wlarc in 17426 '') 17427 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17428 *) 17429 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17430 esac ;; 17431 esac 17432 link_all_deplibs_GCJ=yes 17433 ;; 17434 17435 sunos4*) 17436 if test "x$host_vendor" = xsequent; then 17437 # Use $CC to link under sequent, because it throws in some extra .o 17438 # files that make .init and .fini sections work. 17439 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17440 else 17441 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17442 fi 17443 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17444 hardcode_direct_GCJ=yes 17445 hardcode_minus_L_GCJ=yes 17446 hardcode_shlibpath_var_GCJ=no 17447 ;; 17448 17449 sysv4) 17450 case $host_vendor in 17451 sni) 17452 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17453 hardcode_direct_GCJ=yes # is this really true??? 17454 ;; 17455 siemens) 17456 ## LD is ld it makes a PLAMLIB 17457 ## CC just makes a GrossModule. 17458 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17459 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17460 hardcode_direct_GCJ=no 17461 ;; 17462 motorola) 17463 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17464 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17465 ;; 17466 esac 17467 runpath_var='LD_RUN_PATH' 17468 hardcode_shlibpath_var_GCJ=no 17469 ;; 17470 17471 sysv4.3*) 17472 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17473 hardcode_shlibpath_var_GCJ=no 17474 export_dynamic_flag_spec_GCJ='-Bexport' 17475 ;; 17476 17477 sysv4*MP*) 17478 if test -d /usr/nec; then 17479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17480 hardcode_shlibpath_var_GCJ=no 17481 runpath_var=LD_RUN_PATH 17482 hardcode_runpath_var=yes 17483 ld_shlibs_GCJ=yes 17484 fi 17485 ;; 17486 17487 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17488 no_undefined_flag_GCJ='${wl}-z,text' 17489 archive_cmds_need_lc_GCJ=no 17490 hardcode_shlibpath_var_GCJ=no 17491 runpath_var='LD_RUN_PATH' 17492 17493 if test "$GCC" = yes; then 17494 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17495 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17496 else 17497 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17498 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17499 fi 17500 ;; 17501 17502 sysv5* | sco3.2v5* | sco5v6*) 17503 # Note: We can NOT use -z defs as we might desire, because we do not 17504 # link with -lc, and that would cause any symbols used from libc to 17505 # always be unresolved, which means just about no library would 17506 # ever link correctly. If we're not using GNU ld we use -z text 17507 # though, which does catch some bad symbols but isn't as heavy-handed 17508 # as -z defs. 17509 no_undefined_flag_GCJ='${wl}-z,text' 17510 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17511 archive_cmds_need_lc_GCJ=no 17512 hardcode_shlibpath_var_GCJ=no 17513 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17514 hardcode_libdir_separator_GCJ=':' 17515 link_all_deplibs_GCJ=yes 17516 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17517 runpath_var='LD_RUN_PATH' 17518 17519 if test "$GCC" = yes; then 17520 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17521 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17522 else 17523 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17524 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17525 fi 17526 ;; 17527 17528 uts4*) 17529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17530 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17531 hardcode_shlibpath_var_GCJ=no 17532 ;; 17533 17534 *) 17535 ld_shlibs_GCJ=no 17536 ;; 17537 esac 17538 fi 17539 17540echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17541echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17542test "$ld_shlibs_GCJ" = no && can_build_shared=no 17543 17544# 17545# Do we need to explicitly link libc? 17546# 17547case "x$archive_cmds_need_lc_GCJ" in 17548x|xyes) 17549 # Assume -lc should be added 17550 archive_cmds_need_lc_GCJ=yes 17551 17552 if test "$enable_shared" = yes && test "$GCC" = yes; then 17553 case $archive_cmds_GCJ in 17554 *'~'*) 17555 # FIXME: we may have to deal with multi-command sequences. 17556 ;; 17557 '$CC '*) 17558 # Test whether the compiler implicitly links with -lc since on some 17559 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17560 # to ld, don't add -lc before -lgcc. 17561 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17562echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17563 $rm conftest* 17564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17565 17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17567 (eval $ac_compile) 2>&5 17568 ac_status=$? 17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17570 (exit $ac_status); } 2>conftest.err; then 17571 soname=conftest 17572 lib=conftest 17573 libobjs=conftest.$ac_objext 17574 deplibs= 17575 wl=$lt_prog_compiler_wl_GCJ 17576 pic_flag=$lt_prog_compiler_pic_GCJ 17577 compiler_flags=-v 17578 linker_flags=-v 17579 verstring= 17580 output_objdir=. 17581 libname=conftest 17582 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17583 allow_undefined_flag_GCJ= 17584 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17585 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17586 ac_status=$? 17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17588 (exit $ac_status); } 17589 then 17590 archive_cmds_need_lc_GCJ=no 17591 else 17592 archive_cmds_need_lc_GCJ=yes 17593 fi 17594 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17595 else 17596 cat conftest.err 1>&5 17597 fi 17598 $rm conftest* 17599 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17600echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17601 ;; 17602 esac 17603 fi 17604 ;; 17605esac 17606 17607echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17608echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17609library_names_spec= 17610libname_spec='lib$name' 17611soname_spec= 17612shrext_cmds=".so" 17613postinstall_cmds= 17614postuninstall_cmds= 17615finish_cmds= 17616finish_eval= 17617shlibpath_var= 17618shlibpath_overrides_runpath=unknown 17619version_type=none 17620dynamic_linker="$host_os ld.so" 17621sys_lib_dlsearch_path_spec="/lib /usr/lib" 17622if test "$GCC" = yes; then 17623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17624 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17625 # if the path contains ";" then we assume it to be the separator 17626 # otherwise default to the standard path separator (i.e. ":") - it is 17627 # assumed that no part of a normal pathname contains ";" but that should 17628 # okay in the real world where ";" in dirpaths is itself problematic. 17629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17630 else 17631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17632 fi 17633else 17634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17635fi 17636need_lib_prefix=unknown 17637hardcode_into_libs=no 17638 17639# when you set need_version to no, make sure it does not cause -set_version 17640# flags to be left without arguments 17641need_version=unknown 17642 17643case $host_os in 17644aix3*) 17645 version_type=linux 17646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17647 shlibpath_var=LIBPATH 17648 17649 # AIX 3 has no versioning support, so we append a major version to the name. 17650 soname_spec='${libname}${release}${shared_ext}$major' 17651 ;; 17652 17653aix4* | aix5*) 17654 version_type=linux 17655 need_lib_prefix=no 17656 need_version=no 17657 hardcode_into_libs=yes 17658 if test "$host_cpu" = ia64; then 17659 # AIX 5 supports IA64 17660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17661 shlibpath_var=LD_LIBRARY_PATH 17662 else 17663 # With GCC up to 2.95.x, collect2 would create an import file 17664 # for dependence libraries. The import file would start with 17665 # the line `#! .'. This would cause the generated library to 17666 # depend on `.', always an invalid library. This was fixed in 17667 # development snapshots of GCC prior to 3.0. 17668 case $host_os in 17669 aix4 | aix4.[01] | aix4.[01].*) 17670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17671 echo ' yes ' 17672 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17673 : 17674 else 17675 can_build_shared=no 17676 fi 17677 ;; 17678 esac 17679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17680 # soname into executable. Probably we can add versioning support to 17681 # collect2, so additional links can be useful in future. 17682 if test "$aix_use_runtimelinking" = yes; then 17683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17684 # instead of lib<name>.a to let people know that these are not 17685 # typical AIX shared libraries. 17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17687 else 17688 # We preserve .a as extension for shared libraries through AIX4.2 17689 # and later when we are not doing run time linking. 17690 library_names_spec='${libname}${release}.a $libname.a' 17691 soname_spec='${libname}${release}${shared_ext}$major' 17692 fi 17693 shlibpath_var=LIBPATH 17694 fi 17695 ;; 17696 17697amigaos*) 17698 library_names_spec='$libname.ixlibrary $libname.a' 17699 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17700 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' 17701 ;; 17702 17703beos*) 17704 library_names_spec='${libname}${shared_ext}' 17705 dynamic_linker="$host_os ld.so" 17706 shlibpath_var=LIBRARY_PATH 17707 ;; 17708 17709bsdi[45]*) 17710 version_type=linux 17711 need_version=no 17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17713 soname_spec='${libname}${release}${shared_ext}$major' 17714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17715 shlibpath_var=LD_LIBRARY_PATH 17716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17718 # the default ld.so.conf also contains /usr/contrib/lib and 17719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17720 # libtool to hard-code these into programs 17721 ;; 17722 17723cygwin* | mingw* | pw32*) 17724 version_type=windows 17725 shrext_cmds=".dll" 17726 need_version=no 17727 need_lib_prefix=no 17728 17729 case $GCC,$host_os in 17730 yes,cygwin* | yes,mingw* | yes,pw32*) 17731 library_names_spec='$libname.dll.a' 17732 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17733 postinstall_cmds='base_file=`basename \${file}`~ 17734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17735 dldir=$destdir/`dirname \$dlpath`~ 17736 test -d \$dldir || mkdir -p \$dldir~ 17737 $install_prog $dir/$dlname \$dldir/$dlname~ 17738 chmod a+x \$dldir/$dlname' 17739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17740 dlpath=$dir/\$dldll~ 17741 $rm \$dlpath' 17742 shlibpath_overrides_runpath=yes 17743 17744 case $host_os in 17745 cygwin*) 17746 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17749 ;; 17750 mingw*) 17751 # MinGW DLLs use traditional 'lib' prefix 17752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17754 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17755 # It is most probably a Windows format PATH printed by 17756 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17757 # path with ; separators, and with drive letters. We can handle the 17758 # drive letters (cygwin fileutils understands them), so leave them, 17759 # especially as we might pass files found there to a mingw objdump, 17760 # which wouldn't understand a cygwinified path. Ahh. 17761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17762 else 17763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17764 fi 17765 ;; 17766 pw32*) 17767 # pw32 DLLs use 'pw' prefix rather than 'lib' 17768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17769 ;; 17770 esac 17771 ;; 17772 17773 *) 17774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17775 ;; 17776 esac 17777 dynamic_linker='Win32 ld.exe' 17778 # FIXME: first we should search . and the directory the executable is in 17779 shlibpath_var=PATH 17780 ;; 17781 17782darwin* | rhapsody*) 17783 dynamic_linker="$host_os dyld" 17784 version_type=darwin 17785 need_lib_prefix=no 17786 need_version=no 17787 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17788 soname_spec='${libname}${release}${major}$shared_ext' 17789 shlibpath_overrides_runpath=yes 17790 shlibpath_var=DYLD_LIBRARY_PATH 17791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17792 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17793 if test "$GCC" = yes; then 17794 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"` 17795 else 17796 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17797 fi 17798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17799 ;; 17800 17801dgux*) 17802 version_type=linux 17803 need_lib_prefix=no 17804 need_version=no 17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17806 soname_spec='${libname}${release}${shared_ext}$major' 17807 shlibpath_var=LD_LIBRARY_PATH 17808 ;; 17809 17810freebsd1*) 17811 dynamic_linker=no 17812 ;; 17813 17814kfreebsd*-gnu) 17815 version_type=linux 17816 need_lib_prefix=no 17817 need_version=no 17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17819 soname_spec='${libname}${release}${shared_ext}$major' 17820 shlibpath_var=LD_LIBRARY_PATH 17821 shlibpath_overrides_runpath=no 17822 hardcode_into_libs=yes 17823 dynamic_linker='GNU ld.so' 17824 ;; 17825 17826freebsd* | dragonfly*) 17827 # DragonFly does not have aout. When/if they implement a new 17828 # versioning mechanism, adjust this. 17829 if test -x /usr/bin/objformat; then 17830 objformat=`/usr/bin/objformat` 17831 else 17832 case $host_os in 17833 freebsd[123]*) objformat=aout ;; 17834 *) objformat=elf ;; 17835 esac 17836 fi 17837 version_type=freebsd-$objformat 17838 case $version_type in 17839 freebsd-elf*) 17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17841 need_version=no 17842 need_lib_prefix=no 17843 ;; 17844 freebsd-*) 17845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17846 need_version=yes 17847 ;; 17848 esac 17849 shlibpath_var=LD_LIBRARY_PATH 17850 case $host_os in 17851 freebsd2*) 17852 shlibpath_overrides_runpath=yes 17853 ;; 17854 freebsd3.[01]* | freebsdelf3.[01]*) 17855 shlibpath_overrides_runpath=yes 17856 hardcode_into_libs=yes 17857 ;; 17858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17860 shlibpath_overrides_runpath=no 17861 hardcode_into_libs=yes 17862 ;; 17863 freebsd*) # from 4.6 on 17864 shlibpath_overrides_runpath=yes 17865 hardcode_into_libs=yes 17866 ;; 17867 esac 17868 ;; 17869 17870gnu*) 17871 version_type=linux 17872 need_lib_prefix=no 17873 need_version=no 17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17875 soname_spec='${libname}${release}${shared_ext}$major' 17876 shlibpath_var=LD_LIBRARY_PATH 17877 hardcode_into_libs=yes 17878 ;; 17879 17880hpux9* | hpux10* | hpux11*) 17881 # Give a soname corresponding to the major version so that dld.sl refuses to 17882 # link against other versions. 17883 version_type=sunos 17884 need_lib_prefix=no 17885 need_version=no 17886 case $host_cpu in 17887 ia64*) 17888 shrext_cmds='.so' 17889 hardcode_into_libs=yes 17890 dynamic_linker="$host_os dld.so" 17891 shlibpath_var=LD_LIBRARY_PATH 17892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17894 soname_spec='${libname}${release}${shared_ext}$major' 17895 if test "X$HPUX_IA64_MODE" = X32; then 17896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17897 else 17898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17899 fi 17900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17901 ;; 17902 hppa*64*) 17903 shrext_cmds='.sl' 17904 hardcode_into_libs=yes 17905 dynamic_linker="$host_os dld.sl" 17906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17909 soname_spec='${libname}${release}${shared_ext}$major' 17910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17912 ;; 17913 *) 17914 shrext_cmds='.sl' 17915 dynamic_linker="$host_os dld.sl" 17916 shlibpath_var=SHLIB_PATH 17917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17919 soname_spec='${libname}${release}${shared_ext}$major' 17920 ;; 17921 esac 17922 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17923 postinstall_cmds='chmod 555 $lib' 17924 ;; 17925 17926interix3*) 17927 version_type=linux 17928 need_lib_prefix=no 17929 need_version=no 17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17931 soname_spec='${libname}${release}${shared_ext}$major' 17932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17933 shlibpath_var=LD_LIBRARY_PATH 17934 shlibpath_overrides_runpath=no 17935 hardcode_into_libs=yes 17936 ;; 17937 17938irix5* | irix6* | nonstopux*) 17939 case $host_os in 17940 nonstopux*) version_type=nonstopux ;; 17941 *) 17942 if test "$lt_cv_prog_gnu_ld" = yes; then 17943 version_type=linux 17944 else 17945 version_type=irix 17946 fi ;; 17947 esac 17948 need_lib_prefix=no 17949 need_version=no 17950 soname_spec='${libname}${release}${shared_ext}$major' 17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17952 case $host_os in 17953 irix5* | nonstopux*) 17954 libsuff= shlibsuff= 17955 ;; 17956 *) 17957 case $LD in # libtool.m4 will add one of these switches to LD 17958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17959 libsuff= shlibsuff= libmagic=32-bit;; 17960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17961 libsuff=32 shlibsuff=N32 libmagic=N32;; 17962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17963 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17964 *) libsuff= shlibsuff= libmagic=never-match;; 17965 esac 17966 ;; 17967 esac 17968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17969 shlibpath_overrides_runpath=no 17970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17972 hardcode_into_libs=yes 17973 ;; 17974 17975# No shared lib support for Linux oldld, aout, or coff. 17976linux*oldld* | linux*aout* | linux*coff*) 17977 dynamic_linker=no 17978 ;; 17979 17980# This must be Linux ELF. 17981linux*) 17982 version_type=linux 17983 need_lib_prefix=no 17984 need_version=no 17985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17986 soname_spec='${libname}${release}${shared_ext}$major' 17987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17988 shlibpath_var=LD_LIBRARY_PATH 17989 shlibpath_overrides_runpath=no 17990 # This implies no fast_install, which is unacceptable. 17991 # Some rework will be needed to allow for fast_install 17992 # before this can be enabled. 17993 hardcode_into_libs=yes 17994 17995 # find out which ABI we are using 17996 libsuff= 17997 case "$host_cpu" in 17998 x86_64*|s390x*|powerpc64*) 17999 echo '#line 17999 "configure"' > conftest.$ac_ext 18000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18001 (eval $ac_compile) 2>&5 18002 ac_status=$? 18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18004 (exit $ac_status); }; then 18005 case `/usr/bin/file conftest.$ac_objext` in 18006 *64-bit*) 18007 libsuff=64 18008 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 18009 ;; 18010 esac 18011 fi 18012 rm -rf conftest* 18013 ;; 18014 esac 18015 18016 # Append ld.so.conf contents to the search path 18017 if test -f /etc/ld.so.conf; then 18018 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18019 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 18020 fi 18021 18022 # We used to test for /lib/ld.so.1 and disable shared libraries on 18023 # powerpc, because MkLinux only supported shared libraries with the 18024 # GNU dynamic linker. Since this was broken with cross compilers, 18025 # most powerpc-linux boxes support dynamic linking these days and 18026 # people can always --disable-shared, the test was removed, and we 18027 # assume the GNU/Linux dynamic linker is in use. 18028 dynamic_linker='GNU/Linux ld.so' 18029 ;; 18030 18031knetbsd*-gnu) 18032 version_type=linux 18033 need_lib_prefix=no 18034 need_version=no 18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18036 soname_spec='${libname}${release}${shared_ext}$major' 18037 shlibpath_var=LD_LIBRARY_PATH 18038 shlibpath_overrides_runpath=no 18039 hardcode_into_libs=yes 18040 dynamic_linker='GNU ld.so' 18041 ;; 18042 18043netbsd*) 18044 version_type=sunos 18045 need_lib_prefix=no 18046 need_version=no 18047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18050 dynamic_linker='NetBSD (a.out) ld.so' 18051 else 18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18053 soname_spec='${libname}${release}${shared_ext}$major' 18054 dynamic_linker='NetBSD ld.elf_so' 18055 fi 18056 shlibpath_var=LD_LIBRARY_PATH 18057 shlibpath_overrides_runpath=yes 18058 hardcode_into_libs=yes 18059 ;; 18060 18061newsos6) 18062 version_type=linux 18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18064 shlibpath_var=LD_LIBRARY_PATH 18065 shlibpath_overrides_runpath=yes 18066 ;; 18067 18068nto-qnx*) 18069 version_type=linux 18070 need_lib_prefix=no 18071 need_version=no 18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18073 soname_spec='${libname}${release}${shared_ext}$major' 18074 shlibpath_var=LD_LIBRARY_PATH 18075 shlibpath_overrides_runpath=yes 18076 ;; 18077 18078openbsd*) 18079 version_type=sunos 18080 sys_lib_dlsearch_path_spec="/usr/lib" 18081 need_lib_prefix=no 18082 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18083 case $host_os in 18084 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18085 *) need_version=no ;; 18086 esac 18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18089 shlibpath_var=LD_LIBRARY_PATH 18090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18091 case $host_os in 18092 openbsd2.[89] | openbsd2.[89].*) 18093 shlibpath_overrides_runpath=no 18094 ;; 18095 *) 18096 shlibpath_overrides_runpath=yes 18097 ;; 18098 esac 18099 else 18100 shlibpath_overrides_runpath=yes 18101 fi 18102 ;; 18103 18104os2*) 18105 libname_spec='$name' 18106 shrext_cmds=".dll" 18107 need_lib_prefix=no 18108 library_names_spec='$libname${shared_ext} $libname.a' 18109 dynamic_linker='OS/2 ld.exe' 18110 shlibpath_var=LIBPATH 18111 ;; 18112 18113osf3* | osf4* | osf5*) 18114 version_type=osf 18115 need_lib_prefix=no 18116 need_version=no 18117 soname_spec='${libname}${release}${shared_ext}$major' 18118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18119 shlibpath_var=LD_LIBRARY_PATH 18120 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18121 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18122 ;; 18123 18124solaris*) 18125 version_type=linux 18126 need_lib_prefix=no 18127 need_version=no 18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18129 soname_spec='${libname}${release}${shared_ext}$major' 18130 shlibpath_var=LD_LIBRARY_PATH 18131 shlibpath_overrides_runpath=yes 18132 hardcode_into_libs=yes 18133 # ldd complains unless libraries are executable 18134 postinstall_cmds='chmod +x $lib' 18135 ;; 18136 18137sunos4*) 18138 version_type=sunos 18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18140 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18141 shlibpath_var=LD_LIBRARY_PATH 18142 shlibpath_overrides_runpath=yes 18143 if test "$with_gnu_ld" = yes; then 18144 need_lib_prefix=no 18145 fi 18146 need_version=yes 18147 ;; 18148 18149sysv4 | sysv4.3*) 18150 version_type=linux 18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18152 soname_spec='${libname}${release}${shared_ext}$major' 18153 shlibpath_var=LD_LIBRARY_PATH 18154 case $host_vendor in 18155 sni) 18156 shlibpath_overrides_runpath=no 18157 need_lib_prefix=no 18158 export_dynamic_flag_spec='${wl}-Blargedynsym' 18159 runpath_var=LD_RUN_PATH 18160 ;; 18161 siemens) 18162 need_lib_prefix=no 18163 ;; 18164 motorola) 18165 need_lib_prefix=no 18166 need_version=no 18167 shlibpath_overrides_runpath=no 18168 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18169 ;; 18170 esac 18171 ;; 18172 18173sysv4*MP*) 18174 if test -d /usr/nec ;then 18175 version_type=linux 18176 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18177 soname_spec='$libname${shared_ext}.$major' 18178 shlibpath_var=LD_LIBRARY_PATH 18179 fi 18180 ;; 18181 18182sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18183 version_type=freebsd-elf 18184 need_lib_prefix=no 18185 need_version=no 18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18187 soname_spec='${libname}${release}${shared_ext}$major' 18188 shlibpath_var=LD_LIBRARY_PATH 18189 hardcode_into_libs=yes 18190 if test "$with_gnu_ld" = yes; then 18191 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18192 shlibpath_overrides_runpath=no 18193 else 18194 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18195 shlibpath_overrides_runpath=yes 18196 case $host_os in 18197 sco3.2v5*) 18198 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18199 ;; 18200 esac 18201 fi 18202 sys_lib_dlsearch_path_spec='/usr/lib' 18203 ;; 18204 18205uts4*) 18206 version_type=linux 18207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18208 soname_spec='${libname}${release}${shared_ext}$major' 18209 shlibpath_var=LD_LIBRARY_PATH 18210 ;; 18211 18212*) 18213 dynamic_linker=no 18214 ;; 18215esac 18216echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18217echo "${ECHO_T}$dynamic_linker" >&6 18218test "$dynamic_linker" = no && can_build_shared=no 18219 18220variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18221if test "$GCC" = yes; then 18222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18223fi 18224 18225echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18226echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18227hardcode_action_GCJ= 18228if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18229 test -n "$runpath_var_GCJ" || \ 18230 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18231 18232 # We can hardcode non-existant directories. 18233 if test "$hardcode_direct_GCJ" != no && 18234 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18235 # have to relink, otherwise we might link with an installed library 18236 # when we should be linking with a yet-to-be-installed one 18237 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18238 test "$hardcode_minus_L_GCJ" != no; then 18239 # Linking always hardcodes the temporary library directory. 18240 hardcode_action_GCJ=relink 18241 else 18242 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18243 hardcode_action_GCJ=immediate 18244 fi 18245else 18246 # We cannot hardcode anything, or else we can only hardcode existing 18247 # directories. 18248 hardcode_action_GCJ=unsupported 18249fi 18250echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18251echo "${ECHO_T}$hardcode_action_GCJ" >&6 18252 18253if test "$hardcode_action_GCJ" = relink; then 18254 # Fast installation is not supported 18255 enable_fast_install=no 18256elif test "$shlibpath_overrides_runpath" = yes || 18257 test "$enable_shared" = no; then 18258 # Fast installation is not necessary 18259 enable_fast_install=needless 18260fi 18261 18262 18263# The else clause should only fire when bootstrapping the 18264# libtool distribution, otherwise you forgot to ship ltmain.sh 18265# with your package, and you will get complaints that there are 18266# no rules to generate ltmain.sh. 18267if test -f "$ltmain"; then 18268 # See if we are running on zsh, and set the options which allow our commands through 18269 # without removal of \ escapes. 18270 if test -n "${ZSH_VERSION+set}" ; then 18271 setopt NO_GLOB_SUBST 18272 fi 18273 # Now quote all the things that may contain metacharacters while being 18274 # careful not to overquote the AC_SUBSTed values. We take copies of the 18275 # variables and quote the copies for generation of the libtool script. 18276 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18277 SED SHELL STRIP \ 18278 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18279 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18280 deplibs_check_method reload_flag reload_cmds need_locks \ 18281 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18282 lt_cv_sys_global_symbol_to_c_name_address \ 18283 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18284 old_postinstall_cmds old_postuninstall_cmds \ 18285 compiler_GCJ \ 18286 CC_GCJ \ 18287 LD_GCJ \ 18288 lt_prog_compiler_wl_GCJ \ 18289 lt_prog_compiler_pic_GCJ \ 18290 lt_prog_compiler_static_GCJ \ 18291 lt_prog_compiler_no_builtin_flag_GCJ \ 18292 export_dynamic_flag_spec_GCJ \ 18293 thread_safe_flag_spec_GCJ \ 18294 whole_archive_flag_spec_GCJ \ 18295 enable_shared_with_static_runtimes_GCJ \ 18296 old_archive_cmds_GCJ \ 18297 old_archive_from_new_cmds_GCJ \ 18298 predep_objects_GCJ \ 18299 postdep_objects_GCJ \ 18300 predeps_GCJ \ 18301 postdeps_GCJ \ 18302 compiler_lib_search_path_GCJ \ 18303 archive_cmds_GCJ \ 18304 archive_expsym_cmds_GCJ \ 18305 postinstall_cmds_GCJ \ 18306 postuninstall_cmds_GCJ \ 18307 old_archive_from_expsyms_cmds_GCJ \ 18308 allow_undefined_flag_GCJ \ 18309 no_undefined_flag_GCJ \ 18310 export_symbols_cmds_GCJ \ 18311 hardcode_libdir_flag_spec_GCJ \ 18312 hardcode_libdir_flag_spec_ld_GCJ \ 18313 hardcode_libdir_separator_GCJ \ 18314 hardcode_automatic_GCJ \ 18315 module_cmds_GCJ \ 18316 module_expsym_cmds_GCJ \ 18317 lt_cv_prog_compiler_c_o_GCJ \ 18318 exclude_expsyms_GCJ \ 18319 include_expsyms_GCJ; do 18320 18321 case $var in 18322 old_archive_cmds_GCJ | \ 18323 old_archive_from_new_cmds_GCJ | \ 18324 archive_cmds_GCJ | \ 18325 archive_expsym_cmds_GCJ | \ 18326 module_cmds_GCJ | \ 18327 module_expsym_cmds_GCJ | \ 18328 old_archive_from_expsyms_cmds_GCJ | \ 18329 export_symbols_cmds_GCJ | \ 18330 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18331 postinstall_cmds | postuninstall_cmds | \ 18332 old_postinstall_cmds | old_postuninstall_cmds | \ 18333 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18334 # Double-quote double-evaled strings. 18335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18336 ;; 18337 *) 18338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18339 ;; 18340 esac 18341 done 18342 18343 case $lt_echo in 18344 *'\$0 --fallback-echo"') 18345 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18346 ;; 18347 esac 18348 18349cfgfile="$ofile" 18350 18351 cat <<__EOF__ >> "$cfgfile" 18352# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18353 18354# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18355 18356# Shell to use when invoking shell scripts. 18357SHELL=$lt_SHELL 18358 18359# Whether or not to build shared libraries. 18360build_libtool_libs=$enable_shared 18361 18362# Whether or not to build static libraries. 18363build_old_libs=$enable_static 18364 18365# Whether or not to add -lc for building shared libraries. 18366build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18367 18368# Whether or not to disallow shared libs when runtime libs are static 18369allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18370 18371# Whether or not to optimize for fast installation. 18372fast_install=$enable_fast_install 18373 18374# The host system. 18375host_alias=$host_alias 18376host=$host 18377host_os=$host_os 18378 18379# The build system. 18380build_alias=$build_alias 18381build=$build 18382build_os=$build_os 18383 18384# An echo program that does not interpret backslashes. 18385echo=$lt_echo 18386 18387# The archiver. 18388AR=$lt_AR 18389AR_FLAGS=$lt_AR_FLAGS 18390 18391# A C compiler. 18392LTCC=$lt_LTCC 18393 18394# LTCC compiler flags. 18395LTCFLAGS=$lt_LTCFLAGS 18396 18397# A language-specific compiler. 18398CC=$lt_compiler_GCJ 18399 18400# Is the compiler the GNU C compiler? 18401with_gcc=$GCC_GCJ 18402 18403gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18404gcc_ver=\`gcc -dumpversion\` 18405 18406# An ERE matcher. 18407EGREP=$lt_EGREP 18408 18409# The linker used to build libraries. 18410LD=$lt_LD_GCJ 18411 18412# Whether we need hard or soft links. 18413LN_S=$lt_LN_S 18414 18415# A BSD-compatible nm program. 18416NM=$lt_NM 18417 18418# A symbol stripping program 18419STRIP=$lt_STRIP 18420 18421# Used to examine libraries when file_magic_cmd begins "file" 18422MAGIC_CMD=$MAGIC_CMD 18423 18424# Used on cygwin: DLL creation program. 18425DLLTOOL="$DLLTOOL" 18426 18427# Used on cygwin: object dumper. 18428OBJDUMP="$OBJDUMP" 18429 18430# Used on cygwin: assembler. 18431AS="$AS" 18432 18433# The name of the directory that contains temporary libtool files. 18434objdir=$objdir 18435 18436# How to create reloadable object files. 18437reload_flag=$lt_reload_flag 18438reload_cmds=$lt_reload_cmds 18439 18440# How to pass a linker flag through the compiler. 18441wl=$lt_lt_prog_compiler_wl_GCJ 18442 18443# Object file suffix (normally "o"). 18444objext="$ac_objext" 18445 18446# Old archive suffix (normally "a"). 18447libext="$libext" 18448 18449# Shared library suffix (normally ".so"). 18450shrext_cmds='$shrext_cmds' 18451 18452# Executable file suffix (normally ""). 18453exeext="$exeext" 18454 18455# Additional compiler flags for building library objects. 18456pic_flag=$lt_lt_prog_compiler_pic_GCJ 18457pic_mode=$pic_mode 18458 18459# What is the maximum length of a command? 18460max_cmd_len=$lt_cv_sys_max_cmd_len 18461 18462# Does compiler simultaneously support -c and -o options? 18463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18464 18465# Must we lock files when doing compilation? 18466need_locks=$lt_need_locks 18467 18468# Do we need the lib prefix for modules? 18469need_lib_prefix=$need_lib_prefix 18470 18471# Do we need a version for libraries? 18472need_version=$need_version 18473 18474# Whether dlopen is supported. 18475dlopen_support=$enable_dlopen 18476 18477# Whether dlopen of programs is supported. 18478dlopen_self=$enable_dlopen_self 18479 18480# Whether dlopen of statically linked programs is supported. 18481dlopen_self_static=$enable_dlopen_self_static 18482 18483# Compiler flag to prevent dynamic linking. 18484link_static_flag=$lt_lt_prog_compiler_static_GCJ 18485 18486# Compiler flag to turn off builtin functions. 18487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18488 18489# Compiler flag to allow reflexive dlopens. 18490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18491 18492# Compiler flag to generate shared objects directly from archives. 18493whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18494 18495# Compiler flag to generate thread-safe objects. 18496thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18497 18498# Library versioning type. 18499version_type=$version_type 18500 18501# Format of library name prefix. 18502libname_spec=$lt_libname_spec 18503 18504# List of archive names. First name is the real one, the rest are links. 18505# The last name is the one that the linker finds with -lNAME. 18506library_names_spec=$lt_library_names_spec 18507 18508# The coded name of the library, if different from the real name. 18509soname_spec=$lt_soname_spec 18510 18511# Commands used to build and install an old-style archive. 18512RANLIB=$lt_RANLIB 18513old_archive_cmds=$lt_old_archive_cmds_GCJ 18514old_postinstall_cmds=$lt_old_postinstall_cmds 18515old_postuninstall_cmds=$lt_old_postuninstall_cmds 18516 18517# Create an old-style archive from a shared archive. 18518old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18519 18520# Create a temporary old-style archive to link instead of a shared archive. 18521old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18522 18523# Commands used to build and install a shared archive. 18524archive_cmds=$lt_archive_cmds_GCJ 18525archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18526postinstall_cmds=$lt_postinstall_cmds 18527postuninstall_cmds=$lt_postuninstall_cmds 18528 18529# Commands used to build a loadable module (assumed same as above if empty) 18530module_cmds=$lt_module_cmds_GCJ 18531module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18532 18533# Commands to strip libraries. 18534old_striplib=$lt_old_striplib 18535striplib=$lt_striplib 18536 18537# Dependencies to place before the objects being linked to create a 18538# shared library. 18539predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18540 18541# Dependencies to place after the objects being linked to create a 18542# shared library. 18543postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18544 18545# Dependencies to place before the objects being linked to create a 18546# shared library. 18547predeps=$lt_predeps_GCJ 18548 18549# Dependencies to place after the objects being linked to create a 18550# shared library. 18551postdeps=$lt_postdeps_GCJ 18552 18553# The library search path used internally by the compiler when linking 18554# a shared library. 18555compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18556 18557# Method to check whether dependent libraries are shared objects. 18558deplibs_check_method=$lt_deplibs_check_method 18559 18560# Command to use when deplibs_check_method == file_magic. 18561file_magic_cmd=$lt_file_magic_cmd 18562 18563# Flag that allows shared libraries with undefined symbols to be built. 18564allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18565 18566# Flag that forces no undefined symbols. 18567no_undefined_flag=$lt_no_undefined_flag_GCJ 18568 18569# Commands used to finish a libtool library installation in a directory. 18570finish_cmds=$lt_finish_cmds 18571 18572# Same as above, but a single script fragment to be evaled but not shown. 18573finish_eval=$lt_finish_eval 18574 18575# Take the output of nm and produce a listing of raw symbols and C names. 18576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18577 18578# Transform the output of nm in a proper C declaration 18579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18580 18581# Transform the output of nm in a C name address pair 18582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18583 18584# This is the shared library runtime path variable. 18585runpath_var=$runpath_var 18586 18587# This is the shared library path variable. 18588shlibpath_var=$shlibpath_var 18589 18590# Is shlibpath searched before the hard-coded library search path? 18591shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18592 18593# How to hardcode a shared library path into an executable. 18594hardcode_action=$hardcode_action_GCJ 18595 18596# Whether we should hardcode library paths into libraries. 18597hardcode_into_libs=$hardcode_into_libs 18598 18599# Flag to hardcode \$libdir into a binary during linking. 18600# This must work even if \$libdir does not exist. 18601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18602 18603# If ld is used when linking, flag to hardcode \$libdir into 18604# a binary during linking. This must work even if \$libdir does 18605# not exist. 18606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18607 18608# Whether we need a single -rpath flag with a separated argument. 18609hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18610 18611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18612# resulting binary. 18613hardcode_direct=$hardcode_direct_GCJ 18614 18615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18616# resulting binary. 18617hardcode_minus_L=$hardcode_minus_L_GCJ 18618 18619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18620# the resulting binary. 18621hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18622 18623# Set to yes if building a shared library automatically hardcodes DIR into the library 18624# and all subsequent libraries and executables linked against it. 18625hardcode_automatic=$hardcode_automatic_GCJ 18626 18627# Variables whose values should be saved in libtool wrapper scripts and 18628# restored at relink time. 18629variables_saved_for_relink="$variables_saved_for_relink" 18630 18631# Whether libtool must link a program against all its dependency libraries. 18632link_all_deplibs=$link_all_deplibs_GCJ 18633 18634# Compile-time system search path for libraries 18635sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18636 18637# Run-time system search path for libraries 18638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18639 18640# Fix the shell variable \$srcfile for the compiler. 18641fix_srcfile_path="$fix_srcfile_path_GCJ" 18642 18643# Set to yes if exported symbols are required. 18644always_export_symbols=$always_export_symbols_GCJ 18645 18646# The commands to list exported symbols. 18647export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18648 18649# The commands to extract the exported symbol list from a shared archive. 18650extract_expsyms_cmds=$lt_extract_expsyms_cmds 18651 18652# Symbols that should not be listed in the preloaded symbols. 18653exclude_expsyms=$lt_exclude_expsyms_GCJ 18654 18655# Symbols that must always be exported. 18656include_expsyms=$lt_include_expsyms_GCJ 18657 18658# ### END LIBTOOL TAG CONFIG: $tagname 18659 18660__EOF__ 18661 18662 18663else 18664 # If there is no Makefile yet, we rely on a make rule to execute 18665 # `config.status --recheck' to rerun these tests and create the 18666 # libtool script then. 18667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18668 if test -f "$ltmain_in"; then 18669 test -f Makefile && make "$ltmain" 18670 fi 18671fi 18672 18673 18674ac_ext=c 18675ac_cpp='$CPP $CPPFLAGS' 18676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18678ac_compiler_gnu=$ac_cv_c_compiler_gnu 18679 18680CC="$lt_save_CC" 18681 18682 else 18683 tagname="" 18684 fi 18685 ;; 18686 18687 RC) 18688 18689 18690 18691# Source file extension for RC test sources. 18692ac_ext=rc 18693 18694# Object file extension for compiled RC test sources. 18695objext=o 18696objext_RC=$objext 18697 18698# Code to be used in simple compile tests 18699lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18700 18701# Code to be used in simple link tests 18702lt_simple_link_test_code="$lt_simple_compile_test_code" 18703 18704# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18705 18706# If no C compiler was specified, use CC. 18707LTCC=${LTCC-"$CC"} 18708 18709# If no C compiler flags were specified, use CFLAGS. 18710LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18711 18712# Allow CC to be a program name with arguments. 18713compiler=$CC 18714 18715 18716# save warnings/boilerplate of simple test code 18717ac_outfile=conftest.$ac_objext 18718printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18719eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18720_lt_compiler_boilerplate=`cat conftest.err` 18721$rm conftest* 18722 18723ac_outfile=conftest.$ac_objext 18724printf "$lt_simple_link_test_code" >conftest.$ac_ext 18725eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18726_lt_linker_boilerplate=`cat conftest.err` 18727$rm conftest* 18728 18729 18730# Allow CC to be a program name with arguments. 18731lt_save_CC="$CC" 18732CC=${RC-"windres"} 18733compiler=$CC 18734compiler_RC=$CC 18735for cc_temp in $compiler""; do 18736 case $cc_temp in 18737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18739 \-*) ;; 18740 *) break;; 18741 esac 18742done 18743cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18744 18745lt_cv_prog_compiler_c_o_RC=yes 18746 18747# The else clause should only fire when bootstrapping the 18748# libtool distribution, otherwise you forgot to ship ltmain.sh 18749# with your package, and you will get complaints that there are 18750# no rules to generate ltmain.sh. 18751if test -f "$ltmain"; then 18752 # See if we are running on zsh, and set the options which allow our commands through 18753 # without removal of \ escapes. 18754 if test -n "${ZSH_VERSION+set}" ; then 18755 setopt NO_GLOB_SUBST 18756 fi 18757 # Now quote all the things that may contain metacharacters while being 18758 # careful not to overquote the AC_SUBSTed values. We take copies of the 18759 # variables and quote the copies for generation of the libtool script. 18760 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18761 SED SHELL STRIP \ 18762 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18763 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18764 deplibs_check_method reload_flag reload_cmds need_locks \ 18765 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18766 lt_cv_sys_global_symbol_to_c_name_address \ 18767 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18768 old_postinstall_cmds old_postuninstall_cmds \ 18769 compiler_RC \ 18770 CC_RC \ 18771 LD_RC \ 18772 lt_prog_compiler_wl_RC \ 18773 lt_prog_compiler_pic_RC \ 18774 lt_prog_compiler_static_RC \ 18775 lt_prog_compiler_no_builtin_flag_RC \ 18776 export_dynamic_flag_spec_RC \ 18777 thread_safe_flag_spec_RC \ 18778 whole_archive_flag_spec_RC \ 18779 enable_shared_with_static_runtimes_RC \ 18780 old_archive_cmds_RC \ 18781 old_archive_from_new_cmds_RC \ 18782 predep_objects_RC \ 18783 postdep_objects_RC \ 18784 predeps_RC \ 18785 postdeps_RC \ 18786 compiler_lib_search_path_RC \ 18787 archive_cmds_RC \ 18788 archive_expsym_cmds_RC \ 18789 postinstall_cmds_RC \ 18790 postuninstall_cmds_RC \ 18791 old_archive_from_expsyms_cmds_RC \ 18792 allow_undefined_flag_RC \ 18793 no_undefined_flag_RC \ 18794 export_symbols_cmds_RC \ 18795 hardcode_libdir_flag_spec_RC \ 18796 hardcode_libdir_flag_spec_ld_RC \ 18797 hardcode_libdir_separator_RC \ 18798 hardcode_automatic_RC \ 18799 module_cmds_RC \ 18800 module_expsym_cmds_RC \ 18801 lt_cv_prog_compiler_c_o_RC \ 18802 exclude_expsyms_RC \ 18803 include_expsyms_RC; do 18804 18805 case $var in 18806 old_archive_cmds_RC | \ 18807 old_archive_from_new_cmds_RC | \ 18808 archive_cmds_RC | \ 18809 archive_expsym_cmds_RC | \ 18810 module_cmds_RC | \ 18811 module_expsym_cmds_RC | \ 18812 old_archive_from_expsyms_cmds_RC | \ 18813 export_symbols_cmds_RC | \ 18814 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18815 postinstall_cmds | postuninstall_cmds | \ 18816 old_postinstall_cmds | old_postuninstall_cmds | \ 18817 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18818 # Double-quote double-evaled strings. 18819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18820 ;; 18821 *) 18822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18823 ;; 18824 esac 18825 done 18826 18827 case $lt_echo in 18828 *'\$0 --fallback-echo"') 18829 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18830 ;; 18831 esac 18832 18833cfgfile="$ofile" 18834 18835 cat <<__EOF__ >> "$cfgfile" 18836# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18837 18838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18839 18840# Shell to use when invoking shell scripts. 18841SHELL=$lt_SHELL 18842 18843# Whether or not to build shared libraries. 18844build_libtool_libs=$enable_shared 18845 18846# Whether or not to build static libraries. 18847build_old_libs=$enable_static 18848 18849# Whether or not to add -lc for building shared libraries. 18850build_libtool_need_lc=$archive_cmds_need_lc_RC 18851 18852# Whether or not to disallow shared libs when runtime libs are static 18853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18854 18855# Whether or not to optimize for fast installation. 18856fast_install=$enable_fast_install 18857 18858# The host system. 18859host_alias=$host_alias 18860host=$host 18861host_os=$host_os 18862 18863# The build system. 18864build_alias=$build_alias 18865build=$build 18866build_os=$build_os 18867 18868# An echo program that does not interpret backslashes. 18869echo=$lt_echo 18870 18871# The archiver. 18872AR=$lt_AR 18873AR_FLAGS=$lt_AR_FLAGS 18874 18875# A C compiler. 18876LTCC=$lt_LTCC 18877 18878# LTCC compiler flags. 18879LTCFLAGS=$lt_LTCFLAGS 18880 18881# A language-specific compiler. 18882CC=$lt_compiler_RC 18883 18884# Is the compiler the GNU C compiler? 18885with_gcc=$GCC_RC 18886 18887gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18888gcc_ver=\`gcc -dumpversion\` 18889 18890# An ERE matcher. 18891EGREP=$lt_EGREP 18892 18893# The linker used to build libraries. 18894LD=$lt_LD_RC 18895 18896# Whether we need hard or soft links. 18897LN_S=$lt_LN_S 18898 18899# A BSD-compatible nm program. 18900NM=$lt_NM 18901 18902# A symbol stripping program 18903STRIP=$lt_STRIP 18904 18905# Used to examine libraries when file_magic_cmd begins "file" 18906MAGIC_CMD=$MAGIC_CMD 18907 18908# Used on cygwin: DLL creation program. 18909DLLTOOL="$DLLTOOL" 18910 18911# Used on cygwin: object dumper. 18912OBJDUMP="$OBJDUMP" 18913 18914# Used on cygwin: assembler. 18915AS="$AS" 18916 18917# The name of the directory that contains temporary libtool files. 18918objdir=$objdir 18919 18920# How to create reloadable object files. 18921reload_flag=$lt_reload_flag 18922reload_cmds=$lt_reload_cmds 18923 18924# How to pass a linker flag through the compiler. 18925wl=$lt_lt_prog_compiler_wl_RC 18926 18927# Object file suffix (normally "o"). 18928objext="$ac_objext" 18929 18930# Old archive suffix (normally "a"). 18931libext="$libext" 18932 18933# Shared library suffix (normally ".so"). 18934shrext_cmds='$shrext_cmds' 18935 18936# Executable file suffix (normally ""). 18937exeext="$exeext" 18938 18939# Additional compiler flags for building library objects. 18940pic_flag=$lt_lt_prog_compiler_pic_RC 18941pic_mode=$pic_mode 18942 18943# What is the maximum length of a command? 18944max_cmd_len=$lt_cv_sys_max_cmd_len 18945 18946# Does compiler simultaneously support -c and -o options? 18947compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18948 18949# Must we lock files when doing compilation? 18950need_locks=$lt_need_locks 18951 18952# Do we need the lib prefix for modules? 18953need_lib_prefix=$need_lib_prefix 18954 18955# Do we need a version for libraries? 18956need_version=$need_version 18957 18958# Whether dlopen is supported. 18959dlopen_support=$enable_dlopen 18960 18961# Whether dlopen of programs is supported. 18962dlopen_self=$enable_dlopen_self 18963 18964# Whether dlopen of statically linked programs is supported. 18965dlopen_self_static=$enable_dlopen_self_static 18966 18967# Compiler flag to prevent dynamic linking. 18968link_static_flag=$lt_lt_prog_compiler_static_RC 18969 18970# Compiler flag to turn off builtin functions. 18971no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18972 18973# Compiler flag to allow reflexive dlopens. 18974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18975 18976# Compiler flag to generate shared objects directly from archives. 18977whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18978 18979# Compiler flag to generate thread-safe objects. 18980thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18981 18982# Library versioning type. 18983version_type=$version_type 18984 18985# Format of library name prefix. 18986libname_spec=$lt_libname_spec 18987 18988# List of archive names. First name is the real one, the rest are links. 18989# The last name is the one that the linker finds with -lNAME. 18990library_names_spec=$lt_library_names_spec 18991 18992# The coded name of the library, if different from the real name. 18993soname_spec=$lt_soname_spec 18994 18995# Commands used to build and install an old-style archive. 18996RANLIB=$lt_RANLIB 18997old_archive_cmds=$lt_old_archive_cmds_RC 18998old_postinstall_cmds=$lt_old_postinstall_cmds 18999old_postuninstall_cmds=$lt_old_postuninstall_cmds 19000 19001# Create an old-style archive from a shared archive. 19002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19003 19004# Create a temporary old-style archive to link instead of a shared archive. 19005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19006 19007# Commands used to build and install a shared archive. 19008archive_cmds=$lt_archive_cmds_RC 19009archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19010postinstall_cmds=$lt_postinstall_cmds 19011postuninstall_cmds=$lt_postuninstall_cmds 19012 19013# Commands used to build a loadable module (assumed same as above if empty) 19014module_cmds=$lt_module_cmds_RC 19015module_expsym_cmds=$lt_module_expsym_cmds_RC 19016 19017# Commands to strip libraries. 19018old_striplib=$lt_old_striplib 19019striplib=$lt_striplib 19020 19021# Dependencies to place before the objects being linked to create a 19022# shared library. 19023predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 19024 19025# Dependencies to place after the objects being linked to create a 19026# shared library. 19027postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 19028 19029# Dependencies to place before the objects being linked to create a 19030# shared library. 19031predeps=$lt_predeps_RC 19032 19033# Dependencies to place after the objects being linked to create a 19034# shared library. 19035postdeps=$lt_postdeps_RC 19036 19037# The library search path used internally by the compiler when linking 19038# a shared library. 19039compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 19040 19041# Method to check whether dependent libraries are shared objects. 19042deplibs_check_method=$lt_deplibs_check_method 19043 19044# Command to use when deplibs_check_method == file_magic. 19045file_magic_cmd=$lt_file_magic_cmd 19046 19047# Flag that allows shared libraries with undefined symbols to be built. 19048allow_undefined_flag=$lt_allow_undefined_flag_RC 19049 19050# Flag that forces no undefined symbols. 19051no_undefined_flag=$lt_no_undefined_flag_RC 19052 19053# Commands used to finish a libtool library installation in a directory. 19054finish_cmds=$lt_finish_cmds 19055 19056# Same as above, but a single script fragment to be evaled but not shown. 19057finish_eval=$lt_finish_eval 19058 19059# Take the output of nm and produce a listing of raw symbols and C names. 19060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19061 19062# Transform the output of nm in a proper C declaration 19063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19064 19065# Transform the output of nm in a C name address pair 19066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19067 19068# This is the shared library runtime path variable. 19069runpath_var=$runpath_var 19070 19071# This is the shared library path variable. 19072shlibpath_var=$shlibpath_var 19073 19074# Is shlibpath searched before the hard-coded library search path? 19075shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19076 19077# How to hardcode a shared library path into an executable. 19078hardcode_action=$hardcode_action_RC 19079 19080# Whether we should hardcode library paths into libraries. 19081hardcode_into_libs=$hardcode_into_libs 19082 19083# Flag to hardcode \$libdir into a binary during linking. 19084# This must work even if \$libdir does not exist. 19085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19086 19087# If ld is used when linking, flag to hardcode \$libdir into 19088# a binary during linking. This must work even if \$libdir does 19089# not exist. 19090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19091 19092# Whether we need a single -rpath flag with a separated argument. 19093hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19094 19095# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19096# resulting binary. 19097hardcode_direct=$hardcode_direct_RC 19098 19099# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19100# resulting binary. 19101hardcode_minus_L=$hardcode_minus_L_RC 19102 19103# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19104# the resulting binary. 19105hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19106 19107# Set to yes if building a shared library automatically hardcodes DIR into the library 19108# and all subsequent libraries and executables linked against it. 19109hardcode_automatic=$hardcode_automatic_RC 19110 19111# Variables whose values should be saved in libtool wrapper scripts and 19112# restored at relink time. 19113variables_saved_for_relink="$variables_saved_for_relink" 19114 19115# Whether libtool must link a program against all its dependency libraries. 19116link_all_deplibs=$link_all_deplibs_RC 19117 19118# Compile-time system search path for libraries 19119sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 19120 19121# Run-time system search path for libraries 19122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19123 19124# Fix the shell variable \$srcfile for the compiler. 19125fix_srcfile_path="$fix_srcfile_path_RC" 19126 19127# Set to yes if exported symbols are required. 19128always_export_symbols=$always_export_symbols_RC 19129 19130# The commands to list exported symbols. 19131export_symbols_cmds=$lt_export_symbols_cmds_RC 19132 19133# The commands to extract the exported symbol list from a shared archive. 19134extract_expsyms_cmds=$lt_extract_expsyms_cmds 19135 19136# Symbols that should not be listed in the preloaded symbols. 19137exclude_expsyms=$lt_exclude_expsyms_RC 19138 19139# Symbols that must always be exported. 19140include_expsyms=$lt_include_expsyms_RC 19141 19142# ### END LIBTOOL TAG CONFIG: $tagname 19143 19144__EOF__ 19145 19146 19147else 19148 # If there is no Makefile yet, we rely on a make rule to execute 19149 # `config.status --recheck' to rerun these tests and create the 19150 # libtool script then. 19151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19152 if test -f "$ltmain_in"; then 19153 test -f Makefile && make "$ltmain" 19154 fi 19155fi 19156 19157 19158ac_ext=c 19159ac_cpp='$CPP $CPPFLAGS' 19160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19162ac_compiler_gnu=$ac_cv_c_compiler_gnu 19163 19164CC="$lt_save_CC" 19165 19166 ;; 19167 19168 *) 19169 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19170echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19171 { (exit 1); exit 1; }; } 19172 ;; 19173 esac 19174 19175 # Append the new tag name to the list of available tags. 19176 if test -n "$tagname" ; then 19177 available_tags="$available_tags $tagname" 19178 fi 19179 fi 19180 done 19181 IFS="$lt_save_ifs" 19182 19183 # Now substitute the updated list of available tags. 19184 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19185 mv "${ofile}T" "$ofile" 19186 chmod +x "$ofile" 19187 else 19188 rm -f "${ofile}T" 19189 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19190echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19191 { (exit 1); exit 1; }; } 19192 fi 19193fi 19194 19195 19196 19197# This can be used to rebuild libtool when needed 19198LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19199 19200# Always use our own libtool. 19201LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19202 19203# Prevent multiple expansion 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225# compress spaces in flags 19226CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'` 19227CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'` 19228CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'` 19229 19230if test x$enable_gcov = xyes; then 19231 ## so that config.h changes when you toggle gcov support 19232 19233cat >>confdefs.h <<_ACEOF 19234#define DBUS_GCOV_ENABLED 1 19235_ACEOF 19236 19237 19238 echo "$as_me:$LINENO: checking for gcc 3.3 version of gcov file format" >&5 19239echo $ECHO_N "checking for gcc 3.3 version of gcov file format... $ECHO_C" >&6 19240 have_gcc33_gcov=no 19241 if test "$cross_compiling" = yes; then 19242 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19243See \`config.log' for more details." >&5 19244echo "$as_me: error: cannot run test program while cross compiling 19245See \`config.log' for more details." >&2;} 19246 { (exit 1); exit 1; }; } 19247else 19248 cat >conftest.$ac_ext <<_ACEOF 19249/* confdefs.h. */ 19250_ACEOF 19251cat confdefs.h >>conftest.$ac_ext 19252cat >>conftest.$ac_ext <<_ACEOF 19253/* end confdefs.h. */ 19254 19255int 19256main () 19257{ 19258 if (__GNUC__ >=3 && __GNUC_MINOR__ >= 3) exit (0); else exit (1); 19259 ; 19260 return 0; 19261} 19262_ACEOF 19263rm -f conftest$ac_exeext 19264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19265 (eval $ac_link) 2>&5 19266 ac_status=$? 19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19270 (eval $ac_try) 2>&5 19271 ac_status=$? 19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19273 (exit $ac_status); }; }; then 19274 have_gcc33_gcov=yes 19275else 19276 echo "$as_me: program exited with status $ac_status" >&5 19277echo "$as_me: failed program was:" >&5 19278sed 's/^/| /' conftest.$ac_ext >&5 19279 19280fi 19281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19282fi 19283 if test x$have_gcc33_gcov = xyes ; then 19284 19285cat >>confdefs.h <<_ACEOF 19286#define DBUS_HAVE_GCC33_GCOV 1 19287_ACEOF 19288 19289 fi 19290 echo "$as_me:$LINENO: result: $have_gcc33_gcov" >&5 19291echo "${ECHO_T}$have_gcc33_gcov" >&6 19292fi 19293 19294 19295if test x$enable_gcov = xyes; then 19296 DBUS_GCOV_ENABLED_TRUE= 19297 DBUS_GCOV_ENABLED_FALSE='#' 19298else 19299 DBUS_GCOV_ENABLED_TRUE='#' 19300 DBUS_GCOV_ENABLED_FALSE= 19301fi 19302 19303 19304#### Integer sizes 19305 19306echo "$as_me:$LINENO: checking for char" >&5 19307echo $ECHO_N "checking for char... $ECHO_C" >&6 19308if test "${ac_cv_type_char+set}" = set; then 19309 echo $ECHO_N "(cached) $ECHO_C" >&6 19310else 19311 cat >conftest.$ac_ext <<_ACEOF 19312/* confdefs.h. */ 19313_ACEOF 19314cat confdefs.h >>conftest.$ac_ext 19315cat >>conftest.$ac_ext <<_ACEOF 19316/* end confdefs.h. */ 19317$ac_includes_default 19318int 19319main () 19320{ 19321if ((char *) 0) 19322 return 0; 19323if (sizeof (char)) 19324 return 0; 19325 ; 19326 return 0; 19327} 19328_ACEOF 19329rm -f conftest.$ac_objext 19330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19331 (eval $ac_compile) 2>conftest.er1 19332 ac_status=$? 19333 grep -v '^ *+' conftest.er1 >conftest.err 19334 rm -f conftest.er1 19335 cat conftest.err >&5 19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19337 (exit $ac_status); } && 19338 { ac_try='test -z "$ac_c_werror_flag" 19339 || test ! -s conftest.err' 19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19341 (eval $ac_try) 2>&5 19342 ac_status=$? 19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19344 (exit $ac_status); }; } && 19345 { ac_try='test -s conftest.$ac_objext' 19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19347 (eval $ac_try) 2>&5 19348 ac_status=$? 19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19350 (exit $ac_status); }; }; then 19351 ac_cv_type_char=yes 19352else 19353 echo "$as_me: failed program was:" >&5 19354sed 's/^/| /' conftest.$ac_ext >&5 19355 19356ac_cv_type_char=no 19357fi 19358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19359fi 19360echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 19361echo "${ECHO_T}$ac_cv_type_char" >&6 19362 19363echo "$as_me:$LINENO: checking size of char" >&5 19364echo $ECHO_N "checking size of char... $ECHO_C" >&6 19365if test "${ac_cv_sizeof_char+set}" = set; then 19366 echo $ECHO_N "(cached) $ECHO_C" >&6 19367else 19368 if test "$ac_cv_type_char" = yes; then 19369 # The cast to unsigned long works around a bug in the HP C Compiler 19370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19372 # This bug is HP SR number 8606223364. 19373 if test "$cross_compiling" = yes; then 19374 # Depending upon the size, compute the lo and hi bounds. 19375cat >conftest.$ac_ext <<_ACEOF 19376/* confdefs.h. */ 19377_ACEOF 19378cat confdefs.h >>conftest.$ac_ext 19379cat >>conftest.$ac_ext <<_ACEOF 19380/* end confdefs.h. */ 19381$ac_includes_default 19382int 19383main () 19384{ 19385static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 19386test_array [0] = 0 19387 19388 ; 19389 return 0; 19390} 19391_ACEOF 19392rm -f conftest.$ac_objext 19393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19394 (eval $ac_compile) 2>conftest.er1 19395 ac_status=$? 19396 grep -v '^ *+' conftest.er1 >conftest.err 19397 rm -f conftest.er1 19398 cat conftest.err >&5 19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19400 (exit $ac_status); } && 19401 { ac_try='test -z "$ac_c_werror_flag" 19402 || test ! -s conftest.err' 19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19404 (eval $ac_try) 2>&5 19405 ac_status=$? 19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19407 (exit $ac_status); }; } && 19408 { ac_try='test -s conftest.$ac_objext' 19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19410 (eval $ac_try) 2>&5 19411 ac_status=$? 19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19413 (exit $ac_status); }; }; then 19414 ac_lo=0 ac_mid=0 19415 while :; do 19416 cat >conftest.$ac_ext <<_ACEOF 19417/* confdefs.h. */ 19418_ACEOF 19419cat confdefs.h >>conftest.$ac_ext 19420cat >>conftest.$ac_ext <<_ACEOF 19421/* end confdefs.h. */ 19422$ac_includes_default 19423int 19424main () 19425{ 19426static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 19427test_array [0] = 0 19428 19429 ; 19430 return 0; 19431} 19432_ACEOF 19433rm -f conftest.$ac_objext 19434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19435 (eval $ac_compile) 2>conftest.er1 19436 ac_status=$? 19437 grep -v '^ *+' conftest.er1 >conftest.err 19438 rm -f conftest.er1 19439 cat conftest.err >&5 19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19441 (exit $ac_status); } && 19442 { ac_try='test -z "$ac_c_werror_flag" 19443 || test ! -s conftest.err' 19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19445 (eval $ac_try) 2>&5 19446 ac_status=$? 19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19448 (exit $ac_status); }; } && 19449 { ac_try='test -s conftest.$ac_objext' 19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19451 (eval $ac_try) 2>&5 19452 ac_status=$? 19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19454 (exit $ac_status); }; }; then 19455 ac_hi=$ac_mid; break 19456else 19457 echo "$as_me: failed program was:" >&5 19458sed 's/^/| /' conftest.$ac_ext >&5 19459 19460ac_lo=`expr $ac_mid + 1` 19461 if test $ac_lo -le $ac_mid; then 19462 ac_lo= ac_hi= 19463 break 19464 fi 19465 ac_mid=`expr 2 '*' $ac_mid + 1` 19466fi 19467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19468 done 19469else 19470 echo "$as_me: failed program was:" >&5 19471sed 's/^/| /' conftest.$ac_ext >&5 19472 19473cat >conftest.$ac_ext <<_ACEOF 19474/* confdefs.h. */ 19475_ACEOF 19476cat confdefs.h >>conftest.$ac_ext 19477cat >>conftest.$ac_ext <<_ACEOF 19478/* end confdefs.h. */ 19479$ac_includes_default 19480int 19481main () 19482{ 19483static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 19484test_array [0] = 0 19485 19486 ; 19487 return 0; 19488} 19489_ACEOF 19490rm -f conftest.$ac_objext 19491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19492 (eval $ac_compile) 2>conftest.er1 19493 ac_status=$? 19494 grep -v '^ *+' conftest.er1 >conftest.err 19495 rm -f conftest.er1 19496 cat conftest.err >&5 19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19498 (exit $ac_status); } && 19499 { ac_try='test -z "$ac_c_werror_flag" 19500 || test ! -s conftest.err' 19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19502 (eval $ac_try) 2>&5 19503 ac_status=$? 19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19505 (exit $ac_status); }; } && 19506 { ac_try='test -s conftest.$ac_objext' 19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19508 (eval $ac_try) 2>&5 19509 ac_status=$? 19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19511 (exit $ac_status); }; }; then 19512 ac_hi=-1 ac_mid=-1 19513 while :; do 19514 cat >conftest.$ac_ext <<_ACEOF 19515/* confdefs.h. */ 19516_ACEOF 19517cat confdefs.h >>conftest.$ac_ext 19518cat >>conftest.$ac_ext <<_ACEOF 19519/* end confdefs.h. */ 19520$ac_includes_default 19521int 19522main () 19523{ 19524static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 19525test_array [0] = 0 19526 19527 ; 19528 return 0; 19529} 19530_ACEOF 19531rm -f conftest.$ac_objext 19532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19533 (eval $ac_compile) 2>conftest.er1 19534 ac_status=$? 19535 grep -v '^ *+' conftest.er1 >conftest.err 19536 rm -f conftest.er1 19537 cat conftest.err >&5 19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19539 (exit $ac_status); } && 19540 { ac_try='test -z "$ac_c_werror_flag" 19541 || test ! -s conftest.err' 19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19543 (eval $ac_try) 2>&5 19544 ac_status=$? 19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19546 (exit $ac_status); }; } && 19547 { ac_try='test -s conftest.$ac_objext' 19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19549 (eval $ac_try) 2>&5 19550 ac_status=$? 19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19552 (exit $ac_status); }; }; then 19553 ac_lo=$ac_mid; break 19554else 19555 echo "$as_me: failed program was:" >&5 19556sed 's/^/| /' conftest.$ac_ext >&5 19557 19558ac_hi=`expr '(' $ac_mid ')' - 1` 19559 if test $ac_mid -le $ac_hi; then 19560 ac_lo= ac_hi= 19561 break 19562 fi 19563 ac_mid=`expr 2 '*' $ac_mid` 19564fi 19565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19566 done 19567else 19568 echo "$as_me: failed program was:" >&5 19569sed 's/^/| /' conftest.$ac_ext >&5 19570 19571ac_lo= ac_hi= 19572fi 19573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19574fi 19575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19576# Binary search between lo and hi bounds. 19577while test "x$ac_lo" != "x$ac_hi"; do 19578 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19579 cat >conftest.$ac_ext <<_ACEOF 19580/* confdefs.h. */ 19581_ACEOF 19582cat confdefs.h >>conftest.$ac_ext 19583cat >>conftest.$ac_ext <<_ACEOF 19584/* end confdefs.h. */ 19585$ac_includes_default 19586int 19587main () 19588{ 19589static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 19590test_array [0] = 0 19591 19592 ; 19593 return 0; 19594} 19595_ACEOF 19596rm -f conftest.$ac_objext 19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19598 (eval $ac_compile) 2>conftest.er1 19599 ac_status=$? 19600 grep -v '^ *+' conftest.er1 >conftest.err 19601 rm -f conftest.er1 19602 cat conftest.err >&5 19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19604 (exit $ac_status); } && 19605 { ac_try='test -z "$ac_c_werror_flag" 19606 || test ! -s conftest.err' 19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19608 (eval $ac_try) 2>&5 19609 ac_status=$? 19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19611 (exit $ac_status); }; } && 19612 { ac_try='test -s conftest.$ac_objext' 19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19614 (eval $ac_try) 2>&5 19615 ac_status=$? 19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19617 (exit $ac_status); }; }; then 19618 ac_hi=$ac_mid 19619else 19620 echo "$as_me: failed program was:" >&5 19621sed 's/^/| /' conftest.$ac_ext >&5 19622 19623ac_lo=`expr '(' $ac_mid ')' + 1` 19624fi 19625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19626done 19627case $ac_lo in 19628?*) ac_cv_sizeof_char=$ac_lo;; 19629'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 19630See \`config.log' for more details." >&5 19631echo "$as_me: error: cannot compute sizeof (char), 77 19632See \`config.log' for more details." >&2;} 19633 { (exit 1); exit 1; }; } ;; 19634esac 19635else 19636 if test "$cross_compiling" = yes; then 19637 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19638See \`config.log' for more details." >&5 19639echo "$as_me: error: cannot run test program while cross compiling 19640See \`config.log' for more details." >&2;} 19641 { (exit 1); exit 1; }; } 19642else 19643 cat >conftest.$ac_ext <<_ACEOF 19644/* confdefs.h. */ 19645_ACEOF 19646cat confdefs.h >>conftest.$ac_ext 19647cat >>conftest.$ac_ext <<_ACEOF 19648/* end confdefs.h. */ 19649$ac_includes_default 19650long longval () { return (long) (sizeof (char)); } 19651unsigned long ulongval () { return (long) (sizeof (char)); } 19652#include <stdio.h> 19653#include <stdlib.h> 19654int 19655main () 19656{ 19657 19658 FILE *f = fopen ("conftest.val", "w"); 19659 if (! f) 19660 exit (1); 19661 if (((long) (sizeof (char))) < 0) 19662 { 19663 long i = longval (); 19664 if (i != ((long) (sizeof (char)))) 19665 exit (1); 19666 fprintf (f, "%ld\n", i); 19667 } 19668 else 19669 { 19670 unsigned long i = ulongval (); 19671 if (i != ((long) (sizeof (char)))) 19672 exit (1); 19673 fprintf (f, "%lu\n", i); 19674 } 19675 exit (ferror (f) || fclose (f) != 0); 19676 19677 ; 19678 return 0; 19679} 19680_ACEOF 19681rm -f conftest$ac_exeext 19682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19683 (eval $ac_link) 2>&5 19684 ac_status=$? 19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19688 (eval $ac_try) 2>&5 19689 ac_status=$? 19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19691 (exit $ac_status); }; }; then 19692 ac_cv_sizeof_char=`cat conftest.val` 19693else 19694 echo "$as_me: program exited with status $ac_status" >&5 19695echo "$as_me: failed program was:" >&5 19696sed 's/^/| /' conftest.$ac_ext >&5 19697 19698( exit $ac_status ) 19699{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 19700See \`config.log' for more details." >&5 19701echo "$as_me: error: cannot compute sizeof (char), 77 19702See \`config.log' for more details." >&2;} 19703 { (exit 1); exit 1; }; } 19704fi 19705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19706fi 19707fi 19708rm -f conftest.val 19709else 19710 ac_cv_sizeof_char=0 19711fi 19712fi 19713echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 19714echo "${ECHO_T}$ac_cv_sizeof_char" >&6 19715cat >>confdefs.h <<_ACEOF 19716#define SIZEOF_CHAR $ac_cv_sizeof_char 19717_ACEOF 19718 19719 19720echo "$as_me:$LINENO: checking for short" >&5 19721echo $ECHO_N "checking for short... $ECHO_C" >&6 19722if test "${ac_cv_type_short+set}" = set; then 19723 echo $ECHO_N "(cached) $ECHO_C" >&6 19724else 19725 cat >conftest.$ac_ext <<_ACEOF 19726/* confdefs.h. */ 19727_ACEOF 19728cat confdefs.h >>conftest.$ac_ext 19729cat >>conftest.$ac_ext <<_ACEOF 19730/* end confdefs.h. */ 19731$ac_includes_default 19732int 19733main () 19734{ 19735if ((short *) 0) 19736 return 0; 19737if (sizeof (short)) 19738 return 0; 19739 ; 19740 return 0; 19741} 19742_ACEOF 19743rm -f conftest.$ac_objext 19744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19745 (eval $ac_compile) 2>conftest.er1 19746 ac_status=$? 19747 grep -v '^ *+' conftest.er1 >conftest.err 19748 rm -f conftest.er1 19749 cat conftest.err >&5 19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19751 (exit $ac_status); } && 19752 { ac_try='test -z "$ac_c_werror_flag" 19753 || test ! -s conftest.err' 19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19755 (eval $ac_try) 2>&5 19756 ac_status=$? 19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19758 (exit $ac_status); }; } && 19759 { ac_try='test -s conftest.$ac_objext' 19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19761 (eval $ac_try) 2>&5 19762 ac_status=$? 19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19764 (exit $ac_status); }; }; then 19765 ac_cv_type_short=yes 19766else 19767 echo "$as_me: failed program was:" >&5 19768sed 's/^/| /' conftest.$ac_ext >&5 19769 19770ac_cv_type_short=no 19771fi 19772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19773fi 19774echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 19775echo "${ECHO_T}$ac_cv_type_short" >&6 19776 19777echo "$as_me:$LINENO: checking size of short" >&5 19778echo $ECHO_N "checking size of short... $ECHO_C" >&6 19779if test "${ac_cv_sizeof_short+set}" = set; then 19780 echo $ECHO_N "(cached) $ECHO_C" >&6 19781else 19782 if test "$ac_cv_type_short" = yes; then 19783 # The cast to unsigned long works around a bug in the HP C Compiler 19784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19786 # This bug is HP SR number 8606223364. 19787 if test "$cross_compiling" = yes; then 19788 # Depending upon the size, compute the lo and hi bounds. 19789cat >conftest.$ac_ext <<_ACEOF 19790/* confdefs.h. */ 19791_ACEOF 19792cat confdefs.h >>conftest.$ac_ext 19793cat >>conftest.$ac_ext <<_ACEOF 19794/* end confdefs.h. */ 19795$ac_includes_default 19796int 19797main () 19798{ 19799static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 19800test_array [0] = 0 19801 19802 ; 19803 return 0; 19804} 19805_ACEOF 19806rm -f conftest.$ac_objext 19807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19808 (eval $ac_compile) 2>conftest.er1 19809 ac_status=$? 19810 grep -v '^ *+' conftest.er1 >conftest.err 19811 rm -f conftest.er1 19812 cat conftest.err >&5 19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19814 (exit $ac_status); } && 19815 { ac_try='test -z "$ac_c_werror_flag" 19816 || test ! -s conftest.err' 19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19818 (eval $ac_try) 2>&5 19819 ac_status=$? 19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19821 (exit $ac_status); }; } && 19822 { ac_try='test -s conftest.$ac_objext' 19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19824 (eval $ac_try) 2>&5 19825 ac_status=$? 19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19827 (exit $ac_status); }; }; then 19828 ac_lo=0 ac_mid=0 19829 while :; do 19830 cat >conftest.$ac_ext <<_ACEOF 19831/* confdefs.h. */ 19832_ACEOF 19833cat confdefs.h >>conftest.$ac_ext 19834cat >>conftest.$ac_ext <<_ACEOF 19835/* end confdefs.h. */ 19836$ac_includes_default 19837int 19838main () 19839{ 19840static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 19841test_array [0] = 0 19842 19843 ; 19844 return 0; 19845} 19846_ACEOF 19847rm -f conftest.$ac_objext 19848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19849 (eval $ac_compile) 2>conftest.er1 19850 ac_status=$? 19851 grep -v '^ *+' conftest.er1 >conftest.err 19852 rm -f conftest.er1 19853 cat conftest.err >&5 19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19855 (exit $ac_status); } && 19856 { ac_try='test -z "$ac_c_werror_flag" 19857 || test ! -s conftest.err' 19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19859 (eval $ac_try) 2>&5 19860 ac_status=$? 19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19862 (exit $ac_status); }; } && 19863 { ac_try='test -s conftest.$ac_objext' 19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19865 (eval $ac_try) 2>&5 19866 ac_status=$? 19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19868 (exit $ac_status); }; }; then 19869 ac_hi=$ac_mid; break 19870else 19871 echo "$as_me: failed program was:" >&5 19872sed 's/^/| /' conftest.$ac_ext >&5 19873 19874ac_lo=`expr $ac_mid + 1` 19875 if test $ac_lo -le $ac_mid; then 19876 ac_lo= ac_hi= 19877 break 19878 fi 19879 ac_mid=`expr 2 '*' $ac_mid + 1` 19880fi 19881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19882 done 19883else 19884 echo "$as_me: failed program was:" >&5 19885sed 's/^/| /' conftest.$ac_ext >&5 19886 19887cat >conftest.$ac_ext <<_ACEOF 19888/* confdefs.h. */ 19889_ACEOF 19890cat confdefs.h >>conftest.$ac_ext 19891cat >>conftest.$ac_ext <<_ACEOF 19892/* end confdefs.h. */ 19893$ac_includes_default 19894int 19895main () 19896{ 19897static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 19898test_array [0] = 0 19899 19900 ; 19901 return 0; 19902} 19903_ACEOF 19904rm -f conftest.$ac_objext 19905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19906 (eval $ac_compile) 2>conftest.er1 19907 ac_status=$? 19908 grep -v '^ *+' conftest.er1 >conftest.err 19909 rm -f conftest.er1 19910 cat conftest.err >&5 19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19912 (exit $ac_status); } && 19913 { ac_try='test -z "$ac_c_werror_flag" 19914 || test ! -s conftest.err' 19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19916 (eval $ac_try) 2>&5 19917 ac_status=$? 19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); }; } && 19920 { ac_try='test -s conftest.$ac_objext' 19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19922 (eval $ac_try) 2>&5 19923 ac_status=$? 19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19925 (exit $ac_status); }; }; then 19926 ac_hi=-1 ac_mid=-1 19927 while :; do 19928 cat >conftest.$ac_ext <<_ACEOF 19929/* confdefs.h. */ 19930_ACEOF 19931cat confdefs.h >>conftest.$ac_ext 19932cat >>conftest.$ac_ext <<_ACEOF 19933/* end confdefs.h. */ 19934$ac_includes_default 19935int 19936main () 19937{ 19938static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 19939test_array [0] = 0 19940 19941 ; 19942 return 0; 19943} 19944_ACEOF 19945rm -f conftest.$ac_objext 19946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19947 (eval $ac_compile) 2>conftest.er1 19948 ac_status=$? 19949 grep -v '^ *+' conftest.er1 >conftest.err 19950 rm -f conftest.er1 19951 cat conftest.err >&5 19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19953 (exit $ac_status); } && 19954 { ac_try='test -z "$ac_c_werror_flag" 19955 || test ! -s conftest.err' 19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19957 (eval $ac_try) 2>&5 19958 ac_status=$? 19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19960 (exit $ac_status); }; } && 19961 { ac_try='test -s conftest.$ac_objext' 19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19963 (eval $ac_try) 2>&5 19964 ac_status=$? 19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19966 (exit $ac_status); }; }; then 19967 ac_lo=$ac_mid; break 19968else 19969 echo "$as_me: failed program was:" >&5 19970sed 's/^/| /' conftest.$ac_ext >&5 19971 19972ac_hi=`expr '(' $ac_mid ')' - 1` 19973 if test $ac_mid -le $ac_hi; then 19974 ac_lo= ac_hi= 19975 break 19976 fi 19977 ac_mid=`expr 2 '*' $ac_mid` 19978fi 19979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19980 done 19981else 19982 echo "$as_me: failed program was:" >&5 19983sed 's/^/| /' conftest.$ac_ext >&5 19984 19985ac_lo= ac_hi= 19986fi 19987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19988fi 19989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19990# Binary search between lo and hi bounds. 19991while test "x$ac_lo" != "x$ac_hi"; do 19992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19993 cat >conftest.$ac_ext <<_ACEOF 19994/* confdefs.h. */ 19995_ACEOF 19996cat confdefs.h >>conftest.$ac_ext 19997cat >>conftest.$ac_ext <<_ACEOF 19998/* end confdefs.h. */ 19999$ac_includes_default 20000int 20001main () 20002{ 20003static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 20004test_array [0] = 0 20005 20006 ; 20007 return 0; 20008} 20009_ACEOF 20010rm -f conftest.$ac_objext 20011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20012 (eval $ac_compile) 2>conftest.er1 20013 ac_status=$? 20014 grep -v '^ *+' conftest.er1 >conftest.err 20015 rm -f conftest.er1 20016 cat conftest.err >&5 20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20018 (exit $ac_status); } && 20019 { ac_try='test -z "$ac_c_werror_flag" 20020 || test ! -s conftest.err' 20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20022 (eval $ac_try) 2>&5 20023 ac_status=$? 20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20025 (exit $ac_status); }; } && 20026 { ac_try='test -s conftest.$ac_objext' 20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20028 (eval $ac_try) 2>&5 20029 ac_status=$? 20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20031 (exit $ac_status); }; }; then 20032 ac_hi=$ac_mid 20033else 20034 echo "$as_me: failed program was:" >&5 20035sed 's/^/| /' conftest.$ac_ext >&5 20036 20037ac_lo=`expr '(' $ac_mid ')' + 1` 20038fi 20039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20040done 20041case $ac_lo in 20042?*) ac_cv_sizeof_short=$ac_lo;; 20043'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 20044See \`config.log' for more details." >&5 20045echo "$as_me: error: cannot compute sizeof (short), 77 20046See \`config.log' for more details." >&2;} 20047 { (exit 1); exit 1; }; } ;; 20048esac 20049else 20050 if test "$cross_compiling" = yes; then 20051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20052See \`config.log' for more details." >&5 20053echo "$as_me: error: cannot run test program while cross compiling 20054See \`config.log' for more details." >&2;} 20055 { (exit 1); exit 1; }; } 20056else 20057 cat >conftest.$ac_ext <<_ACEOF 20058/* confdefs.h. */ 20059_ACEOF 20060cat confdefs.h >>conftest.$ac_ext 20061cat >>conftest.$ac_ext <<_ACEOF 20062/* end confdefs.h. */ 20063$ac_includes_default 20064long longval () { return (long) (sizeof (short)); } 20065unsigned long ulongval () { return (long) (sizeof (short)); } 20066#include <stdio.h> 20067#include <stdlib.h> 20068int 20069main () 20070{ 20071 20072 FILE *f = fopen ("conftest.val", "w"); 20073 if (! f) 20074 exit (1); 20075 if (((long) (sizeof (short))) < 0) 20076 { 20077 long i = longval (); 20078 if (i != ((long) (sizeof (short)))) 20079 exit (1); 20080 fprintf (f, "%ld\n", i); 20081 } 20082 else 20083 { 20084 unsigned long i = ulongval (); 20085 if (i != ((long) (sizeof (short)))) 20086 exit (1); 20087 fprintf (f, "%lu\n", i); 20088 } 20089 exit (ferror (f) || fclose (f) != 0); 20090 20091 ; 20092 return 0; 20093} 20094_ACEOF 20095rm -f conftest$ac_exeext 20096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20097 (eval $ac_link) 2>&5 20098 ac_status=$? 20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20102 (eval $ac_try) 2>&5 20103 ac_status=$? 20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20105 (exit $ac_status); }; }; then 20106 ac_cv_sizeof_short=`cat conftest.val` 20107else 20108 echo "$as_me: program exited with status $ac_status" >&5 20109echo "$as_me: failed program was:" >&5 20110sed 's/^/| /' conftest.$ac_ext >&5 20111 20112( exit $ac_status ) 20113{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 20114See \`config.log' for more details." >&5 20115echo "$as_me: error: cannot compute sizeof (short), 77 20116See \`config.log' for more details." >&2;} 20117 { (exit 1); exit 1; }; } 20118fi 20119rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20120fi 20121fi 20122rm -f conftest.val 20123else 20124 ac_cv_sizeof_short=0 20125fi 20126fi 20127echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 20128echo "${ECHO_T}$ac_cv_sizeof_short" >&6 20129cat >>confdefs.h <<_ACEOF 20130#define SIZEOF_SHORT $ac_cv_sizeof_short 20131_ACEOF 20132 20133 20134echo "$as_me:$LINENO: checking for long" >&5 20135echo $ECHO_N "checking for long... $ECHO_C" >&6 20136if test "${ac_cv_type_long+set}" = set; then 20137 echo $ECHO_N "(cached) $ECHO_C" >&6 20138else 20139 cat >conftest.$ac_ext <<_ACEOF 20140/* confdefs.h. */ 20141_ACEOF 20142cat confdefs.h >>conftest.$ac_ext 20143cat >>conftest.$ac_ext <<_ACEOF 20144/* end confdefs.h. */ 20145$ac_includes_default 20146int 20147main () 20148{ 20149if ((long *) 0) 20150 return 0; 20151if (sizeof (long)) 20152 return 0; 20153 ; 20154 return 0; 20155} 20156_ACEOF 20157rm -f conftest.$ac_objext 20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20159 (eval $ac_compile) 2>conftest.er1 20160 ac_status=$? 20161 grep -v '^ *+' conftest.er1 >conftest.err 20162 rm -f conftest.er1 20163 cat conftest.err >&5 20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20165 (exit $ac_status); } && 20166 { ac_try='test -z "$ac_c_werror_flag" 20167 || test ! -s conftest.err' 20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20169 (eval $ac_try) 2>&5 20170 ac_status=$? 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); }; } && 20173 { ac_try='test -s conftest.$ac_objext' 20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20175 (eval $ac_try) 2>&5 20176 ac_status=$? 20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20178 (exit $ac_status); }; }; then 20179 ac_cv_type_long=yes 20180else 20181 echo "$as_me: failed program was:" >&5 20182sed 's/^/| /' conftest.$ac_ext >&5 20183 20184ac_cv_type_long=no 20185fi 20186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20187fi 20188echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 20189echo "${ECHO_T}$ac_cv_type_long" >&6 20190 20191echo "$as_me:$LINENO: checking size of long" >&5 20192echo $ECHO_N "checking size of long... $ECHO_C" >&6 20193if test "${ac_cv_sizeof_long+set}" = set; then 20194 echo $ECHO_N "(cached) $ECHO_C" >&6 20195else 20196 if test "$ac_cv_type_long" = yes; then 20197 # The cast to unsigned long works around a bug in the HP C Compiler 20198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20200 # This bug is HP SR number 8606223364. 20201 if test "$cross_compiling" = yes; then 20202 # Depending upon the size, compute the lo and hi bounds. 20203cat >conftest.$ac_ext <<_ACEOF 20204/* confdefs.h. */ 20205_ACEOF 20206cat confdefs.h >>conftest.$ac_ext 20207cat >>conftest.$ac_ext <<_ACEOF 20208/* end confdefs.h. */ 20209$ac_includes_default 20210int 20211main () 20212{ 20213static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 20214test_array [0] = 0 20215 20216 ; 20217 return 0; 20218} 20219_ACEOF 20220rm -f conftest.$ac_objext 20221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20222 (eval $ac_compile) 2>conftest.er1 20223 ac_status=$? 20224 grep -v '^ *+' conftest.er1 >conftest.err 20225 rm -f conftest.er1 20226 cat conftest.err >&5 20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20228 (exit $ac_status); } && 20229 { ac_try='test -z "$ac_c_werror_flag" 20230 || test ! -s conftest.err' 20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20232 (eval $ac_try) 2>&5 20233 ac_status=$? 20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20235 (exit $ac_status); }; } && 20236 { ac_try='test -s conftest.$ac_objext' 20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20238 (eval $ac_try) 2>&5 20239 ac_status=$? 20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20241 (exit $ac_status); }; }; then 20242 ac_lo=0 ac_mid=0 20243 while :; do 20244 cat >conftest.$ac_ext <<_ACEOF 20245/* confdefs.h. */ 20246_ACEOF 20247cat confdefs.h >>conftest.$ac_ext 20248cat >>conftest.$ac_ext <<_ACEOF 20249/* end confdefs.h. */ 20250$ac_includes_default 20251int 20252main () 20253{ 20254static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 20255test_array [0] = 0 20256 20257 ; 20258 return 0; 20259} 20260_ACEOF 20261rm -f conftest.$ac_objext 20262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20263 (eval $ac_compile) 2>conftest.er1 20264 ac_status=$? 20265 grep -v '^ *+' conftest.er1 >conftest.err 20266 rm -f conftest.er1 20267 cat conftest.err >&5 20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20269 (exit $ac_status); } && 20270 { ac_try='test -z "$ac_c_werror_flag" 20271 || test ! -s conftest.err' 20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20273 (eval $ac_try) 2>&5 20274 ac_status=$? 20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20276 (exit $ac_status); }; } && 20277 { ac_try='test -s conftest.$ac_objext' 20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20279 (eval $ac_try) 2>&5 20280 ac_status=$? 20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20282 (exit $ac_status); }; }; then 20283 ac_hi=$ac_mid; break 20284else 20285 echo "$as_me: failed program was:" >&5 20286sed 's/^/| /' conftest.$ac_ext >&5 20287 20288ac_lo=`expr $ac_mid + 1` 20289 if test $ac_lo -le $ac_mid; then 20290 ac_lo= ac_hi= 20291 break 20292 fi 20293 ac_mid=`expr 2 '*' $ac_mid + 1` 20294fi 20295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20296 done 20297else 20298 echo "$as_me: failed program was:" >&5 20299sed 's/^/| /' conftest.$ac_ext >&5 20300 20301cat >conftest.$ac_ext <<_ACEOF 20302/* confdefs.h. */ 20303_ACEOF 20304cat confdefs.h >>conftest.$ac_ext 20305cat >>conftest.$ac_ext <<_ACEOF 20306/* end confdefs.h. */ 20307$ac_includes_default 20308int 20309main () 20310{ 20311static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 20312test_array [0] = 0 20313 20314 ; 20315 return 0; 20316} 20317_ACEOF 20318rm -f conftest.$ac_objext 20319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20320 (eval $ac_compile) 2>conftest.er1 20321 ac_status=$? 20322 grep -v '^ *+' conftest.er1 >conftest.err 20323 rm -f conftest.er1 20324 cat conftest.err >&5 20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20326 (exit $ac_status); } && 20327 { ac_try='test -z "$ac_c_werror_flag" 20328 || test ! -s conftest.err' 20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20330 (eval $ac_try) 2>&5 20331 ac_status=$? 20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20333 (exit $ac_status); }; } && 20334 { ac_try='test -s conftest.$ac_objext' 20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20336 (eval $ac_try) 2>&5 20337 ac_status=$? 20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20339 (exit $ac_status); }; }; then 20340 ac_hi=-1 ac_mid=-1 20341 while :; do 20342 cat >conftest.$ac_ext <<_ACEOF 20343/* confdefs.h. */ 20344_ACEOF 20345cat confdefs.h >>conftest.$ac_ext 20346cat >>conftest.$ac_ext <<_ACEOF 20347/* end confdefs.h. */ 20348$ac_includes_default 20349int 20350main () 20351{ 20352static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 20353test_array [0] = 0 20354 20355 ; 20356 return 0; 20357} 20358_ACEOF 20359rm -f conftest.$ac_objext 20360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20361 (eval $ac_compile) 2>conftest.er1 20362 ac_status=$? 20363 grep -v '^ *+' conftest.er1 >conftest.err 20364 rm -f conftest.er1 20365 cat conftest.err >&5 20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20367 (exit $ac_status); } && 20368 { ac_try='test -z "$ac_c_werror_flag" 20369 || test ! -s conftest.err' 20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20371 (eval $ac_try) 2>&5 20372 ac_status=$? 20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20374 (exit $ac_status); }; } && 20375 { ac_try='test -s conftest.$ac_objext' 20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20377 (eval $ac_try) 2>&5 20378 ac_status=$? 20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); }; }; then 20381 ac_lo=$ac_mid; break 20382else 20383 echo "$as_me: failed program was:" >&5 20384sed 's/^/| /' conftest.$ac_ext >&5 20385 20386ac_hi=`expr '(' $ac_mid ')' - 1` 20387 if test $ac_mid -le $ac_hi; then 20388 ac_lo= ac_hi= 20389 break 20390 fi 20391 ac_mid=`expr 2 '*' $ac_mid` 20392fi 20393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20394 done 20395else 20396 echo "$as_me: failed program was:" >&5 20397sed 's/^/| /' conftest.$ac_ext >&5 20398 20399ac_lo= ac_hi= 20400fi 20401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20402fi 20403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20404# Binary search between lo and hi bounds. 20405while test "x$ac_lo" != "x$ac_hi"; do 20406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20407 cat >conftest.$ac_ext <<_ACEOF 20408/* confdefs.h. */ 20409_ACEOF 20410cat confdefs.h >>conftest.$ac_ext 20411cat >>conftest.$ac_ext <<_ACEOF 20412/* end confdefs.h. */ 20413$ac_includes_default 20414int 20415main () 20416{ 20417static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 20418test_array [0] = 0 20419 20420 ; 20421 return 0; 20422} 20423_ACEOF 20424rm -f conftest.$ac_objext 20425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20426 (eval $ac_compile) 2>conftest.er1 20427 ac_status=$? 20428 grep -v '^ *+' conftest.er1 >conftest.err 20429 rm -f conftest.er1 20430 cat conftest.err >&5 20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20432 (exit $ac_status); } && 20433 { ac_try='test -z "$ac_c_werror_flag" 20434 || test ! -s conftest.err' 20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20436 (eval $ac_try) 2>&5 20437 ac_status=$? 20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20439 (exit $ac_status); }; } && 20440 { ac_try='test -s conftest.$ac_objext' 20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20442 (eval $ac_try) 2>&5 20443 ac_status=$? 20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20445 (exit $ac_status); }; }; then 20446 ac_hi=$ac_mid 20447else 20448 echo "$as_me: failed program was:" >&5 20449sed 's/^/| /' conftest.$ac_ext >&5 20450 20451ac_lo=`expr '(' $ac_mid ')' + 1` 20452fi 20453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20454done 20455case $ac_lo in 20456?*) ac_cv_sizeof_long=$ac_lo;; 20457'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 20458See \`config.log' for more details." >&5 20459echo "$as_me: error: cannot compute sizeof (long), 77 20460See \`config.log' for more details." >&2;} 20461 { (exit 1); exit 1; }; } ;; 20462esac 20463else 20464 if test "$cross_compiling" = yes; then 20465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20466See \`config.log' for more details." >&5 20467echo "$as_me: error: cannot run test program while cross compiling 20468See \`config.log' for more details." >&2;} 20469 { (exit 1); exit 1; }; } 20470else 20471 cat >conftest.$ac_ext <<_ACEOF 20472/* confdefs.h. */ 20473_ACEOF 20474cat confdefs.h >>conftest.$ac_ext 20475cat >>conftest.$ac_ext <<_ACEOF 20476/* end confdefs.h. */ 20477$ac_includes_default 20478long longval () { return (long) (sizeof (long)); } 20479unsigned long ulongval () { return (long) (sizeof (long)); } 20480#include <stdio.h> 20481#include <stdlib.h> 20482int 20483main () 20484{ 20485 20486 FILE *f = fopen ("conftest.val", "w"); 20487 if (! f) 20488 exit (1); 20489 if (((long) (sizeof (long))) < 0) 20490 { 20491 long i = longval (); 20492 if (i != ((long) (sizeof (long)))) 20493 exit (1); 20494 fprintf (f, "%ld\n", i); 20495 } 20496 else 20497 { 20498 unsigned long i = ulongval (); 20499 if (i != ((long) (sizeof (long)))) 20500 exit (1); 20501 fprintf (f, "%lu\n", i); 20502 } 20503 exit (ferror (f) || fclose (f) != 0); 20504 20505 ; 20506 return 0; 20507} 20508_ACEOF 20509rm -f conftest$ac_exeext 20510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20511 (eval $ac_link) 2>&5 20512 ac_status=$? 20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20516 (eval $ac_try) 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); }; }; then 20520 ac_cv_sizeof_long=`cat conftest.val` 20521else 20522 echo "$as_me: program exited with status $ac_status" >&5 20523echo "$as_me: failed program was:" >&5 20524sed 's/^/| /' conftest.$ac_ext >&5 20525 20526( exit $ac_status ) 20527{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 20528See \`config.log' for more details." >&5 20529echo "$as_me: error: cannot compute sizeof (long), 77 20530See \`config.log' for more details." >&2;} 20531 { (exit 1); exit 1; }; } 20532fi 20533rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20534fi 20535fi 20536rm -f conftest.val 20537else 20538 ac_cv_sizeof_long=0 20539fi 20540fi 20541echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 20542echo "${ECHO_T}$ac_cv_sizeof_long" >&6 20543cat >>confdefs.h <<_ACEOF 20544#define SIZEOF_LONG $ac_cv_sizeof_long 20545_ACEOF 20546 20547 20548echo "$as_me:$LINENO: checking for int" >&5 20549echo $ECHO_N "checking for int... $ECHO_C" >&6 20550if test "${ac_cv_type_int+set}" = set; then 20551 echo $ECHO_N "(cached) $ECHO_C" >&6 20552else 20553 cat >conftest.$ac_ext <<_ACEOF 20554/* confdefs.h. */ 20555_ACEOF 20556cat confdefs.h >>conftest.$ac_ext 20557cat >>conftest.$ac_ext <<_ACEOF 20558/* end confdefs.h. */ 20559$ac_includes_default 20560int 20561main () 20562{ 20563if ((int *) 0) 20564 return 0; 20565if (sizeof (int)) 20566 return 0; 20567 ; 20568 return 0; 20569} 20570_ACEOF 20571rm -f conftest.$ac_objext 20572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20573 (eval $ac_compile) 2>conftest.er1 20574 ac_status=$? 20575 grep -v '^ *+' conftest.er1 >conftest.err 20576 rm -f conftest.er1 20577 cat conftest.err >&5 20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20579 (exit $ac_status); } && 20580 { ac_try='test -z "$ac_c_werror_flag" 20581 || test ! -s conftest.err' 20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20583 (eval $ac_try) 2>&5 20584 ac_status=$? 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); }; } && 20587 { ac_try='test -s conftest.$ac_objext' 20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20589 (eval $ac_try) 2>&5 20590 ac_status=$? 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); }; }; then 20593 ac_cv_type_int=yes 20594else 20595 echo "$as_me: failed program was:" >&5 20596sed 's/^/| /' conftest.$ac_ext >&5 20597 20598ac_cv_type_int=no 20599fi 20600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20601fi 20602echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 20603echo "${ECHO_T}$ac_cv_type_int" >&6 20604 20605echo "$as_me:$LINENO: checking size of int" >&5 20606echo $ECHO_N "checking size of int... $ECHO_C" >&6 20607if test "${ac_cv_sizeof_int+set}" = set; then 20608 echo $ECHO_N "(cached) $ECHO_C" >&6 20609else 20610 if test "$ac_cv_type_int" = yes; then 20611 # The cast to unsigned long works around a bug in the HP C Compiler 20612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20614 # This bug is HP SR number 8606223364. 20615 if test "$cross_compiling" = yes; then 20616 # Depending upon the size, compute the lo and hi bounds. 20617cat >conftest.$ac_ext <<_ACEOF 20618/* confdefs.h. */ 20619_ACEOF 20620cat confdefs.h >>conftest.$ac_ext 20621cat >>conftest.$ac_ext <<_ACEOF 20622/* end confdefs.h. */ 20623$ac_includes_default 20624int 20625main () 20626{ 20627static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 20628test_array [0] = 0 20629 20630 ; 20631 return 0; 20632} 20633_ACEOF 20634rm -f conftest.$ac_objext 20635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20636 (eval $ac_compile) 2>conftest.er1 20637 ac_status=$? 20638 grep -v '^ *+' conftest.er1 >conftest.err 20639 rm -f conftest.er1 20640 cat conftest.err >&5 20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20642 (exit $ac_status); } && 20643 { ac_try='test -z "$ac_c_werror_flag" 20644 || test ! -s conftest.err' 20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20646 (eval $ac_try) 2>&5 20647 ac_status=$? 20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20649 (exit $ac_status); }; } && 20650 { ac_try='test -s conftest.$ac_objext' 20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20652 (eval $ac_try) 2>&5 20653 ac_status=$? 20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20655 (exit $ac_status); }; }; then 20656 ac_lo=0 ac_mid=0 20657 while :; do 20658 cat >conftest.$ac_ext <<_ACEOF 20659/* confdefs.h. */ 20660_ACEOF 20661cat confdefs.h >>conftest.$ac_ext 20662cat >>conftest.$ac_ext <<_ACEOF 20663/* end confdefs.h. */ 20664$ac_includes_default 20665int 20666main () 20667{ 20668static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 20669test_array [0] = 0 20670 20671 ; 20672 return 0; 20673} 20674_ACEOF 20675rm -f conftest.$ac_objext 20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20677 (eval $ac_compile) 2>conftest.er1 20678 ac_status=$? 20679 grep -v '^ *+' conftest.er1 >conftest.err 20680 rm -f conftest.er1 20681 cat conftest.err >&5 20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20683 (exit $ac_status); } && 20684 { ac_try='test -z "$ac_c_werror_flag" 20685 || test ! -s conftest.err' 20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20687 (eval $ac_try) 2>&5 20688 ac_status=$? 20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20690 (exit $ac_status); }; } && 20691 { ac_try='test -s conftest.$ac_objext' 20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20693 (eval $ac_try) 2>&5 20694 ac_status=$? 20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20696 (exit $ac_status); }; }; then 20697 ac_hi=$ac_mid; break 20698else 20699 echo "$as_me: failed program was:" >&5 20700sed 's/^/| /' conftest.$ac_ext >&5 20701 20702ac_lo=`expr $ac_mid + 1` 20703 if test $ac_lo -le $ac_mid; then 20704 ac_lo= ac_hi= 20705 break 20706 fi 20707 ac_mid=`expr 2 '*' $ac_mid + 1` 20708fi 20709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20710 done 20711else 20712 echo "$as_me: failed program was:" >&5 20713sed 's/^/| /' conftest.$ac_ext >&5 20714 20715cat >conftest.$ac_ext <<_ACEOF 20716/* confdefs.h. */ 20717_ACEOF 20718cat confdefs.h >>conftest.$ac_ext 20719cat >>conftest.$ac_ext <<_ACEOF 20720/* end confdefs.h. */ 20721$ac_includes_default 20722int 20723main () 20724{ 20725static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 20726test_array [0] = 0 20727 20728 ; 20729 return 0; 20730} 20731_ACEOF 20732rm -f conftest.$ac_objext 20733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20734 (eval $ac_compile) 2>conftest.er1 20735 ac_status=$? 20736 grep -v '^ *+' conftest.er1 >conftest.err 20737 rm -f conftest.er1 20738 cat conftest.err >&5 20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20740 (exit $ac_status); } && 20741 { ac_try='test -z "$ac_c_werror_flag" 20742 || test ! -s conftest.err' 20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20744 (eval $ac_try) 2>&5 20745 ac_status=$? 20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20747 (exit $ac_status); }; } && 20748 { ac_try='test -s conftest.$ac_objext' 20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20750 (eval $ac_try) 2>&5 20751 ac_status=$? 20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20753 (exit $ac_status); }; }; then 20754 ac_hi=-1 ac_mid=-1 20755 while :; do 20756 cat >conftest.$ac_ext <<_ACEOF 20757/* confdefs.h. */ 20758_ACEOF 20759cat confdefs.h >>conftest.$ac_ext 20760cat >>conftest.$ac_ext <<_ACEOF 20761/* end confdefs.h. */ 20762$ac_includes_default 20763int 20764main () 20765{ 20766static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 20767test_array [0] = 0 20768 20769 ; 20770 return 0; 20771} 20772_ACEOF 20773rm -f conftest.$ac_objext 20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20775 (eval $ac_compile) 2>conftest.er1 20776 ac_status=$? 20777 grep -v '^ *+' conftest.er1 >conftest.err 20778 rm -f conftest.er1 20779 cat conftest.err >&5 20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20781 (exit $ac_status); } && 20782 { ac_try='test -z "$ac_c_werror_flag" 20783 || test ! -s conftest.err' 20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20785 (eval $ac_try) 2>&5 20786 ac_status=$? 20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20788 (exit $ac_status); }; } && 20789 { ac_try='test -s conftest.$ac_objext' 20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20791 (eval $ac_try) 2>&5 20792 ac_status=$? 20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20794 (exit $ac_status); }; }; then 20795 ac_lo=$ac_mid; break 20796else 20797 echo "$as_me: failed program was:" >&5 20798sed 's/^/| /' conftest.$ac_ext >&5 20799 20800ac_hi=`expr '(' $ac_mid ')' - 1` 20801 if test $ac_mid -le $ac_hi; then 20802 ac_lo= ac_hi= 20803 break 20804 fi 20805 ac_mid=`expr 2 '*' $ac_mid` 20806fi 20807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20808 done 20809else 20810 echo "$as_me: failed program was:" >&5 20811sed 's/^/| /' conftest.$ac_ext >&5 20812 20813ac_lo= ac_hi= 20814fi 20815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20816fi 20817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20818# Binary search between lo and hi bounds. 20819while test "x$ac_lo" != "x$ac_hi"; do 20820 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20821 cat >conftest.$ac_ext <<_ACEOF 20822/* confdefs.h. */ 20823_ACEOF 20824cat confdefs.h >>conftest.$ac_ext 20825cat >>conftest.$ac_ext <<_ACEOF 20826/* end confdefs.h. */ 20827$ac_includes_default 20828int 20829main () 20830{ 20831static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 20832test_array [0] = 0 20833 20834 ; 20835 return 0; 20836} 20837_ACEOF 20838rm -f conftest.$ac_objext 20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20840 (eval $ac_compile) 2>conftest.er1 20841 ac_status=$? 20842 grep -v '^ *+' conftest.er1 >conftest.err 20843 rm -f conftest.er1 20844 cat conftest.err >&5 20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20846 (exit $ac_status); } && 20847 { ac_try='test -z "$ac_c_werror_flag" 20848 || test ! -s conftest.err' 20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20850 (eval $ac_try) 2>&5 20851 ac_status=$? 20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20853 (exit $ac_status); }; } && 20854 { ac_try='test -s conftest.$ac_objext' 20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20856 (eval $ac_try) 2>&5 20857 ac_status=$? 20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20859 (exit $ac_status); }; }; then 20860 ac_hi=$ac_mid 20861else 20862 echo "$as_me: failed program was:" >&5 20863sed 's/^/| /' conftest.$ac_ext >&5 20864 20865ac_lo=`expr '(' $ac_mid ')' + 1` 20866fi 20867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20868done 20869case $ac_lo in 20870?*) ac_cv_sizeof_int=$ac_lo;; 20871'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 20872See \`config.log' for more details." >&5 20873echo "$as_me: error: cannot compute sizeof (int), 77 20874See \`config.log' for more details." >&2;} 20875 { (exit 1); exit 1; }; } ;; 20876esac 20877else 20878 if test "$cross_compiling" = yes; then 20879 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20880See \`config.log' for more details." >&5 20881echo "$as_me: error: cannot run test program while cross compiling 20882See \`config.log' for more details." >&2;} 20883 { (exit 1); exit 1; }; } 20884else 20885 cat >conftest.$ac_ext <<_ACEOF 20886/* confdefs.h. */ 20887_ACEOF 20888cat confdefs.h >>conftest.$ac_ext 20889cat >>conftest.$ac_ext <<_ACEOF 20890/* end confdefs.h. */ 20891$ac_includes_default 20892long longval () { return (long) (sizeof (int)); } 20893unsigned long ulongval () { return (long) (sizeof (int)); } 20894#include <stdio.h> 20895#include <stdlib.h> 20896int 20897main () 20898{ 20899 20900 FILE *f = fopen ("conftest.val", "w"); 20901 if (! f) 20902 exit (1); 20903 if (((long) (sizeof (int))) < 0) 20904 { 20905 long i = longval (); 20906 if (i != ((long) (sizeof (int)))) 20907 exit (1); 20908 fprintf (f, "%ld\n", i); 20909 } 20910 else 20911 { 20912 unsigned long i = ulongval (); 20913 if (i != ((long) (sizeof (int)))) 20914 exit (1); 20915 fprintf (f, "%lu\n", i); 20916 } 20917 exit (ferror (f) || fclose (f) != 0); 20918 20919 ; 20920 return 0; 20921} 20922_ACEOF 20923rm -f conftest$ac_exeext 20924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20925 (eval $ac_link) 2>&5 20926 ac_status=$? 20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20930 (eval $ac_try) 2>&5 20931 ac_status=$? 20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20933 (exit $ac_status); }; }; then 20934 ac_cv_sizeof_int=`cat conftest.val` 20935else 20936 echo "$as_me: program exited with status $ac_status" >&5 20937echo "$as_me: failed program was:" >&5 20938sed 's/^/| /' conftest.$ac_ext >&5 20939 20940( exit $ac_status ) 20941{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 20942See \`config.log' for more details." >&5 20943echo "$as_me: error: cannot compute sizeof (int), 77 20944See \`config.log' for more details." >&2;} 20945 { (exit 1); exit 1; }; } 20946fi 20947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20948fi 20949fi 20950rm -f conftest.val 20951else 20952 ac_cv_sizeof_int=0 20953fi 20954fi 20955echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 20956echo "${ECHO_T}$ac_cv_sizeof_int" >&6 20957cat >>confdefs.h <<_ACEOF 20958#define SIZEOF_INT $ac_cv_sizeof_int 20959_ACEOF 20960 20961 20962echo "$as_me:$LINENO: checking for void *" >&5 20963echo $ECHO_N "checking for void *... $ECHO_C" >&6 20964if test "${ac_cv_type_void_p+set}" = set; then 20965 echo $ECHO_N "(cached) $ECHO_C" >&6 20966else 20967 cat >conftest.$ac_ext <<_ACEOF 20968/* confdefs.h. */ 20969_ACEOF 20970cat confdefs.h >>conftest.$ac_ext 20971cat >>conftest.$ac_ext <<_ACEOF 20972/* end confdefs.h. */ 20973$ac_includes_default 20974int 20975main () 20976{ 20977if ((void * *) 0) 20978 return 0; 20979if (sizeof (void *)) 20980 return 0; 20981 ; 20982 return 0; 20983} 20984_ACEOF 20985rm -f conftest.$ac_objext 20986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20987 (eval $ac_compile) 2>conftest.er1 20988 ac_status=$? 20989 grep -v '^ *+' conftest.er1 >conftest.err 20990 rm -f conftest.er1 20991 cat conftest.err >&5 20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20993 (exit $ac_status); } && 20994 { ac_try='test -z "$ac_c_werror_flag" 20995 || test ! -s conftest.err' 20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20997 (eval $ac_try) 2>&5 20998 ac_status=$? 20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21000 (exit $ac_status); }; } && 21001 { ac_try='test -s conftest.$ac_objext' 21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21003 (eval $ac_try) 2>&5 21004 ac_status=$? 21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21006 (exit $ac_status); }; }; then 21007 ac_cv_type_void_p=yes 21008else 21009 echo "$as_me: failed program was:" >&5 21010sed 's/^/| /' conftest.$ac_ext >&5 21011 21012ac_cv_type_void_p=no 21013fi 21014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21015fi 21016echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 21017echo "${ECHO_T}$ac_cv_type_void_p" >&6 21018 21019echo "$as_me:$LINENO: checking size of void *" >&5 21020echo $ECHO_N "checking size of void *... $ECHO_C" >&6 21021if test "${ac_cv_sizeof_void_p+set}" = set; then 21022 echo $ECHO_N "(cached) $ECHO_C" >&6 21023else 21024 if test "$ac_cv_type_void_p" = yes; then 21025 # The cast to unsigned long works around a bug in the HP C Compiler 21026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21028 # This bug is HP SR number 8606223364. 21029 if test "$cross_compiling" = yes; then 21030 # Depending upon the size, compute the lo and hi bounds. 21031cat >conftest.$ac_ext <<_ACEOF 21032/* confdefs.h. */ 21033_ACEOF 21034cat confdefs.h >>conftest.$ac_ext 21035cat >>conftest.$ac_ext <<_ACEOF 21036/* end confdefs.h. */ 21037$ac_includes_default 21038int 21039main () 21040{ 21041static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; 21042test_array [0] = 0 21043 21044 ; 21045 return 0; 21046} 21047_ACEOF 21048rm -f conftest.$ac_objext 21049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21050 (eval $ac_compile) 2>conftest.er1 21051 ac_status=$? 21052 grep -v '^ *+' conftest.er1 >conftest.err 21053 rm -f conftest.er1 21054 cat conftest.err >&5 21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21056 (exit $ac_status); } && 21057 { ac_try='test -z "$ac_c_werror_flag" 21058 || test ! -s conftest.err' 21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21060 (eval $ac_try) 2>&5 21061 ac_status=$? 21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21063 (exit $ac_status); }; } && 21064 { ac_try='test -s conftest.$ac_objext' 21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21066 (eval $ac_try) 2>&5 21067 ac_status=$? 21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21069 (exit $ac_status); }; }; then 21070 ac_lo=0 ac_mid=0 21071 while :; do 21072 cat >conftest.$ac_ext <<_ACEOF 21073/* confdefs.h. */ 21074_ACEOF 21075cat confdefs.h >>conftest.$ac_ext 21076cat >>conftest.$ac_ext <<_ACEOF 21077/* end confdefs.h. */ 21078$ac_includes_default 21079int 21080main () 21081{ 21082static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 21083test_array [0] = 0 21084 21085 ; 21086 return 0; 21087} 21088_ACEOF 21089rm -f conftest.$ac_objext 21090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21091 (eval $ac_compile) 2>conftest.er1 21092 ac_status=$? 21093 grep -v '^ *+' conftest.er1 >conftest.err 21094 rm -f conftest.er1 21095 cat conftest.err >&5 21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21097 (exit $ac_status); } && 21098 { ac_try='test -z "$ac_c_werror_flag" 21099 || test ! -s conftest.err' 21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21101 (eval $ac_try) 2>&5 21102 ac_status=$? 21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21104 (exit $ac_status); }; } && 21105 { ac_try='test -s conftest.$ac_objext' 21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21107 (eval $ac_try) 2>&5 21108 ac_status=$? 21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21110 (exit $ac_status); }; }; then 21111 ac_hi=$ac_mid; break 21112else 21113 echo "$as_me: failed program was:" >&5 21114sed 's/^/| /' conftest.$ac_ext >&5 21115 21116ac_lo=`expr $ac_mid + 1` 21117 if test $ac_lo -le $ac_mid; then 21118 ac_lo= ac_hi= 21119 break 21120 fi 21121 ac_mid=`expr 2 '*' $ac_mid + 1` 21122fi 21123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21124 done 21125else 21126 echo "$as_me: failed program was:" >&5 21127sed 's/^/| /' conftest.$ac_ext >&5 21128 21129cat >conftest.$ac_ext <<_ACEOF 21130/* confdefs.h. */ 21131_ACEOF 21132cat confdefs.h >>conftest.$ac_ext 21133cat >>conftest.$ac_ext <<_ACEOF 21134/* end confdefs.h. */ 21135$ac_includes_default 21136int 21137main () 21138{ 21139static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; 21140test_array [0] = 0 21141 21142 ; 21143 return 0; 21144} 21145_ACEOF 21146rm -f conftest.$ac_objext 21147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21148 (eval $ac_compile) 2>conftest.er1 21149 ac_status=$? 21150 grep -v '^ *+' conftest.er1 >conftest.err 21151 rm -f conftest.er1 21152 cat conftest.err >&5 21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21154 (exit $ac_status); } && 21155 { ac_try='test -z "$ac_c_werror_flag" 21156 || test ! -s conftest.err' 21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21158 (eval $ac_try) 2>&5 21159 ac_status=$? 21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21161 (exit $ac_status); }; } && 21162 { ac_try='test -s conftest.$ac_objext' 21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21164 (eval $ac_try) 2>&5 21165 ac_status=$? 21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21167 (exit $ac_status); }; }; then 21168 ac_hi=-1 ac_mid=-1 21169 while :; do 21170 cat >conftest.$ac_ext <<_ACEOF 21171/* confdefs.h. */ 21172_ACEOF 21173cat confdefs.h >>conftest.$ac_ext 21174cat >>conftest.$ac_ext <<_ACEOF 21175/* end confdefs.h. */ 21176$ac_includes_default 21177int 21178main () 21179{ 21180static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; 21181test_array [0] = 0 21182 21183 ; 21184 return 0; 21185} 21186_ACEOF 21187rm -f conftest.$ac_objext 21188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21189 (eval $ac_compile) 2>conftest.er1 21190 ac_status=$? 21191 grep -v '^ *+' conftest.er1 >conftest.err 21192 rm -f conftest.er1 21193 cat conftest.err >&5 21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21195 (exit $ac_status); } && 21196 { ac_try='test -z "$ac_c_werror_flag" 21197 || test ! -s conftest.err' 21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21199 (eval $ac_try) 2>&5 21200 ac_status=$? 21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21202 (exit $ac_status); }; } && 21203 { ac_try='test -s conftest.$ac_objext' 21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21205 (eval $ac_try) 2>&5 21206 ac_status=$? 21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21208 (exit $ac_status); }; }; then 21209 ac_lo=$ac_mid; break 21210else 21211 echo "$as_me: failed program was:" >&5 21212sed 's/^/| /' conftest.$ac_ext >&5 21213 21214ac_hi=`expr '(' $ac_mid ')' - 1` 21215 if test $ac_mid -le $ac_hi; then 21216 ac_lo= ac_hi= 21217 break 21218 fi 21219 ac_mid=`expr 2 '*' $ac_mid` 21220fi 21221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21222 done 21223else 21224 echo "$as_me: failed program was:" >&5 21225sed 's/^/| /' conftest.$ac_ext >&5 21226 21227ac_lo= ac_hi= 21228fi 21229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21230fi 21231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21232# Binary search between lo and hi bounds. 21233while test "x$ac_lo" != "x$ac_hi"; do 21234 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21235 cat >conftest.$ac_ext <<_ACEOF 21236/* confdefs.h. */ 21237_ACEOF 21238cat confdefs.h >>conftest.$ac_ext 21239cat >>conftest.$ac_ext <<_ACEOF 21240/* end confdefs.h. */ 21241$ac_includes_default 21242int 21243main () 21244{ 21245static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 21246test_array [0] = 0 21247 21248 ; 21249 return 0; 21250} 21251_ACEOF 21252rm -f conftest.$ac_objext 21253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21254 (eval $ac_compile) 2>conftest.er1 21255 ac_status=$? 21256 grep -v '^ *+' conftest.er1 >conftest.err 21257 rm -f conftest.er1 21258 cat conftest.err >&5 21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21260 (exit $ac_status); } && 21261 { ac_try='test -z "$ac_c_werror_flag" 21262 || test ! -s conftest.err' 21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21264 (eval $ac_try) 2>&5 21265 ac_status=$? 21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21267 (exit $ac_status); }; } && 21268 { ac_try='test -s conftest.$ac_objext' 21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21270 (eval $ac_try) 2>&5 21271 ac_status=$? 21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21273 (exit $ac_status); }; }; then 21274 ac_hi=$ac_mid 21275else 21276 echo "$as_me: failed program was:" >&5 21277sed 's/^/| /' conftest.$ac_ext >&5 21278 21279ac_lo=`expr '(' $ac_mid ')' + 1` 21280fi 21281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21282done 21283case $ac_lo in 21284?*) ac_cv_sizeof_void_p=$ac_lo;; 21285'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 21286See \`config.log' for more details." >&5 21287echo "$as_me: error: cannot compute sizeof (void *), 77 21288See \`config.log' for more details." >&2;} 21289 { (exit 1); exit 1; }; } ;; 21290esac 21291else 21292 if test "$cross_compiling" = yes; then 21293 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21294See \`config.log' for more details." >&5 21295echo "$as_me: error: cannot run test program while cross compiling 21296See \`config.log' for more details." >&2;} 21297 { (exit 1); exit 1; }; } 21298else 21299 cat >conftest.$ac_ext <<_ACEOF 21300/* confdefs.h. */ 21301_ACEOF 21302cat confdefs.h >>conftest.$ac_ext 21303cat >>conftest.$ac_ext <<_ACEOF 21304/* end confdefs.h. */ 21305$ac_includes_default 21306long longval () { return (long) (sizeof (void *)); } 21307unsigned long ulongval () { return (long) (sizeof (void *)); } 21308#include <stdio.h> 21309#include <stdlib.h> 21310int 21311main () 21312{ 21313 21314 FILE *f = fopen ("conftest.val", "w"); 21315 if (! f) 21316 exit (1); 21317 if (((long) (sizeof (void *))) < 0) 21318 { 21319 long i = longval (); 21320 if (i != ((long) (sizeof (void *)))) 21321 exit (1); 21322 fprintf (f, "%ld\n", i); 21323 } 21324 else 21325 { 21326 unsigned long i = ulongval (); 21327 if (i != ((long) (sizeof (void *)))) 21328 exit (1); 21329 fprintf (f, "%lu\n", i); 21330 } 21331 exit (ferror (f) || fclose (f) != 0); 21332 21333 ; 21334 return 0; 21335} 21336_ACEOF 21337rm -f conftest$ac_exeext 21338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21339 (eval $ac_link) 2>&5 21340 ac_status=$? 21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21344 (eval $ac_try) 2>&5 21345 ac_status=$? 21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21347 (exit $ac_status); }; }; then 21348 ac_cv_sizeof_void_p=`cat conftest.val` 21349else 21350 echo "$as_me: program exited with status $ac_status" >&5 21351echo "$as_me: failed program was:" >&5 21352sed 's/^/| /' conftest.$ac_ext >&5 21353 21354( exit $ac_status ) 21355{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 21356See \`config.log' for more details." >&5 21357echo "$as_me: error: cannot compute sizeof (void *), 77 21358See \`config.log' for more details." >&2;} 21359 { (exit 1); exit 1; }; } 21360fi 21361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21362fi 21363fi 21364rm -f conftest.val 21365else 21366 ac_cv_sizeof_void_p=0 21367fi 21368fi 21369echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 21370echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 21371cat >>confdefs.h <<_ACEOF 21372#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 21373_ACEOF 21374 21375 21376echo "$as_me:$LINENO: checking for long long" >&5 21377echo $ECHO_N "checking for long long... $ECHO_C" >&6 21378if test "${ac_cv_type_long_long+set}" = set; then 21379 echo $ECHO_N "(cached) $ECHO_C" >&6 21380else 21381 cat >conftest.$ac_ext <<_ACEOF 21382/* confdefs.h. */ 21383_ACEOF 21384cat confdefs.h >>conftest.$ac_ext 21385cat >>conftest.$ac_ext <<_ACEOF 21386/* end confdefs.h. */ 21387$ac_includes_default 21388int 21389main () 21390{ 21391if ((long long *) 0) 21392 return 0; 21393if (sizeof (long long)) 21394 return 0; 21395 ; 21396 return 0; 21397} 21398_ACEOF 21399rm -f conftest.$ac_objext 21400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21401 (eval $ac_compile) 2>conftest.er1 21402 ac_status=$? 21403 grep -v '^ *+' conftest.er1 >conftest.err 21404 rm -f conftest.er1 21405 cat conftest.err >&5 21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21407 (exit $ac_status); } && 21408 { ac_try='test -z "$ac_c_werror_flag" 21409 || test ! -s conftest.err' 21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21411 (eval $ac_try) 2>&5 21412 ac_status=$? 21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21414 (exit $ac_status); }; } && 21415 { ac_try='test -s conftest.$ac_objext' 21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21417 (eval $ac_try) 2>&5 21418 ac_status=$? 21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21420 (exit $ac_status); }; }; then 21421 ac_cv_type_long_long=yes 21422else 21423 echo "$as_me: failed program was:" >&5 21424sed 's/^/| /' conftest.$ac_ext >&5 21425 21426ac_cv_type_long_long=no 21427fi 21428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21429fi 21430echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 21431echo "${ECHO_T}$ac_cv_type_long_long" >&6 21432 21433echo "$as_me:$LINENO: checking size of long long" >&5 21434echo $ECHO_N "checking size of long long... $ECHO_C" >&6 21435if test "${ac_cv_sizeof_long_long+set}" = set; then 21436 echo $ECHO_N "(cached) $ECHO_C" >&6 21437else 21438 if test "$ac_cv_type_long_long" = yes; then 21439 # The cast to unsigned long works around a bug in the HP C Compiler 21440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21442 # This bug is HP SR number 8606223364. 21443 if test "$cross_compiling" = yes; then 21444 # Depending upon the size, compute the lo and hi bounds. 21445cat >conftest.$ac_ext <<_ACEOF 21446/* confdefs.h. */ 21447_ACEOF 21448cat confdefs.h >>conftest.$ac_ext 21449cat >>conftest.$ac_ext <<_ACEOF 21450/* end confdefs.h. */ 21451$ac_includes_default 21452int 21453main () 21454{ 21455static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 21456test_array [0] = 0 21457 21458 ; 21459 return 0; 21460} 21461_ACEOF 21462rm -f conftest.$ac_objext 21463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21464 (eval $ac_compile) 2>conftest.er1 21465 ac_status=$? 21466 grep -v '^ *+' conftest.er1 >conftest.err 21467 rm -f conftest.er1 21468 cat conftest.err >&5 21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21470 (exit $ac_status); } && 21471 { ac_try='test -z "$ac_c_werror_flag" 21472 || test ! -s conftest.err' 21473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21474 (eval $ac_try) 2>&5 21475 ac_status=$? 21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21477 (exit $ac_status); }; } && 21478 { ac_try='test -s conftest.$ac_objext' 21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21480 (eval $ac_try) 2>&5 21481 ac_status=$? 21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21483 (exit $ac_status); }; }; then 21484 ac_lo=0 ac_mid=0 21485 while :; do 21486 cat >conftest.$ac_ext <<_ACEOF 21487/* confdefs.h. */ 21488_ACEOF 21489cat confdefs.h >>conftest.$ac_ext 21490cat >>conftest.$ac_ext <<_ACEOF 21491/* end confdefs.h. */ 21492$ac_includes_default 21493int 21494main () 21495{ 21496static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 21497test_array [0] = 0 21498 21499 ; 21500 return 0; 21501} 21502_ACEOF 21503rm -f conftest.$ac_objext 21504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21505 (eval $ac_compile) 2>conftest.er1 21506 ac_status=$? 21507 grep -v '^ *+' conftest.er1 >conftest.err 21508 rm -f conftest.er1 21509 cat conftest.err >&5 21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21511 (exit $ac_status); } && 21512 { ac_try='test -z "$ac_c_werror_flag" 21513 || test ! -s conftest.err' 21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21515 (eval $ac_try) 2>&5 21516 ac_status=$? 21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21518 (exit $ac_status); }; } && 21519 { ac_try='test -s conftest.$ac_objext' 21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21521 (eval $ac_try) 2>&5 21522 ac_status=$? 21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21524 (exit $ac_status); }; }; then 21525 ac_hi=$ac_mid; break 21526else 21527 echo "$as_me: failed program was:" >&5 21528sed 's/^/| /' conftest.$ac_ext >&5 21529 21530ac_lo=`expr $ac_mid + 1` 21531 if test $ac_lo -le $ac_mid; then 21532 ac_lo= ac_hi= 21533 break 21534 fi 21535 ac_mid=`expr 2 '*' $ac_mid + 1` 21536fi 21537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21538 done 21539else 21540 echo "$as_me: failed program was:" >&5 21541sed 's/^/| /' conftest.$ac_ext >&5 21542 21543cat >conftest.$ac_ext <<_ACEOF 21544/* confdefs.h. */ 21545_ACEOF 21546cat confdefs.h >>conftest.$ac_ext 21547cat >>conftest.$ac_ext <<_ACEOF 21548/* end confdefs.h. */ 21549$ac_includes_default 21550int 21551main () 21552{ 21553static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 21554test_array [0] = 0 21555 21556 ; 21557 return 0; 21558} 21559_ACEOF 21560rm -f conftest.$ac_objext 21561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21562 (eval $ac_compile) 2>conftest.er1 21563 ac_status=$? 21564 grep -v '^ *+' conftest.er1 >conftest.err 21565 rm -f conftest.er1 21566 cat conftest.err >&5 21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21568 (exit $ac_status); } && 21569 { ac_try='test -z "$ac_c_werror_flag" 21570 || test ! -s conftest.err' 21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21572 (eval $ac_try) 2>&5 21573 ac_status=$? 21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21575 (exit $ac_status); }; } && 21576 { ac_try='test -s conftest.$ac_objext' 21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21578 (eval $ac_try) 2>&5 21579 ac_status=$? 21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21581 (exit $ac_status); }; }; then 21582 ac_hi=-1 ac_mid=-1 21583 while :; do 21584 cat >conftest.$ac_ext <<_ACEOF 21585/* confdefs.h. */ 21586_ACEOF 21587cat confdefs.h >>conftest.$ac_ext 21588cat >>conftest.$ac_ext <<_ACEOF 21589/* end confdefs.h. */ 21590$ac_includes_default 21591int 21592main () 21593{ 21594static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 21595test_array [0] = 0 21596 21597 ; 21598 return 0; 21599} 21600_ACEOF 21601rm -f conftest.$ac_objext 21602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21603 (eval $ac_compile) 2>conftest.er1 21604 ac_status=$? 21605 grep -v '^ *+' conftest.er1 >conftest.err 21606 rm -f conftest.er1 21607 cat conftest.err >&5 21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21609 (exit $ac_status); } && 21610 { ac_try='test -z "$ac_c_werror_flag" 21611 || test ! -s conftest.err' 21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21613 (eval $ac_try) 2>&5 21614 ac_status=$? 21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21616 (exit $ac_status); }; } && 21617 { ac_try='test -s conftest.$ac_objext' 21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21619 (eval $ac_try) 2>&5 21620 ac_status=$? 21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21622 (exit $ac_status); }; }; then 21623 ac_lo=$ac_mid; break 21624else 21625 echo "$as_me: failed program was:" >&5 21626sed 's/^/| /' conftest.$ac_ext >&5 21627 21628ac_hi=`expr '(' $ac_mid ')' - 1` 21629 if test $ac_mid -le $ac_hi; then 21630 ac_lo= ac_hi= 21631 break 21632 fi 21633 ac_mid=`expr 2 '*' $ac_mid` 21634fi 21635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21636 done 21637else 21638 echo "$as_me: failed program was:" >&5 21639sed 's/^/| /' conftest.$ac_ext >&5 21640 21641ac_lo= ac_hi= 21642fi 21643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21644fi 21645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21646# Binary search between lo and hi bounds. 21647while test "x$ac_lo" != "x$ac_hi"; do 21648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21649 cat >conftest.$ac_ext <<_ACEOF 21650/* confdefs.h. */ 21651_ACEOF 21652cat confdefs.h >>conftest.$ac_ext 21653cat >>conftest.$ac_ext <<_ACEOF 21654/* end confdefs.h. */ 21655$ac_includes_default 21656int 21657main () 21658{ 21659static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 21660test_array [0] = 0 21661 21662 ; 21663 return 0; 21664} 21665_ACEOF 21666rm -f conftest.$ac_objext 21667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21668 (eval $ac_compile) 2>conftest.er1 21669 ac_status=$? 21670 grep -v '^ *+' conftest.er1 >conftest.err 21671 rm -f conftest.er1 21672 cat conftest.err >&5 21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21674 (exit $ac_status); } && 21675 { ac_try='test -z "$ac_c_werror_flag" 21676 || test ! -s conftest.err' 21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21678 (eval $ac_try) 2>&5 21679 ac_status=$? 21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21681 (exit $ac_status); }; } && 21682 { ac_try='test -s conftest.$ac_objext' 21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21684 (eval $ac_try) 2>&5 21685 ac_status=$? 21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21687 (exit $ac_status); }; }; then 21688 ac_hi=$ac_mid 21689else 21690 echo "$as_me: failed program was:" >&5 21691sed 's/^/| /' conftest.$ac_ext >&5 21692 21693ac_lo=`expr '(' $ac_mid ')' + 1` 21694fi 21695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21696done 21697case $ac_lo in 21698?*) ac_cv_sizeof_long_long=$ac_lo;; 21699'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 21700See \`config.log' for more details." >&5 21701echo "$as_me: error: cannot compute sizeof (long long), 77 21702See \`config.log' for more details." >&2;} 21703 { (exit 1); exit 1; }; } ;; 21704esac 21705else 21706 if test "$cross_compiling" = yes; then 21707 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21708See \`config.log' for more details." >&5 21709echo "$as_me: error: cannot run test program while cross compiling 21710See \`config.log' for more details." >&2;} 21711 { (exit 1); exit 1; }; } 21712else 21713 cat >conftest.$ac_ext <<_ACEOF 21714/* confdefs.h. */ 21715_ACEOF 21716cat confdefs.h >>conftest.$ac_ext 21717cat >>conftest.$ac_ext <<_ACEOF 21718/* end confdefs.h. */ 21719$ac_includes_default 21720long longval () { return (long) (sizeof (long long)); } 21721unsigned long ulongval () { return (long) (sizeof (long long)); } 21722#include <stdio.h> 21723#include <stdlib.h> 21724int 21725main () 21726{ 21727 21728 FILE *f = fopen ("conftest.val", "w"); 21729 if (! f) 21730 exit (1); 21731 if (((long) (sizeof (long long))) < 0) 21732 { 21733 long i = longval (); 21734 if (i != ((long) (sizeof (long long)))) 21735 exit (1); 21736 fprintf (f, "%ld\n", i); 21737 } 21738 else 21739 { 21740 unsigned long i = ulongval (); 21741 if (i != ((long) (sizeof (long long)))) 21742 exit (1); 21743 fprintf (f, "%lu\n", i); 21744 } 21745 exit (ferror (f) || fclose (f) != 0); 21746 21747 ; 21748 return 0; 21749} 21750_ACEOF 21751rm -f conftest$ac_exeext 21752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21753 (eval $ac_link) 2>&5 21754 ac_status=$? 21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21758 (eval $ac_try) 2>&5 21759 ac_status=$? 21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21761 (exit $ac_status); }; }; then 21762 ac_cv_sizeof_long_long=`cat conftest.val` 21763else 21764 echo "$as_me: program exited with status $ac_status" >&5 21765echo "$as_me: failed program was:" >&5 21766sed 's/^/| /' conftest.$ac_ext >&5 21767 21768( exit $ac_status ) 21769{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 21770See \`config.log' for more details." >&5 21771echo "$as_me: error: cannot compute sizeof (long long), 77 21772See \`config.log' for more details." >&2;} 21773 { (exit 1); exit 1; }; } 21774fi 21775rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21776fi 21777fi 21778rm -f conftest.val 21779else 21780 ac_cv_sizeof_long_long=0 21781fi 21782fi 21783echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 21784echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 21785cat >>confdefs.h <<_ACEOF 21786#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 21787_ACEOF 21788 21789 21790echo "$as_me:$LINENO: checking for __int64" >&5 21791echo $ECHO_N "checking for __int64... $ECHO_C" >&6 21792if test "${ac_cv_type___int64+set}" = set; then 21793 echo $ECHO_N "(cached) $ECHO_C" >&6 21794else 21795 cat >conftest.$ac_ext <<_ACEOF 21796/* confdefs.h. */ 21797_ACEOF 21798cat confdefs.h >>conftest.$ac_ext 21799cat >>conftest.$ac_ext <<_ACEOF 21800/* end confdefs.h. */ 21801$ac_includes_default 21802int 21803main () 21804{ 21805if ((__int64 *) 0) 21806 return 0; 21807if (sizeof (__int64)) 21808 return 0; 21809 ; 21810 return 0; 21811} 21812_ACEOF 21813rm -f conftest.$ac_objext 21814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21815 (eval $ac_compile) 2>conftest.er1 21816 ac_status=$? 21817 grep -v '^ *+' conftest.er1 >conftest.err 21818 rm -f conftest.er1 21819 cat conftest.err >&5 21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21821 (exit $ac_status); } && 21822 { ac_try='test -z "$ac_c_werror_flag" 21823 || test ! -s conftest.err' 21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21825 (eval $ac_try) 2>&5 21826 ac_status=$? 21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21828 (exit $ac_status); }; } && 21829 { ac_try='test -s conftest.$ac_objext' 21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21831 (eval $ac_try) 2>&5 21832 ac_status=$? 21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21834 (exit $ac_status); }; }; then 21835 ac_cv_type___int64=yes 21836else 21837 echo "$as_me: failed program was:" >&5 21838sed 's/^/| /' conftest.$ac_ext >&5 21839 21840ac_cv_type___int64=no 21841fi 21842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21843fi 21844echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 21845echo "${ECHO_T}$ac_cv_type___int64" >&6 21846 21847echo "$as_me:$LINENO: checking size of __int64" >&5 21848echo $ECHO_N "checking size of __int64... $ECHO_C" >&6 21849if test "${ac_cv_sizeof___int64+set}" = set; then 21850 echo $ECHO_N "(cached) $ECHO_C" >&6 21851else 21852 if test "$ac_cv_type___int64" = yes; then 21853 # The cast to unsigned long works around a bug in the HP C Compiler 21854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21856 # This bug is HP SR number 8606223364. 21857 if test "$cross_compiling" = yes; then 21858 # Depending upon the size, compute the lo and hi bounds. 21859cat >conftest.$ac_ext <<_ACEOF 21860/* confdefs.h. */ 21861_ACEOF 21862cat confdefs.h >>conftest.$ac_ext 21863cat >>conftest.$ac_ext <<_ACEOF 21864/* end confdefs.h. */ 21865$ac_includes_default 21866int 21867main () 21868{ 21869static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)]; 21870test_array [0] = 0 21871 21872 ; 21873 return 0; 21874} 21875_ACEOF 21876rm -f conftest.$ac_objext 21877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21878 (eval $ac_compile) 2>conftest.er1 21879 ac_status=$? 21880 grep -v '^ *+' conftest.er1 >conftest.err 21881 rm -f conftest.er1 21882 cat conftest.err >&5 21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21884 (exit $ac_status); } && 21885 { ac_try='test -z "$ac_c_werror_flag" 21886 || test ! -s conftest.err' 21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21888 (eval $ac_try) 2>&5 21889 ac_status=$? 21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21891 (exit $ac_status); }; } && 21892 { ac_try='test -s conftest.$ac_objext' 21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21894 (eval $ac_try) 2>&5 21895 ac_status=$? 21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21897 (exit $ac_status); }; }; then 21898 ac_lo=0 ac_mid=0 21899 while :; do 21900 cat >conftest.$ac_ext <<_ACEOF 21901/* confdefs.h. */ 21902_ACEOF 21903cat confdefs.h >>conftest.$ac_ext 21904cat >>conftest.$ac_ext <<_ACEOF 21905/* end confdefs.h. */ 21906$ac_includes_default 21907int 21908main () 21909{ 21910static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 21911test_array [0] = 0 21912 21913 ; 21914 return 0; 21915} 21916_ACEOF 21917rm -f conftest.$ac_objext 21918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21919 (eval $ac_compile) 2>conftest.er1 21920 ac_status=$? 21921 grep -v '^ *+' conftest.er1 >conftest.err 21922 rm -f conftest.er1 21923 cat conftest.err >&5 21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21925 (exit $ac_status); } && 21926 { ac_try='test -z "$ac_c_werror_flag" 21927 || test ! -s conftest.err' 21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21929 (eval $ac_try) 2>&5 21930 ac_status=$? 21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21932 (exit $ac_status); }; } && 21933 { ac_try='test -s conftest.$ac_objext' 21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21935 (eval $ac_try) 2>&5 21936 ac_status=$? 21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21938 (exit $ac_status); }; }; then 21939 ac_hi=$ac_mid; break 21940else 21941 echo "$as_me: failed program was:" >&5 21942sed 's/^/| /' conftest.$ac_ext >&5 21943 21944ac_lo=`expr $ac_mid + 1` 21945 if test $ac_lo -le $ac_mid; then 21946 ac_lo= ac_hi= 21947 break 21948 fi 21949 ac_mid=`expr 2 '*' $ac_mid + 1` 21950fi 21951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21952 done 21953else 21954 echo "$as_me: failed program was:" >&5 21955sed 's/^/| /' conftest.$ac_ext >&5 21956 21957cat >conftest.$ac_ext <<_ACEOF 21958/* confdefs.h. */ 21959_ACEOF 21960cat confdefs.h >>conftest.$ac_ext 21961cat >>conftest.$ac_ext <<_ACEOF 21962/* end confdefs.h. */ 21963$ac_includes_default 21964int 21965main () 21966{ 21967static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)]; 21968test_array [0] = 0 21969 21970 ; 21971 return 0; 21972} 21973_ACEOF 21974rm -f conftest.$ac_objext 21975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21976 (eval $ac_compile) 2>conftest.er1 21977 ac_status=$? 21978 grep -v '^ *+' conftest.er1 >conftest.err 21979 rm -f conftest.er1 21980 cat conftest.err >&5 21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21982 (exit $ac_status); } && 21983 { ac_try='test -z "$ac_c_werror_flag" 21984 || test ! -s conftest.err' 21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21986 (eval $ac_try) 2>&5 21987 ac_status=$? 21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21989 (exit $ac_status); }; } && 21990 { ac_try='test -s conftest.$ac_objext' 21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21992 (eval $ac_try) 2>&5 21993 ac_status=$? 21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21995 (exit $ac_status); }; }; then 21996 ac_hi=-1 ac_mid=-1 21997 while :; do 21998 cat >conftest.$ac_ext <<_ACEOF 21999/* confdefs.h. */ 22000_ACEOF 22001cat confdefs.h >>conftest.$ac_ext 22002cat >>conftest.$ac_ext <<_ACEOF 22003/* end confdefs.h. */ 22004$ac_includes_default 22005int 22006main () 22007{ 22008static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)]; 22009test_array [0] = 0 22010 22011 ; 22012 return 0; 22013} 22014_ACEOF 22015rm -f conftest.$ac_objext 22016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22017 (eval $ac_compile) 2>conftest.er1 22018 ac_status=$? 22019 grep -v '^ *+' conftest.er1 >conftest.err 22020 rm -f conftest.er1 22021 cat conftest.err >&5 22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22023 (exit $ac_status); } && 22024 { ac_try='test -z "$ac_c_werror_flag" 22025 || test ! -s conftest.err' 22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22027 (eval $ac_try) 2>&5 22028 ac_status=$? 22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22030 (exit $ac_status); }; } && 22031 { ac_try='test -s conftest.$ac_objext' 22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22033 (eval $ac_try) 2>&5 22034 ac_status=$? 22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22036 (exit $ac_status); }; }; then 22037 ac_lo=$ac_mid; break 22038else 22039 echo "$as_me: failed program was:" >&5 22040sed 's/^/| /' conftest.$ac_ext >&5 22041 22042ac_hi=`expr '(' $ac_mid ')' - 1` 22043 if test $ac_mid -le $ac_hi; then 22044 ac_lo= ac_hi= 22045 break 22046 fi 22047 ac_mid=`expr 2 '*' $ac_mid` 22048fi 22049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22050 done 22051else 22052 echo "$as_me: failed program was:" >&5 22053sed 's/^/| /' conftest.$ac_ext >&5 22054 22055ac_lo= ac_hi= 22056fi 22057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22058fi 22059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22060# Binary search between lo and hi bounds. 22061while test "x$ac_lo" != "x$ac_hi"; do 22062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22063 cat >conftest.$ac_ext <<_ACEOF 22064/* confdefs.h. */ 22065_ACEOF 22066cat confdefs.h >>conftest.$ac_ext 22067cat >>conftest.$ac_ext <<_ACEOF 22068/* end confdefs.h. */ 22069$ac_includes_default 22070int 22071main () 22072{ 22073static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 22074test_array [0] = 0 22075 22076 ; 22077 return 0; 22078} 22079_ACEOF 22080rm -f conftest.$ac_objext 22081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22082 (eval $ac_compile) 2>conftest.er1 22083 ac_status=$? 22084 grep -v '^ *+' conftest.er1 >conftest.err 22085 rm -f conftest.er1 22086 cat conftest.err >&5 22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22088 (exit $ac_status); } && 22089 { ac_try='test -z "$ac_c_werror_flag" 22090 || test ! -s conftest.err' 22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22092 (eval $ac_try) 2>&5 22093 ac_status=$? 22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22095 (exit $ac_status); }; } && 22096 { ac_try='test -s conftest.$ac_objext' 22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22098 (eval $ac_try) 2>&5 22099 ac_status=$? 22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22101 (exit $ac_status); }; }; then 22102 ac_hi=$ac_mid 22103else 22104 echo "$as_me: failed program was:" >&5 22105sed 's/^/| /' conftest.$ac_ext >&5 22106 22107ac_lo=`expr '(' $ac_mid ')' + 1` 22108fi 22109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22110done 22111case $ac_lo in 22112?*) ac_cv_sizeof___int64=$ac_lo;; 22113'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 22114See \`config.log' for more details." >&5 22115echo "$as_me: error: cannot compute sizeof (__int64), 77 22116See \`config.log' for more details." >&2;} 22117 { (exit 1); exit 1; }; } ;; 22118esac 22119else 22120 if test "$cross_compiling" = yes; then 22121 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22122See \`config.log' for more details." >&5 22123echo "$as_me: error: cannot run test program while cross compiling 22124See \`config.log' for more details." >&2;} 22125 { (exit 1); exit 1; }; } 22126else 22127 cat >conftest.$ac_ext <<_ACEOF 22128/* confdefs.h. */ 22129_ACEOF 22130cat confdefs.h >>conftest.$ac_ext 22131cat >>conftest.$ac_ext <<_ACEOF 22132/* end confdefs.h. */ 22133$ac_includes_default 22134long longval () { return (long) (sizeof (__int64)); } 22135unsigned long ulongval () { return (long) (sizeof (__int64)); } 22136#include <stdio.h> 22137#include <stdlib.h> 22138int 22139main () 22140{ 22141 22142 FILE *f = fopen ("conftest.val", "w"); 22143 if (! f) 22144 exit (1); 22145 if (((long) (sizeof (__int64))) < 0) 22146 { 22147 long i = longval (); 22148 if (i != ((long) (sizeof (__int64)))) 22149 exit (1); 22150 fprintf (f, "%ld\n", i); 22151 } 22152 else 22153 { 22154 unsigned long i = ulongval (); 22155 if (i != ((long) (sizeof (__int64)))) 22156 exit (1); 22157 fprintf (f, "%lu\n", i); 22158 } 22159 exit (ferror (f) || fclose (f) != 0); 22160 22161 ; 22162 return 0; 22163} 22164_ACEOF 22165rm -f conftest$ac_exeext 22166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22167 (eval $ac_link) 2>&5 22168 ac_status=$? 22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22172 (eval $ac_try) 2>&5 22173 ac_status=$? 22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22175 (exit $ac_status); }; }; then 22176 ac_cv_sizeof___int64=`cat conftest.val` 22177else 22178 echo "$as_me: program exited with status $ac_status" >&5 22179echo "$as_me: failed program was:" >&5 22180sed 's/^/| /' conftest.$ac_ext >&5 22181 22182( exit $ac_status ) 22183{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 22184See \`config.log' for more details." >&5 22185echo "$as_me: error: cannot compute sizeof (__int64), 77 22186See \`config.log' for more details." >&2;} 22187 { (exit 1); exit 1; }; } 22188fi 22189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22190fi 22191fi 22192rm -f conftest.val 22193else 22194 ac_cv_sizeof___int64=0 22195fi 22196fi 22197echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5 22198echo "${ECHO_T}$ac_cv_sizeof___int64" >&6 22199cat >>confdefs.h <<_ACEOF 22200#define SIZEOF___INT64 $ac_cv_sizeof___int64 22201_ACEOF 22202 22203 22204 22205### See what our 64 bit type is called 22206echo "$as_me:$LINENO: checking 64-bit integer type" >&5 22207echo $ECHO_N "checking 64-bit integer type... $ECHO_C" >&6 22208 22209case 8 in 22210$ac_cv_sizeof_int) 22211 dbusint64=int 22212 dbusint64_constant='(val)' 22213 dbusuint64_constant='(val)' 22214 ;; 22215$ac_cv_sizeof_long) 22216 dbusint64=long 22217 dbusint64_constant='(val##L)' 22218 dbusuint64_constant='(val##UL)' 22219 ;; 22220$ac_cv_sizeof_long_long) 22221 dbusint64='long long' 22222 dbusint64_constant='(val##LL)' 22223 dbusuint64_constant='(val##ULL)' 22224 ;; 22225$ac_cv_sizeof___int64) 22226 dbusint64=__int64 22227 dbusint64_constant='(val##i64)' 22228 dbusuint64_constant='(val##ui64)' 22229 ;; 22230esac 22231 22232if test -z "$dbusint64" ; then 22233 DBUS_INT64_TYPE="no_int64_type_detected" 22234 DBUS_HAVE_INT64=0 22235 DBUS_INT64_CONSTANT= 22236 DBUS_UINT64_CONSTANT= 22237 echo "$as_me:$LINENO: result: none found" >&5 22238echo "${ECHO_T}none found" >&6 22239else 22240 DBUS_INT64_TYPE="$dbusint64" 22241 DBUS_HAVE_INT64=1 22242 DBUS_INT64_CONSTANT="$dbusint64_constant" 22243 DBUS_UINT64_CONSTANT="$dbusuint64_constant" 22244 echo "$as_me:$LINENO: result: $DBUS_INT64_TYPE" >&5 22245echo "${ECHO_T}$DBUS_INT64_TYPE" >&6 22246fi 22247 22248 22249 22250 22251 22252 22253### see what 32-bit int is called 22254echo "$as_me:$LINENO: checking 32-bit integer type" >&5 22255echo $ECHO_N "checking 32-bit integer type... $ECHO_C" >&6 22256 22257case 4 in 22258$ac_cv_sizeof_short) 22259 dbusint32=int 22260 ;; 22261$ac_cv_sizeof_int) 22262 dbusint32=int 22263 ;; 22264$ac_cv_sizeof_long) 22265 dbusint32=long 22266 ;; 22267esac 22268 22269if test -z "$dbusint32" ; then 22270 DBUS_INT32_TYPE="no_int32_type_detected" 22271 { { echo "$as_me:$LINENO: error: No 32-bit integer type found" >&5 22272echo "$as_me: error: No 32-bit integer type found" >&2;} 22273 { (exit 1); exit 1; }; } 22274else 22275 DBUS_INT32_TYPE="$dbusint32" 22276 echo "$as_me:$LINENO: result: $DBUS_INT32_TYPE" >&5 22277echo "${ECHO_T}$DBUS_INT32_TYPE" >&6 22278fi 22279 22280 22281 22282### see what 16-bit int is called 22283echo "$as_me:$LINENO: checking 16-bit integer type" >&5 22284echo $ECHO_N "checking 16-bit integer type... $ECHO_C" >&6 22285 22286case 2 in 22287$ac_cv_sizeof_short) 22288 dbusint16=short 22289 ;; 22290$ac_cv_sizeof_int) 22291 dbusint16=int 22292 ;; 22293esac 22294 22295if test -z "$dbusint16" ; then 22296 DBUS_INT16_TYPE="no_int16_type_detected" 22297 { { echo "$as_me:$LINENO: error: No 16-bit integer type found" >&5 22298echo "$as_me: error: No 16-bit integer type found" >&2;} 22299 { (exit 1); exit 1; }; } 22300else 22301 DBUS_INT16_TYPE="$dbusint16" 22302 echo "$as_me:$LINENO: result: $DBUS_INT16_TYPE" >&5 22303echo "${ECHO_T}$DBUS_INT16_TYPE" >&6 22304fi 22305 22306 22307 22308## byte order 22309case $host_os in 22310 darwin*) 22311 # check at compile-time, so that it is possible to build universal 22312 # (with multiple architectures at once on the compile line) 22313 22314 22315 ;; 22316 *) 22317 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 22318echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 22319if test "${ac_cv_c_bigendian+set}" = set; then 22320 echo $ECHO_N "(cached) $ECHO_C" >&6 22321else 22322 # See if sys/param.h defines the BYTE_ORDER macro. 22323cat >conftest.$ac_ext <<_ACEOF 22324/* confdefs.h. */ 22325_ACEOF 22326cat confdefs.h >>conftest.$ac_ext 22327cat >>conftest.$ac_ext <<_ACEOF 22328/* end confdefs.h. */ 22329#include <sys/types.h> 22330#include <sys/param.h> 22331 22332int 22333main () 22334{ 22335#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 22336 bogus endian macros 22337#endif 22338 22339 ; 22340 return 0; 22341} 22342_ACEOF 22343rm -f conftest.$ac_objext 22344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22345 (eval $ac_compile) 2>conftest.er1 22346 ac_status=$? 22347 grep -v '^ *+' conftest.er1 >conftest.err 22348 rm -f conftest.er1 22349 cat conftest.err >&5 22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22351 (exit $ac_status); } && 22352 { ac_try='test -z "$ac_c_werror_flag" 22353 || test ! -s conftest.err' 22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22355 (eval $ac_try) 2>&5 22356 ac_status=$? 22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22358 (exit $ac_status); }; } && 22359 { ac_try='test -s conftest.$ac_objext' 22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22361 (eval $ac_try) 2>&5 22362 ac_status=$? 22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22364 (exit $ac_status); }; }; then 22365 # It does; now see whether it defined to BIG_ENDIAN or not. 22366cat >conftest.$ac_ext <<_ACEOF 22367/* confdefs.h. */ 22368_ACEOF 22369cat confdefs.h >>conftest.$ac_ext 22370cat >>conftest.$ac_ext <<_ACEOF 22371/* end confdefs.h. */ 22372#include <sys/types.h> 22373#include <sys/param.h> 22374 22375int 22376main () 22377{ 22378#if BYTE_ORDER != BIG_ENDIAN 22379 not big endian 22380#endif 22381 22382 ; 22383 return 0; 22384} 22385_ACEOF 22386rm -f conftest.$ac_objext 22387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22388 (eval $ac_compile) 2>conftest.er1 22389 ac_status=$? 22390 grep -v '^ *+' conftest.er1 >conftest.err 22391 rm -f conftest.er1 22392 cat conftest.err >&5 22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22394 (exit $ac_status); } && 22395 { ac_try='test -z "$ac_c_werror_flag" 22396 || test ! -s conftest.err' 22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22398 (eval $ac_try) 2>&5 22399 ac_status=$? 22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22401 (exit $ac_status); }; } && 22402 { ac_try='test -s conftest.$ac_objext' 22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22404 (eval $ac_try) 2>&5 22405 ac_status=$? 22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22407 (exit $ac_status); }; }; then 22408 ac_cv_c_bigendian=yes 22409else 22410 echo "$as_me: failed program was:" >&5 22411sed 's/^/| /' conftest.$ac_ext >&5 22412 22413ac_cv_c_bigendian=no 22414fi 22415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22416else 22417 echo "$as_me: failed program was:" >&5 22418sed 's/^/| /' conftest.$ac_ext >&5 22419 22420# It does not; compile a test program. 22421if test "$cross_compiling" = yes; then 22422 # try to guess the endianness by grepping values into an object file 22423 ac_cv_c_bigendian=unknown 22424 cat >conftest.$ac_ext <<_ACEOF 22425/* confdefs.h. */ 22426_ACEOF 22427cat confdefs.h >>conftest.$ac_ext 22428cat >>conftest.$ac_ext <<_ACEOF 22429/* end confdefs.h. */ 22430short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22431short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22432void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 22433short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22434short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22435void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 22436int 22437main () 22438{ 22439 _ascii (); _ebcdic (); 22440 ; 22441 return 0; 22442} 22443_ACEOF 22444rm -f conftest.$ac_objext 22445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22446 (eval $ac_compile) 2>conftest.er1 22447 ac_status=$? 22448 grep -v '^ *+' conftest.er1 >conftest.err 22449 rm -f conftest.er1 22450 cat conftest.err >&5 22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22452 (exit $ac_status); } && 22453 { ac_try='test -z "$ac_c_werror_flag" 22454 || test ! -s conftest.err' 22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22456 (eval $ac_try) 2>&5 22457 ac_status=$? 22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22459 (exit $ac_status); }; } && 22460 { ac_try='test -s conftest.$ac_objext' 22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22462 (eval $ac_try) 2>&5 22463 ac_status=$? 22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22465 (exit $ac_status); }; }; then 22466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 22467 ac_cv_c_bigendian=yes 22468fi 22469if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22470 if test "$ac_cv_c_bigendian" = unknown; then 22471 ac_cv_c_bigendian=no 22472 else 22473 # finding both strings is unlikely to happen, but who knows? 22474 ac_cv_c_bigendian=unknown 22475 fi 22476fi 22477else 22478 echo "$as_me: failed program was:" >&5 22479sed 's/^/| /' conftest.$ac_ext >&5 22480 22481fi 22482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22483else 22484 cat >conftest.$ac_ext <<_ACEOF 22485/* confdefs.h. */ 22486_ACEOF 22487cat confdefs.h >>conftest.$ac_ext 22488cat >>conftest.$ac_ext <<_ACEOF 22489/* end confdefs.h. */ 22490int 22491main () 22492{ 22493 /* Are we little or big endian? From Harbison&Steele. */ 22494 union 22495 { 22496 long l; 22497 char c[sizeof (long)]; 22498 } u; 22499 u.l = 1; 22500 exit (u.c[sizeof (long) - 1] == 1); 22501} 22502_ACEOF 22503rm -f conftest$ac_exeext 22504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22505 (eval $ac_link) 2>&5 22506 ac_status=$? 22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22510 (eval $ac_try) 2>&5 22511 ac_status=$? 22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22513 (exit $ac_status); }; }; then 22514 ac_cv_c_bigendian=no 22515else 22516 echo "$as_me: program exited with status $ac_status" >&5 22517echo "$as_me: failed program was:" >&5 22518sed 's/^/| /' conftest.$ac_ext >&5 22519 22520( exit $ac_status ) 22521ac_cv_c_bigendian=yes 22522fi 22523rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22524fi 22525fi 22526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22527fi 22528echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 22529echo "${ECHO_T}$ac_cv_c_bigendian" >&6 22530case $ac_cv_c_bigendian in 22531 yes) 22532 22533cat >>confdefs.h <<\_ACEOF 22534#define WORDS_BIGENDIAN 1 22535_ACEOF 22536 ;; 22537 no) 22538 ;; 22539 *) 22540 { { echo "$as_me:$LINENO: error: unknown endianness 22541presetting ac_cv_c_bigendian=no (or yes) will help" >&5 22542echo "$as_me: error: unknown endianness 22543presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 22544 { (exit 1); exit 1; }; } ;; 22545esac 22546 22547 ;; 22548esac 22549 22550echo "$as_me:$LINENO: checking for an implementation of va_copy()" >&5 22551echo $ECHO_N "checking for an implementation of va_copy()... $ECHO_C" >&6 22552if test "${dbus_cv_va_copy+set}" = set; then 22553 echo $ECHO_N "(cached) $ECHO_C" >&6 22554else 22555 22556 cat >conftest.$ac_ext <<_ACEOF 22557#include <stdarg.h> 22558 void f (int i, ...) { 22559 va_list args1, args2; 22560 va_start (args1, i); 22561 va_copy (args2, args1); 22562 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 22563 exit (1); 22564 va_end (args1); va_end (args2); 22565 } 22566 int main() { 22567 f (0, 42); 22568 return 0; 22569 } 22570_ACEOF 22571rm -f conftest.$ac_objext conftest$ac_exeext 22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22573 (eval $ac_link) 2>conftest.er1 22574 ac_status=$? 22575 grep -v '^ *+' conftest.er1 >conftest.err 22576 rm -f conftest.er1 22577 cat conftest.err >&5 22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22579 (exit $ac_status); } && 22580 { ac_try='test -z "$ac_c_werror_flag" 22581 || test ! -s conftest.err' 22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22583 (eval $ac_try) 2>&5 22584 ac_status=$? 22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22586 (exit $ac_status); }; } && 22587 { ac_try='test -s conftest$ac_exeext' 22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22589 (eval $ac_try) 2>&5 22590 ac_status=$? 22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22592 (exit $ac_status); }; }; then 22593 dbus_cv_va_copy=yes 22594else 22595 echo "$as_me: failed program was:" >&5 22596sed 's/^/| /' conftest.$ac_ext >&5 22597 22598dbus_cv_va_copy=no 22599fi 22600rm -f conftest.err conftest.$ac_objext \ 22601 conftest$ac_exeext conftest.$ac_ext 22602 22603fi 22604echo "$as_me:$LINENO: result: $dbus_cv_va_copy" >&5 22605echo "${ECHO_T}$dbus_cv_va_copy" >&6 22606echo "$as_me:$LINENO: checking for an implementation of __va_copy()" >&5 22607echo $ECHO_N "checking for an implementation of __va_copy()... $ECHO_C" >&6 22608if test "${dbus_cv___va_copy+set}" = set; then 22609 echo $ECHO_N "(cached) $ECHO_C" >&6 22610else 22611 22612 cat >conftest.$ac_ext <<_ACEOF 22613#include <stdarg.h> 22614 void f (int i, ...) { 22615 va_list args1, args2; 22616 va_start (args1, i); 22617 __va_copy (args2, args1); 22618 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 22619 exit (1); 22620 va_end (args1); va_end (args2); 22621 } 22622 int main() { 22623 f (0, 42); 22624 return 0; 22625 } 22626_ACEOF 22627rm -f conftest.$ac_objext conftest$ac_exeext 22628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22629 (eval $ac_link) 2>conftest.er1 22630 ac_status=$? 22631 grep -v '^ *+' conftest.er1 >conftest.err 22632 rm -f conftest.er1 22633 cat conftest.err >&5 22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22635 (exit $ac_status); } && 22636 { ac_try='test -z "$ac_c_werror_flag" 22637 || test ! -s conftest.err' 22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22639 (eval $ac_try) 2>&5 22640 ac_status=$? 22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22642 (exit $ac_status); }; } && 22643 { ac_try='test -s conftest$ac_exeext' 22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22645 (eval $ac_try) 2>&5 22646 ac_status=$? 22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22648 (exit $ac_status); }; }; then 22649 dbus_cv___va_copy=yes 22650else 22651 echo "$as_me: failed program was:" >&5 22652sed 's/^/| /' conftest.$ac_ext >&5 22653 22654dbus_cv___va_copy=no 22655fi 22656rm -f conftest.err conftest.$ac_objext \ 22657 conftest$ac_exeext conftest.$ac_ext 22658 22659fi 22660echo "$as_me:$LINENO: result: $dbus_cv___va_copy" >&5 22661echo "${ECHO_T}$dbus_cv___va_copy" >&6 22662 22663if test "x$dbus_cv_va_copy" = "xyes"; then 22664 dbus_va_copy_func=va_copy 22665else if test "x$dbus_cv___va_copy" = "xyes"; then 22666 dbus_va_copy_func=__va_copy 22667fi 22668fi 22669 22670if test -n "$dbus_va_copy_func"; then 22671 22672cat >>confdefs.h <<_ACEOF 22673#define DBUS_VA_COPY $dbus_va_copy_func 22674_ACEOF 22675 22676fi 22677 22678ac_ext=c 22679ac_cpp='$CPP $CPPFLAGS' 22680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22682ac_compiler_gnu=$ac_cv_c_compiler_gnu 22683 22684echo "$as_me:$LINENO: checking whether va_lists can be copied by value" >&5 22685echo $ECHO_N "checking whether va_lists can be copied by value... $ECHO_C" >&6 22686if test "${dbus_cv_va_val_copy+set}" = set; then 22687 echo $ECHO_N "(cached) $ECHO_C" >&6 22688else 22689 if test "$cross_compiling" = yes; then 22690 dbus_cv_va_val_copy=yes 22691else 22692 cat >conftest.$ac_ext <<_ACEOF 22693/* confdefs.h. */ 22694_ACEOF 22695cat confdefs.h >>conftest.$ac_ext 22696cat >>conftest.$ac_ext <<_ACEOF 22697/* end confdefs.h. */ 22698 22699 #include <stdarg.h> 22700 22701int 22702main () 22703{ 22704 22705 void f (int i, ...) { 22706 va_list args1, args2; 22707 va_start (args1, i); 22708 args2 = args1; 22709 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 22710 exit (1); 22711 va_end (args1); va_end (args2); 22712 } 22713 int main() { 22714 f (0, 42); 22715 return 0; 22716 } 22717 22718 ; 22719 return 0; 22720} 22721_ACEOF 22722rm -f conftest$ac_exeext 22723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22724 (eval $ac_link) 2>&5 22725 ac_status=$? 22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22729 (eval $ac_try) 2>&5 22730 ac_status=$? 22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22732 (exit $ac_status); }; }; then 22733 dbus_cv_va_val_copy=yes 22734else 22735 echo "$as_me: program exited with status $ac_status" >&5 22736echo "$as_me: failed program was:" >&5 22737sed 's/^/| /' conftest.$ac_ext >&5 22738 22739( exit $ac_status ) 22740dbus_cv_va_val_copy=no 22741fi 22742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22743fi 22744 22745fi 22746echo "$as_me:$LINENO: result: $dbus_cv_va_val_copy" >&5 22747echo "${ECHO_T}$dbus_cv_va_val_copy" >&6 22748ac_ext=c 22749ac_cpp='$CPP $CPPFLAGS' 22750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22752ac_compiler_gnu=$ac_cv_c_compiler_gnu 22753 22754 22755if test "x$dbus_cv_va_val_copy" = "xno"; then 22756 22757cat >>confdefs.h <<\_ACEOF 22758#define DBUS_VA_COPY_AS_ARRAY 1 22759_ACEOF 22760 22761fi 22762 22763 22764#### Atomic integers (checks by Sebastian Wilhelmi for GLib) 22765echo "$as_me:$LINENO: checking whether to use inline assembler routines for atomic integers" >&5 22766echo $ECHO_N "checking whether to use inline assembler routines for atomic integers... $ECHO_C" >&6 22767have_atomic_inc=no 22768if test x"$GCC" = xyes; then 22769 if test "x$enable_ansi" = "xyes"; then 22770 echo "$as_me:$LINENO: result: no" >&5 22771echo "${ECHO_T}no" >&6 22772 else 22773 case $host_cpu in 22774 i386) 22775 echo "$as_me:$LINENO: result: no" >&5 22776echo "${ECHO_T}no" >&6 22777 ;; 22778 i?86) 22779 case $host_os in 22780 darwin*) 22781 echo "$as_me:$LINENO: result: darwin" >&5 22782echo "${ECHO_T}darwin" >&6 22783 # check at compile-time, so that it is possible to build universal 22784 # (with multiple architectures at once on the compile line) 22785 22786 22787 ;; 22788 *) 22789 echo "$as_me:$LINENO: result: i486" >&5 22790echo "${ECHO_T}i486" >&6 22791 22792cat >>confdefs.h <<_ACEOF 22793#define DBUS_USE_ATOMIC_INT_486 1 22794_ACEOF 22795 22796 ;; 22797 esac 22798 have_atomic_inc=yes 22799 ;; 22800 *) 22801 echo "$as_me:$LINENO: result: no" >&5 22802echo "${ECHO_T}no" >&6 22803 ;; 22804 esac 22805 fi 22806fi 22807if test x$have_atomic_inc = xyes ; then 22808 case $host_os in 22809 darwin*) 22810 22811 22812 ;; 22813 *) 22814 22815cat >>confdefs.h <<_ACEOF 22816#define DBUS_HAVE_ATOMIC_INT 1 22817_ACEOF 22818 22819 ;; 22820 esac 22821fi 22822 22823#### Various functions 22824 22825echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 22826echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 22827if test "${ac_cv_lib_socket_socket+set}" = set; then 22828 echo $ECHO_N "(cached) $ECHO_C" >&6 22829else 22830 ac_check_lib_save_LIBS=$LIBS 22831LIBS="-lsocket $LIBS" 22832cat >conftest.$ac_ext <<_ACEOF 22833/* confdefs.h. */ 22834_ACEOF 22835cat confdefs.h >>conftest.$ac_ext 22836cat >>conftest.$ac_ext <<_ACEOF 22837/* end confdefs.h. */ 22838 22839/* Override any gcc2 internal prototype to avoid an error. */ 22840#ifdef __cplusplus 22841extern "C" 22842#endif 22843/* We use char because int might match the return type of a gcc2 22844 builtin and then its argument prototype would still apply. */ 22845char socket (); 22846int 22847main () 22848{ 22849socket (); 22850 ; 22851 return 0; 22852} 22853_ACEOF 22854rm -f conftest.$ac_objext conftest$ac_exeext 22855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22856 (eval $ac_link) 2>conftest.er1 22857 ac_status=$? 22858 grep -v '^ *+' conftest.er1 >conftest.err 22859 rm -f conftest.er1 22860 cat conftest.err >&5 22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22862 (exit $ac_status); } && 22863 { ac_try='test -z "$ac_c_werror_flag" 22864 || test ! -s conftest.err' 22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22866 (eval $ac_try) 2>&5 22867 ac_status=$? 22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22869 (exit $ac_status); }; } && 22870 { ac_try='test -s conftest$ac_exeext' 22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22872 (eval $ac_try) 2>&5 22873 ac_status=$? 22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22875 (exit $ac_status); }; }; then 22876 ac_cv_lib_socket_socket=yes 22877else 22878 echo "$as_me: failed program was:" >&5 22879sed 's/^/| /' conftest.$ac_ext >&5 22880 22881ac_cv_lib_socket_socket=no 22882fi 22883rm -f conftest.err conftest.$ac_objext \ 22884 conftest$ac_exeext conftest.$ac_ext 22885LIBS=$ac_check_lib_save_LIBS 22886fi 22887echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 22888echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 22889if test $ac_cv_lib_socket_socket = yes; then 22890 cat >>confdefs.h <<_ACEOF 22891#define HAVE_LIBSOCKET 1 22892_ACEOF 22893 22894 LIBS="-lsocket $LIBS" 22895 22896fi 22897 22898echo "$as_me:$LINENO: checking for gethostbyname" >&5 22899echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 22900if test "${ac_cv_func_gethostbyname+set}" = set; then 22901 echo $ECHO_N "(cached) $ECHO_C" >&6 22902else 22903 cat >conftest.$ac_ext <<_ACEOF 22904/* confdefs.h. */ 22905_ACEOF 22906cat confdefs.h >>conftest.$ac_ext 22907cat >>conftest.$ac_ext <<_ACEOF 22908/* end confdefs.h. */ 22909/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 22910 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22911#define gethostbyname innocuous_gethostbyname 22912 22913/* System header to define __stub macros and hopefully few prototypes, 22914 which can conflict with char gethostbyname (); below. 22915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22916 <limits.h> exists even on freestanding compilers. */ 22917 22918#ifdef __STDC__ 22919# include <limits.h> 22920#else 22921# include <assert.h> 22922#endif 22923 22924#undef gethostbyname 22925 22926/* Override any gcc2 internal prototype to avoid an error. */ 22927#ifdef __cplusplus 22928extern "C" 22929{ 22930#endif 22931/* We use char because int might match the return type of a gcc2 22932 builtin and then its argument prototype would still apply. */ 22933char gethostbyname (); 22934/* The GNU C library defines this for functions which it implements 22935 to always fail with ENOSYS. Some functions are actually named 22936 something starting with __ and the normal name is an alias. */ 22937#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 22938choke me 22939#else 22940char (*f) () = gethostbyname; 22941#endif 22942#ifdef __cplusplus 22943} 22944#endif 22945 22946int 22947main () 22948{ 22949return f != gethostbyname; 22950 ; 22951 return 0; 22952} 22953_ACEOF 22954rm -f conftest.$ac_objext conftest$ac_exeext 22955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22956 (eval $ac_link) 2>conftest.er1 22957 ac_status=$? 22958 grep -v '^ *+' conftest.er1 >conftest.err 22959 rm -f conftest.er1 22960 cat conftest.err >&5 22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22962 (exit $ac_status); } && 22963 { ac_try='test -z "$ac_c_werror_flag" 22964 || test ! -s conftest.err' 22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22966 (eval $ac_try) 2>&5 22967 ac_status=$? 22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22969 (exit $ac_status); }; } && 22970 { ac_try='test -s conftest$ac_exeext' 22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22972 (eval $ac_try) 2>&5 22973 ac_status=$? 22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22975 (exit $ac_status); }; }; then 22976 ac_cv_func_gethostbyname=yes 22977else 22978 echo "$as_me: failed program was:" >&5 22979sed 's/^/| /' conftest.$ac_ext >&5 22980 22981ac_cv_func_gethostbyname=no 22982fi 22983rm -f conftest.err conftest.$ac_objext \ 22984 conftest$ac_exeext conftest.$ac_ext 22985fi 22986echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 22987echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 22988if test $ac_cv_func_gethostbyname = yes; then 22989 : 22990else 22991 22992echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 22993echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 22994if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 22995 echo $ECHO_N "(cached) $ECHO_C" >&6 22996else 22997 ac_check_lib_save_LIBS=$LIBS 22998LIBS="-lnsl $LIBS" 22999cat >conftest.$ac_ext <<_ACEOF 23000/* confdefs.h. */ 23001_ACEOF 23002cat confdefs.h >>conftest.$ac_ext 23003cat >>conftest.$ac_ext <<_ACEOF 23004/* end confdefs.h. */ 23005 23006/* Override any gcc2 internal prototype to avoid an error. */ 23007#ifdef __cplusplus 23008extern "C" 23009#endif 23010/* We use char because int might match the return type of a gcc2 23011 builtin and then its argument prototype would still apply. */ 23012char gethostbyname (); 23013int 23014main () 23015{ 23016gethostbyname (); 23017 ; 23018 return 0; 23019} 23020_ACEOF 23021rm -f conftest.$ac_objext conftest$ac_exeext 23022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23023 (eval $ac_link) 2>conftest.er1 23024 ac_status=$? 23025 grep -v '^ *+' conftest.er1 >conftest.err 23026 rm -f conftest.er1 23027 cat conftest.err >&5 23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23029 (exit $ac_status); } && 23030 { ac_try='test -z "$ac_c_werror_flag" 23031 || test ! -s conftest.err' 23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23033 (eval $ac_try) 2>&5 23034 ac_status=$? 23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23036 (exit $ac_status); }; } && 23037 { ac_try='test -s conftest$ac_exeext' 23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23039 (eval $ac_try) 2>&5 23040 ac_status=$? 23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23042 (exit $ac_status); }; }; then 23043 ac_cv_lib_nsl_gethostbyname=yes 23044else 23045 echo "$as_me: failed program was:" >&5 23046sed 's/^/| /' conftest.$ac_ext >&5 23047 23048ac_cv_lib_nsl_gethostbyname=no 23049fi 23050rm -f conftest.err conftest.$ac_objext \ 23051 conftest$ac_exeext conftest.$ac_ext 23052LIBS=$ac_check_lib_save_LIBS 23053fi 23054echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 23055echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 23056if test $ac_cv_lib_nsl_gethostbyname = yes; then 23057 cat >>confdefs.h <<_ACEOF 23058#define HAVE_LIBNSL 1 23059_ACEOF 23060 23061 LIBS="-lnsl $LIBS" 23062 23063fi 23064 23065fi 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078for ac_func in vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf 23079do 23080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23081echo "$as_me:$LINENO: checking for $ac_func" >&5 23082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23083if eval "test \"\${$as_ac_var+set}\" = set"; then 23084 echo $ECHO_N "(cached) $ECHO_C" >&6 23085else 23086 cat >conftest.$ac_ext <<_ACEOF 23087/* confdefs.h. */ 23088_ACEOF 23089cat confdefs.h >>conftest.$ac_ext 23090cat >>conftest.$ac_ext <<_ACEOF 23091/* end confdefs.h. */ 23092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23093 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23094#define $ac_func innocuous_$ac_func 23095 23096/* System header to define __stub macros and hopefully few prototypes, 23097 which can conflict with char $ac_func (); below. 23098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23099 <limits.h> exists even on freestanding compilers. */ 23100 23101#ifdef __STDC__ 23102# include <limits.h> 23103#else 23104# include <assert.h> 23105#endif 23106 23107#undef $ac_func 23108 23109/* Override any gcc2 internal prototype to avoid an error. */ 23110#ifdef __cplusplus 23111extern "C" 23112{ 23113#endif 23114/* We use char because int might match the return type of a gcc2 23115 builtin and then its argument prototype would still apply. */ 23116char $ac_func (); 23117/* The GNU C library defines this for functions which it implements 23118 to always fail with ENOSYS. Some functions are actually named 23119 something starting with __ and the normal name is an alias. */ 23120#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23121choke me 23122#else 23123char (*f) () = $ac_func; 23124#endif 23125#ifdef __cplusplus 23126} 23127#endif 23128 23129int 23130main () 23131{ 23132return f != $ac_func; 23133 ; 23134 return 0; 23135} 23136_ACEOF 23137rm -f conftest.$ac_objext conftest$ac_exeext 23138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23139 (eval $ac_link) 2>conftest.er1 23140 ac_status=$? 23141 grep -v '^ *+' conftest.er1 >conftest.err 23142 rm -f conftest.er1 23143 cat conftest.err >&5 23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23145 (exit $ac_status); } && 23146 { ac_try='test -z "$ac_c_werror_flag" 23147 || test ! -s conftest.err' 23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23149 (eval $ac_try) 2>&5 23150 ac_status=$? 23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23152 (exit $ac_status); }; } && 23153 { ac_try='test -s conftest$ac_exeext' 23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23155 (eval $ac_try) 2>&5 23156 ac_status=$? 23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23158 (exit $ac_status); }; }; then 23159 eval "$as_ac_var=yes" 23160else 23161 echo "$as_me: failed program was:" >&5 23162sed 's/^/| /' conftest.$ac_ext >&5 23163 23164eval "$as_ac_var=no" 23165fi 23166rm -f conftest.err conftest.$ac_objext \ 23167 conftest$ac_exeext conftest.$ac_ext 23168fi 23169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23171if test `eval echo '${'$as_ac_var'}'` = yes; then 23172 cat >>confdefs.h <<_ACEOF 23173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23174_ACEOF 23175 23176fi 23177done 23178 23179 23180echo "$as_me:$LINENO: checking for dirfd" >&5 23181echo $ECHO_N "checking for dirfd... $ECHO_C" >&6 23182cat >conftest.$ac_ext <<_ACEOF 23183/* confdefs.h. */ 23184_ACEOF 23185cat confdefs.h >>conftest.$ac_ext 23186cat >>conftest.$ac_ext <<_ACEOF 23187/* end confdefs.h. */ 23188 23189#include <sys/types.h> 23190#include <dirent.h> 23191 23192int 23193main () 23194{ 23195 23196DIR *dirp; 23197dirp = opendir("."); 23198dirfd(dirp); 23199closedir(dirp); 23200 23201 ; 23202 return 0; 23203} 23204_ACEOF 23205rm -f conftest.$ac_objext conftest$ac_exeext 23206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23207 (eval $ac_link) 2>conftest.er1 23208 ac_status=$? 23209 grep -v '^ *+' conftest.er1 >conftest.err 23210 rm -f conftest.er1 23211 cat conftest.err >&5 23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23213 (exit $ac_status); } && 23214 { ac_try='test -z "$ac_c_werror_flag" 23215 || test ! -s conftest.err' 23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23217 (eval $ac_try) 2>&5 23218 ac_status=$? 23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23220 (exit $ac_status); }; } && 23221 { ac_try='test -s conftest$ac_exeext' 23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23223 (eval $ac_try) 2>&5 23224 ac_status=$? 23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23226 (exit $ac_status); }; }; then 23227 dbus_have_dirfd=yes 23228else 23229 echo "$as_me: failed program was:" >&5 23230sed 's/^/| /' conftest.$ac_ext >&5 23231 23232dbus_have_dirfd=no 23233fi 23234rm -f conftest.err conftest.$ac_objext \ 23235 conftest$ac_exeext conftest.$ac_ext 23236echo "$as_me:$LINENO: result: $dbus_have_dirfd" >&5 23237echo "${ECHO_T}$dbus_have_dirfd" >&6 23238if test "$dbus_have_dirfd" = yes; then 23239 23240cat >>confdefs.h <<\_ACEOF 23241#define HAVE_DIRFD 1 23242_ACEOF 23243 23244else 23245 echo "$as_me:$LINENO: checking for DIR *dirp->dd_fd" >&5 23246echo $ECHO_N "checking for DIR *dirp->dd_fd... $ECHO_C" >&6 23247 cat >conftest.$ac_ext <<_ACEOF 23248/* confdefs.h. */ 23249_ACEOF 23250cat confdefs.h >>conftest.$ac_ext 23251cat >>conftest.$ac_ext <<_ACEOF 23252/* end confdefs.h. */ 23253 23254#include <sys/types.h> 23255#include <dirent.h> 23256 23257int 23258main () 23259{ 23260 23261DIR *dirp; 23262int fd; 23263dirp = opendir("."); 23264fd = dirp->dd_fd; 23265closedir(dirp); 23266 23267 ; 23268 return 0; 23269} 23270_ACEOF 23271rm -f conftest.$ac_objext conftest$ac_exeext 23272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23273 (eval $ac_link) 2>conftest.er1 23274 ac_status=$? 23275 grep -v '^ *+' conftest.er1 >conftest.err 23276 rm -f conftest.er1 23277 cat conftest.err >&5 23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23279 (exit $ac_status); } && 23280 { ac_try='test -z "$ac_c_werror_flag" 23281 || test ! -s conftest.err' 23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23283 (eval $ac_try) 2>&5 23284 ac_status=$? 23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23286 (exit $ac_status); }; } && 23287 { ac_try='test -s conftest$ac_exeext' 23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23289 (eval $ac_try) 2>&5 23290 ac_status=$? 23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23292 (exit $ac_status); }; }; then 23293 dbus_have_ddfd=yes 23294else 23295 echo "$as_me: failed program was:" >&5 23296sed 's/^/| /' conftest.$ac_ext >&5 23297 23298dbus_have_ddfd=no 23299fi 23300rm -f conftest.err conftest.$ac_objext \ 23301 conftest$ac_exeext conftest.$ac_ext 23302 echo "$as_me:$LINENO: result: $dbus_have_ddfd" >&5 23303echo "${ECHO_T}$dbus_have_ddfd" >&6 23304 if test "$dbus_have_ddfd" = yes; then 23305 23306cat >>confdefs.h <<\_ACEOF 23307#define HAVE_DDFD 1 23308_ACEOF 23309 23310 fi 23311fi 23312 23313 23314for ac_header in execinfo.h 23315do 23316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23317if eval "test \"\${$as_ac_Header+set}\" = set"; then 23318 echo "$as_me:$LINENO: checking for $ac_header" >&5 23319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23320if eval "test \"\${$as_ac_Header+set}\" = set"; then 23321 echo $ECHO_N "(cached) $ECHO_C" >&6 23322fi 23323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23325else 23326 # Is the header compilable? 23327echo "$as_me:$LINENO: checking $ac_header usability" >&5 23328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23329cat >conftest.$ac_ext <<_ACEOF 23330/* confdefs.h. */ 23331_ACEOF 23332cat confdefs.h >>conftest.$ac_ext 23333cat >>conftest.$ac_ext <<_ACEOF 23334/* end confdefs.h. */ 23335$ac_includes_default 23336#include <$ac_header> 23337_ACEOF 23338rm -f conftest.$ac_objext 23339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23340 (eval $ac_compile) 2>conftest.er1 23341 ac_status=$? 23342 grep -v '^ *+' conftest.er1 >conftest.err 23343 rm -f conftest.er1 23344 cat conftest.err >&5 23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23346 (exit $ac_status); } && 23347 { ac_try='test -z "$ac_c_werror_flag" 23348 || test ! -s conftest.err' 23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23350 (eval $ac_try) 2>&5 23351 ac_status=$? 23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23353 (exit $ac_status); }; } && 23354 { ac_try='test -s conftest.$ac_objext' 23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23356 (eval $ac_try) 2>&5 23357 ac_status=$? 23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23359 (exit $ac_status); }; }; then 23360 ac_header_compiler=yes 23361else 23362 echo "$as_me: failed program was:" >&5 23363sed 's/^/| /' conftest.$ac_ext >&5 23364 23365ac_header_compiler=no 23366fi 23367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23369echo "${ECHO_T}$ac_header_compiler" >&6 23370 23371# Is the header present? 23372echo "$as_me:$LINENO: checking $ac_header presence" >&5 23373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23374cat >conftest.$ac_ext <<_ACEOF 23375/* confdefs.h. */ 23376_ACEOF 23377cat confdefs.h >>conftest.$ac_ext 23378cat >>conftest.$ac_ext <<_ACEOF 23379/* end confdefs.h. */ 23380#include <$ac_header> 23381_ACEOF 23382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 23383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 23384 ac_status=$? 23385 grep -v '^ *+' conftest.er1 >conftest.err 23386 rm -f conftest.er1 23387 cat conftest.err >&5 23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23389 (exit $ac_status); } >/dev/null; then 23390 if test -s conftest.err; then 23391 ac_cpp_err=$ac_c_preproc_warn_flag 23392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 23393 else 23394 ac_cpp_err= 23395 fi 23396else 23397 ac_cpp_err=yes 23398fi 23399if test -z "$ac_cpp_err"; then 23400 ac_header_preproc=yes 23401else 23402 echo "$as_me: failed program was:" >&5 23403sed 's/^/| /' conftest.$ac_ext >&5 23404 23405 ac_header_preproc=no 23406fi 23407rm -f conftest.err conftest.$ac_ext 23408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23409echo "${ECHO_T}$ac_header_preproc" >&6 23410 23411# So? What about this header? 23412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23413 yes:no: ) 23414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23418 ac_header_preproc=yes 23419 ;; 23420 no:yes:* ) 23421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23433 ( 23434 cat <<\_ASBOX 23435## ------------------------------------------ ## 23436## Report this to the AC_PACKAGE_NAME lists. ## 23437## ------------------------------------------ ## 23438_ASBOX 23439 ) | 23440 sed "s/^/$as_me: WARNING: /" >&2 23441 ;; 23442esac 23443echo "$as_me:$LINENO: checking for $ac_header" >&5 23444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23445if eval "test \"\${$as_ac_Header+set}\" = set"; then 23446 echo $ECHO_N "(cached) $ECHO_C" >&6 23447else 23448 eval "$as_ac_Header=\$ac_header_preproc" 23449fi 23450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23452 23453fi 23454if test `eval echo '${'$as_ac_Header'}'` = yes; then 23455 cat >>confdefs.h <<_ACEOF 23456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23457_ACEOF 23458 23459for ac_func in backtrace 23460do 23461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23462echo "$as_me:$LINENO: checking for $ac_func" >&5 23463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23464if eval "test \"\${$as_ac_var+set}\" = set"; then 23465 echo $ECHO_N "(cached) $ECHO_C" >&6 23466else 23467 cat >conftest.$ac_ext <<_ACEOF 23468/* confdefs.h. */ 23469_ACEOF 23470cat confdefs.h >>conftest.$ac_ext 23471cat >>conftest.$ac_ext <<_ACEOF 23472/* end confdefs.h. */ 23473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23474 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23475#define $ac_func innocuous_$ac_func 23476 23477/* System header to define __stub macros and hopefully few prototypes, 23478 which can conflict with char $ac_func (); below. 23479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23480 <limits.h> exists even on freestanding compilers. */ 23481 23482#ifdef __STDC__ 23483# include <limits.h> 23484#else 23485# include <assert.h> 23486#endif 23487 23488#undef $ac_func 23489 23490/* Override any gcc2 internal prototype to avoid an error. */ 23491#ifdef __cplusplus 23492extern "C" 23493{ 23494#endif 23495/* We use char because int might match the return type of a gcc2 23496 builtin and then its argument prototype would still apply. */ 23497char $ac_func (); 23498/* The GNU C library defines this for functions which it implements 23499 to always fail with ENOSYS. Some functions are actually named 23500 something starting with __ and the normal name is an alias. */ 23501#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23502choke me 23503#else 23504char (*f) () = $ac_func; 23505#endif 23506#ifdef __cplusplus 23507} 23508#endif 23509 23510int 23511main () 23512{ 23513return f != $ac_func; 23514 ; 23515 return 0; 23516} 23517_ACEOF 23518rm -f conftest.$ac_objext conftest$ac_exeext 23519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23520 (eval $ac_link) 2>conftest.er1 23521 ac_status=$? 23522 grep -v '^ *+' conftest.er1 >conftest.err 23523 rm -f conftest.er1 23524 cat conftest.err >&5 23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23526 (exit $ac_status); } && 23527 { ac_try='test -z "$ac_c_werror_flag" 23528 || test ! -s conftest.err' 23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23530 (eval $ac_try) 2>&5 23531 ac_status=$? 23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23533 (exit $ac_status); }; } && 23534 { ac_try='test -s conftest$ac_exeext' 23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23536 (eval $ac_try) 2>&5 23537 ac_status=$? 23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23539 (exit $ac_status); }; }; then 23540 eval "$as_ac_var=yes" 23541else 23542 echo "$as_me: failed program was:" >&5 23543sed 's/^/| /' conftest.$ac_ext >&5 23544 23545eval "$as_ac_var=no" 23546fi 23547rm -f conftest.err conftest.$ac_objext \ 23548 conftest$ac_exeext conftest.$ac_ext 23549fi 23550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23552if test `eval echo '${'$as_ac_var'}'` = yes; then 23553 cat >>confdefs.h <<_ACEOF 23554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23555_ACEOF 23556 23557fi 23558done 23559 23560fi 23561 23562done 23563 23564 23565 23566for ac_header in errno.h 23567do 23568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23569if eval "test \"\${$as_ac_Header+set}\" = set"; then 23570 echo "$as_me:$LINENO: checking for $ac_header" >&5 23571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23572if eval "test \"\${$as_ac_Header+set}\" = set"; then 23573 echo $ECHO_N "(cached) $ECHO_C" >&6 23574fi 23575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23577else 23578 # Is the header compilable? 23579echo "$as_me:$LINENO: checking $ac_header usability" >&5 23580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23581cat >conftest.$ac_ext <<_ACEOF 23582/* confdefs.h. */ 23583_ACEOF 23584cat confdefs.h >>conftest.$ac_ext 23585cat >>conftest.$ac_ext <<_ACEOF 23586/* end confdefs.h. */ 23587$ac_includes_default 23588#include <$ac_header> 23589_ACEOF 23590rm -f conftest.$ac_objext 23591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23592 (eval $ac_compile) 2>conftest.er1 23593 ac_status=$? 23594 grep -v '^ *+' conftest.er1 >conftest.err 23595 rm -f conftest.er1 23596 cat conftest.err >&5 23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23598 (exit $ac_status); } && 23599 { ac_try='test -z "$ac_c_werror_flag" 23600 || test ! -s conftest.err' 23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23602 (eval $ac_try) 2>&5 23603 ac_status=$? 23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23605 (exit $ac_status); }; } && 23606 { ac_try='test -s conftest.$ac_objext' 23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23608 (eval $ac_try) 2>&5 23609 ac_status=$? 23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23611 (exit $ac_status); }; }; then 23612 ac_header_compiler=yes 23613else 23614 echo "$as_me: failed program was:" >&5 23615sed 's/^/| /' conftest.$ac_ext >&5 23616 23617ac_header_compiler=no 23618fi 23619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23621echo "${ECHO_T}$ac_header_compiler" >&6 23622 23623# Is the header present? 23624echo "$as_me:$LINENO: checking $ac_header presence" >&5 23625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23626cat >conftest.$ac_ext <<_ACEOF 23627/* confdefs.h. */ 23628_ACEOF 23629cat confdefs.h >>conftest.$ac_ext 23630cat >>conftest.$ac_ext <<_ACEOF 23631/* end confdefs.h. */ 23632#include <$ac_header> 23633_ACEOF 23634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 23635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 23636 ac_status=$? 23637 grep -v '^ *+' conftest.er1 >conftest.err 23638 rm -f conftest.er1 23639 cat conftest.err >&5 23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23641 (exit $ac_status); } >/dev/null; then 23642 if test -s conftest.err; then 23643 ac_cpp_err=$ac_c_preproc_warn_flag 23644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 23645 else 23646 ac_cpp_err= 23647 fi 23648else 23649 ac_cpp_err=yes 23650fi 23651if test -z "$ac_cpp_err"; then 23652 ac_header_preproc=yes 23653else 23654 echo "$as_me: failed program was:" >&5 23655sed 's/^/| /' conftest.$ac_ext >&5 23656 23657 ac_header_preproc=no 23658fi 23659rm -f conftest.err conftest.$ac_ext 23660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23661echo "${ECHO_T}$ac_header_preproc" >&6 23662 23663# So? What about this header? 23664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23665 yes:no: ) 23666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23670 ac_header_preproc=yes 23671 ;; 23672 no:yes:* ) 23673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23685 ( 23686 cat <<\_ASBOX 23687## ------------------------------------------ ## 23688## Report this to the AC_PACKAGE_NAME lists. ## 23689## ------------------------------------------ ## 23690_ASBOX 23691 ) | 23692 sed "s/^/$as_me: WARNING: /" >&2 23693 ;; 23694esac 23695echo "$as_me:$LINENO: checking for $ac_header" >&5 23696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23697if eval "test \"\${$as_ac_Header+set}\" = set"; then 23698 echo $ECHO_N "(cached) $ECHO_C" >&6 23699else 23700 eval "$as_ac_Header=\$ac_header_preproc" 23701fi 23702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23704 23705fi 23706if test `eval echo '${'$as_ac_Header'}'` = yes; then 23707 cat >>confdefs.h <<_ACEOF 23708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23709_ACEOF 23710 23711fi 23712 23713done 23714 23715 23716# checking for a posix version of getpwnam_r 23717# if we are cross compiling and can not run the test 23718# assume getpwnam_r is the posix version 23719# it is up to the person cross compiling to change 23720# this behavior if desired 23721ac_ext=c 23722ac_cpp='$CPP $CPPFLAGS' 23723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23725ac_compiler_gnu=$ac_cv_c_compiler_gnu 23726 23727echo "$as_me:$LINENO: checking for posix getpwnam_r" >&5 23728echo $ECHO_N "checking for posix getpwnam_r... $ECHO_C" >&6 23729if test "${ac_cv_func_posix_getpwnam_r+set}" = set; then 23730 echo $ECHO_N "(cached) $ECHO_C" >&6 23731else 23732 if test "$cross_compiling" = yes; then 23733 ac_cv_func_posix_getpwnam_r=yes 23734 23735else 23736 cat >conftest.$ac_ext <<_ACEOF 23737/* confdefs.h. */ 23738_ACEOF 23739cat confdefs.h >>conftest.$ac_ext 23740cat >>conftest.$ac_ext <<_ACEOF 23741/* end confdefs.h. */ 23742 23743#include <errno.h> 23744#include <pwd.h> 23745 23746int 23747main () 23748{ 23749 23750 char buffer[10000]; 23751 struct passwd pwd, *pwptr = &pwd; 23752 int error; 23753 errno = 0; 23754 error = getpwnam_r ("", &pwd, buffer, 23755 sizeof (buffer), &pwptr); 23756 return (error < 0 && errno == ENOSYS) 23757 || error == ENOSYS; 23758 23759 ; 23760 return 0; 23761} 23762_ACEOF 23763rm -f conftest$ac_exeext 23764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23765 (eval $ac_link) 2>&5 23766 ac_status=$? 23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23770 (eval $ac_try) 2>&5 23771 ac_status=$? 23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23773 (exit $ac_status); }; }; then 23774 ac_cv_func_posix_getpwnam_r=yes 23775else 23776 echo "$as_me: program exited with status $ac_status" >&5 23777echo "$as_me: failed program was:" >&5 23778sed 's/^/| /' conftest.$ac_ext >&5 23779 23780( exit $ac_status ) 23781ac_cv_func_posix_getpwnam_r=no 23782fi 23783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23784fi 23785fi 23786echo "$as_me:$LINENO: result: $ac_cv_func_posix_getpwnam_r" >&5 23787echo "${ECHO_T}$ac_cv_func_posix_getpwnam_r" >&6 23788ac_ext=c 23789ac_cpp='$CPP $CPPFLAGS' 23790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23792ac_compiler_gnu=$ac_cv_c_compiler_gnu 23793 23794 23795if test "$ac_cv_func_posix_getpwnam_r" = yes; then 23796 23797cat >>confdefs.h <<\_ACEOF 23798#define HAVE_POSIX_GETPWNAM_R 1 23799_ACEOF 23800 23801else 23802 echo "$as_me:$LINENO: checking for nonposix getpwnam_r" >&5 23803echo $ECHO_N "checking for nonposix getpwnam_r... $ECHO_C" >&6 23804if test "${ac_cv_func_nonposix_getpwnam_r+set}" = set; then 23805 echo $ECHO_N "(cached) $ECHO_C" >&6 23806else 23807 cat >conftest.$ac_ext <<_ACEOF 23808/* confdefs.h. */ 23809_ACEOF 23810cat confdefs.h >>conftest.$ac_ext 23811cat >>conftest.$ac_ext <<_ACEOF 23812/* end confdefs.h. */ 23813#include <pwd.h> 23814int 23815main () 23816{ 23817char buffer[10000]; 23818 struct passwd pwd; 23819 getpwnam_r ("", &pwd, buffer, 23820 sizeof (buffer)); 23821 ; 23822 return 0; 23823} 23824_ACEOF 23825rm -f conftest.$ac_objext conftest$ac_exeext 23826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23827 (eval $ac_link) 2>conftest.er1 23828 ac_status=$? 23829 grep -v '^ *+' conftest.er1 >conftest.err 23830 rm -f conftest.er1 23831 cat conftest.err >&5 23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23833 (exit $ac_status); } && 23834 { ac_try='test -z "$ac_c_werror_flag" 23835 || test ! -s conftest.err' 23836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23837 (eval $ac_try) 2>&5 23838 ac_status=$? 23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23840 (exit $ac_status); }; } && 23841 { ac_try='test -s conftest$ac_exeext' 23842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23843 (eval $ac_try) 2>&5 23844 ac_status=$? 23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23846 (exit $ac_status); }; }; then 23847 ac_cv_func_nonposix_getpwnam_r=yes 23848else 23849 echo "$as_me: failed program was:" >&5 23850sed 's/^/| /' conftest.$ac_ext >&5 23851 23852ac_cv_func_nonposix_getpwnam_r=no 23853fi 23854rm -f conftest.err conftest.$ac_objext \ 23855 conftest$ac_exeext conftest.$ac_ext 23856fi 23857echo "$as_me:$LINENO: result: $ac_cv_func_nonposix_getpwnam_r" >&5 23858echo "${ECHO_T}$ac_cv_func_nonposix_getpwnam_r" >&6 23859 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then 23860 23861cat >>confdefs.h <<\_ACEOF 23862#define HAVE_NONPOSIX_GETPWNAM_R 1 23863_ACEOF 23864 23865 fi 23866fi 23867 23868echo "$as_me:$LINENO: checking whether socklen_t is defined" >&5 23869echo $ECHO_N "checking whether socklen_t is defined... $ECHO_C" >&6 23870cat >conftest.$ac_ext <<_ACEOF 23871/* confdefs.h. */ 23872_ACEOF 23873cat confdefs.h >>conftest.$ac_ext 23874cat >>conftest.$ac_ext <<_ACEOF 23875/* end confdefs.h. */ 23876 23877#include <sys/types.h> 23878#include <sys/socket.h> 23879#include <netdb.h> 23880 23881int 23882main () 23883{ 23884 23885socklen_t foo; 23886foo = 1; 23887 23888 ; 23889 return 0; 23890} 23891_ACEOF 23892rm -f conftest.$ac_objext 23893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23894 (eval $ac_compile) 2>conftest.er1 23895 ac_status=$? 23896 grep -v '^ *+' conftest.er1 >conftest.err 23897 rm -f conftest.er1 23898 cat conftest.err >&5 23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23900 (exit $ac_status); } && 23901 { ac_try='test -z "$ac_c_werror_flag" 23902 || test ! -s conftest.err' 23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23904 (eval $ac_try) 2>&5 23905 ac_status=$? 23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23907 (exit $ac_status); }; } && 23908 { ac_try='test -s conftest.$ac_objext' 23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23910 (eval $ac_try) 2>&5 23911 ac_status=$? 23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23913 (exit $ac_status); }; }; then 23914 dbus_have_socklen_t=yes 23915else 23916 echo "$as_me: failed program was:" >&5 23917sed 's/^/| /' conftest.$ac_ext >&5 23918 23919dbus_have_socklen_t=no 23920fi 23921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23922echo "$as_me:$LINENO: result: $dbus_have_socklen_t" >&5 23923echo "${ECHO_T}$dbus_have_socklen_t" >&6 23924 23925if test "x$dbus_have_socklen_t" = "xyes"; then 23926 23927cat >>confdefs.h <<\_ACEOF 23928#define HAVE_SOCKLEN_T 1 23929_ACEOF 23930 23931fi 23932 23933 23934for ac_header in sys/uio.h 23935do 23936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23937if eval "test \"\${$as_ac_Header+set}\" = set"; then 23938 echo "$as_me:$LINENO: checking for $ac_header" >&5 23939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23940if eval "test \"\${$as_ac_Header+set}\" = set"; then 23941 echo $ECHO_N "(cached) $ECHO_C" >&6 23942fi 23943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23945else 23946 # Is the header compilable? 23947echo "$as_me:$LINENO: checking $ac_header usability" >&5 23948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23949cat >conftest.$ac_ext <<_ACEOF 23950/* confdefs.h. */ 23951_ACEOF 23952cat confdefs.h >>conftest.$ac_ext 23953cat >>conftest.$ac_ext <<_ACEOF 23954/* end confdefs.h. */ 23955$ac_includes_default 23956#include <$ac_header> 23957_ACEOF 23958rm -f conftest.$ac_objext 23959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23960 (eval $ac_compile) 2>conftest.er1 23961 ac_status=$? 23962 grep -v '^ *+' conftest.er1 >conftest.err 23963 rm -f conftest.er1 23964 cat conftest.err >&5 23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23966 (exit $ac_status); } && 23967 { ac_try='test -z "$ac_c_werror_flag" 23968 || test ! -s conftest.err' 23969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23970 (eval $ac_try) 2>&5 23971 ac_status=$? 23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23973 (exit $ac_status); }; } && 23974 { ac_try='test -s conftest.$ac_objext' 23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23976 (eval $ac_try) 2>&5 23977 ac_status=$? 23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23979 (exit $ac_status); }; }; then 23980 ac_header_compiler=yes 23981else 23982 echo "$as_me: failed program was:" >&5 23983sed 's/^/| /' conftest.$ac_ext >&5 23984 23985ac_header_compiler=no 23986fi 23987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23989echo "${ECHO_T}$ac_header_compiler" >&6 23990 23991# Is the header present? 23992echo "$as_me:$LINENO: checking $ac_header presence" >&5 23993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23994cat >conftest.$ac_ext <<_ACEOF 23995/* confdefs.h. */ 23996_ACEOF 23997cat confdefs.h >>conftest.$ac_ext 23998cat >>conftest.$ac_ext <<_ACEOF 23999/* end confdefs.h. */ 24000#include <$ac_header> 24001_ACEOF 24002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24004 ac_status=$? 24005 grep -v '^ *+' conftest.er1 >conftest.err 24006 rm -f conftest.er1 24007 cat conftest.err >&5 24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24009 (exit $ac_status); } >/dev/null; then 24010 if test -s conftest.err; then 24011 ac_cpp_err=$ac_c_preproc_warn_flag 24012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24013 else 24014 ac_cpp_err= 24015 fi 24016else 24017 ac_cpp_err=yes 24018fi 24019if test -z "$ac_cpp_err"; then 24020 ac_header_preproc=yes 24021else 24022 echo "$as_me: failed program was:" >&5 24023sed 's/^/| /' conftest.$ac_ext >&5 24024 24025 ac_header_preproc=no 24026fi 24027rm -f conftest.err conftest.$ac_ext 24028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24029echo "${ECHO_T}$ac_header_preproc" >&6 24030 24031# So? What about this header? 24032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24033 yes:no: ) 24034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24038 ac_header_preproc=yes 24039 ;; 24040 no:yes:* ) 24041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24048echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24053 ( 24054 cat <<\_ASBOX 24055## ------------------------------------------ ## 24056## Report this to the AC_PACKAGE_NAME lists. ## 24057## ------------------------------------------ ## 24058_ASBOX 24059 ) | 24060 sed "s/^/$as_me: WARNING: /" >&2 24061 ;; 24062esac 24063echo "$as_me:$LINENO: checking for $ac_header" >&5 24064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24065if eval "test \"\${$as_ac_Header+set}\" = set"; then 24066 echo $ECHO_N "(cached) $ECHO_C" >&6 24067else 24068 eval "$as_ac_Header=\$ac_header_preproc" 24069fi 24070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24072 24073fi 24074if test `eval echo '${'$as_ac_Header'}'` = yes; then 24075 cat >>confdefs.h <<_ACEOF 24076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24077_ACEOF 24078 24079for ac_func in writev 24080do 24081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24082echo "$as_me:$LINENO: checking for $ac_func" >&5 24083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24084if eval "test \"\${$as_ac_var+set}\" = set"; then 24085 echo $ECHO_N "(cached) $ECHO_C" >&6 24086else 24087 cat >conftest.$ac_ext <<_ACEOF 24088/* confdefs.h. */ 24089_ACEOF 24090cat confdefs.h >>conftest.$ac_ext 24091cat >>conftest.$ac_ext <<_ACEOF 24092/* end confdefs.h. */ 24093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24094 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24095#define $ac_func innocuous_$ac_func 24096 24097/* System header to define __stub macros and hopefully few prototypes, 24098 which can conflict with char $ac_func (); below. 24099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24100 <limits.h> exists even on freestanding compilers. */ 24101 24102#ifdef __STDC__ 24103# include <limits.h> 24104#else 24105# include <assert.h> 24106#endif 24107 24108#undef $ac_func 24109 24110/* Override any gcc2 internal prototype to avoid an error. */ 24111#ifdef __cplusplus 24112extern "C" 24113{ 24114#endif 24115/* We use char because int might match the return type of a gcc2 24116 builtin and then its argument prototype would still apply. */ 24117char $ac_func (); 24118/* The GNU C library defines this for functions which it implements 24119 to always fail with ENOSYS. Some functions are actually named 24120 something starting with __ and the normal name is an alias. */ 24121#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24122choke me 24123#else 24124char (*f) () = $ac_func; 24125#endif 24126#ifdef __cplusplus 24127} 24128#endif 24129 24130int 24131main () 24132{ 24133return f != $ac_func; 24134 ; 24135 return 0; 24136} 24137_ACEOF 24138rm -f conftest.$ac_objext conftest$ac_exeext 24139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24140 (eval $ac_link) 2>conftest.er1 24141 ac_status=$? 24142 grep -v '^ *+' conftest.er1 >conftest.err 24143 rm -f conftest.er1 24144 cat conftest.err >&5 24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24146 (exit $ac_status); } && 24147 { ac_try='test -z "$ac_c_werror_flag" 24148 || test ! -s conftest.err' 24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24150 (eval $ac_try) 2>&5 24151 ac_status=$? 24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24153 (exit $ac_status); }; } && 24154 { ac_try='test -s conftest$ac_exeext' 24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24156 (eval $ac_try) 2>&5 24157 ac_status=$? 24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24159 (exit $ac_status); }; }; then 24160 eval "$as_ac_var=yes" 24161else 24162 echo "$as_me: failed program was:" >&5 24163sed 's/^/| /' conftest.$ac_ext >&5 24164 24165eval "$as_ac_var=no" 24166fi 24167rm -f conftest.err conftest.$ac_objext \ 24168 conftest$ac_exeext conftest.$ac_ext 24169fi 24170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24172if test `eval echo '${'$as_ac_var'}'` = yes; then 24173 cat >>confdefs.h <<_ACEOF 24174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24175_ACEOF 24176 24177fi 24178done 24179 24180fi 24181 24182done 24183 24184 24185 24186for ac_header in sys/syslimits.h 24187do 24188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24189if eval "test \"\${$as_ac_Header+set}\" = set"; then 24190 echo "$as_me:$LINENO: checking for $ac_header" >&5 24191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24192if eval "test \"\${$as_ac_Header+set}\" = set"; then 24193 echo $ECHO_N "(cached) $ECHO_C" >&6 24194fi 24195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24197else 24198 # Is the header compilable? 24199echo "$as_me:$LINENO: checking $ac_header usability" >&5 24200echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24201cat >conftest.$ac_ext <<_ACEOF 24202/* confdefs.h. */ 24203_ACEOF 24204cat confdefs.h >>conftest.$ac_ext 24205cat >>conftest.$ac_ext <<_ACEOF 24206/* end confdefs.h. */ 24207$ac_includes_default 24208#include <$ac_header> 24209_ACEOF 24210rm -f conftest.$ac_objext 24211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24212 (eval $ac_compile) 2>conftest.er1 24213 ac_status=$? 24214 grep -v '^ *+' conftest.er1 >conftest.err 24215 rm -f conftest.er1 24216 cat conftest.err >&5 24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24218 (exit $ac_status); } && 24219 { ac_try='test -z "$ac_c_werror_flag" 24220 || test ! -s conftest.err' 24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24222 (eval $ac_try) 2>&5 24223 ac_status=$? 24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24225 (exit $ac_status); }; } && 24226 { ac_try='test -s conftest.$ac_objext' 24227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24228 (eval $ac_try) 2>&5 24229 ac_status=$? 24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24231 (exit $ac_status); }; }; then 24232 ac_header_compiler=yes 24233else 24234 echo "$as_me: failed program was:" >&5 24235sed 's/^/| /' conftest.$ac_ext >&5 24236 24237ac_header_compiler=no 24238fi 24239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24241echo "${ECHO_T}$ac_header_compiler" >&6 24242 24243# Is the header present? 24244echo "$as_me:$LINENO: checking $ac_header presence" >&5 24245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24246cat >conftest.$ac_ext <<_ACEOF 24247/* confdefs.h. */ 24248_ACEOF 24249cat confdefs.h >>conftest.$ac_ext 24250cat >>conftest.$ac_ext <<_ACEOF 24251/* end confdefs.h. */ 24252#include <$ac_header> 24253_ACEOF 24254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24256 ac_status=$? 24257 grep -v '^ *+' conftest.er1 >conftest.err 24258 rm -f conftest.er1 24259 cat conftest.err >&5 24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24261 (exit $ac_status); } >/dev/null; then 24262 if test -s conftest.err; then 24263 ac_cpp_err=$ac_c_preproc_warn_flag 24264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24265 else 24266 ac_cpp_err= 24267 fi 24268else 24269 ac_cpp_err=yes 24270fi 24271if test -z "$ac_cpp_err"; then 24272 ac_header_preproc=yes 24273else 24274 echo "$as_me: failed program was:" >&5 24275sed 's/^/| /' conftest.$ac_ext >&5 24276 24277 ac_header_preproc=no 24278fi 24279rm -f conftest.err conftest.$ac_ext 24280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24281echo "${ECHO_T}$ac_header_preproc" >&6 24282 24283# So? What about this header? 24284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24285 yes:no: ) 24286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24290 ac_header_preproc=yes 24291 ;; 24292 no:yes:* ) 24293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24300echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24305 ( 24306 cat <<\_ASBOX 24307## ------------------------------------------ ## 24308## Report this to the AC_PACKAGE_NAME lists. ## 24309## ------------------------------------------ ## 24310_ASBOX 24311 ) | 24312 sed "s/^/$as_me: WARNING: /" >&2 24313 ;; 24314esac 24315echo "$as_me:$LINENO: checking for $ac_header" >&5 24316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24317if eval "test \"\${$as_ac_Header+set}\" = set"; then 24318 echo $ECHO_N "(cached) $ECHO_C" >&6 24319else 24320 eval "$as_ac_Header=\$ac_header_preproc" 24321fi 24322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24324 24325fi 24326if test `eval echo '${'$as_ac_Header'}'` = yes; then 24327 cat >>confdefs.h <<_ACEOF 24328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24329_ACEOF 24330 24331fi 24332 24333done 24334 24335 24336echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5 24337echo $ECHO_N "checking for ISO C99 varargs macros in C... $ECHO_C" >&6 24338cat >conftest.$ac_ext <<_ACEOF 24339/* confdefs.h. */ 24340_ACEOF 24341cat confdefs.h >>conftest.$ac_ext 24342cat >>conftest.$ac_ext <<_ACEOF 24343/* end confdefs.h. */ 24344 24345int 24346main () 24347{ 24348 24349int a(int p1, int p2, int p3); 24350#define call_a(...) a(1,__VA_ARGS__) 24351call_a(2,3); 24352 24353 ; 24354 return 0; 24355} 24356_ACEOF 24357rm -f conftest.$ac_objext 24358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24359 (eval $ac_compile) 2>conftest.er1 24360 ac_status=$? 24361 grep -v '^ *+' conftest.er1 >conftest.err 24362 rm -f conftest.er1 24363 cat conftest.err >&5 24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24365 (exit $ac_status); } && 24366 { ac_try='test -z "$ac_c_werror_flag" 24367 || test ! -s conftest.err' 24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24369 (eval $ac_try) 2>&5 24370 ac_status=$? 24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24372 (exit $ac_status); }; } && 24373 { ac_try='test -s conftest.$ac_objext' 24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24375 (eval $ac_try) 2>&5 24376 ac_status=$? 24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24378 (exit $ac_status); }; }; then 24379 dbus_have_iso_c_varargs=yes 24380else 24381 echo "$as_me: failed program was:" >&5 24382sed 's/^/| /' conftest.$ac_ext >&5 24383 24384dbus_have_iso_c_varargs=no 24385fi 24386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24387echo "$as_me:$LINENO: result: $dbus_have_iso_c_varargs" >&5 24388echo "${ECHO_T}$dbus_have_iso_c_varargs" >&6 24389 24390echo "$as_me:$LINENO: checking for GNUC varargs macros" >&5 24391echo $ECHO_N "checking for GNUC varargs macros... $ECHO_C" >&6 24392cat >conftest.$ac_ext <<_ACEOF 24393/* confdefs.h. */ 24394_ACEOF 24395cat confdefs.h >>conftest.$ac_ext 24396cat >>conftest.$ac_ext <<_ACEOF 24397/* end confdefs.h. */ 24398 24399int 24400main () 24401{ 24402 24403int a(int p1, int p2, int p3); 24404#define call_a(params...) a(1,params) 24405call_a(2,3); 24406 24407 ; 24408 return 0; 24409} 24410_ACEOF 24411rm -f conftest.$ac_objext 24412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24413 (eval $ac_compile) 2>conftest.er1 24414 ac_status=$? 24415 grep -v '^ *+' conftest.er1 >conftest.err 24416 rm -f conftest.er1 24417 cat conftest.err >&5 24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24419 (exit $ac_status); } && 24420 { ac_try='test -z "$ac_c_werror_flag" 24421 || test ! -s conftest.err' 24422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24423 (eval $ac_try) 2>&5 24424 ac_status=$? 24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24426 (exit $ac_status); }; } && 24427 { ac_try='test -s conftest.$ac_objext' 24428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24429 (eval $ac_try) 2>&5 24430 ac_status=$? 24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24432 (exit $ac_status); }; }; then 24433 dbus_have_gnuc_varargs=yes 24434else 24435 echo "$as_me: failed program was:" >&5 24436sed 's/^/| /' conftest.$ac_ext >&5 24437 24438dbus_have_gnuc_varargs=no 24439fi 24440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24441echo "$as_me:$LINENO: result: $dbus_have_gnuc_varargs" >&5 24442echo "${ECHO_T}$dbus_have_gnuc_varargs" >&6 24443 24444if test x$dbus_have_iso_c_varargs = xyes; then 24445 24446cat >>confdefs.h <<\_ACEOF 24447#define HAVE_ISO_VARARGS 1 24448_ACEOF 24449 24450fi 24451if test x$dbus_have_gnuc_varargs = xyes; then 24452 24453cat >>confdefs.h <<\_ACEOF 24454#define HAVE_GNUC_VARARGS 1 24455_ACEOF 24456 24457fi 24458 24459echo "$as_me:$LINENO: checking for struct cmsgcred" >&5 24460echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6 24461cat >conftest.$ac_ext <<_ACEOF 24462/* confdefs.h. */ 24463_ACEOF 24464cat confdefs.h >>conftest.$ac_ext 24465cat >>conftest.$ac_ext <<_ACEOF 24466/* end confdefs.h. */ 24467 24468#include <sys/types.h> 24469#include <sys/socket.h> 24470 24471int 24472main () 24473{ 24474 24475struct cmsgcred cred; 24476 24477cred.cmcred_pid = 0; 24478 24479 ; 24480 return 0; 24481} 24482_ACEOF 24483rm -f conftest.$ac_objext 24484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24485 (eval $ac_compile) 2>conftest.er1 24486 ac_status=$? 24487 grep -v '^ *+' conftest.er1 >conftest.err 24488 rm -f conftest.er1 24489 cat conftest.err >&5 24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24491 (exit $ac_status); } && 24492 { ac_try='test -z "$ac_c_werror_flag" 24493 || test ! -s conftest.err' 24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24495 (eval $ac_try) 2>&5 24496 ac_status=$? 24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24498 (exit $ac_status); }; } && 24499 { ac_try='test -s conftest.$ac_objext' 24500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24501 (eval $ac_try) 2>&5 24502 ac_status=$? 24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24504 (exit $ac_status); }; }; then 24505 dbus_have_struct_cmsgcred=yes 24506else 24507 echo "$as_me: failed program was:" >&5 24508sed 's/^/| /' conftest.$ac_ext >&5 24509 24510dbus_have_struct_cmsgcred=no 24511fi 24512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24513echo "$as_me:$LINENO: result: $dbus_have_struct_cmsgcred" >&5 24514echo "${ECHO_T}$dbus_have_struct_cmsgcred" >&6 24515 24516if test x$dbus_have_struct_cmsgcred = xyes; then 24517 24518cat >>confdefs.h <<\_ACEOF 24519#define HAVE_CMSGCRED 1 24520_ACEOF 24521 24522fi 24523 24524 24525 24526for ac_func in getpeerucred getpeereid 24527do 24528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24529echo "$as_me:$LINENO: checking for $ac_func" >&5 24530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24531if eval "test \"\${$as_ac_var+set}\" = set"; then 24532 echo $ECHO_N "(cached) $ECHO_C" >&6 24533else 24534 cat >conftest.$ac_ext <<_ACEOF 24535/* confdefs.h. */ 24536_ACEOF 24537cat confdefs.h >>conftest.$ac_ext 24538cat >>conftest.$ac_ext <<_ACEOF 24539/* end confdefs.h. */ 24540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24541 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24542#define $ac_func innocuous_$ac_func 24543 24544/* System header to define __stub macros and hopefully few prototypes, 24545 which can conflict with char $ac_func (); below. 24546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24547 <limits.h> exists even on freestanding compilers. */ 24548 24549#ifdef __STDC__ 24550# include <limits.h> 24551#else 24552# include <assert.h> 24553#endif 24554 24555#undef $ac_func 24556 24557/* Override any gcc2 internal prototype to avoid an error. */ 24558#ifdef __cplusplus 24559extern "C" 24560{ 24561#endif 24562/* We use char because int might match the return type of a gcc2 24563 builtin and then its argument prototype would still apply. */ 24564char $ac_func (); 24565/* The GNU C library defines this for functions which it implements 24566 to always fail with ENOSYS. Some functions are actually named 24567 something starting with __ and the normal name is an alias. */ 24568#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24569choke me 24570#else 24571char (*f) () = $ac_func; 24572#endif 24573#ifdef __cplusplus 24574} 24575#endif 24576 24577int 24578main () 24579{ 24580return f != $ac_func; 24581 ; 24582 return 0; 24583} 24584_ACEOF 24585rm -f conftest.$ac_objext conftest$ac_exeext 24586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24587 (eval $ac_link) 2>conftest.er1 24588 ac_status=$? 24589 grep -v '^ *+' conftest.er1 >conftest.err 24590 rm -f conftest.er1 24591 cat conftest.err >&5 24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24593 (exit $ac_status); } && 24594 { ac_try='test -z "$ac_c_werror_flag" 24595 || test ! -s conftest.err' 24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24597 (eval $ac_try) 2>&5 24598 ac_status=$? 24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24600 (exit $ac_status); }; } && 24601 { ac_try='test -s conftest$ac_exeext' 24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24603 (eval $ac_try) 2>&5 24604 ac_status=$? 24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24606 (exit $ac_status); }; }; then 24607 eval "$as_ac_var=yes" 24608else 24609 echo "$as_me: failed program was:" >&5 24610sed 's/^/| /' conftest.$ac_ext >&5 24611 24612eval "$as_ac_var=no" 24613fi 24614rm -f conftest.err conftest.$ac_objext \ 24615 conftest$ac_exeext conftest.$ac_ext 24616fi 24617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24619if test `eval echo '${'$as_ac_var'}'` = yes; then 24620 cat >>confdefs.h <<_ACEOF 24621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24622_ACEOF 24623 24624fi 24625done 24626 24627 24628#### Abstract sockets 24629 24630ac_ext=c 24631ac_cpp='$CPP $CPPFLAGS' 24632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24634ac_compiler_gnu=$ac_cv_c_compiler_gnu 24635 24636echo "$as_me:$LINENO: checking abstract socket namespace" >&5 24637echo $ECHO_N "checking abstract socket namespace... $ECHO_C" >&6 24638if test "${ac_cv_have_abstract_sockets+set}" = set; then 24639 echo $ECHO_N "(cached) $ECHO_C" >&6 24640else 24641 if test "$cross_compiling" = yes; then 24642 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 24643See \`config.log' for more details." >&5 24644echo "$as_me: error: cannot run test program while cross compiling 24645See \`config.log' for more details." >&2;} 24646 { (exit 1); exit 1; }; } 24647else 24648 cat >conftest.$ac_ext <<_ACEOF 24649/* confdefs.h. */ 24650_ACEOF 24651cat confdefs.h >>conftest.$ac_ext 24652cat >>conftest.$ac_ext <<_ACEOF 24653/* end confdefs.h. */ 24654 24655#include <sys/types.h> 24656#include <stdlib.h> 24657#include <string.h> 24658#include <stdio.h> 24659#include <sys/socket.h> 24660#include <sys/un.h> 24661#include <errno.h> 24662 24663int 24664main () 24665{ 24666 24667 int listen_fd; 24668 struct sockaddr_un addr; 24669 24670 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0); 24671 24672 if (listen_fd < 0) 24673 { 24674 fprintf (stderr, "socket() failed: %s\n", strerror (errno)); 24675 exit (1); 24676 } 24677 24678 memset (&addr, '\0', sizeof (addr)); 24679 addr.sun_family = AF_UNIX; 24680 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test"); 24681 addr.sun_path[0] = '\0'; /* this is what makes it abstract */ 24682 24683 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0) 24684 { 24685 fprintf (stderr, "Abstract socket namespace bind() failed: %s\n", 24686 strerror (errno)); 24687 exit (1); 24688 } 24689 else 24690 exit (0); 24691 24692 ; 24693 return 0; 24694} 24695_ACEOF 24696rm -f conftest$ac_exeext 24697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24698 (eval $ac_link) 2>&5 24699 ac_status=$? 24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24703 (eval $ac_try) 2>&5 24704 ac_status=$? 24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24706 (exit $ac_status); }; }; then 24707 ac_cv_have_abstract_sockets=yes 24708else 24709 echo "$as_me: program exited with status $ac_status" >&5 24710echo "$as_me: failed program was:" >&5 24711sed 's/^/| /' conftest.$ac_ext >&5 24712 24713( exit $ac_status ) 24714ac_cv_have_abstract_sockets=no 24715 24716fi 24717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24718fi 24719fi 24720echo "$as_me:$LINENO: result: $ac_cv_have_abstract_sockets" >&5 24721echo "${ECHO_T}$ac_cv_have_abstract_sockets" >&6 24722ac_ext=c 24723ac_cpp='$CPP $CPPFLAGS' 24724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24726ac_compiler_gnu=$ac_cv_c_compiler_gnu 24727 24728 24729if test x$enable_abstract_sockets = xyes; then 24730 if test x$ac_cv_have_abstract_sockets = xno; then 24731 { { echo "$as_me:$LINENO: error: Abstract sockets explicitly required, and support not detected." >&5 24732echo "$as_me: error: Abstract sockets explicitly required, and support not detected." >&2;} 24733 { (exit 1); exit 1; }; } 24734 fi 24735fi 24736 24737if test x$enable_abstract_sockets = xno; then 24738 ac_cv_have_abstract_sockets=no; 24739fi 24740 24741if test x$ac_cv_have_abstract_sockets = xyes ; then 24742 DBUS_PATH_OR_ABSTRACT=abstract 24743 24744cat >>confdefs.h <<\_ACEOF 24745#define HAVE_ABSTRACT_SOCKETS 1 24746_ACEOF 24747 24748else 24749 DBUS_PATH_OR_ABSTRACT=path 24750fi 24751 24752# this is used in addresses to prefer abstract, e.g. 24753# unix:path=/foo or unix:abstract=/foo 24754 24755 24756#### Sort out XML library 24757 24758# see what we have 24759echo "$as_me:$LINENO: checking for XML_ParserCreate_MM in -lexpat" >&5 24760echo $ECHO_N "checking for XML_ParserCreate_MM in -lexpat... $ECHO_C" >&6 24761if test "${ac_cv_lib_expat_XML_ParserCreate_MM+set}" = set; then 24762 echo $ECHO_N "(cached) $ECHO_C" >&6 24763else 24764 ac_check_lib_save_LIBS=$LIBS 24765LIBS="-lexpat $LIBS" 24766cat >conftest.$ac_ext <<_ACEOF 24767/* confdefs.h. */ 24768_ACEOF 24769cat confdefs.h >>conftest.$ac_ext 24770cat >>conftest.$ac_ext <<_ACEOF 24771/* end confdefs.h. */ 24772 24773/* Override any gcc2 internal prototype to avoid an error. */ 24774#ifdef __cplusplus 24775extern "C" 24776#endif 24777/* We use char because int might match the return type of a gcc2 24778 builtin and then its argument prototype would still apply. */ 24779char XML_ParserCreate_MM (); 24780int 24781main () 24782{ 24783XML_ParserCreate_MM (); 24784 ; 24785 return 0; 24786} 24787_ACEOF 24788rm -f conftest.$ac_objext conftest$ac_exeext 24789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24790 (eval $ac_link) 2>conftest.er1 24791 ac_status=$? 24792 grep -v '^ *+' conftest.er1 >conftest.err 24793 rm -f conftest.er1 24794 cat conftest.err >&5 24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24796 (exit $ac_status); } && 24797 { ac_try='test -z "$ac_c_werror_flag" 24798 || test ! -s conftest.err' 24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24800 (eval $ac_try) 2>&5 24801 ac_status=$? 24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24803 (exit $ac_status); }; } && 24804 { ac_try='test -s conftest$ac_exeext' 24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24806 (eval $ac_try) 2>&5 24807 ac_status=$? 24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24809 (exit $ac_status); }; }; then 24810 ac_cv_lib_expat_XML_ParserCreate_MM=yes 24811else 24812 echo "$as_me: failed program was:" >&5 24813sed 's/^/| /' conftest.$ac_ext >&5 24814 24815ac_cv_lib_expat_XML_ParserCreate_MM=no 24816fi 24817rm -f conftest.err conftest.$ac_objext \ 24818 conftest$ac_exeext conftest.$ac_ext 24819LIBS=$ac_check_lib_save_LIBS 24820fi 24821echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate_MM" >&5 24822echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate_MM" >&6 24823if test $ac_cv_lib_expat_XML_ParserCreate_MM = yes; then 24824 24825for ac_header in expat.h 24826do 24827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24828if eval "test \"\${$as_ac_Header+set}\" = set"; then 24829 echo "$as_me:$LINENO: checking for $ac_header" >&5 24830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24831if eval "test \"\${$as_ac_Header+set}\" = set"; then 24832 echo $ECHO_N "(cached) $ECHO_C" >&6 24833fi 24834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24836else 24837 # Is the header compilable? 24838echo "$as_me:$LINENO: checking $ac_header usability" >&5 24839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24840cat >conftest.$ac_ext <<_ACEOF 24841/* confdefs.h. */ 24842_ACEOF 24843cat confdefs.h >>conftest.$ac_ext 24844cat >>conftest.$ac_ext <<_ACEOF 24845/* end confdefs.h. */ 24846$ac_includes_default 24847#include <$ac_header> 24848_ACEOF 24849rm -f conftest.$ac_objext 24850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24851 (eval $ac_compile) 2>conftest.er1 24852 ac_status=$? 24853 grep -v '^ *+' conftest.er1 >conftest.err 24854 rm -f conftest.er1 24855 cat conftest.err >&5 24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24857 (exit $ac_status); } && 24858 { ac_try='test -z "$ac_c_werror_flag" 24859 || test ! -s conftest.err' 24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24861 (eval $ac_try) 2>&5 24862 ac_status=$? 24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24864 (exit $ac_status); }; } && 24865 { ac_try='test -s conftest.$ac_objext' 24866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24867 (eval $ac_try) 2>&5 24868 ac_status=$? 24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24870 (exit $ac_status); }; }; then 24871 ac_header_compiler=yes 24872else 24873 echo "$as_me: failed program was:" >&5 24874sed 's/^/| /' conftest.$ac_ext >&5 24875 24876ac_header_compiler=no 24877fi 24878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24880echo "${ECHO_T}$ac_header_compiler" >&6 24881 24882# Is the header present? 24883echo "$as_me:$LINENO: checking $ac_header presence" >&5 24884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24885cat >conftest.$ac_ext <<_ACEOF 24886/* confdefs.h. */ 24887_ACEOF 24888cat confdefs.h >>conftest.$ac_ext 24889cat >>conftest.$ac_ext <<_ACEOF 24890/* end confdefs.h. */ 24891#include <$ac_header> 24892_ACEOF 24893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24895 ac_status=$? 24896 grep -v '^ *+' conftest.er1 >conftest.err 24897 rm -f conftest.er1 24898 cat conftest.err >&5 24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24900 (exit $ac_status); } >/dev/null; then 24901 if test -s conftest.err; then 24902 ac_cpp_err=$ac_c_preproc_warn_flag 24903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24904 else 24905 ac_cpp_err= 24906 fi 24907else 24908 ac_cpp_err=yes 24909fi 24910if test -z "$ac_cpp_err"; then 24911 ac_header_preproc=yes 24912else 24913 echo "$as_me: failed program was:" >&5 24914sed 's/^/| /' conftest.$ac_ext >&5 24915 24916 ac_header_preproc=no 24917fi 24918rm -f conftest.err conftest.$ac_ext 24919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24920echo "${ECHO_T}$ac_header_preproc" >&6 24921 24922# So? What about this header? 24923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24924 yes:no: ) 24925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24929 ac_header_preproc=yes 24930 ;; 24931 no:yes:* ) 24932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24944 ( 24945 cat <<\_ASBOX 24946## ------------------------------------------ ## 24947## Report this to the AC_PACKAGE_NAME lists. ## 24948## ------------------------------------------ ## 24949_ASBOX 24950 ) | 24951 sed "s/^/$as_me: WARNING: /" >&2 24952 ;; 24953esac 24954echo "$as_me:$LINENO: checking for $ac_header" >&5 24955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24956if eval "test \"\${$as_ac_Header+set}\" = set"; then 24957 echo $ECHO_N "(cached) $ECHO_C" >&6 24958else 24959 eval "$as_ac_Header=\$ac_header_preproc" 24960fi 24961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24963 24964fi 24965if test `eval echo '${'$as_ac_Header'}'` = yes; then 24966 cat >>confdefs.h <<_ACEOF 24967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24968_ACEOF 24969 have_expat=true 24970else 24971 have_expat=false 24972fi 24973 24974done 24975 24976else 24977 have_expat=false 24978fi 24979 24980 24981 24982 succeeded=no 24983 24984 if test -z "$PKG_CONFIG"; then 24985 # Extract the first word of "pkg-config", so it can be a program name with args. 24986set dummy pkg-config; ac_word=$2 24987echo "$as_me:$LINENO: checking for $ac_word" >&5 24988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24989if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 24990 echo $ECHO_N "(cached) $ECHO_C" >&6 24991else 24992 case $PKG_CONFIG in 24993 [\\/]* | ?:[\\/]*) 24994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24995 ;; 24996 *) 24997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24998for as_dir in $PATH 24999do 25000 IFS=$as_save_IFS 25001 test -z "$as_dir" && as_dir=. 25002 for ac_exec_ext in '' $ac_executable_extensions; do 25003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25006 break 2 25007 fi 25008done 25009done 25010 25011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 25012 ;; 25013esac 25014fi 25015PKG_CONFIG=$ac_cv_path_PKG_CONFIG 25016 25017if test -n "$PKG_CONFIG"; then 25018 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 25019echo "${ECHO_T}$PKG_CONFIG" >&6 25020else 25021 echo "$as_me:$LINENO: result: no" >&5 25022echo "${ECHO_T}no" >&6 25023fi 25024 25025 fi 25026 25027 if test "$PKG_CONFIG" = "no" ; then 25028 echo "*** The pkg-config script could not be found. Make sure it is" 25029 echo "*** in your path, or set the PKG_CONFIG environment variable" 25030 echo "*** to the full path to pkg-config." 25031 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 25032 else 25033 PKG_CONFIG_MIN_VERSION=0.9.0 25034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 25035 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.0" >&5 25036echo $ECHO_N "checking for libxml-2.0 >= 2.6.0... $ECHO_C" >&6 25037 25038 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.0" ; then 25039 echo "$as_me:$LINENO: result: yes" >&5 25040echo "${ECHO_T}yes" >&6 25041 succeeded=yes 25042 25043 echo "$as_me:$LINENO: checking LIBXML_CFLAGS" >&5 25044echo $ECHO_N "checking LIBXML_CFLAGS... $ECHO_C" >&6 25045 LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0"` 25046 echo "$as_me:$LINENO: result: $LIBXML_CFLAGS" >&5 25047echo "${ECHO_T}$LIBXML_CFLAGS" >&6 25048 25049 echo "$as_me:$LINENO: checking LIBXML_LIBS" >&5 25050echo $ECHO_N "checking LIBXML_LIBS... $ECHO_C" >&6 25051 LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0"` 25052 echo "$as_me:$LINENO: result: $LIBXML_LIBS" >&5 25053echo "${ECHO_T}$LIBXML_LIBS" >&6 25054 else 25055 LIBXML_CFLAGS="" 25056 LIBXML_LIBS="" 25057 ## If we have a custom action on failure, don't print errors, but 25058 ## do set a variable so people can do so. 25059 LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.0"` 25060 25061 fi 25062 25063 25064 25065 else 25066 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 25067 echo "*** See http://www.freedesktop.org/software/pkgconfig" 25068 fi 25069 fi 25070 25071 if test $succeeded = yes; then 25072 have_libxml=true 25073 else 25074 have_libxml=false 25075 fi 25076 25077 25078# see what we want to use 25079dbus_use_libxml=false 25080dbus_use_expat=false 25081if test x$with_xml = xexpat; then 25082 dbus_use_expat=true 25083 if ! $have_expat ; then 25084 { { echo "$as_me:$LINENO: error: Explicitly requested expat but expat not found" >&5 25085echo "$as_me: error: Explicitly requested expat but expat not found" >&2;} 25086 { (exit 1); exit 1; }; } 25087 fi 25088elif test x$with_xml = xlibxml; then 25089 dbus_use_libxml=true 25090 if ! $have_libxml ; then 25091 { { echo "$as_me:$LINENO: error: Explicitly requested libxml but libxml not found" >&5 25092echo "$as_me: error: Explicitly requested libxml but libxml not found" >&2;} 25093 { (exit 1); exit 1; }; } 25094 fi 25095else 25096 ### expat is the default because libxml can't currently survive 25097 ### our brutal OOM-handling unit test setup. 25098 ### http://bugzilla.gnome.org/show_bug.cgi?id=109368 25099 if $have_expat ; then 25100 with_xml=expat 25101 dbus_use_expat=true 25102 elif $have_libxml ; then 25103 with_xml=libxml 25104 dbus_use_libxml=true 25105 else 25106 { { echo "$as_me:$LINENO: error: No XML library found, check config.log for failed attempts" >&5 25107echo "$as_me: error: No XML library found, check config.log for failed attempts" >&2;} 25108 { (exit 1); exit 1; }; } 25109 fi 25110fi 25111 25112 25113 25114if $dbus_use_expat; then 25115 DBUS_USE_EXPAT_TRUE= 25116 DBUS_USE_EXPAT_FALSE='#' 25117else 25118 DBUS_USE_EXPAT_TRUE='#' 25119 DBUS_USE_EXPAT_FALSE= 25120fi 25121 25122 25123 25124if $dbus_use_libxml; then 25125 DBUS_USE_LIBXML_TRUE= 25126 DBUS_USE_LIBXML_FALSE='#' 25127else 25128 DBUS_USE_LIBXML_TRUE='#' 25129 DBUS_USE_LIBXML_FALSE= 25130fi 25131 25132 25133if $dbus_use_expat; then 25134 XML_LIBS=-lexpat 25135 XML_CFLAGS= 25136fi 25137if $dbus_use_libxml; then 25138 XML_LIBS=$LIBXML_LIBS 25139 XML_CFLAGS=$LIBXML_CFLAGS 25140fi 25141 25142# Thread lib detection 25143echo "$as_me:$LINENO: checking for pthread_cond_timedwait" >&5 25144echo $ECHO_N "checking for pthread_cond_timedwait... $ECHO_C" >&6 25145if test "${ac_cv_func_pthread_cond_timedwait+set}" = set; then 25146 echo $ECHO_N "(cached) $ECHO_C" >&6 25147else 25148 cat >conftest.$ac_ext <<_ACEOF 25149/* confdefs.h. */ 25150_ACEOF 25151cat confdefs.h >>conftest.$ac_ext 25152cat >>conftest.$ac_ext <<_ACEOF 25153/* end confdefs.h. */ 25154/* Define pthread_cond_timedwait to an innocuous variant, in case <limits.h> declares pthread_cond_timedwait. 25155 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25156#define pthread_cond_timedwait innocuous_pthread_cond_timedwait 25157 25158/* System header to define __stub macros and hopefully few prototypes, 25159 which can conflict with char pthread_cond_timedwait (); below. 25160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25161 <limits.h> exists even on freestanding compilers. */ 25162 25163#ifdef __STDC__ 25164# include <limits.h> 25165#else 25166# include <assert.h> 25167#endif 25168 25169#undef pthread_cond_timedwait 25170 25171/* Override any gcc2 internal prototype to avoid an error. */ 25172#ifdef __cplusplus 25173extern "C" 25174{ 25175#endif 25176/* We use char because int might match the return type of a gcc2 25177 builtin and then its argument prototype would still apply. */ 25178char pthread_cond_timedwait (); 25179/* The GNU C library defines this for functions which it implements 25180 to always fail with ENOSYS. Some functions are actually named 25181 something starting with __ and the normal name is an alias. */ 25182#if defined (__stub_pthread_cond_timedwait) || defined (__stub___pthread_cond_timedwait) 25183choke me 25184#else 25185char (*f) () = pthread_cond_timedwait; 25186#endif 25187#ifdef __cplusplus 25188} 25189#endif 25190 25191int 25192main () 25193{ 25194return f != pthread_cond_timedwait; 25195 ; 25196 return 0; 25197} 25198_ACEOF 25199rm -f conftest.$ac_objext conftest$ac_exeext 25200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25201 (eval $ac_link) 2>conftest.er1 25202 ac_status=$? 25203 grep -v '^ *+' conftest.er1 >conftest.err 25204 rm -f conftest.er1 25205 cat conftest.err >&5 25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25207 (exit $ac_status); } && 25208 { ac_try='test -z "$ac_c_werror_flag" 25209 || test ! -s conftest.err' 25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25211 (eval $ac_try) 2>&5 25212 ac_status=$? 25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25214 (exit $ac_status); }; } && 25215 { ac_try='test -s conftest$ac_exeext' 25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25217 (eval $ac_try) 2>&5 25218 ac_status=$? 25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25220 (exit $ac_status); }; }; then 25221 ac_cv_func_pthread_cond_timedwait=yes 25222else 25223 echo "$as_me: failed program was:" >&5 25224sed 's/^/| /' conftest.$ac_ext >&5 25225 25226ac_cv_func_pthread_cond_timedwait=no 25227fi 25228rm -f conftest.err conftest.$ac_objext \ 25229 conftest$ac_exeext conftest.$ac_ext 25230fi 25231echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cond_timedwait" >&5 25232echo "${ECHO_T}$ac_cv_func_pthread_cond_timedwait" >&6 25233if test $ac_cv_func_pthread_cond_timedwait = yes; then 25234 : 25235else 25236 echo "$as_me:$LINENO: checking for pthread_cond_timedwait in -lpthread" >&5 25237echo $ECHO_N "checking for pthread_cond_timedwait in -lpthread... $ECHO_C" >&6 25238if test "${ac_cv_lib_pthread_pthread_cond_timedwait+set}" = set; then 25239 echo $ECHO_N "(cached) $ECHO_C" >&6 25240else 25241 ac_check_lib_save_LIBS=$LIBS 25242LIBS="-lpthread $LIBS" 25243cat >conftest.$ac_ext <<_ACEOF 25244/* confdefs.h. */ 25245_ACEOF 25246cat confdefs.h >>conftest.$ac_ext 25247cat >>conftest.$ac_ext <<_ACEOF 25248/* end confdefs.h. */ 25249 25250/* Override any gcc2 internal prototype to avoid an error. */ 25251#ifdef __cplusplus 25252extern "C" 25253#endif 25254/* We use char because int might match the return type of a gcc2 25255 builtin and then its argument prototype would still apply. */ 25256char pthread_cond_timedwait (); 25257int 25258main () 25259{ 25260pthread_cond_timedwait (); 25261 ; 25262 return 0; 25263} 25264_ACEOF 25265rm -f conftest.$ac_objext conftest$ac_exeext 25266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25267 (eval $ac_link) 2>conftest.er1 25268 ac_status=$? 25269 grep -v '^ *+' conftest.er1 >conftest.err 25270 rm -f conftest.er1 25271 cat conftest.err >&5 25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25273 (exit $ac_status); } && 25274 { ac_try='test -z "$ac_c_werror_flag" 25275 || test ! -s conftest.err' 25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25277 (eval $ac_try) 2>&5 25278 ac_status=$? 25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25280 (exit $ac_status); }; } && 25281 { ac_try='test -s conftest$ac_exeext' 25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25283 (eval $ac_try) 2>&5 25284 ac_status=$? 25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25286 (exit $ac_status); }; }; then 25287 ac_cv_lib_pthread_pthread_cond_timedwait=yes 25288else 25289 echo "$as_me: failed program was:" >&5 25290sed 's/^/| /' conftest.$ac_ext >&5 25291 25292ac_cv_lib_pthread_pthread_cond_timedwait=no 25293fi 25294rm -f conftest.err conftest.$ac_objext \ 25295 conftest$ac_exeext conftest.$ac_ext 25296LIBS=$ac_check_lib_save_LIBS 25297fi 25298echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cond_timedwait" >&5 25299echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cond_timedwait" >&6 25300if test $ac_cv_lib_pthread_pthread_cond_timedwait = yes; then 25301 THREAD_LIBS="-lpthread" 25302fi 25303 25304fi 25305 25306 25307# SELinux detection 25308if test x$enable_selinux = xno ; then 25309 have_selinux=no; 25310else 25311 # See if we have SELinux library 25312 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 25313echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 25314if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then 25315 echo $ECHO_N "(cached) $ECHO_C" >&6 25316else 25317 ac_check_lib_save_LIBS=$LIBS 25318LIBS="-lselinux $LIBS" 25319cat >conftest.$ac_ext <<_ACEOF 25320/* confdefs.h. */ 25321_ACEOF 25322cat confdefs.h >>conftest.$ac_ext 25323cat >>conftest.$ac_ext <<_ACEOF 25324/* end confdefs.h. */ 25325 25326/* Override any gcc2 internal prototype to avoid an error. */ 25327#ifdef __cplusplus 25328extern "C" 25329#endif 25330/* We use char because int might match the return type of a gcc2 25331 builtin and then its argument prototype would still apply. */ 25332char is_selinux_enabled (); 25333int 25334main () 25335{ 25336is_selinux_enabled (); 25337 ; 25338 return 0; 25339} 25340_ACEOF 25341rm -f conftest.$ac_objext conftest$ac_exeext 25342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25343 (eval $ac_link) 2>conftest.er1 25344 ac_status=$? 25345 grep -v '^ *+' conftest.er1 >conftest.err 25346 rm -f conftest.er1 25347 cat conftest.err >&5 25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25349 (exit $ac_status); } && 25350 { ac_try='test -z "$ac_c_werror_flag" 25351 || test ! -s conftest.err' 25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25353 (eval $ac_try) 2>&5 25354 ac_status=$? 25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25356 (exit $ac_status); }; } && 25357 { ac_try='test -s conftest$ac_exeext' 25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25359 (eval $ac_try) 2>&5 25360 ac_status=$? 25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25362 (exit $ac_status); }; }; then 25363 ac_cv_lib_selinux_is_selinux_enabled=yes 25364else 25365 echo "$as_me: failed program was:" >&5 25366sed 's/^/| /' conftest.$ac_ext >&5 25367 25368ac_cv_lib_selinux_is_selinux_enabled=no 25369fi 25370rm -f conftest.err conftest.$ac_objext \ 25371 conftest$ac_exeext conftest.$ac_ext 25372LIBS=$ac_check_lib_save_LIBS 25373fi 25374echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 25375echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 25376if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then 25377 have_selinux=yes 25378else 25379 have_selinux=no 25380fi 25381 25382 25383 # see if we have the SELinux header with the new D-Bus stuff in it 25384 if test x$have_selinux = xyes ; then 25385 echo "$as_me:$LINENO: checking for DBUS Flask permissions in selinux/av_permissions.h" >&5 25386echo $ECHO_N "checking for DBUS Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6 25387 cat >conftest.$ac_ext <<_ACEOF 25388/* confdefs.h. */ 25389_ACEOF 25390cat confdefs.h >>conftest.$ac_ext 25391cat >>conftest.$ac_ext <<_ACEOF 25392/* end confdefs.h. */ 25393#include <selinux/av_permissions.h> 25394int 25395main () 25396{ 25397#ifdef DBUS__ACQUIRE_SVC return 0; 25398 #else 25399 #error DBUS__ACQUIRE_SVC not defined 25400 #endif 25401 ; 25402 return 0; 25403} 25404_ACEOF 25405rm -f conftest.$ac_objext 25406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25407 (eval $ac_compile) 2>conftest.er1 25408 ac_status=$? 25409 grep -v '^ *+' conftest.er1 >conftest.err 25410 rm -f conftest.er1 25411 cat conftest.err >&5 25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25413 (exit $ac_status); } && 25414 { ac_try='test -z "$ac_c_werror_flag" 25415 || test ! -s conftest.err' 25416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25417 (eval $ac_try) 2>&5 25418 ac_status=$? 25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25420 (exit $ac_status); }; } && 25421 { ac_try='test -s conftest.$ac_objext' 25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25423 (eval $ac_try) 2>&5 25424 ac_status=$? 25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25426 (exit $ac_status); }; }; then 25427 have_selinux=yes 25428else 25429 echo "$as_me: failed program was:" >&5 25430sed 's/^/| /' conftest.$ac_ext >&5 25431 25432have_selinux=no 25433fi 25434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25435 echo "$as_me:$LINENO: result: $have_selinux" >&5 25436echo "${ECHO_T}$have_selinux" >&6 25437 fi 25438 25439 if test x$enable_selinux = xauto ; then 25440 if test x$have_selinux = xno ; then 25441 { echo "$as_me:$LINENO: WARNING: Sufficiently new SELinux library not found" >&5 25442echo "$as_me: WARNING: Sufficiently new SELinux library not found" >&2;} 25443 fi 25444 else 25445 if test x$have_selinux = xno ; then 25446 { { echo "$as_me:$LINENO: error: SElinux explicitly required, and SELinux library not found" >&5 25447echo "$as_me: error: SElinux explicitly required, and SELinux library not found" >&2;} 25448 { (exit 1); exit 1; }; } 25449 fi 25450 fi 25451fi 25452 25453 25454 25455if test x$have_selinux = xyes; then 25456 HAVE_SELINUX_TRUE= 25457 HAVE_SELINUX_FALSE='#' 25458else 25459 HAVE_SELINUX_TRUE='#' 25460 HAVE_SELINUX_FALSE= 25461fi 25462 25463 25464if test x$have_selinux = xyes ; then 25465 # the selinux code creates threads 25466 # which requires libpthread even on linux 25467 echo "$as_me:$LINENO: checking for pthread_create" >&5 25468echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6 25469if test "${ac_cv_func_pthread_create+set}" = set; then 25470 echo $ECHO_N "(cached) $ECHO_C" >&6 25471else 25472 cat >conftest.$ac_ext <<_ACEOF 25473/* confdefs.h. */ 25474_ACEOF 25475cat confdefs.h >>conftest.$ac_ext 25476cat >>conftest.$ac_ext <<_ACEOF 25477/* end confdefs.h. */ 25478/* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create. 25479 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25480#define pthread_create innocuous_pthread_create 25481 25482/* System header to define __stub macros and hopefully few prototypes, 25483 which can conflict with char pthread_create (); below. 25484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25485 <limits.h> exists even on freestanding compilers. */ 25486 25487#ifdef __STDC__ 25488# include <limits.h> 25489#else 25490# include <assert.h> 25491#endif 25492 25493#undef pthread_create 25494 25495/* Override any gcc2 internal prototype to avoid an error. */ 25496#ifdef __cplusplus 25497extern "C" 25498{ 25499#endif 25500/* We use char because int might match the return type of a gcc2 25501 builtin and then its argument prototype would still apply. */ 25502char pthread_create (); 25503/* The GNU C library defines this for functions which it implements 25504 to always fail with ENOSYS. Some functions are actually named 25505 something starting with __ and the normal name is an alias. */ 25506#if defined (__stub_pthread_create) || defined (__stub___pthread_create) 25507choke me 25508#else 25509char (*f) () = pthread_create; 25510#endif 25511#ifdef __cplusplus 25512} 25513#endif 25514 25515int 25516main () 25517{ 25518return f != pthread_create; 25519 ; 25520 return 0; 25521} 25522_ACEOF 25523rm -f conftest.$ac_objext conftest$ac_exeext 25524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25525 (eval $ac_link) 2>conftest.er1 25526 ac_status=$? 25527 grep -v '^ *+' conftest.er1 >conftest.err 25528 rm -f conftest.er1 25529 cat conftest.err >&5 25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25531 (exit $ac_status); } && 25532 { ac_try='test -z "$ac_c_werror_flag" 25533 || test ! -s conftest.err' 25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25535 (eval $ac_try) 2>&5 25536 ac_status=$? 25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25538 (exit $ac_status); }; } && 25539 { ac_try='test -s conftest$ac_exeext' 25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25541 (eval $ac_try) 2>&5 25542 ac_status=$? 25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25544 (exit $ac_status); }; }; then 25545 ac_cv_func_pthread_create=yes 25546else 25547 echo "$as_me: failed program was:" >&5 25548sed 's/^/| /' conftest.$ac_ext >&5 25549 25550ac_cv_func_pthread_create=no 25551fi 25552rm -f conftest.err conftest.$ac_objext \ 25553 conftest$ac_exeext conftest.$ac_ext 25554fi 25555echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5 25556echo "${ECHO_T}$ac_cv_func_pthread_create" >&6 25557if test $ac_cv_func_pthread_create = yes; then 25558 : 25559else 25560 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 25561echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 25562if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 25563 echo $ECHO_N "(cached) $ECHO_C" >&6 25564else 25565 ac_check_lib_save_LIBS=$LIBS 25566LIBS="-lpthread $LIBS" 25567cat >conftest.$ac_ext <<_ACEOF 25568/* confdefs.h. */ 25569_ACEOF 25570cat confdefs.h >>conftest.$ac_ext 25571cat >>conftest.$ac_ext <<_ACEOF 25572/* end confdefs.h. */ 25573 25574/* Override any gcc2 internal prototype to avoid an error. */ 25575#ifdef __cplusplus 25576extern "C" 25577#endif 25578/* We use char because int might match the return type of a gcc2 25579 builtin and then its argument prototype would still apply. */ 25580char pthread_create (); 25581int 25582main () 25583{ 25584pthread_create (); 25585 ; 25586 return 0; 25587} 25588_ACEOF 25589rm -f conftest.$ac_objext conftest$ac_exeext 25590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25591 (eval $ac_link) 2>conftest.er1 25592 ac_status=$? 25593 grep -v '^ *+' conftest.er1 >conftest.err 25594 rm -f conftest.er1 25595 cat conftest.err >&5 25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25597 (exit $ac_status); } && 25598 { ac_try='test -z "$ac_c_werror_flag" 25599 || test ! -s conftest.err' 25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25601 (eval $ac_try) 2>&5 25602 ac_status=$? 25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25604 (exit $ac_status); }; } && 25605 { ac_try='test -s conftest$ac_exeext' 25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25607 (eval $ac_try) 2>&5 25608 ac_status=$? 25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25610 (exit $ac_status); }; }; then 25611 ac_cv_lib_pthread_pthread_create=yes 25612else 25613 echo "$as_me: failed program was:" >&5 25614sed 's/^/| /' conftest.$ac_ext >&5 25615 25616ac_cv_lib_pthread_pthread_create=no 25617fi 25618rm -f conftest.err conftest.$ac_objext \ 25619 conftest$ac_exeext conftest.$ac_ext 25620LIBS=$ac_check_lib_save_LIBS 25621fi 25622echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 25623echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 25624if test $ac_cv_lib_pthread_pthread_create = yes; then 25625 SELINUX_THREAD_LIBS="-lpthread" 25626fi 25627 25628fi 25629 25630 25631 SELINUX_LIBS="-lselinux $SELINUX_THREAD_LIBS" 25632 25633cat >>confdefs.h <<\_ACEOF 25634#define HAVE_SELINUX 1 25635_ACEOF 25636 25637else 25638 SELINUX_LIBS= 25639fi 25640 25641# dnotify checks 25642if test x$enable_dnotify = xno ; then 25643 have_dnotify=no; 25644else 25645 if test x$target_os = xlinux-gnu -o x$target_os = xlinux; then 25646 have_dnotify=yes; 25647 else 25648 have_dnotify=no; 25649 fi 25650fi 25651 25652if test x$have_dnotify = xyes; then 25653 25654cat >>confdefs.h <<\_ACEOF 25655#define DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1 25656_ACEOF 25657 25658fi 25659 25660 25661 25662if test x$have_dnotify = xyes; then 25663 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE= 25664 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE='#' 25665else 25666 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE='#' 25667 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE= 25668fi 25669 25670 25671# kqueue checks 25672if test x$enable_kqueue = xno ; then 25673 have_kqueue=no 25674else 25675 have_kqueue=yes 25676 if test "${ac_cv_header_sys_event_h+set}" = set; then 25677 echo "$as_me:$LINENO: checking for sys/event.h" >&5 25678echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6 25679if test "${ac_cv_header_sys_event_h+set}" = set; then 25680 echo $ECHO_N "(cached) $ECHO_C" >&6 25681fi 25682echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5 25683echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6 25684else 25685 # Is the header compilable? 25686echo "$as_me:$LINENO: checking sys/event.h usability" >&5 25687echo $ECHO_N "checking sys/event.h usability... $ECHO_C" >&6 25688cat >conftest.$ac_ext <<_ACEOF 25689/* confdefs.h. */ 25690_ACEOF 25691cat confdefs.h >>conftest.$ac_ext 25692cat >>conftest.$ac_ext <<_ACEOF 25693/* end confdefs.h. */ 25694$ac_includes_default 25695#include <sys/event.h> 25696_ACEOF 25697rm -f conftest.$ac_objext 25698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25699 (eval $ac_compile) 2>conftest.er1 25700 ac_status=$? 25701 grep -v '^ *+' conftest.er1 >conftest.err 25702 rm -f conftest.er1 25703 cat conftest.err >&5 25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25705 (exit $ac_status); } && 25706 { ac_try='test -z "$ac_c_werror_flag" 25707 || test ! -s conftest.err' 25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25709 (eval $ac_try) 2>&5 25710 ac_status=$? 25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25712 (exit $ac_status); }; } && 25713 { ac_try='test -s conftest.$ac_objext' 25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25715 (eval $ac_try) 2>&5 25716 ac_status=$? 25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25718 (exit $ac_status); }; }; then 25719 ac_header_compiler=yes 25720else 25721 echo "$as_me: failed program was:" >&5 25722sed 's/^/| /' conftest.$ac_ext >&5 25723 25724ac_header_compiler=no 25725fi 25726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25728echo "${ECHO_T}$ac_header_compiler" >&6 25729 25730# Is the header present? 25731echo "$as_me:$LINENO: checking sys/event.h presence" >&5 25732echo $ECHO_N "checking sys/event.h presence... $ECHO_C" >&6 25733cat >conftest.$ac_ext <<_ACEOF 25734/* confdefs.h. */ 25735_ACEOF 25736cat confdefs.h >>conftest.$ac_ext 25737cat >>conftest.$ac_ext <<_ACEOF 25738/* end confdefs.h. */ 25739#include <sys/event.h> 25740_ACEOF 25741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 25742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 25743 ac_status=$? 25744 grep -v '^ *+' conftest.er1 >conftest.err 25745 rm -f conftest.er1 25746 cat conftest.err >&5 25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25748 (exit $ac_status); } >/dev/null; then 25749 if test -s conftest.err; then 25750 ac_cpp_err=$ac_c_preproc_warn_flag 25751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 25752 else 25753 ac_cpp_err= 25754 fi 25755else 25756 ac_cpp_err=yes 25757fi 25758if test -z "$ac_cpp_err"; then 25759 ac_header_preproc=yes 25760else 25761 echo "$as_me: failed program was:" >&5 25762sed 's/^/| /' conftest.$ac_ext >&5 25763 25764 ac_header_preproc=no 25765fi 25766rm -f conftest.err conftest.$ac_ext 25767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25768echo "${ECHO_T}$ac_header_preproc" >&6 25769 25770# So? What about this header? 25771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25772 yes:no: ) 25773 { echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5 25774echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 25775 { echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5 25776echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;} 25777 ac_header_preproc=yes 25778 ;; 25779 no:yes:* ) 25780 { echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5 25781echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;} 25782 { echo "$as_me:$LINENO: WARNING: sys/event.h: check for missing prerequisite headers?" >&5 25783echo "$as_me: WARNING: sys/event.h: check for missing prerequisite headers?" >&2;} 25784 { echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5 25785echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;} 25786 { echo "$as_me:$LINENO: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&5 25787echo "$as_me: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&2;} 25788 { echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5 25789echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;} 25790 { echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5 25791echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;} 25792 ( 25793 cat <<\_ASBOX 25794## ------------------------------------------ ## 25795## Report this to the AC_PACKAGE_NAME lists. ## 25796## ------------------------------------------ ## 25797_ASBOX 25798 ) | 25799 sed "s/^/$as_me: WARNING: /" >&2 25800 ;; 25801esac 25802echo "$as_me:$LINENO: checking for sys/event.h" >&5 25803echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6 25804if test "${ac_cv_header_sys_event_h+set}" = set; then 25805 echo $ECHO_N "(cached) $ECHO_C" >&6 25806else 25807 ac_cv_header_sys_event_h=$ac_header_preproc 25808fi 25809echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5 25810echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6 25811 25812fi 25813if test $ac_cv_header_sys_event_h = yes; then 25814 : 25815else 25816 have_kqueue=no 25817fi 25818 25819 25820 echo "$as_me:$LINENO: checking for kqueue" >&5 25821echo $ECHO_N "checking for kqueue... $ECHO_C" >&6 25822if test "${ac_cv_func_kqueue+set}" = set; then 25823 echo $ECHO_N "(cached) $ECHO_C" >&6 25824else 25825 cat >conftest.$ac_ext <<_ACEOF 25826/* confdefs.h. */ 25827_ACEOF 25828cat confdefs.h >>conftest.$ac_ext 25829cat >>conftest.$ac_ext <<_ACEOF 25830/* end confdefs.h. */ 25831/* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue. 25832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25833#define kqueue innocuous_kqueue 25834 25835/* System header to define __stub macros and hopefully few prototypes, 25836 which can conflict with char kqueue (); below. 25837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25838 <limits.h> exists even on freestanding compilers. */ 25839 25840#ifdef __STDC__ 25841# include <limits.h> 25842#else 25843# include <assert.h> 25844#endif 25845 25846#undef kqueue 25847 25848/* Override any gcc2 internal prototype to avoid an error. */ 25849#ifdef __cplusplus 25850extern "C" 25851{ 25852#endif 25853/* We use char because int might match the return type of a gcc2 25854 builtin and then its argument prototype would still apply. */ 25855char kqueue (); 25856/* The GNU C library defines this for functions which it implements 25857 to always fail with ENOSYS. Some functions are actually named 25858 something starting with __ and the normal name is an alias. */ 25859#if defined (__stub_kqueue) || defined (__stub___kqueue) 25860choke me 25861#else 25862char (*f) () = kqueue; 25863#endif 25864#ifdef __cplusplus 25865} 25866#endif 25867 25868int 25869main () 25870{ 25871return f != kqueue; 25872 ; 25873 return 0; 25874} 25875_ACEOF 25876rm -f conftest.$ac_objext conftest$ac_exeext 25877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25878 (eval $ac_link) 2>conftest.er1 25879 ac_status=$? 25880 grep -v '^ *+' conftest.er1 >conftest.err 25881 rm -f conftest.er1 25882 cat conftest.err >&5 25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25884 (exit $ac_status); } && 25885 { ac_try='test -z "$ac_c_werror_flag" 25886 || test ! -s conftest.err' 25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25888 (eval $ac_try) 2>&5 25889 ac_status=$? 25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25891 (exit $ac_status); }; } && 25892 { ac_try='test -s conftest$ac_exeext' 25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25894 (eval $ac_try) 2>&5 25895 ac_status=$? 25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25897 (exit $ac_status); }; }; then 25898 ac_cv_func_kqueue=yes 25899else 25900 echo "$as_me: failed program was:" >&5 25901sed 's/^/| /' conftest.$ac_ext >&5 25902 25903ac_cv_func_kqueue=no 25904fi 25905rm -f conftest.err conftest.$ac_objext \ 25906 conftest$ac_exeext conftest.$ac_ext 25907fi 25908echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5 25909echo "${ECHO_T}$ac_cv_func_kqueue" >&6 25910if test $ac_cv_func_kqueue = yes; then 25911 : 25912else 25913 have_kqueue=no 25914fi 25915 25916 25917 if test x$enable_kqueue = xyes -a x$have_kqueue = xno; then 25918 { { echo "$as_me:$LINENO: error: kqueue support explicitly enabled but not available" >&5 25919echo "$as_me: error: kqueue support explicitly enabled but not available" >&2;} 25920 { (exit 1); exit 1; }; } 25921 fi 25922fi 25923 25924if test x$have_kqueue = xyes; then 25925 25926cat >>confdefs.h <<\_ACEOF 25927#define DBUS_BUS_ENABLE_KQUEUE 1 25928_ACEOF 25929 25930fi 25931 25932 25933 25934if test x$have_kqueue = xyes; then 25935 DBUS_BUS_ENABLE_KQUEUE_TRUE= 25936 DBUS_BUS_ENABLE_KQUEUE_FALSE='#' 25937else 25938 DBUS_BUS_ENABLE_KQUEUE_TRUE='#' 25939 DBUS_BUS_ENABLE_KQUEUE_FALSE= 25940fi 25941 25942 25943if test x$enable_console_owner_file = xno ; then 25944 have_console_owner_file=no; 25945else 25946 case $target_os in 25947 solaris*) 25948 have_console_owner_file=yes; 25949 25950cat >>confdefs.h <<\_ACEOF 25951#define HAVE_CONSOLE_OWNER_FILE 1 25952_ACEOF 25953 25954 ;; 25955 *) 25956 have_console_owner_file=no;; 25957 esac 25958fi 25959 25960 25961 25962if test x$have_console_owner_file = xyes; then 25963 HAVE_CONSOLE_OWNER_FILE_TRUE= 25964 HAVE_CONSOLE_OWNER_FILE_FALSE='#' 25965else 25966 HAVE_CONSOLE_OWNER_FILE_TRUE='#' 25967 HAVE_CONSOLE_OWNER_FILE_FALSE= 25968fi 25969 25970 25971#### Set up final flags 25972DBUS_CLIENT_CFLAGS= 25973DBUS_CLIENT_LIBS="$THREAD_LIBS" 25974 25975 25976 25977DBUS_BUS_CFLAGS=$XML_CFLAGS 25978DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS $THREAD_LIBS" 25979 25980 25981 25982DBUS_TEST_CFLAGS= 25983DBUS_TEST_LIBS="$THREAD_LIBS" 25984 25985 25986 25987### X11 detection 25988echo "$as_me:$LINENO: checking for X" >&5 25989echo $ECHO_N "checking for X... $ECHO_C" >&6 25990 25991 25992# Check whether --with-x or --without-x was given. 25993if test "${with_x+set}" = set; then 25994 withval="$with_x" 25995 25996fi; 25997# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 25998if test "x$with_x" = xno; then 25999 # The user explicitly disabled X. 26000 have_x=disabled 26001else 26002 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 26003 # Both variables are already set. 26004 have_x=yes 26005 else 26006 if test "${ac_cv_have_x+set}" = set; then 26007 echo $ECHO_N "(cached) $ECHO_C" >&6 26008else 26009 # One or both of the vars are not set, and there is no cached value. 26010ac_x_includes=no ac_x_libraries=no 26011rm -fr conftest.dir 26012if mkdir conftest.dir; then 26013 cd conftest.dir 26014 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 26015 cat >Imakefile <<'_ACEOF' 26016acfindx: 26017 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 26018_ACEOF 26019 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 26020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 26021 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 26022 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 26023 for ac_extension in a so sl; do 26024 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 26025 test -f $ac_im_libdir/libX11.$ac_extension; then 26026 ac_im_usrlibdir=$ac_im_libdir; break 26027 fi 26028 done 26029 # Screen out bogus values from the imake configuration. They are 26030 # bogus both because they are the default anyway, and because 26031 # using them would break gcc on systems where it needs fixed includes. 26032 case $ac_im_incroot in 26033 /usr/include) ;; 26034 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 26035 esac 26036 case $ac_im_usrlibdir in 26037 /usr/lib | /lib) ;; 26038 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 26039 esac 26040 fi 26041 cd .. 26042 rm -fr conftest.dir 26043fi 26044 26045# Standard set of common directories for X headers. 26046# Check X11 before X11Rn because it is often a symlink to the current release. 26047ac_x_header_dirs=' 26048/usr/X11/include 26049/usr/X11R6/include 26050/usr/X11R5/include 26051/usr/X11R4/include 26052 26053/usr/include/X11 26054/usr/include/X11R6 26055/usr/include/X11R5 26056/usr/include/X11R4 26057 26058/usr/local/X11/include 26059/usr/local/X11R6/include 26060/usr/local/X11R5/include 26061/usr/local/X11R4/include 26062 26063/usr/local/include/X11 26064/usr/local/include/X11R6 26065/usr/local/include/X11R5 26066/usr/local/include/X11R4 26067 26068/usr/X386/include 26069/usr/x386/include 26070/usr/XFree86/include/X11 26071 26072/usr/include 26073/usr/local/include 26074/usr/unsupported/include 26075/usr/athena/include 26076/usr/local/x11r5/include 26077/usr/lpp/Xamples/include 26078 26079/usr/openwin/include 26080/usr/openwin/share/include' 26081 26082if test "$ac_x_includes" = no; then 26083 # Guess where to find include files, by looking for Xlib.h. 26084 # First, try using that file with no special directory specified. 26085 cat >conftest.$ac_ext <<_ACEOF 26086/* confdefs.h. */ 26087_ACEOF 26088cat confdefs.h >>conftest.$ac_ext 26089cat >>conftest.$ac_ext <<_ACEOF 26090/* end confdefs.h. */ 26091#include <X11/Xlib.h> 26092_ACEOF 26093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 26094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 26095 ac_status=$? 26096 grep -v '^ *+' conftest.er1 >conftest.err 26097 rm -f conftest.er1 26098 cat conftest.err >&5 26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26100 (exit $ac_status); } >/dev/null; then 26101 if test -s conftest.err; then 26102 ac_cpp_err=$ac_c_preproc_warn_flag 26103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 26104 else 26105 ac_cpp_err= 26106 fi 26107else 26108 ac_cpp_err=yes 26109fi 26110if test -z "$ac_cpp_err"; then 26111 # We can compile using X headers with no special include directory. 26112ac_x_includes= 26113else 26114 echo "$as_me: failed program was:" >&5 26115sed 's/^/| /' conftest.$ac_ext >&5 26116 26117 for ac_dir in $ac_x_header_dirs; do 26118 if test -r "$ac_dir/X11/Xlib.h"; then 26119 ac_x_includes=$ac_dir 26120 break 26121 fi 26122done 26123fi 26124rm -f conftest.err conftest.$ac_ext 26125fi # $ac_x_includes = no 26126 26127if test "$ac_x_libraries" = no; then 26128 # Check for the libraries. 26129 # See if we find them without any special options. 26130 # Don't add to $LIBS permanently. 26131 ac_save_LIBS=$LIBS 26132 LIBS="-lX11 $LIBS" 26133 cat >conftest.$ac_ext <<_ACEOF 26134/* confdefs.h. */ 26135_ACEOF 26136cat confdefs.h >>conftest.$ac_ext 26137cat >>conftest.$ac_ext <<_ACEOF 26138/* end confdefs.h. */ 26139#include <X11/Xlib.h> 26140int 26141main () 26142{ 26143XrmInitialize () 26144 ; 26145 return 0; 26146} 26147_ACEOF 26148rm -f conftest.$ac_objext conftest$ac_exeext 26149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26150 (eval $ac_link) 2>conftest.er1 26151 ac_status=$? 26152 grep -v '^ *+' conftest.er1 >conftest.err 26153 rm -f conftest.er1 26154 cat conftest.err >&5 26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26156 (exit $ac_status); } && 26157 { ac_try='test -z "$ac_c_werror_flag" 26158 || test ! -s conftest.err' 26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26160 (eval $ac_try) 2>&5 26161 ac_status=$? 26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26163 (exit $ac_status); }; } && 26164 { ac_try='test -s conftest$ac_exeext' 26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26166 (eval $ac_try) 2>&5 26167 ac_status=$? 26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26169 (exit $ac_status); }; }; then 26170 LIBS=$ac_save_LIBS 26171# We can link X programs with no special library path. 26172ac_x_libraries= 26173else 26174 echo "$as_me: failed program was:" >&5 26175sed 's/^/| /' conftest.$ac_ext >&5 26176 26177LIBS=$ac_save_LIBS 26178for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 26179do 26180 # Don't even attempt the hair of trying to link an X program! 26181 for ac_extension in a so sl; do 26182 if test -r $ac_dir/libXt.$ac_extension; then 26183 ac_x_libraries=$ac_dir 26184 break 2 26185 fi 26186 done 26187done 26188fi 26189rm -f conftest.err conftest.$ac_objext \ 26190 conftest$ac_exeext conftest.$ac_ext 26191fi # $ac_x_libraries = no 26192 26193if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 26194 # Didn't find X anywhere. Cache the known absence of X. 26195 ac_cv_have_x="have_x=no" 26196else 26197 # Record where we found X for the cache. 26198 ac_cv_have_x="have_x=yes \ 26199 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 26200fi 26201fi 26202 26203 fi 26204 eval "$ac_cv_have_x" 26205fi # $with_x != no 26206 26207if test "$have_x" != yes; then 26208 echo "$as_me:$LINENO: result: $have_x" >&5 26209echo "${ECHO_T}$have_x" >&6 26210 no_x=yes 26211else 26212 # If each of the values was on the command line, it overrides each guess. 26213 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 26214 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 26215 # Update the cache value to reflect the command line values. 26216 ac_cv_have_x="have_x=yes \ 26217 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 26218 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 26219echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 26220fi 26221 26222if test "$no_x" = yes; then 26223 # Not all programs may use this symbol, but it does not hurt to define it. 26224 26225cat >>confdefs.h <<\_ACEOF 26226#define X_DISPLAY_MISSING 1 26227_ACEOF 26228 26229 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 26230else 26231 if test -n "$x_includes"; then 26232 X_CFLAGS="$X_CFLAGS -I$x_includes" 26233 fi 26234 26235 # It would also be nice to do this for all -L options, not just this one. 26236 if test -n "$x_libraries"; then 26237 X_LIBS="$X_LIBS -L$x_libraries" 26238 # For Solaris; some versions of Sun CC require a space after -R and 26239 # others require no space. Words are not sufficient . . . . 26240 case `(uname -sr) 2>/dev/null` in 26241 "SunOS 5"*) 26242 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 26243echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 26244 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 26245 cat >conftest.$ac_ext <<_ACEOF 26246/* confdefs.h. */ 26247_ACEOF 26248cat confdefs.h >>conftest.$ac_ext 26249cat >>conftest.$ac_ext <<_ACEOF 26250/* end confdefs.h. */ 26251 26252int 26253main () 26254{ 26255 26256 ; 26257 return 0; 26258} 26259_ACEOF 26260rm -f conftest.$ac_objext conftest$ac_exeext 26261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26262 (eval $ac_link) 2>conftest.er1 26263 ac_status=$? 26264 grep -v '^ *+' conftest.er1 >conftest.err 26265 rm -f conftest.er1 26266 cat conftest.err >&5 26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26268 (exit $ac_status); } && 26269 { ac_try='test -z "$ac_c_werror_flag" 26270 || test ! -s conftest.err' 26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26272 (eval $ac_try) 2>&5 26273 ac_status=$? 26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26275 (exit $ac_status); }; } && 26276 { ac_try='test -s conftest$ac_exeext' 26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26278 (eval $ac_try) 2>&5 26279 ac_status=$? 26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26281 (exit $ac_status); }; }; then 26282 ac_R_nospace=yes 26283else 26284 echo "$as_me: failed program was:" >&5 26285sed 's/^/| /' conftest.$ac_ext >&5 26286 26287ac_R_nospace=no 26288fi 26289rm -f conftest.err conftest.$ac_objext \ 26290 conftest$ac_exeext conftest.$ac_ext 26291 if test $ac_R_nospace = yes; then 26292 echo "$as_me:$LINENO: result: no" >&5 26293echo "${ECHO_T}no" >&6 26294 X_LIBS="$X_LIBS -R$x_libraries" 26295 else 26296 LIBS="$ac_xsave_LIBS -R $x_libraries" 26297 cat >conftest.$ac_ext <<_ACEOF 26298/* confdefs.h. */ 26299_ACEOF 26300cat confdefs.h >>conftest.$ac_ext 26301cat >>conftest.$ac_ext <<_ACEOF 26302/* end confdefs.h. */ 26303 26304int 26305main () 26306{ 26307 26308 ; 26309 return 0; 26310} 26311_ACEOF 26312rm -f conftest.$ac_objext conftest$ac_exeext 26313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26314 (eval $ac_link) 2>conftest.er1 26315 ac_status=$? 26316 grep -v '^ *+' conftest.er1 >conftest.err 26317 rm -f conftest.er1 26318 cat conftest.err >&5 26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26320 (exit $ac_status); } && 26321 { ac_try='test -z "$ac_c_werror_flag" 26322 || test ! -s conftest.err' 26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26324 (eval $ac_try) 2>&5 26325 ac_status=$? 26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26327 (exit $ac_status); }; } && 26328 { ac_try='test -s conftest$ac_exeext' 26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26330 (eval $ac_try) 2>&5 26331 ac_status=$? 26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26333 (exit $ac_status); }; }; then 26334 ac_R_space=yes 26335else 26336 echo "$as_me: failed program was:" >&5 26337sed 's/^/| /' conftest.$ac_ext >&5 26338 26339ac_R_space=no 26340fi 26341rm -f conftest.err conftest.$ac_objext \ 26342 conftest$ac_exeext conftest.$ac_ext 26343 if test $ac_R_space = yes; then 26344 echo "$as_me:$LINENO: result: yes" >&5 26345echo "${ECHO_T}yes" >&6 26346 X_LIBS="$X_LIBS -R $x_libraries" 26347 else 26348 echo "$as_me:$LINENO: result: neither works" >&5 26349echo "${ECHO_T}neither works" >&6 26350 fi 26351 fi 26352 LIBS=$ac_xsave_LIBS 26353 esac 26354 fi 26355 26356 # Check for system-dependent libraries X programs must link with. 26357 # Do this before checking for the system-independent R6 libraries 26358 # (-lICE), since we may need -lsocket or whatever for X linking. 26359 26360 if test "$ISC" = yes; then 26361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 26362 else 26363 # Martyn Johnson says this is needed for Ultrix, if the X 26364 # libraries were built with DECnet support. And Karl Berry says 26365 # the Alpha needs dnet_stub (dnet does not exist). 26366 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 26367 cat >conftest.$ac_ext <<_ACEOF 26368/* confdefs.h. */ 26369_ACEOF 26370cat confdefs.h >>conftest.$ac_ext 26371cat >>conftest.$ac_ext <<_ACEOF 26372/* end confdefs.h. */ 26373 26374/* Override any gcc2 internal prototype to avoid an error. */ 26375#ifdef __cplusplus 26376extern "C" 26377#endif 26378/* We use char because int might match the return type of a gcc2 26379 builtin and then its argument prototype would still apply. */ 26380char XOpenDisplay (); 26381int 26382main () 26383{ 26384XOpenDisplay (); 26385 ; 26386 return 0; 26387} 26388_ACEOF 26389rm -f conftest.$ac_objext conftest$ac_exeext 26390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26391 (eval $ac_link) 2>conftest.er1 26392 ac_status=$? 26393 grep -v '^ *+' conftest.er1 >conftest.err 26394 rm -f conftest.er1 26395 cat conftest.err >&5 26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26397 (exit $ac_status); } && 26398 { ac_try='test -z "$ac_c_werror_flag" 26399 || test ! -s conftest.err' 26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26401 (eval $ac_try) 2>&5 26402 ac_status=$? 26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26404 (exit $ac_status); }; } && 26405 { ac_try='test -s conftest$ac_exeext' 26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26407 (eval $ac_try) 2>&5 26408 ac_status=$? 26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26410 (exit $ac_status); }; }; then 26411 : 26412else 26413 echo "$as_me: failed program was:" >&5 26414sed 's/^/| /' conftest.$ac_ext >&5 26415 26416echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 26417echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 26418if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 26419 echo $ECHO_N "(cached) $ECHO_C" >&6 26420else 26421 ac_check_lib_save_LIBS=$LIBS 26422LIBS="-ldnet $LIBS" 26423cat >conftest.$ac_ext <<_ACEOF 26424/* confdefs.h. */ 26425_ACEOF 26426cat confdefs.h >>conftest.$ac_ext 26427cat >>conftest.$ac_ext <<_ACEOF 26428/* end confdefs.h. */ 26429 26430/* Override any gcc2 internal prototype to avoid an error. */ 26431#ifdef __cplusplus 26432extern "C" 26433#endif 26434/* We use char because int might match the return type of a gcc2 26435 builtin and then its argument prototype would still apply. */ 26436char dnet_ntoa (); 26437int 26438main () 26439{ 26440dnet_ntoa (); 26441 ; 26442 return 0; 26443} 26444_ACEOF 26445rm -f conftest.$ac_objext conftest$ac_exeext 26446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26447 (eval $ac_link) 2>conftest.er1 26448 ac_status=$? 26449 grep -v '^ *+' conftest.er1 >conftest.err 26450 rm -f conftest.er1 26451 cat conftest.err >&5 26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26453 (exit $ac_status); } && 26454 { ac_try='test -z "$ac_c_werror_flag" 26455 || test ! -s conftest.err' 26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26457 (eval $ac_try) 2>&5 26458 ac_status=$? 26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26460 (exit $ac_status); }; } && 26461 { ac_try='test -s conftest$ac_exeext' 26462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26463 (eval $ac_try) 2>&5 26464 ac_status=$? 26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26466 (exit $ac_status); }; }; then 26467 ac_cv_lib_dnet_dnet_ntoa=yes 26468else 26469 echo "$as_me: failed program was:" >&5 26470sed 's/^/| /' conftest.$ac_ext >&5 26471 26472ac_cv_lib_dnet_dnet_ntoa=no 26473fi 26474rm -f conftest.err conftest.$ac_objext \ 26475 conftest$ac_exeext conftest.$ac_ext 26476LIBS=$ac_check_lib_save_LIBS 26477fi 26478echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 26479echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 26480if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 26481 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 26482fi 26483 26484 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 26485 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 26486echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 26487if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 26488 echo $ECHO_N "(cached) $ECHO_C" >&6 26489else 26490 ac_check_lib_save_LIBS=$LIBS 26491LIBS="-ldnet_stub $LIBS" 26492cat >conftest.$ac_ext <<_ACEOF 26493/* confdefs.h. */ 26494_ACEOF 26495cat confdefs.h >>conftest.$ac_ext 26496cat >>conftest.$ac_ext <<_ACEOF 26497/* end confdefs.h. */ 26498 26499/* Override any gcc2 internal prototype to avoid an error. */ 26500#ifdef __cplusplus 26501extern "C" 26502#endif 26503/* We use char because int might match the return type of a gcc2 26504 builtin and then its argument prototype would still apply. */ 26505char dnet_ntoa (); 26506int 26507main () 26508{ 26509dnet_ntoa (); 26510 ; 26511 return 0; 26512} 26513_ACEOF 26514rm -f conftest.$ac_objext conftest$ac_exeext 26515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26516 (eval $ac_link) 2>conftest.er1 26517 ac_status=$? 26518 grep -v '^ *+' conftest.er1 >conftest.err 26519 rm -f conftest.er1 26520 cat conftest.err >&5 26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26522 (exit $ac_status); } && 26523 { ac_try='test -z "$ac_c_werror_flag" 26524 || test ! -s conftest.err' 26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26526 (eval $ac_try) 2>&5 26527 ac_status=$? 26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26529 (exit $ac_status); }; } && 26530 { ac_try='test -s conftest$ac_exeext' 26531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26532 (eval $ac_try) 2>&5 26533 ac_status=$? 26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26535 (exit $ac_status); }; }; then 26536 ac_cv_lib_dnet_stub_dnet_ntoa=yes 26537else 26538 echo "$as_me: failed program was:" >&5 26539sed 's/^/| /' conftest.$ac_ext >&5 26540 26541ac_cv_lib_dnet_stub_dnet_ntoa=no 26542fi 26543rm -f conftest.err conftest.$ac_objext \ 26544 conftest$ac_exeext conftest.$ac_ext 26545LIBS=$ac_check_lib_save_LIBS 26546fi 26547echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 26548echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 26549if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 26550 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 26551fi 26552 26553 fi 26554fi 26555rm -f conftest.err conftest.$ac_objext \ 26556 conftest$ac_exeext conftest.$ac_ext 26557 LIBS="$ac_xsave_LIBS" 26558 26559 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 26560 # to get the SysV transport functions. 26561 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 26562 # needs -lnsl. 26563 # The nsl library prevents programs from opening the X display 26564 # on Irix 5.2, according to T.E. Dickey. 26565 # The functions gethostbyname, getservbyname, and inet_addr are 26566 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 26567 echo "$as_me:$LINENO: checking for gethostbyname" >&5 26568echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 26569if test "${ac_cv_func_gethostbyname+set}" = set; then 26570 echo $ECHO_N "(cached) $ECHO_C" >&6 26571else 26572 cat >conftest.$ac_ext <<_ACEOF 26573/* confdefs.h. */ 26574_ACEOF 26575cat confdefs.h >>conftest.$ac_ext 26576cat >>conftest.$ac_ext <<_ACEOF 26577/* end confdefs.h. */ 26578/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 26579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26580#define gethostbyname innocuous_gethostbyname 26581 26582/* System header to define __stub macros and hopefully few prototypes, 26583 which can conflict with char gethostbyname (); below. 26584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26585 <limits.h> exists even on freestanding compilers. */ 26586 26587#ifdef __STDC__ 26588# include <limits.h> 26589#else 26590# include <assert.h> 26591#endif 26592 26593#undef gethostbyname 26594 26595/* Override any gcc2 internal prototype to avoid an error. */ 26596#ifdef __cplusplus 26597extern "C" 26598{ 26599#endif 26600/* We use char because int might match the return type of a gcc2 26601 builtin and then its argument prototype would still apply. */ 26602char gethostbyname (); 26603/* The GNU C library defines this for functions which it implements 26604 to always fail with ENOSYS. Some functions are actually named 26605 something starting with __ and the normal name is an alias. */ 26606#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 26607choke me 26608#else 26609char (*f) () = gethostbyname; 26610#endif 26611#ifdef __cplusplus 26612} 26613#endif 26614 26615int 26616main () 26617{ 26618return f != gethostbyname; 26619 ; 26620 return 0; 26621} 26622_ACEOF 26623rm -f conftest.$ac_objext conftest$ac_exeext 26624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26625 (eval $ac_link) 2>conftest.er1 26626 ac_status=$? 26627 grep -v '^ *+' conftest.er1 >conftest.err 26628 rm -f conftest.er1 26629 cat conftest.err >&5 26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26631 (exit $ac_status); } && 26632 { ac_try='test -z "$ac_c_werror_flag" 26633 || test ! -s conftest.err' 26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26635 (eval $ac_try) 2>&5 26636 ac_status=$? 26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26638 (exit $ac_status); }; } && 26639 { ac_try='test -s conftest$ac_exeext' 26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26641 (eval $ac_try) 2>&5 26642 ac_status=$? 26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26644 (exit $ac_status); }; }; then 26645 ac_cv_func_gethostbyname=yes 26646else 26647 echo "$as_me: failed program was:" >&5 26648sed 's/^/| /' conftest.$ac_ext >&5 26649 26650ac_cv_func_gethostbyname=no 26651fi 26652rm -f conftest.err conftest.$ac_objext \ 26653 conftest$ac_exeext conftest.$ac_ext 26654fi 26655echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 26656echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 26657 26658 if test $ac_cv_func_gethostbyname = no; then 26659 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 26660echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 26661if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 26662 echo $ECHO_N "(cached) $ECHO_C" >&6 26663else 26664 ac_check_lib_save_LIBS=$LIBS 26665LIBS="-lnsl $LIBS" 26666cat >conftest.$ac_ext <<_ACEOF 26667/* confdefs.h. */ 26668_ACEOF 26669cat confdefs.h >>conftest.$ac_ext 26670cat >>conftest.$ac_ext <<_ACEOF 26671/* end confdefs.h. */ 26672 26673/* Override any gcc2 internal prototype to avoid an error. */ 26674#ifdef __cplusplus 26675extern "C" 26676#endif 26677/* We use char because int might match the return type of a gcc2 26678 builtin and then its argument prototype would still apply. */ 26679char gethostbyname (); 26680int 26681main () 26682{ 26683gethostbyname (); 26684 ; 26685 return 0; 26686} 26687_ACEOF 26688rm -f conftest.$ac_objext conftest$ac_exeext 26689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26690 (eval $ac_link) 2>conftest.er1 26691 ac_status=$? 26692 grep -v '^ *+' conftest.er1 >conftest.err 26693 rm -f conftest.er1 26694 cat conftest.err >&5 26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26696 (exit $ac_status); } && 26697 { ac_try='test -z "$ac_c_werror_flag" 26698 || test ! -s conftest.err' 26699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26700 (eval $ac_try) 2>&5 26701 ac_status=$? 26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26703 (exit $ac_status); }; } && 26704 { ac_try='test -s conftest$ac_exeext' 26705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26706 (eval $ac_try) 2>&5 26707 ac_status=$? 26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26709 (exit $ac_status); }; }; then 26710 ac_cv_lib_nsl_gethostbyname=yes 26711else 26712 echo "$as_me: failed program was:" >&5 26713sed 's/^/| /' conftest.$ac_ext >&5 26714 26715ac_cv_lib_nsl_gethostbyname=no 26716fi 26717rm -f conftest.err conftest.$ac_objext \ 26718 conftest$ac_exeext conftest.$ac_ext 26719LIBS=$ac_check_lib_save_LIBS 26720fi 26721echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 26722echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 26723if test $ac_cv_lib_nsl_gethostbyname = yes; then 26724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 26725fi 26726 26727 if test $ac_cv_lib_nsl_gethostbyname = no; then 26728 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 26729echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 26730if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 26731 echo $ECHO_N "(cached) $ECHO_C" >&6 26732else 26733 ac_check_lib_save_LIBS=$LIBS 26734LIBS="-lbsd $LIBS" 26735cat >conftest.$ac_ext <<_ACEOF 26736/* confdefs.h. */ 26737_ACEOF 26738cat confdefs.h >>conftest.$ac_ext 26739cat >>conftest.$ac_ext <<_ACEOF 26740/* end confdefs.h. */ 26741 26742/* Override any gcc2 internal prototype to avoid an error. */ 26743#ifdef __cplusplus 26744extern "C" 26745#endif 26746/* We use char because int might match the return type of a gcc2 26747 builtin and then its argument prototype would still apply. */ 26748char gethostbyname (); 26749int 26750main () 26751{ 26752gethostbyname (); 26753 ; 26754 return 0; 26755} 26756_ACEOF 26757rm -f conftest.$ac_objext conftest$ac_exeext 26758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26759 (eval $ac_link) 2>conftest.er1 26760 ac_status=$? 26761 grep -v '^ *+' conftest.er1 >conftest.err 26762 rm -f conftest.er1 26763 cat conftest.err >&5 26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26765 (exit $ac_status); } && 26766 { ac_try='test -z "$ac_c_werror_flag" 26767 || test ! -s conftest.err' 26768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26769 (eval $ac_try) 2>&5 26770 ac_status=$? 26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26772 (exit $ac_status); }; } && 26773 { ac_try='test -s conftest$ac_exeext' 26774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26775 (eval $ac_try) 2>&5 26776 ac_status=$? 26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26778 (exit $ac_status); }; }; then 26779 ac_cv_lib_bsd_gethostbyname=yes 26780else 26781 echo "$as_me: failed program was:" >&5 26782sed 's/^/| /' conftest.$ac_ext >&5 26783 26784ac_cv_lib_bsd_gethostbyname=no 26785fi 26786rm -f conftest.err conftest.$ac_objext \ 26787 conftest$ac_exeext conftest.$ac_ext 26788LIBS=$ac_check_lib_save_LIBS 26789fi 26790echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 26791echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 26792if test $ac_cv_lib_bsd_gethostbyname = yes; then 26793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 26794fi 26795 26796 fi 26797 fi 26798 26799 # lieder@skyler.mavd.honeywell.com says without -lsocket, 26800 # socket/setsockopt and other routines are undefined under SCO ODT 26801 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 26802 # on later versions), says Simon Leinen: it contains gethostby* 26803 # variants that don't use the name server (or something). -lsocket 26804 # must be given before -lnsl if both are needed. We assume that 26805 # if connect needs -lnsl, so does gethostbyname. 26806 echo "$as_me:$LINENO: checking for connect" >&5 26807echo $ECHO_N "checking for connect... $ECHO_C" >&6 26808if test "${ac_cv_func_connect+set}" = set; then 26809 echo $ECHO_N "(cached) $ECHO_C" >&6 26810else 26811 cat >conftest.$ac_ext <<_ACEOF 26812/* confdefs.h. */ 26813_ACEOF 26814cat confdefs.h >>conftest.$ac_ext 26815cat >>conftest.$ac_ext <<_ACEOF 26816/* end confdefs.h. */ 26817/* Define connect to an innocuous variant, in case <limits.h> declares connect. 26818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26819#define connect innocuous_connect 26820 26821/* System header to define __stub macros and hopefully few prototypes, 26822 which can conflict with char connect (); below. 26823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26824 <limits.h> exists even on freestanding compilers. */ 26825 26826#ifdef __STDC__ 26827# include <limits.h> 26828#else 26829# include <assert.h> 26830#endif 26831 26832#undef connect 26833 26834/* Override any gcc2 internal prototype to avoid an error. */ 26835#ifdef __cplusplus 26836extern "C" 26837{ 26838#endif 26839/* We use char because int might match the return type of a gcc2 26840 builtin and then its argument prototype would still apply. */ 26841char connect (); 26842/* The GNU C library defines this for functions which it implements 26843 to always fail with ENOSYS. Some functions are actually named 26844 something starting with __ and the normal name is an alias. */ 26845#if defined (__stub_connect) || defined (__stub___connect) 26846choke me 26847#else 26848char (*f) () = connect; 26849#endif 26850#ifdef __cplusplus 26851} 26852#endif 26853 26854int 26855main () 26856{ 26857return f != connect; 26858 ; 26859 return 0; 26860} 26861_ACEOF 26862rm -f conftest.$ac_objext conftest$ac_exeext 26863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26864 (eval $ac_link) 2>conftest.er1 26865 ac_status=$? 26866 grep -v '^ *+' conftest.er1 >conftest.err 26867 rm -f conftest.er1 26868 cat conftest.err >&5 26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26870 (exit $ac_status); } && 26871 { ac_try='test -z "$ac_c_werror_flag" 26872 || test ! -s conftest.err' 26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26874 (eval $ac_try) 2>&5 26875 ac_status=$? 26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26877 (exit $ac_status); }; } && 26878 { ac_try='test -s conftest$ac_exeext' 26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26880 (eval $ac_try) 2>&5 26881 ac_status=$? 26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26883 (exit $ac_status); }; }; then 26884 ac_cv_func_connect=yes 26885else 26886 echo "$as_me: failed program was:" >&5 26887sed 's/^/| /' conftest.$ac_ext >&5 26888 26889ac_cv_func_connect=no 26890fi 26891rm -f conftest.err conftest.$ac_objext \ 26892 conftest$ac_exeext conftest.$ac_ext 26893fi 26894echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 26895echo "${ECHO_T}$ac_cv_func_connect" >&6 26896 26897 if test $ac_cv_func_connect = no; then 26898 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 26899echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 26900if test "${ac_cv_lib_socket_connect+set}" = set; then 26901 echo $ECHO_N "(cached) $ECHO_C" >&6 26902else 26903 ac_check_lib_save_LIBS=$LIBS 26904LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 26905cat >conftest.$ac_ext <<_ACEOF 26906/* confdefs.h. */ 26907_ACEOF 26908cat confdefs.h >>conftest.$ac_ext 26909cat >>conftest.$ac_ext <<_ACEOF 26910/* end confdefs.h. */ 26911 26912/* Override any gcc2 internal prototype to avoid an error. */ 26913#ifdef __cplusplus 26914extern "C" 26915#endif 26916/* We use char because int might match the return type of a gcc2 26917 builtin and then its argument prototype would still apply. */ 26918char connect (); 26919int 26920main () 26921{ 26922connect (); 26923 ; 26924 return 0; 26925} 26926_ACEOF 26927rm -f conftest.$ac_objext conftest$ac_exeext 26928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26929 (eval $ac_link) 2>conftest.er1 26930 ac_status=$? 26931 grep -v '^ *+' conftest.er1 >conftest.err 26932 rm -f conftest.er1 26933 cat conftest.err >&5 26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26935 (exit $ac_status); } && 26936 { ac_try='test -z "$ac_c_werror_flag" 26937 || test ! -s conftest.err' 26938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26939 (eval $ac_try) 2>&5 26940 ac_status=$? 26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26942 (exit $ac_status); }; } && 26943 { ac_try='test -s conftest$ac_exeext' 26944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26945 (eval $ac_try) 2>&5 26946 ac_status=$? 26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26948 (exit $ac_status); }; }; then 26949 ac_cv_lib_socket_connect=yes 26950else 26951 echo "$as_me: failed program was:" >&5 26952sed 's/^/| /' conftest.$ac_ext >&5 26953 26954ac_cv_lib_socket_connect=no 26955fi 26956rm -f conftest.err conftest.$ac_objext \ 26957 conftest$ac_exeext conftest.$ac_ext 26958LIBS=$ac_check_lib_save_LIBS 26959fi 26960echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 26961echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 26962if test $ac_cv_lib_socket_connect = yes; then 26963 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 26964fi 26965 26966 fi 26967 26968 # Guillermo Gomez says -lposix is necessary on A/UX. 26969 echo "$as_me:$LINENO: checking for remove" >&5 26970echo $ECHO_N "checking for remove... $ECHO_C" >&6 26971if test "${ac_cv_func_remove+set}" = set; then 26972 echo $ECHO_N "(cached) $ECHO_C" >&6 26973else 26974 cat >conftest.$ac_ext <<_ACEOF 26975/* confdefs.h. */ 26976_ACEOF 26977cat confdefs.h >>conftest.$ac_ext 26978cat >>conftest.$ac_ext <<_ACEOF 26979/* end confdefs.h. */ 26980/* Define remove to an innocuous variant, in case <limits.h> declares remove. 26981 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26982#define remove innocuous_remove 26983 26984/* System header to define __stub macros and hopefully few prototypes, 26985 which can conflict with char remove (); below. 26986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26987 <limits.h> exists even on freestanding compilers. */ 26988 26989#ifdef __STDC__ 26990# include <limits.h> 26991#else 26992# include <assert.h> 26993#endif 26994 26995#undef remove 26996 26997/* Override any gcc2 internal prototype to avoid an error. */ 26998#ifdef __cplusplus 26999extern "C" 27000{ 27001#endif 27002/* We use char because int might match the return type of a gcc2 27003 builtin and then its argument prototype would still apply. */ 27004char remove (); 27005/* The GNU C library defines this for functions which it implements 27006 to always fail with ENOSYS. Some functions are actually named 27007 something starting with __ and the normal name is an alias. */ 27008#if defined (__stub_remove) || defined (__stub___remove) 27009choke me 27010#else 27011char (*f) () = remove; 27012#endif 27013#ifdef __cplusplus 27014} 27015#endif 27016 27017int 27018main () 27019{ 27020return f != remove; 27021 ; 27022 return 0; 27023} 27024_ACEOF 27025rm -f conftest.$ac_objext conftest$ac_exeext 27026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27027 (eval $ac_link) 2>conftest.er1 27028 ac_status=$? 27029 grep -v '^ *+' conftest.er1 >conftest.err 27030 rm -f conftest.er1 27031 cat conftest.err >&5 27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27033 (exit $ac_status); } && 27034 { ac_try='test -z "$ac_c_werror_flag" 27035 || test ! -s conftest.err' 27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27037 (eval $ac_try) 2>&5 27038 ac_status=$? 27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27040 (exit $ac_status); }; } && 27041 { ac_try='test -s conftest$ac_exeext' 27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27043 (eval $ac_try) 2>&5 27044 ac_status=$? 27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27046 (exit $ac_status); }; }; then 27047 ac_cv_func_remove=yes 27048else 27049 echo "$as_me: failed program was:" >&5 27050sed 's/^/| /' conftest.$ac_ext >&5 27051 27052ac_cv_func_remove=no 27053fi 27054rm -f conftest.err conftest.$ac_objext \ 27055 conftest$ac_exeext conftest.$ac_ext 27056fi 27057echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 27058echo "${ECHO_T}$ac_cv_func_remove" >&6 27059 27060 if test $ac_cv_func_remove = no; then 27061 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 27062echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 27063if test "${ac_cv_lib_posix_remove+set}" = set; then 27064 echo $ECHO_N "(cached) $ECHO_C" >&6 27065else 27066 ac_check_lib_save_LIBS=$LIBS 27067LIBS="-lposix $LIBS" 27068cat >conftest.$ac_ext <<_ACEOF 27069/* confdefs.h. */ 27070_ACEOF 27071cat confdefs.h >>conftest.$ac_ext 27072cat >>conftest.$ac_ext <<_ACEOF 27073/* end confdefs.h. */ 27074 27075/* Override any gcc2 internal prototype to avoid an error. */ 27076#ifdef __cplusplus 27077extern "C" 27078#endif 27079/* We use char because int might match the return type of a gcc2 27080 builtin and then its argument prototype would still apply. */ 27081char remove (); 27082int 27083main () 27084{ 27085remove (); 27086 ; 27087 return 0; 27088} 27089_ACEOF 27090rm -f conftest.$ac_objext conftest$ac_exeext 27091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27092 (eval $ac_link) 2>conftest.er1 27093 ac_status=$? 27094 grep -v '^ *+' conftest.er1 >conftest.err 27095 rm -f conftest.er1 27096 cat conftest.err >&5 27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27098 (exit $ac_status); } && 27099 { ac_try='test -z "$ac_c_werror_flag" 27100 || test ! -s conftest.err' 27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27102 (eval $ac_try) 2>&5 27103 ac_status=$? 27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27105 (exit $ac_status); }; } && 27106 { ac_try='test -s conftest$ac_exeext' 27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27108 (eval $ac_try) 2>&5 27109 ac_status=$? 27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27111 (exit $ac_status); }; }; then 27112 ac_cv_lib_posix_remove=yes 27113else 27114 echo "$as_me: failed program was:" >&5 27115sed 's/^/| /' conftest.$ac_ext >&5 27116 27117ac_cv_lib_posix_remove=no 27118fi 27119rm -f conftest.err conftest.$ac_objext \ 27120 conftest$ac_exeext conftest.$ac_ext 27121LIBS=$ac_check_lib_save_LIBS 27122fi 27123echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 27124echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 27125if test $ac_cv_lib_posix_remove = yes; then 27126 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 27127fi 27128 27129 fi 27130 27131 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 27132 echo "$as_me:$LINENO: checking for shmat" >&5 27133echo $ECHO_N "checking for shmat... $ECHO_C" >&6 27134if test "${ac_cv_func_shmat+set}" = set; then 27135 echo $ECHO_N "(cached) $ECHO_C" >&6 27136else 27137 cat >conftest.$ac_ext <<_ACEOF 27138/* confdefs.h. */ 27139_ACEOF 27140cat confdefs.h >>conftest.$ac_ext 27141cat >>conftest.$ac_ext <<_ACEOF 27142/* end confdefs.h. */ 27143/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 27144 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27145#define shmat innocuous_shmat 27146 27147/* System header to define __stub macros and hopefully few prototypes, 27148 which can conflict with char shmat (); below. 27149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27150 <limits.h> exists even on freestanding compilers. */ 27151 27152#ifdef __STDC__ 27153# include <limits.h> 27154#else 27155# include <assert.h> 27156#endif 27157 27158#undef shmat 27159 27160/* Override any gcc2 internal prototype to avoid an error. */ 27161#ifdef __cplusplus 27162extern "C" 27163{ 27164#endif 27165/* We use char because int might match the return type of a gcc2 27166 builtin and then its argument prototype would still apply. */ 27167char shmat (); 27168/* The GNU C library defines this for functions which it implements 27169 to always fail with ENOSYS. Some functions are actually named 27170 something starting with __ and the normal name is an alias. */ 27171#if defined (__stub_shmat) || defined (__stub___shmat) 27172choke me 27173#else 27174char (*f) () = shmat; 27175#endif 27176#ifdef __cplusplus 27177} 27178#endif 27179 27180int 27181main () 27182{ 27183return f != shmat; 27184 ; 27185 return 0; 27186} 27187_ACEOF 27188rm -f conftest.$ac_objext conftest$ac_exeext 27189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27190 (eval $ac_link) 2>conftest.er1 27191 ac_status=$? 27192 grep -v '^ *+' conftest.er1 >conftest.err 27193 rm -f conftest.er1 27194 cat conftest.err >&5 27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27196 (exit $ac_status); } && 27197 { ac_try='test -z "$ac_c_werror_flag" 27198 || test ! -s conftest.err' 27199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27200 (eval $ac_try) 2>&5 27201 ac_status=$? 27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27203 (exit $ac_status); }; } && 27204 { ac_try='test -s conftest$ac_exeext' 27205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27206 (eval $ac_try) 2>&5 27207 ac_status=$? 27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27209 (exit $ac_status); }; }; then 27210 ac_cv_func_shmat=yes 27211else 27212 echo "$as_me: failed program was:" >&5 27213sed 's/^/| /' conftest.$ac_ext >&5 27214 27215ac_cv_func_shmat=no 27216fi 27217rm -f conftest.err conftest.$ac_objext \ 27218 conftest$ac_exeext conftest.$ac_ext 27219fi 27220echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 27221echo "${ECHO_T}$ac_cv_func_shmat" >&6 27222 27223 if test $ac_cv_func_shmat = no; then 27224 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 27225echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 27226if test "${ac_cv_lib_ipc_shmat+set}" = set; then 27227 echo $ECHO_N "(cached) $ECHO_C" >&6 27228else 27229 ac_check_lib_save_LIBS=$LIBS 27230LIBS="-lipc $LIBS" 27231cat >conftest.$ac_ext <<_ACEOF 27232/* confdefs.h. */ 27233_ACEOF 27234cat confdefs.h >>conftest.$ac_ext 27235cat >>conftest.$ac_ext <<_ACEOF 27236/* end confdefs.h. */ 27237 27238/* Override any gcc2 internal prototype to avoid an error. */ 27239#ifdef __cplusplus 27240extern "C" 27241#endif 27242/* We use char because int might match the return type of a gcc2 27243 builtin and then its argument prototype would still apply. */ 27244char shmat (); 27245int 27246main () 27247{ 27248shmat (); 27249 ; 27250 return 0; 27251} 27252_ACEOF 27253rm -f conftest.$ac_objext conftest$ac_exeext 27254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27255 (eval $ac_link) 2>conftest.er1 27256 ac_status=$? 27257 grep -v '^ *+' conftest.er1 >conftest.err 27258 rm -f conftest.er1 27259 cat conftest.err >&5 27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27261 (exit $ac_status); } && 27262 { ac_try='test -z "$ac_c_werror_flag" 27263 || test ! -s conftest.err' 27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27265 (eval $ac_try) 2>&5 27266 ac_status=$? 27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27268 (exit $ac_status); }; } && 27269 { ac_try='test -s conftest$ac_exeext' 27270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27271 (eval $ac_try) 2>&5 27272 ac_status=$? 27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27274 (exit $ac_status); }; }; then 27275 ac_cv_lib_ipc_shmat=yes 27276else 27277 echo "$as_me: failed program was:" >&5 27278sed 's/^/| /' conftest.$ac_ext >&5 27279 27280ac_cv_lib_ipc_shmat=no 27281fi 27282rm -f conftest.err conftest.$ac_objext \ 27283 conftest$ac_exeext conftest.$ac_ext 27284LIBS=$ac_check_lib_save_LIBS 27285fi 27286echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 27287echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 27288if test $ac_cv_lib_ipc_shmat = yes; then 27289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 27290fi 27291 27292 fi 27293 fi 27294 27295 # Check for libraries that X11R6 Xt/Xaw programs need. 27296 ac_save_LDFLAGS=$LDFLAGS 27297 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 27298 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 27299 # check for ICE first), but we must link in the order -lSM -lICE or 27300 # we get undefined symbols. So assume we have SM if we have ICE. 27301 # These have to be linked with before -lX11, unlike the other 27302 # libraries we check for below, so use a different variable. 27303 # John Interrante, Karl Berry 27304 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 27305echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 27306if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 27307 echo $ECHO_N "(cached) $ECHO_C" >&6 27308else 27309 ac_check_lib_save_LIBS=$LIBS 27310LIBS="-lICE $X_EXTRA_LIBS $LIBS" 27311cat >conftest.$ac_ext <<_ACEOF 27312/* confdefs.h. */ 27313_ACEOF 27314cat confdefs.h >>conftest.$ac_ext 27315cat >>conftest.$ac_ext <<_ACEOF 27316/* end confdefs.h. */ 27317 27318/* Override any gcc2 internal prototype to avoid an error. */ 27319#ifdef __cplusplus 27320extern "C" 27321#endif 27322/* We use char because int might match the return type of a gcc2 27323 builtin and then its argument prototype would still apply. */ 27324char IceConnectionNumber (); 27325int 27326main () 27327{ 27328IceConnectionNumber (); 27329 ; 27330 return 0; 27331} 27332_ACEOF 27333rm -f conftest.$ac_objext conftest$ac_exeext 27334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27335 (eval $ac_link) 2>conftest.er1 27336 ac_status=$? 27337 grep -v '^ *+' conftest.er1 >conftest.err 27338 rm -f conftest.er1 27339 cat conftest.err >&5 27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27341 (exit $ac_status); } && 27342 { ac_try='test -z "$ac_c_werror_flag" 27343 || test ! -s conftest.err' 27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27345 (eval $ac_try) 2>&5 27346 ac_status=$? 27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27348 (exit $ac_status); }; } && 27349 { ac_try='test -s conftest$ac_exeext' 27350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27351 (eval $ac_try) 2>&5 27352 ac_status=$? 27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27354 (exit $ac_status); }; }; then 27355 ac_cv_lib_ICE_IceConnectionNumber=yes 27356else 27357 echo "$as_me: failed program was:" >&5 27358sed 's/^/| /' conftest.$ac_ext >&5 27359 27360ac_cv_lib_ICE_IceConnectionNumber=no 27361fi 27362rm -f conftest.err conftest.$ac_objext \ 27363 conftest$ac_exeext conftest.$ac_ext 27364LIBS=$ac_check_lib_save_LIBS 27365fi 27366echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 27367echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 27368if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 27369 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 27370fi 27371 27372 LDFLAGS=$ac_save_LDFLAGS 27373 27374fi 27375 27376 27377## for now enable_x11 just tracks have_x11, 27378## there's no --enable-x11 27379if test x$no_x = xyes ; then 27380 have_x11=no 27381 enable_x11=no 27382else 27383 have_x11=yes 27384 enable_x11=yes 27385fi 27386 27387if test x$enable_x11 = xyes ; then 27388 27389cat >>confdefs.h <<\_ACEOF 27390#define DBUS_BUILD_X11 1 27391_ACEOF 27392 27393 DBUS_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 27394 DBUS_X_CFLAGS="$X_CFLAGS" 27395else 27396 DBUS_X_LIBS= 27397 DBUS_X_CFLAGS= 27398fi 27399 27400 27401 27402 27403### Doxygen Documentation 27404 27405# Extract the first word of "doxygen", so it can be a program name with args. 27406set dummy doxygen; ac_word=$2 27407echo "$as_me:$LINENO: checking for $ac_word" >&5 27408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 27409if test "${ac_cv_path_DOXYGEN+set}" = set; then 27410 echo $ECHO_N "(cached) $ECHO_C" >&6 27411else 27412 case $DOXYGEN in 27413 [\\/]* | ?:[\\/]*) 27414 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 27415 ;; 27416 *) 27417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27418for as_dir in $PATH 27419do 27420 IFS=$as_save_IFS 27421 test -z "$as_dir" && as_dir=. 27422 for ac_exec_ext in '' $ac_executable_extensions; do 27423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27424 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 27425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 27426 break 2 27427 fi 27428done 27429done 27430 27431 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no" 27432 ;; 27433esac 27434fi 27435DOXYGEN=$ac_cv_path_DOXYGEN 27436 27437if test -n "$DOXYGEN"; then 27438 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 27439echo "${ECHO_T}$DOXYGEN" >&6 27440else 27441 echo "$as_me:$LINENO: result: no" >&5 27442echo "${ECHO_T}no" >&6 27443fi 27444 27445 27446echo "$as_me:$LINENO: checking whether to build Doxygen documentation" >&5 27447echo $ECHO_N "checking whether to build Doxygen documentation... $ECHO_C" >&6 27448 27449if test x$DOXYGEN = xno ; then 27450 have_doxygen=no 27451else 27452 have_doxygen=yes 27453fi 27454 27455if test x$enable_doxygen_docs = xauto ; then 27456 if test x$have_doxygen = xno ; then 27457 enable_doxygen_docs=no 27458 else 27459 enable_doxygen_docs=yes 27460 fi 27461fi 27462 27463if test x$enable_doxygen_docs = xyes; then 27464 if test x$have_doxygen = xno; then 27465 { { echo "$as_me:$LINENO: error: Building Doxygen docs explicitly required, but Doxygen not found" >&5 27466echo "$as_me: error: Building Doxygen docs explicitly required, but Doxygen not found" >&2;} 27467 { (exit 1); exit 1; }; } 27468 fi 27469fi 27470 27471 27472 27473if test x$enable_doxygen_docs = xyes; then 27474 DBUS_DOXYGEN_DOCS_ENABLED_TRUE= 27475 DBUS_DOXYGEN_DOCS_ENABLED_FALSE='#' 27476else 27477 DBUS_DOXYGEN_DOCS_ENABLED_TRUE='#' 27478 DBUS_DOXYGEN_DOCS_ENABLED_FALSE= 27479fi 27480 27481echo "$as_me:$LINENO: result: yes" >&5 27482echo "${ECHO_T}yes" >&6 27483 27484### XML Documentation 27485 27486# Extract the first word of "xmlto", so it can be a program name with args. 27487set dummy xmlto; ac_word=$2 27488echo "$as_me:$LINENO: checking for $ac_word" >&5 27489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 27490if test "${ac_cv_path_XMLTO+set}" = set; then 27491 echo $ECHO_N "(cached) $ECHO_C" >&6 27492else 27493 case $XMLTO in 27494 [\\/]* | ?:[\\/]*) 27495 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 27496 ;; 27497 *) 27498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27499for as_dir in $PATH 27500do 27501 IFS=$as_save_IFS 27502 test -z "$as_dir" && as_dir=. 27503 for ac_exec_ext in '' $ac_executable_extensions; do 27504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27505 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 27506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 27507 break 2 27508 fi 27509done 27510done 27511 27512 test -z "$ac_cv_path_XMLTO" && ac_cv_path_XMLTO="no" 27513 ;; 27514esac 27515fi 27516XMLTO=$ac_cv_path_XMLTO 27517 27518if test -n "$XMLTO"; then 27519 echo "$as_me:$LINENO: result: $XMLTO" >&5 27520echo "${ECHO_T}$XMLTO" >&6 27521else 27522 echo "$as_me:$LINENO: result: no" >&5 27523echo "${ECHO_T}no" >&6 27524fi 27525 27526 27527echo "$as_me:$LINENO: checking whether to build XML documentation" >&5 27528echo $ECHO_N "checking whether to build XML documentation... $ECHO_C" >&6 27529 27530if test x$XMLTO = xno ; then 27531 have_xmlto=no 27532else 27533 have_xmlto=yes 27534fi 27535 27536if test x$enable_xml_docs = xauto ; then 27537 if test x$have_xmlto = xno ; then 27538 enable_xml_docs=no 27539 else 27540 enable_xml_docs=yes 27541 fi 27542fi 27543 27544if test x$enable_xml_docs = xyes; then 27545 if test x$have_xmlto = xno; then 27546 { { echo "$as_me:$LINENO: error: Building XML docs explicitly required, but xmlto not found" >&5 27547echo "$as_me: error: Building XML docs explicitly required, but xmlto not found" >&2;} 27548 { (exit 1); exit 1; }; } 27549 fi 27550fi 27551 27552 27553 27554if test x$enable_xml_docs = xyes; then 27555 DBUS_XML_DOCS_ENABLED_TRUE= 27556 DBUS_XML_DOCS_ENABLED_FALSE='#' 27557else 27558 DBUS_XML_DOCS_ENABLED_TRUE='#' 27559 DBUS_XML_DOCS_ENABLED_FALSE= 27560fi 27561 27562echo "$as_me:$LINENO: result: yes" >&5 27563echo "${ECHO_T}yes" >&6 27564 27565#### Have to go $localstatedir->$prefix/var->/usr/local/var 27566#### someone please fix this a better way... 27567 27568#### find the actual value for $prefix that we'll end up with 27569## (I know this is broken and should be done in the Makefile, but 27570## that's a major pain and almost nobody actually seems to care) 27571REAL_PREFIX= 27572if test "x$prefix" = "xNONE"; then 27573 REAL_PREFIX=$ac_default_prefix 27574else 27575 REAL_PREFIX=$prefix 27576fi 27577 27578## temporarily change prefix and exec_prefix 27579old_prefix=$prefix 27580prefix=$REAL_PREFIX 27581 27582if test "x$exec_prefix" = xNONE ; then 27583 REAL_EXEC_PREFIX=$REAL_PREFIX 27584else 27585 REAL_EXEC_PREFIX=$exec_prefix 27586fi 27587old_exec_prefix=$exec_prefix 27588exec_prefix=$REAL_EXEC_PREFIX 27589 27590## eval everything 27591LOCALSTATEDIR_TMP="$localstatedir" 27592EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP` 27593 27594 27595SYSCONFDIR_TMP="$sysconfdir" 27596EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP` 27597 27598 27599BINDIR_TMP="$bindir" 27600EXPANDED_BINDIR=`eval echo $BINDIR_TMP` 27601 27602 27603LIBDIR_TMP="$libdir" 27604EXPANDED_LIBDIR=`eval echo $LIBDIR_TMP` 27605 27606 27607DATADIR_TMP="$datadir" 27608EXPANDED_DATADIR=`eval echo $DATADIR_TMP` 27609 27610 27611## put prefix and exec_prefix back 27612prefix=$old_prefix 27613exec_prefix=$old_exec_prefix 27614 27615#### Check our operating system 27616operating_system=unknown 27617if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then 27618 operating_system=redhat 27619fi 27620 27621if test -f /etc/slackware-version || test -f $EXPANDED_SYSCONFDIR/slackware-version ; then 27622 operating_system=slackware 27623fi 27624 27625#### Sort out init scripts 27626 27627if test x$with_init_scripts = x; then 27628 if test xredhat = x$operating_system ; then 27629 with_init_scripts=redhat 27630 else 27631 if test xslackware = x$operating_system ; then 27632 with_init_scripts=slackware 27633 else 27634 with_init_scripts=none 27635 fi 27636 fi 27637fi 27638 27639 27640 27641if test x$with_init_scripts = xredhat; then 27642 DBUS_INIT_SCRIPTS_RED_HAT_TRUE= 27643 DBUS_INIT_SCRIPTS_RED_HAT_FALSE='#' 27644else 27645 DBUS_INIT_SCRIPTS_RED_HAT_TRUE='#' 27646 DBUS_INIT_SCRIPTS_RED_HAT_FALSE= 27647fi 27648 27649 27650 27651 27652if test x$with_init_scripts = xslackware; then 27653 DBUS_INIT_SCRIPTS_SLACKWARE_TRUE= 27654 DBUS_INIT_SCRIPTS_SLACKWARE_FALSE='#' 27655else 27656 DBUS_INIT_SCRIPTS_SLACKWARE_TRUE='#' 27657 DBUS_INIT_SCRIPTS_SLACKWARE_FALSE= 27658fi 27659 27660 27661##### Set up location for system bus socket 27662if ! test -z "$with_system_socket"; then 27663 DBUS_SYSTEM_SOCKET=$with_system_socket 27664else 27665 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket 27666fi 27667 27668 27669 27670cat >>confdefs.h <<_ACEOF 27671#define DBUS_SYSTEM_SOCKET "$DBUS_SYSTEM_SOCKET" 27672_ACEOF 27673 27674 27675## system bus only listens on local domain sockets, and never 27676## on an abstract socket (so only root can create the socket) 27677DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$DBUS_SYSTEM_SOCKET" 27678 27679 27680cat >>confdefs.h <<_ACEOF 27681#define DBUS_SYSTEM_BUS_DEFAULT_ADDRESS "$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS" 27682_ACEOF 27683 27684 27685#### Set up the pid file 27686if ! test -z "$with_system_pid_file"; then 27687 DBUS_SYSTEM_PID_FILE=$with_system_pid_file 27688elif test x$with_init_scripts = xredhat ; then 27689 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid 27690else 27691 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid 27692fi 27693 27694 27695 27696#### Directory to check for console ownership 27697if ! test -z "$with_console_auth_dir"; then 27698 DBUS_CONSOLE_AUTH_DIR=$with_console_auth_dir 27699else 27700 DBUS_CONSOLE_AUTH_DIR=/var/run/console/ 27701fi 27702 27703 27704 27705cat >>confdefs.h <<_ACEOF 27706#define DBUS_CONSOLE_AUTH_DIR "$DBUS_CONSOLE_AUTH_DIR" 27707_ACEOF 27708 27709 27710#### File to check for console ownership 27711if test x$have_console_owner_file = xyes; then 27712 if ! test -z "$with_console_owner_file"; then 27713 DBUS_CONSOLE_OWNER_FILE=$with_console_owner_file 27714 else 27715 DBUS_CONSOLE_OWNER_FILE=/dev/console 27716 fi 27717else 27718 DBUS_CONSOLE_OWNER_FILE= 27719fi 27720 27721 27722 27723cat >>confdefs.h <<_ACEOF 27724#define DBUS_CONSOLE_OWNER_FILE "$DBUS_CONSOLE_OWNER_FILE" 27725_ACEOF 27726 27727 27728#### User to start the system bus as 27729if test -z "$with_dbus_user" ; then 27730 DBUS_USER=messagebus 27731else 27732 DBUS_USER=$with_dbus_user 27733fi 27734 27735 27736cat >>confdefs.h <<_ACEOF 27737#define DBUS_USER "$DBUS_USER" 27738_ACEOF 27739 27740 27741#### Direcotry to install data files into 27742DBUS_DATADIR=$EXPANDED_DATADIR 27743 27744 27745cat >>confdefs.h <<_ACEOF 27746#define DBUS_DATADIR "$DBUS_DATADIR" 27747_ACEOF 27748 27749 27750#### Directory to install dbus-daemon 27751if test -z "$with_dbus_daemondir" ; then 27752 DBUS_DAEMONDIR=$EXPANDED_BINDIR 27753else 27754 DBUS_DAEMONDIR=$with_dbus_daemondir 27755fi 27756 27757 27758cat >>confdefs.h <<_ACEOF 27759#define DBUS_DAEMONDIR "$DBUS_DAEMONDIR" 27760_ACEOF 27761 27762 27763#### Directory to install the other binaries 27764DBUS_BINDIR=$EXPANDED_BINDIR 27765 27766 27767cat >>confdefs.h <<_ACEOF 27768#define DBUS_BINDIR "$DBUS_BINDIR" 27769_ACEOF 27770 27771 27772#### Tell tests where to find certain stuff in builddir 27773 27774DBUS_PWD=`pwd` 27775 27776 27777 27778TEST_SERVICE_DIR=${DBUS_PWD}/test/data/valid-service-files 27779 27780cat >>confdefs.h <<_ACEOF 27781#define TEST_SERVICE_DIR "$TEST_SERVICE_DIR" 27782_ACEOF 27783 27784 27785 27786 27787TEST_SERVICE_BINARY=${DBUS_PWD}/test/test-service 27788 27789cat >>confdefs.h <<_ACEOF 27790#define TEST_SERVICE_BINARY "$TEST_SERVICE_BINARY" 27791_ACEOF 27792 27793 27794 27795 27796TEST_SHELL_SERVICE_BINARY=${DBUS_PWD}/test/test-shell-service 27797 27798cat >>confdefs.h <<_ACEOF 27799#define TEST_SHELL_SERVICE_BINARY "$TEST_SHELL_SERVICE_BINARY" 27800_ACEOF 27801 27802 27803 27804 27805TEST_EXIT_BINARY=${DBUS_PWD}/test/test-exit 27806 27807cat >>confdefs.h <<_ACEOF 27808#define TEST_EXIT_BINARY "$TEST_EXIT_BINARY" 27809_ACEOF 27810 27811 27812 27813 27814TEST_SEGFAULT_BINARY=${DBUS_PWD}/test/test-segfault 27815 27816cat >>confdefs.h <<_ACEOF 27817#define TEST_SEGFAULT_BINARY "$TEST_SEGFAULT_BINARY" 27818_ACEOF 27819 27820 27821 27822 27823TEST_SLEEP_FOREVER_BINARY=${DBUS_PWD}/test/test-sleep-forever 27824 27825cat >>confdefs.h <<_ACEOF 27826#define TEST_SLEEP_FOREVER_BINARY "$TEST_SLEEP_FOREVER_BINARY" 27827_ACEOF 27828 27829 27830 27831 27832 27833cat >>confdefs.h <<_ACEOF 27834#define TEST_BUS_BINARY "$DBUS_PWD/bus/dbus-daemon" 27835_ACEOF 27836 27837 27838 27839#### Find socket directories 27840if ! test -z "$TMPDIR" ; then 27841 DEFAULT_SOCKET_DIR=$TMPDIR 27842elif ! test -z "$TEMP" ; then 27843 DEFAULT_SOCKET_DIR=$TEMP 27844elif ! test -z "$TMP" ; then 27845 DEFAULT_SOCKET_DIR=$TMP 27846else 27847 DEFAULT_SOCKET_DIR=/tmp 27848fi 27849 27850if ! test -z "$with_test_socket_dir" ; then 27851 TEST_SOCKET_DIR="$with_test_socket_dir" 27852else 27853 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR 27854fi 27855 27856 27857cat >>confdefs.h <<_ACEOF 27858#define DBUS_TEST_SOCKET_DIR "$TEST_SOCKET_DIR" 27859_ACEOF 27860 27861 27862if ! test -z "$with_session_socket_dir" ; then 27863 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir" 27864else 27865 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR 27866fi 27867 27868cat >>confdefs.h <<_ACEOF 27869#define DBUS_SESSION_SOCKET_DIR "$DBUS_SESSION_SOCKET_DIR" 27870_ACEOF 27871 27872 27873 27874 ac_config_files="$ac_config_files Doxyfile dbus/dbus-arch-deps.h bus/system.conf bus/session.conf bus/messagebus bus/rc.messagebus bus/dbus-daemon.1 Makefile dbus/Makefile bus/Makefile tools/Makefile test/Makefile test/name-test/Makefile doc/Makefile dbus-1.pc test/data/valid-config-files/debug-allow-all.conf test/data/valid-config-files/debug-allow-all-sha1.conf test/data/valid-service-files/debug-echo.service test/data/valid-service-files/debug-segfault.service test/data/valid-service-files/debug-shell-echo-success.service test/data/valid-service-files/debug-shell-echo-fail.service" 27875cat >confcache <<\_ACEOF 27876# This file is a shell script that caches the results of configure 27877# tests run on this system so they can be shared between configure 27878# scripts and configure runs, see configure's option --config-cache. 27879# It is not useful on other systems. If it contains results you don't 27880# want to keep, you may remove or edit it. 27881# 27882# config.status only pays attention to the cache file if you give it 27883# the --recheck option to rerun configure. 27884# 27885# `ac_cv_env_foo' variables (set or unset) will be overridden when 27886# loading this file, other *unset* `ac_cv_foo' will be assigned the 27887# following values. 27888 27889_ACEOF 27890 27891# The following way of writing the cache mishandles newlines in values, 27892# but we know of no workaround that is simple, portable, and efficient. 27893# So, don't put newlines in cache variables' values. 27894# Ultrix sh set writes to stderr and can't be redirected directly, 27895# and sets the high bit in the cache file unless we assign to the vars. 27896{ 27897 (set) 2>&1 | 27898 case `(ac_space=' '; set | grep ac_space) 2>&1` in 27899 *ac_space=\ *) 27900 # `set' does not quote correctly, so add quotes (double-quote 27901 # substitution turns \\\\ into \\, and sed turns \\ into \). 27902 sed -n \ 27903 "s/'/'\\\\''/g; 27904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27905 ;; 27906 *) 27907 # `set' quotes correctly as required by POSIX, so do not add quotes. 27908 sed -n \ 27909 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 27910 ;; 27911 esac; 27912} | 27913 sed ' 27914 t clear 27915 : clear 27916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27917 t end 27918 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27919 : end' >>confcache 27920if diff $cache_file confcache >/dev/null 2>&1; then :; else 27921 if test -w $cache_file; then 27922 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 27923 cat confcache >$cache_file 27924 else 27925 echo "not updating unwritable cache $cache_file" 27926 fi 27927fi 27928rm -f confcache 27929 27930test "x$prefix" = xNONE && prefix=$ac_default_prefix 27931# Let make expand exec_prefix. 27932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27933 27934# VPATH may cause trouble with some makes, so we remove $(srcdir), 27935# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 27936# trailing colons and then remove the whole line if VPATH becomes empty 27937# (actually we leave an empty line to preserve line numbers). 27938if test "x$srcdir" = x.; then 27939 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 27940s/:*\$(srcdir):*/:/; 27941s/:*\${srcdir}:*/:/; 27942s/:*@srcdir@:*/:/; 27943s/^\([^=]*=[ ]*\):*/\1/; 27944s/:*$//; 27945s/^[^=]*=[ ]*$//; 27946}' 27947fi 27948 27949DEFS=-DHAVE_CONFIG_H 27950 27951ac_libobjs= 27952ac_ltlibobjs= 27953for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27954 # 1. Remove the extension, and $U if already installed. 27955 ac_i=`echo "$ac_i" | 27956 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 27957 # 2. Add them. 27958 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 27959 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 27960done 27961LIBOBJS=$ac_libobjs 27962 27963LTLIBOBJS=$ac_ltlibobjs 27964 27965 27966if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27967 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 27968Usually this means the macro was only invoked conditionally." >&5 27969echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 27970Usually this means the macro was only invoked conditionally." >&2;} 27971 { (exit 1); exit 1; }; } 27972fi 27973if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27974 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27975Usually this means the macro was only invoked conditionally." >&5 27976echo "$as_me: error: conditional \"AMDEP\" was never defined. 27977Usually this means the macro was only invoked conditionally." >&2;} 27978 { (exit 1); exit 1; }; } 27979fi 27980if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27981 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27982Usually this means the macro was only invoked conditionally." >&5 27983echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27984Usually this means the macro was only invoked conditionally." >&2;} 27985 { (exit 1); exit 1; }; } 27986fi 27987if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27988 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27989Usually this means the macro was only invoked conditionally." >&5 27990echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27991Usually this means the macro was only invoked conditionally." >&2;} 27992 { (exit 1); exit 1; }; } 27993fi 27994if test -z "${DBUS_BUILD_TESTS_TRUE}" && test -z "${DBUS_BUILD_TESTS_FALSE}"; then 27995 { { echo "$as_me:$LINENO: error: conditional \"DBUS_BUILD_TESTS\" was never defined. 27996Usually this means the macro was only invoked conditionally." >&5 27997echo "$as_me: error: conditional \"DBUS_BUILD_TESTS\" was never defined. 27998Usually this means the macro was only invoked conditionally." >&2;} 27999 { (exit 1); exit 1; }; } 28000fi 28001if test -z "${DBUS_GCOV_ENABLED_TRUE}" && test -z "${DBUS_GCOV_ENABLED_FALSE}"; then 28002 { { echo "$as_me:$LINENO: error: conditional \"DBUS_GCOV_ENABLED\" was never defined. 28003Usually this means the macro was only invoked conditionally." >&5 28004echo "$as_me: error: conditional \"DBUS_GCOV_ENABLED\" was never defined. 28005Usually this means the macro was only invoked conditionally." >&2;} 28006 { (exit 1); exit 1; }; } 28007fi 28008if test -z "${DBUS_USE_EXPAT_TRUE}" && test -z "${DBUS_USE_EXPAT_FALSE}"; then 28009 { { echo "$as_me:$LINENO: error: conditional \"DBUS_USE_EXPAT\" was never defined. 28010Usually this means the macro was only invoked conditionally." >&5 28011echo "$as_me: error: conditional \"DBUS_USE_EXPAT\" was never defined. 28012Usually this means the macro was only invoked conditionally." >&2;} 28013 { (exit 1); exit 1; }; } 28014fi 28015if test -z "${DBUS_USE_LIBXML_TRUE}" && test -z "${DBUS_USE_LIBXML_FALSE}"; then 28016 { { echo "$as_me:$LINENO: error: conditional \"DBUS_USE_LIBXML\" was never defined. 28017Usually this means the macro was only invoked conditionally." >&5 28018echo "$as_me: error: conditional \"DBUS_USE_LIBXML\" was never defined. 28019Usually this means the macro was only invoked conditionally." >&2;} 28020 { (exit 1); exit 1; }; } 28021fi 28022if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then 28023 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined. 28024Usually this means the macro was only invoked conditionally." >&5 28025echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined. 28026Usually this means the macro was only invoked conditionally." >&2;} 28027 { (exit 1); exit 1; }; } 28028fi 28029if test -z "${DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE}" && test -z "${DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE}"; then 28030 { { echo "$as_me:$LINENO: error: conditional \"DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX\" was never defined. 28031Usually this means the macro was only invoked conditionally." >&5 28032echo "$as_me: error: conditional \"DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX\" was never defined. 28033Usually this means the macro was only invoked conditionally." >&2;} 28034 { (exit 1); exit 1; }; } 28035fi 28036if test -z "${DBUS_BUS_ENABLE_KQUEUE_TRUE}" && test -z "${DBUS_BUS_ENABLE_KQUEUE_FALSE}"; then 28037 { { echo "$as_me:$LINENO: error: conditional \"DBUS_BUS_ENABLE_KQUEUE\" was never defined. 28038Usually this means the macro was only invoked conditionally." >&5 28039echo "$as_me: error: conditional \"DBUS_BUS_ENABLE_KQUEUE\" was never defined. 28040Usually this means the macro was only invoked conditionally." >&2;} 28041 { (exit 1); exit 1; }; } 28042fi 28043if test -z "${HAVE_CONSOLE_OWNER_FILE_TRUE}" && test -z "${HAVE_CONSOLE_OWNER_FILE_FALSE}"; then 28044 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CONSOLE_OWNER_FILE\" was never defined. 28045Usually this means the macro was only invoked conditionally." >&5 28046echo "$as_me: error: conditional \"HAVE_CONSOLE_OWNER_FILE\" was never defined. 28047Usually this means the macro was only invoked conditionally." >&2;} 28048 { (exit 1); exit 1; }; } 28049fi 28050if test -z "${DBUS_DOXYGEN_DOCS_ENABLED_TRUE}" && test -z "${DBUS_DOXYGEN_DOCS_ENABLED_FALSE}"; then 28051 { { echo "$as_me:$LINENO: error: conditional \"DBUS_DOXYGEN_DOCS_ENABLED\" was never defined. 28052Usually this means the macro was only invoked conditionally." >&5 28053echo "$as_me: error: conditional \"DBUS_DOXYGEN_DOCS_ENABLED\" was never defined. 28054Usually this means the macro was only invoked conditionally." >&2;} 28055 { (exit 1); exit 1; }; } 28056fi 28057if test -z "${DBUS_XML_DOCS_ENABLED_TRUE}" && test -z "${DBUS_XML_DOCS_ENABLED_FALSE}"; then 28058 { { echo "$as_me:$LINENO: error: conditional \"DBUS_XML_DOCS_ENABLED\" was never defined. 28059Usually this means the macro was only invoked conditionally." >&5 28060echo "$as_me: error: conditional \"DBUS_XML_DOCS_ENABLED\" was never defined. 28061Usually this means the macro was only invoked conditionally." >&2;} 28062 { (exit 1); exit 1; }; } 28063fi 28064if test -z "${DBUS_INIT_SCRIPTS_RED_HAT_TRUE}" && test -z "${DBUS_INIT_SCRIPTS_RED_HAT_FALSE}"; then 28065 { { echo "$as_me:$LINENO: error: conditional \"DBUS_INIT_SCRIPTS_RED_HAT\" was never defined. 28066Usually this means the macro was only invoked conditionally." >&5 28067echo "$as_me: error: conditional \"DBUS_INIT_SCRIPTS_RED_HAT\" was never defined. 28068Usually this means the macro was only invoked conditionally." >&2;} 28069 { (exit 1); exit 1; }; } 28070fi 28071if test -z "${DBUS_INIT_SCRIPTS_SLACKWARE_TRUE}" && test -z "${DBUS_INIT_SCRIPTS_SLACKWARE_FALSE}"; then 28072 { { echo "$as_me:$LINENO: error: conditional \"DBUS_INIT_SCRIPTS_SLACKWARE\" was never defined. 28073Usually this means the macro was only invoked conditionally." >&5 28074echo "$as_me: error: conditional \"DBUS_INIT_SCRIPTS_SLACKWARE\" was never defined. 28075Usually this means the macro was only invoked conditionally." >&2;} 28076 { (exit 1); exit 1; }; } 28077fi 28078 28079: ${CONFIG_STATUS=./config.status} 28080ac_clean_files_save=$ac_clean_files 28081ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28082{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 28083echo "$as_me: creating $CONFIG_STATUS" >&6;} 28084cat >$CONFIG_STATUS <<_ACEOF 28085#! $SHELL 28086# Generated by $as_me. 28087# Run this file to recreate the current configuration. 28088# Compiler output produced by configure, useful for debugging 28089# configure, is in config.log if it exists. 28090 28091debug=false 28092ac_cs_recheck=false 28093ac_cs_silent=false 28094SHELL=\${CONFIG_SHELL-$SHELL} 28095_ACEOF 28096 28097cat >>$CONFIG_STATUS <<\_ACEOF 28098## --------------------- ## 28099## M4sh Initialization. ## 28100## --------------------- ## 28101 28102# Be Bourne compatible 28103if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28104 emulate sh 28105 NULLCMD=: 28106 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 28107 # is contrary to our usage. Disable this feature. 28108 alias -g '${1+"$@"}'='"$@"' 28109elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28110 set -o posix 28111fi 28112DUALCASE=1; export DUALCASE # for MKS sh 28113 28114# Support unset when possible. 28115if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28116 as_unset=unset 28117else 28118 as_unset=false 28119fi 28120 28121 28122# Work around bugs in pre-3.0 UWIN ksh. 28123$as_unset ENV MAIL MAILPATH 28124PS1='$ ' 28125PS2='> ' 28126PS4='+ ' 28127 28128# NLS nuisances. 28129for as_var in \ 28130 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 28131 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 28132 LC_TELEPHONE LC_TIME 28133do 28134 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 28135 eval $as_var=C; export $as_var 28136 else 28137 $as_unset $as_var 28138 fi 28139done 28140 28141# Required to use basename. 28142if expr a : '\(a\)' >/dev/null 2>&1; then 28143 as_expr=expr 28144else 28145 as_expr=false 28146fi 28147 28148if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 28149 as_basename=basename 28150else 28151 as_basename=false 28152fi 28153 28154 28155# Name of the executable. 28156as_me=`$as_basename "$0" || 28157$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 28158 X"$0" : 'X\(//\)$' \| \ 28159 X"$0" : 'X\(/\)$' \| \ 28160 . : '\(.\)' 2>/dev/null || 28161echo X/"$0" | 28162 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 28163 /^X\/\(\/\/\)$/{ s//\1/; q; } 28164 /^X\/\(\/\).*/{ s//\1/; q; } 28165 s/.*/./; q'` 28166 28167 28168# PATH needs CR, and LINENO needs CR and PATH. 28169# Avoid depending upon Character Ranges. 28170as_cr_letters='abcdefghijklmnopqrstuvwxyz' 28171as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 28172as_cr_Letters=$as_cr_letters$as_cr_LETTERS 28173as_cr_digits='0123456789' 28174as_cr_alnum=$as_cr_Letters$as_cr_digits 28175 28176# The user is always right. 28177if test "${PATH_SEPARATOR+set}" != set; then 28178 echo "#! /bin/sh" >conf$$.sh 28179 echo "exit 0" >>conf$$.sh 28180 chmod +x conf$$.sh 28181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 28182 PATH_SEPARATOR=';' 28183 else 28184 PATH_SEPARATOR=: 28185 fi 28186 rm -f conf$$.sh 28187fi 28188 28189 28190 as_lineno_1=$LINENO 28191 as_lineno_2=$LINENO 28192 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 28193 test "x$as_lineno_1" != "x$as_lineno_2" && 28194 test "x$as_lineno_3" = "x$as_lineno_2" || { 28195 # Find who we are. Look in the path if we contain no path at all 28196 # relative or not. 28197 case $0 in 28198 *[\\/]* ) as_myself=$0 ;; 28199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28200for as_dir in $PATH 28201do 28202 IFS=$as_save_IFS 28203 test -z "$as_dir" && as_dir=. 28204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 28205done 28206 28207 ;; 28208 esac 28209 # We did not find ourselves, most probably we were run as `sh COMMAND' 28210 # in which case we are not to be found in the path. 28211 if test "x$as_myself" = x; then 28212 as_myself=$0 28213 fi 28214 if test ! -f "$as_myself"; then 28215 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 28216echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 28217 { (exit 1); exit 1; }; } 28218 fi 28219 case $CONFIG_SHELL in 28220 '') 28221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 28223do 28224 IFS=$as_save_IFS 28225 test -z "$as_dir" && as_dir=. 28226 for as_base in sh bash ksh sh5; do 28227 case $as_dir in 28228 /*) 28229 if ("$as_dir/$as_base" -c ' 28230 as_lineno_1=$LINENO 28231 as_lineno_2=$LINENO 28232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 28233 test "x$as_lineno_1" != "x$as_lineno_2" && 28234 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 28235 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 28236 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 28237 CONFIG_SHELL=$as_dir/$as_base 28238 export CONFIG_SHELL 28239 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 28240 fi;; 28241 esac 28242 done 28243done 28244;; 28245 esac 28246 28247 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 28248 # uniformly replaced by the line number. The first 'sed' inserts a 28249 # line-number line before each line; the second 'sed' does the real 28250 # work. The second script uses 'N' to pair each line-number line 28251 # with the numbered line, and appends trailing '-' during 28252 # substitution so that $LINENO is not a special case at line end. 28253 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 28254 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 28255 sed '=' <$as_myself | 28256 sed ' 28257 N 28258 s,$,-, 28259 : loop 28260 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 28261 t loop 28262 s,-$,, 28263 s,^['$as_cr_digits']*\n,, 28264 ' >$as_me.lineno && 28265 chmod +x $as_me.lineno || 28266 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 28267echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 28268 { (exit 1); exit 1; }; } 28269 28270 # Don't try to exec as it changes $[0], causing all sort of problems 28271 # (the dirname of $[0] is not the place where we might find the 28272 # original and so on. Autoconf is especially sensible to this). 28273 . ./$as_me.lineno 28274 # Exit status is that of the last command. 28275 exit 28276} 28277 28278 28279case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 28280 *c*,-n*) ECHO_N= ECHO_C=' 28281' ECHO_T=' ' ;; 28282 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 28283 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 28284esac 28285 28286if expr a : '\(a\)' >/dev/null 2>&1; then 28287 as_expr=expr 28288else 28289 as_expr=false 28290fi 28291 28292rm -f conf$$ conf$$.exe conf$$.file 28293echo >conf$$.file 28294if ln -s conf$$.file conf$$ 2>/dev/null; then 28295 # We could just check for DJGPP; but this test a) works b) is more generic 28296 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 28297 if test -f conf$$.exe; then 28298 # Don't use ln at all; we don't have any links 28299 as_ln_s='cp -p' 28300 else 28301 as_ln_s='ln -s' 28302 fi 28303elif ln conf$$.file conf$$ 2>/dev/null; then 28304 as_ln_s=ln 28305else 28306 as_ln_s='cp -p' 28307fi 28308rm -f conf$$ conf$$.exe conf$$.file 28309 28310if mkdir -p . 2>/dev/null; then 28311 as_mkdir_p=: 28312else 28313 test -d ./-p && rmdir ./-p 28314 as_mkdir_p=false 28315fi 28316 28317as_executable_p="test -f" 28318 28319# Sed expression to map a string onto a valid CPP name. 28320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 28321 28322# Sed expression to map a string onto a valid variable name. 28323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 28324 28325 28326# IFS 28327# We need space, tab and new line, in precisely that order. 28328as_nl=' 28329' 28330IFS=" $as_nl" 28331 28332# CDPATH. 28333$as_unset CDPATH 28334 28335exec 6>&1 28336 28337# Open the log real soon, to keep \$[0] and so on meaningful, and to 28338# report actual input values of CONFIG_FILES etc. instead of their 28339# values after options handling. Logging --version etc. is OK. 28340exec 5>>config.log 28341{ 28342 echo 28343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28344## Running $as_me. ## 28345_ASBOX 28346} >&5 28347cat >&5 <<_CSEOF 28348 28349This file was extended by $as_me, which was 28350generated by GNU Autoconf 2.59. Invocation command line was 28351 28352 CONFIG_FILES = $CONFIG_FILES 28353 CONFIG_HEADERS = $CONFIG_HEADERS 28354 CONFIG_LINKS = $CONFIG_LINKS 28355 CONFIG_COMMANDS = $CONFIG_COMMANDS 28356 $ $0 $@ 28357 28358_CSEOF 28359echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 28360echo >&5 28361_ACEOF 28362 28363# Files that config.status was made for. 28364if test -n "$ac_config_files"; then 28365 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 28366fi 28367 28368if test -n "$ac_config_headers"; then 28369 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 28370fi 28371 28372if test -n "$ac_config_links"; then 28373 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 28374fi 28375 28376if test -n "$ac_config_commands"; then 28377 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 28378fi 28379 28380cat >>$CONFIG_STATUS <<\_ACEOF 28381 28382ac_cs_usage="\ 28383\`$as_me' instantiates files from templates according to the 28384current configuration. 28385 28386Usage: $0 [OPTIONS] [FILE]... 28387 28388 -h, --help print this help, then exit 28389 -V, --version print version number, then exit 28390 -q, --quiet do not print progress messages 28391 -d, --debug don't remove temporary files 28392 --recheck update $as_me by reconfiguring in the same conditions 28393 --file=FILE[:TEMPLATE] 28394 instantiate the configuration file FILE 28395 --header=FILE[:TEMPLATE] 28396 instantiate the configuration header FILE 28397 28398Configuration files: 28399$config_files 28400 28401Configuration headers: 28402$config_headers 28403 28404Configuration commands: 28405$config_commands 28406 28407Report bugs to <bug-autoconf@gnu.org>." 28408_ACEOF 28409 28410cat >>$CONFIG_STATUS <<_ACEOF 28411ac_cs_version="\\ 28412config.status 28413configured by $0, generated by GNU Autoconf 2.59, 28414 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 28415 28416Copyright (C) 2003 Free Software Foundation, Inc. 28417This config.status script is free software; the Free Software Foundation 28418gives unlimited permission to copy, distribute and modify it." 28419srcdir=$srcdir 28420INSTALL="$INSTALL" 28421_ACEOF 28422 28423cat >>$CONFIG_STATUS <<\_ACEOF 28424# If no file are specified by the user, then we need to provide default 28425# value. By we need to know if files were specified by the user. 28426ac_need_defaults=: 28427while test $# != 0 28428do 28429 case $1 in 28430 --*=*) 28431 ac_option=`expr "x$1" : 'x\([^=]*\)='` 28432 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 28433 ac_shift=: 28434 ;; 28435 -*) 28436 ac_option=$1 28437 ac_optarg=$2 28438 ac_shift=shift 28439 ;; 28440 *) # This is not an option, so the user has probably given explicit 28441 # arguments. 28442 ac_option=$1 28443 ac_need_defaults=false;; 28444 esac 28445 28446 case $ac_option in 28447 # Handling of the options. 28448_ACEOF 28449cat >>$CONFIG_STATUS <<\_ACEOF 28450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28451 ac_cs_recheck=: ;; 28452 --version | --vers* | -V ) 28453 echo "$ac_cs_version"; exit 0 ;; 28454 --he | --h) 28455 # Conflict between --help and --header 28456 { { echo "$as_me:$LINENO: error: ambiguous option: $1 28457Try \`$0 --help' for more information." >&5 28458echo "$as_me: error: ambiguous option: $1 28459Try \`$0 --help' for more information." >&2;} 28460 { (exit 1); exit 1; }; };; 28461 --help | --hel | -h ) 28462 echo "$ac_cs_usage"; exit 0 ;; 28463 --debug | --d* | -d ) 28464 debug=: ;; 28465 --file | --fil | --fi | --f ) 28466 $ac_shift 28467 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 28468 ac_need_defaults=false;; 28469 --header | --heade | --head | --hea ) 28470 $ac_shift 28471 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 28472 ac_need_defaults=false;; 28473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28474 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28475 ac_cs_silent=: ;; 28476 28477 # This is an error. 28478 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 28479Try \`$0 --help' for more information." >&5 28480echo "$as_me: error: unrecognized option: $1 28481Try \`$0 --help' for more information." >&2;} 28482 { (exit 1); exit 1; }; } ;; 28483 28484 *) ac_config_targets="$ac_config_targets $1" ;; 28485 28486 esac 28487 shift 28488done 28489 28490ac_configure_extra_args= 28491 28492if $ac_cs_silent; then 28493 exec 6>/dev/null 28494 ac_configure_extra_args="$ac_configure_extra_args --silent" 28495fi 28496 28497_ACEOF 28498cat >>$CONFIG_STATUS <<_ACEOF 28499if \$ac_cs_recheck; then 28500 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 28501 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28502fi 28503 28504_ACEOF 28505 28506cat >>$CONFIG_STATUS <<_ACEOF 28507# 28508# INIT-COMMANDS section. 28509# 28510 28511AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28512 28513_ACEOF 28514 28515 28516 28517cat >>$CONFIG_STATUS <<\_ACEOF 28518for ac_config_target in $ac_config_targets 28519do 28520 case "$ac_config_target" in 28521 # Handling of arguments. 28522 "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 28523 "dbus/dbus-arch-deps.h" ) CONFIG_FILES="$CONFIG_FILES dbus/dbus-arch-deps.h" ;; 28524 "bus/system.conf" ) CONFIG_FILES="$CONFIG_FILES bus/system.conf" ;; 28525 "bus/session.conf" ) CONFIG_FILES="$CONFIG_FILES bus/session.conf" ;; 28526 "bus/messagebus" ) CONFIG_FILES="$CONFIG_FILES bus/messagebus" ;; 28527 "bus/rc.messagebus" ) CONFIG_FILES="$CONFIG_FILES bus/rc.messagebus" ;; 28528 "bus/dbus-daemon.1" ) CONFIG_FILES="$CONFIG_FILES bus/dbus-daemon.1" ;; 28529 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28530 "dbus/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;; 28531 "bus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;; 28532 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 28533 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 28534 "test/name-test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/name-test/Makefile" ;; 28535 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 28536 "dbus-1.pc" ) CONFIG_FILES="$CONFIG_FILES dbus-1.pc" ;; 28537 "test/data/valid-config-files/debug-allow-all.conf" ) CONFIG_FILES="$CONFIG_FILES test/data/valid-config-files/debug-allow-all.conf" ;; 28538 "test/data/valid-config-files/debug-allow-all-sha1.conf" ) CONFIG_FILES="$CONFIG_FILES test/data/valid-config-files/debug-allow-all-sha1.conf" ;; 28539 "test/data/valid-service-files/debug-echo.service" ) CONFIG_FILES="$CONFIG_FILES test/data/valid-service-files/debug-echo.service" ;; 28540 "test/data/valid-service-files/debug-segfault.service" ) CONFIG_FILES="$CONFIG_FILES test/data/valid-service-files/debug-segfault.service" ;; 28541 "test/data/valid-service-files/debug-shell-echo-success.service" ) CONFIG_FILES="$CONFIG_FILES test/data/valid-service-files/debug-shell-echo-success.service" ;; 28542 "test/data/valid-service-files/debug-shell-echo-fail.service" ) CONFIG_FILES="$CONFIG_FILES test/data/valid-service-files/debug-shell-echo-fail.service" ;; 28543 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28544 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28545 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 28546echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28547 { (exit 1); exit 1; }; };; 28548 esac 28549done 28550 28551# If the user did not use the arguments to specify the items to instantiate, 28552# then the envvar interface is used. Set only those that are not. 28553# We use the long form for the default assignment because of an extremely 28554# bizarre bug on SunOS 4.1.3. 28555if $ac_need_defaults; then 28556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28559fi 28560 28561# Have a temporary directory for convenience. Make it in the build tree 28562# simply because there is no reason to put it here, and in addition, 28563# creating and moving files from /tmp can sometimes cause problems. 28564# Create a temporary directory, and hook for its removal unless debugging. 28565$debug || 28566{ 28567 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 28568 trap '{ (exit 1); exit 1; }' 1 2 13 15 28569} 28570 28571# Create a (secure) tmp directory for tmp files. 28572 28573{ 28574 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 28575 test -n "$tmp" && test -d "$tmp" 28576} || 28577{ 28578 tmp=./confstat$$-$RANDOM 28579 (umask 077 && mkdir $tmp) 28580} || 28581{ 28582 echo "$me: cannot create a temporary directory in ." >&2 28583 { (exit 1); exit 1; } 28584} 28585 28586_ACEOF 28587 28588cat >>$CONFIG_STATUS <<_ACEOF 28589 28590# 28591# CONFIG_FILES section. 28592# 28593 28594# No need to generate the scripts if there are no CONFIG_FILES. 28595# This happens for instance when ./config.status config.h 28596if test -n "\$CONFIG_FILES"; then 28597 # Protect against being on the right side of a sed subst in config.status. 28598 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 28599 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 28600s,@SHELL@,$SHELL,;t t 28601s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 28602s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 28603s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 28604s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 28605s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 28606s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 28607s,@exec_prefix@,$exec_prefix,;t t 28608s,@prefix@,$prefix,;t t 28609s,@program_transform_name@,$program_transform_name,;t t 28610s,@bindir@,$bindir,;t t 28611s,@sbindir@,$sbindir,;t t 28612s,@libexecdir@,$libexecdir,;t t 28613s,@datadir@,$datadir,;t t 28614s,@sysconfdir@,$sysconfdir,;t t 28615s,@sharedstatedir@,$sharedstatedir,;t t 28616s,@localstatedir@,$localstatedir,;t t 28617s,@libdir@,$libdir,;t t 28618s,@includedir@,$includedir,;t t 28619s,@oldincludedir@,$oldincludedir,;t t 28620s,@infodir@,$infodir,;t t 28621s,@mandir@,$mandir,;t t 28622s,@build_alias@,$build_alias,;t t 28623s,@host_alias@,$host_alias,;t t 28624s,@target_alias@,$target_alias,;t t 28625s,@DEFS@,$DEFS,;t t 28626s,@ECHO_C@,$ECHO_C,;t t 28627s,@ECHO_N@,$ECHO_N,;t t 28628s,@ECHO_T@,$ECHO_T,;t t 28629s,@LIBS@,$LIBS,;t t 28630s,@build@,$build,;t t 28631s,@build_cpu@,$build_cpu,;t t 28632s,@build_vendor@,$build_vendor,;t t 28633s,@build_os@,$build_os,;t t 28634s,@host@,$host,;t t 28635s,@host_cpu@,$host_cpu,;t t 28636s,@host_vendor@,$host_vendor,;t t 28637s,@host_os@,$host_os,;t t 28638s,@target@,$target,;t t 28639s,@target_cpu@,$target_cpu,;t t 28640s,@target_vendor@,$target_vendor,;t t 28641s,@target_os@,$target_os,;t t 28642s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 28643s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 28644s,@INSTALL_DATA@,$INSTALL_DATA,;t t 28645s,@CYGPATH_W@,$CYGPATH_W,;t t 28646s,@PACKAGE@,$PACKAGE,;t t 28647s,@VERSION@,$VERSION,;t t 28648s,@ACLOCAL@,$ACLOCAL,;t t 28649s,@AUTOCONF@,$AUTOCONF,;t t 28650s,@AUTOMAKE@,$AUTOMAKE,;t t 28651s,@AUTOHEADER@,$AUTOHEADER,;t t 28652s,@MAKEINFO@,$MAKEINFO,;t t 28653s,@install_sh@,$install_sh,;t t 28654s,@STRIP@,$STRIP,;t t 28655s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 28656s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 28657s,@mkdir_p@,$mkdir_p,;t t 28658s,@AWK@,$AWK,;t t 28659s,@SET_MAKE@,$SET_MAKE,;t t 28660s,@am__leading_dot@,$am__leading_dot,;t t 28661s,@AMTAR@,$AMTAR,;t t 28662s,@am__tar@,$am__tar,;t t 28663s,@am__untar@,$am__untar,;t t 28664s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t 28665s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 28666s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 28667s,@MAINT@,$MAINT,;t t 28668s,@LT_CURRENT@,$LT_CURRENT,;t t 28669s,@LT_REVISION@,$LT_REVISION,;t t 28670s,@LT_AGE@,$LT_AGE,;t t 28671s,@CC@,$CC,;t t 28672s,@CFLAGS@,$CFLAGS,;t t 28673s,@LDFLAGS@,$LDFLAGS,;t t 28674s,@CPPFLAGS@,$CPPFLAGS,;t t 28675s,@ac_ct_CC@,$ac_ct_CC,;t t 28676s,@EXEEXT@,$EXEEXT,;t t 28677s,@OBJEXT@,$OBJEXT,;t t 28678s,@DEPDIR@,$DEPDIR,;t t 28679s,@am__include@,$am__include,;t t 28680s,@am__quote@,$am__quote,;t t 28681s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 28682s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 28683s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 28684s,@CCDEPMODE@,$CCDEPMODE,;t t 28685s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 28686s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 28687s,@CXX@,$CXX,;t t 28688s,@CXXFLAGS@,$CXXFLAGS,;t t 28689s,@ac_ct_CXX@,$ac_ct_CXX,;t t 28690s,@CXXDEPMODE@,$CXXDEPMODE,;t t 28691s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 28692s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 28693s,@CPP@,$CPP,;t t 28694s,@EGREP@,$EGREP,;t t 28695s,@DBUS_BUILD_TESTS_TRUE@,$DBUS_BUILD_TESTS_TRUE,;t t 28696s,@DBUS_BUILD_TESTS_FALSE@,$DBUS_BUILD_TESTS_FALSE,;t t 28697s,@R_DYNAMIC_LDFLAG@,$R_DYNAMIC_LDFLAG,;t t 28698s,@SED@,$SED,;t t 28699s,@LN_S@,$LN_S,;t t 28700s,@ECHO@,$ECHO,;t t 28701s,@AR@,$AR,;t t 28702s,@ac_ct_AR@,$ac_ct_AR,;t t 28703s,@RANLIB@,$RANLIB,;t t 28704s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 28705s,@CXXCPP@,$CXXCPP,;t t 28706s,@F77@,$F77,;t t 28707s,@FFLAGS@,$FFLAGS,;t t 28708s,@ac_ct_F77@,$ac_ct_F77,;t t 28709s,@LIBTOOL@,$LIBTOOL,;t t 28710s,@DBUS_GCOV_ENABLED_TRUE@,$DBUS_GCOV_ENABLED_TRUE,;t t 28711s,@DBUS_GCOV_ENABLED_FALSE@,$DBUS_GCOV_ENABLED_FALSE,;t t 28712s,@DBUS_INT64_TYPE@,$DBUS_INT64_TYPE,;t t 28713s,@DBUS_INT64_CONSTANT@,$DBUS_INT64_CONSTANT,;t t 28714s,@DBUS_UINT64_CONSTANT@,$DBUS_UINT64_CONSTANT,;t t 28715s,@DBUS_HAVE_INT64@,$DBUS_HAVE_INT64,;t t 28716s,@DBUS_INT32_TYPE@,$DBUS_INT32_TYPE,;t t 28717s,@DBUS_INT16_TYPE@,$DBUS_INT16_TYPE,;t t 28718s,@DBUS_PATH_OR_ABSTRACT@,$DBUS_PATH_OR_ABSTRACT,;t t 28719s,@PKG_CONFIG@,$PKG_CONFIG,;t t 28720s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t 28721s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t 28722s,@DBUS_USE_EXPAT_TRUE@,$DBUS_USE_EXPAT_TRUE,;t t 28723s,@DBUS_USE_EXPAT_FALSE@,$DBUS_USE_EXPAT_FALSE,;t t 28724s,@DBUS_USE_LIBXML_TRUE@,$DBUS_USE_LIBXML_TRUE,;t t 28725s,@DBUS_USE_LIBXML_FALSE@,$DBUS_USE_LIBXML_FALSE,;t t 28726s,@HAVE_SELINUX_TRUE@,$HAVE_SELINUX_TRUE,;t t 28727s,@HAVE_SELINUX_FALSE@,$HAVE_SELINUX_FALSE,;t t 28728s,@DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE@,$DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE,;t t 28729s,@DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE@,$DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE,;t t 28730s,@DBUS_BUS_ENABLE_KQUEUE_TRUE@,$DBUS_BUS_ENABLE_KQUEUE_TRUE,;t t 28731s,@DBUS_BUS_ENABLE_KQUEUE_FALSE@,$DBUS_BUS_ENABLE_KQUEUE_FALSE,;t t 28732s,@HAVE_CONSOLE_OWNER_FILE_TRUE@,$HAVE_CONSOLE_OWNER_FILE_TRUE,;t t 28733s,@HAVE_CONSOLE_OWNER_FILE_FALSE@,$HAVE_CONSOLE_OWNER_FILE_FALSE,;t t 28734s,@DBUS_CLIENT_CFLAGS@,$DBUS_CLIENT_CFLAGS,;t t 28735s,@DBUS_CLIENT_LIBS@,$DBUS_CLIENT_LIBS,;t t 28736s,@DBUS_BUS_CFLAGS@,$DBUS_BUS_CFLAGS,;t t 28737s,@DBUS_BUS_LIBS@,$DBUS_BUS_LIBS,;t t 28738s,@DBUS_TEST_CFLAGS@,$DBUS_TEST_CFLAGS,;t t 28739s,@DBUS_TEST_LIBS@,$DBUS_TEST_LIBS,;t t 28740s,@X_CFLAGS@,$X_CFLAGS,;t t 28741s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 28742s,@X_LIBS@,$X_LIBS,;t t 28743s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 28744s,@DBUS_X_CFLAGS@,$DBUS_X_CFLAGS,;t t 28745s,@DBUS_X_LIBS@,$DBUS_X_LIBS,;t t 28746s,@DOXYGEN@,$DOXYGEN,;t t 28747s,@DBUS_DOXYGEN_DOCS_ENABLED_TRUE@,$DBUS_DOXYGEN_DOCS_ENABLED_TRUE,;t t 28748s,@DBUS_DOXYGEN_DOCS_ENABLED_FALSE@,$DBUS_DOXYGEN_DOCS_ENABLED_FALSE,;t t 28749s,@XMLTO@,$XMLTO,;t t 28750s,@DBUS_XML_DOCS_ENABLED_TRUE@,$DBUS_XML_DOCS_ENABLED_TRUE,;t t 28751s,@DBUS_XML_DOCS_ENABLED_FALSE@,$DBUS_XML_DOCS_ENABLED_FALSE,;t t 28752s,@EXPANDED_LOCALSTATEDIR@,$EXPANDED_LOCALSTATEDIR,;t t 28753s,@EXPANDED_SYSCONFDIR@,$EXPANDED_SYSCONFDIR,;t t 28754s,@EXPANDED_BINDIR@,$EXPANDED_BINDIR,;t t 28755s,@EXPANDED_LIBDIR@,$EXPANDED_LIBDIR,;t t 28756s,@EXPANDED_DATADIR@,$EXPANDED_DATADIR,;t t 28757s,@DBUS_INIT_SCRIPTS_RED_HAT_TRUE@,$DBUS_INIT_SCRIPTS_RED_HAT_TRUE,;t t 28758s,@DBUS_INIT_SCRIPTS_RED_HAT_FALSE@,$DBUS_INIT_SCRIPTS_RED_HAT_FALSE,;t t 28759s,@DBUS_INIT_SCRIPTS_SLACKWARE_TRUE@,$DBUS_INIT_SCRIPTS_SLACKWARE_TRUE,;t t 28760s,@DBUS_INIT_SCRIPTS_SLACKWARE_FALSE@,$DBUS_INIT_SCRIPTS_SLACKWARE_FALSE,;t t 28761s,@DBUS_SYSTEM_SOCKET@,$DBUS_SYSTEM_SOCKET,;t t 28762s,@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@,$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS,;t t 28763s,@DBUS_SYSTEM_PID_FILE@,$DBUS_SYSTEM_PID_FILE,;t t 28764s,@DBUS_CONSOLE_AUTH_DIR@,$DBUS_CONSOLE_AUTH_DIR,;t t 28765s,@DBUS_CONSOLE_OWNER_FILE@,$DBUS_CONSOLE_OWNER_FILE,;t t 28766s,@DBUS_USER@,$DBUS_USER,;t t 28767s,@DBUS_DATADIR@,$DBUS_DATADIR,;t t 28768s,@DBUS_DAEMONDIR@,$DBUS_DAEMONDIR,;t t 28769s,@DBUS_BINDIR@,$DBUS_BINDIR,;t t 28770s,@TEST_SERVICE_DIR@,$TEST_SERVICE_DIR,;t t 28771s,@TEST_SERVICE_BINARY@,$TEST_SERVICE_BINARY,;t t 28772s,@TEST_SHELL_SERVICE_BINARY@,$TEST_SHELL_SERVICE_BINARY,;t t 28773s,@TEST_EXIT_BINARY@,$TEST_EXIT_BINARY,;t t 28774s,@TEST_SEGFAULT_BINARY@,$TEST_SEGFAULT_BINARY,;t t 28775s,@TEST_SLEEP_FOREVER_BINARY@,$TEST_SLEEP_FOREVER_BINARY,;t t 28776s,@TEST_BUS_BINARY@,$TEST_BUS_BINARY,;t t 28777s,@TEST_SOCKET_DIR@,$TEST_SOCKET_DIR,;t t 28778s,@DBUS_SESSION_SOCKET_DIR@,$DBUS_SESSION_SOCKET_DIR,;t t 28779s,@LIBOBJS@,$LIBOBJS,;t t 28780s,@LTLIBOBJS@,$LTLIBOBJS,;t t 28781CEOF 28782 28783_ACEOF 28784 28785 cat >>$CONFIG_STATUS <<\_ACEOF 28786 # Split the substitutions into bite-sized pieces for seds with 28787 # small command number limits, like on Digital OSF/1 and HP-UX. 28788 ac_max_sed_lines=48 28789 ac_sed_frag=1 # Number of current file. 28790 ac_beg=1 # First line for current file. 28791 ac_end=$ac_max_sed_lines # Line after last line for current file. 28792 ac_more_lines=: 28793 ac_sed_cmds= 28794 while $ac_more_lines; do 28795 if test $ac_beg -gt 1; then 28796 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28797 else 28798 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28799 fi 28800 if test ! -s $tmp/subs.frag; then 28801 ac_more_lines=false 28802 else 28803 # The purpose of the label and of the branching condition is to 28804 # speed up the sed processing (if there are no `@' at all, there 28805 # is no need to browse any of the substitutions). 28806 # These are the two extra sed commands mentioned above. 28807 (echo ':t 28808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 28809 if test -z "$ac_sed_cmds"; then 28810 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 28811 else 28812 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 28813 fi 28814 ac_sed_frag=`expr $ac_sed_frag + 1` 28815 ac_beg=$ac_end 28816 ac_end=`expr $ac_end + $ac_max_sed_lines` 28817 fi 28818 done 28819 if test -z "$ac_sed_cmds"; then 28820 ac_sed_cmds=cat 28821 fi 28822fi # test -n "$CONFIG_FILES" 28823 28824_ACEOF 28825cat >>$CONFIG_STATUS <<\_ACEOF 28826for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 28827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 28828 case $ac_file in 28829 - | *:- | *:-:* ) # input from stdin 28830 cat >$tmp/stdin 28831 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28833 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28834 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28835 * ) ac_file_in=$ac_file.in ;; 28836 esac 28837 28838 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 28839 ac_dir=`(dirname "$ac_file") 2>/dev/null || 28840$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28841 X"$ac_file" : 'X\(//\)[^/]' \| \ 28842 X"$ac_file" : 'X\(//\)$' \| \ 28843 X"$ac_file" : 'X\(/\)' \| \ 28844 . : '\(.\)' 2>/dev/null || 28845echo X"$ac_file" | 28846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28847 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28848 /^X\(\/\/\)$/{ s//\1/; q; } 28849 /^X\(\/\).*/{ s//\1/; q; } 28850 s/.*/./; q'` 28851 { if $as_mkdir_p; then 28852 mkdir -p "$ac_dir" 28853 else 28854 as_dir="$ac_dir" 28855 as_dirs= 28856 while test ! -d "$as_dir"; do 28857 as_dirs="$as_dir $as_dirs" 28858 as_dir=`(dirname "$as_dir") 2>/dev/null || 28859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28860 X"$as_dir" : 'X\(//\)[^/]' \| \ 28861 X"$as_dir" : 'X\(//\)$' \| \ 28862 X"$as_dir" : 'X\(/\)' \| \ 28863 . : '\(.\)' 2>/dev/null || 28864echo X"$as_dir" | 28865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28866 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28867 /^X\(\/\/\)$/{ s//\1/; q; } 28868 /^X\(\/\).*/{ s//\1/; q; } 28869 s/.*/./; q'` 28870 done 28871 test ! -n "$as_dirs" || mkdir $as_dirs 28872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28873echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28874 { (exit 1); exit 1; }; }; } 28875 28876 ac_builddir=. 28877 28878if test "$ac_dir" != .; then 28879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28880 # A "../" for each directory in $ac_dir_suffix. 28881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 28882else 28883 ac_dir_suffix= ac_top_builddir= 28884fi 28885 28886case $srcdir in 28887 .) # No --srcdir option. We are building in place. 28888 ac_srcdir=. 28889 if test -z "$ac_top_builddir"; then 28890 ac_top_srcdir=. 28891 else 28892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 28893 fi ;; 28894 [\\/]* | ?:[\\/]* ) # Absolute path. 28895 ac_srcdir=$srcdir$ac_dir_suffix; 28896 ac_top_srcdir=$srcdir ;; 28897 *) # Relative path. 28898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 28899 ac_top_srcdir=$ac_top_builddir$srcdir ;; 28900esac 28901 28902# Do not use `cd foo && pwd` to compute absolute paths, because 28903# the directories may not exist. 28904case `pwd` in 28905.) ac_abs_builddir="$ac_dir";; 28906*) 28907 case "$ac_dir" in 28908 .) ac_abs_builddir=`pwd`;; 28909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 28910 *) ac_abs_builddir=`pwd`/"$ac_dir";; 28911 esac;; 28912esac 28913case $ac_abs_builddir in 28914.) ac_abs_top_builddir=${ac_top_builddir}.;; 28915*) 28916 case ${ac_top_builddir}. in 28917 .) ac_abs_top_builddir=$ac_abs_builddir;; 28918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 28919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 28920 esac;; 28921esac 28922case $ac_abs_builddir in 28923.) ac_abs_srcdir=$ac_srcdir;; 28924*) 28925 case $ac_srcdir in 28926 .) ac_abs_srcdir=$ac_abs_builddir;; 28927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 28928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 28929 esac;; 28930esac 28931case $ac_abs_builddir in 28932.) ac_abs_top_srcdir=$ac_top_srcdir;; 28933*) 28934 case $ac_top_srcdir in 28935 .) ac_abs_top_srcdir=$ac_abs_builddir;; 28936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 28937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 28938 esac;; 28939esac 28940 28941 28942 case $INSTALL in 28943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28944 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 28945 esac 28946 28947 if test x"$ac_file" != x-; then 28948 { echo "$as_me:$LINENO: creating $ac_file" >&5 28949echo "$as_me: creating $ac_file" >&6;} 28950 rm -f "$ac_file" 28951 fi 28952 # Let's still pretend it is `configure' which instantiates (i.e., don't 28953 # use $as_me), people would be surprised to read: 28954 # /* config.h. Generated by config.status. */ 28955 if test x"$ac_file" = x-; then 28956 configure_input= 28957 else 28958 configure_input="$ac_file. " 28959 fi 28960 configure_input=$configure_input"Generated from `echo $ac_file_in | 28961 sed 's,.*/,,'` by configure." 28962 28963 # First look for the input files in the build tree, otherwise in the 28964 # src tree. 28965 ac_file_inputs=`IFS=: 28966 for f in $ac_file_in; do 28967 case $f in 28968 -) echo $tmp/stdin ;; 28969 [\\/$]*) 28970 # Absolute (can't be DOS-style, as IFS=:) 28971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28972echo "$as_me: error: cannot find input file: $f" >&2;} 28973 { (exit 1); exit 1; }; } 28974 echo "$f";; 28975 *) # Relative 28976 if test -f "$f"; then 28977 # Build tree 28978 echo "$f" 28979 elif test -f "$srcdir/$f"; then 28980 # Source tree 28981 echo "$srcdir/$f" 28982 else 28983 # /dev/null tree 28984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28985echo "$as_me: error: cannot find input file: $f" >&2;} 28986 { (exit 1); exit 1; }; } 28987 fi;; 28988 esac 28989 done` || { (exit 1); exit 1; } 28990_ACEOF 28991cat >>$CONFIG_STATUS <<_ACEOF 28992 sed "$ac_vpsub 28993$extrasub 28994_ACEOF 28995cat >>$CONFIG_STATUS <<\_ACEOF 28996:t 28997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28998s,@configure_input@,$configure_input,;t t 28999s,@srcdir@,$ac_srcdir,;t t 29000s,@abs_srcdir@,$ac_abs_srcdir,;t t 29001s,@top_srcdir@,$ac_top_srcdir,;t t 29002s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 29003s,@builddir@,$ac_builddir,;t t 29004s,@abs_builddir@,$ac_abs_builddir,;t t 29005s,@top_builddir@,$ac_top_builddir,;t t 29006s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 29007s,@INSTALL@,$ac_INSTALL,;t t 29008" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 29009 rm -f $tmp/stdin 29010 if test x"$ac_file" != x-; then 29011 mv $tmp/out $ac_file 29012 else 29013 cat $tmp/out 29014 rm -f $tmp/out 29015 fi 29016 29017done 29018_ACEOF 29019cat >>$CONFIG_STATUS <<\_ACEOF 29020 29021# 29022# CONFIG_HEADER section. 29023# 29024 29025# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 29026# NAME is the cpp macro being defined and VALUE is the value it is being given. 29027# 29028# ac_d sets the value in "#define NAME VALUE" lines. 29029ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 29030ac_dB='[ ].*$,\1#\2' 29031ac_dC=' ' 29032ac_dD=',;t' 29033# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 29034ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 29035ac_uB='$,\1#\2define\3' 29036ac_uC=' ' 29037ac_uD=',;t' 29038 29039for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 29040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 29041 case $ac_file in 29042 - | *:- | *:-:* ) # input from stdin 29043 cat >$tmp/stdin 29044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29048 * ) ac_file_in=$ac_file.in ;; 29049 esac 29050 29051 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 29052echo "$as_me: creating $ac_file" >&6;} 29053 29054 # First look for the input files in the build tree, otherwise in the 29055 # src tree. 29056 ac_file_inputs=`IFS=: 29057 for f in $ac_file_in; do 29058 case $f in 29059 -) echo $tmp/stdin ;; 29060 [\\/$]*) 29061 # Absolute (can't be DOS-style, as IFS=:) 29062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 29063echo "$as_me: error: cannot find input file: $f" >&2;} 29064 { (exit 1); exit 1; }; } 29065 # Do quote $f, to prevent DOS paths from being IFS'd. 29066 echo "$f";; 29067 *) # Relative 29068 if test -f "$f"; then 29069 # Build tree 29070 echo "$f" 29071 elif test -f "$srcdir/$f"; then 29072 # Source tree 29073 echo "$srcdir/$f" 29074 else 29075 # /dev/null tree 29076 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 29077echo "$as_me: error: cannot find input file: $f" >&2;} 29078 { (exit 1); exit 1; }; } 29079 fi;; 29080 esac 29081 done` || { (exit 1); exit 1; } 29082 # Remove the trailing spaces. 29083 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 29084 29085_ACEOF 29086 29087# Transform confdefs.h into two sed scripts, `conftest.defines' and 29088# `conftest.undefs', that substitutes the proper values into 29089# config.h.in to produce config.h. The first handles `#define' 29090# templates, and the second `#undef' templates. 29091# And first: Protect against being on the right side of a sed subst in 29092# config.status. Protect against being in an unquoted here document 29093# in config.status. 29094rm -f conftest.defines conftest.undefs 29095# Using a here document instead of a string reduces the quoting nightmare. 29096# Putting comments in sed scripts is not portable. 29097# 29098# `end' is used to avoid that the second main sed command (meant for 29099# 0-ary CPP macros) applies to n-ary macro definitions. 29100# See the Autoconf documentation for `clear'. 29101cat >confdef2sed.sed <<\_ACEOF 29102s/[\\&,]/\\&/g 29103s,[\\$`],\\&,g 29104t clear 29105: clear 29106s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 29107t end 29108s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 29109: end 29110_ACEOF 29111# If some macros were called several times there might be several times 29112# the same #defines, which is useless. Nevertheless, we may not want to 29113# sort them, since we want the *last* AC-DEFINE to be honored. 29114uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 29115sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 29116rm -f confdef2sed.sed 29117 29118# This sed command replaces #undef with comments. This is necessary, for 29119# example, in the case of _POSIX_SOURCE, which is predefined and required 29120# on some systems where configure will not decide to define it. 29121cat >>conftest.undefs <<\_ACEOF 29122s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 29123_ACEOF 29124 29125# Break up conftest.defines because some shells have a limit on the size 29126# of here documents, and old seds have small limits too (100 cmds). 29127echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 29128echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 29129echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 29130echo ' :' >>$CONFIG_STATUS 29131rm -f conftest.tail 29132while grep . conftest.defines >/dev/null 29133do 29134 # Write a limited-size here document to $tmp/defines.sed. 29135 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 29136 # Speed up: don't consider the non `#define' lines. 29137 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 29138 # Work around the forget-to-reset-the-flag bug. 29139 echo 't clr' >>$CONFIG_STATUS 29140 echo ': clr' >>$CONFIG_STATUS 29141 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 29142 echo 'CEOF 29143 sed -f $tmp/defines.sed $tmp/in >$tmp/out 29144 rm -f $tmp/in 29145 mv $tmp/out $tmp/in 29146' >>$CONFIG_STATUS 29147 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 29148 rm -f conftest.defines 29149 mv conftest.tail conftest.defines 29150done 29151rm -f conftest.defines 29152echo ' fi # grep' >>$CONFIG_STATUS 29153echo >>$CONFIG_STATUS 29154 29155# Break up conftest.undefs because some shells have a limit on the size 29156# of here documents, and old seds have small limits too (100 cmds). 29157echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 29158rm -f conftest.tail 29159while grep . conftest.undefs >/dev/null 29160do 29161 # Write a limited-size here document to $tmp/undefs.sed. 29162 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 29163 # Speed up: don't consider the non `#undef' 29164 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 29165 # Work around the forget-to-reset-the-flag bug. 29166 echo 't clr' >>$CONFIG_STATUS 29167 echo ': clr' >>$CONFIG_STATUS 29168 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 29169 echo 'CEOF 29170 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 29171 rm -f $tmp/in 29172 mv $tmp/out $tmp/in 29173' >>$CONFIG_STATUS 29174 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 29175 rm -f conftest.undefs 29176 mv conftest.tail conftest.undefs 29177done 29178rm -f conftest.undefs 29179 29180cat >>$CONFIG_STATUS <<\_ACEOF 29181 # Let's still pretend it is `configure' which instantiates (i.e., don't 29182 # use $as_me), people would be surprised to read: 29183 # /* config.h. Generated by config.status. */ 29184 if test x"$ac_file" = x-; then 29185 echo "/* Generated by configure. */" >$tmp/config.h 29186 else 29187 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 29188 fi 29189 cat $tmp/in >>$tmp/config.h 29190 rm -f $tmp/in 29191 if test x"$ac_file" != x-; then 29192 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 29193 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 29194echo "$as_me: $ac_file is unchanged" >&6;} 29195 else 29196 ac_dir=`(dirname "$ac_file") 2>/dev/null || 29197$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29198 X"$ac_file" : 'X\(//\)[^/]' \| \ 29199 X"$ac_file" : 'X\(//\)$' \| \ 29200 X"$ac_file" : 'X\(/\)' \| \ 29201 . : '\(.\)' 2>/dev/null || 29202echo X"$ac_file" | 29203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29204 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29205 /^X\(\/\/\)$/{ s//\1/; q; } 29206 /^X\(\/\).*/{ s//\1/; q; } 29207 s/.*/./; q'` 29208 { if $as_mkdir_p; then 29209 mkdir -p "$ac_dir" 29210 else 29211 as_dir="$ac_dir" 29212 as_dirs= 29213 while test ! -d "$as_dir"; do 29214 as_dirs="$as_dir $as_dirs" 29215 as_dir=`(dirname "$as_dir") 2>/dev/null || 29216$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29217 X"$as_dir" : 'X\(//\)[^/]' \| \ 29218 X"$as_dir" : 'X\(//\)$' \| \ 29219 X"$as_dir" : 'X\(/\)' \| \ 29220 . : '\(.\)' 2>/dev/null || 29221echo X"$as_dir" | 29222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29223 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29224 /^X\(\/\/\)$/{ s//\1/; q; } 29225 /^X\(\/\).*/{ s//\1/; q; } 29226 s/.*/./; q'` 29227 done 29228 test ! -n "$as_dirs" || mkdir $as_dirs 29229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 29230echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 29231 { (exit 1); exit 1; }; }; } 29232 29233 rm -f $ac_file 29234 mv $tmp/config.h $ac_file 29235 fi 29236 else 29237 cat $tmp/config.h 29238 rm -f $tmp/config.h 29239 fi 29240# Compute $ac_file's index in $config_headers. 29241_am_stamp_count=1 29242for _am_header in $config_headers :; do 29243 case $_am_header in 29244 $ac_file | $ac_file:* ) 29245 break ;; 29246 * ) 29247 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 29248 esac 29249done 29250echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 29251$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29252 X$ac_file : 'X\(//\)[^/]' \| \ 29253 X$ac_file : 'X\(//\)$' \| \ 29254 X$ac_file : 'X\(/\)' \| \ 29255 . : '\(.\)' 2>/dev/null || 29256echo X$ac_file | 29257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29258 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29259 /^X\(\/\/\)$/{ s//\1/; q; } 29260 /^X\(\/\).*/{ s//\1/; q; } 29261 s/.*/./; q'`/stamp-h$_am_stamp_count 29262done 29263_ACEOF 29264cat >>$CONFIG_STATUS <<\_ACEOF 29265 29266# 29267# CONFIG_COMMANDS section. 29268# 29269for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 29270 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 29271 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 29272 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 29273$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29274 X"$ac_dest" : 'X\(//\)[^/]' \| \ 29275 X"$ac_dest" : 'X\(//\)$' \| \ 29276 X"$ac_dest" : 'X\(/\)' \| \ 29277 . : '\(.\)' 2>/dev/null || 29278echo X"$ac_dest" | 29279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29280 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29281 /^X\(\/\/\)$/{ s//\1/; q; } 29282 /^X\(\/\).*/{ s//\1/; q; } 29283 s/.*/./; q'` 29284 { if $as_mkdir_p; then 29285 mkdir -p "$ac_dir" 29286 else 29287 as_dir="$ac_dir" 29288 as_dirs= 29289 while test ! -d "$as_dir"; do 29290 as_dirs="$as_dir $as_dirs" 29291 as_dir=`(dirname "$as_dir") 2>/dev/null || 29292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29293 X"$as_dir" : 'X\(//\)[^/]' \| \ 29294 X"$as_dir" : 'X\(//\)$' \| \ 29295 X"$as_dir" : 'X\(/\)' \| \ 29296 . : '\(.\)' 2>/dev/null || 29297echo X"$as_dir" | 29298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29299 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29300 /^X\(\/\/\)$/{ s//\1/; q; } 29301 /^X\(\/\).*/{ s//\1/; q; } 29302 s/.*/./; q'` 29303 done 29304 test ! -n "$as_dirs" || mkdir $as_dirs 29305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 29306echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 29307 { (exit 1); exit 1; }; }; } 29308 29309 ac_builddir=. 29310 29311if test "$ac_dir" != .; then 29312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 29313 # A "../" for each directory in $ac_dir_suffix. 29314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 29315else 29316 ac_dir_suffix= ac_top_builddir= 29317fi 29318 29319case $srcdir in 29320 .) # No --srcdir option. We are building in place. 29321 ac_srcdir=. 29322 if test -z "$ac_top_builddir"; then 29323 ac_top_srcdir=. 29324 else 29325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 29326 fi ;; 29327 [\\/]* | ?:[\\/]* ) # Absolute path. 29328 ac_srcdir=$srcdir$ac_dir_suffix; 29329 ac_top_srcdir=$srcdir ;; 29330 *) # Relative path. 29331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 29332 ac_top_srcdir=$ac_top_builddir$srcdir ;; 29333esac 29334 29335# Do not use `cd foo && pwd` to compute absolute paths, because 29336# the directories may not exist. 29337case `pwd` in 29338.) ac_abs_builddir="$ac_dir";; 29339*) 29340 case "$ac_dir" in 29341 .) ac_abs_builddir=`pwd`;; 29342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 29343 *) ac_abs_builddir=`pwd`/"$ac_dir";; 29344 esac;; 29345esac 29346case $ac_abs_builddir in 29347.) ac_abs_top_builddir=${ac_top_builddir}.;; 29348*) 29349 case ${ac_top_builddir}. in 29350 .) ac_abs_top_builddir=$ac_abs_builddir;; 29351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 29352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 29353 esac;; 29354esac 29355case $ac_abs_builddir in 29356.) ac_abs_srcdir=$ac_srcdir;; 29357*) 29358 case $ac_srcdir in 29359 .) ac_abs_srcdir=$ac_abs_builddir;; 29360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 29361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 29362 esac;; 29363esac 29364case $ac_abs_builddir in 29365.) ac_abs_top_srcdir=$ac_top_srcdir;; 29366*) 29367 case $ac_top_srcdir in 29368 .) ac_abs_top_srcdir=$ac_abs_builddir;; 29369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 29370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 29371 esac;; 29372esac 29373 29374 29375 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 29376echo "$as_me: executing $ac_dest commands" >&6;} 29377 case $ac_dest in 29378 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 29379 # Strip MF so we end up with the name of the file. 29380 mf=`echo "$mf" | sed -e 's/:.*$//'` 29381 # Check whether this is an Automake generated Makefile or not. 29382 # We used to match only the files named `Makefile.in', but 29383 # some people rename them; so instead we look at the file content. 29384 # Grep'ing the first line is not enough: some people post-process 29385 # each Makefile.in and add a new line on top of each file to say so. 29386 # So let's grep whole file. 29387 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 29388 dirpart=`(dirname "$mf") 2>/dev/null || 29389$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29390 X"$mf" : 'X\(//\)[^/]' \| \ 29391 X"$mf" : 'X\(//\)$' \| \ 29392 X"$mf" : 'X\(/\)' \| \ 29393 . : '\(.\)' 2>/dev/null || 29394echo X"$mf" | 29395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29396 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29397 /^X\(\/\/\)$/{ s//\1/; q; } 29398 /^X\(\/\).*/{ s//\1/; q; } 29399 s/.*/./; q'` 29400 else 29401 continue 29402 fi 29403 # Extract the definition of DEPDIR, am__include, and am__quote 29404 # from the Makefile without running `make'. 29405 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 29406 test -z "$DEPDIR" && continue 29407 am__include=`sed -n 's/^am__include = //p' < "$mf"` 29408 test -z "am__include" && continue 29409 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 29410 # When using ansi2knr, U may be empty or an underscore; expand it 29411 U=`sed -n 's/^U = //p' < "$mf"` 29412 # Find all dependency output files, they are included files with 29413 # $(DEPDIR) in their names. We invoke sed twice because it is the 29414 # simplest approach to changing $(DEPDIR) to its actual value in the 29415 # expansion. 29416 for file in `sed -n " 29417 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 29418 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 29419 # Make sure the directory exists. 29420 test -f "$dirpart/$file" && continue 29421 fdir=`(dirname "$file") 2>/dev/null || 29422$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29423 X"$file" : 'X\(//\)[^/]' \| \ 29424 X"$file" : 'X\(//\)$' \| \ 29425 X"$file" : 'X\(/\)' \| \ 29426 . : '\(.\)' 2>/dev/null || 29427echo X"$file" | 29428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29429 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29430 /^X\(\/\/\)$/{ s//\1/; q; } 29431 /^X\(\/\).*/{ s//\1/; q; } 29432 s/.*/./; q'` 29433 { if $as_mkdir_p; then 29434 mkdir -p $dirpart/$fdir 29435 else 29436 as_dir=$dirpart/$fdir 29437 as_dirs= 29438 while test ! -d "$as_dir"; do 29439 as_dirs="$as_dir $as_dirs" 29440 as_dir=`(dirname "$as_dir") 2>/dev/null || 29441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29442 X"$as_dir" : 'X\(//\)[^/]' \| \ 29443 X"$as_dir" : 'X\(//\)$' \| \ 29444 X"$as_dir" : 'X\(/\)' \| \ 29445 . : '\(.\)' 2>/dev/null || 29446echo X"$as_dir" | 29447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29448 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29449 /^X\(\/\/\)$/{ s//\1/; q; } 29450 /^X\(\/\).*/{ s//\1/; q; } 29451 s/.*/./; q'` 29452 done 29453 test ! -n "$as_dirs" || mkdir $as_dirs 29454 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 29455echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 29456 { (exit 1); exit 1; }; }; } 29457 29458 # echo "creating $dirpart/$file" 29459 echo '# dummy' > "$dirpart/$file" 29460 done 29461done 29462 ;; 29463 esac 29464done 29465_ACEOF 29466 29467cat >>$CONFIG_STATUS <<\_ACEOF 29468 29469{ (exit 0); exit 0; } 29470_ACEOF 29471chmod +x $CONFIG_STATUS 29472ac_clean_files=$ac_clean_files_save 29473 29474 29475# configure is writing to config.log, and then calls config.status. 29476# config.status does its own redirection, appending to config.log. 29477# Unfortunately, on DOS this fails, as config.log is still kept open 29478# by configure, so config.status won't be able to write to it; its 29479# output is simply discarded. So we exec the FD to /dev/null, 29480# effectively closing config.log, so it can be properly (re)opened and 29481# appended to by config.status. When coming back to configure, we 29482# need to make the FD available again. 29483if test "$no_create" != yes; then 29484 ac_cs_success=: 29485 ac_config_status_args= 29486 test "$silent" = yes && 29487 ac_config_status_args="$ac_config_status_args --quiet" 29488 exec 5>/dev/null 29489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 29490 exec 5>>config.log 29491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 29492 # would make configure fail if this is the last instruction. 29493 $ac_cs_success || { (exit 1); exit 1; } 29494fi 29495 29496 29497echo " 29498 D-Bus $VERSION 29499 ============== 29500 29501 prefix: ${prefix} 29502 exec_prefix: ${exec_prefix} 29503 libdir: ${EXPANDED_LIBDIR} 29504 bindir: ${EXPANDED_BINDIR} 29505 sysconfdir: ${EXPANDED_SYSCONFDIR} 29506 localstatedir: ${EXPANDED_LOCALSTATEDIR} 29507 datadir: ${EXPANDED_DATADIR} 29508 source code location: ${srcdir} 29509 compiler: ${CC} 29510 cflags: ${CFLAGS} 29511 cppflags: ${CPPFLAGS} 29512 cxxflags: ${CXXFLAGS} 29513 64-bit int: ${DBUS_INT64_TYPE} 29514 32-bit int: ${DBUS_INT32_TYPE} 29515 16-bit int: ${DBUS_INT16_TYPE} 29516 Doxygen: ${DOXYGEN} 29517 xmlto: ${XMLTO}" 29518 29519echo " 29520 Maintainer mode: ${USE_MAINTAINER_MODE} 29521 gcc coverage profiling: ${enable_gcov} 29522 Building unit tests: ${enable_tests} 29523 Building verbose mode: ${enable_verbose_mode} 29524 Building assertions: ${enable_asserts} 29525 Building checks: ${enable_checks} 29526 Building SELinux support: ${have_selinux} 29527 Building dnotify support: ${have_dnotify} 29528 Building X11 code: ${enable_x11} 29529 Building Doxygen docs: ${enable_doxygen_docs} 29530 Building XML docs: ${enable_xml_docs} 29531 Gettext libs (empty OK): ${INTLLIBS} 29532 Using XML parser: ${with_xml} 29533 Init scripts style: ${with_init_scripts} 29534 Abstract socket names: ${ac_cv_have_abstract_sockets} 29535 System bus socket: ${DBUS_SYSTEM_SOCKET} 29536 System bus address: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS} 29537 System bus PID file: ${DBUS_SYSTEM_PID_FILE} 29538 Session bus socket dir: ${DBUS_SESSION_SOCKET_DIR} 29539 Console auth dir: ${DBUS_CONSOLE_AUTH_DIR} 29540 Console owner file: ${have_console_owner_file} 29541 Console owner file path: ${DBUS_CONSOLE_OWNER_FILE} 29542 System bus user: ${DBUS_USER} 29543 Session bus services dir: ${EXPANDED_DATADIR}/dbus-1/services 29544 'make check' socket dir: ${TEST_SOCKET_DIR} 29545" 29546 29547if test x$enable_tests = xyes; then 29548 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure." 29549fi 29550if test x$enable_tests = xyes -a x$enable_asserts = xno; then 29551 echo "NOTE: building with unit tests but without assertions means tests may not properly report failures (this configuration is only useful when doing something like profiling the tests)" 29552fi 29553if test x$enable_gcov = xyes; then 29554 echo "NOTE: building with coverage profiling is definitely for developers only." 29555fi 29556if test x$enable_verbose_mode = xyes; then 29557 echo "NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance." 29558fi 29559if test x$enable_asserts = xyes; then 29560 echo "NOTE: building with assertions increases library size and decreases performance." 29561fi 29562if test x$enable_checks = xno; then 29563 echo "NOTE: building without checks for arguments passed to public API makes it harder to debug apps using D-Bus, but will slightly decrease D-Bus library size and _very_ slightly improve performance." 29564fi 29565