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 13 if 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+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for 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 43 do 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 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo 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. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if 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 97 fi 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 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 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 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 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 152 done 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 187 case `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= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196 else 197 as_expr=false 198 fi 199 200 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if 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 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 225 as_executable_p="test -f" 226 227 # Sed expression to map a string onto a valid CPP name. 228 as_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. 231 as_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. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 243 244 245 # Check that we are running under the correct shell. 246 SHELL=${CONFIG_SHELL-/bin/sh} 247 248 case X$ECHO in 249 X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253 esac 254 255 echo=${ECHO-echo} 256 if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259 elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265 else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268 fi 269 270 if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274 $* 275 EOF 276 exit 0 277 fi 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 283 if test -z "$ECHO"; then 284 if 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 295 fi 296 297 if 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 : 301 else 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 381 fi 382 fi 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. 386 ECHO=$echo 387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389 fi 390 391 392 393 394 tagnames=${tagnames+${tagnames},}CXX 395 396 tagnames=${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. 401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403 exec 6>&1 404 405 # 406 # Initializations. 407 # 408 ac_default_prefix=/usr/local 409 ac_config_libobj_dir=. 410 cross_compiling=no 411 subdirs= 412 MFLAGS= 413 MAKEFLAGS= 414 SHELL=${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. 422 PACKAGE_NAME= 423 PACKAGE_TARNAME= 424 PACKAGE_VERSION= 425 PACKAGE_STRING= 426 PACKAGE_BUGREPORT= 427 428 ac_unique_file="dbus/dbus.h" 429 # Factoring default headers for most tests. 430 ac_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 466 ac_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' 467 ac_subst_files='' 468 469 # Initialize some variables set by options. 470 ac_init_help= 471 ac_init_version=false 472 # The variables have the same names as the options, with 473 # dashes changed to underlines. 474 cache_file=/dev/null 475 exec_prefix=NONE 476 no_create= 477 no_recursion= 478 prefix=NONE 479 program_prefix=NONE 480 program_suffix=NONE 481 program_transform_name=s,x,x, 482 silent= 483 site= 484 srcdir= 485 verbose= 486 x_includes=NONE 487 x_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. 494 bindir='${exec_prefix}/bin' 495 sbindir='${exec_prefix}/sbin' 496 libexecdir='${exec_prefix}/libexec' 497 datadir='${prefix}/share' 498 sysconfdir='${prefix}/etc' 499 sharedstatedir='${prefix}/com' 500 localstatedir='${prefix}/var' 501 libdir='${exec_prefix}/lib' 502 includedir='${prefix}/include' 503 oldincludedir='/usr/include' 504 infodir='${prefix}/info' 505 mandir='${prefix}/man' 506 507 ac_prev= 508 for ac_option 509 do 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 781 Try \`$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 804 done 805 806 if 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; }; } 810 fi 811 812 # Be sure to have absolute paths. 813 for ac_var in exec_prefix prefix 814 do 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 821 done 822 823 # Be sure to have absolute paths. 824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826 do 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 833 done 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. 838 build=$build_alias 839 host=$host_alias 840 target=$target_alias 841 842 # FIXME: To remove some day. 843 if 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 851 fi 852 853 ac_tool_prefix= 854 test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856 test "$silent" = yes && exec 6>/dev/null 857 858 859 # Find the source files, if location was not specified. 860 if 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 || 869 echo 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 879 else 880 ac_srcdir_defaulted=no 881 fi 882 if 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 890 fi 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; }; } 894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895 ac_env_build_alias_set=${build_alias+set} 896 ac_env_build_alias_value=$build_alias 897 ac_cv_env_build_alias_set=${build_alias+set} 898 ac_cv_env_build_alias_value=$build_alias 899 ac_env_host_alias_set=${host_alias+set} 900 ac_env_host_alias_value=$host_alias 901 ac_cv_env_host_alias_set=${host_alias+set} 902 ac_cv_env_host_alias_value=$host_alias 903 ac_env_target_alias_set=${target_alias+set} 904 ac_env_target_alias_value=$target_alias 905 ac_cv_env_target_alias_set=${target_alias+set} 906 ac_cv_env_target_alias_value=$target_alias 907 ac_env_CC_set=${CC+set} 908 ac_env_CC_value=$CC 909 ac_cv_env_CC_set=${CC+set} 910 ac_cv_env_CC_value=$CC 911 ac_env_CFLAGS_set=${CFLAGS+set} 912 ac_env_CFLAGS_value=$CFLAGS 913 ac_cv_env_CFLAGS_set=${CFLAGS+set} 914 ac_cv_env_CFLAGS_value=$CFLAGS 915 ac_env_LDFLAGS_set=${LDFLAGS+set} 916 ac_env_LDFLAGS_value=$LDFLAGS 917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918 ac_cv_env_LDFLAGS_value=$LDFLAGS 919 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920 ac_env_CPPFLAGS_value=$CPPFLAGS 921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923 ac_env_CXX_set=${CXX+set} 924 ac_env_CXX_value=$CXX 925 ac_cv_env_CXX_set=${CXX+set} 926 ac_cv_env_CXX_value=$CXX 927 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 928 ac_env_CXXFLAGS_value=$CXXFLAGS 929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 931 ac_env_CPP_set=${CPP+set} 932 ac_env_CPP_value=$CPP 933 ac_cv_env_CPP_set=${CPP+set} 934 ac_cv_env_CPP_value=$CPP 935 ac_env_CXXCPP_set=${CXXCPP+set} 936 ac_env_CXXCPP_value=$CXXCPP 937 ac_cv_env_CXXCPP_set=${CXXCPP+set} 938 ac_cv_env_CXXCPP_value=$CXXCPP 939 ac_env_F77_set=${F77+set} 940 ac_env_F77_value=$F77 941 ac_cv_env_F77_set=${F77+set} 942 ac_cv_env_F77_value=$F77 943 ac_env_FFLAGS_set=${FFLAGS+set} 944 ac_env_FFLAGS_value=$FFLAGS 945 ac_cv_env_FFLAGS_set=${FFLAGS+set} 946 ac_cv_env_FFLAGS_value=$FFLAGS 947 948 # 949 # Report the --help message. 950 # 951 if 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 957 Usage: $0 [OPTION]... [VAR=VALUE]... 958 959 To assign environment variables (e.g., CC, CFLAGS...), specify them as 960 VAR=VALUE. See below for descriptions of some of the useful variables. 961 962 Defaults for the options are specified in brackets. 963 964 Configuration: 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 978 Installation 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 984 By default, \`make install' will install all the files in 985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987 for instance \`--prefix=\$HOME'. 988 989 For better control, use the options below. 990 991 Fine 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 1008 Program 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 1013 X features: 1014 --x-includes=DIR X include files are in DIR 1015 --x-libraries=DIR X library files are in DIR 1016 1017 System 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 1022 fi 1023 1024 if test -n "$ac_init_help"; then 1025 1026 cat <<\_ACEOF 1027 1028 Optional 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 1059 Optional 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 1088 Some 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 1102 Use these variables to override the choices made by `configure' or to help 1103 it to find libraries and programs with nonstandard names/locations. 1104 1105 _ACEOF 1106 fi 1107 1108 if 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 1115 if 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'` 1119 else 1120 ac_dir_suffix= ac_top_builddir= 1121 fi 1122 1123 case $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 ;; 1137 esac 1138 1139 # Do not use `cd foo && pwd` to compute absolute paths, because 1140 # the directories may not exist. 1141 case `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;; 1149 esac 1150 case $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;; 1158 esac 1159 case $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;; 1167 esac 1168 case $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;; 1176 esac 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 1195 fi 1196 1197 test -n "$ac_init_help" && exit 0 1198 if $ac_init_version; then 1199 cat <<\_ACEOF 1200 1201 Copyright (C) 2003 Free Software Foundation, Inc. 1202 This configure script is free software; the Free Software Foundation 1203 gives unlimited permission to copy, distribute and modify it. 1204 _ACEOF 1205 exit 0 1206 fi 1207 exec 5>config.log 1208 cat >&5 <<_ACEOF 1209 This file contains any messages produced by compilers while 1210 running configure, to aid debugging if configure makes a mistake. 1211 1212 It was created by $as_me, which was 1213 generated by GNU Autoconf 2.59. Invocation command line was 1214 1215 $ $0 $@ 1216 1217 _ACEOF 1218 { 1219 cat <<_ASUNAME 1220 ## --------- ## 1221 ## Platform. ## 1222 ## --------- ## 1223 1224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1225 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1226 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1227 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1228 uname -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` 1236 hostinfo = `(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 1243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1244 for as_dir in $PATH 1245 do 1246 IFS=$as_save_IFS 1247 test -z "$as_dir" && as_dir=. 1248 echo "PATH: $as_dir" 1249 done 1250 1251 } >&5 1252 1253 cat >&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. 1268 ac_configure_args= 1269 ac_configure_args0= 1270 ac_configure_args1= 1271 ac_sep= 1272 ac_must_keep_next=false 1273 for ac_pass in 1 2 1274 do 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 1310 done 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. 1319 trap '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 1393 for ac_signal in 1 2 13 15; do 1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1395 done 1396 ac_signal=0 1397 1398 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1399 rm -rf conftest* confdefs.h 1400 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1401 echo >confdefs.h 1402 1403 # Predefined preprocessor variables. 1404 1405 cat >>confdefs.h <<_ACEOF 1406 #define PACKAGE_NAME "$PACKAGE_NAME" 1407 _ACEOF 1408 1409 1410 cat >>confdefs.h <<_ACEOF 1411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1412 _ACEOF 1413 1414 1415 cat >>confdefs.h <<_ACEOF 1416 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1417 _ACEOF 1418 1419 1420 cat >>confdefs.h <<_ACEOF 1421 #define PACKAGE_STRING "$PACKAGE_STRING" 1422 _ACEOF 1423 1424 1425 cat >>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. 1432 if 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 1438 fi 1439 for 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 1442 echo "$as_me: loading site script $ac_site_file" >&6;} 1443 sed 's/^/| /' "$ac_site_file" >&5 1444 . "$ac_site_file" 1445 fi 1446 done 1447 1448 if 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 1453 echo "$as_me: loading cache $cache_file" >&6;} 1454 case $cache_file in 1455 [\\/]* | ?:[\\/]* ) . $cache_file;; 1456 *) . ./$cache_file;; 1457 esac 1458 fi 1459 else 1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1461 echo "$as_me: creating cache $cache_file" >&6;} 1462 >$cache_file 1463 fi 1464 1465 # Check that the precious variables saved in the cache have kept the same 1466 # value. 1467 ac_cache_corrupted=false 1468 for 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 1477 echo "$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 1481 echo "$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 1487 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1489 echo "$as_me: former value: $ac_old_val" >&2;} 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1491 echo "$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 1507 done 1508 if $ac_cache_corrupted; then 1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1510 echo "$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 1512 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1513 { (exit 1); exit 1; }; } 1514 fi 1515 1516 ac_ext=c 1517 ac_cpp='$CPP $CPPFLAGS' 1518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1520 ac_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 1541 ac_aux_dir= 1542 for 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 1556 done 1557 if test -z "$ac_aux_dir"; then 1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1559 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1560 { (exit 1); exit 1; }; } 1561 fi 1562 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1563 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1564 ac_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 1569 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1570 { (exit 1); exit 1; }; } 1571 1572 echo "$as_me:$LINENO: checking build system type" >&5 1573 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1574 if test "${ac_cv_build+set}" = set; then 1575 echo $ECHO_N "(cached) $ECHO_C" >&6 1576 else 1577 ac_cv_build_alias=$build_alias 1578 test -z "$ac_cv_build_alias" && 1579 ac_cv_build_alias=`$ac_config_guess` 1580 test -z "$ac_cv_build_alias" && 1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1582 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1583 { (exit 1); exit 1; }; } 1584 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1586 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1587 { (exit 1); exit 1; }; } 1588 1589 fi 1590 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1591 echo "${ECHO_T}$ac_cv_build" >&6 1592 build=$ac_cv_build 1593 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1594 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1595 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1596 1597 1598 echo "$as_me:$LINENO: checking host system type" >&5 1599 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1600 if test "${ac_cv_host+set}" = set; then 1601 echo $ECHO_N "(cached) $ECHO_C" >&6 1602 else 1603 ac_cv_host_alias=$host_alias 1604 test -z "$ac_cv_host_alias" && 1605 ac_cv_host_alias=$ac_cv_build_alias 1606 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1608 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1609 { (exit 1); exit 1; }; } 1610 1611 fi 1612 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1613 echo "${ECHO_T}$ac_cv_host" >&6 1614 host=$ac_cv_host 1615 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1616 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1617 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1618 1619 1620 echo "$as_me:$LINENO: checking target system type" >&5 1621 echo $ECHO_N "checking target system type... $ECHO_C" >&6 1622 if test "${ac_cv_target+set}" = set; then 1623 echo $ECHO_N "(cached) $ECHO_C" >&6 1624 else 1625 ac_cv_target_alias=$target_alias 1626 test "x$ac_cv_target_alias" = "x" && 1627 ac_cv_target_alias=$ac_cv_host_alias 1628 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1630 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1631 { (exit 1); exit 1; }; } 1632 1633 fi 1634 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1635 echo "${ECHO_T}$ac_cv_target" >&6 1636 target=$ac_cv_target 1637 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1638 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1639 target_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. 1644 test -n "$target_alias" && 1645 test "$program_prefix$program_suffix$program_transform_name" = \ 1646 NONENONEs,x,x, && 1647 program_prefix=${target_alias}- 1648 1649 am__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. 1663 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1664 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1665 if test -z "$INSTALL"; then 1666 if test "${ac_cv_path_install+set}" = set; then 1667 echo $ECHO_N "(cached) $ECHO_C" >&6 1668 else 1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1670 for as_dir in $PATH 1671 do 1672 IFS=$as_save_IFS 1673 test -z "$as_dir" && as_dir=. 1674 # Account for people who put trailing slashes in PATH elements. 1675 case $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 ;; 1703 esac 1704 done 1705 1706 1707 fi 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 1717 fi 1718 echo "$as_me:$LINENO: result: $INSTALL" >&5 1719 echo "${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. 1723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1724 1725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1726 1727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1728 1729 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1730 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1731 # Just in case 1732 sleep 1 1733 echo 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). 1739 if ( 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 1754 alias in your environment" >&5 1755 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1756 alias in your environment" >&2;} 1757 { (exit 1); exit 1; }; } 1758 fi 1759 1760 test "$2" = conftest.file 1761 ) 1762 then 1763 # Ok. 1764 : 1765 else 1766 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1767 Check your system clock" >&5 1768 echo "$as_me: error: newly created file is older than distributed files! 1769 Check your system clock" >&2;} 1770 { (exit 1); exit 1; }; } 1771 fi 1772 echo "$as_me:$LINENO: result: yes" >&5 1773 echo "${ECHO_T}yes" >&6 1774 test "$program_prefix" != NONE && 1775 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1776 # Use a double $ so make ignores it. 1777 test "$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. 1781 cat <<\_ACEOF >conftest.sed 1782 s/[\\$]/&&/g;s/;s,x,x,$// 1783 _ACEOF 1784 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1785 rm conftest.sed 1786 1787 # expand $ac_aux_dir to an absolute path 1788 am_aux_dir=`cd $ac_aux_dir && pwd` 1789 1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1791 # Use eval to expand $SHELL 1792 if eval "$MISSING --run true"; then 1793 am_missing_run="$MISSING --run " 1794 else 1795 am_missing_run= 1796 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1798 fi 1799 1800 if 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 --' 1816 else 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 1831 fi 1832 1833 for ac_prog in gawk mawk nawk awk 1834 do 1835 # Extract the first word of "$ac_prog", so it can be a program name with args. 1836 set dummy $ac_prog; ac_word=$2 1837 echo "$as_me:$LINENO: checking for $ac_word" >&5 1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1839 if test "${ac_cv_prog_AWK+set}" = set; then 1840 echo $ECHO_N "(cached) $ECHO_C" >&6 1841 else 1842 if test -n "$AWK"; then 1843 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1844 else 1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1846 for as_dir in $PATH 1847 do 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 1856 done 1857 done 1858 1859 fi 1860 fi 1861 AWK=$ac_cv_prog_AWK 1862 if test -n "$AWK"; then 1863 echo "$as_me:$LINENO: result: $AWK" >&5 1864 echo "${ECHO_T}$AWK" >&6 1865 else 1866 echo "$as_me:$LINENO: result: no" >&5 1867 echo "${ECHO_T}no" >&6 1868 fi 1869 1870 test -n "$AWK" && break 1871 done 1872 1873 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1874 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1875 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1876 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1877 echo $ECHO_N "(cached) $ECHO_C" >&6 1878 else 1879 cat >conftest.make <<\_ACEOF 1880 all: 1881 @echo 'ac_maketemp="$(MAKE)"' 1882 _ACEOF 1883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1884 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1885 if test -n "$ac_maketemp"; then 1886 eval ac_cv_prog_make_${ac_make}_set=yes 1887 else 1888 eval ac_cv_prog_make_${ac_make}_set=no 1889 fi 1890 rm -f conftest.make 1891 fi 1892 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1893 echo "$as_me:$LINENO: result: yes" >&5 1894 echo "${ECHO_T}yes" >&6 1895 SET_MAKE= 1896 else 1897 echo "$as_me:$LINENO: result: no" >&5 1898 echo "${ECHO_T}no" >&6 1899 SET_MAKE="MAKE=${MAKE-make}" 1900 fi 1901 1902 rm -rf .tst 2>/dev/null 1903 mkdir .tst 2>/dev/null 1904 if test -d .tst; then 1905 am__leading_dot=. 1906 else 1907 am__leading_dot=_ 1908 fi 1909 rmdir .tst 2>/dev/null 1910 1911 # test to see if srcdir already configured 1912 if 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 1915 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1916 { (exit 1); exit 1; }; } 1917 fi 1918 1919 # test whether we have cygpath 1920 if 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 1926 fi 1927 1928 1929 # Define the identity of the package. 1930 PACKAGE=dbus 1931 VERSION=1.0.2 1932 1933 1934 cat >>confdefs.h <<_ACEOF 1935 #define PACKAGE "$PACKAGE" 1936 _ACEOF 1937 1938 1939 cat >>confdefs.h <<_ACEOF 1940 #define VERSION "$VERSION" 1941 _ACEOF 1942 1943 # Some tools Automake needs. 1944 1945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1946 1947 1948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1949 1950 1951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1952 1953 1954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1955 1956 1957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1958 1959 install_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. 1965 if 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. 1968 set dummy ${ac_tool_prefix}strip; ac_word=$2 1969 echo "$as_me:$LINENO: checking for $ac_word" >&5 1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1971 if test "${ac_cv_prog_STRIP+set}" = set; then 1972 echo $ECHO_N "(cached) $ECHO_C" >&6 1973 else 1974 if test -n "$STRIP"; then 1975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1976 else 1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978 for as_dir in $PATH 1979 do 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 1988 done 1989 done 1990 1991 fi 1992 fi 1993 STRIP=$ac_cv_prog_STRIP 1994 if test -n "$STRIP"; then 1995 echo "$as_me:$LINENO: result: $STRIP" >&5 1996 echo "${ECHO_T}$STRIP" >&6 1997 else 1998 echo "$as_me:$LINENO: result: no" >&5 1999 echo "${ECHO_T}no" >&6 2000 fi 2001 2002 fi 2003 if 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. 2006 set dummy strip; ac_word=$2 2007 echo "$as_me:$LINENO: checking for $ac_word" >&5 2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011 else 2012 if test -n "$ac_ct_STRIP"; then 2013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2014 else 2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016 for as_dir in $PATH 2017 do 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 2026 done 2027 done 2028 2029 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2030 fi 2031 fi 2032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2033 if test -n "$ac_ct_STRIP"; then 2034 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2035 echo "${ECHO_T}$ac_ct_STRIP" >&6 2036 else 2037 echo "$as_me:$LINENO: result: no" >&5 2038 echo "${ECHO_T}no" >&6 2039 fi 2040 2041 STRIP=$ac_ct_STRIP 2042 else 2043 STRIP="$ac_cv_prog_STRIP" 2044 fi 2045 2046 fi 2047 INSTALL_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 2053 AMTAR=${AMTAR-"${am_missing_run}tar"} 2054 2055 am__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 2066 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" 2067 2068 GETTEXT_PACKAGE=dbus-1 2069 2070 2071 cat >>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 2077 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2078 echo $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. 2080 if test "${enable_maintainer_mode+set}" = set; then 2081 enableval="$enable_maintainer_mode" 2082 USE_MAINTAINER_MODE=$enableval 2083 else 2084 USE_MAINTAINER_MODE=no 2085 fi; 2086 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2087 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 2088 2089 2090 if test $USE_MAINTAINER_MODE = yes; then 2091 MAINTAINER_MODE_TRUE= 2092 MAINTAINER_MODE_FALSE='#' 2093 else 2094 MAINTAINER_MODE_TRUE='#' 2095 MAINTAINER_MODE_FALSE= 2096 fi 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. 2108 LT_CURRENT=5 2109 2110 ## increment any time the source changes; set to 2111 ## 0 if you increment CURRENT 2112 LT_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. 2117 LT_AGE=2 2118 2119 2120 2121 2122 2123 2124 ac_ext=c 2125 ac_cpp='$CPP $CPPFLAGS' 2126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2128 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2129 if 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. 2131 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2132 echo "$as_me:$LINENO: checking for $ac_word" >&5 2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2134 if test "${ac_cv_prog_CC+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136 else 2137 if test -n "$CC"; then 2138 ac_cv_prog_CC="$CC" # Let the user override the test. 2139 else 2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2141 for as_dir in $PATH 2142 do 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 2151 done 2152 done 2153 2154 fi 2155 fi 2156 CC=$ac_cv_prog_CC 2157 if test -n "$CC"; then 2158 echo "$as_me:$LINENO: result: $CC" >&5 2159 echo "${ECHO_T}$CC" >&6 2160 else 2161 echo "$as_me:$LINENO: result: no" >&5 2162 echo "${ECHO_T}no" >&6 2163 fi 2164 2165 fi 2166 if 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. 2169 set dummy gcc; ac_word=$2 2170 echo "$as_me:$LINENO: checking for $ac_word" >&5 2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2173 echo $ECHO_N "(cached) $ECHO_C" >&6 2174 else 2175 if test -n "$ac_ct_CC"; then 2176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2177 else 2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2179 for as_dir in $PATH 2180 do 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 2189 done 2190 done 2191 2192 fi 2193 fi 2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2195 if test -n "$ac_ct_CC"; then 2196 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2197 echo "${ECHO_T}$ac_ct_CC" >&6 2198 else 2199 echo "$as_me:$LINENO: result: no" >&5 2200 echo "${ECHO_T}no" >&6 2201 fi 2202 2203 CC=$ac_ct_CC 2204 else 2205 CC="$ac_cv_prog_CC" 2206 fi 2207 2208 if 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. 2211 set dummy ${ac_tool_prefix}cc; ac_word=$2 2212 echo "$as_me:$LINENO: checking for $ac_word" >&5 2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2214 if test "${ac_cv_prog_CC+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216 else 2217 if test -n "$CC"; then 2218 ac_cv_prog_CC="$CC" # Let the user override the test. 2219 else 2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221 for as_dir in $PATH 2222 do 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 2231 done 2232 done 2233 2234 fi 2235 fi 2236 CC=$ac_cv_prog_CC 2237 if test -n "$CC"; then 2238 echo "$as_me:$LINENO: result: $CC" >&5 2239 echo "${ECHO_T}$CC" >&6 2240 else 2241 echo "$as_me:$LINENO: result: no" >&5 2242 echo "${ECHO_T}no" >&6 2243 fi 2244 2245 fi 2246 if 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. 2249 set dummy cc; ac_word=$2 2250 echo "$as_me:$LINENO: checking for $ac_word" >&5 2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254 else 2255 if test -n "$ac_ct_CC"; then 2256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2257 else 2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259 for as_dir in $PATH 2260 do 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 2269 done 2270 done 2271 2272 fi 2273 fi 2274 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2275 if test -n "$ac_ct_CC"; then 2276 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2277 echo "${ECHO_T}$ac_ct_CC" >&6 2278 else 2279 echo "$as_me:$LINENO: result: no" >&5 2280 echo "${ECHO_T}no" >&6 2281 fi 2282 2283 CC=$ac_ct_CC 2284 else 2285 CC="$ac_cv_prog_CC" 2286 fi 2287 2288 fi 2289 if test -z "$CC"; then 2290 # Extract the first word of "cc", so it can be a program name with args. 2291 set dummy cc; ac_word=$2 2292 echo "$as_me:$LINENO: checking for $ac_word" >&5 2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2294 if test "${ac_cv_prog_CC+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296 else 2297 if test -n "$CC"; then 2298 ac_cv_prog_CC="$CC" # Let the user override the test. 2299 else 2300 ac_prog_rejected=no 2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302 for as_dir in $PATH 2303 do 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 2316 done 2317 done 2318 2319 if 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 2330 fi 2331 fi 2332 fi 2333 CC=$ac_cv_prog_CC 2334 if test -n "$CC"; then 2335 echo "$as_me:$LINENO: result: $CC" >&5 2336 echo "${ECHO_T}$CC" >&6 2337 else 2338 echo "$as_me:$LINENO: result: no" >&5 2339 echo "${ECHO_T}no" >&6 2340 fi 2341 2342 fi 2343 if 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. 2348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2349 echo "$as_me:$LINENO: checking for $ac_word" >&5 2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2351 if test "${ac_cv_prog_CC+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353 else 2354 if test -n "$CC"; then 2355 ac_cv_prog_CC="$CC" # Let the user override the test. 2356 else 2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358 for as_dir in $PATH 2359 do 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 2368 done 2369 done 2370 2371 fi 2372 fi 2373 CC=$ac_cv_prog_CC 2374 if test -n "$CC"; then 2375 echo "$as_me:$LINENO: result: $CC" >&5 2376 echo "${ECHO_T}$CC" >&6 2377 else 2378 echo "$as_me:$LINENO: result: no" >&5 2379 echo "${ECHO_T}no" >&6 2380 fi 2381 2382 test -n "$CC" && break 2383 done 2384 fi 2385 if test -z "$CC"; then 2386 ac_ct_CC=$CC 2387 for ac_prog in cl 2388 do 2389 # Extract the first word of "$ac_prog", so it can be a program name with args. 2390 set dummy $ac_prog; ac_word=$2 2391 echo "$as_me:$LINENO: checking for $ac_word" >&5 2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395 else 2396 if test -n "$ac_ct_CC"; then 2397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2398 else 2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400 for as_dir in $PATH 2401 do 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 2410 done 2411 done 2412 2413 fi 2414 fi 2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2416 if test -n "$ac_ct_CC"; then 2417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2418 echo "${ECHO_T}$ac_ct_CC" >&6 2419 else 2420 echo "$as_me:$LINENO: result: no" >&5 2421 echo "${ECHO_T}no" >&6 2422 fi 2423 2424 test -n "$ac_ct_CC" && break 2425 done 2426 2427 CC=$ac_ct_CC 2428 fi 2429 2430 fi 2431 2432 2433 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2434 See \`config.log' for more details." >&5 2435 echo "$as_me: error: no acceptable C compiler found in \$PATH 2436 See \`config.log' for more details." >&2;} 2437 { (exit 1); exit 1; }; } 2438 2439 # Provide some information about the compiler. 2440 echo "$as_me:$LINENO:" \ 2441 "checking for C compiler version" >&5 2442 ac_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 2459 cat >conftest.$ac_ext <<_ACEOF 2460 /* confdefs.h. */ 2461 _ACEOF 2462 cat confdefs.h >>conftest.$ac_ext 2463 cat >>conftest.$ac_ext <<_ACEOF 2464 /* end confdefs.h. */ 2465 2466 int 2467 main () 2468 { 2469 2470 ; 2471 return 0; 2472 } 2473 _ACEOF 2474 ac_clean_files_save=$ac_clean_files 2475 ac_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. 2479 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2480 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2481 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2482 if { (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. 2493 ac_cv_exeext= 2494 # b.out is created by i960 compilers. 2495 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2496 do 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 2518 done 2519 else 2520 echo "$as_me: failed program was:" >&5 2521 sed 's/^/| /' conftest.$ac_ext >&5 2522 2523 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2524 See \`config.log' for more details." >&5 2525 echo "$as_me: error: C compiler cannot create executables 2526 See \`config.log' for more details." >&2;} 2527 { (exit 77); exit 77; }; } 2528 fi 2529 2530 ac_exeext=$ac_cv_exeext 2531 echo "$as_me:$LINENO: result: $ac_file" >&5 2532 echo "${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. 2536 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2537 echo $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. 2540 if 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. 2553 If you meant to cross compile, use \`--host'. 2554 See \`config.log' for more details." >&5 2555 echo "$as_me: error: cannot run C compiled programs. 2556 If you meant to cross compile, use \`--host'. 2557 See \`config.log' for more details." >&2;} 2558 { (exit 1); exit 1; }; } 2559 fi 2560 fi 2561 fi 2562 echo "$as_me:$LINENO: result: yes" >&5 2563 echo "${ECHO_T}yes" >&6 2564 2565 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2566 ac_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. 2569 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2570 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2571 echo "$as_me:$LINENO: result: $cross_compiling" >&5 2572 echo "${ECHO_T}$cross_compiling" >&6 2573 2574 echo "$as_me:$LINENO: checking for suffix of executables" >&5 2575 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2576 if { (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'. 2585 for 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 2594 done 2595 else 2596 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2597 See \`config.log' for more details." >&5 2598 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2599 See \`config.log' for more details." >&2;} 2600 { (exit 1); exit 1; }; } 2601 fi 2602 2603 rm -f conftest$ac_cv_exeext 2604 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2605 echo "${ECHO_T}$ac_cv_exeext" >&6 2606 2607 rm -f conftest.$ac_ext 2608 EXEEXT=$ac_cv_exeext 2609 ac_exeext=$EXEEXT 2610 echo "$as_me:$LINENO: checking for suffix of object files" >&5 2611 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2612 if test "${ac_cv_objext+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614 else 2615 cat >conftest.$ac_ext <<_ACEOF 2616 /* confdefs.h. */ 2617 _ACEOF 2618 cat confdefs.h >>conftest.$ac_ext 2619 cat >>conftest.$ac_ext <<_ACEOF 2620 /* end confdefs.h. */ 2621 2622 int 2623 main () 2624 { 2625 2626 ; 2627 return 0; 2628 } 2629 _ACEOF 2630 rm -f conftest.o conftest.obj 2631 if { (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 2642 done 2643 else 2644 echo "$as_me: failed program was:" >&5 2645 sed 's/^/| /' conftest.$ac_ext >&5 2646 2647 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2648 See \`config.log' for more details." >&5 2649 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2650 See \`config.log' for more details." >&2;} 2651 { (exit 1); exit 1; }; } 2652 fi 2653 2654 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2655 fi 2656 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2657 echo "${ECHO_T}$ac_cv_objext" >&6 2658 OBJEXT=$ac_cv_objext 2659 ac_objext=$OBJEXT 2660 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2661 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2662 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664 else 2665 cat >conftest.$ac_ext <<_ACEOF 2666 /* confdefs.h. */ 2667 _ACEOF 2668 cat confdefs.h >>conftest.$ac_ext 2669 cat >>conftest.$ac_ext <<_ACEOF 2670 /* end confdefs.h. */ 2671 2672 int 2673 main () 2674 { 2675 #ifndef __GNUC__ 2676 choke me 2677 #endif 2678 2679 ; 2680 return 0; 2681 } 2682 _ACEOF 2683 rm -f conftest.$ac_objext 2684 if { (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 2706 else 2707 echo "$as_me: failed program was:" >&5 2708 sed 's/^/| /' conftest.$ac_ext >&5 2709 2710 ac_compiler_gnu=no 2711 fi 2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2713 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2714 2715 fi 2716 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2717 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2718 GCC=`test $ac_compiler_gnu = yes && echo yes` 2719 ac_test_CFLAGS=${CFLAGS+set} 2720 ac_save_CFLAGS=$CFLAGS 2721 CFLAGS="-g" 2722 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2723 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2724 if test "${ac_cv_prog_cc_g+set}" = set; then 2725 echo $ECHO_N "(cached) $ECHO_C" >&6 2726 else 2727 cat >conftest.$ac_ext <<_ACEOF 2728 /* confdefs.h. */ 2729 _ACEOF 2730 cat confdefs.h >>conftest.$ac_ext 2731 cat >>conftest.$ac_ext <<_ACEOF 2732 /* end confdefs.h. */ 2733 2734 int 2735 main () 2736 { 2737 2738 ; 2739 return 0; 2740 } 2741 _ACEOF 2742 rm -f conftest.$ac_objext 2743 if { (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 2765 else 2766 echo "$as_me: failed program was:" >&5 2767 sed 's/^/| /' conftest.$ac_ext >&5 2768 2769 ac_cv_prog_cc_g=no 2770 fi 2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2772 fi 2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2775 if test "$ac_test_CFLAGS" = set; then 2776 CFLAGS=$ac_save_CFLAGS 2777 elif 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 2783 else 2784 if test "$GCC" = yes; then 2785 CFLAGS="-O2" 2786 else 2787 CFLAGS= 2788 fi 2789 fi 2790 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2791 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2792 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2793 echo $ECHO_N "(cached) $ECHO_C" >&6 2794 else 2795 ac_cv_prog_cc_stdc=no 2796 ac_save_CC=$CC 2797 cat >conftest.$ac_ext <<_ACEOF 2798 /* confdefs.h. */ 2799 _ACEOF 2800 cat confdefs.h >>conftest.$ac_ext 2801 cat >>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. */ 2808 struct buf { int x; }; 2809 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2810 static char *e (p, i) 2811 char **p; 2812 int i; 2813 { 2814 return p[i]; 2815 } 2816 static 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. */ 2833 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2834 2835 int test (int i, double x); 2836 struct s1 {int (*f) (int a);}; 2837 struct s2 {int (*f) (double a);}; 2838 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2839 int argc; 2840 char **argv; 2841 int 2842 main () 2843 { 2844 return 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__ 2856 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2857 do 2858 CC="$ac_save_CC $ac_arg" 2859 rm -f conftest.$ac_objext 2860 if { (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 2882 break 2883 else 2884 echo "$as_me: failed program was:" >&5 2885 sed 's/^/| /' conftest.$ac_ext >&5 2886 2887 fi 2888 rm -f conftest.err conftest.$ac_objext 2889 done 2890 rm -f conftest.$ac_ext conftest.$ac_objext 2891 CC=$ac_save_CC 2892 2893 fi 2894 2895 case "x$ac_cv_prog_cc_stdc" in 2896 x|xno) 2897 echo "$as_me:$LINENO: result: none needed" >&5 2898 echo "${ECHO_T}none needed" >&6 ;; 2899 *) 2900 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2901 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2902 CC="$CC $ac_cv_prog_cc_stdc" ;; 2903 esac 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. 2909 cat >conftest.$ac_ext <<_ACEOF 2910 #ifndef __cplusplus 2911 choke me 2912 #endif 2913 _ACEOF 2914 rm -f conftest.$ac_objext 2915 if { (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);' 2943 do 2944 cat >conftest.$ac_ext <<_ACEOF 2945 /* confdefs.h. */ 2946 _ACEOF 2947 cat confdefs.h >>conftest.$ac_ext 2948 cat >>conftest.$ac_ext <<_ACEOF 2949 /* end confdefs.h. */ 2950 $ac_declaration 2951 #include <stdlib.h> 2952 int 2953 main () 2954 { 2955 exit (42); 2956 ; 2957 return 0; 2958 } 2959 _ACEOF 2960 rm -f conftest.$ac_objext 2961 if { (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 : 2983 else 2984 echo "$as_me: failed program was:" >&5 2985 sed 's/^/| /' conftest.$ac_ext >&5 2986 2987 continue 2988 fi 2989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2990 cat >conftest.$ac_ext <<_ACEOF 2991 /* confdefs.h. */ 2992 _ACEOF 2993 cat confdefs.h >>conftest.$ac_ext 2994 cat >>conftest.$ac_ext <<_ACEOF 2995 /* end confdefs.h. */ 2996 $ac_declaration 2997 int 2998 main () 2999 { 3000 exit (42); 3001 ; 3002 return 0; 3003 } 3004 _ACEOF 3005 rm -f conftest.$ac_objext 3006 if { (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 3028 else 3029 echo "$as_me: failed program was:" >&5 3030 sed 's/^/| /' conftest.$ac_ext >&5 3031 3032 fi 3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3034 done 3035 rm -f conftest* 3036 if test -n "$ac_declaration"; then 3037 echo '#ifdef __cplusplus' >>confdefs.h 3038 echo $ac_declaration >>confdefs.h 3039 echo '#endif' >>confdefs.h 3040 fi 3041 3042 else 3043 echo "$as_me: failed program was:" >&5 3044 sed 's/^/| /' conftest.$ac_ext >&5 3045 3046 fi 3047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3048 ac_ext=c 3049 ac_cpp='$CPP $CPPFLAGS' 3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053 DEPDIR="${am__leading_dot}deps" 3054 3055 ac_config_commands="$ac_config_commands depfiles" 3056 3057 3058 am_make=${MAKE-make} 3059 cat > confinc << 'END' 3060 am__doit: 3061 @echo done 3062 .PHONY: am__doit 3063 END 3064 # If we don't find an include directive, just comment out the code. 3065 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3066 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3067 am__include="#" 3068 am__quote= 3069 _am_result=none 3070 # First try GNU make style include. 3071 echo "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'. 3077 if 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 3081 fi 3082 # Now try BSD make style include. 3083 if 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 3090 fi 3091 3092 3093 echo "$as_me:$LINENO: result: $_am_result" >&5 3094 echo "${ECHO_T}$_am_result" >&6 3095 rm -f confinc confmf 3096 3097 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3098 if test "${enable_dependency_tracking+set}" = set; then 3099 enableval="$enable_dependency_tracking" 3100 3101 fi; 3102 if test "x$enable_dependency_tracking" != xno; then 3103 am_depcomp="$ac_aux_dir/depcomp" 3104 AMDEPBACKSLASH='\' 3105 fi 3106 3107 3108 if test "x$enable_dependency_tracking" != xno; then 3109 AMDEP_TRUE= 3110 AMDEP_FALSE='#' 3111 else 3112 AMDEP_TRUE='#' 3113 AMDEP_FALSE= 3114 fi 3115 3116 3117 3118 3119 depcc="$CC" am_compiler_list= 3120 3121 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3122 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3123 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3124 echo $ECHO_N "(cached) $ECHO_C" >&6 3125 else 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 3206 else 3207 am_cv_CC_dependencies_compiler_type=none 3208 fi 3209 3210 fi 3211 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3212 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3214 3215 3216 3217 if 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='#' 3222 else 3223 am__fastdepCC_TRUE='#' 3224 am__fastdepCC_FALSE= 3225 fi 3226 3227 3228 ac_ext=cc 3229 ac_cpp='$CXXCPP $CPPFLAGS' 3230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3233 if 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. 3237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3238 echo "$as_me:$LINENO: checking for $ac_word" >&5 3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3240 if test "${ac_cv_prog_CXX+set}" = set; then 3241 echo $ECHO_N "(cached) $ECHO_C" >&6 3242 else 3243 if test -n "$CXX"; then 3244 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3245 else 3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3247 for as_dir in $PATH 3248 do 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 3257 done 3258 done 3259 3260 fi 3261 fi 3262 CXX=$ac_cv_prog_CXX 3263 if test -n "$CXX"; then 3264 echo "$as_me:$LINENO: result: $CXX" >&5 3265 echo "${ECHO_T}$CXX" >&6 3266 else 3267 echo "$as_me:$LINENO: result: no" >&5 3268 echo "${ECHO_T}no" >&6 3269 fi 3270 3271 test -n "$CXX" && break 3272 done 3273 fi 3274 if 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 3277 do 3278 # Extract the first word of "$ac_prog", so it can be a program name with args. 3279 set dummy $ac_prog; ac_word=$2 3280 echo "$as_me:$LINENO: checking for $ac_word" >&5 3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3282 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284 else 3285 if test -n "$ac_ct_CXX"; then 3286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3287 else 3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289 for as_dir in $PATH 3290 do 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 3299 done 3300 done 3301 3302 fi 3303 fi 3304 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3305 if test -n "$ac_ct_CXX"; then 3306 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3307 echo "${ECHO_T}$ac_ct_CXX" >&6 3308 else 3309 echo "$as_me:$LINENO: result: no" >&5 3310 echo "${ECHO_T}no" >&6 3311 fi 3312 3313 test -n "$ac_ct_CXX" && break 3314 done 3315 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3316 3317 CXX=$ac_ct_CXX 3318 fi 3319 3320 3321 # Provide some information about the compiler. 3322 echo "$as_me:$LINENO:" \ 3323 "checking for C++ compiler version" >&5 3324 ac_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 3341 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3342 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3344 echo $ECHO_N "(cached) $ECHO_C" >&6 3345 else 3346 cat >conftest.$ac_ext <<_ACEOF 3347 /* confdefs.h. */ 3348 _ACEOF 3349 cat confdefs.h >>conftest.$ac_ext 3350 cat >>conftest.$ac_ext <<_ACEOF 3351 /* end confdefs.h. */ 3352 3353 int 3354 main () 3355 { 3356 #ifndef __GNUC__ 3357 choke me 3358 #endif 3359 3360 ; 3361 return 0; 3362 } 3363 _ACEOF 3364 rm -f conftest.$ac_objext 3365 if { (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 3387 else 3388 echo "$as_me: failed program was:" >&5 3389 sed 's/^/| /' conftest.$ac_ext >&5 3390 3391 ac_compiler_gnu=no 3392 fi 3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3394 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3395 3396 fi 3397 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3398 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3399 GXX=`test $ac_compiler_gnu = yes && echo yes` 3400 ac_test_CXXFLAGS=${CXXFLAGS+set} 3401 ac_save_CXXFLAGS=$CXXFLAGS 3402 CXXFLAGS="-g" 3403 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3404 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3405 if test "${ac_cv_prog_cxx_g+set}" = set; then 3406 echo $ECHO_N "(cached) $ECHO_C" >&6 3407 else 3408 cat >conftest.$ac_ext <<_ACEOF 3409 /* confdefs.h. */ 3410 _ACEOF 3411 cat confdefs.h >>conftest.$ac_ext 3412 cat >>conftest.$ac_ext <<_ACEOF 3413 /* end confdefs.h. */ 3414 3415 int 3416 main () 3417 { 3418 3419 ; 3420 return 0; 3421 } 3422 _ACEOF 3423 rm -f conftest.$ac_objext 3424 if { (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 3446 else 3447 echo "$as_me: failed program was:" >&5 3448 sed 's/^/| /' conftest.$ac_ext >&5 3449 3450 ac_cv_prog_cxx_g=no 3451 fi 3452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3453 fi 3454 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3455 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3456 if test "$ac_test_CXXFLAGS" = set; then 3457 CXXFLAGS=$ac_save_CXXFLAGS 3458 elif 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 3464 else 3465 if test "$GXX" = yes; then 3466 CXXFLAGS="-O2" 3467 else 3468 CXXFLAGS= 3469 fi 3470 fi 3471 for 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);' 3478 do 3479 cat >conftest.$ac_ext <<_ACEOF 3480 /* confdefs.h. */ 3481 _ACEOF 3482 cat confdefs.h >>conftest.$ac_ext 3483 cat >>conftest.$ac_ext <<_ACEOF 3484 /* end confdefs.h. */ 3485 $ac_declaration 3486 #include <stdlib.h> 3487 int 3488 main () 3489 { 3490 exit (42); 3491 ; 3492 return 0; 3493 } 3494 _ACEOF 3495 rm -f conftest.$ac_objext 3496 if { (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 : 3518 else 3519 echo "$as_me: failed program was:" >&5 3520 sed 's/^/| /' conftest.$ac_ext >&5 3521 3522 continue 3523 fi 3524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3525 cat >conftest.$ac_ext <<_ACEOF 3526 /* confdefs.h. */ 3527 _ACEOF 3528 cat confdefs.h >>conftest.$ac_ext 3529 cat >>conftest.$ac_ext <<_ACEOF 3530 /* end confdefs.h. */ 3531 $ac_declaration 3532 int 3533 main () 3534 { 3535 exit (42); 3536 ; 3537 return 0; 3538 } 3539 _ACEOF 3540 rm -f conftest.$ac_objext 3541 if { (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 3563 else 3564 echo "$as_me: failed program was:" >&5 3565 sed 's/^/| /' conftest.$ac_ext >&5 3566 3567 fi 3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3569 done 3570 rm -f conftest* 3571 if test -n "$ac_declaration"; then 3572 echo '#ifdef __cplusplus' >>confdefs.h 3573 echo $ac_declaration >>confdefs.h 3574 echo '#endif' >>confdefs.h 3575 fi 3576 3577 ac_ext=c 3578 ac_cpp='$CPP $CPPFLAGS' 3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582 3583 depcc="$CXX" am_compiler_list= 3584 3585 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3586 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3587 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3588 echo $ECHO_N "(cached) $ECHO_C" >&6 3589 else 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 3670 else 3671 am_cv_CXX_dependencies_compiler_type=none 3672 fi 3673 3674 fi 3675 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3676 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3677 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3678 3679 3680 3681 if 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='#' 3686 else 3687 am__fastdepCXX_TRUE='#' 3688 am__fastdepCXX_FALSE= 3689 fi 3690 3691 3692 3693 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3694 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3695 if test "${ac_cv_search_strerror+set}" = set; then 3696 echo $ECHO_N "(cached) $ECHO_C" >&6 3697 else 3698 ac_func_search_save_LIBS=$LIBS 3699 ac_cv_search_strerror=no 3700 cat >conftest.$ac_ext <<_ACEOF 3701 /* confdefs.h. */ 3702 _ACEOF 3703 cat confdefs.h >>conftest.$ac_ext 3704 cat >>conftest.$ac_ext <<_ACEOF 3705 /* end confdefs.h. */ 3706 3707 /* Override any gcc2 internal prototype to avoid an error. */ 3708 #ifdef __cplusplus 3709 extern "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. */ 3713 char strerror (); 3714 int 3715 main () 3716 { 3717 strerror (); 3718 ; 3719 return 0; 3720 } 3721 _ACEOF 3722 rm -f conftest.$ac_objext conftest$ac_exeext 3723 if { (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" 3745 else 3746 echo "$as_me: failed program was:" >&5 3747 sed 's/^/| /' conftest.$ac_ext >&5 3748 3749 fi 3750 rm -f conftest.err conftest.$ac_objext \ 3751 conftest$ac_exeext conftest.$ac_ext 3752 if 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 3758 cat confdefs.h >>conftest.$ac_ext 3759 cat >>conftest.$ac_ext <<_ACEOF 3760 /* end confdefs.h. */ 3761 3762 /* Override any gcc2 internal prototype to avoid an error. */ 3763 #ifdef __cplusplus 3764 extern "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. */ 3768 char strerror (); 3769 int 3770 main () 3771 { 3772 strerror (); 3773 ; 3774 return 0; 3775 } 3776 _ACEOF 3777 rm -f conftest.$ac_objext conftest$ac_exeext 3778 if { (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" 3800 break 3801 else 3802 echo "$as_me: failed program was:" >&5 3803 sed 's/^/| /' conftest.$ac_ext >&5 3804 3805 fi 3806 rm -f conftest.err conftest.$ac_objext \ 3807 conftest$ac_exeext conftest.$ac_ext 3808 done 3809 fi 3810 LIBS=$ac_func_search_save_LIBS 3811 fi 3812 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3813 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3814 if test "$ac_cv_search_strerror" != no; then 3815 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3816 3817 fi 3818 3819 ac_ext=c 3820 ac_cpp='$CPP $CPPFLAGS' 3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3826 # On Suns, sometimes $CPP names a directory. 3827 if test -n "$CPP" && test -d "$CPP"; then 3828 CPP= 3829 fi 3830 if test -z "$CPP"; then 3831 if test "${ac_cv_prog_CPP+set}" = set; then 3832 echo $ECHO_N "(cached) $ECHO_C" >&6 3833 else 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 3838 for ac_c_preproc_warn_flag in '' yes 3839 do 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 3849 cat confdefs.h >>conftest.$ac_ext 3850 cat >>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 3859 if { (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 3873 else 3874 ac_cpp_err=yes 3875 fi 3876 if test -z "$ac_cpp_err"; then 3877 : 3878 else 3879 echo "$as_me: failed program was:" >&5 3880 sed 's/^/| /' conftest.$ac_ext >&5 3881 3882 # Broken: fails on valid input. 3883 continue 3884 fi 3885 rm -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 3892 cat confdefs.h >>conftest.$ac_ext 3893 cat >>conftest.$ac_ext <<_ACEOF 3894 /* end confdefs.h. */ 3895 #include <ac_nonexistent.h> 3896 _ACEOF 3897 if { (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 3911 else 3912 ac_cpp_err=yes 3913 fi 3914 if test -z "$ac_cpp_err"; then 3915 # Broken: success on invalid input. 3916 continue 3917 else 3918 echo "$as_me: failed program was:" >&5 3919 sed 's/^/| /' conftest.$ac_ext >&5 3920 3921 # Passes both tests. 3922 ac_preproc_ok=: 3923 break 3924 fi 3925 rm -f conftest.err conftest.$ac_ext 3926 3927 done 3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3929 rm -f conftest.err conftest.$ac_ext 3930 if $ac_preproc_ok; then 3931 break 3932 fi 3933 3934 done 3935 ac_cv_prog_CPP=$CPP 3936 3937 fi 3938 CPP=$ac_cv_prog_CPP 3939 else 3940 ac_cv_prog_CPP=$CPP 3941 fi 3942 echo "$as_me:$LINENO: result: $CPP" >&5 3943 echo "${ECHO_T}$CPP" >&6 3944 ac_preproc_ok=false 3945 for ac_c_preproc_warn_flag in '' yes 3946 do 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 3956 cat confdefs.h >>conftest.$ac_ext 3957 cat >>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 3966 if { (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 3980 else 3981 ac_cpp_err=yes 3982 fi 3983 if test -z "$ac_cpp_err"; then 3984 : 3985 else 3986 echo "$as_me: failed program was:" >&5 3987 sed 's/^/| /' conftest.$ac_ext >&5 3988 3989 # Broken: fails on valid input. 3990 continue 3991 fi 3992 rm -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 3999 cat confdefs.h >>conftest.$ac_ext 4000 cat >>conftest.$ac_ext <<_ACEOF 4001 /* end confdefs.h. */ 4002 #include <ac_nonexistent.h> 4003 _ACEOF 4004 if { (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 4018 else 4019 ac_cpp_err=yes 4020 fi 4021 if test -z "$ac_cpp_err"; then 4022 # Broken: success on invalid input. 4023 continue 4024 else 4025 echo "$as_me: failed program was:" >&5 4026 sed 's/^/| /' conftest.$ac_ext >&5 4027 4028 # Passes both tests. 4029 ac_preproc_ok=: 4030 break 4031 fi 4032 rm -f conftest.err conftest.$ac_ext 4033 4034 done 4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4036 rm -f conftest.err conftest.$ac_ext 4037 if $ac_preproc_ok; then 4038 : 4039 else 4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4041 See \`config.log' for more details." >&5 4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4043 See \`config.log' for more details." >&2;} 4044 { (exit 1); exit 1; }; } 4045 fi 4046 4047 ac_ext=c 4048 ac_cpp='$CPP $CPPFLAGS' 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052 4053 4054 echo "$as_me:$LINENO: checking for egrep" >&5 4055 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4056 if test "${ac_cv_prog_egrep+set}" = set; then 4057 echo $ECHO_N "(cached) $ECHO_C" >&6 4058 else 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 4063 fi 4064 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4065 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4066 EGREP=$ac_cv_prog_egrep 4067 4068 4069 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4071 if test "${ac_cv_header_stdc+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073 else 4074 cat >conftest.$ac_ext <<_ACEOF 4075 /* confdefs.h. */ 4076 _ACEOF 4077 cat confdefs.h >>conftest.$ac_ext 4078 cat >>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 4085 int 4086 main () 4087 { 4088 4089 ; 4090 return 0; 4091 } 4092 _ACEOF 4093 rm -f conftest.$ac_objext 4094 if { (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 4116 else 4117 echo "$as_me: failed program was:" >&5 4118 sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 ac_cv_header_stdc=no 4121 fi 4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4123 4124 if 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 4129 cat confdefs.h >>conftest.$ac_ext 4130 cat >>conftest.$ac_ext <<_ACEOF 4131 /* end confdefs.h. */ 4132 #include <string.h> 4133 4134 _ACEOF 4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4136 $EGREP "memchr" >/dev/null 2>&1; then 4137 : 4138 else 4139 ac_cv_header_stdc=no 4140 fi 4141 rm -f conftest* 4142 4143 fi 4144 4145 if 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 4150 cat confdefs.h >>conftest.$ac_ext 4151 cat >>conftest.$ac_ext <<_ACEOF 4152 /* end confdefs.h. */ 4153 #include <stdlib.h> 4154 4155 _ACEOF 4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4157 $EGREP "free" >/dev/null 2>&1; then 4158 : 4159 else 4160 ac_cv_header_stdc=no 4161 fi 4162 rm -f conftest* 4163 4164 fi 4165 4166 if 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 : 4170 else 4171 cat >conftest.$ac_ext <<_ACEOF 4172 /* confdefs.h. */ 4173 _ACEOF 4174 cat confdefs.h >>conftest.$ac_ext 4175 cat >>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))) 4190 int 4191 main () 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 4201 rm -f conftest$ac_exeext 4202 if { (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 : 4213 else 4214 echo "$as_me: program exited with status $ac_status" >&5 4215 echo "$as_me: failed program was:" >&5 4216 sed 's/^/| /' conftest.$ac_ext >&5 4217 4218 ( exit $ac_status ) 4219 ac_cv_header_stdc=no 4220 fi 4221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4222 fi 4223 fi 4224 fi 4225 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4226 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4227 if test $ac_cv_header_stdc = yes; then 4228 4229 cat >>confdefs.h <<\_ACEOF 4230 #define STDC_HEADERS 1 4231 _ACEOF 4232 4233 fi 4234 4235 4236 # Check whether --enable-tests or --disable-tests was given. 4237 if test "${enable_tests+set}" = set; then 4238 enableval="$enable_tests" 4239 enable_tests=$enableval 4240 else 4241 enable_tests=$USE_MAINTAINER_MODE 4242 fi; 4243 # Check whether --enable-ansi or --disable-ansi was given. 4244 if test "${enable_ansi+set}" = set; then 4245 enableval="$enable_ansi" 4246 enable_ansi=$enableval 4247 else 4248 enable_ansi=no 4249 fi; 4250 # Check whether --enable-verbose-mode or --disable-verbose-mode was given. 4251 if test "${enable_verbose_mode+set}" = set; then 4252 enableval="$enable_verbose_mode" 4253 enable_verbose_mode=$enableval 4254 else 4255 enable_verbose_mode=$USE_MAINTAINER_MODE 4256 fi; 4257 # Check whether --enable-asserts or --disable-asserts was given. 4258 if test "${enable_asserts+set}" = set; then 4259 enableval="$enable_asserts" 4260 enable_asserts=$enableval 4261 else 4262 enable_asserts=$USE_MAINTAINER_MODE 4263 fi; 4264 # Check whether --enable-checks or --disable-checks was given. 4265 if test "${enable_checks+set}" = set; then 4266 enableval="$enable_checks" 4267 enable_checks=$enableval 4268 else 4269 enable_checks=yes 4270 fi; 4271 # Check whether --enable-xml-docs or --disable-xml-docs was given. 4272 if test "${enable_xml_docs+set}" = set; then 4273 enableval="$enable_xml_docs" 4274 enable_xml_docs=$enableval 4275 else 4276 enable_xml_docs=auto 4277 fi; 4278 # Check whether --enable-doxygen-docs or --disable-doxygen-docs was given. 4279 if test "${enable_doxygen_docs+set}" = set; then 4280 enableval="$enable_doxygen_docs" 4281 enable_doxygen_docs=$enableval 4282 else 4283 enable_doxygen_docs=auto 4284 fi; 4285 # Check whether --enable-gcov or --disable-gcov was given. 4286 if test "${enable_gcov+set}" = set; then 4287 enableval="$enable_gcov" 4288 enable_gcov=$enableval 4289 else 4290 enable_gcov=no 4291 fi; 4292 # Check whether --enable-abstract-sockets or --disable-abstract-sockets was given. 4293 if test "${enable_abstract_sockets+set}" = set; then 4294 enableval="$enable_abstract_sockets" 4295 enable_abstract_sockets=$enableval 4296 else 4297 enable_abstract_sockets=auto 4298 fi; 4299 # Check whether --enable-selinux or --disable-selinux was given. 4300 if test "${enable_selinux+set}" = set; then 4301 enableval="$enable_selinux" 4302 enable_selinux=$enableval 4303 else 4304 enable_selinux=auto 4305 fi; 4306 # Check whether --enable-dnotify or --disable-dnotify was given. 4307 if test "${enable_dnotify+set}" = set; then 4308 enableval="$enable_dnotify" 4309 enable_dnotify=$enableval 4310 else 4311 enable_dnotify=auto 4312 fi; 4313 # Check whether --enable-kqueue or --disable-kqueue was given. 4314 if test "${enable_kqueue+set}" = set; then 4315 enableval="$enable_kqueue" 4316 enable_kqueue=$enableval 4317 else 4318 enable_kqueue=auto 4319 fi; 4320 # Check whether --enable-console-owner-file or --disable-console-owner-file was given. 4321 if test "${enable_console_owner_file+set}" = set; then 4322 enableval="$enable_console_owner_file" 4323 enable_console_owner_file=$enableval 4324 else 4325 enable_console_owner_file=auto 4326 fi; 4327 4328 4329 # Check whether --with-xml or --without-xml was given. 4330 if test "${with_xml+set}" = set; then 4331 withval="$with_xml" 4332 4333 fi; 4334 4335 # Check whether --with-init-scripts or --without-init-scripts was given. 4336 if test "${with_init_scripts+set}" = set; then 4337 withval="$with_init_scripts" 4338 4339 fi; 4340 4341 # Check whether --with-session-socket-dir or --without-session-socket-dir was given. 4342 if test "${with_session_socket_dir+set}" = set; then 4343 withval="$with_session_socket_dir" 4344 4345 fi; 4346 4347 # Check whether --with-test-socket-dir or --without-test-socket-dir was given. 4348 if test "${with_test_socket_dir+set}" = set; then 4349 withval="$with_test_socket_dir" 4350 4351 fi; 4352 4353 # Check whether --with-system-pid-file or --without-system-pid-file was given. 4354 if test "${with_system_pid_file+set}" = set; then 4355 withval="$with_system_pid_file" 4356 4357 fi; 4358 4359 # Check whether --with-system-socket or --without-system-socket was given. 4360 if test "${with_system_socket+set}" = set; then 4361 withval="$with_system_socket" 4362 4363 fi; 4364 4365 # Check whether --with-console-auth-dir or --without-console-auth-dir was given. 4366 if test "${with_console_auth_dir+set}" = set; then 4367 withval="$with_console_auth_dir" 4368 4369 fi; 4370 4371 # Check whether --with-console-owner-file or --without-console-owner-file was given. 4372 if test "${with_console_owner_file+set}" = set; then 4373 withval="$with_console_owner_file" 4374 4375 fi; 4376 4377 # Check whether --with-dbus_user or --without-dbus_user was given. 4378 if test "${with_dbus_user+set}" = set; then 4379 withval="$with_dbus_user" 4380 4381 fi; 4382 4383 # Check whether --with-dbus_daemondir or --without-dbus_daemondir was given. 4384 if test "${with_dbus_daemondir+set}" = set; then 4385 withval="$with_dbus_daemondir" 4386 4387 fi; 4388 4389 4390 4391 4392 if test x$enable_tests = xyes; then 4393 DBUS_BUILD_TESTS_TRUE= 4394 DBUS_BUILD_TESTS_FALSE='#' 4395 else 4396 DBUS_BUILD_TESTS_TRUE='#' 4397 DBUS_BUILD_TESTS_FALSE= 4398 fi 4399 4400 if test x$enable_tests = xyes; then 4401 4402 cat >>confdefs.h <<\_ACEOF 4403 #define DBUS_BUILD_TESTS 1 4404 _ACEOF 4405 4406 fi 4407 4408 if test x$enable_verbose_mode = xyes; then 4409 4410 cat >>confdefs.h <<\_ACEOF 4411 #define DBUS_ENABLE_VERBOSE_MODE 1 4412 _ACEOF 4413 4414 fi 4415 4416 if test x$enable_asserts = xno; then 4417 4418 cat >>confdefs.h <<\_ACEOF 4419 #define DBUS_DISABLE_ASSERT 1 4420 _ACEOF 4421 4422 4423 cat >>confdefs.h <<\_ACEOF 4424 #define G_DISABLE_ASSERT 1 4425 _ACEOF 4426 4427 R_DYNAMIC_LDFLAG="" 4428 else 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 4437 cat >>confdefs.h <<\_ACEOF 4438 #define DBUS_BUILT_R_DYNAMIC 1 4439 _ACEOF 4440 4441 R_DYNAMIC_LDFLAG=-export-dynamic 4442 fi 4443 4444 4445 if test x$enable_checks = xno; then 4446 4447 cat >>confdefs.h <<\_ACEOF 4448 #define DBUS_DISABLE_CHECKS 1 4449 _ACEOF 4450 4451 4452 cat >>confdefs.h <<\_ACEOF 4453 #define G_DISABLE_CHECKS 1 4454 _ACEOF 4455 4456 fi 4457 4458 #### gcc warning flags 4459 4460 cc_supports_flag() { 4461 echo "$as_me:$LINENO: checking whether $CC supports \"$@\"" >&5 4462 echo $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 4470 echo "${ECHO_T}yes" >&6;; 4471 *) echo "$as_me:$LINENO: result: no" >&5 4472 echo "${ECHO_T}no" >&6;; 4473 esac 4474 return $rc 4475 } 4476 4477 if 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 4587 echo "$as_me: error: --enable-gcov can only be used with gcc" >&2;} 4588 { (exit 1); exit 1; }; } 4589 fi 4590 fi 4591 4592 # Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris 4593 # 4594 case $target_os in 4595 solaris*) 4596 CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;; 4597 esac 4598 4599 # Check whether --enable-shared or --disable-shared was given. 4600 if 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 4619 else 4620 enable_shared=yes 4621 fi; 4622 4623 # Check whether --enable-static or --disable-static was given. 4624 if 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 4643 else 4644 enable_static=yes 4645 fi; 4646 4647 # Check whether --enable-fast-install or --disable-fast-install was given. 4648 if 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 4667 else 4668 enable_fast_install=yes 4669 fi; 4670 4671 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4672 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4673 if test "${lt_cv_path_SED+set}" = set; then 4674 echo $ECHO_N "(cached) $ECHO_C" >&6 4675 else 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. 4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679 for as_dir in $PATH 4680 do 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 4690 done 4691 IFS=$as_save_IFS 4692 lt_ac_max=0 4693 lt_ac_count=0 4694 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 4695 # along with /bin/sed that truncates output. 4696 for 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 4721 done 4722 4723 fi 4724 4725 SED=$lt_cv_path_SED 4726 4727 echo "$as_me:$LINENO: result: $SED" >&5 4728 echo "${ECHO_T}$SED" >&6 4729 4730 4731 # Check whether --with-gnu-ld or --without-gnu-ld was given. 4732 if test "${with_gnu_ld+set}" = set; then 4733 withval="$with_gnu_ld" 4734 test "$withval" = no || with_gnu_ld=yes 4735 else 4736 with_gnu_ld=no 4737 fi; 4738 ac_prog=ld 4739 if 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 4742 echo $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 4770 elif test "$with_gnu_ld" = yes; then 4771 echo "$as_me:$LINENO: checking for GNU ld" >&5 4772 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4773 else 4774 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4775 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4776 fi 4777 if test "${lt_cv_path_LD+set}" = set; then 4778 echo $ECHO_N "(cached) $ECHO_C" >&6 4779 else 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" 4801 else 4802 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4803 fi 4804 fi 4805 4806 LD="$lt_cv_path_LD" 4807 if test -n "$LD"; then 4808 echo "$as_me:$LINENO: result: $LD" >&5 4809 echo "${ECHO_T}$LD" >&6 4810 else 4811 echo "$as_me:$LINENO: result: no" >&5 4812 echo "${ECHO_T}no" >&6 4813 fi 4814 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4815 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4816 { (exit 1); exit 1; }; } 4817 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4818 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4819 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4820 echo $ECHO_N "(cached) $ECHO_C" >&6 4821 else 4822 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4823 case `$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 ;; 4830 esac 4831 fi 4832 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4833 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4834 with_gnu_ld=$lt_cv_prog_gnu_ld 4835 4836 4837 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4838 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4839 if test "${lt_cv_ld_reload_flag+set}" = set; then 4840 echo $ECHO_N "(cached) $ECHO_C" >&6 4841 else 4842 lt_cv_ld_reload_flag='-r' 4843 fi 4844 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4845 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4846 reload_flag=$lt_cv_ld_reload_flag 4847 case $reload_flag in 4848 "" | " "*) ;; 4849 *) reload_flag=" $reload_flag" ;; 4850 esac 4851 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4852 case $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 ;; 4860 esac 4861 4862 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4863 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4864 if test "${lt_cv_path_NM+set}" = set; then 4865 echo $ECHO_N "(cached) $ECHO_C" >&6 4866 else 4867 if test -n "$NM"; then 4868 # Let the user override the test. 4869 lt_cv_path_NM="$NM" 4870 else 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 4909 fi 4910 fi 4911 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4912 echo "${ECHO_T}$lt_cv_path_NM" >&6 4913 NM="$lt_cv_path_NM" 4914 4915 echo "$as_me:$LINENO: checking whether ln -s works" >&5 4916 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4917 LN_S=$as_ln_s 4918 if test "$LN_S" = "ln -s"; then 4919 echo "$as_me:$LINENO: result: yes" >&5 4920 echo "${ECHO_T}yes" >&6 4921 else 4922 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4923 echo "${ECHO_T}no, using $LN_S" >&6 4924 fi 4925 4926 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4927 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4928 if test "${lt_cv_deplibs_check_method+set}" = set; then 4929 echo $ECHO_N "(cached) $ECHO_C" >&6 4930 else 4931 lt_cv_file_magic_cmd='$MAGIC_CMD' 4932 lt_cv_file_magic_test_file= 4933 lt_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 4945 case $host_os in 4946 aix4* | aix5*) 4947 lt_cv_deplibs_check_method=pass_all 4948 ;; 4949 4950 beos*) 4951 lt_cv_deplibs_check_method=pass_all 4952 ;; 4953 4954 bsdi[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 4960 cygwin*) 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 4966 mingw* | 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 4973 darwin* | rhapsody*) 4974 lt_cv_deplibs_check_method=pass_all 4975 ;; 4976 4977 freebsd* | 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 4993 gnu*) 4994 lt_cv_deplibs_check_method=pass_all 4995 ;; 4996 4997 hpux10.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 5015 interix3*) 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 5020 irix5* | 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. 5031 linux*) 5032 lt_cv_deplibs_check_method=pass_all 5033 ;; 5034 5035 netbsd*) 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 5043 newos6*) 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 5049 nto-qnx*) 5050 lt_cv_deplibs_check_method=unknown 5051 ;; 5052 5053 openbsd*) 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 5061 osf3* | osf4* | osf5*) 5062 lt_cv_deplibs_check_method=pass_all 5063 ;; 5064 5065 solaris*) 5066 lt_cv_deplibs_check_method=pass_all 5067 ;; 5068 5069 sysv4 | 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 5096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5097 lt_cv_deplibs_check_method=pass_all 5098 ;; 5099 esac 5100 5101 fi 5102 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5103 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 5104 file_magic_cmd=$lt_cv_file_magic_cmd 5105 deplibs_check_method=$lt_cv_deplibs_check_method 5106 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5107 5108 5109 5110 5111 # If no C compiler was specified, use CC. 5112 LTCC=${LTCC-"$CC"} 5113 5114 # If no C compiler flags were specified, use CFLAGS. 5115 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5116 5117 # Allow CC to be a program name with arguments. 5118 compiler=$CC 5119 5120 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5121 if test "${enable_libtool_lock+set}" = set; then 5122 enableval="$enable_libtool_lock" 5123 5124 fi; 5125 test "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. 5129 case $host in 5130 ia64-*-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 5186 x86_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 5237 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5238 if test "${lt_cv_cc_needs_belf+set}" = set; then 5239 echo $ECHO_N "(cached) $ECHO_C" >&6 5240 else 5241 ac_ext=c 5242 ac_cpp='$CPP $CPPFLAGS' 5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5246 5247 cat >conftest.$ac_ext <<_ACEOF 5248 /* confdefs.h. */ 5249 _ACEOF 5250 cat confdefs.h >>conftest.$ac_ext 5251 cat >>conftest.$ac_ext <<_ACEOF 5252 /* end confdefs.h. */ 5253 5254 int 5255 main () 5256 { 5257 5258 ; 5259 return 0; 5260 } 5261 _ACEOF 5262 rm -f conftest.$ac_objext conftest$ac_exeext 5263 if { (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 5285 else 5286 echo "$as_me: failed program was:" >&5 5287 sed 's/^/| /' conftest.$ac_ext >&5 5288 5289 lt_cv_cc_needs_belf=no 5290 fi 5291 rm -f conftest.err conftest.$ac_objext \ 5292 conftest$ac_exeext conftest.$ac_ext 5293 ac_ext=c 5294 ac_cpp='$CPP $CPPFLAGS' 5295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5298 5299 fi 5300 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5301 echo "${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 ;; 5307 sparc*-*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 5328 esac 5329 5330 need_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 5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5344 inttypes.h stdint.h unistd.h 5345 do 5346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5347 echo "$as_me:$LINENO: checking for $ac_header" >&5 5348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5349 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5350 echo $ECHO_N "(cached) $ECHO_C" >&6 5351 else 5352 cat >conftest.$ac_ext <<_ACEOF 5353 /* confdefs.h. */ 5354 _ACEOF 5355 cat confdefs.h >>conftest.$ac_ext 5356 cat >>conftest.$ac_ext <<_ACEOF 5357 /* end confdefs.h. */ 5358 $ac_includes_default 5359 5360 #include <$ac_header> 5361 _ACEOF 5362 rm -f conftest.$ac_objext 5363 if { (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" 5385 else 5386 echo "$as_me: failed program was:" >&5 5387 sed 's/^/| /' conftest.$ac_ext >&5 5388 5389 eval "$as_ac_Header=no" 5390 fi 5391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5392 fi 5393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5395 if 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 5400 fi 5401 5402 done 5403 5404 5405 5406 for ac_header in dlfcn.h 5407 do 5408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5409 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5410 echo "$as_me:$LINENO: checking for $ac_header" >&5 5411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5413 echo $ECHO_N "(cached) $ECHO_C" >&6 5414 fi 5415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5417 else 5418 # Is the header compilable? 5419 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5421 cat >conftest.$ac_ext <<_ACEOF 5422 /* confdefs.h. */ 5423 _ACEOF 5424 cat confdefs.h >>conftest.$ac_ext 5425 cat >>conftest.$ac_ext <<_ACEOF 5426 /* end confdefs.h. */ 5427 $ac_includes_default 5428 #include <$ac_header> 5429 _ACEOF 5430 rm -f conftest.$ac_objext 5431 if { (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 5453 else 5454 echo "$as_me: failed program was:" >&5 5455 sed 's/^/| /' conftest.$ac_ext >&5 5456 5457 ac_header_compiler=no 5458 fi 5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5461 echo "${ECHO_T}$ac_header_compiler" >&6 5462 5463 # Is the header present? 5464 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5466 cat >conftest.$ac_ext <<_ACEOF 5467 /* confdefs.h. */ 5468 _ACEOF 5469 cat confdefs.h >>conftest.$ac_ext 5470 cat >>conftest.$ac_ext <<_ACEOF 5471 /* end confdefs.h. */ 5472 #include <$ac_header> 5473 _ACEOF 5474 if { (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 5488 else 5489 ac_cpp_err=yes 5490 fi 5491 if test -z "$ac_cpp_err"; then 5492 ac_header_preproc=yes 5493 else 5494 echo "$as_me: failed program was:" >&5 5495 sed 's/^/| /' conftest.$ac_ext >&5 5496 5497 ac_header_preproc=no 5498 fi 5499 rm -f conftest.err conftest.$ac_ext 5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5501 echo "${ECHO_T}$ac_header_preproc" >&6 5502 5503 # So? What about this header? 5504 case $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 5507 echo "$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 5509 echo "$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 5514 echo "$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 5516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5518 echo "$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 5520 echo "$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 5522 echo "$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 5524 echo "$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 ;; 5534 esac 5535 echo "$as_me:$LINENO: checking for $ac_header" >&5 5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5537 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539 else 5540 eval "$as_ac_Header=\$ac_header_preproc" 5541 fi 5542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5544 5545 fi 5546 if 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 5551 fi 5552 5553 done 5554 5555 5556 5557 if 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 5561 ac_cpp='$CXXCPP $CPPFLAGS' 5562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5565 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5566 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5567 if test -z "$CXXCPP"; then 5568 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5569 echo $ECHO_N "(cached) $ECHO_C" >&6 5570 else 5571 # Double quotes because CXXCPP needs to be expanded 5572 for CXXCPP in "$CXX -E" "/lib/cpp" 5573 do 5574 ac_preproc_ok=false 5575 for ac_cxx_preproc_warn_flag in '' yes 5576 do 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 5586 cat confdefs.h >>conftest.$ac_ext 5587 cat >>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 5596 if { (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 5610 else 5611 ac_cpp_err=yes 5612 fi 5613 if test -z "$ac_cpp_err"; then 5614 : 5615 else 5616 echo "$as_me: failed program was:" >&5 5617 sed 's/^/| /' conftest.$ac_ext >&5 5618 5619 # Broken: fails on valid input. 5620 continue 5621 fi 5622 rm -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 5629 cat confdefs.h >>conftest.$ac_ext 5630 cat >>conftest.$ac_ext <<_ACEOF 5631 /* end confdefs.h. */ 5632 #include <ac_nonexistent.h> 5633 _ACEOF 5634 if { (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 5648 else 5649 ac_cpp_err=yes 5650 fi 5651 if test -z "$ac_cpp_err"; then 5652 # Broken: success on invalid input. 5653 continue 5654 else 5655 echo "$as_me: failed program was:" >&5 5656 sed 's/^/| /' conftest.$ac_ext >&5 5657 5658 # Passes both tests. 5659 ac_preproc_ok=: 5660 break 5661 fi 5662 rm -f conftest.err conftest.$ac_ext 5663 5664 done 5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5666 rm -f conftest.err conftest.$ac_ext 5667 if $ac_preproc_ok; then 5668 break 5669 fi 5670 5671 done 5672 ac_cv_prog_CXXCPP=$CXXCPP 5673 5674 fi 5675 CXXCPP=$ac_cv_prog_CXXCPP 5676 else 5677 ac_cv_prog_CXXCPP=$CXXCPP 5678 fi 5679 echo "$as_me:$LINENO: result: $CXXCPP" >&5 5680 echo "${ECHO_T}$CXXCPP" >&6 5681 ac_preproc_ok=false 5682 for ac_cxx_preproc_warn_flag in '' yes 5683 do 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 5693 cat confdefs.h >>conftest.$ac_ext 5694 cat >>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 5703 if { (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 5717 else 5718 ac_cpp_err=yes 5719 fi 5720 if test -z "$ac_cpp_err"; then 5721 : 5722 else 5723 echo "$as_me: failed program was:" >&5 5724 sed 's/^/| /' conftest.$ac_ext >&5 5725 5726 # Broken: fails on valid input. 5727 continue 5728 fi 5729 rm -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 5736 cat confdefs.h >>conftest.$ac_ext 5737 cat >>conftest.$ac_ext <<_ACEOF 5738 /* end confdefs.h. */ 5739 #include <ac_nonexistent.h> 5740 _ACEOF 5741 if { (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 5755 else 5756 ac_cpp_err=yes 5757 fi 5758 if test -z "$ac_cpp_err"; then 5759 # Broken: success on invalid input. 5760 continue 5761 else 5762 echo "$as_me: failed program was:" >&5 5763 sed 's/^/| /' conftest.$ac_ext >&5 5764 5765 # Passes both tests. 5766 ac_preproc_ok=: 5767 break 5768 fi 5769 rm -f conftest.err conftest.$ac_ext 5770 5771 done 5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5773 rm -f conftest.err conftest.$ac_ext 5774 if $ac_preproc_ok; then 5775 : 5776 else 5777 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5778 See \`config.log' for more details." >&5 5779 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5780 See \`config.log' for more details." >&2;} 5781 { (exit 1); exit 1; }; } 5782 fi 5783 5784 ac_ext=cc 5785 ac_cpp='$CXXCPP $CPPFLAGS' 5786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5789 5790 fi 5791 5792 5793 ac_ext=f 5794 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5795 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5796 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5797 if 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. 5801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5802 echo "$as_me:$LINENO: checking for $ac_word" >&5 5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5804 if test "${ac_cv_prog_F77+set}" = set; then 5805 echo $ECHO_N "(cached) $ECHO_C" >&6 5806 else 5807 if test -n "$F77"; then 5808 ac_cv_prog_F77="$F77" # Let the user override the test. 5809 else 5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811 for as_dir in $PATH 5812 do 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 5821 done 5822 done 5823 5824 fi 5825 fi 5826 F77=$ac_cv_prog_F77 5827 if test -n "$F77"; then 5828 echo "$as_me:$LINENO: result: $F77" >&5 5829 echo "${ECHO_T}$F77" >&6 5830 else 5831 echo "$as_me:$LINENO: result: no" >&5 5832 echo "${ECHO_T}no" >&6 5833 fi 5834 5835 test -n "$F77" && break 5836 done 5837 fi 5838 if 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 5841 do 5842 # Extract the first word of "$ac_prog", so it can be a program name with args. 5843 set dummy $ac_prog; ac_word=$2 5844 echo "$as_me:$LINENO: checking for $ac_word" >&5 5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5846 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5847 echo $ECHO_N "(cached) $ECHO_C" >&6 5848 else 5849 if test -n "$ac_ct_F77"; then 5850 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5851 else 5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853 for as_dir in $PATH 5854 do 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 5863 done 5864 done 5865 5866 fi 5867 fi 5868 ac_ct_F77=$ac_cv_prog_ac_ct_F77 5869 if test -n "$ac_ct_F77"; then 5870 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5871 echo "${ECHO_T}$ac_ct_F77" >&6 5872 else 5873 echo "$as_me:$LINENO: result: no" >&5 5874 echo "${ECHO_T}no" >&6 5875 fi 5876 5877 test -n "$ac_ct_F77" && break 5878 done 5879 5880 F77=$ac_ct_F77 5881 fi 5882 5883 5884 # Provide some information about the compiler. 5885 echo "$as_me:5885:" \ 5886 "checking for Fortran 77 compiler version" >&5 5887 ac_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); } 5903 rm -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.) 5907 ac_save_ext=$ac_ext 5908 ac_ext=F 5909 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5910 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5911 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913 else 5914 cat >conftest.$ac_ext <<_ACEOF 5915 program main 5916 #ifndef __GNUC__ 5917 choke me 5918 #endif 5919 5920 end 5921 _ACEOF 5922 rm -f conftest.$ac_objext 5923 if { (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 5945 else 5946 echo "$as_me: failed program was:" >&5 5947 sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 ac_compiler_gnu=no 5950 fi 5951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5952 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5953 5954 fi 5955 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5956 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5957 ac_ext=$ac_save_ext 5958 ac_test_FFLAGS=${FFLAGS+set} 5959 ac_save_FFLAGS=$FFLAGS 5960 FFLAGS= 5961 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5962 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5963 if test "${ac_cv_prog_f77_g+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965 else 5966 FFLAGS=-g 5967 cat >conftest.$ac_ext <<_ACEOF 5968 program main 5969 5970 end 5971 _ACEOF 5972 rm -f conftest.$ac_objext 5973 if { (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 5995 else 5996 echo "$as_me: failed program was:" >&5 5997 sed 's/^/| /' conftest.$ac_ext >&5 5998 5999 ac_cv_prog_f77_g=no 6000 fi 6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6002 6003 fi 6004 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6005 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6006 if test "$ac_test_FFLAGS" = set; then 6007 FFLAGS=$ac_save_FFLAGS 6008 elif 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 6014 else 6015 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6016 FFLAGS="-O2" 6017 else 6018 FFLAGS= 6019 fi 6020 fi 6021 6022 G77=`test $ac_compiler_gnu = yes && echo yes` 6023 ac_ext=c 6024 ac_cpp='$CPP $CPPFLAGS' 6025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6027 ac_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 6034 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6035 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6036 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6037 echo $ECHO_N "(cached) $ECHO_C" >&6 6038 else 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 6140 fi 6141 6142 if test -n $lt_cv_sys_max_cmd_len ; then 6143 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6145 else 6146 echo "$as_me:$LINENO: result: none" >&5 6147 echo "${ECHO_T}none" >&6 6148 fi 6149 6150 6151 6152 6153 # Check for command to grab the raw symbol name followed by C symbol from nm. 6154 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6155 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6156 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6157 echo $ECHO_N "(cached) $ECHO_C" >&6 6158 else 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. 6164 symcode='[BCDEGRST]' 6165 6166 # Regexp to match symbols that can be accessed directly from C. 6167 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6168 6169 # Transform an extracted symbol line into a proper C declaration 6170 lt_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 6173 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'" 6174 6175 # Define system-specific variables. 6176 case $host_os in 6177 aix*) 6178 symcode='[BCDT]' 6179 ;; 6180 cygwin* | mingw* | pw32*) 6181 symcode='[ABCDGISTW]' 6182 ;; 6183 hpux*) # 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 ;; 6190 linux*) 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 ;; 6197 irix* | nonstopux*) 6198 symcode='[BCDEGRST]' 6199 ;; 6200 osf*) 6201 symcode='[BCDEGQRST]' 6202 ;; 6203 solaris*) 6204 symcode='[BDRT]' 6205 ;; 6206 sco3.2v5*) 6207 symcode='[DT]' 6208 ;; 6209 sysv4.2uw2*) 6210 symcode='[DT]' 6211 ;; 6212 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6213 symcode='[ABDT]' 6214 ;; 6215 sysv4) 6216 symcode='[DFNSTU]' 6217 ;; 6218 esac 6219 6220 # Handle CRLF in mingw tool chain 6221 opt_cr= 6222 case $build_os in 6223 mingw*) 6224 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6225 ;; 6226 esac 6227 6228 # If we're using GNU nm, then use its standard symbol codes. 6229 case `$NM -V 2>&1` in 6230 *GNU* | *'with BFD'*) 6231 symcode='[ABCDGIRSTW]' ;; 6232 esac 6233 6234 # Try without a prefix undercore, then with it. 6235 for 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 6249 extern "C" { 6250 #endif 6251 char nm_test_var; 6252 void nm_test_func(){} 6253 #ifdef __cplusplus 6254 } 6255 #endif 6256 int main(){nm_test_var='a';nm_test_func();return(0);} 6257 EOF 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 6283 extern "C" { 6284 #endif 6285 6286 EOF 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. */ 6299 const struct { 6300 const char *name; 6301 lt_ptr_t address; 6302 } 6303 lt_preloaded_symbols[] = 6304 { 6305 EOF 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 6314 EOF 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 6351 done 6352 6353 fi 6354 6355 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6356 lt_cv_sys_global_symbol_to_cdecl= 6357 fi 6358 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6359 echo "$as_me:$LINENO: result: failed" >&5 6360 echo "${ECHO_T}failed" >&6 6361 else 6362 echo "$as_me:$LINENO: result: ok" >&5 6363 echo "${ECHO_T}ok" >&6 6364 fi 6365 6366 echo "$as_me:$LINENO: checking for objdir" >&5 6367 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6368 if test "${lt_cv_objdir+set}" = set; then 6369 echo $ECHO_N "(cached) $ECHO_C" >&6 6370 else 6371 rm -f .libs 2>/dev/null 6372 mkdir .libs 2>/dev/null 6373 if test -d .libs; then 6374 lt_cv_objdir=.libs 6375 else 6376 # MS-DOS does not allow filenames that begin with a dot. 6377 lt_cv_objdir=_libs 6378 fi 6379 rmdir .libs 2>/dev/null 6380 fi 6381 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6382 echo "${ECHO_T}$lt_cv_objdir" >&6 6383 objdir=$lt_cv_objdir 6384 6385 6386 6387 6388 6389 case $host_os in 6390 aix3*) 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 ;; 6399 esac 6400 6401 # Sed substitution that helps us do robust quoting. It backslashifies 6402 # metacharacters that are still active within double-quoted strings. 6403 Xsed='sed -e 1s/^X//' 6404 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6405 6406 # Same as above, but do not quote variable references. 6407 double_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. 6411 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6412 6413 # Sed substitution to avoid accidental globbing in evaled expressions 6414 no_glob_subst='s/\*/\\\*/g' 6415 6416 # Constants: 6417 rm="rm -f" 6418 6419 # Global variables: 6420 default_ofile=libtool 6421 can_build_shared=yes 6422 6423 # All known linkers require a `.a' archive for static linking (except MSVC, 6424 # which needs '.lib'). 6425 libext=a 6426 ltmain="$ac_aux_dir/ltmain.sh" 6427 ofile="$default_ofile" 6428 with_gnu_ld="$lt_cv_prog_gnu_ld" 6429 6430 if 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. 6432 set dummy ${ac_tool_prefix}ar; ac_word=$2 6433 echo "$as_me:$LINENO: checking for $ac_word" >&5 6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6435 if test "${ac_cv_prog_AR+set}" = set; then 6436 echo $ECHO_N "(cached) $ECHO_C" >&6 6437 else 6438 if test -n "$AR"; then 6439 ac_cv_prog_AR="$AR" # Let the user override the test. 6440 else 6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442 for as_dir in $PATH 6443 do 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 6452 done 6453 done 6454 6455 fi 6456 fi 6457 AR=$ac_cv_prog_AR 6458 if test -n "$AR"; then 6459 echo "$as_me:$LINENO: result: $AR" >&5 6460 echo "${ECHO_T}$AR" >&6 6461 else 6462 echo "$as_me:$LINENO: result: no" >&5 6463 echo "${ECHO_T}no" >&6 6464 fi 6465 6466 fi 6467 if 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. 6470 set dummy ar; ac_word=$2 6471 echo "$as_me:$LINENO: checking for $ac_word" >&5 6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6473 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6474 echo $ECHO_N "(cached) $ECHO_C" >&6 6475 else 6476 if test -n "$ac_ct_AR"; then 6477 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6478 else 6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480 for as_dir in $PATH 6481 do 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 6490 done 6491 done 6492 6493 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6494 fi 6495 fi 6496 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6497 if test -n "$ac_ct_AR"; then 6498 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6499 echo "${ECHO_T}$ac_ct_AR" >&6 6500 else 6501 echo "$as_me:$LINENO: result: no" >&5 6502 echo "${ECHO_T}no" >&6 6503 fi 6504 6505 AR=$ac_ct_AR 6506 else 6507 AR="$ac_cv_prog_AR" 6508 fi 6509 6510 if 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. 6512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6513 echo "$as_me:$LINENO: checking for $ac_word" >&5 6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6515 if test "${ac_cv_prog_RANLIB+set}" = set; then 6516 echo $ECHO_N "(cached) $ECHO_C" >&6 6517 else 6518 if test -n "$RANLIB"; then 6519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6520 else 6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522 for as_dir in $PATH 6523 do 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 6532 done 6533 done 6534 6535 fi 6536 fi 6537 RANLIB=$ac_cv_prog_RANLIB 6538 if test -n "$RANLIB"; then 6539 echo "$as_me:$LINENO: result: $RANLIB" >&5 6540 echo "${ECHO_T}$RANLIB" >&6 6541 else 6542 echo "$as_me:$LINENO: result: no" >&5 6543 echo "${ECHO_T}no" >&6 6544 fi 6545 6546 fi 6547 if 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. 6550 set dummy ranlib; ac_word=$2 6551 echo "$as_me:$LINENO: checking for $ac_word" >&5 6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6554 echo $ECHO_N "(cached) $ECHO_C" >&6 6555 else 6556 if test -n "$ac_ct_RANLIB"; then 6557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6558 else 6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560 for as_dir in $PATH 6561 do 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 6570 done 6571 done 6572 6573 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6574 fi 6575 fi 6576 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6577 if test -n "$ac_ct_RANLIB"; then 6578 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6579 echo "${ECHO_T}$ac_ct_RANLIB" >&6 6580 else 6581 echo "$as_me:$LINENO: result: no" >&5 6582 echo "${ECHO_T}no" >&6 6583 fi 6584 6585 RANLIB=$ac_ct_RANLIB 6586 else 6587 RANLIB="$ac_cv_prog_RANLIB" 6588 fi 6589 6590 if 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. 6592 set dummy ${ac_tool_prefix}strip; ac_word=$2 6593 echo "$as_me:$LINENO: checking for $ac_word" >&5 6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6595 if test "${ac_cv_prog_STRIP+set}" = set; then 6596 echo $ECHO_N "(cached) $ECHO_C" >&6 6597 else 6598 if test -n "$STRIP"; then 6599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6600 else 6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602 for as_dir in $PATH 6603 do 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 6612 done 6613 done 6614 6615 fi 6616 fi 6617 STRIP=$ac_cv_prog_STRIP 6618 if test -n "$STRIP"; then 6619 echo "$as_me:$LINENO: result: $STRIP" >&5 6620 echo "${ECHO_T}$STRIP" >&6 6621 else 6622 echo "$as_me:$LINENO: result: no" >&5 6623 echo "${ECHO_T}no" >&6 6624 fi 6625 6626 fi 6627 if 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. 6630 set dummy strip; ac_word=$2 6631 echo "$as_me:$LINENO: checking for $ac_word" >&5 6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6633 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6634 echo $ECHO_N "(cached) $ECHO_C" >&6 6635 else 6636 if test -n "$ac_ct_STRIP"; then 6637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6638 else 6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640 for as_dir in $PATH 6641 do 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 6650 done 6651 done 6652 6653 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6654 fi 6655 fi 6656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6657 if test -n "$ac_ct_STRIP"; then 6658 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6659 echo "${ECHO_T}$ac_ct_STRIP" >&6 6660 else 6661 echo "$as_me:$LINENO: result: no" >&5 6662 echo "${ECHO_T}no" >&6 6663 fi 6664 6665 STRIP=$ac_ct_STRIP 6666 else 6667 STRIP="$ac_cv_prog_STRIP" 6668 fi 6669 6670 6671 old_CC="$CC" 6672 old_CFLAGS="$CFLAGS" 6673 6674 # Set sane defaults for various variables 6675 test -z "$AR" && AR=ar 6676 test -z "$AR_FLAGS" && AR_FLAGS=cru 6677 test -z "$AS" && AS=as 6678 test -z "$CC" && CC=cc 6679 test -z "$LTCC" && LTCC=$CC 6680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6681 test -z "$DLLTOOL" && DLLTOOL=dlltool 6682 test -z "$LD" && LD=ld 6683 test -z "$LN_S" && LN_S="ln -s" 6684 test -z "$MAGIC_CMD" && MAGIC_CMD=file 6685 test -z "$NM" && NM=nm 6686 test -z "$SED" && SED=sed 6687 test -z "$OBJDUMP" && OBJDUMP=objdump 6688 test -z "$RANLIB" && RANLIB=: 6689 test -z "$STRIP" && STRIP=: 6690 test -z "$ac_objext" && ac_objext=o 6691 6692 # Determine commands to create old-style static archives. 6693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6694 old_postinstall_cmds='chmod 644 $oldlib' 6695 old_postuninstall_cmds= 6696 6697 if 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" 6707 fi 6708 6709 for 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 6716 done 6717 cc_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 6721 case $deplibs_check_method in 6722 file_magic*) 6723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6724 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6725 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6726 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6727 echo $ECHO_N "(cached) $ECHO_C" >&6 6728 else 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 6762 EOF 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 ;; 6772 esac 6773 fi 6774 6775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6776 if test -n "$MAGIC_CMD"; then 6777 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6778 echo "${ECHO_T}$MAGIC_CMD" >&6 6779 else 6780 echo "$as_me:$LINENO: result: no" >&5 6781 echo "${ECHO_T}no" >&6 6782 fi 6783 6784 if 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 6787 echo $ECHO_N "checking for file... $ECHO_C" >&6 6788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6789 echo $ECHO_N "(cached) $ECHO_C" >&6 6790 else 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 6824 EOF 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 ;; 6834 esac 6835 fi 6836 6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6838 if test -n "$MAGIC_CMD"; then 6839 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6840 echo "${ECHO_T}$MAGIC_CMD" >&6 6841 else 6842 echo "$as_me:$LINENO: result: no" >&5 6843 echo "${ECHO_T}no" >&6 6844 fi 6845 6846 else 6847 MAGIC_CMD=: 6848 fi 6849 fi 6850 6851 fi 6852 ;; 6853 esac 6854 6855 enable_dlopen=no 6856 enable_win32_dll=no 6857 6858 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6859 if test "${enable_libtool_lock+set}" = set; then 6860 enableval="$enable_libtool_lock" 6861 6862 fi; 6863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6864 6865 6866 # Check whether --with-pic or --without-pic was given. 6867 if test "${with_pic+set}" = set; then 6868 withval="$with_pic" 6869 pic_mode="$withval" 6870 else 6871 pic_mode=default 6872 fi; 6873 test -z "$pic_mode" && pic_mode=default 6874 6875 # Use C for the default configuration in the libtool script 6876 tagname= 6877 lt_save_CC="$CC" 6878 ac_ext=c 6879 ac_cpp='$CPP $CPPFLAGS' 6880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6882 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6883 6884 6885 # Source file extension for C test sources. 6886 ac_ext=c 6887 6888 # Object file extension for compiled C test sources. 6889 objext=o 6890 objext=$objext 6891 6892 # Code to be used in simple compile tests 6893 lt_simple_compile_test_code="int some_variable = 0;\n" 6894 6895 # Code to be used in simple link tests 6896 lt_simple_link_test_code='int main(){return(0);}\n' 6897 6898 6899 # If no C compiler was specified, use CC. 6900 LTCC=${LTCC-"$CC"} 6901 6902 # If no C compiler flags were specified, use CFLAGS. 6903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6904 6905 # Allow CC to be a program name with arguments. 6906 compiler=$CC 6907 6908 6909 # save warnings/boilerplate of simple test code 6910 ac_outfile=conftest.$ac_objext 6911 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6913 _lt_compiler_boilerplate=`cat conftest.err` 6914 $rm conftest* 6915 6916 ac_outfile=conftest.$ac_objext 6917 printf "$lt_simple_link_test_code" >conftest.$ac_ext 6918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6919 _lt_linker_boilerplate=`cat conftest.err` 6920 $rm conftest* 6921 6922 6923 6924 lt_prog_compiler_no_builtin_flag= 6925 6926 if test "$GCC" = yes; then 6927 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6928 6929 6930 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6931 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6932 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6933 echo $ECHO_N "(cached) $ECHO_C" >&6 6934 else 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 6964 fi 6965 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6966 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6967 6968 if 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" 6970 else 6971 : 6972 fi 6973 6974 fi 6975 6976 lt_prog_compiler_wl= 6977 lt_prog_compiler_pic= 6978 lt_prog_compiler_static= 6979 6980 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6981 echo $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 7190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7191 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7192 7193 # 7194 # Check to make sure the PIC flag actually works. 7195 # 7196 if test -n "$lt_prog_compiler_pic"; then 7197 7198 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7200 if test "${lt_prog_compiler_pic_works+set}" = set; then 7201 echo $ECHO_N "(cached) $ECHO_C" >&6 7202 else 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 7232 fi 7233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7234 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7235 7236 if 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 7241 else 7242 lt_prog_compiler_pic= 7243 lt_prog_compiler_can_build_shared=no 7244 fi 7245 7246 fi 7247 case $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 ;; 7255 esac 7256 7257 # 7258 # Check to make sure the static flag actually works. 7259 # 7260 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7261 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 7263 if test "${lt_prog_compiler_static_works+set}" = set; then 7264 echo $ECHO_N "(cached) $ECHO_C" >&6 7265 else 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 7288 fi 7289 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7290 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7291 7292 if test x"$lt_prog_compiler_static_works" = xyes; then 7293 : 7294 else 7295 lt_prog_compiler_static= 7296 fi 7297 7298 7299 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7301 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7302 echo $ECHO_N "(cached) $ECHO_C" >&6 7303 else 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 7345 fi 7346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7348 7349 7350 hard_links="nottested" 7351 if 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 7354 echo $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 7362 echo "${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 7365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7366 need_locks=warn 7367 fi 7368 else 7369 need_locks=no 7370 fi 7371 7372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7373 echo $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 7419 done 7420 cc_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 7480 EOF 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 (at] 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 (at] 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 7602 EOF 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 7775 cat confdefs.h >>conftest.$ac_ext 7776 cat >>conftest.$ac_ext <<_ACEOF 7777 /* end confdefs.h. */ 7778 7779 int 7780 main () 7781 { 7782 7783 ; 7784 return 0; 7785 } 7786 _ACEOF 7787 rm -f conftest.$ac_objext conftest$ac_exeext 7788 if { (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 7810 aix_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. 7813 if 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 7815 else 7816 echo "$as_me: failed program was:" >&5 7817 sed 's/^/| /' conftest.$ac_ext >&5 7818 7819 fi 7820 rm -f conftest.err conftest.$ac_objext \ 7821 conftest$ac_exeext conftest.$ac_ext 7822 if 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 7836 cat confdefs.h >>conftest.$ac_ext 7837 cat >>conftest.$ac_ext <<_ACEOF 7838 /* end confdefs.h. */ 7839 7840 int 7841 main () 7842 { 7843 7844 ; 7845 return 0; 7846 } 7847 _ACEOF 7848 rm -f conftest.$ac_objext conftest$ac_exeext 7849 if { (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 7871 aix_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. 7874 if 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 7876 else 7877 echo "$as_me: failed program was:" >&5 7878 sed 's/^/| /' conftest.$ac_ext >&5 7879 7880 fi 7881 rm -f conftest.err conftest.$ac_objext \ 7882 conftest$ac_exeext conftest.$ac_ext 7883 if 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 8330 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8331 echo "${ECHO_T}$ld_shlibs" >&6 8332 test "$ld_shlibs" = no && can_build_shared=no 8333 8334 # 8335 # Do we need to explicitly link libc? 8336 # 8337 case "x$archive_cmds_need_lc" in 8338 x|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 8352 echo $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 8390 echo "${ECHO_T}$archive_cmds_need_lc" >&6 8391 ;; 8392 esac 8393 fi 8394 ;; 8395 esac 8396 8397 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8399 library_names_spec= 8400 libname_spec='lib$name' 8401 soname_spec= 8402 shrext_cmds=".so" 8403 postinstall_cmds= 8404 postuninstall_cmds= 8405 finish_cmds= 8406 finish_eval= 8407 shlibpath_var= 8408 shlibpath_overrides_runpath=unknown 8409 version_type=none 8410 dynamic_linker="$host_os ld.so" 8411 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8412 if 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 8423 else 8424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8425 fi 8426 need_lib_prefix=unknown 8427 hardcode_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 8431 need_version=unknown 8432 8433 case $host_os in 8434 aix3*) 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 8443 aix4* | 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 8487 amigaos*) 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 8493 beos*) 8494 library_names_spec='${libname}${shared_ext}' 8495 dynamic_linker="$host_os ld.so" 8496 shlibpath_var=LIBRARY_PATH 8497 ;; 8498 8499 bsdi[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 8513 cygwin* | 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 8572 darwin* | 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 8591 dgux*) 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 8600 freebsd1*) 8601 dynamic_linker=no 8602 ;; 8603 8604 kfreebsd*-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 8616 freebsd* | 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 8660 gnu*) 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 8670 hpux9* | 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 8716 interix3*) 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 8728 irix5* | 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. 8766 linux*oldld* | linux*aout* | linux*coff*) 8767 dynamic_linker=no 8768 ;; 8769 8770 # This must be Linux ELF. 8771 linux*) 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 8821 knetbsd*-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 8833 netbsd*) 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 8851 newsos6) 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 8858 nto-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 8868 openbsd*) 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 8894 os2*) 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 8903 osf3* | 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 8914 solaris*) 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 8927 sunos4*) 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 8939 sysv4 | 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 8963 sysv4*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 8972 sysv5* | 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 8995 uts4*) 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 ;; 9005 esac 9006 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9007 echo "${ECHO_T}$dynamic_linker" >&6 9008 test "$dynamic_linker" = no && can_build_shared=no 9009 9010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9011 if test "$GCC" = yes; then 9012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9013 fi 9014 9015 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9016 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9017 hardcode_action= 9018 if 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 9035 else 9036 # We cannot hardcode anything, or else we can only hardcode existing 9037 # directories. 9038 hardcode_action=unsupported 9039 fi 9040 echo "$as_me:$LINENO: result: $hardcode_action" >&5 9041 echo "${ECHO_T}$hardcode_action" >&6 9042 9043 if test "$hardcode_action" = relink; then 9044 # Fast installation is not supported 9045 enable_fast_install=no 9046 elif test "$shlibpath_overrides_runpath" = yes || 9047 test "$enable_shared" = no; then 9048 # Fast installation is not necessary 9049 enable_fast_install=needless 9050 fi 9051 9052 striplib= 9053 old_striplib= 9054 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9055 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9056 if 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 9060 echo "${ECHO_T}yes" >&6 9061 else 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 9068 echo "${ECHO_T}yes" >&6 9069 else 9070 echo "$as_me:$LINENO: result: no" >&5 9071 echo "${ECHO_T}no" >&6 9072 fi 9073 ;; 9074 *) 9075 echo "$as_me:$LINENO: result: no" >&5 9076 echo "${ECHO_T}no" >&6 9077 ;; 9078 esac 9079 fi 9080 9081 if test "x$enable_dlopen" != xyes; then 9082 enable_dlopen=unknown 9083 enable_dlopen_self=unknown 9084 enable_dlopen_self_static=unknown 9085 else 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 9109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9111 echo $ECHO_N "(cached) $ECHO_C" >&6 9112 else 9113 ac_check_lib_save_LIBS=$LIBS 9114 LIBS="-ldl $LIBS" 9115 cat >conftest.$ac_ext <<_ACEOF 9116 /* confdefs.h. */ 9117 _ACEOF 9118 cat confdefs.h >>conftest.$ac_ext 9119 cat >>conftest.$ac_ext <<_ACEOF 9120 /* end confdefs.h. */ 9121 9122 /* Override any gcc2 internal prototype to avoid an error. */ 9123 #ifdef __cplusplus 9124 extern "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. */ 9128 char dlopen (); 9129 int 9130 main () 9131 { 9132 dlopen (); 9133 ; 9134 return 0; 9135 } 9136 _ACEOF 9137 rm -f conftest.$ac_objext conftest$ac_exeext 9138 if { (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 9160 else 9161 echo "$as_me: failed program was:" >&5 9162 sed 's/^/| /' conftest.$ac_ext >&5 9163 9164 ac_cv_lib_dl_dlopen=no 9165 fi 9166 rm -f conftest.err conftest.$ac_objext \ 9167 conftest$ac_exeext conftest.$ac_ext 9168 LIBS=$ac_check_lib_save_LIBS 9169 fi 9170 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9172 if test $ac_cv_lib_dl_dlopen = yes; then 9173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9174 else 9175 9176 lt_cv_dlopen="dyld" 9177 lt_cv_dlopen_libs= 9178 lt_cv_dlopen_self=yes 9179 9180 fi 9181 9182 ;; 9183 9184 *) 9185 echo "$as_me:$LINENO: checking for shl_load" >&5 9186 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9187 if test "${ac_cv_func_shl_load+set}" = set; then 9188 echo $ECHO_N "(cached) $ECHO_C" >&6 9189 else 9190 cat >conftest.$ac_ext <<_ACEOF 9191 /* confdefs.h. */ 9192 _ACEOF 9193 cat confdefs.h >>conftest.$ac_ext 9194 cat >>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 9215 extern "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. */ 9220 char 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) 9225 choke me 9226 #else 9227 char (*f) () = shl_load; 9228 #endif 9229 #ifdef __cplusplus 9230 } 9231 #endif 9232 9233 int 9234 main () 9235 { 9236 return f != shl_load; 9237 ; 9238 return 0; 9239 } 9240 _ACEOF 9241 rm -f conftest.$ac_objext conftest$ac_exeext 9242 if { (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 9264 else 9265 echo "$as_me: failed program was:" >&5 9266 sed 's/^/| /' conftest.$ac_ext >&5 9267 9268 ac_cv_func_shl_load=no 9269 fi 9270 rm -f conftest.err conftest.$ac_objext \ 9271 conftest$ac_exeext conftest.$ac_ext 9272 fi 9273 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9275 if test $ac_cv_func_shl_load = yes; then 9276 lt_cv_dlopen="shl_load" 9277 else 9278 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9279 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9280 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9281 echo $ECHO_N "(cached) $ECHO_C" >&6 9282 else 9283 ac_check_lib_save_LIBS=$LIBS 9284 LIBS="-ldld $LIBS" 9285 cat >conftest.$ac_ext <<_ACEOF 9286 /* confdefs.h. */ 9287 _ACEOF 9288 cat confdefs.h >>conftest.$ac_ext 9289 cat >>conftest.$ac_ext <<_ACEOF 9290 /* end confdefs.h. */ 9291 9292 /* Override any gcc2 internal prototype to avoid an error. */ 9293 #ifdef __cplusplus 9294 extern "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. */ 9298 char shl_load (); 9299 int 9300 main () 9301 { 9302 shl_load (); 9303 ; 9304 return 0; 9305 } 9306 _ACEOF 9307 rm -f conftest.$ac_objext conftest$ac_exeext 9308 if { (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 9330 else 9331 echo "$as_me: failed program was:" >&5 9332 sed 's/^/| /' conftest.$ac_ext >&5 9333 9334 ac_cv_lib_dld_shl_load=no 9335 fi 9336 rm -f conftest.err conftest.$ac_objext \ 9337 conftest$ac_exeext conftest.$ac_ext 9338 LIBS=$ac_check_lib_save_LIBS 9339 fi 9340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9341 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9342 if test $ac_cv_lib_dld_shl_load = yes; then 9343 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9344 else 9345 echo "$as_me:$LINENO: checking for dlopen" >&5 9346 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9347 if test "${ac_cv_func_dlopen+set}" = set; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349 else 9350 cat >conftest.$ac_ext <<_ACEOF 9351 /* confdefs.h. */ 9352 _ACEOF 9353 cat confdefs.h >>conftest.$ac_ext 9354 cat >>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 9375 extern "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. */ 9380 char 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) 9385 choke me 9386 #else 9387 char (*f) () = dlopen; 9388 #endif 9389 #ifdef __cplusplus 9390 } 9391 #endif 9392 9393 int 9394 main () 9395 { 9396 return f != dlopen; 9397 ; 9398 return 0; 9399 } 9400 _ACEOF 9401 rm -f conftest.$ac_objext conftest$ac_exeext 9402 if { (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 9424 else 9425 echo "$as_me: failed program was:" >&5 9426 sed 's/^/| /' conftest.$ac_ext >&5 9427 9428 ac_cv_func_dlopen=no 9429 fi 9430 rm -f conftest.err conftest.$ac_objext \ 9431 conftest$ac_exeext conftest.$ac_ext 9432 fi 9433 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9434 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9435 if test $ac_cv_func_dlopen = yes; then 9436 lt_cv_dlopen="dlopen" 9437 else 9438 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9441 echo $ECHO_N "(cached) $ECHO_C" >&6 9442 else 9443 ac_check_lib_save_LIBS=$LIBS 9444 LIBS="-ldl $LIBS" 9445 cat >conftest.$ac_ext <<_ACEOF 9446 /* confdefs.h. */ 9447 _ACEOF 9448 cat confdefs.h >>conftest.$ac_ext 9449 cat >>conftest.$ac_ext <<_ACEOF 9450 /* end confdefs.h. */ 9451 9452 /* Override any gcc2 internal prototype to avoid an error. */ 9453 #ifdef __cplusplus 9454 extern "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. */ 9458 char dlopen (); 9459 int 9460 main () 9461 { 9462 dlopen (); 9463 ; 9464 return 0; 9465 } 9466 _ACEOF 9467 rm -f conftest.$ac_objext conftest$ac_exeext 9468 if { (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 9490 else 9491 echo "$as_me: failed program was:" >&5 9492 sed 's/^/| /' conftest.$ac_ext >&5 9493 9494 ac_cv_lib_dl_dlopen=no 9495 fi 9496 rm -f conftest.err conftest.$ac_objext \ 9497 conftest$ac_exeext conftest.$ac_ext 9498 LIBS=$ac_check_lib_save_LIBS 9499 fi 9500 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9502 if test $ac_cv_lib_dl_dlopen = yes; then 9503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9504 else 9505 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9506 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9507 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9508 echo $ECHO_N "(cached) $ECHO_C" >&6 9509 else 9510 ac_check_lib_save_LIBS=$LIBS 9511 LIBS="-lsvld $LIBS" 9512 cat >conftest.$ac_ext <<_ACEOF 9513 /* confdefs.h. */ 9514 _ACEOF 9515 cat confdefs.h >>conftest.$ac_ext 9516 cat >>conftest.$ac_ext <<_ACEOF 9517 /* end confdefs.h. */ 9518 9519 /* Override any gcc2 internal prototype to avoid an error. */ 9520 #ifdef __cplusplus 9521 extern "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. */ 9525 char dlopen (); 9526 int 9527 main () 9528 { 9529 dlopen (); 9530 ; 9531 return 0; 9532 } 9533 _ACEOF 9534 rm -f conftest.$ac_objext conftest$ac_exeext 9535 if { (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 9557 else 9558 echo "$as_me: failed program was:" >&5 9559 sed 's/^/| /' conftest.$ac_ext >&5 9560 9561 ac_cv_lib_svld_dlopen=no 9562 fi 9563 rm -f conftest.err conftest.$ac_objext \ 9564 conftest$ac_exeext conftest.$ac_ext 9565 LIBS=$ac_check_lib_save_LIBS 9566 fi 9567 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9569 if test $ac_cv_lib_svld_dlopen = yes; then 9570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9571 else 9572 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9575 echo $ECHO_N "(cached) $ECHO_C" >&6 9576 else 9577 ac_check_lib_save_LIBS=$LIBS 9578 LIBS="-ldld $LIBS" 9579 cat >conftest.$ac_ext <<_ACEOF 9580 /* confdefs.h. */ 9581 _ACEOF 9582 cat confdefs.h >>conftest.$ac_ext 9583 cat >>conftest.$ac_ext <<_ACEOF 9584 /* end confdefs.h. */ 9585 9586 /* Override any gcc2 internal prototype to avoid an error. */ 9587 #ifdef __cplusplus 9588 extern "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. */ 9592 char dld_link (); 9593 int 9594 main () 9595 { 9596 dld_link (); 9597 ; 9598 return 0; 9599 } 9600 _ACEOF 9601 rm -f conftest.$ac_objext conftest$ac_exeext 9602 if { (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 9624 else 9625 echo "$as_me: failed program was:" >&5 9626 sed 's/^/| /' conftest.$ac_ext >&5 9627 9628 ac_cv_lib_dld_dld_link=no 9629 fi 9630 rm -f conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext conftest.$ac_ext 9632 LIBS=$ac_check_lib_save_LIBS 9633 fi 9634 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9636 if test $ac_cv_lib_dld_dld_link = yes; then 9637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9638 fi 9639 9640 9641 fi 9642 9643 9644 fi 9645 9646 9647 fi 9648 9649 9650 fi 9651 9652 9653 fi 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 9676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9677 if test "${lt_cv_dlopen_self+set}" = set; then 9678 echo $ECHO_N "(cached) $ECHO_C" >&6 9679 else 9680 if test "$cross_compiling" = yes; then : 9681 lt_cv_dlopen_self=cross 9682 else 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 9728 extern "C" void exit (int); 9729 #endif 9730 9731 void fnord() { int i=42;} 9732 int 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 } 9748 EOF 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 9765 fi 9766 rm -fr conftest* 9767 9768 9769 fi 9770 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9771 echo "${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 9776 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9777 if test "${lt_cv_dlopen_self_static+set}" = set; then 9778 echo $ECHO_N "(cached) $ECHO_C" >&6 9779 else 9780 if test "$cross_compiling" = yes; then : 9781 lt_cv_dlopen_self_static=cross 9782 else 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 9828 extern "C" void exit (int); 9829 #endif 9830 9831 void fnord() { int i=42;} 9832 int 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 } 9848 EOF 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 9865 fi 9866 rm -fr conftest* 9867 9868 9869 fi 9870 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9871 echo "${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 9889 fi 9890 9891 9892 # Report which library types will actually be built 9893 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9895 echo "$as_me:$LINENO: result: $can_build_shared" >&5 9896 echo "${ECHO_T}$can_build_shared" >&6 9897 9898 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9900 test "$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. 9904 case $host_os in 9905 aix3*) 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 9913 aix4* | aix5*) 9914 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9915 test "$enable_shared" = yes && enable_static=no 9916 fi 9917 ;; 9918 esac 9919 echo "$as_me:$LINENO: result: $enable_shared" >&5 9920 echo "${ECHO_T}$enable_shared" >&6 9921 9922 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9923 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9924 # Make sure either enable_shared or enable_static is yes. 9925 test "$enable_shared" = yes || enable_static=yes 9926 echo "$as_me:$LINENO: result: $enable_static" >&5 9927 echo "${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. 9933 if 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 10015 cfgfile="${ofile}T" 10016 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10017 $rm -f "$cfgfile" 10018 { echo "$as_me:$LINENO: creating $ofile" >&5 10019 echo "$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 (at] 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. 10054 SED=$lt_SED 10055 10056 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 10057 Xsed="$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. 10064 available_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. 10071 SHELL=$lt_SHELL 10072 10073 # Whether or not to build shared libraries. 10074 build_libtool_libs=$enable_shared 10075 10076 # Whether or not to build static libraries. 10077 build_old_libs=$enable_static 10078 10079 # Whether or not to add -lc for building shared libraries. 10080 build_libtool_need_lc=$archive_cmds_need_lc 10081 10082 # Whether or not to disallow shared libs when runtime libs are static 10083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10084 10085 # Whether or not to optimize for fast installation. 10086 fast_install=$enable_fast_install 10087 10088 # The host system. 10089 host_alias=$host_alias 10090 host=$host 10091 host_os=$host_os 10092 10093 # The build system. 10094 build_alias=$build_alias 10095 build=$build 10096 build_os=$build_os 10097 10098 # An echo program that does not interpret backslashes. 10099 echo=$lt_echo 10100 10101 # The archiver. 10102 AR=$lt_AR 10103 AR_FLAGS=$lt_AR_FLAGS 10104 10105 # A C compiler. 10106 LTCC=$lt_LTCC 10107 10108 # LTCC compiler flags. 10109 LTCFLAGS=$lt_LTCFLAGS 10110 10111 # A language-specific compiler. 10112 CC=$lt_compiler 10113 10114 # Is the compiler the GNU C compiler? 10115 with_gcc=$GCC 10116 10117 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 10118 gcc_ver=\`gcc -dumpversion\` 10119 10120 # An ERE matcher. 10121 EGREP=$lt_EGREP 10122 10123 # The linker used to build libraries. 10124 LD=$lt_LD 10125 10126 # Whether we need hard or soft links. 10127 LN_S=$lt_LN_S 10128 10129 # A BSD-compatible nm program. 10130 NM=$lt_NM 10131 10132 # A symbol stripping program 10133 STRIP=$lt_STRIP 10134 10135 # Used to examine libraries when file_magic_cmd begins "file" 10136 MAGIC_CMD=$MAGIC_CMD 10137 10138 # Used on cygwin: DLL creation program. 10139 DLLTOOL="$DLLTOOL" 10140 10141 # Used on cygwin: object dumper. 10142 OBJDUMP="$OBJDUMP" 10143 10144 # Used on cygwin: assembler. 10145 AS="$AS" 10146 10147 # The name of the directory that contains temporary libtool files. 10148 objdir=$objdir 10149 10150 # How to create reloadable object files. 10151 reload_flag=$lt_reload_flag 10152 reload_cmds=$lt_reload_cmds 10153 10154 # How to pass a linker flag through the compiler. 10155 wl=$lt_lt_prog_compiler_wl 10156 10157 # Object file suffix (normally "o"). 10158 objext="$ac_objext" 10159 10160 # Old archive suffix (normally "a"). 10161 libext="$libext" 10162 10163 # Shared library suffix (normally ".so"). 10164 shrext_cmds='$shrext_cmds' 10165 10166 # Executable file suffix (normally ""). 10167 exeext="$exeext" 10168 10169 # Additional compiler flags for building library objects. 10170 pic_flag=$lt_lt_prog_compiler_pic 10171 pic_mode=$pic_mode 10172 10173 # What is the maximum length of a command? 10174 max_cmd_len=$lt_cv_sys_max_cmd_len 10175 10176 # Does compiler simultaneously support -c and -o options? 10177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10178 10179 # Must we lock files when doing compilation? 10180 need_locks=$lt_need_locks 10181 10182 # Do we need the lib prefix for modules? 10183 need_lib_prefix=$need_lib_prefix 10184 10185 # Do we need a version for libraries? 10186 need_version=$need_version 10187 10188 # Whether dlopen is supported. 10189 dlopen_support=$enable_dlopen 10190 10191 # Whether dlopen of programs is supported. 10192 dlopen_self=$enable_dlopen_self 10193 10194 # Whether dlopen of statically linked programs is supported. 10195 dlopen_self_static=$enable_dlopen_self_static 10196 10197 # Compiler flag to prevent dynamic linking. 10198 link_static_flag=$lt_lt_prog_compiler_static 10199 10200 # Compiler flag to turn off builtin functions. 10201 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10202 10203 # Compiler flag to allow reflexive dlopens. 10204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10205 10206 # Compiler flag to generate shared objects directly from archives. 10207 whole_archive_flag_spec=$lt_whole_archive_flag_spec 10208 10209 # Compiler flag to generate thread-safe objects. 10210 thread_safe_flag_spec=$lt_thread_safe_flag_spec 10211 10212 # Library versioning type. 10213 version_type=$version_type 10214 10215 # Format of library name prefix. 10216 libname_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. 10220 library_names_spec=$lt_library_names_spec 10221 10222 # The coded name of the library, if different from the real name. 10223 soname_spec=$lt_soname_spec 10224 10225 # Commands used to build and install an old-style archive. 10226 RANLIB=$lt_RANLIB 10227 old_archive_cmds=$lt_old_archive_cmds 10228 old_postinstall_cmds=$lt_old_postinstall_cmds 10229 old_postuninstall_cmds=$lt_old_postuninstall_cmds 10230 10231 # Create an old-style archive from a shared archive. 10232 old_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. 10235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10236 10237 # Commands used to build and install a shared archive. 10238 archive_cmds=$lt_archive_cmds 10239 archive_expsym_cmds=$lt_archive_expsym_cmds 10240 postinstall_cmds=$lt_postinstall_cmds 10241 postuninstall_cmds=$lt_postuninstall_cmds 10242 10243 # Commands used to build a loadable module (assumed same as above if empty) 10244 module_cmds=$lt_module_cmds 10245 module_expsym_cmds=$lt_module_expsym_cmds 10246 10247 # Commands to strip libraries. 10248 old_striplib=$lt_old_striplib 10249 striplib=$lt_striplib 10250 10251 # Dependencies to place before the objects being linked to create a 10252 # shared library. 10253 predep_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. 10257 postdep_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. 10261 predeps=$lt_predeps 10262 10263 # Dependencies to place after the objects being linked to create a 10264 # shared library. 10265 postdeps=$lt_postdeps 10266 10267 # The library search path used internally by the compiler when linking 10268 # a shared library. 10269 compiler_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. 10272 deplibs_check_method=$lt_deplibs_check_method 10273 10274 # Command to use when deplibs_check_method == file_magic. 10275 file_magic_cmd=$lt_file_magic_cmd 10276 10277 # Flag that allows shared libraries with undefined symbols to be built. 10278 allow_undefined_flag=$lt_allow_undefined_flag 10279 10280 # Flag that forces no undefined symbols. 10281 no_undefined_flag=$lt_no_undefined_flag 10282 10283 # Commands used to finish a libtool library installation in a directory. 10284 finish_cmds=$lt_finish_cmds 10285 10286 # Same as above, but a single script fragment to be evaled but not shown. 10287 finish_eval=$lt_finish_eval 10288 10289 # Take the output of nm and produce a listing of raw symbols and C names. 10290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10291 10292 # Transform the output of nm in a proper C declaration 10293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10294 10295 # Transform the output of nm in a C name address pair 10296 global_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. 10299 runpath_var=$runpath_var 10300 10301 # This is the shared library path variable. 10302 shlibpath_var=$shlibpath_var 10303 10304 # Is shlibpath searched before the hard-coded library search path? 10305 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10306 10307 # How to hardcode a shared library path into an executable. 10308 hardcode_action=$hardcode_action 10309 10310 # Whether we should hardcode library paths into libraries. 10311 hardcode_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. 10315 hardcode_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. 10320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10321 10322 # Whether we need a single -rpath flag with a separated argument. 10323 hardcode_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. 10327 hardcode_direct=$hardcode_direct 10328 10329 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10330 # resulting binary. 10331 hardcode_minus_L=$hardcode_minus_L 10332 10333 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10334 # the resulting binary. 10335 hardcode_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. 10339 hardcode_automatic=$hardcode_automatic 10340 10341 # Variables whose values should be saved in libtool wrapper scripts and 10342 # restored at relink time. 10343 variables_saved_for_relink="$variables_saved_for_relink" 10344 10345 # Whether libtool must link a program against all its dependency libraries. 10346 link_all_deplibs=$link_all_deplibs 10347 10348 # Compile-time system search path for libraries 10349 sys_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 10352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10353 10354 # Fix the shell variable \$srcfile for the compiler. 10355 fix_srcfile_path="$fix_srcfile_path" 10356 10357 # Set to yes if exported symbols are required. 10358 always_export_symbols=$always_export_symbols 10359 10360 # The commands to list exported symbols. 10361 export_symbols_cmds=$lt_export_symbols_cmds 10362 10363 # The commands to extract the exported symbol list from a shared archive. 10364 extract_expsyms_cmds=$lt_extract_expsyms_cmds 10365 10366 # Symbols that should not be listed in the preloaded symbols. 10367 exclude_expsyms=$lt_exclude_expsyms 10368 10369 # Symbols that must always be exported. 10370 include_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. 10384 if test "X${COLLECT_NAMES+set}" != Xset; then 10385 COLLECT_NAMES= 10386 export COLLECT_NAMES 10387 fi 10388 EOF 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 10402 else 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 10410 fi 10411 10412 10413 ac_ext=c 10414 ac_cpp='$CPP $CPPFLAGS' 10415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10417 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10418 10419 CC="$lt_save_CC" 10420 10421 10422 # Check whether --with-tags or --without-tags was given. 10423 if test "${with_tags+set}" = set; then 10424 withval="$with_tags" 10425 tagnames="$withval" 10426 fi; 10427 10428 if 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 10431 echo "$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 10438 echo "$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 10441 echo "$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 10459 echo "$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 10467 echo "$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 10481 ac_cpp='$CXXCPP $CPPFLAGS' 10482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10485 10486 10487 10488 10489 archive_cmds_need_lc_CXX=no 10490 allow_undefined_flag_CXX= 10491 always_export_symbols_CXX=no 10492 archive_expsym_cmds_CXX= 10493 export_dynamic_flag_spec_CXX= 10494 hardcode_direct_CXX=no 10495 hardcode_libdir_flag_spec_CXX= 10496 hardcode_libdir_flag_spec_ld_CXX= 10497 hardcode_libdir_separator_CXX= 10498 hardcode_minus_L_CXX=no 10499 hardcode_shlibpath_var_CXX=unsupported 10500 hardcode_automatic_CXX=no 10501 module_cmds_CXX= 10502 module_expsym_cmds_CXX= 10503 link_all_deplibs_CXX=unknown 10504 old_archive_cmds_CXX=$old_archive_cmds 10505 no_undefined_flag_CXX= 10506 whole_archive_flag_spec_CXX= 10507 enable_shared_with_static_runtimes_CXX=no 10508 10509 # Dependencies to place before and after the object being linked: 10510 predep_objects_CXX= 10511 postdep_objects_CXX= 10512 predeps_CXX= 10513 postdeps_CXX= 10514 compiler_lib_search_path_CXX= 10515 10516 # Source file extension for C++ test sources. 10517 ac_ext=cpp 10518 10519 # Object file extension for compiled C++ test sources. 10520 objext=o 10521 objext_CXX=$objext 10522 10523 # Code to be used in simple compile tests 10524 lt_simple_compile_test_code="int some_variable = 0;\n" 10525 10526 # Code to be used in simple link tests 10527 lt_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. 10532 LTCC=${LTCC-"$CC"} 10533 10534 # If no C compiler flags were specified, use CFLAGS. 10535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10536 10537 # Allow CC to be a program name with arguments. 10538 compiler=$CC 10539 10540 10541 # save warnings/boilerplate of simple test code 10542 ac_outfile=conftest.$ac_objext 10543 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10545 _lt_compiler_boilerplate=`cat conftest.err` 10546 $rm conftest* 10547 10548 ac_outfile=conftest.$ac_objext 10549 printf "$lt_simple_link_test_code" >conftest.$ac_ext 10550 eval "$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. 10556 lt_save_CC=$CC 10557 lt_save_LD=$LD 10558 lt_save_GCC=$GCC 10559 GCC=$GXX 10560 lt_save_with_gnu_ld=$with_gnu_ld 10561 lt_save_path_LD=$lt_cv_path_LD 10562 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10563 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10564 else 10565 $as_unset lt_cv_prog_gnu_ld 10566 fi 10567 if test -n "${lt_cv_path_LDCXX+set}"; then 10568 lt_cv_path_LD=$lt_cv_path_LDCXX 10569 else 10570 $as_unset lt_cv_path_LD 10571 fi 10572 test -z "${LDCXX+set}" || LD=$LDCXX 10573 CC=${CXX-"c++"} 10574 compiler=$CC 10575 compiler_CXX=$CC 10576 for 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 10583 done 10584 cc_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 10589 if test "$GXX" = yes; then 10590 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10591 else 10592 lt_prog_compiler_no_builtin_flag_CXX= 10593 fi 10594 10595 if 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. 10600 if test "${with_gnu_ld+set}" = set; then 10601 withval="$with_gnu_ld" 10602 test "$withval" = no || with_gnu_ld=yes 10603 else 10604 with_gnu_ld=no 10605 fi; 10606 ac_prog=ld 10607 if 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 10610 echo $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 10638 elif test "$with_gnu_ld" = yes; then 10639 echo "$as_me:$LINENO: checking for GNU ld" >&5 10640 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10641 else 10642 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10643 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10644 fi 10645 if test "${lt_cv_path_LD+set}" = set; then 10646 echo $ECHO_N "(cached) $ECHO_C" >&6 10647 else 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" 10669 else 10670 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10671 fi 10672 fi 10673 10674 LD="$lt_cv_path_LD" 10675 if test -n "$LD"; then 10676 echo "$as_me:$LINENO: result: $LD" >&5 10677 echo "${ECHO_T}$LD" >&6 10678 else 10679 echo "$as_me:$LINENO: result: no" >&5 10680 echo "${ECHO_T}no" >&6 10681 fi 10682 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10683 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10684 { (exit 1); exit 1; }; } 10685 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10686 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10687 if test "${lt_cv_prog_gnu_ld+set}" = set; then 10688 echo $ECHO_N "(cached) $ECHO_C" >&6 10689 else 10690 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10691 case `$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 ;; 10698 esac 10699 fi 10700 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10701 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10702 with_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 10744 else 10745 GXX=no 10746 with_gnu_ld=no 10747 wlarc= 10748 fi 10749 10750 # PORTME: fill in a description of your system's C++ link characteristics 10751 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10752 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10753 ld_shlibs_CXX=yes 10754 case $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 10851 cat confdefs.h >>conftest.$ac_ext 10852 cat >>conftest.$ac_ext <<_ACEOF 10853 /* end confdefs.h. */ 10854 10855 int 10856 main () 10857 { 10858 10859 ; 10860 return 0; 10861 } 10862 _ACEOF 10863 rm -f conftest.$ac_objext conftest$ac_exeext 10864 if { (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 10886 aix_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. 10889 if 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 10891 else 10892 echo "$as_me: failed program was:" >&5 10893 sed 's/^/| /' conftest.$ac_ext >&5 10894 10895 fi 10896 rm -f conftest.err conftest.$ac_objext \ 10897 conftest$ac_exeext conftest.$ac_ext 10898 if 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 10913 cat confdefs.h >>conftest.$ac_ext 10914 cat >>conftest.$ac_ext <<_ACEOF 10915 /* end confdefs.h. */ 10916 10917 int 10918 main () 10919 { 10920 10921 ; 10922 return 0; 10923 } 10924 _ACEOF 10925 rm -f conftest.$ac_objext conftest$ac_exeext 10926 if { (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 10948 aix_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. 10951 if 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 10953 else 10954 echo "$as_me: failed program was:" >&5 10955 sed 's/^/| /' conftest.$ac_ext >&5 10956 10957 fi 10958 rm -f conftest.err conftest.$ac_objext \ 10959 conftest$ac_exeext conftest.$ac_ext 10960 if 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 (at] 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 ;; 11688 esac 11689 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11690 echo "${ECHO_T}$ld_shlibs_CXX" >&6 11691 test "$ld_shlibs_CXX" = no && can_build_shared=no 11692 11693 GCC_CXX="$GXX" 11694 LD_CXX="$LD" 11695 11696 11697 cat > conftest.$ac_ext <<EOF 11698 class Foo 11699 { 11700 public: 11701 Foo (void) { a = 0; } 11702 private: 11703 int a; 11704 }; 11705 EOF 11706 11707 if { (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 11792 else 11793 echo "libtool.m4: error: problem compiling CXX test program" 11794 fi 11795 11796 $rm -f confest.$objext 11797 11798 # PORTME: override above test on systems where it is broken 11799 case $host_os in 11800 interix3*) 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 11808 solaris*) 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 ;; 11818 esac 11819 11820 11821 case " $postdeps_CXX " in 11822 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 11823 esac 11824 11825 lt_prog_compiler_wl_CXX= 11826 lt_prog_compiler_pic_CXX= 11827 lt_prog_compiler_static_CXX= 11828 11829 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11830 echo $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 12103 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12104 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12105 12106 # 12107 # Check to make sure the PIC flag actually works. 12108 # 12109 if test -n "$lt_prog_compiler_pic_CXX"; then 12110 12111 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12113 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12114 echo $ECHO_N "(cached) $ECHO_C" >&6 12115 else 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 12145 fi 12146 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12147 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12148 12149 if 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 12154 else 12155 lt_prog_compiler_pic_CXX= 12156 lt_prog_compiler_can_build_shared_CXX=no 12157 fi 12158 12159 fi 12160 case $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 ;; 12168 esac 12169 12170 # 12171 # Check to make sure the static flag actually works. 12172 # 12173 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12174 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12176 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12177 echo $ECHO_N "(cached) $ECHO_C" >&6 12178 else 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 12201 fi 12202 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12203 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 12204 12205 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12206 : 12207 else 12208 lt_prog_compiler_static_CXX= 12209 fi 12210 12211 12212 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12214 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12215 echo $ECHO_N "(cached) $ECHO_C" >&6 12216 else 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 12258 fi 12259 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12261 12262 12263 hard_links="nottested" 12264 if 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 12267 echo $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 12275 echo "${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 12278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12279 need_locks=warn 12280 fi 12281 else 12282 need_locks=no 12283 fi 12284 12285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12286 echo $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 12310 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12311 echo "${ECHO_T}$ld_shlibs_CXX" >&6 12312 test "$ld_shlibs_CXX" = no && can_build_shared=no 12313 12314 # 12315 # Do we need to explicitly link libc? 12316 # 12317 case "x$archive_cmds_need_lc_CXX" in 12318 x|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 12332 echo $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 12370 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12371 ;; 12372 esac 12373 fi 12374 ;; 12375 esac 12376 12377 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12379 library_names_spec= 12380 libname_spec='lib$name' 12381 soname_spec= 12382 shrext_cmds=".so" 12383 postinstall_cmds= 12384 postuninstall_cmds= 12385 finish_cmds= 12386 finish_eval= 12387 shlibpath_var= 12388 shlibpath_overrides_runpath=unknown 12389 version_type=none 12390 dynamic_linker="$host_os ld.so" 12391 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12392 if 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 12403 else 12404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12405 fi 12406 need_lib_prefix=unknown 12407 hardcode_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 12411 need_version=unknown 12412 12413 case $host_os in 12414 aix3*) 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 12423 aix4* | 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 12467 amigaos*) 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 12473 beos*) 12474 library_names_spec='${libname}${shared_ext}' 12475 dynamic_linker="$host_os ld.so" 12476 shlibpath_var=LIBRARY_PATH 12477 ;; 12478 12479 bsdi[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 12493 cygwin* | 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 12552 darwin* | 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 12571 dgux*) 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 12580 freebsd1*) 12581 dynamic_linker=no 12582 ;; 12583 12584 kfreebsd*-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 12596 freebsd* | 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 12640 gnu*) 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 12650 hpux9* | 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 12696 interix3*) 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 12708 irix5* | 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. 12746 linux*oldld* | linux*aout* | linux*coff*) 12747 dynamic_linker=no 12748 ;; 12749 12750 # This must be Linux ELF. 12751 linux*) 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 12801 knetbsd*-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 12813 netbsd*) 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 12831 newsos6) 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 12838 nto-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 12848 openbsd*) 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 12874 os2*) 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 12883 osf3* | 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 12894 solaris*) 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 12907 sunos4*) 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 12919 sysv4 | 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 12943 sysv4*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 12952 sysv5* | 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 12975 uts4*) 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 ;; 12985 esac 12986 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12987 echo "${ECHO_T}$dynamic_linker" >&6 12988 test "$dynamic_linker" = no && can_build_shared=no 12989 12990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12991 if test "$GCC" = yes; then 12992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12993 fi 12994 12995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12997 hardcode_action_CXX= 12998 if 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 13015 else 13016 # We cannot hardcode anything, or else we can only hardcode existing 13017 # directories. 13018 hardcode_action_CXX=unsupported 13019 fi 13020 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13021 echo "${ECHO_T}$hardcode_action_CXX" >&6 13022 13023 if test "$hardcode_action_CXX" = relink; then 13024 # Fast installation is not supported 13025 enable_fast_install=no 13026 elif test "$shlibpath_overrides_runpath" = yes || 13027 test "$enable_shared" = no; then 13028 # Fast installation is not necessary 13029 enable_fast_install=needless 13030 fi 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. 13037 if 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 13119 cfgfile="$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. 13127 SHELL=$lt_SHELL 13128 13129 # Whether or not to build shared libraries. 13130 build_libtool_libs=$enable_shared 13131 13132 # Whether or not to build static libraries. 13133 build_old_libs=$enable_static 13134 13135 # Whether or not to add -lc for building shared libraries. 13136 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13137 13138 # Whether or not to disallow shared libs when runtime libs are static 13139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13140 13141 # Whether or not to optimize for fast installation. 13142 fast_install=$enable_fast_install 13143 13144 # The host system. 13145 host_alias=$host_alias 13146 host=$host 13147 host_os=$host_os 13148 13149 # The build system. 13150 build_alias=$build_alias 13151 build=$build 13152 build_os=$build_os 13153 13154 # An echo program that does not interpret backslashes. 13155 echo=$lt_echo 13156 13157 # The archiver. 13158 AR=$lt_AR 13159 AR_FLAGS=$lt_AR_FLAGS 13160 13161 # A C compiler. 13162 LTCC=$lt_LTCC 13163 13164 # LTCC compiler flags. 13165 LTCFLAGS=$lt_LTCFLAGS 13166 13167 # A language-specific compiler. 13168 CC=$lt_compiler_CXX 13169 13170 # Is the compiler the GNU C compiler? 13171 with_gcc=$GCC_CXX 13172 13173 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 13174 gcc_ver=\`gcc -dumpversion\` 13175 13176 # An ERE matcher. 13177 EGREP=$lt_EGREP 13178 13179 # The linker used to build libraries. 13180 LD=$lt_LD_CXX 13181 13182 # Whether we need hard or soft links. 13183 LN_S=$lt_LN_S 13184 13185 # A BSD-compatible nm program. 13186 NM=$lt_NM 13187 13188 # A symbol stripping program 13189 STRIP=$lt_STRIP 13190 13191 # Used to examine libraries when file_magic_cmd begins "file" 13192 MAGIC_CMD=$MAGIC_CMD 13193 13194 # Used on cygwin: DLL creation program. 13195 DLLTOOL="$DLLTOOL" 13196 13197 # Used on cygwin: object dumper. 13198 OBJDUMP="$OBJDUMP" 13199 13200 # Used on cygwin: assembler. 13201 AS="$AS" 13202 13203 # The name of the directory that contains temporary libtool files. 13204 objdir=$objdir 13205 13206 # How to create reloadable object files. 13207 reload_flag=$lt_reload_flag 13208 reload_cmds=$lt_reload_cmds 13209 13210 # How to pass a linker flag through the compiler. 13211 wl=$lt_lt_prog_compiler_wl_CXX 13212 13213 # Object file suffix (normally "o"). 13214 objext="$ac_objext" 13215 13216 # Old archive suffix (normally "a"). 13217 libext="$libext" 13218 13219 # Shared library suffix (normally ".so"). 13220 shrext_cmds='$shrext_cmds' 13221 13222 # Executable file suffix (normally ""). 13223 exeext="$exeext" 13224 13225 # Additional compiler flags for building library objects. 13226 pic_flag=$lt_lt_prog_compiler_pic_CXX 13227 pic_mode=$pic_mode 13228 13229 # What is the maximum length of a command? 13230 max_cmd_len=$lt_cv_sys_max_cmd_len 13231 13232 # Does compiler simultaneously support -c and -o options? 13233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13234 13235 # Must we lock files when doing compilation? 13236 need_locks=$lt_need_locks 13237 13238 # Do we need the lib prefix for modules? 13239 need_lib_prefix=$need_lib_prefix 13240 13241 # Do we need a version for libraries? 13242 need_version=$need_version 13243 13244 # Whether dlopen is supported. 13245 dlopen_support=$enable_dlopen 13246 13247 # Whether dlopen of programs is supported. 13248 dlopen_self=$enable_dlopen_self 13249 13250 # Whether dlopen of statically linked programs is supported. 13251 dlopen_self_static=$enable_dlopen_self_static 13252 13253 # Compiler flag to prevent dynamic linking. 13254 link_static_flag=$lt_lt_prog_compiler_static_CXX 13255 13256 # Compiler flag to turn off builtin functions. 13257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13258 13259 # Compiler flag to allow reflexive dlopens. 13260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13261 13262 # Compiler flag to generate shared objects directly from archives. 13263 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13264 13265 # Compiler flag to generate thread-safe objects. 13266 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13267 13268 # Library versioning type. 13269 version_type=$version_type 13270 13271 # Format of library name prefix. 13272 libname_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. 13276 library_names_spec=$lt_library_names_spec 13277 13278 # The coded name of the library, if different from the real name. 13279 soname_spec=$lt_soname_spec 13280 13281 # Commands used to build and install an old-style archive. 13282 RANLIB=$lt_RANLIB 13283 old_archive_cmds=$lt_old_archive_cmds_CXX 13284 old_postinstall_cmds=$lt_old_postinstall_cmds 13285 old_postuninstall_cmds=$lt_old_postuninstall_cmds 13286 13287 # Create an old-style archive from a shared archive. 13288 old_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. 13291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13292 13293 # Commands used to build and install a shared archive. 13294 archive_cmds=$lt_archive_cmds_CXX 13295 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13296 postinstall_cmds=$lt_postinstall_cmds 13297 postuninstall_cmds=$lt_postuninstall_cmds 13298 13299 # Commands used to build a loadable module (assumed same as above if empty) 13300 module_cmds=$lt_module_cmds_CXX 13301 module_expsym_cmds=$lt_module_expsym_cmds_CXX 13302 13303 # Commands to strip libraries. 13304 old_striplib=$lt_old_striplib 13305 striplib=$lt_striplib 13306 13307 # Dependencies to place before the objects being linked to create a 13308 # shared library. 13309 predep_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. 13313 postdep_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. 13317 predeps=$lt_predeps_CXX 13318 13319 # Dependencies to place after the objects being linked to create a 13320 # shared library. 13321 postdeps=$lt_postdeps_CXX 13322 13323 # The library search path used internally by the compiler when linking 13324 # a shared library. 13325 compiler_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. 13328 deplibs_check_method=$lt_deplibs_check_method 13329 13330 # Command to use when deplibs_check_method == file_magic. 13331 file_magic_cmd=$lt_file_magic_cmd 13332 13333 # Flag that allows shared libraries with undefined symbols to be built. 13334 allow_undefined_flag=$lt_allow_undefined_flag_CXX 13335 13336 # Flag that forces no undefined symbols. 13337 no_undefined_flag=$lt_no_undefined_flag_CXX 13338 13339 # Commands used to finish a libtool library installation in a directory. 13340 finish_cmds=$lt_finish_cmds 13341 13342 # Same as above, but a single script fragment to be evaled but not shown. 13343 finish_eval=$lt_finish_eval 13344 13345 # Take the output of nm and produce a listing of raw symbols and C names. 13346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13347 13348 # Transform the output of nm in a proper C declaration 13349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13350 13351 # Transform the output of nm in a C name address pair 13352 global_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. 13355 runpath_var=$runpath_var 13356 13357 # This is the shared library path variable. 13358 shlibpath_var=$shlibpath_var 13359 13360 # Is shlibpath searched before the hard-coded library search path? 13361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13362 13363 # How to hardcode a shared library path into an executable. 13364 hardcode_action=$hardcode_action_CXX 13365 13366 # Whether we should hardcode library paths into libraries. 13367 hardcode_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. 13371 hardcode_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. 13376 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13377 13378 # Whether we need a single -rpath flag with a separated argument. 13379 hardcode_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. 13383 hardcode_direct=$hardcode_direct_CXX 13384 13385 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13386 # resulting binary. 13387 hardcode_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. 13391 hardcode_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. 13395 hardcode_automatic=$hardcode_automatic_CXX 13396 13397 # Variables whose values should be saved in libtool wrapper scripts and 13398 # restored at relink time. 13399 variables_saved_for_relink="$variables_saved_for_relink" 13400 13401 # Whether libtool must link a program against all its dependency libraries. 13402 link_all_deplibs=$link_all_deplibs_CXX 13403 13404 # Compile-time system search path for libraries 13405 sys_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 13408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13409 13410 # Fix the shell variable \$srcfile for the compiler. 13411 fix_srcfile_path="$fix_srcfile_path_CXX" 13412 13413 # Set to yes if exported symbols are required. 13414 always_export_symbols=$always_export_symbols_CXX 13415 13416 # The commands to list exported symbols. 13417 export_symbols_cmds=$lt_export_symbols_cmds_CXX 13418 13419 # The commands to extract the exported symbol list from a shared archive. 13420 extract_expsyms_cmds=$lt_extract_expsyms_cmds 13421 13422 # Symbols that should not be listed in the preloaded symbols. 13423 exclude_expsyms=$lt_exclude_expsyms_CXX 13424 13425 # Symbols that must always be exported. 13426 include_expsyms=$lt_include_expsyms_CXX 13427 13428 # ### END LIBTOOL TAG CONFIG: $tagname 13429 13430 __EOF__ 13431 13432 13433 else 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 13441 fi 13442 13443 13444 ac_ext=c 13445 ac_cpp='$CPP $CPPFLAGS' 13446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13448 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13449 13450 CC=$lt_save_CC 13451 LDCXX=$LD 13452 LD=$lt_save_LD 13453 GCC=$lt_save_GCC 13454 with_gnu_ldcxx=$with_gnu_ld 13455 with_gnu_ld=$lt_save_with_gnu_ld 13456 lt_cv_path_LDCXX=$lt_cv_path_LD 13457 lt_cv_path_LD=$lt_save_path_LD 13458 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13459 lt_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 13469 ac_ext=f 13470 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13471 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13472 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13473 13474 13475 archive_cmds_need_lc_F77=no 13476 allow_undefined_flag_F77= 13477 always_export_symbols_F77=no 13478 archive_expsym_cmds_F77= 13479 export_dynamic_flag_spec_F77= 13480 hardcode_direct_F77=no 13481 hardcode_libdir_flag_spec_F77= 13482 hardcode_libdir_flag_spec_ld_F77= 13483 hardcode_libdir_separator_F77= 13484 hardcode_minus_L_F77=no 13485 hardcode_automatic_F77=no 13486 module_cmds_F77= 13487 module_expsym_cmds_F77= 13488 link_all_deplibs_F77=unknown 13489 old_archive_cmds_F77=$old_archive_cmds 13490 no_undefined_flag_F77= 13491 whole_archive_flag_spec_F77= 13492 enable_shared_with_static_runtimes_F77=no 13493 13494 # Source file extension for f77 test sources. 13495 ac_ext=f 13496 13497 # Object file extension for compiled f77 test sources. 13498 objext=o 13499 objext_F77=$objext 13500 13501 # Code to be used in simple compile tests 13502 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13503 13504 # Code to be used in simple link tests 13505 lt_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. 13510 LTCC=${LTCC-"$CC"} 13511 13512 # If no C compiler flags were specified, use CFLAGS. 13513 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13514 13515 # Allow CC to be a program name with arguments. 13516 compiler=$CC 13517 13518 13519 # save warnings/boilerplate of simple test code 13520 ac_outfile=conftest.$ac_objext 13521 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13522 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13523 _lt_compiler_boilerplate=`cat conftest.err` 13524 $rm conftest* 13525 13526 ac_outfile=conftest.$ac_objext 13527 printf "$lt_simple_link_test_code" >conftest.$ac_ext 13528 eval "$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. 13534 lt_save_CC="$CC" 13535 CC=${F77-"f77"} 13536 compiler=$CC 13537 compiler_F77=$CC 13538 for 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 13545 done 13546 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13547 13548 13549 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13550 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13551 echo "$as_me:$LINENO: result: $can_build_shared" >&5 13552 echo "${ECHO_T}$can_build_shared" >&6 13553 13554 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13555 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13556 test "$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. 13560 case $host_os in 13561 aix3*) 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 ;; 13568 aix4* | aix5*) 13569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13570 test "$enable_shared" = yes && enable_static=no 13571 fi 13572 ;; 13573 esac 13574 echo "$as_me:$LINENO: result: $enable_shared" >&5 13575 echo "${ECHO_T}$enable_shared" >&6 13576 13577 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13578 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13579 # Make sure either enable_shared or enable_static is yes. 13580 test "$enable_shared" = yes || enable_static=yes 13581 echo "$as_me:$LINENO: result: $enable_static" >&5 13582 echo "${ECHO_T}$enable_static" >&6 13583 13584 GCC_F77="$G77" 13585 LD_F77="$LD" 13586 13587 lt_prog_compiler_wl_F77= 13588 lt_prog_compiler_pic_F77= 13589 lt_prog_compiler_static_F77= 13590 13591 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13592 echo $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 13801 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13802 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13803 13804 # 13805 # Check to make sure the PIC flag actually works. 13806 # 13807 if test -n "$lt_prog_compiler_pic_F77"; then 13808 13809 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13811 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13812 echo $ECHO_N "(cached) $ECHO_C" >&6 13813 else 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 13843 fi 13844 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13845 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13846 13847 if 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 13852 else 13853 lt_prog_compiler_pic_F77= 13854 lt_prog_compiler_can_build_shared_F77=no 13855 fi 13856 13857 fi 13858 case $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 ;; 13866 esac 13867 13868 # 13869 # Check to make sure the static flag actually works. 13870 # 13871 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13872 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13873 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13874 if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13875 echo $ECHO_N "(cached) $ECHO_C" >&6 13876 else 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 13899 fi 13900 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13901 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13902 13903 if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13904 : 13905 else 13906 lt_prog_compiler_static_F77= 13907 fi 13908 13909 13910 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13911 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13912 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13913 echo $ECHO_N "(cached) $ECHO_C" >&6 13914 else 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 13956 fi 13957 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13958 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13959 13960 13961 hard_links="nottested" 13962 if 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 13965 echo $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 13973 echo "${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 13976 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13977 need_locks=warn 13978 fi 13979 else 13980 need_locks=no 13981 fi 13982 13983 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13984 echo $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 14030 done 14031 cc_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 14091 EOF 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 (at] 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 (at] 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 14213 EOF 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 14388 rm -f conftest.$ac_objext conftest$ac_exeext 14389 if { (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 14411 aix_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. 14414 if 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 14416 else 14417 echo "$as_me: failed program was:" >&5 14418 sed 's/^/| /' conftest.$ac_ext >&5 14419 14420 fi 14421 rm -f conftest.err conftest.$ac_objext \ 14422 conftest$ac_exeext conftest.$ac_ext 14423 if 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 14439 rm -f conftest.$ac_objext conftest$ac_exeext 14440 if { (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 14462 aix_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. 14465 if 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 14467 else 14468 echo "$as_me: failed program was:" >&5 14469 sed 's/^/| /' conftest.$ac_ext >&5 14470 14471 fi 14472 rm -f conftest.err conftest.$ac_objext \ 14473 conftest$ac_exeext conftest.$ac_ext 14474 if 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 14921 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14922 echo "${ECHO_T}$ld_shlibs_F77" >&6 14923 test "$ld_shlibs_F77" = no && can_build_shared=no 14924 14925 # 14926 # Do we need to explicitly link libc? 14927 # 14928 case "x$archive_cmds_need_lc_F77" in 14929 x|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 14943 echo $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 14981 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14982 ;; 14983 esac 14984 fi 14985 ;; 14986 esac 14987 14988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14990 library_names_spec= 14991 libname_spec='lib$name' 14992 soname_spec= 14993 shrext_cmds=".so" 14994 postinstall_cmds= 14995 postuninstall_cmds= 14996 finish_cmds= 14997 finish_eval= 14998 shlibpath_var= 14999 shlibpath_overrides_runpath=unknown 15000 version_type=none 15001 dynamic_linker="$host_os ld.so" 15002 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15003 if 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 15014 else 15015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15016 fi 15017 need_lib_prefix=unknown 15018 hardcode_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 15022 need_version=unknown 15023 15024 case $host_os in 15025 aix3*) 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 15034 aix4* | 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 15078 amigaos*) 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 15084 beos*) 15085 library_names_spec='${libname}${shared_ext}' 15086 dynamic_linker="$host_os ld.so" 15087 shlibpath_var=LIBRARY_PATH 15088 ;; 15089 15090 bsdi[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 15104 cygwin* | 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 15163 darwin* | 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 15182 dgux*) 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 15191 freebsd1*) 15192 dynamic_linker=no 15193 ;; 15194 15195 kfreebsd*-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 15207 freebsd* | 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 15251 gnu*) 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 15261 hpux9* | 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 15307 interix3*) 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 15319 irix5* | 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. 15357 linux*oldld* | linux*aout* | linux*coff*) 15358 dynamic_linker=no 15359 ;; 15360 15361 # This must be Linux ELF. 15362 linux*) 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 15412 knetbsd*-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 15424 netbsd*) 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 15442 newsos6) 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 15449 nto-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 15459 openbsd*) 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 15485 os2*) 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 15494 osf3* | 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 15505 solaris*) 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 15518 sunos4*) 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 15530 sysv4 | 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 15554 sysv4*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 15563 sysv5* | 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 15586 uts4*) 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 ;; 15596 esac 15597 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15598 echo "${ECHO_T}$dynamic_linker" >&6 15599 test "$dynamic_linker" = no && can_build_shared=no 15600 15601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15602 if test "$GCC" = yes; then 15603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15604 fi 15605 15606 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15607 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15608 hardcode_action_F77= 15609 if 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 15626 else 15627 # We cannot hardcode anything, or else we can only hardcode existing 15628 # directories. 15629 hardcode_action_F77=unsupported 15630 fi 15631 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15632 echo "${ECHO_T}$hardcode_action_F77" >&6 15633 15634 if test "$hardcode_action_F77" = relink; then 15635 # Fast installation is not supported 15636 enable_fast_install=no 15637 elif test "$shlibpath_overrides_runpath" = yes || 15638 test "$enable_shared" = no; then 15639 # Fast installation is not necessary 15640 enable_fast_install=needless 15641 fi 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. 15648 if 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 15730 cfgfile="$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. 15738 SHELL=$lt_SHELL 15739 15740 # Whether or not to build shared libraries. 15741 build_libtool_libs=$enable_shared 15742 15743 # Whether or not to build static libraries. 15744 build_old_libs=$enable_static 15745 15746 # Whether or not to add -lc for building shared libraries. 15747 build_libtool_need_lc=$archive_cmds_need_lc_F77 15748 15749 # Whether or not to disallow shared libs when runtime libs are static 15750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15751 15752 # Whether or not to optimize for fast installation. 15753 fast_install=$enable_fast_install 15754 15755 # The host system. 15756 host_alias=$host_alias 15757 host=$host 15758 host_os=$host_os 15759 15760 # The build system. 15761 build_alias=$build_alias 15762 build=$build 15763 build_os=$build_os 15764 15765 # An echo program that does not interpret backslashes. 15766 echo=$lt_echo 15767 15768 # The archiver. 15769 AR=$lt_AR 15770 AR_FLAGS=$lt_AR_FLAGS 15771 15772 # A C compiler. 15773 LTCC=$lt_LTCC 15774 15775 # LTCC compiler flags. 15776 LTCFLAGS=$lt_LTCFLAGS 15777 15778 # A language-specific compiler. 15779 CC=$lt_compiler_F77 15780 15781 # Is the compiler the GNU C compiler? 15782 with_gcc=$GCC_F77 15783 15784 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 15785 gcc_ver=\`gcc -dumpversion\` 15786 15787 # An ERE matcher. 15788 EGREP=$lt_EGREP 15789 15790 # The linker used to build libraries. 15791 LD=$lt_LD_F77 15792 15793 # Whether we need hard or soft links. 15794 LN_S=$lt_LN_S 15795 15796 # A BSD-compatible nm program. 15797 NM=$lt_NM 15798 15799 # A symbol stripping program 15800 STRIP=$lt_STRIP 15801 15802 # Used to examine libraries when file_magic_cmd begins "file" 15803 MAGIC_CMD=$MAGIC_CMD 15804 15805 # Used on cygwin: DLL creation program. 15806 DLLTOOL="$DLLTOOL" 15807 15808 # Used on cygwin: object dumper. 15809 OBJDUMP="$OBJDUMP" 15810 15811 # Used on cygwin: assembler. 15812 AS="$AS" 15813 15814 # The name of the directory that contains temporary libtool files. 15815 objdir=$objdir 15816 15817 # How to create reloadable object files. 15818 reload_flag=$lt_reload_flag 15819 reload_cmds=$lt_reload_cmds 15820 15821 # How to pass a linker flag through the compiler. 15822 wl=$lt_lt_prog_compiler_wl_F77 15823 15824 # Object file suffix (normally "o"). 15825 objext="$ac_objext" 15826 15827 # Old archive suffix (normally "a"). 15828 libext="$libext" 15829 15830 # Shared library suffix (normally ".so"). 15831 shrext_cmds='$shrext_cmds' 15832 15833 # Executable file suffix (normally ""). 15834 exeext="$exeext" 15835 15836 # Additional compiler flags for building library objects. 15837 pic_flag=$lt_lt_prog_compiler_pic_F77 15838 pic_mode=$pic_mode 15839 15840 # What is the maximum length of a command? 15841 max_cmd_len=$lt_cv_sys_max_cmd_len 15842 15843 # Does compiler simultaneously support -c and -o options? 15844 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15845 15846 # Must we lock files when doing compilation? 15847 need_locks=$lt_need_locks 15848 15849 # Do we need the lib prefix for modules? 15850 need_lib_prefix=$need_lib_prefix 15851 15852 # Do we need a version for libraries? 15853 need_version=$need_version 15854 15855 # Whether dlopen is supported. 15856 dlopen_support=$enable_dlopen 15857 15858 # Whether dlopen of programs is supported. 15859 dlopen_self=$enable_dlopen_self 15860 15861 # Whether dlopen of statically linked programs is supported. 15862 dlopen_self_static=$enable_dlopen_self_static 15863 15864 # Compiler flag to prevent dynamic linking. 15865 link_static_flag=$lt_lt_prog_compiler_static_F77 15866 15867 # Compiler flag to turn off builtin functions. 15868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15869 15870 # Compiler flag to allow reflexive dlopens. 15871 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15872 15873 # Compiler flag to generate shared objects directly from archives. 15874 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15875 15876 # Compiler flag to generate thread-safe objects. 15877 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15878 15879 # Library versioning type. 15880 version_type=$version_type 15881 15882 # Format of library name prefix. 15883 libname_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. 15887 library_names_spec=$lt_library_names_spec 15888 15889 # The coded name of the library, if different from the real name. 15890 soname_spec=$lt_soname_spec 15891 15892 # Commands used to build and install an old-style archive. 15893 RANLIB=$lt_RANLIB 15894 old_archive_cmds=$lt_old_archive_cmds_F77 15895 old_postinstall_cmds=$lt_old_postinstall_cmds 15896 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15897 15898 # Create an old-style archive from a shared archive. 15899 old_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. 15902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15903 15904 # Commands used to build and install a shared archive. 15905 archive_cmds=$lt_archive_cmds_F77 15906 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15907 postinstall_cmds=$lt_postinstall_cmds 15908 postuninstall_cmds=$lt_postuninstall_cmds 15909 15910 # Commands used to build a loadable module (assumed same as above if empty) 15911 module_cmds=$lt_module_cmds_F77 15912 module_expsym_cmds=$lt_module_expsym_cmds_F77 15913 15914 # Commands to strip libraries. 15915 old_striplib=$lt_old_striplib 15916 striplib=$lt_striplib 15917 15918 # Dependencies to place before the objects being linked to create a 15919 # shared library. 15920 predep_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. 15924 postdep_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. 15928 predeps=$lt_predeps_F77 15929 15930 # Dependencies to place after the objects being linked to create a 15931 # shared library. 15932 postdeps=$lt_postdeps_F77 15933 15934 # The library search path used internally by the compiler when linking 15935 # a shared library. 15936 compiler_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. 15939 deplibs_check_method=$lt_deplibs_check_method 15940 15941 # Command to use when deplibs_check_method == file_magic. 15942 file_magic_cmd=$lt_file_magic_cmd 15943 15944 # Flag that allows shared libraries with undefined symbols to be built. 15945 allow_undefined_flag=$lt_allow_undefined_flag_F77 15946 15947 # Flag that forces no undefined symbols. 15948 no_undefined_flag=$lt_no_undefined_flag_F77 15949 15950 # Commands used to finish a libtool library installation in a directory. 15951 finish_cmds=$lt_finish_cmds 15952 15953 # Same as above, but a single script fragment to be evaled but not shown. 15954 finish_eval=$lt_finish_eval 15955 15956 # Take the output of nm and produce a listing of raw symbols and C names. 15957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15958 15959 # Transform the output of nm in a proper C declaration 15960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15961 15962 # Transform the output of nm in a C name address pair 15963 global_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. 15966 runpath_var=$runpath_var 15967 15968 # This is the shared library path variable. 15969 shlibpath_var=$shlibpath_var 15970 15971 # Is shlibpath searched before the hard-coded library search path? 15972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15973 15974 # How to hardcode a shared library path into an executable. 15975 hardcode_action=$hardcode_action_F77 15976 15977 # Whether we should hardcode library paths into libraries. 15978 hardcode_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. 15982 hardcode_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. 15987 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15988 15989 # Whether we need a single -rpath flag with a separated argument. 15990 hardcode_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. 15994 hardcode_direct=$hardcode_direct_F77 15995 15996 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15997 # resulting binary. 15998 hardcode_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. 16002 hardcode_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. 16006 hardcode_automatic=$hardcode_automatic_F77 16007 16008 # Variables whose values should be saved in libtool wrapper scripts and 16009 # restored at relink time. 16010 variables_saved_for_relink="$variables_saved_for_relink" 16011 16012 # Whether libtool must link a program against all its dependency libraries. 16013 link_all_deplibs=$link_all_deplibs_F77 16014 16015 # Compile-time system search path for libraries 16016 sys_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 16019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16020 16021 # Fix the shell variable \$srcfile for the compiler. 16022 fix_srcfile_path="$fix_srcfile_path_F77" 16023 16024 # Set to yes if exported symbols are required. 16025 always_export_symbols=$always_export_symbols_F77 16026 16027 # The commands to list exported symbols. 16028 export_symbols_cmds=$lt_export_symbols_cmds_F77 16029 16030 # The commands to extract the exported symbol list from a shared archive. 16031 extract_expsyms_cmds=$lt_extract_expsyms_cmds 16032 16033 # Symbols that should not be listed in the preloaded symbols. 16034 exclude_expsyms=$lt_exclude_expsyms_F77 16035 16036 # Symbols that must always be exported. 16037 include_expsyms=$lt_include_expsyms_F77 16038 16039 # ### END LIBTOOL TAG CONFIG: $tagname 16040 16041 __EOF__ 16042 16043 16044 else 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 16052 fi 16053 16054 16055 ac_ext=c 16056 ac_cpp='$CPP $CPPFLAGS' 16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16060 16061 CC="$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. 16074 ac_ext=java 16075 16076 # Object file extension for compiled Java test sources. 16077 objext=o 16078 objext_GCJ=$objext 16079 16080 # Code to be used in simple compile tests 16081 lt_simple_compile_test_code="class foo {}\n" 16082 16083 # Code to be used in simple link tests 16084 lt_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. 16089 LTCC=${LTCC-"$CC"} 16090 16091 # If no C compiler flags were specified, use CFLAGS. 16092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16093 16094 # Allow CC to be a program name with arguments. 16095 compiler=$CC 16096 16097 16098 # save warnings/boilerplate of simple test code 16099 ac_outfile=conftest.$ac_objext 16100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16102 _lt_compiler_boilerplate=`cat conftest.err` 16103 $rm conftest* 16104 16105 ac_outfile=conftest.$ac_objext 16106 printf "$lt_simple_link_test_code" >conftest.$ac_ext 16107 eval "$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. 16113 lt_save_CC="$CC" 16114 CC=${GCJ-"gcj"} 16115 compiler=$CC 16116 compiler_GCJ=$CC 16117 for 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 16124 done 16125 cc_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. 16129 archive_cmds_need_lc_GCJ=no 16130 16131 old_archive_cmds_GCJ=$old_archive_cmds 16132 16133 16134 lt_prog_compiler_no_builtin_flag_GCJ= 16135 16136 if test "$GCC" = yes; then 16137 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16138 16139 16140 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16141 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16142 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16143 echo $ECHO_N "(cached) $ECHO_C" >&6 16144 else 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 16174 fi 16175 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16176 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16177 16178 if 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" 16180 else 16181 : 16182 fi 16183 16184 fi 16185 16186 lt_prog_compiler_wl_GCJ= 16187 lt_prog_compiler_pic_GCJ= 16188 lt_prog_compiler_static_GCJ= 16189 16190 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16191 echo $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 16400 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16401 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16402 16403 # 16404 # Check to make sure the PIC flag actually works. 16405 # 16406 if test -n "$lt_prog_compiler_pic_GCJ"; then 16407 16408 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16410 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16411 echo $ECHO_N "(cached) $ECHO_C" >&6 16412 else 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 16442 fi 16443 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16444 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16445 16446 if 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 16451 else 16452 lt_prog_compiler_pic_GCJ= 16453 lt_prog_compiler_can_build_shared_GCJ=no 16454 fi 16455 16456 fi 16457 case $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 ;; 16465 esac 16466 16467 # 16468 # Check to make sure the static flag actually works. 16469 # 16470 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16471 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16472 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16473 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16474 echo $ECHO_N "(cached) $ECHO_C" >&6 16475 else 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 16498 fi 16499 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16500 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 16501 16502 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16503 : 16504 else 16505 lt_prog_compiler_static_GCJ= 16506 fi 16507 16508 16509 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16511 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16512 echo $ECHO_N "(cached) $ECHO_C" >&6 16513 else 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 16555 fi 16556 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16558 16559 16560 hard_links="nottested" 16561 if 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 16564 echo $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 16572 echo "${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 16575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16576 need_locks=warn 16577 fi 16578 else 16579 need_locks=no 16580 fi 16581 16582 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16583 echo $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 16629 done 16630 cc_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 16690 EOF 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 (at] 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 (at] 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 16812 EOF 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 16985 cat confdefs.h >>conftest.$ac_ext 16986 cat >>conftest.$ac_ext <<_ACEOF 16987 /* end confdefs.h. */ 16988 16989 int 16990 main () 16991 { 16992 16993 ; 16994 return 0; 16995 } 16996 _ACEOF 16997 rm -f conftest.$ac_objext conftest$ac_exeext 16998 if { (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 17020 aix_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. 17023 if 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 17025 else 17026 echo "$as_me: failed program was:" >&5 17027 sed 's/^/| /' conftest.$ac_ext >&5 17028 17029 fi 17030 rm -f conftest.err conftest.$ac_objext \ 17031 conftest$ac_exeext conftest.$ac_ext 17032 if 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 17046 cat confdefs.h >>conftest.$ac_ext 17047 cat >>conftest.$ac_ext <<_ACEOF 17048 /* end confdefs.h. */ 17049 17050 int 17051 main () 17052 { 17053 17054 ; 17055 return 0; 17056 } 17057 _ACEOF 17058 rm -f conftest.$ac_objext conftest$ac_exeext 17059 if { (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 17081 aix_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. 17084 if 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 17086 else 17087 echo "$as_me: failed program was:" >&5 17088 sed 's/^/| /' conftest.$ac_ext >&5 17089 17090 fi 17091 rm -f conftest.err conftest.$ac_objext \ 17092 conftest$ac_exeext conftest.$ac_ext 17093 if 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 17540 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17541 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17542 test "$ld_shlibs_GCJ" = no && can_build_shared=no 17543 17544 # 17545 # Do we need to explicitly link libc? 17546 # 17547 case "x$archive_cmds_need_lc_GCJ" in 17548 x|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 17562 echo $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 17600 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17601 ;; 17602 esac 17603 fi 17604 ;; 17605 esac 17606 17607 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17609 library_names_spec= 17610 libname_spec='lib$name' 17611 soname_spec= 17612 shrext_cmds=".so" 17613 postinstall_cmds= 17614 postuninstall_cmds= 17615 finish_cmds= 17616 finish_eval= 17617 shlibpath_var= 17618 shlibpath_overrides_runpath=unknown 17619 version_type=none 17620 dynamic_linker="$host_os ld.so" 17621 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17622 if 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 17633 else 17634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17635 fi 17636 need_lib_prefix=unknown 17637 hardcode_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 17641 need_version=unknown 17642 17643 case $host_os in 17644 aix3*) 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 17653 aix4* | 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 17697 amigaos*) 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 17703 beos*) 17704 library_names_spec='${libname}${shared_ext}' 17705 dynamic_linker="$host_os ld.so" 17706 shlibpath_var=LIBRARY_PATH 17707 ;; 17708 17709 bsdi[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 17723 cygwin* | 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 17782 darwin* | 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 17801 dgux*) 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 17810 freebsd1*) 17811 dynamic_linker=no 17812 ;; 17813 17814 kfreebsd*-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 17826 freebsd* | 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 17870 gnu*) 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 17880 hpux9* | 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 17926 interix3*) 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 17938 irix5* | 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. 17976 linux*oldld* | linux*aout* | linux*coff*) 17977 dynamic_linker=no 17978 ;; 17979 17980 # This must be Linux ELF. 17981 linux*) 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 18031 knetbsd*-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 18043 netbsd*) 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 18061 newsos6) 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 18068 nto-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 18078 openbsd*) 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 18104 os2*) 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 18113 osf3* | 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 18124 solaris*) 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 18137 sunos4*) 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 18149 sysv4 | 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 18173 sysv4*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 18182 sysv5* | 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 18205 uts4*) 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 ;; 18215 esac 18216 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18217 echo "${ECHO_T}$dynamic_linker" >&6 18218 test "$dynamic_linker" = no && can_build_shared=no 18219 18220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18221 if test "$GCC" = yes; then 18222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18223 fi 18224 18225 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18227 hardcode_action_GCJ= 18228 if 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 18245 else 18246 # We cannot hardcode anything, or else we can only hardcode existing 18247 # directories. 18248 hardcode_action_GCJ=unsupported 18249 fi 18250 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18251 echo "${ECHO_T}$hardcode_action_GCJ" >&6 18252 18253 if test "$hardcode_action_GCJ" = relink; then 18254 # Fast installation is not supported 18255 enable_fast_install=no 18256 elif test "$shlibpath_overrides_runpath" = yes || 18257 test "$enable_shared" = no; then 18258 # Fast installation is not necessary 18259 enable_fast_install=needless 18260 fi 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. 18267 if 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 18349 cfgfile="$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. 18357 SHELL=$lt_SHELL 18358 18359 # Whether or not to build shared libraries. 18360 build_libtool_libs=$enable_shared 18361 18362 # Whether or not to build static libraries. 18363 build_old_libs=$enable_static 18364 18365 # Whether or not to add -lc for building shared libraries. 18366 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18367 18368 # Whether or not to disallow shared libs when runtime libs are static 18369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18370 18371 # Whether or not to optimize for fast installation. 18372 fast_install=$enable_fast_install 18373 18374 # The host system. 18375 host_alias=$host_alias 18376 host=$host 18377 host_os=$host_os 18378 18379 # The build system. 18380 build_alias=$build_alias 18381 build=$build 18382 build_os=$build_os 18383 18384 # An echo program that does not interpret backslashes. 18385 echo=$lt_echo 18386 18387 # The archiver. 18388 AR=$lt_AR 18389 AR_FLAGS=$lt_AR_FLAGS 18390 18391 # A C compiler. 18392 LTCC=$lt_LTCC 18393 18394 # LTCC compiler flags. 18395 LTCFLAGS=$lt_LTCFLAGS 18396 18397 # A language-specific compiler. 18398 CC=$lt_compiler_GCJ 18399 18400 # Is the compiler the GNU C compiler? 18401 with_gcc=$GCC_GCJ 18402 18403 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18404 gcc_ver=\`gcc -dumpversion\` 18405 18406 # An ERE matcher. 18407 EGREP=$lt_EGREP 18408 18409 # The linker used to build libraries. 18410 LD=$lt_LD_GCJ 18411 18412 # Whether we need hard or soft links. 18413 LN_S=$lt_LN_S 18414 18415 # A BSD-compatible nm program. 18416 NM=$lt_NM 18417 18418 # A symbol stripping program 18419 STRIP=$lt_STRIP 18420 18421 # Used to examine libraries when file_magic_cmd begins "file" 18422 MAGIC_CMD=$MAGIC_CMD 18423 18424 # Used on cygwin: DLL creation program. 18425 DLLTOOL="$DLLTOOL" 18426 18427 # Used on cygwin: object dumper. 18428 OBJDUMP="$OBJDUMP" 18429 18430 # Used on cygwin: assembler. 18431 AS="$AS" 18432 18433 # The name of the directory that contains temporary libtool files. 18434 objdir=$objdir 18435 18436 # How to create reloadable object files. 18437 reload_flag=$lt_reload_flag 18438 reload_cmds=$lt_reload_cmds 18439 18440 # How to pass a linker flag through the compiler. 18441 wl=$lt_lt_prog_compiler_wl_GCJ 18442 18443 # Object file suffix (normally "o"). 18444 objext="$ac_objext" 18445 18446 # Old archive suffix (normally "a"). 18447 libext="$libext" 18448 18449 # Shared library suffix (normally ".so"). 18450 shrext_cmds='$shrext_cmds' 18451 18452 # Executable file suffix (normally ""). 18453 exeext="$exeext" 18454 18455 # Additional compiler flags for building library objects. 18456 pic_flag=$lt_lt_prog_compiler_pic_GCJ 18457 pic_mode=$pic_mode 18458 18459 # What is the maximum length of a command? 18460 max_cmd_len=$lt_cv_sys_max_cmd_len 18461 18462 # Does compiler simultaneously support -c and -o options? 18463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18464 18465 # Must we lock files when doing compilation? 18466 need_locks=$lt_need_locks 18467 18468 # Do we need the lib prefix for modules? 18469 need_lib_prefix=$need_lib_prefix 18470 18471 # Do we need a version for libraries? 18472 need_version=$need_version 18473 18474 # Whether dlopen is supported. 18475 dlopen_support=$enable_dlopen 18476 18477 # Whether dlopen of programs is supported. 18478 dlopen_self=$enable_dlopen_self 18479 18480 # Whether dlopen of statically linked programs is supported. 18481 dlopen_self_static=$enable_dlopen_self_static 18482 18483 # Compiler flag to prevent dynamic linking. 18484 link_static_flag=$lt_lt_prog_compiler_static_GCJ 18485 18486 # Compiler flag to turn off builtin functions. 18487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18488 18489 # Compiler flag to allow reflexive dlopens. 18490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18491 18492 # Compiler flag to generate shared objects directly from archives. 18493 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18494 18495 # Compiler flag to generate thread-safe objects. 18496 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18497 18498 # Library versioning type. 18499 version_type=$version_type 18500 18501 # Format of library name prefix. 18502 libname_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. 18506 library_names_spec=$lt_library_names_spec 18507 18508 # The coded name of the library, if different from the real name. 18509 soname_spec=$lt_soname_spec 18510 18511 # Commands used to build and install an old-style archive. 18512 RANLIB=$lt_RANLIB 18513 old_archive_cmds=$lt_old_archive_cmds_GCJ 18514 old_postinstall_cmds=$lt_old_postinstall_cmds 18515 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18516 18517 # Create an old-style archive from a shared archive. 18518 old_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. 18521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18522 18523 # Commands used to build and install a shared archive. 18524 archive_cmds=$lt_archive_cmds_GCJ 18525 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18526 postinstall_cmds=$lt_postinstall_cmds 18527 postuninstall_cmds=$lt_postuninstall_cmds 18528 18529 # Commands used to build a loadable module (assumed same as above if empty) 18530 module_cmds=$lt_module_cmds_GCJ 18531 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18532 18533 # Commands to strip libraries. 18534 old_striplib=$lt_old_striplib 18535 striplib=$lt_striplib 18536 18537 # Dependencies to place before the objects being linked to create a 18538 # shared library. 18539 predep_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. 18543 postdep_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. 18547 predeps=$lt_predeps_GCJ 18548 18549 # Dependencies to place after the objects being linked to create a 18550 # shared library. 18551 postdeps=$lt_postdeps_GCJ 18552 18553 # The library search path used internally by the compiler when linking 18554 # a shared library. 18555 compiler_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. 18558 deplibs_check_method=$lt_deplibs_check_method 18559 18560 # Command to use when deplibs_check_method == file_magic. 18561 file_magic_cmd=$lt_file_magic_cmd 18562 18563 # Flag that allows shared libraries with undefined symbols to be built. 18564 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18565 18566 # Flag that forces no undefined symbols. 18567 no_undefined_flag=$lt_no_undefined_flag_GCJ 18568 18569 # Commands used to finish a libtool library installation in a directory. 18570 finish_cmds=$lt_finish_cmds 18571 18572 # Same as above, but a single script fragment to be evaled but not shown. 18573 finish_eval=$lt_finish_eval 18574 18575 # Take the output of nm and produce a listing of raw symbols and C names. 18576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18577 18578 # Transform the output of nm in a proper C declaration 18579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18580 18581 # Transform the output of nm in a C name address pair 18582 global_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. 18585 runpath_var=$runpath_var 18586 18587 # This is the shared library path variable. 18588 shlibpath_var=$shlibpath_var 18589 18590 # Is shlibpath searched before the hard-coded library search path? 18591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18592 18593 # How to hardcode a shared library path into an executable. 18594 hardcode_action=$hardcode_action_GCJ 18595 18596 # Whether we should hardcode library paths into libraries. 18597 hardcode_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. 18601 hardcode_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. 18606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18607 18608 # Whether we need a single -rpath flag with a separated argument. 18609 hardcode_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. 18613 hardcode_direct=$hardcode_direct_GCJ 18614 18615 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18616 # resulting binary. 18617 hardcode_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. 18621 hardcode_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. 18625 hardcode_automatic=$hardcode_automatic_GCJ 18626 18627 # Variables whose values should be saved in libtool wrapper scripts and 18628 # restored at relink time. 18629 variables_saved_for_relink="$variables_saved_for_relink" 18630 18631 # Whether libtool must link a program against all its dependency libraries. 18632 link_all_deplibs=$link_all_deplibs_GCJ 18633 18634 # Compile-time system search path for libraries 18635 sys_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 18638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18639 18640 # Fix the shell variable \$srcfile for the compiler. 18641 fix_srcfile_path="$fix_srcfile_path_GCJ" 18642 18643 # Set to yes if exported symbols are required. 18644 always_export_symbols=$always_export_symbols_GCJ 18645 18646 # The commands to list exported symbols. 18647 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18648 18649 # The commands to extract the exported symbol list from a shared archive. 18650 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18651 18652 # Symbols that should not be listed in the preloaded symbols. 18653 exclude_expsyms=$lt_exclude_expsyms_GCJ 18654 18655 # Symbols that must always be exported. 18656 include_expsyms=$lt_include_expsyms_GCJ 18657 18658 # ### END LIBTOOL TAG CONFIG: $tagname 18659 18660 __EOF__ 18661 18662 18663 else 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 18671 fi 18672 18673 18674 ac_ext=c 18675 ac_cpp='$CPP $CPPFLAGS' 18676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18678 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18679 18680 CC="$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. 18692 ac_ext=rc 18693 18694 # Object file extension for compiled RC test sources. 18695 objext=o 18696 objext_RC=$objext 18697 18698 # Code to be used in simple compile tests 18699 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18700 18701 # Code to be used in simple link tests 18702 lt_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. 18707 LTCC=${LTCC-"$CC"} 18708 18709 # If no C compiler flags were specified, use CFLAGS. 18710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18711 18712 # Allow CC to be a program name with arguments. 18713 compiler=$CC 18714 18715 18716 # save warnings/boilerplate of simple test code 18717 ac_outfile=conftest.$ac_objext 18718 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18719 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18720 _lt_compiler_boilerplate=`cat conftest.err` 18721 $rm conftest* 18722 18723 ac_outfile=conftest.$ac_objext 18724 printf "$lt_simple_link_test_code" >conftest.$ac_ext 18725 eval "$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. 18731 lt_save_CC="$CC" 18732 CC=${RC-"windres"} 18733 compiler=$CC 18734 compiler_RC=$CC 18735 for 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 18742 done 18743 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18744 18745 lt_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. 18751 if 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 18833 cfgfile="$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. 18841 SHELL=$lt_SHELL 18842 18843 # Whether or not to build shared libraries. 18844 build_libtool_libs=$enable_shared 18845 18846 # Whether or not to build static libraries. 18847 build_old_libs=$enable_static 18848 18849 # Whether or not to add -lc for building shared libraries. 18850 build_libtool_need_lc=$archive_cmds_need_lc_RC 18851 18852 # Whether or not to disallow shared libs when runtime libs are static 18853 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18854 18855 # Whether or not to optimize for fast installation. 18856 fast_install=$enable_fast_install 18857 18858 # The host system. 18859 host_alias=$host_alias 18860 host=$host 18861 host_os=$host_os 18862 18863 # The build system. 18864 build_alias=$build_alias 18865 build=$build 18866 build_os=$build_os 18867 18868 # An echo program that does not interpret backslashes. 18869 echo=$lt_echo 18870 18871 # The archiver. 18872 AR=$lt_AR 18873 AR_FLAGS=$lt_AR_FLAGS 18874 18875 # A C compiler. 18876 LTCC=$lt_LTCC 18877 18878 # LTCC compiler flags. 18879 LTCFLAGS=$lt_LTCFLAGS 18880 18881 # A language-specific compiler. 18882 CC=$lt_compiler_RC 18883 18884 # Is the compiler the GNU C compiler? 18885 with_gcc=$GCC_RC 18886 18887 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18888 gcc_ver=\`gcc -dumpversion\` 18889 18890 # An ERE matcher. 18891 EGREP=$lt_EGREP 18892 18893 # The linker used to build libraries. 18894 LD=$lt_LD_RC 18895 18896 # Whether we need hard or soft links. 18897 LN_S=$lt_LN_S 18898 18899 # A BSD-compatible nm program. 18900 NM=$lt_NM 18901 18902 # A symbol stripping program 18903 STRIP=$lt_STRIP 18904 18905 # Used to examine libraries when file_magic_cmd begins "file" 18906 MAGIC_CMD=$MAGIC_CMD 18907 18908 # Used on cygwin: DLL creation program. 18909 DLLTOOL="$DLLTOOL" 18910 18911 # Used on cygwin: object dumper. 18912 OBJDUMP="$OBJDUMP" 18913 18914 # Used on cygwin: assembler. 18915 AS="$AS" 18916 18917 # The name of the directory that contains temporary libtool files. 18918 objdir=$objdir 18919 18920 # How to create reloadable object files. 18921 reload_flag=$lt_reload_flag 18922 reload_cmds=$lt_reload_cmds 18923 18924 # How to pass a linker flag through the compiler. 18925 wl=$lt_lt_prog_compiler_wl_RC 18926 18927 # Object file suffix (normally "o"). 18928 objext="$ac_objext" 18929 18930 # Old archive suffix (normally "a"). 18931 libext="$libext" 18932 18933 # Shared library suffix (normally ".so"). 18934 shrext_cmds='$shrext_cmds' 18935 18936 # Executable file suffix (normally ""). 18937 exeext="$exeext" 18938 18939 # Additional compiler flags for building library objects. 18940 pic_flag=$lt_lt_prog_compiler_pic_RC 18941 pic_mode=$pic_mode 18942 18943 # What is the maximum length of a command? 18944 max_cmd_len=$lt_cv_sys_max_cmd_len 18945 18946 # Does compiler simultaneously support -c and -o options? 18947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18948 18949 # Must we lock files when doing compilation? 18950 need_locks=$lt_need_locks 18951 18952 # Do we need the lib prefix for modules? 18953 need_lib_prefix=$need_lib_prefix 18954 18955 # Do we need a version for libraries? 18956 need_version=$need_version 18957 18958 # Whether dlopen is supported. 18959 dlopen_support=$enable_dlopen 18960 18961 # Whether dlopen of programs is supported. 18962 dlopen_self=$enable_dlopen_self 18963 18964 # Whether dlopen of statically linked programs is supported. 18965 dlopen_self_static=$enable_dlopen_self_static 18966 18967 # Compiler flag to prevent dynamic linking. 18968 link_static_flag=$lt_lt_prog_compiler_static_RC 18969 18970 # Compiler flag to turn off builtin functions. 18971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18972 18973 # Compiler flag to allow reflexive dlopens. 18974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18975 18976 # Compiler flag to generate shared objects directly from archives. 18977 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18978 18979 # Compiler flag to generate thread-safe objects. 18980 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18981 18982 # Library versioning type. 18983 version_type=$version_type 18984 18985 # Format of library name prefix. 18986 libname_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. 18990 library_names_spec=$lt_library_names_spec 18991 18992 # The coded name of the library, if different from the real name. 18993 soname_spec=$lt_soname_spec 18994 18995 # Commands used to build and install an old-style archive. 18996 RANLIB=$lt_RANLIB 18997 old_archive_cmds=$lt_old_archive_cmds_RC 18998 old_postinstall_cmds=$lt_old_postinstall_cmds 18999 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19000 19001 # Create an old-style archive from a shared archive. 19002 old_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. 19005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19006 19007 # Commands used to build and install a shared archive. 19008 archive_cmds=$lt_archive_cmds_RC 19009 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19010 postinstall_cmds=$lt_postinstall_cmds 19011 postuninstall_cmds=$lt_postuninstall_cmds 19012 19013 # Commands used to build a loadable module (assumed same as above if empty) 19014 module_cmds=$lt_module_cmds_RC 19015 module_expsym_cmds=$lt_module_expsym_cmds_RC 19016 19017 # Commands to strip libraries. 19018 old_striplib=$lt_old_striplib 19019 striplib=$lt_striplib 19020 19021 # Dependencies to place before the objects being linked to create a 19022 # shared library. 19023 predep_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. 19027 postdep_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. 19031 predeps=$lt_predeps_RC 19032 19033 # Dependencies to place after the objects being linked to create a 19034 # shared library. 19035 postdeps=$lt_postdeps_RC 19036 19037 # The library search path used internally by the compiler when linking 19038 # a shared library. 19039 compiler_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. 19042 deplibs_check_method=$lt_deplibs_check_method 19043 19044 # Command to use when deplibs_check_method == file_magic. 19045 file_magic_cmd=$lt_file_magic_cmd 19046 19047 # Flag that allows shared libraries with undefined symbols to be built. 19048 allow_undefined_flag=$lt_allow_undefined_flag_RC 19049 19050 # Flag that forces no undefined symbols. 19051 no_undefined_flag=$lt_no_undefined_flag_RC 19052 19053 # Commands used to finish a libtool library installation in a directory. 19054 finish_cmds=$lt_finish_cmds 19055 19056 # Same as above, but a single script fragment to be evaled but not shown. 19057 finish_eval=$lt_finish_eval 19058 19059 # Take the output of nm and produce a listing of raw symbols and C names. 19060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19061 19062 # Transform the output of nm in a proper C declaration 19063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19064 19065 # Transform the output of nm in a C name address pair 19066 global_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. 19069 runpath_var=$runpath_var 19070 19071 # This is the shared library path variable. 19072 shlibpath_var=$shlibpath_var 19073 19074 # Is shlibpath searched before the hard-coded library search path? 19075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19076 19077 # How to hardcode a shared library path into an executable. 19078 hardcode_action=$hardcode_action_RC 19079 19080 # Whether we should hardcode library paths into libraries. 19081 hardcode_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. 19085 hardcode_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. 19090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19091 19092 # Whether we need a single -rpath flag with a separated argument. 19093 hardcode_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. 19097 hardcode_direct=$hardcode_direct_RC 19098 19099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19100 # resulting binary. 19101 hardcode_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. 19105 hardcode_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. 19109 hardcode_automatic=$hardcode_automatic_RC 19110 19111 # Variables whose values should be saved in libtool wrapper scripts and 19112 # restored at relink time. 19113 variables_saved_for_relink="$variables_saved_for_relink" 19114 19115 # Whether libtool must link a program against all its dependency libraries. 19116 link_all_deplibs=$link_all_deplibs_RC 19117 19118 # Compile-time system search path for libraries 19119 sys_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 19122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19123 19124 # Fix the shell variable \$srcfile for the compiler. 19125 fix_srcfile_path="$fix_srcfile_path_RC" 19126 19127 # Set to yes if exported symbols are required. 19128 always_export_symbols=$always_export_symbols_RC 19129 19130 # The commands to list exported symbols. 19131 export_symbols_cmds=$lt_export_symbols_cmds_RC 19132 19133 # The commands to extract the exported symbol list from a shared archive. 19134 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19135 19136 # Symbols that should not be listed in the preloaded symbols. 19137 exclude_expsyms=$lt_exclude_expsyms_RC 19138 19139 # Symbols that must always be exported. 19140 include_expsyms=$lt_include_expsyms_RC 19141 19142 # ### END LIBTOOL TAG CONFIG: $tagname 19143 19144 __EOF__ 19145 19146 19147 else 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 19155 fi 19156 19157 19158 ac_ext=c 19159 ac_cpp='$CPP $CPPFLAGS' 19160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19162 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19163 19164 CC="$lt_save_CC" 19165 19166 ;; 19167 19168 *) 19169 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19170 echo "$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 19190 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19191 { (exit 1); exit 1; }; } 19192 fi 19193 fi 19194 19195 19196 19197 # This can be used to rebuild libtool when needed 19198 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19199 19200 # Always use our own libtool. 19201 LIBTOOL='$(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 19226 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'` 19227 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'` 19228 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'` 19229 19230 if test x$enable_gcov = xyes; then 19231 ## so that config.h changes when you toggle gcov support 19232 19233 cat >>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 19239 echo $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 19243 See \`config.log' for more details." >&5 19244 echo "$as_me: error: cannot run test program while cross compiling 19245 See \`config.log' for more details." >&2;} 19246 { (exit 1); exit 1; }; } 19247 else 19248 cat >conftest.$ac_ext <<_ACEOF 19249 /* confdefs.h. */ 19250 _ACEOF 19251 cat confdefs.h >>conftest.$ac_ext 19252 cat >>conftest.$ac_ext <<_ACEOF 19253 /* end confdefs.h. */ 19254 19255 int 19256 main () 19257 { 19258 if (__GNUC__ >=3 && __GNUC_MINOR__ >= 3) exit (0); else exit (1); 19259 ; 19260 return 0; 19261 } 19262 _ACEOF 19263 rm -f conftest$ac_exeext 19264 if { (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 19275 else 19276 echo "$as_me: program exited with status $ac_status" >&5 19277 echo "$as_me: failed program was:" >&5 19278 sed 's/^/| /' conftest.$ac_ext >&5 19279 19280 fi 19281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19282 fi 19283 if test x$have_gcc33_gcov = xyes ; then 19284 19285 cat >>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 19291 echo "${ECHO_T}$have_gcc33_gcov" >&6 19292 fi 19293 19294 19295 if test x$enable_gcov = xyes; then 19296 DBUS_GCOV_ENABLED_TRUE= 19297 DBUS_GCOV_ENABLED_FALSE='#' 19298 else 19299 DBUS_GCOV_ENABLED_TRUE='#' 19300 DBUS_GCOV_ENABLED_FALSE= 19301 fi 19302 19303 19304 #### Integer sizes 19305 19306 echo "$as_me:$LINENO: checking for char" >&5 19307 echo $ECHO_N "checking for char... $ECHO_C" >&6 19308 if test "${ac_cv_type_char+set}" = set; then 19309 echo $ECHO_N "(cached) $ECHO_C" >&6 19310 else 19311 cat >conftest.$ac_ext <<_ACEOF 19312 /* confdefs.h. */ 19313 _ACEOF 19314 cat confdefs.h >>conftest.$ac_ext 19315 cat >>conftest.$ac_ext <<_ACEOF 19316 /* end confdefs.h. */ 19317 $ac_includes_default 19318 int 19319 main () 19320 { 19321 if ((char *) 0) 19322 return 0; 19323 if (sizeof (char)) 19324 return 0; 19325 ; 19326 return 0; 19327 } 19328 _ACEOF 19329 rm -f conftest.$ac_objext 19330 if { (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 19352 else 19353 echo "$as_me: failed program was:" >&5 19354 sed 's/^/| /' conftest.$ac_ext >&5 19355 19356 ac_cv_type_char=no 19357 fi 19358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19359 fi 19360 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 19361 echo "${ECHO_T}$ac_cv_type_char" >&6 19362 19363 echo "$as_me:$LINENO: checking size of char" >&5 19364 echo $ECHO_N "checking size of char... $ECHO_C" >&6 19365 if test "${ac_cv_sizeof_char+set}" = set; then 19366 echo $ECHO_N "(cached) $ECHO_C" >&6 19367 else 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. 19375 cat >conftest.$ac_ext <<_ACEOF 19376 /* confdefs.h. */ 19377 _ACEOF 19378 cat confdefs.h >>conftest.$ac_ext 19379 cat >>conftest.$ac_ext <<_ACEOF 19380 /* end confdefs.h. */ 19381 $ac_includes_default 19382 int 19383 main () 19384 { 19385 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 19386 test_array [0] = 0 19387 19388 ; 19389 return 0; 19390 } 19391 _ACEOF 19392 rm -f conftest.$ac_objext 19393 if { (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 19419 cat confdefs.h >>conftest.$ac_ext 19420 cat >>conftest.$ac_ext <<_ACEOF 19421 /* end confdefs.h. */ 19422 $ac_includes_default 19423 int 19424 main () 19425 { 19426 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 19427 test_array [0] = 0 19428 19429 ; 19430 return 0; 19431 } 19432 _ACEOF 19433 rm -f conftest.$ac_objext 19434 if { (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 19456 else 19457 echo "$as_me: failed program was:" >&5 19458 sed 's/^/| /' conftest.$ac_ext >&5 19459 19460 ac_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` 19466 fi 19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19468 done 19469 else 19470 echo "$as_me: failed program was:" >&5 19471 sed 's/^/| /' conftest.$ac_ext >&5 19472 19473 cat >conftest.$ac_ext <<_ACEOF 19474 /* confdefs.h. */ 19475 _ACEOF 19476 cat confdefs.h >>conftest.$ac_ext 19477 cat >>conftest.$ac_ext <<_ACEOF 19478 /* end confdefs.h. */ 19479 $ac_includes_default 19480 int 19481 main () 19482 { 19483 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 19484 test_array [0] = 0 19485 19486 ; 19487 return 0; 19488 } 19489 _ACEOF 19490 rm -f conftest.$ac_objext 19491 if { (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 19517 cat confdefs.h >>conftest.$ac_ext 19518 cat >>conftest.$ac_ext <<_ACEOF 19519 /* end confdefs.h. */ 19520 $ac_includes_default 19521 int 19522 main () 19523 { 19524 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 19525 test_array [0] = 0 19526 19527 ; 19528 return 0; 19529 } 19530 _ACEOF 19531 rm -f conftest.$ac_objext 19532 if { (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 19554 else 19555 echo "$as_me: failed program was:" >&5 19556 sed 's/^/| /' conftest.$ac_ext >&5 19557 19558 ac_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` 19564 fi 19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19566 done 19567 else 19568 echo "$as_me: failed program was:" >&5 19569 sed 's/^/| /' conftest.$ac_ext >&5 19570 19571 ac_lo= ac_hi= 19572 fi 19573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19574 fi 19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19576 # Binary search between lo and hi bounds. 19577 while 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 19582 cat confdefs.h >>conftest.$ac_ext 19583 cat >>conftest.$ac_ext <<_ACEOF 19584 /* end confdefs.h. */ 19585 $ac_includes_default 19586 int 19587 main () 19588 { 19589 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 19590 test_array [0] = 0 19591 19592 ; 19593 return 0; 19594 } 19595 _ACEOF 19596 rm -f conftest.$ac_objext 19597 if { (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 19619 else 19620 echo "$as_me: failed program was:" >&5 19621 sed 's/^/| /' conftest.$ac_ext >&5 19622 19623 ac_lo=`expr '(' $ac_mid ')' + 1` 19624 fi 19625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19626 done 19627 case $ac_lo in 19628 ?*) ac_cv_sizeof_char=$ac_lo;; 19629 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 19630 See \`config.log' for more details." >&5 19631 echo "$as_me: error: cannot compute sizeof (char), 77 19632 See \`config.log' for more details." >&2;} 19633 { (exit 1); exit 1; }; } ;; 19634 esac 19635 else 19636 if test "$cross_compiling" = yes; then 19637 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19638 See \`config.log' for more details." >&5 19639 echo "$as_me: error: cannot run test program while cross compiling 19640 See \`config.log' for more details." >&2;} 19641 { (exit 1); exit 1; }; } 19642 else 19643 cat >conftest.$ac_ext <<_ACEOF 19644 /* confdefs.h. */ 19645 _ACEOF 19646 cat confdefs.h >>conftest.$ac_ext 19647 cat >>conftest.$ac_ext <<_ACEOF 19648 /* end confdefs.h. */ 19649 $ac_includes_default 19650 long longval () { return (long) (sizeof (char)); } 19651 unsigned long ulongval () { return (long) (sizeof (char)); } 19652 #include <stdio.h> 19653 #include <stdlib.h> 19654 int 19655 main () 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 19681 rm -f conftest$ac_exeext 19682 if { (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` 19693 else 19694 echo "$as_me: program exited with status $ac_status" >&5 19695 echo "$as_me: failed program was:" >&5 19696 sed 's/^/| /' conftest.$ac_ext >&5 19697 19698 ( exit $ac_status ) 19699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 19700 See \`config.log' for more details." >&5 19701 echo "$as_me: error: cannot compute sizeof (char), 77 19702 See \`config.log' for more details." >&2;} 19703 { (exit 1); exit 1; }; } 19704 fi 19705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19706 fi 19707 fi 19708 rm -f conftest.val 19709 else 19710 ac_cv_sizeof_char=0 19711 fi 19712 fi 19713 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 19714 echo "${ECHO_T}$ac_cv_sizeof_char" >&6 19715 cat >>confdefs.h <<_ACEOF 19716 #define SIZEOF_CHAR $ac_cv_sizeof_char 19717 _ACEOF 19718 19719 19720 echo "$as_me:$LINENO: checking for short" >&5 19721 echo $ECHO_N "checking for short... $ECHO_C" >&6 19722 if test "${ac_cv_type_short+set}" = set; then 19723 echo $ECHO_N "(cached) $ECHO_C" >&6 19724 else 19725 cat >conftest.$ac_ext <<_ACEOF 19726 /* confdefs.h. */ 19727 _ACEOF 19728 cat confdefs.h >>conftest.$ac_ext 19729 cat >>conftest.$ac_ext <<_ACEOF 19730 /* end confdefs.h. */ 19731 $ac_includes_default 19732 int 19733 main () 19734 { 19735 if ((short *) 0) 19736 return 0; 19737 if (sizeof (short)) 19738 return 0; 19739 ; 19740 return 0; 19741 } 19742 _ACEOF 19743 rm -f conftest.$ac_objext 19744 if { (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 19766 else 19767 echo "$as_me: failed program was:" >&5 19768 sed 's/^/| /' conftest.$ac_ext >&5 19769 19770 ac_cv_type_short=no 19771 fi 19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19773 fi 19774 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 19775 echo "${ECHO_T}$ac_cv_type_short" >&6 19776 19777 echo "$as_me:$LINENO: checking size of short" >&5 19778 echo $ECHO_N "checking size of short... $ECHO_C" >&6 19779 if test "${ac_cv_sizeof_short+set}" = set; then 19780 echo $ECHO_N "(cached) $ECHO_C" >&6 19781 else 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. 19789 cat >conftest.$ac_ext <<_ACEOF 19790 /* confdefs.h. */ 19791 _ACEOF 19792 cat confdefs.h >>conftest.$ac_ext 19793 cat >>conftest.$ac_ext <<_ACEOF 19794 /* end confdefs.h. */ 19795 $ac_includes_default 19796 int 19797 main () 19798 { 19799 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 19800 test_array [0] = 0 19801 19802 ; 19803 return 0; 19804 } 19805 _ACEOF 19806 rm -f conftest.$ac_objext 19807 if { (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 19833 cat confdefs.h >>conftest.$ac_ext 19834 cat >>conftest.$ac_ext <<_ACEOF 19835 /* end confdefs.h. */ 19836 $ac_includes_default 19837 int 19838 main () 19839 { 19840 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 19841 test_array [0] = 0 19842 19843 ; 19844 return 0; 19845 } 19846 _ACEOF 19847 rm -f conftest.$ac_objext 19848 if { (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 19870 else 19871 echo "$as_me: failed program was:" >&5 19872 sed 's/^/| /' conftest.$ac_ext >&5 19873 19874 ac_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` 19880 fi 19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19882 done 19883 else 19884 echo "$as_me: failed program was:" >&5 19885 sed 's/^/| /' conftest.$ac_ext >&5 19886 19887 cat >conftest.$ac_ext <<_ACEOF 19888 /* confdefs.h. */ 19889 _ACEOF 19890 cat confdefs.h >>conftest.$ac_ext 19891 cat >>conftest.$ac_ext <<_ACEOF 19892 /* end confdefs.h. */ 19893 $ac_includes_default 19894 int 19895 main () 19896 { 19897 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 19898 test_array [0] = 0 19899 19900 ; 19901 return 0; 19902 } 19903 _ACEOF 19904 rm -f conftest.$ac_objext 19905 if { (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 19931 cat confdefs.h >>conftest.$ac_ext 19932 cat >>conftest.$ac_ext <<_ACEOF 19933 /* end confdefs.h. */ 19934 $ac_includes_default 19935 int 19936 main () 19937 { 19938 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 19939 test_array [0] = 0 19940 19941 ; 19942 return 0; 19943 } 19944 _ACEOF 19945 rm -f conftest.$ac_objext 19946 if { (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 19968 else 19969 echo "$as_me: failed program was:" >&5 19970 sed 's/^/| /' conftest.$ac_ext >&5 19971 19972 ac_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` 19978 fi 19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19980 done 19981 else 19982 echo "$as_me: failed program was:" >&5 19983 sed 's/^/| /' conftest.$ac_ext >&5 19984 19985 ac_lo= ac_hi= 19986 fi 19987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19988 fi 19989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19990 # Binary search between lo and hi bounds. 19991 while 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 19996 cat confdefs.h >>conftest.$ac_ext 19997 cat >>conftest.$ac_ext <<_ACEOF 19998 /* end confdefs.h. */ 19999 $ac_includes_default 20000 int 20001 main () 20002 { 20003 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 20004 test_array [0] = 0 20005 20006 ; 20007 return 0; 20008 } 20009 _ACEOF 20010 rm -f conftest.$ac_objext 20011 if { (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 20033 else 20034 echo "$as_me: failed program was:" >&5 20035 sed 's/^/| /' conftest.$ac_ext >&5 20036 20037 ac_lo=`expr '(' $ac_mid ')' + 1` 20038 fi 20039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20040 done 20041 case $ac_lo in 20042 ?*) ac_cv_sizeof_short=$ac_lo;; 20043 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 20044 See \`config.log' for more details." >&5 20045 echo "$as_me: error: cannot compute sizeof (short), 77 20046 See \`config.log' for more details." >&2;} 20047 { (exit 1); exit 1; }; } ;; 20048 esac 20049 else 20050 if test "$cross_compiling" = yes; then 20051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20052 See \`config.log' for more details." >&5 20053 echo "$as_me: error: cannot run test program while cross compiling 20054 See \`config.log' for more details." >&2;} 20055 { (exit 1); exit 1; }; } 20056 else 20057 cat >conftest.$ac_ext <<_ACEOF 20058 /* confdefs.h. */ 20059 _ACEOF 20060 cat confdefs.h >>conftest.$ac_ext 20061 cat >>conftest.$ac_ext <<_ACEOF 20062 /* end confdefs.h. */ 20063 $ac_includes_default 20064 long longval () { return (long) (sizeof (short)); } 20065 unsigned long ulongval () { return (long) (sizeof (short)); } 20066 #include <stdio.h> 20067 #include <stdlib.h> 20068 int 20069 main () 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 20095 rm -f conftest$ac_exeext 20096 if { (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` 20107 else 20108 echo "$as_me: program exited with status $ac_status" >&5 20109 echo "$as_me: failed program was:" >&5 20110 sed 's/^/| /' conftest.$ac_ext >&5 20111 20112 ( exit $ac_status ) 20113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 20114 See \`config.log' for more details." >&5 20115 echo "$as_me: error: cannot compute sizeof (short), 77 20116 See \`config.log' for more details." >&2;} 20117 { (exit 1); exit 1; }; } 20118 fi 20119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20120 fi 20121 fi 20122 rm -f conftest.val 20123 else 20124 ac_cv_sizeof_short=0 20125 fi 20126 fi 20127 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 20128 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 20129 cat >>confdefs.h <<_ACEOF 20130 #define SIZEOF_SHORT $ac_cv_sizeof_short 20131 _ACEOF 20132 20133 20134 echo "$as_me:$LINENO: checking for long" >&5 20135 echo $ECHO_N "checking for long... $ECHO_C" >&6 20136 if test "${ac_cv_type_long+set}" = set; then 20137 echo $ECHO_N "(cached) $ECHO_C" >&6 20138 else 20139 cat >conftest.$ac_ext <<_ACEOF 20140 /* confdefs.h. */ 20141 _ACEOF 20142 cat confdefs.h >>conftest.$ac_ext 20143 cat >>conftest.$ac_ext <<_ACEOF 20144 /* end confdefs.h. */ 20145 $ac_includes_default 20146 int 20147 main () 20148 { 20149 if ((long *) 0) 20150 return 0; 20151 if (sizeof (long)) 20152 return 0; 20153 ; 20154 return 0; 20155 } 20156 _ACEOF 20157 rm -f conftest.$ac_objext 20158 if { (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 20180 else 20181 echo "$as_me: failed program was:" >&5 20182 sed 's/^/| /' conftest.$ac_ext >&5 20183 20184 ac_cv_type_long=no 20185 fi 20186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20187 fi 20188 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 20189 echo "${ECHO_T}$ac_cv_type_long" >&6 20190 20191 echo "$as_me:$LINENO: checking size of long" >&5 20192 echo $ECHO_N "checking size of long... $ECHO_C" >&6 20193 if test "${ac_cv_sizeof_long+set}" = set; then 20194 echo $ECHO_N "(cached) $ECHO_C" >&6 20195 else 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. 20203 cat >conftest.$ac_ext <<_ACEOF 20204 /* confdefs.h. */ 20205 _ACEOF 20206 cat confdefs.h >>conftest.$ac_ext 20207 cat >>conftest.$ac_ext <<_ACEOF 20208 /* end confdefs.h. */ 20209 $ac_includes_default 20210 int 20211 main () 20212 { 20213 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 20214 test_array [0] = 0 20215 20216 ; 20217 return 0; 20218 } 20219 _ACEOF 20220 rm -f conftest.$ac_objext 20221 if { (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 20247 cat confdefs.h >>conftest.$ac_ext 20248 cat >>conftest.$ac_ext <<_ACEOF 20249 /* end confdefs.h. */ 20250 $ac_includes_default 20251 int 20252 main () 20253 { 20254 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 20255 test_array [0] = 0 20256 20257 ; 20258 return 0; 20259 } 20260 _ACEOF 20261 rm -f conftest.$ac_objext 20262 if { (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 20284 else 20285 echo "$as_me: failed program was:" >&5 20286 sed 's/^/| /' conftest.$ac_ext >&5 20287 20288 ac_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` 20294 fi 20295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20296 done 20297 else 20298 echo "$as_me: failed program was:" >&5 20299 sed 's/^/| /' conftest.$ac_ext >&5 20300 20301 cat >conftest.$ac_ext <<_ACEOF 20302 /* confdefs.h. */ 20303 _ACEOF 20304 cat confdefs.h >>conftest.$ac_ext 20305 cat >>conftest.$ac_ext <<_ACEOF 20306 /* end confdefs.h. */ 20307 $ac_includes_default 20308 int 20309 main () 20310 { 20311 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 20312 test_array [0] = 0 20313 20314 ; 20315 return 0; 20316 } 20317 _ACEOF 20318 rm -f conftest.$ac_objext 20319 if { (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 20345 cat confdefs.h >>conftest.$ac_ext 20346 cat >>conftest.$ac_ext <<_ACEOF 20347 /* end confdefs.h. */ 20348 $ac_includes_default 20349 int 20350 main () 20351 { 20352 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 20353 test_array [0] = 0 20354 20355 ; 20356 return 0; 20357 } 20358 _ACEOF 20359 rm -f conftest.$ac_objext 20360 if { (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 20382 else 20383 echo "$as_me: failed program was:" >&5 20384 sed 's/^/| /' conftest.$ac_ext >&5 20385 20386 ac_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` 20392 fi 20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20394 done 20395 else 20396 echo "$as_me: failed program was:" >&5 20397 sed 's/^/| /' conftest.$ac_ext >&5 20398 20399 ac_lo= ac_hi= 20400 fi 20401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20402 fi 20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20404 # Binary search between lo and hi bounds. 20405 while 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 20410 cat confdefs.h >>conftest.$ac_ext 20411 cat >>conftest.$ac_ext <<_ACEOF 20412 /* end confdefs.h. */ 20413 $ac_includes_default 20414 int 20415 main () 20416 { 20417 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 20418 test_array [0] = 0 20419 20420 ; 20421 return 0; 20422 } 20423 _ACEOF 20424 rm -f conftest.$ac_objext 20425 if { (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 20447 else 20448 echo "$as_me: failed program was:" >&5 20449 sed 's/^/| /' conftest.$ac_ext >&5 20450 20451 ac_lo=`expr '(' $ac_mid ')' + 1` 20452 fi 20453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20454 done 20455 case $ac_lo in 20456 ?*) ac_cv_sizeof_long=$ac_lo;; 20457 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 20458 See \`config.log' for more details." >&5 20459 echo "$as_me: error: cannot compute sizeof (long), 77 20460 See \`config.log' for more details." >&2;} 20461 { (exit 1); exit 1; }; } ;; 20462 esac 20463 else 20464 if test "$cross_compiling" = yes; then 20465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20466 See \`config.log' for more details." >&5 20467 echo "$as_me: error: cannot run test program while cross compiling 20468 See \`config.log' for more details." >&2;} 20469 { (exit 1); exit 1; }; } 20470 else 20471 cat >conftest.$ac_ext <<_ACEOF 20472 /* confdefs.h. */ 20473 _ACEOF 20474 cat confdefs.h >>conftest.$ac_ext 20475 cat >>conftest.$ac_ext <<_ACEOF 20476 /* end confdefs.h. */ 20477 $ac_includes_default 20478 long longval () { return (long) (sizeof (long)); } 20479 unsigned long ulongval () { return (long) (sizeof (long)); } 20480 #include <stdio.h> 20481 #include <stdlib.h> 20482 int 20483 main () 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 20509 rm -f conftest$ac_exeext 20510 if { (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` 20521 else 20522 echo "$as_me: program exited with status $ac_status" >&5 20523 echo "$as_me: failed program was:" >&5 20524 sed 's/^/| /' conftest.$ac_ext >&5 20525 20526 ( exit $ac_status ) 20527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 20528 See \`config.log' for more details." >&5 20529 echo "$as_me: error: cannot compute sizeof (long), 77 20530 See \`config.log' for more details." >&2;} 20531 { (exit 1); exit 1; }; } 20532 fi 20533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20534 fi 20535 fi 20536 rm -f conftest.val 20537 else 20538 ac_cv_sizeof_long=0 20539 fi 20540 fi 20541 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 20542 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 20543 cat >>confdefs.h <<_ACEOF 20544 #define SIZEOF_LONG $ac_cv_sizeof_long 20545 _ACEOF 20546 20547 20548 echo "$as_me:$LINENO: checking for int" >&5 20549 echo $ECHO_N "checking for int... $ECHO_C" >&6 20550 if test "${ac_cv_type_int+set}" = set; then 20551 echo $ECHO_N "(cached) $ECHO_C" >&6 20552 else 20553 cat >conftest.$ac_ext <<_ACEOF 20554 /* confdefs.h. */ 20555 _ACEOF 20556 cat confdefs.h >>conftest.$ac_ext 20557 cat >>conftest.$ac_ext <<_ACEOF 20558 /* end confdefs.h. */ 20559 $ac_includes_default 20560 int 20561 main () 20562 { 20563 if ((int *) 0) 20564 return 0; 20565 if (sizeof (int)) 20566 return 0; 20567 ; 20568 return 0; 20569 } 20570 _ACEOF 20571 rm -f conftest.$ac_objext 20572 if { (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 20594 else 20595 echo "$as_me: failed program was:" >&5 20596 sed 's/^/| /' conftest.$ac_ext >&5 20597 20598 ac_cv_type_int=no 20599 fi 20600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20601 fi 20602 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 20603 echo "${ECHO_T}$ac_cv_type_int" >&6 20604 20605 echo "$as_me:$LINENO: checking size of int" >&5 20606 echo $ECHO_N "checking size of int... $ECHO_C" >&6 20607 if test "${ac_cv_sizeof_int+set}" = set; then 20608 echo $ECHO_N "(cached) $ECHO_C" >&6 20609 else 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. 20617 cat >conftest.$ac_ext <<_ACEOF 20618 /* confdefs.h. */ 20619 _ACEOF 20620 cat confdefs.h >>conftest.$ac_ext 20621 cat >>conftest.$ac_ext <<_ACEOF 20622 /* end confdefs.h. */ 20623 $ac_includes_default 20624 int 20625 main () 20626 { 20627 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 20628 test_array [0] = 0 20629 20630 ; 20631 return 0; 20632 } 20633 _ACEOF 20634 rm -f conftest.$ac_objext 20635 if { (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 20661 cat confdefs.h >>conftest.$ac_ext 20662 cat >>conftest.$ac_ext <<_ACEOF 20663 /* end confdefs.h. */ 20664 $ac_includes_default 20665 int 20666 main () 20667 { 20668 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 20669 test_array [0] = 0 20670 20671 ; 20672 return 0; 20673 } 20674 _ACEOF 20675 rm -f conftest.$ac_objext 20676 if { (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 20698 else 20699 echo "$as_me: failed program was:" >&5 20700 sed 's/^/| /' conftest.$ac_ext >&5 20701 20702 ac_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` 20708 fi 20709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20710 done 20711 else 20712 echo "$as_me: failed program was:" >&5 20713 sed 's/^/| /' conftest.$ac_ext >&5 20714 20715 cat >conftest.$ac_ext <<_ACEOF 20716 /* confdefs.h. */ 20717 _ACEOF 20718 cat confdefs.h >>conftest.$ac_ext 20719 cat >>conftest.$ac_ext <<_ACEOF 20720 /* end confdefs.h. */ 20721 $ac_includes_default 20722 int 20723 main () 20724 { 20725 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 20726 test_array [0] = 0 20727 20728 ; 20729 return 0; 20730 } 20731 _ACEOF 20732 rm -f conftest.$ac_objext 20733 if { (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 20759 cat confdefs.h >>conftest.$ac_ext 20760 cat >>conftest.$ac_ext <<_ACEOF 20761 /* end confdefs.h. */ 20762 $ac_includes_default 20763 int 20764 main () 20765 { 20766 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 20767 test_array [0] = 0 20768 20769 ; 20770 return 0; 20771 } 20772 _ACEOF 20773 rm -f conftest.$ac_objext 20774 if { (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 20796 else 20797 echo "$as_me: failed program was:" >&5 20798 sed 's/^/| /' conftest.$ac_ext >&5 20799 20800 ac_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` 20806 fi 20807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20808 done 20809 else 20810 echo "$as_me: failed program was:" >&5 20811 sed 's/^/| /' conftest.$ac_ext >&5 20812 20813 ac_lo= ac_hi= 20814 fi 20815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20816 fi 20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20818 # Binary search between lo and hi bounds. 20819 while 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 20824 cat confdefs.h >>conftest.$ac_ext 20825 cat >>conftest.$ac_ext <<_ACEOF 20826 /* end confdefs.h. */ 20827 $ac_includes_default 20828 int 20829 main () 20830 { 20831 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 20832 test_array [0] = 0 20833 20834 ; 20835 return 0; 20836 } 20837 _ACEOF 20838 rm -f conftest.$ac_objext 20839 if { (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 20861 else 20862 echo "$as_me: failed program was:" >&5 20863 sed 's/^/| /' conftest.$ac_ext >&5 20864 20865 ac_lo=`expr '(' $ac_mid ')' + 1` 20866 fi 20867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20868 done 20869 case $ac_lo in 20870 ?*) ac_cv_sizeof_int=$ac_lo;; 20871 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 20872 See \`config.log' for more details." >&5 20873 echo "$as_me: error: cannot compute sizeof (int), 77 20874 See \`config.log' for more details." >&2;} 20875 { (exit 1); exit 1; }; } ;; 20876 esac 20877 else 20878 if test "$cross_compiling" = yes; then 20879 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20880 See \`config.log' for more details." >&5 20881 echo "$as_me: error: cannot run test program while cross compiling 20882 See \`config.log' for more details." >&2;} 20883 { (exit 1); exit 1; }; } 20884 else 20885 cat >conftest.$ac_ext <<_ACEOF 20886 /* confdefs.h. */ 20887 _ACEOF 20888 cat confdefs.h >>conftest.$ac_ext 20889 cat >>conftest.$ac_ext <<_ACEOF 20890 /* end confdefs.h. */ 20891 $ac_includes_default 20892 long longval () { return (long) (sizeof (int)); } 20893 unsigned long ulongval () { return (long) (sizeof (int)); } 20894 #include <stdio.h> 20895 #include <stdlib.h> 20896 int 20897 main () 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 20923 rm -f conftest$ac_exeext 20924 if { (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` 20935 else 20936 echo "$as_me: program exited with status $ac_status" >&5 20937 echo "$as_me: failed program was:" >&5 20938 sed 's/^/| /' conftest.$ac_ext >&5 20939 20940 ( exit $ac_status ) 20941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 20942 See \`config.log' for more details." >&5 20943 echo "$as_me: error: cannot compute sizeof (int), 77 20944 See \`config.log' for more details." >&2;} 20945 { (exit 1); exit 1; }; } 20946 fi 20947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20948 fi 20949 fi 20950 rm -f conftest.val 20951 else 20952 ac_cv_sizeof_int=0 20953 fi 20954 fi 20955 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 20956 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 20957 cat >>confdefs.h <<_ACEOF 20958 #define SIZEOF_INT $ac_cv_sizeof_int 20959 _ACEOF 20960 20961 20962 echo "$as_me:$LINENO: checking for void *" >&5 20963 echo $ECHO_N "checking for void *... $ECHO_C" >&6 20964 if test "${ac_cv_type_void_p+set}" = set; then 20965 echo $ECHO_N "(cached) $ECHO_C" >&6 20966 else 20967 cat >conftest.$ac_ext <<_ACEOF 20968 /* confdefs.h. */ 20969 _ACEOF 20970 cat confdefs.h >>conftest.$ac_ext 20971 cat >>conftest.$ac_ext <<_ACEOF 20972 /* end confdefs.h. */ 20973 $ac_includes_default 20974 int 20975 main () 20976 { 20977 if ((void * *) 0) 20978 return 0; 20979 if (sizeof (void *)) 20980 return 0; 20981 ; 20982 return 0; 20983 } 20984 _ACEOF 20985 rm -f conftest.$ac_objext 20986 if { (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 21008 else 21009 echo "$as_me: failed program was:" >&5 21010 sed 's/^/| /' conftest.$ac_ext >&5 21011 21012 ac_cv_type_void_p=no 21013 fi 21014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21015 fi 21016 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 21017 echo "${ECHO_T}$ac_cv_type_void_p" >&6 21018 21019 echo "$as_me:$LINENO: checking size of void *" >&5 21020 echo $ECHO_N "checking size of void *... $ECHO_C" >&6 21021 if test "${ac_cv_sizeof_void_p+set}" = set; then 21022 echo $ECHO_N "(cached) $ECHO_C" >&6 21023 else 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. 21031 cat >conftest.$ac_ext <<_ACEOF 21032 /* confdefs.h. */ 21033 _ACEOF 21034 cat confdefs.h >>conftest.$ac_ext 21035 cat >>conftest.$ac_ext <<_ACEOF 21036 /* end confdefs.h. */ 21037 $ac_includes_default 21038 int 21039 main () 21040 { 21041 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; 21042 test_array [0] = 0 21043 21044 ; 21045 return 0; 21046 } 21047 _ACEOF 21048 rm -f conftest.$ac_objext 21049 if { (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 21075 cat confdefs.h >>conftest.$ac_ext 21076 cat >>conftest.$ac_ext <<_ACEOF 21077 /* end confdefs.h. */ 21078 $ac_includes_default 21079 int 21080 main () 21081 { 21082 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 21083 test_array [0] = 0 21084 21085 ; 21086 return 0; 21087 } 21088 _ACEOF 21089 rm -f conftest.$ac_objext 21090 if { (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 21112 else 21113 echo "$as_me: failed program was:" >&5 21114 sed 's/^/| /' conftest.$ac_ext >&5 21115 21116 ac_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` 21122 fi 21123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21124 done 21125 else 21126 echo "$as_me: failed program was:" >&5 21127 sed 's/^/| /' conftest.$ac_ext >&5 21128 21129 cat >conftest.$ac_ext <<_ACEOF 21130 /* confdefs.h. */ 21131 _ACEOF 21132 cat confdefs.h >>conftest.$ac_ext 21133 cat >>conftest.$ac_ext <<_ACEOF 21134 /* end confdefs.h. */ 21135 $ac_includes_default 21136 int 21137 main () 21138 { 21139 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; 21140 test_array [0] = 0 21141 21142 ; 21143 return 0; 21144 } 21145 _ACEOF 21146 rm -f conftest.$ac_objext 21147 if { (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 21173 cat confdefs.h >>conftest.$ac_ext 21174 cat >>conftest.$ac_ext <<_ACEOF 21175 /* end confdefs.h. */ 21176 $ac_includes_default 21177 int 21178 main () 21179 { 21180 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; 21181 test_array [0] = 0 21182 21183 ; 21184 return 0; 21185 } 21186 _ACEOF 21187 rm -f conftest.$ac_objext 21188 if { (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 21210 else 21211 echo "$as_me: failed program was:" >&5 21212 sed 's/^/| /' conftest.$ac_ext >&5 21213 21214 ac_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` 21220 fi 21221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21222 done 21223 else 21224 echo "$as_me: failed program was:" >&5 21225 sed 's/^/| /' conftest.$ac_ext >&5 21226 21227 ac_lo= ac_hi= 21228 fi 21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21230 fi 21231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21232 # Binary search between lo and hi bounds. 21233 while 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 21238 cat confdefs.h >>conftest.$ac_ext 21239 cat >>conftest.$ac_ext <<_ACEOF 21240 /* end confdefs.h. */ 21241 $ac_includes_default 21242 int 21243 main () 21244 { 21245 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 21246 test_array [0] = 0 21247 21248 ; 21249 return 0; 21250 } 21251 _ACEOF 21252 rm -f conftest.$ac_objext 21253 if { (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 21275 else 21276 echo "$as_me: failed program was:" >&5 21277 sed 's/^/| /' conftest.$ac_ext >&5 21278 21279 ac_lo=`expr '(' $ac_mid ')' + 1` 21280 fi 21281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21282 done 21283 case $ac_lo in 21284 ?*) ac_cv_sizeof_void_p=$ac_lo;; 21285 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 21286 See \`config.log' for more details." >&5 21287 echo "$as_me: error: cannot compute sizeof (void *), 77 21288 See \`config.log' for more details." >&2;} 21289 { (exit 1); exit 1; }; } ;; 21290 esac 21291 else 21292 if test "$cross_compiling" = yes; then 21293 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21294 See \`config.log' for more details." >&5 21295 echo "$as_me: error: cannot run test program while cross compiling 21296 See \`config.log' for more details." >&2;} 21297 { (exit 1); exit 1; }; } 21298 else 21299 cat >conftest.$ac_ext <<_ACEOF 21300 /* confdefs.h. */ 21301 _ACEOF 21302 cat confdefs.h >>conftest.$ac_ext 21303 cat >>conftest.$ac_ext <<_ACEOF 21304 /* end confdefs.h. */ 21305 $ac_includes_default 21306 long longval () { return (long) (sizeof (void *)); } 21307 unsigned long ulongval () { return (long) (sizeof (void *)); } 21308 #include <stdio.h> 21309 #include <stdlib.h> 21310 int 21311 main () 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 21337 rm -f conftest$ac_exeext 21338 if { (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` 21349 else 21350 echo "$as_me: program exited with status $ac_status" >&5 21351 echo "$as_me: failed program was:" >&5 21352 sed 's/^/| /' conftest.$ac_ext >&5 21353 21354 ( exit $ac_status ) 21355 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 21356 See \`config.log' for more details." >&5 21357 echo "$as_me: error: cannot compute sizeof (void *), 77 21358 See \`config.log' for more details." >&2;} 21359 { (exit 1); exit 1; }; } 21360 fi 21361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21362 fi 21363 fi 21364 rm -f conftest.val 21365 else 21366 ac_cv_sizeof_void_p=0 21367 fi 21368 fi 21369 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 21370 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 21371 cat >>confdefs.h <<_ACEOF 21372 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 21373 _ACEOF 21374 21375 21376 echo "$as_me:$LINENO: checking for long long" >&5 21377 echo $ECHO_N "checking for long long... $ECHO_C" >&6 21378 if test "${ac_cv_type_long_long+set}" = set; then 21379 echo $ECHO_N "(cached) $ECHO_C" >&6 21380 else 21381 cat >conftest.$ac_ext <<_ACEOF 21382 /* confdefs.h. */ 21383 _ACEOF 21384 cat confdefs.h >>conftest.$ac_ext 21385 cat >>conftest.$ac_ext <<_ACEOF 21386 /* end confdefs.h. */ 21387 $ac_includes_default 21388 int 21389 main () 21390 { 21391 if ((long long *) 0) 21392 return 0; 21393 if (sizeof (long long)) 21394 return 0; 21395 ; 21396 return 0; 21397 } 21398 _ACEOF 21399 rm -f conftest.$ac_objext 21400 if { (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 21422 else 21423 echo "$as_me: failed program was:" >&5 21424 sed 's/^/| /' conftest.$ac_ext >&5 21425 21426 ac_cv_type_long_long=no 21427 fi 21428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21429 fi 21430 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 21431 echo "${ECHO_T}$ac_cv_type_long_long" >&6 21432 21433 echo "$as_me:$LINENO: checking size of long long" >&5 21434 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 21435 if test "${ac_cv_sizeof_long_long+set}" = set; then 21436 echo $ECHO_N "(cached) $ECHO_C" >&6 21437 else 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. 21445 cat >conftest.$ac_ext <<_ACEOF 21446 /* confdefs.h. */ 21447 _ACEOF 21448 cat confdefs.h >>conftest.$ac_ext 21449 cat >>conftest.$ac_ext <<_ACEOF 21450 /* end confdefs.h. */ 21451 $ac_includes_default 21452 int 21453 main () 21454 { 21455 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 21456 test_array [0] = 0 21457 21458 ; 21459 return 0; 21460 } 21461 _ACEOF 21462 rm -f conftest.$ac_objext 21463 if { (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 21489 cat confdefs.h >>conftest.$ac_ext 21490 cat >>conftest.$ac_ext <<_ACEOF 21491 /* end confdefs.h. */ 21492 $ac_includes_default 21493 int 21494 main () 21495 { 21496 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 21497 test_array [0] = 0 21498 21499 ; 21500 return 0; 21501 } 21502 _ACEOF 21503 rm -f conftest.$ac_objext 21504 if { (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 21526 else 21527 echo "$as_me: failed program was:" >&5 21528 sed 's/^/| /' conftest.$ac_ext >&5 21529 21530 ac_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` 21536 fi 21537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21538 done 21539 else 21540 echo "$as_me: failed program was:" >&5 21541 sed 's/^/| /' conftest.$ac_ext >&5 21542 21543 cat >conftest.$ac_ext <<_ACEOF 21544 /* confdefs.h. */ 21545 _ACEOF 21546 cat confdefs.h >>conftest.$ac_ext 21547 cat >>conftest.$ac_ext <<_ACEOF 21548 /* end confdefs.h. */ 21549 $ac_includes_default 21550 int 21551 main () 21552 { 21553 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 21554 test_array [0] = 0 21555 21556 ; 21557 return 0; 21558 } 21559 _ACEOF 21560 rm -f conftest.$ac_objext 21561 if { (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 21587 cat confdefs.h >>conftest.$ac_ext 21588 cat >>conftest.$ac_ext <<_ACEOF 21589 /* end confdefs.h. */ 21590 $ac_includes_default 21591 int 21592 main () 21593 { 21594 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 21595 test_array [0] = 0 21596 21597 ; 21598 return 0; 21599 } 21600 _ACEOF 21601 rm -f conftest.$ac_objext 21602 if { (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 21624 else 21625 echo "$as_me: failed program was:" >&5 21626 sed 's/^/| /' conftest.$ac_ext >&5 21627 21628 ac_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` 21634 fi 21635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21636 done 21637 else 21638 echo "$as_me: failed program was:" >&5 21639 sed 's/^/| /' conftest.$ac_ext >&5 21640 21641 ac_lo= ac_hi= 21642 fi 21643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21644 fi 21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21646 # Binary search between lo and hi bounds. 21647 while 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 21652 cat confdefs.h >>conftest.$ac_ext 21653 cat >>conftest.$ac_ext <<_ACEOF 21654 /* end confdefs.h. */ 21655 $ac_includes_default 21656 int 21657 main () 21658 { 21659 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 21660 test_array [0] = 0 21661 21662 ; 21663 return 0; 21664 } 21665 _ACEOF 21666 rm -f conftest.$ac_objext 21667 if { (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 21689 else 21690 echo "$as_me: failed program was:" >&5 21691 sed 's/^/| /' conftest.$ac_ext >&5 21692 21693 ac_lo=`expr '(' $ac_mid ')' + 1` 21694 fi 21695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21696 done 21697 case $ac_lo in 21698 ?*) ac_cv_sizeof_long_long=$ac_lo;; 21699 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 21700 See \`config.log' for more details." >&5 21701 echo "$as_me: error: cannot compute sizeof (long long), 77 21702 See \`config.log' for more details." >&2;} 21703 { (exit 1); exit 1; }; } ;; 21704 esac 21705 else 21706 if test "$cross_compiling" = yes; then 21707 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21708 See \`config.log' for more details." >&5 21709 echo "$as_me: error: cannot run test program while cross compiling 21710 See \`config.log' for more details." >&2;} 21711 { (exit 1); exit 1; }; } 21712 else 21713 cat >conftest.$ac_ext <<_ACEOF 21714 /* confdefs.h. */ 21715 _ACEOF 21716 cat confdefs.h >>conftest.$ac_ext 21717 cat >>conftest.$ac_ext <<_ACEOF 21718 /* end confdefs.h. */ 21719 $ac_includes_default 21720 long longval () { return (long) (sizeof (long long)); } 21721 unsigned long ulongval () { return (long) (sizeof (long long)); } 21722 #include <stdio.h> 21723 #include <stdlib.h> 21724 int 21725 main () 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 21751 rm -f conftest$ac_exeext 21752 if { (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` 21763 else 21764 echo "$as_me: program exited with status $ac_status" >&5 21765 echo "$as_me: failed program was:" >&5 21766 sed 's/^/| /' conftest.$ac_ext >&5 21767 21768 ( exit $ac_status ) 21769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 21770 See \`config.log' for more details." >&5 21771 echo "$as_me: error: cannot compute sizeof (long long), 77 21772 See \`config.log' for more details." >&2;} 21773 { (exit 1); exit 1; }; } 21774 fi 21775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21776 fi 21777 fi 21778 rm -f conftest.val 21779 else 21780 ac_cv_sizeof_long_long=0 21781 fi 21782 fi 21783 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 21784 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 21785 cat >>confdefs.h <<_ACEOF 21786 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 21787 _ACEOF 21788 21789 21790 echo "$as_me:$LINENO: checking for __int64" >&5 21791 echo $ECHO_N "checking for __int64... $ECHO_C" >&6 21792 if test "${ac_cv_type___int64+set}" = set; then 21793 echo $ECHO_N "(cached) $ECHO_C" >&6 21794 else 21795 cat >conftest.$ac_ext <<_ACEOF 21796 /* confdefs.h. */ 21797 _ACEOF 21798 cat confdefs.h >>conftest.$ac_ext 21799 cat >>conftest.$ac_ext <<_ACEOF 21800 /* end confdefs.h. */ 21801 $ac_includes_default 21802 int 21803 main () 21804 { 21805 if ((__int64 *) 0) 21806 return 0; 21807 if (sizeof (__int64)) 21808 return 0; 21809 ; 21810 return 0; 21811 } 21812 _ACEOF 21813 rm -f conftest.$ac_objext 21814 if { (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 21836 else 21837 echo "$as_me: failed program was:" >&5 21838 sed 's/^/| /' conftest.$ac_ext >&5 21839 21840 ac_cv_type___int64=no 21841 fi 21842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21843 fi 21844 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 21845 echo "${ECHO_T}$ac_cv_type___int64" >&6 21846 21847 echo "$as_me:$LINENO: checking size of __int64" >&5 21848 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6 21849 if test "${ac_cv_sizeof___int64+set}" = set; then 21850 echo $ECHO_N "(cached) $ECHO_C" >&6 21851 else 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. 21859 cat >conftest.$ac_ext <<_ACEOF 21860 /* confdefs.h. */ 21861 _ACEOF 21862 cat confdefs.h >>conftest.$ac_ext 21863 cat >>conftest.$ac_ext <<_ACEOF 21864 /* end confdefs.h. */ 21865 $ac_includes_default 21866 int 21867 main () 21868 { 21869 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)]; 21870 test_array [0] = 0 21871 21872 ; 21873 return 0; 21874 } 21875 _ACEOF 21876 rm -f conftest.$ac_objext 21877 if { (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 21903 cat confdefs.h >>conftest.$ac_ext 21904 cat >>conftest.$ac_ext <<_ACEOF 21905 /* end confdefs.h. */ 21906 $ac_includes_default 21907 int 21908 main () 21909 { 21910 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 21911 test_array [0] = 0 21912 21913 ; 21914 return 0; 21915 } 21916 _ACEOF 21917 rm -f conftest.$ac_objext 21918 if { (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 21940 else 21941 echo "$as_me: failed program was:" >&5 21942 sed 's/^/| /' conftest.$ac_ext >&5 21943 21944 ac_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` 21950 fi 21951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21952 done 21953 else 21954 echo "$as_me: failed program was:" >&5 21955 sed 's/^/| /' conftest.$ac_ext >&5 21956 21957 cat >conftest.$ac_ext <<_ACEOF 21958 /* confdefs.h. */ 21959 _ACEOF 21960 cat confdefs.h >>conftest.$ac_ext 21961 cat >>conftest.$ac_ext <<_ACEOF 21962 /* end confdefs.h. */ 21963 $ac_includes_default 21964 int 21965 main () 21966 { 21967 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)]; 21968 test_array [0] = 0 21969 21970 ; 21971 return 0; 21972 } 21973 _ACEOF 21974 rm -f conftest.$ac_objext 21975 if { (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 22001 cat confdefs.h >>conftest.$ac_ext 22002 cat >>conftest.$ac_ext <<_ACEOF 22003 /* end confdefs.h. */ 22004 $ac_includes_default 22005 int 22006 main () 22007 { 22008 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)]; 22009 test_array [0] = 0 22010 22011 ; 22012 return 0; 22013 } 22014 _ACEOF 22015 rm -f conftest.$ac_objext 22016 if { (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 22038 else 22039 echo "$as_me: failed program was:" >&5 22040 sed 's/^/| /' conftest.$ac_ext >&5 22041 22042 ac_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` 22048 fi 22049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22050 done 22051 else 22052 echo "$as_me: failed program was:" >&5 22053 sed 's/^/| /' conftest.$ac_ext >&5 22054 22055 ac_lo= ac_hi= 22056 fi 22057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22058 fi 22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22060 # Binary search between lo and hi bounds. 22061 while 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 22066 cat confdefs.h >>conftest.$ac_ext 22067 cat >>conftest.$ac_ext <<_ACEOF 22068 /* end confdefs.h. */ 22069 $ac_includes_default 22070 int 22071 main () 22072 { 22073 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 22074 test_array [0] = 0 22075 22076 ; 22077 return 0; 22078 } 22079 _ACEOF 22080 rm -f conftest.$ac_objext 22081 if { (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 22103 else 22104 echo "$as_me: failed program was:" >&5 22105 sed 's/^/| /' conftest.$ac_ext >&5 22106 22107 ac_lo=`expr '(' $ac_mid ')' + 1` 22108 fi 22109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22110 done 22111 case $ac_lo in 22112 ?*) ac_cv_sizeof___int64=$ac_lo;; 22113 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 22114 See \`config.log' for more details." >&5 22115 echo "$as_me: error: cannot compute sizeof (__int64), 77 22116 See \`config.log' for more details." >&2;} 22117 { (exit 1); exit 1; }; } ;; 22118 esac 22119 else 22120 if test "$cross_compiling" = yes; then 22121 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22122 See \`config.log' for more details." >&5 22123 echo "$as_me: error: cannot run test program while cross compiling 22124 See \`config.log' for more details." >&2;} 22125 { (exit 1); exit 1; }; } 22126 else 22127 cat >conftest.$ac_ext <<_ACEOF 22128 /* confdefs.h. */ 22129 _ACEOF 22130 cat confdefs.h >>conftest.$ac_ext 22131 cat >>conftest.$ac_ext <<_ACEOF 22132 /* end confdefs.h. */ 22133 $ac_includes_default 22134 long longval () { return (long) (sizeof (__int64)); } 22135 unsigned long ulongval () { return (long) (sizeof (__int64)); } 22136 #include <stdio.h> 22137 #include <stdlib.h> 22138 int 22139 main () 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 22165 rm -f conftest$ac_exeext 22166 if { (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` 22177 else 22178 echo "$as_me: program exited with status $ac_status" >&5 22179 echo "$as_me: failed program was:" >&5 22180 sed 's/^/| /' conftest.$ac_ext >&5 22181 22182 ( exit $ac_status ) 22183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 22184 See \`config.log' for more details." >&5 22185 echo "$as_me: error: cannot compute sizeof (__int64), 77 22186 See \`config.log' for more details." >&2;} 22187 { (exit 1); exit 1; }; } 22188 fi 22189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22190 fi 22191 fi 22192 rm -f conftest.val 22193 else 22194 ac_cv_sizeof___int64=0 22195 fi 22196 fi 22197 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5 22198 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6 22199 cat >>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 22206 echo "$as_me:$LINENO: checking 64-bit integer type" >&5 22207 echo $ECHO_N "checking 64-bit integer type... $ECHO_C" >&6 22208 22209 case 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 ;; 22230 esac 22231 22232 if 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 22238 echo "${ECHO_T}none found" >&6 22239 else 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 22245 echo "${ECHO_T}$DBUS_INT64_TYPE" >&6 22246 fi 22247 22248 22249 22250 22251 22252 22253 ### see what 32-bit int is called 22254 echo "$as_me:$LINENO: checking 32-bit integer type" >&5 22255 echo $ECHO_N "checking 32-bit integer type... $ECHO_C" >&6 22256 22257 case 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 ;; 22267 esac 22268 22269 if 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 22272 echo "$as_me: error: No 32-bit integer type found" >&2;} 22273 { (exit 1); exit 1; }; } 22274 else 22275 DBUS_INT32_TYPE="$dbusint32" 22276 echo "$as_me:$LINENO: result: $DBUS_INT32_TYPE" >&5 22277 echo "${ECHO_T}$DBUS_INT32_TYPE" >&6 22278 fi 22279 22280 22281 22282 ### see what 16-bit int is called 22283 echo "$as_me:$LINENO: checking 16-bit integer type" >&5 22284 echo $ECHO_N "checking 16-bit integer type... $ECHO_C" >&6 22285 22286 case 2 in 22287 $ac_cv_sizeof_short) 22288 dbusint16=short 22289 ;; 22290 $ac_cv_sizeof_int) 22291 dbusint16=int 22292 ;; 22293 esac 22294 22295 if 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 22298 echo "$as_me: error: No 16-bit integer type found" >&2;} 22299 { (exit 1); exit 1; }; } 22300 else 22301 DBUS_INT16_TYPE="$dbusint16" 22302 echo "$as_me:$LINENO: result: $DBUS_INT16_TYPE" >&5 22303 echo "${ECHO_T}$DBUS_INT16_TYPE" >&6 22304 fi 22305 22306 22307 22308 ## byte order 22309 case $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 22318 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 22319 if test "${ac_cv_c_bigendian+set}" = set; then 22320 echo $ECHO_N "(cached) $ECHO_C" >&6 22321 else 22322 # See if sys/param.h defines the BYTE_ORDER macro. 22323 cat >conftest.$ac_ext <<_ACEOF 22324 /* confdefs.h. */ 22325 _ACEOF 22326 cat confdefs.h >>conftest.$ac_ext 22327 cat >>conftest.$ac_ext <<_ACEOF 22328 /* end confdefs.h. */ 22329 #include <sys/types.h> 22330 #include <sys/param.h> 22331 22332 int 22333 main () 22334 { 22335 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 22336 bogus endian macros 22337 #endif 22338 22339 ; 22340 return 0; 22341 } 22342 _ACEOF 22343 rm -f conftest.$ac_objext 22344 if { (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. 22366 cat >conftest.$ac_ext <<_ACEOF 22367 /* confdefs.h. */ 22368 _ACEOF 22369 cat confdefs.h >>conftest.$ac_ext 22370 cat >>conftest.$ac_ext <<_ACEOF 22371 /* end confdefs.h. */ 22372 #include <sys/types.h> 22373 #include <sys/param.h> 22374 22375 int 22376 main () 22377 { 22378 #if BYTE_ORDER != BIG_ENDIAN 22379 not big endian 22380 #endif 22381 22382 ; 22383 return 0; 22384 } 22385 _ACEOF 22386 rm -f conftest.$ac_objext 22387 if { (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 22409 else 22410 echo "$as_me: failed program was:" >&5 22411 sed 's/^/| /' conftest.$ac_ext >&5 22412 22413 ac_cv_c_bigendian=no 22414 fi 22415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22416 else 22417 echo "$as_me: failed program was:" >&5 22418 sed 's/^/| /' conftest.$ac_ext >&5 22419 22420 # It does not; compile a test program. 22421 if 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 22427 cat confdefs.h >>conftest.$ac_ext 22428 cat >>conftest.$ac_ext <<_ACEOF 22429 /* end confdefs.h. */ 22430 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22431 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22432 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 22433 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22434 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22435 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 22436 int 22437 main () 22438 { 22439 _ascii (); _ebcdic (); 22440 ; 22441 return 0; 22442 } 22443 _ACEOF 22444 rm -f conftest.$ac_objext 22445 if { (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 22468 fi 22469 if 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 22476 fi 22477 else 22478 echo "$as_me: failed program was:" >&5 22479 sed 's/^/| /' conftest.$ac_ext >&5 22480 22481 fi 22482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22483 else 22484 cat >conftest.$ac_ext <<_ACEOF 22485 /* confdefs.h. */ 22486 _ACEOF 22487 cat confdefs.h >>conftest.$ac_ext 22488 cat >>conftest.$ac_ext <<_ACEOF 22489 /* end confdefs.h. */ 22490 int 22491 main () 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 22503 rm -f conftest$ac_exeext 22504 if { (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 22515 else 22516 echo "$as_me: program exited with status $ac_status" >&5 22517 echo "$as_me: failed program was:" >&5 22518 sed 's/^/| /' conftest.$ac_ext >&5 22519 22520 ( exit $ac_status ) 22521 ac_cv_c_bigendian=yes 22522 fi 22523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22524 fi 22525 fi 22526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22527 fi 22528 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 22529 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 22530 case $ac_cv_c_bigendian in 22531 yes) 22532 22533 cat >>confdefs.h <<\_ACEOF 22534 #define WORDS_BIGENDIAN 1 22535 _ACEOF 22536 ;; 22537 no) 22538 ;; 22539 *) 22540 { { echo "$as_me:$LINENO: error: unknown endianness 22541 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 22542 echo "$as_me: error: unknown endianness 22543 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 22544 { (exit 1); exit 1; }; } ;; 22545 esac 22546 22547 ;; 22548 esac 22549 22550 echo "$as_me:$LINENO: checking for an implementation of va_copy()" >&5 22551 echo $ECHO_N "checking for an implementation of va_copy()... $ECHO_C" >&6 22552 if test "${dbus_cv_va_copy+set}" = set; then 22553 echo $ECHO_N "(cached) $ECHO_C" >&6 22554 else 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 22571 rm -f conftest.$ac_objext conftest$ac_exeext 22572 if { (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 22594 else 22595 echo "$as_me: failed program was:" >&5 22596 sed 's/^/| /' conftest.$ac_ext >&5 22597 22598 dbus_cv_va_copy=no 22599 fi 22600 rm -f conftest.err conftest.$ac_objext \ 22601 conftest$ac_exeext conftest.$ac_ext 22602 22603 fi 22604 echo "$as_me:$LINENO: result: $dbus_cv_va_copy" >&5 22605 echo "${ECHO_T}$dbus_cv_va_copy" >&6 22606 echo "$as_me:$LINENO: checking for an implementation of __va_copy()" >&5 22607 echo $ECHO_N "checking for an implementation of __va_copy()... $ECHO_C" >&6 22608 if test "${dbus_cv___va_copy+set}" = set; then 22609 echo $ECHO_N "(cached) $ECHO_C" >&6 22610 else 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 22627 rm -f conftest.$ac_objext conftest$ac_exeext 22628 if { (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 22650 else 22651 echo "$as_me: failed program was:" >&5 22652 sed 's/^/| /' conftest.$ac_ext >&5 22653 22654 dbus_cv___va_copy=no 22655 fi 22656 rm -f conftest.err conftest.$ac_objext \ 22657 conftest$ac_exeext conftest.$ac_ext 22658 22659 fi 22660 echo "$as_me:$LINENO: result: $dbus_cv___va_copy" >&5 22661 echo "${ECHO_T}$dbus_cv___va_copy" >&6 22662 22663 if test "x$dbus_cv_va_copy" = "xyes"; then 22664 dbus_va_copy_func=va_copy 22665 else if test "x$dbus_cv___va_copy" = "xyes"; then 22666 dbus_va_copy_func=__va_copy 22667 fi 22668 fi 22669 22670 if test -n "$dbus_va_copy_func"; then 22671 22672 cat >>confdefs.h <<_ACEOF 22673 #define DBUS_VA_COPY $dbus_va_copy_func 22674 _ACEOF 22675 22676 fi 22677 22678 ac_ext=c 22679 ac_cpp='$CPP $CPPFLAGS' 22680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22682 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22683 22684 echo "$as_me:$LINENO: checking whether va_lists can be copied by value" >&5 22685 echo $ECHO_N "checking whether va_lists can be copied by value... $ECHO_C" >&6 22686 if test "${dbus_cv_va_val_copy+set}" = set; then 22687 echo $ECHO_N "(cached) $ECHO_C" >&6 22688 else 22689 if test "$cross_compiling" = yes; then 22690 dbus_cv_va_val_copy=yes 22691 else 22692 cat >conftest.$ac_ext <<_ACEOF 22693 /* confdefs.h. */ 22694 _ACEOF 22695 cat confdefs.h >>conftest.$ac_ext 22696 cat >>conftest.$ac_ext <<_ACEOF 22697 /* end confdefs.h. */ 22698 22699 #include <stdarg.h> 22700 22701 int 22702 main () 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 22722 rm -f conftest$ac_exeext 22723 if { (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 22734 else 22735 echo "$as_me: program exited with status $ac_status" >&5 22736 echo "$as_me: failed program was:" >&5 22737 sed 's/^/| /' conftest.$ac_ext >&5 22738 22739 ( exit $ac_status ) 22740 dbus_cv_va_val_copy=no 22741 fi 22742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22743 fi 22744 22745 fi 22746 echo "$as_me:$LINENO: result: $dbus_cv_va_val_copy" >&5 22747 echo "${ECHO_T}$dbus_cv_va_val_copy" >&6 22748 ac_ext=c 22749 ac_cpp='$CPP $CPPFLAGS' 22750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22752 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22753 22754 22755 if test "x$dbus_cv_va_val_copy" = "xno"; then 22756 22757 cat >>confdefs.h <<\_ACEOF 22758 #define DBUS_VA_COPY_AS_ARRAY 1 22759 _ACEOF 22760 22761 fi 22762 22763 22764 #### Atomic integers (checks by Sebastian Wilhelmi for GLib) 22765 echo "$as_me:$LINENO: checking whether to use inline assembler routines for atomic integers" >&5 22766 echo $ECHO_N "checking whether to use inline assembler routines for atomic integers... $ECHO_C" >&6 22767 have_atomic_inc=no 22768 if test x"$GCC" = xyes; then 22769 if test "x$enable_ansi" = "xyes"; then 22770 echo "$as_me:$LINENO: result: no" >&5 22771 echo "${ECHO_T}no" >&6 22772 else 22773 case $host_cpu in 22774 i386) 22775 echo "$as_me:$LINENO: result: no" >&5 22776 echo "${ECHO_T}no" >&6 22777 ;; 22778 i?86) 22779 case $host_os in 22780 darwin*) 22781 echo "$as_me:$LINENO: result: darwin" >&5 22782 echo "${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 22790 echo "${ECHO_T}i486" >&6 22791 22792 cat >>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 22802 echo "${ECHO_T}no" >&6 22803 ;; 22804 esac 22805 fi 22806 fi 22807 if test x$have_atomic_inc = xyes ; then 22808 case $host_os in 22809 darwin*) 22810 22811 22812 ;; 22813 *) 22814 22815 cat >>confdefs.h <<_ACEOF 22816 #define DBUS_HAVE_ATOMIC_INT 1 22817 _ACEOF 22818 22819 ;; 22820 esac 22821 fi 22822 22823 #### Various functions 22824 22825 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 22826 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 22827 if test "${ac_cv_lib_socket_socket+set}" = set; then 22828 echo $ECHO_N "(cached) $ECHO_C" >&6 22829 else 22830 ac_check_lib_save_LIBS=$LIBS 22831 LIBS="-lsocket $LIBS" 22832 cat >conftest.$ac_ext <<_ACEOF 22833 /* confdefs.h. */ 22834 _ACEOF 22835 cat confdefs.h >>conftest.$ac_ext 22836 cat >>conftest.$ac_ext <<_ACEOF 22837 /* end confdefs.h. */ 22838 22839 /* Override any gcc2 internal prototype to avoid an error. */ 22840 #ifdef __cplusplus 22841 extern "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. */ 22845 char socket (); 22846 int 22847 main () 22848 { 22849 socket (); 22850 ; 22851 return 0; 22852 } 22853 _ACEOF 22854 rm -f conftest.$ac_objext conftest$ac_exeext 22855 if { (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 22877 else 22878 echo "$as_me: failed program was:" >&5 22879 sed 's/^/| /' conftest.$ac_ext >&5 22880 22881 ac_cv_lib_socket_socket=no 22882 fi 22883 rm -f conftest.err conftest.$ac_objext \ 22884 conftest$ac_exeext conftest.$ac_ext 22885 LIBS=$ac_check_lib_save_LIBS 22886 fi 22887 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 22888 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 22889 if 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 22896 fi 22897 22898 echo "$as_me:$LINENO: checking for gethostbyname" >&5 22899 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 22900 if test "${ac_cv_func_gethostbyname+set}" = set; then 22901 echo $ECHO_N "(cached) $ECHO_C" >&6 22902 else 22903 cat >conftest.$ac_ext <<_ACEOF 22904 /* confdefs.h. */ 22905 _ACEOF 22906 cat confdefs.h >>conftest.$ac_ext 22907 cat >>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 22928 extern "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. */ 22933 char 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) 22938 choke me 22939 #else 22940 char (*f) () = gethostbyname; 22941 #endif 22942 #ifdef __cplusplus 22943 } 22944 #endif 22945 22946 int 22947 main () 22948 { 22949 return f != gethostbyname; 22950 ; 22951 return 0; 22952 } 22953 _ACEOF 22954 rm -f conftest.$ac_objext conftest$ac_exeext 22955 if { (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 22977 else 22978 echo "$as_me: failed program was:" >&5 22979 sed 's/^/| /' conftest.$ac_ext >&5 22980 22981 ac_cv_func_gethostbyname=no 22982 fi 22983 rm -f conftest.err conftest.$ac_objext \ 22984 conftest$ac_exeext conftest.$ac_ext 22985 fi 22986 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 22987 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 22988 if test $ac_cv_func_gethostbyname = yes; then 22989 : 22990 else 22991 22992 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 22993 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 22994 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 22995 echo $ECHO_N "(cached) $ECHO_C" >&6 22996 else 22997 ac_check_lib_save_LIBS=$LIBS 22998 LIBS="-lnsl $LIBS" 22999 cat >conftest.$ac_ext <<_ACEOF 23000 /* confdefs.h. */ 23001 _ACEOF 23002 cat confdefs.h >>conftest.$ac_ext 23003 cat >>conftest.$ac_ext <<_ACEOF 23004 /* end confdefs.h. */ 23005 23006 /* Override any gcc2 internal prototype to avoid an error. */ 23007 #ifdef __cplusplus 23008 extern "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. */ 23012 char gethostbyname (); 23013 int 23014 main () 23015 { 23016 gethostbyname (); 23017 ; 23018 return 0; 23019 } 23020 _ACEOF 23021 rm -f conftest.$ac_objext conftest$ac_exeext 23022 if { (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 23044 else 23045 echo "$as_me: failed program was:" >&5 23046 sed 's/^/| /' conftest.$ac_ext >&5 23047 23048 ac_cv_lib_nsl_gethostbyname=no 23049 fi 23050 rm -f conftest.err conftest.$ac_objext \ 23051 conftest$ac_exeext conftest.$ac_ext 23052 LIBS=$ac_check_lib_save_LIBS 23053 fi 23054 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 23055 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 23056 if 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 23063 fi 23064 23065 fi 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 for ac_func in vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf 23079 do 23080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23081 echo "$as_me:$LINENO: checking for $ac_func" >&5 23082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23083 if eval "test \"\${$as_ac_var+set}\" = set"; then 23084 echo $ECHO_N "(cached) $ECHO_C" >&6 23085 else 23086 cat >conftest.$ac_ext <<_ACEOF 23087 /* confdefs.h. */ 23088 _ACEOF 23089 cat confdefs.h >>conftest.$ac_ext 23090 cat >>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 23111 extern "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. */ 23116 char $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) 23121 choke me 23122 #else 23123 char (*f) () = $ac_func; 23124 #endif 23125 #ifdef __cplusplus 23126 } 23127 #endif 23128 23129 int 23130 main () 23131 { 23132 return f != $ac_func; 23133 ; 23134 return 0; 23135 } 23136 _ACEOF 23137 rm -f conftest.$ac_objext conftest$ac_exeext 23138 if { (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" 23160 else 23161 echo "$as_me: failed program was:" >&5 23162 sed 's/^/| /' conftest.$ac_ext >&5 23163 23164 eval "$as_ac_var=no" 23165 fi 23166 rm -f conftest.err conftest.$ac_objext \ 23167 conftest$ac_exeext conftest.$ac_ext 23168 fi 23169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23171 if 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 23176 fi 23177 done 23178 23179 23180 echo "$as_me:$LINENO: checking for dirfd" >&5 23181 echo $ECHO_N "checking for dirfd... $ECHO_C" >&6 23182 cat >conftest.$ac_ext <<_ACEOF 23183 /* confdefs.h. */ 23184 _ACEOF 23185 cat confdefs.h >>conftest.$ac_ext 23186 cat >>conftest.$ac_ext <<_ACEOF 23187 /* end confdefs.h. */ 23188 23189 #include <sys/types.h> 23190 #include <dirent.h> 23191 23192 int 23193 main () 23194 { 23195 23196 DIR *dirp; 23197 dirp = opendir("."); 23198 dirfd(dirp); 23199 closedir(dirp); 23200 23201 ; 23202 return 0; 23203 } 23204 _ACEOF 23205 rm -f conftest.$ac_objext conftest$ac_exeext 23206 if { (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 23228 else 23229 echo "$as_me: failed program was:" >&5 23230 sed 's/^/| /' conftest.$ac_ext >&5 23231 23232 dbus_have_dirfd=no 23233 fi 23234 rm -f conftest.err conftest.$ac_objext \ 23235 conftest$ac_exeext conftest.$ac_ext 23236 echo "$as_me:$LINENO: result: $dbus_have_dirfd" >&5 23237 echo "${ECHO_T}$dbus_have_dirfd" >&6 23238 if test "$dbus_have_dirfd" = yes; then 23239 23240 cat >>confdefs.h <<\_ACEOF 23241 #define HAVE_DIRFD 1 23242 _ACEOF 23243 23244 else 23245 echo "$as_me:$LINENO: checking for DIR *dirp->dd_fd" >&5 23246 echo $ECHO_N "checking for DIR *dirp->dd_fd... $ECHO_C" >&6 23247 cat >conftest.$ac_ext <<_ACEOF 23248 /* confdefs.h. */ 23249 _ACEOF 23250 cat confdefs.h >>conftest.$ac_ext 23251 cat >>conftest.$ac_ext <<_ACEOF 23252 /* end confdefs.h. */ 23253 23254 #include <sys/types.h> 23255 #include <dirent.h> 23256 23257 int 23258 main () 23259 { 23260 23261 DIR *dirp; 23262 int fd; 23263 dirp = opendir("."); 23264 fd = dirp->dd_fd; 23265 closedir(dirp); 23266 23267 ; 23268 return 0; 23269 } 23270 _ACEOF 23271 rm -f conftest.$ac_objext conftest$ac_exeext 23272 if { (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 23294 else 23295 echo "$as_me: failed program was:" >&5 23296 sed 's/^/| /' conftest.$ac_ext >&5 23297 23298 dbus_have_ddfd=no 23299 fi 23300 rm -f conftest.err conftest.$ac_objext \ 23301 conftest$ac_exeext conftest.$ac_ext 23302 echo "$as_me:$LINENO: result: $dbus_have_ddfd" >&5 23303 echo "${ECHO_T}$dbus_have_ddfd" >&6 23304 if test "$dbus_have_ddfd" = yes; then 23305 23306 cat >>confdefs.h <<\_ACEOF 23307 #define HAVE_DDFD 1 23308 _ACEOF 23309 23310 fi 23311 fi 23312 23313 23314 for ac_header in execinfo.h 23315 do 23316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23317 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23318 echo "$as_me:$LINENO: checking for $ac_header" >&5 23319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23320 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23321 echo $ECHO_N "(cached) $ECHO_C" >&6 23322 fi 23323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23325 else 23326 # Is the header compilable? 23327 echo "$as_me:$LINENO: checking $ac_header usability" >&5 23328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23329 cat >conftest.$ac_ext <<_ACEOF 23330 /* confdefs.h. */ 23331 _ACEOF 23332 cat confdefs.h >>conftest.$ac_ext 23333 cat >>conftest.$ac_ext <<_ACEOF 23334 /* end confdefs.h. */ 23335 $ac_includes_default 23336 #include <$ac_header> 23337 _ACEOF 23338 rm -f conftest.$ac_objext 23339 if { (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 23361 else 23362 echo "$as_me: failed program was:" >&5 23363 sed 's/^/| /' conftest.$ac_ext >&5 23364 23365 ac_header_compiler=no 23366 fi 23367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23369 echo "${ECHO_T}$ac_header_compiler" >&6 23370 23371 # Is the header present? 23372 echo "$as_me:$LINENO: checking $ac_header presence" >&5 23373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23374 cat >conftest.$ac_ext <<_ACEOF 23375 /* confdefs.h. */ 23376 _ACEOF 23377 cat confdefs.h >>conftest.$ac_ext 23378 cat >>conftest.$ac_ext <<_ACEOF 23379 /* end confdefs.h. */ 23380 #include <$ac_header> 23381 _ACEOF 23382 if { (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 23396 else 23397 ac_cpp_err=yes 23398 fi 23399 if test -z "$ac_cpp_err"; then 23400 ac_header_preproc=yes 23401 else 23402 echo "$as_me: failed program was:" >&5 23403 sed 's/^/| /' conftest.$ac_ext >&5 23404 23405 ac_header_preproc=no 23406 fi 23407 rm -f conftest.err conftest.$ac_ext 23408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23409 echo "${ECHO_T}$ac_header_preproc" >&6 23410 23411 # So? What about this header? 23412 case $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 23415 echo "$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 23417 echo "$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 23422 echo "$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 23424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23426 echo "$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 23428 echo "$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 23430 echo "$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 23432 echo "$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 ;; 23442 esac 23443 echo "$as_me:$LINENO: checking for $ac_header" >&5 23444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23445 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23446 echo $ECHO_N "(cached) $ECHO_C" >&6 23447 else 23448 eval "$as_ac_Header=\$ac_header_preproc" 23449 fi 23450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23452 23453 fi 23454 if 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 23459 for ac_func in backtrace 23460 do 23461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23462 echo "$as_me:$LINENO: checking for $ac_func" >&5 23463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23464 if eval "test \"\${$as_ac_var+set}\" = set"; then 23465 echo $ECHO_N "(cached) $ECHO_C" >&6 23466 else 23467 cat >conftest.$ac_ext <<_ACEOF 23468 /* confdefs.h. */ 23469 _ACEOF 23470 cat confdefs.h >>conftest.$ac_ext 23471 cat >>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 23492 extern "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. */ 23497 char $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) 23502 choke me 23503 #else 23504 char (*f) () = $ac_func; 23505 #endif 23506 #ifdef __cplusplus 23507 } 23508 #endif 23509 23510 int 23511 main () 23512 { 23513 return f != $ac_func; 23514 ; 23515 return 0; 23516 } 23517 _ACEOF 23518 rm -f conftest.$ac_objext conftest$ac_exeext 23519 if { (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" 23541 else 23542 echo "$as_me: failed program was:" >&5 23543 sed 's/^/| /' conftest.$ac_ext >&5 23544 23545 eval "$as_ac_var=no" 23546 fi 23547 rm -f conftest.err conftest.$ac_objext \ 23548 conftest$ac_exeext conftest.$ac_ext 23549 fi 23550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23552 if 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 23557 fi 23558 done 23559 23560 fi 23561 23562 done 23563 23564 23565 23566 for ac_header in errno.h 23567 do 23568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23569 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23570 echo "$as_me:$LINENO: checking for $ac_header" >&5 23571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23572 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23573 echo $ECHO_N "(cached) $ECHO_C" >&6 23574 fi 23575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23577 else 23578 # Is the header compilable? 23579 echo "$as_me:$LINENO: checking $ac_header usability" >&5 23580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23581 cat >conftest.$ac_ext <<_ACEOF 23582 /* confdefs.h. */ 23583 _ACEOF 23584 cat confdefs.h >>conftest.$ac_ext 23585 cat >>conftest.$ac_ext <<_ACEOF 23586 /* end confdefs.h. */ 23587 $ac_includes_default 23588 #include <$ac_header> 23589 _ACEOF 23590 rm -f conftest.$ac_objext 23591 if { (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 23613 else 23614 echo "$as_me: failed program was:" >&5 23615 sed 's/^/| /' conftest.$ac_ext >&5 23616 23617 ac_header_compiler=no 23618 fi 23619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23621 echo "${ECHO_T}$ac_header_compiler" >&6 23622 23623 # Is the header present? 23624 echo "$as_me:$LINENO: checking $ac_header presence" >&5 23625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23626 cat >conftest.$ac_ext <<_ACEOF 23627 /* confdefs.h. */ 23628 _ACEOF 23629 cat confdefs.h >>conftest.$ac_ext 23630 cat >>conftest.$ac_ext <<_ACEOF 23631 /* end confdefs.h. */ 23632 #include <$ac_header> 23633 _ACEOF 23634 if { (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 23648 else 23649 ac_cpp_err=yes 23650 fi 23651 if test -z "$ac_cpp_err"; then 23652 ac_header_preproc=yes 23653 else 23654 echo "$as_me: failed program was:" >&5 23655 sed 's/^/| /' conftest.$ac_ext >&5 23656 23657 ac_header_preproc=no 23658 fi 23659 rm -f conftest.err conftest.$ac_ext 23660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23661 echo "${ECHO_T}$ac_header_preproc" >&6 23662 23663 # So? What about this header? 23664 case $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 23667 echo "$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 23669 echo "$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 23674 echo "$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 23676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23678 echo "$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 23680 echo "$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 23682 echo "$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 23684 echo "$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 ;; 23694 esac 23695 echo "$as_me:$LINENO: checking for $ac_header" >&5 23696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23697 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23698 echo $ECHO_N "(cached) $ECHO_C" >&6 23699 else 23700 eval "$as_ac_Header=\$ac_header_preproc" 23701 fi 23702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23704 23705 fi 23706 if 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 23711 fi 23712 23713 done 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 23721 ac_ext=c 23722 ac_cpp='$CPP $CPPFLAGS' 23723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23725 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23726 23727 echo "$as_me:$LINENO: checking for posix getpwnam_r" >&5 23728 echo $ECHO_N "checking for posix getpwnam_r... $ECHO_C" >&6 23729 if test "${ac_cv_func_posix_getpwnam_r+set}" = set; then 23730 echo $ECHO_N "(cached) $ECHO_C" >&6 23731 else 23732 if test "$cross_compiling" = yes; then 23733 ac_cv_func_posix_getpwnam_r=yes 23734 23735 else 23736 cat >conftest.$ac_ext <<_ACEOF 23737 /* confdefs.h. */ 23738 _ACEOF 23739 cat confdefs.h >>conftest.$ac_ext 23740 cat >>conftest.$ac_ext <<_ACEOF 23741 /* end confdefs.h. */ 23742 23743 #include <errno.h> 23744 #include <pwd.h> 23745 23746 int 23747 main () 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 23763 rm -f conftest$ac_exeext 23764 if { (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 23775 else 23776 echo "$as_me: program exited with status $ac_status" >&5 23777 echo "$as_me: failed program was:" >&5 23778 sed 's/^/| /' conftest.$ac_ext >&5 23779 23780 ( exit $ac_status ) 23781 ac_cv_func_posix_getpwnam_r=no 23782 fi 23783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23784 fi 23785 fi 23786 echo "$as_me:$LINENO: result: $ac_cv_func_posix_getpwnam_r" >&5 23787 echo "${ECHO_T}$ac_cv_func_posix_getpwnam_r" >&6 23788 ac_ext=c 23789 ac_cpp='$CPP $CPPFLAGS' 23790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23792 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23793 23794 23795 if test "$ac_cv_func_posix_getpwnam_r" = yes; then 23796 23797 cat >>confdefs.h <<\_ACEOF 23798 #define HAVE_POSIX_GETPWNAM_R 1 23799 _ACEOF 23800 23801 else 23802 echo "$as_me:$LINENO: checking for nonposix getpwnam_r" >&5 23803 echo $ECHO_N "checking for nonposix getpwnam_r... $ECHO_C" >&6 23804 if test "${ac_cv_func_nonposix_getpwnam_r+set}" = set; then 23805 echo $ECHO_N "(cached) $ECHO_C" >&6 23806 else 23807 cat >conftest.$ac_ext <<_ACEOF 23808 /* confdefs.h. */ 23809 _ACEOF 23810 cat confdefs.h >>conftest.$ac_ext 23811 cat >>conftest.$ac_ext <<_ACEOF 23812 /* end confdefs.h. */ 23813 #include <pwd.h> 23814 int 23815 main () 23816 { 23817 char buffer[10000]; 23818 struct passwd pwd; 23819 getpwnam_r ("", &pwd, buffer, 23820 sizeof (buffer)); 23821 ; 23822 return 0; 23823 } 23824 _ACEOF 23825 rm -f conftest.$ac_objext conftest$ac_exeext 23826 if { (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 23848 else 23849 echo "$as_me: failed program was:" >&5 23850 sed 's/^/| /' conftest.$ac_ext >&5 23851 23852 ac_cv_func_nonposix_getpwnam_r=no 23853 fi 23854 rm -f conftest.err conftest.$ac_objext \ 23855 conftest$ac_exeext conftest.$ac_ext 23856 fi 23857 echo "$as_me:$LINENO: result: $ac_cv_func_nonposix_getpwnam_r" >&5 23858 echo "${ECHO_T}$ac_cv_func_nonposix_getpwnam_r" >&6 23859 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then 23860 23861 cat >>confdefs.h <<\_ACEOF 23862 #define HAVE_NONPOSIX_GETPWNAM_R 1 23863 _ACEOF 23864 23865 fi 23866 fi 23867 23868 echo "$as_me:$LINENO: checking whether socklen_t is defined" >&5 23869 echo $ECHO_N "checking whether socklen_t is defined... $ECHO_C" >&6 23870 cat >conftest.$ac_ext <<_ACEOF 23871 /* confdefs.h. */ 23872 _ACEOF 23873 cat confdefs.h >>conftest.$ac_ext 23874 cat >>conftest.$ac_ext <<_ACEOF 23875 /* end confdefs.h. */ 23876 23877 #include <sys/types.h> 23878 #include <sys/socket.h> 23879 #include <netdb.h> 23880 23881 int 23882 main () 23883 { 23884 23885 socklen_t foo; 23886 foo = 1; 23887 23888 ; 23889 return 0; 23890 } 23891 _ACEOF 23892 rm -f conftest.$ac_objext 23893 if { (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 23915 else 23916 echo "$as_me: failed program was:" >&5 23917 sed 's/^/| /' conftest.$ac_ext >&5 23918 23919 dbus_have_socklen_t=no 23920 fi 23921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23922 echo "$as_me:$LINENO: result: $dbus_have_socklen_t" >&5 23923 echo "${ECHO_T}$dbus_have_socklen_t" >&6 23924 23925 if test "x$dbus_have_socklen_t" = "xyes"; then 23926 23927 cat >>confdefs.h <<\_ACEOF 23928 #define HAVE_SOCKLEN_T 1 23929 _ACEOF 23930 23931 fi 23932 23933 23934 for ac_header in sys/uio.h 23935 do 23936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23937 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23938 echo "$as_me:$LINENO: checking for $ac_header" >&5 23939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23940 if eval "test \"\${$as_ac_Header+set}\" = set"; then 23941 echo $ECHO_N "(cached) $ECHO_C" >&6 23942 fi 23943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23945 else 23946 # Is the header compilable? 23947 echo "$as_me:$LINENO: checking $ac_header usability" >&5 23948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23949 cat >conftest.$ac_ext <<_ACEOF 23950 /* confdefs.h. */ 23951 _ACEOF 23952 cat confdefs.h >>conftest.$ac_ext 23953 cat >>conftest.$ac_ext <<_ACEOF 23954 /* end confdefs.h. */ 23955 $ac_includes_default 23956 #include <$ac_header> 23957 _ACEOF 23958 rm -f conftest.$ac_objext 23959 if { (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 23981 else 23982 echo "$as_me: failed program was:" >&5 23983 sed 's/^/| /' conftest.$ac_ext >&5 23984 23985 ac_header_compiler=no 23986 fi 23987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23989 echo "${ECHO_T}$ac_header_compiler" >&6 23990 23991 # Is the header present? 23992 echo "$as_me:$LINENO: checking $ac_header presence" >&5 23993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23994 cat >conftest.$ac_ext <<_ACEOF 23995 /* confdefs.h. */ 23996 _ACEOF 23997 cat confdefs.h >>conftest.$ac_ext 23998 cat >>conftest.$ac_ext <<_ACEOF 23999 /* end confdefs.h. */ 24000 #include <$ac_header> 24001 _ACEOF 24002 if { (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 24016 else 24017 ac_cpp_err=yes 24018 fi 24019 if test -z "$ac_cpp_err"; then 24020 ac_header_preproc=yes 24021 else 24022 echo "$as_me: failed program was:" >&5 24023 sed 's/^/| /' conftest.$ac_ext >&5 24024 24025 ac_header_preproc=no 24026 fi 24027 rm -f conftest.err conftest.$ac_ext 24028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24029 echo "${ECHO_T}$ac_header_preproc" >&6 24030 24031 # So? What about this header? 24032 case $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 24035 echo "$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 24037 echo "$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 24042 echo "$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 24044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24046 echo "$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 24048 echo "$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 24050 echo "$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 24052 echo "$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 ;; 24062 esac 24063 echo "$as_me:$LINENO: checking for $ac_header" >&5 24064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24065 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24066 echo $ECHO_N "(cached) $ECHO_C" >&6 24067 else 24068 eval "$as_ac_Header=\$ac_header_preproc" 24069 fi 24070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24072 24073 fi 24074 if 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 24079 for ac_func in writev 24080 do 24081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24082 echo "$as_me:$LINENO: checking for $ac_func" >&5 24083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24084 if eval "test \"\${$as_ac_var+set}\" = set"; then 24085 echo $ECHO_N "(cached) $ECHO_C" >&6 24086 else 24087 cat >conftest.$ac_ext <<_ACEOF 24088 /* confdefs.h. */ 24089 _ACEOF 24090 cat confdefs.h >>conftest.$ac_ext 24091 cat >>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 24112 extern "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. */ 24117 char $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) 24122 choke me 24123 #else 24124 char (*f) () = $ac_func; 24125 #endif 24126 #ifdef __cplusplus 24127 } 24128 #endif 24129 24130 int 24131 main () 24132 { 24133 return f != $ac_func; 24134 ; 24135 return 0; 24136 } 24137 _ACEOF 24138 rm -f conftest.$ac_objext conftest$ac_exeext 24139 if { (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" 24161 else 24162 echo "$as_me: failed program was:" >&5 24163 sed 's/^/| /' conftest.$ac_ext >&5 24164 24165 eval "$as_ac_var=no" 24166 fi 24167 rm -f conftest.err conftest.$ac_objext \ 24168 conftest$ac_exeext conftest.$ac_ext 24169 fi 24170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24172 if 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 24177 fi 24178 done 24179 24180 fi 24181 24182 done 24183 24184 24185 24186 for ac_header in sys/syslimits.h 24187 do 24188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24189 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24190 echo "$as_me:$LINENO: checking for $ac_header" >&5 24191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24192 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24193 echo $ECHO_N "(cached) $ECHO_C" >&6 24194 fi 24195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24197 else 24198 # Is the header compilable? 24199 echo "$as_me:$LINENO: checking $ac_header usability" >&5 24200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24201 cat >conftest.$ac_ext <<_ACEOF 24202 /* confdefs.h. */ 24203 _ACEOF 24204 cat confdefs.h >>conftest.$ac_ext 24205 cat >>conftest.$ac_ext <<_ACEOF 24206 /* end confdefs.h. */ 24207 $ac_includes_default 24208 #include <$ac_header> 24209 _ACEOF 24210 rm -f conftest.$ac_objext 24211 if { (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 24233 else 24234 echo "$as_me: failed program was:" >&5 24235 sed 's/^/| /' conftest.$ac_ext >&5 24236 24237 ac_header_compiler=no 24238 fi 24239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24241 echo "${ECHO_T}$ac_header_compiler" >&6 24242 24243 # Is the header present? 24244 echo "$as_me:$LINENO: checking $ac_header presence" >&5 24245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24246 cat >conftest.$ac_ext <<_ACEOF 24247 /* confdefs.h. */ 24248 _ACEOF 24249 cat confdefs.h >>conftest.$ac_ext 24250 cat >>conftest.$ac_ext <<_ACEOF 24251 /* end confdefs.h. */ 24252 #include <$ac_header> 24253 _ACEOF 24254 if { (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 24268 else 24269 ac_cpp_err=yes 24270 fi 24271 if test -z "$ac_cpp_err"; then 24272 ac_header_preproc=yes 24273 else 24274 echo "$as_me: failed program was:" >&5 24275 sed 's/^/| /' conftest.$ac_ext >&5 24276 24277 ac_header_preproc=no 24278 fi 24279 rm -f conftest.err conftest.$ac_ext 24280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24281 echo "${ECHO_T}$ac_header_preproc" >&6 24282 24283 # So? What about this header? 24284 case $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 24287 echo "$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 24289 echo "$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 24294 echo "$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 24296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24298 echo "$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 24300 echo "$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 24302 echo "$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 24304 echo "$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 ;; 24314 esac 24315 echo "$as_me:$LINENO: checking for $ac_header" >&5 24316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24317 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24318 echo $ECHO_N "(cached) $ECHO_C" >&6 24319 else 24320 eval "$as_ac_Header=\$ac_header_preproc" 24321 fi 24322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24324 24325 fi 24326 if 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 24331 fi 24332 24333 done 24334 24335 24336 echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5 24337 echo $ECHO_N "checking for ISO C99 varargs macros in C... $ECHO_C" >&6 24338 cat >conftest.$ac_ext <<_ACEOF 24339 /* confdefs.h. */ 24340 _ACEOF 24341 cat confdefs.h >>conftest.$ac_ext 24342 cat >>conftest.$ac_ext <<_ACEOF 24343 /* end confdefs.h. */ 24344 24345 int 24346 main () 24347 { 24348 24349 int a(int p1, int p2, int p3); 24350 #define call_a(...) a(1,__VA_ARGS__) 24351 call_a(2,3); 24352 24353 ; 24354 return 0; 24355 } 24356 _ACEOF 24357 rm -f conftest.$ac_objext 24358 if { (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 24380 else 24381 echo "$as_me: failed program was:" >&5 24382 sed 's/^/| /' conftest.$ac_ext >&5 24383 24384 dbus_have_iso_c_varargs=no 24385 fi 24386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24387 echo "$as_me:$LINENO: result: $dbus_have_iso_c_varargs" >&5 24388 echo "${ECHO_T}$dbus_have_iso_c_varargs" >&6 24389 24390 echo "$as_me:$LINENO: checking for GNUC varargs macros" >&5 24391 echo $ECHO_N "checking for GNUC varargs macros... $ECHO_C" >&6 24392 cat >conftest.$ac_ext <<_ACEOF 24393 /* confdefs.h. */ 24394 _ACEOF 24395 cat confdefs.h >>conftest.$ac_ext 24396 cat >>conftest.$ac_ext <<_ACEOF 24397 /* end confdefs.h. */ 24398 24399 int 24400 main () 24401 { 24402 24403 int a(int p1, int p2, int p3); 24404 #define call_a(params...) a(1,params) 24405 call_a(2,3); 24406 24407 ; 24408 return 0; 24409 } 24410 _ACEOF 24411 rm -f conftest.$ac_objext 24412 if { (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 24434 else 24435 echo "$as_me: failed program was:" >&5 24436 sed 's/^/| /' conftest.$ac_ext >&5 24437 24438 dbus_have_gnuc_varargs=no 24439 fi 24440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24441 echo "$as_me:$LINENO: result: $dbus_have_gnuc_varargs" >&5 24442 echo "${ECHO_T}$dbus_have_gnuc_varargs" >&6 24443 24444 if test x$dbus_have_iso_c_varargs = xyes; then 24445 24446 cat >>confdefs.h <<\_ACEOF 24447 #define HAVE_ISO_VARARGS 1 24448 _ACEOF 24449 24450 fi 24451 if test x$dbus_have_gnuc_varargs = xyes; then 24452 24453 cat >>confdefs.h <<\_ACEOF 24454 #define HAVE_GNUC_VARARGS 1 24455 _ACEOF 24456 24457 fi 24458 24459 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5 24460 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6 24461 cat >conftest.$ac_ext <<_ACEOF 24462 /* confdefs.h. */ 24463 _ACEOF 24464 cat confdefs.h >>conftest.$ac_ext 24465 cat >>conftest.$ac_ext <<_ACEOF 24466 /* end confdefs.h. */ 24467 24468 #include <sys/types.h> 24469 #include <sys/socket.h> 24470 24471 int 24472 main () 24473 { 24474 24475 struct cmsgcred cred; 24476 24477 cred.cmcred_pid = 0; 24478 24479 ; 24480 return 0; 24481 } 24482 _ACEOF 24483 rm -f conftest.$ac_objext 24484 if { (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 24506 else 24507 echo "$as_me: failed program was:" >&5 24508 sed 's/^/| /' conftest.$ac_ext >&5 24509 24510 dbus_have_struct_cmsgcred=no 24511 fi 24512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24513 echo "$as_me:$LINENO: result: $dbus_have_struct_cmsgcred" >&5 24514 echo "${ECHO_T}$dbus_have_struct_cmsgcred" >&6 24515 24516 if test x$dbus_have_struct_cmsgcred = xyes; then 24517 24518 cat >>confdefs.h <<\_ACEOF 24519 #define HAVE_CMSGCRED 1 24520 _ACEOF 24521 24522 fi 24523 24524 24525 24526 for ac_func in getpeerucred getpeereid 24527 do 24528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24529 echo "$as_me:$LINENO: checking for $ac_func" >&5 24530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24531 if eval "test \"\${$as_ac_var+set}\" = set"; then 24532 echo $ECHO_N "(cached) $ECHO_C" >&6 24533 else 24534 cat >conftest.$ac_ext <<_ACEOF 24535 /* confdefs.h. */ 24536 _ACEOF 24537 cat confdefs.h >>conftest.$ac_ext 24538 cat >>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 24559 extern "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. */ 24564 char $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) 24569 choke me 24570 #else 24571 char (*f) () = $ac_func; 24572 #endif 24573 #ifdef __cplusplus 24574 } 24575 #endif 24576 24577 int 24578 main () 24579 { 24580 return f != $ac_func; 24581 ; 24582 return 0; 24583 } 24584 _ACEOF 24585 rm -f conftest.$ac_objext conftest$ac_exeext 24586 if { (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" 24608 else 24609 echo "$as_me: failed program was:" >&5 24610 sed 's/^/| /' conftest.$ac_ext >&5 24611 24612 eval "$as_ac_var=no" 24613 fi 24614 rm -f conftest.err conftest.$ac_objext \ 24615 conftest$ac_exeext conftest.$ac_ext 24616 fi 24617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24619 if 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 24624 fi 24625 done 24626 24627 24628 #### Abstract sockets 24629 24630 ac_ext=c 24631 ac_cpp='$CPP $CPPFLAGS' 24632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24634 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24635 24636 echo "$as_me:$LINENO: checking abstract socket namespace" >&5 24637 echo $ECHO_N "checking abstract socket namespace... $ECHO_C" >&6 24638 if test "${ac_cv_have_abstract_sockets+set}" = set; then 24639 echo $ECHO_N "(cached) $ECHO_C" >&6 24640 else 24641 if test "$cross_compiling" = yes; then 24642 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 24643 See \`config.log' for more details." >&5 24644 echo "$as_me: error: cannot run test program while cross compiling 24645 See \`config.log' for more details." >&2;} 24646 { (exit 1); exit 1; }; } 24647 else 24648 cat >conftest.$ac_ext <<_ACEOF 24649 /* confdefs.h. */ 24650 _ACEOF 24651 cat confdefs.h >>conftest.$ac_ext 24652 cat >>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 24663 int 24664 main () 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 24696 rm -f conftest$ac_exeext 24697 if { (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 24708 else 24709 echo "$as_me: program exited with status $ac_status" >&5 24710 echo "$as_me: failed program was:" >&5 24711 sed 's/^/| /' conftest.$ac_ext >&5 24712 24713 ( exit $ac_status ) 24714 ac_cv_have_abstract_sockets=no 24715 24716 fi 24717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24718 fi 24719 fi 24720 echo "$as_me:$LINENO: result: $ac_cv_have_abstract_sockets" >&5 24721 echo "${ECHO_T}$ac_cv_have_abstract_sockets" >&6 24722 ac_ext=c 24723 ac_cpp='$CPP $CPPFLAGS' 24724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24726 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24727 24728 24729 if 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 24732 echo "$as_me: error: Abstract sockets explicitly required, and support not detected." >&2;} 24733 { (exit 1); exit 1; }; } 24734 fi 24735 fi 24736 24737 if test x$enable_abstract_sockets = xno; then 24738 ac_cv_have_abstract_sockets=no; 24739 fi 24740 24741 if test x$ac_cv_have_abstract_sockets = xyes ; then 24742 DBUS_PATH_OR_ABSTRACT=abstract 24743 24744 cat >>confdefs.h <<\_ACEOF 24745 #define HAVE_ABSTRACT_SOCKETS 1 24746 _ACEOF 24747 24748 else 24749 DBUS_PATH_OR_ABSTRACT=path 24750 fi 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 24759 echo "$as_me:$LINENO: checking for XML_ParserCreate_MM in -lexpat" >&5 24760 echo $ECHO_N "checking for XML_ParserCreate_MM in -lexpat... $ECHO_C" >&6 24761 if test "${ac_cv_lib_expat_XML_ParserCreate_MM+set}" = set; then 24762 echo $ECHO_N "(cached) $ECHO_C" >&6 24763 else 24764 ac_check_lib_save_LIBS=$LIBS 24765 LIBS="-lexpat $LIBS" 24766 cat >conftest.$ac_ext <<_ACEOF 24767 /* confdefs.h. */ 24768 _ACEOF 24769 cat confdefs.h >>conftest.$ac_ext 24770 cat >>conftest.$ac_ext <<_ACEOF 24771 /* end confdefs.h. */ 24772 24773 /* Override any gcc2 internal prototype to avoid an error. */ 24774 #ifdef __cplusplus 24775 extern "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. */ 24779 char XML_ParserCreate_MM (); 24780 int 24781 main () 24782 { 24783 XML_ParserCreate_MM (); 24784 ; 24785 return 0; 24786 } 24787 _ACEOF 24788 rm -f conftest.$ac_objext conftest$ac_exeext 24789 if { (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 24811 else 24812 echo "$as_me: failed program was:" >&5 24813 sed 's/^/| /' conftest.$ac_ext >&5 24814 24815 ac_cv_lib_expat_XML_ParserCreate_MM=no 24816 fi 24817 rm -f conftest.err conftest.$ac_objext \ 24818 conftest$ac_exeext conftest.$ac_ext 24819 LIBS=$ac_check_lib_save_LIBS 24820 fi 24821 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate_MM" >&5 24822 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate_MM" >&6 24823 if test $ac_cv_lib_expat_XML_ParserCreate_MM = yes; then 24824 24825 for ac_header in expat.h 24826 do 24827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24828 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24829 echo "$as_me:$LINENO: checking for $ac_header" >&5 24830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24831 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24832 echo $ECHO_N "(cached) $ECHO_C" >&6 24833 fi 24834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24836 else 24837 # Is the header compilable? 24838 echo "$as_me:$LINENO: checking $ac_header usability" >&5 24839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24840 cat >conftest.$ac_ext <<_ACEOF 24841 /* confdefs.h. */ 24842 _ACEOF 24843 cat confdefs.h >>conftest.$ac_ext 24844 cat >>conftest.$ac_ext <<_ACEOF 24845 /* end confdefs.h. */ 24846 $ac_includes_default 24847 #include <$ac_header> 24848 _ACEOF 24849 rm -f conftest.$ac_objext 24850 if { (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 24872 else 24873 echo "$as_me: failed program was:" >&5 24874 sed 's/^/| /' conftest.$ac_ext >&5 24875 24876 ac_header_compiler=no 24877 fi 24878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24880 echo "${ECHO_T}$ac_header_compiler" >&6 24881 24882 # Is the header present? 24883 echo "$as_me:$LINENO: checking $ac_header presence" >&5 24884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24885 cat >conftest.$ac_ext <<_ACEOF 24886 /* confdefs.h. */ 24887 _ACEOF 24888 cat confdefs.h >>conftest.$ac_ext 24889 cat >>conftest.$ac_ext <<_ACEOF 24890 /* end confdefs.h. */ 24891 #include <$ac_header> 24892 _ACEOF 24893 if { (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 24907 else 24908 ac_cpp_err=yes 24909 fi 24910 if test -z "$ac_cpp_err"; then 24911 ac_header_preproc=yes 24912 else 24913 echo "$as_me: failed program was:" >&5 24914 sed 's/^/| /' conftest.$ac_ext >&5 24915 24916 ac_header_preproc=no 24917 fi 24918 rm -f conftest.err conftest.$ac_ext 24919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24920 echo "${ECHO_T}$ac_header_preproc" >&6 24921 24922 # So? What about this header? 24923 case $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 24926 echo "$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 24928 echo "$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 24933 echo "$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 24935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24937 echo "$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 24939 echo "$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 24941 echo "$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 24943 echo "$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 ;; 24953 esac 24954 echo "$as_me:$LINENO: checking for $ac_header" >&5 24955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24956 if eval "test \"\${$as_ac_Header+set}\" = set"; then 24957 echo $ECHO_N "(cached) $ECHO_C" >&6 24958 else 24959 eval "$as_ac_Header=\$ac_header_preproc" 24960 fi 24961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24963 24964 fi 24965 if 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 24970 else 24971 have_expat=false 24972 fi 24973 24974 done 24975 24976 else 24977 have_expat=false 24978 fi 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. 24986 set dummy pkg-config; ac_word=$2 24987 echo "$as_me:$LINENO: checking for $ac_word" >&5 24988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 24990 echo $ECHO_N "(cached) $ECHO_C" >&6 24991 else 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 24998 for as_dir in $PATH 24999 do 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 25008 done 25009 done 25010 25011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 25012 ;; 25013 esac 25014 fi 25015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 25016 25017 if test -n "$PKG_CONFIG"; then 25018 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 25019 echo "${ECHO_T}$PKG_CONFIG" >&6 25020 else 25021 echo "$as_me:$LINENO: result: no" >&5 25022 echo "${ECHO_T}no" >&6 25023 fi 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 25036 echo $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 25040 echo "${ECHO_T}yes" >&6 25041 succeeded=yes 25042 25043 echo "$as_me:$LINENO: checking LIBXML_CFLAGS" >&5 25044 echo $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 25047 echo "${ECHO_T}$LIBXML_CFLAGS" >&6 25048 25049 echo "$as_me:$LINENO: checking LIBXML_LIBS" >&5 25050 echo $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 25053 echo "${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 25079 dbus_use_libxml=false 25080 dbus_use_expat=false 25081 if 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 25085 echo "$as_me: error: Explicitly requested expat but expat not found" >&2;} 25086 { (exit 1); exit 1; }; } 25087 fi 25088 elif 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 25092 echo "$as_me: error: Explicitly requested libxml but libxml not found" >&2;} 25093 { (exit 1); exit 1; }; } 25094 fi 25095 else 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 25107 echo "$as_me: error: No XML library found, check config.log for failed attempts" >&2;} 25108 { (exit 1); exit 1; }; } 25109 fi 25110 fi 25111 25112 25113 25114 if $dbus_use_expat; then 25115 DBUS_USE_EXPAT_TRUE= 25116 DBUS_USE_EXPAT_FALSE='#' 25117 else 25118 DBUS_USE_EXPAT_TRUE='#' 25119 DBUS_USE_EXPAT_FALSE= 25120 fi 25121 25122 25123 25124 if $dbus_use_libxml; then 25125 DBUS_USE_LIBXML_TRUE= 25126 DBUS_USE_LIBXML_FALSE='#' 25127 else 25128 DBUS_USE_LIBXML_TRUE='#' 25129 DBUS_USE_LIBXML_FALSE= 25130 fi 25131 25132 25133 if $dbus_use_expat; then 25134 XML_LIBS=-lexpat 25135 XML_CFLAGS= 25136 fi 25137 if $dbus_use_libxml; then 25138 XML_LIBS=$LIBXML_LIBS 25139 XML_CFLAGS=$LIBXML_CFLAGS 25140 fi 25141 25142 # Thread lib detection 25143 echo "$as_me:$LINENO: checking for pthread_cond_timedwait" >&5 25144 echo $ECHO_N "checking for pthread_cond_timedwait... $ECHO_C" >&6 25145 if test "${ac_cv_func_pthread_cond_timedwait+set}" = set; then 25146 echo $ECHO_N "(cached) $ECHO_C" >&6 25147 else 25148 cat >conftest.$ac_ext <<_ACEOF 25149 /* confdefs.h. */ 25150 _ACEOF 25151 cat confdefs.h >>conftest.$ac_ext 25152 cat >>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 25173 extern "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. */ 25178 char 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) 25183 choke me 25184 #else 25185 char (*f) () = pthread_cond_timedwait; 25186 #endif 25187 #ifdef __cplusplus 25188 } 25189 #endif 25190 25191 int 25192 main () 25193 { 25194 return f != pthread_cond_timedwait; 25195 ; 25196 return 0; 25197 } 25198 _ACEOF 25199 rm -f conftest.$ac_objext conftest$ac_exeext 25200 if { (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 25222 else 25223 echo "$as_me: failed program was:" >&5 25224 sed 's/^/| /' conftest.$ac_ext >&5 25225 25226 ac_cv_func_pthread_cond_timedwait=no 25227 fi 25228 rm -f conftest.err conftest.$ac_objext \ 25229 conftest$ac_exeext conftest.$ac_ext 25230 fi 25231 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cond_timedwait" >&5 25232 echo "${ECHO_T}$ac_cv_func_pthread_cond_timedwait" >&6 25233 if test $ac_cv_func_pthread_cond_timedwait = yes; then 25234 : 25235 else 25236 echo "$as_me:$LINENO: checking for pthread_cond_timedwait in -lpthread" >&5 25237 echo $ECHO_N "checking for pthread_cond_timedwait in -lpthread... $ECHO_C" >&6 25238 if test "${ac_cv_lib_pthread_pthread_cond_timedwait+set}" = set; then 25239 echo $ECHO_N "(cached) $ECHO_C" >&6 25240 else 25241 ac_check_lib_save_LIBS=$LIBS 25242 LIBS="-lpthread $LIBS" 25243 cat >conftest.$ac_ext <<_ACEOF 25244 /* confdefs.h. */ 25245 _ACEOF 25246 cat confdefs.h >>conftest.$ac_ext 25247 cat >>conftest.$ac_ext <<_ACEOF 25248 /* end confdefs.h. */ 25249 25250 /* Override any gcc2 internal prototype to avoid an error. */ 25251 #ifdef __cplusplus 25252 extern "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. */ 25256 char pthread_cond_timedwait (); 25257 int 25258 main () 25259 { 25260 pthread_cond_timedwait (); 25261 ; 25262 return 0; 25263 } 25264 _ACEOF 25265 rm -f conftest.$ac_objext conftest$ac_exeext 25266 if { (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 25288 else 25289 echo "$as_me: failed program was:" >&5 25290 sed 's/^/| /' conftest.$ac_ext >&5 25291 25292 ac_cv_lib_pthread_pthread_cond_timedwait=no 25293 fi 25294 rm -f conftest.err conftest.$ac_objext \ 25295 conftest$ac_exeext conftest.$ac_ext 25296 LIBS=$ac_check_lib_save_LIBS 25297 fi 25298 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cond_timedwait" >&5 25299 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cond_timedwait" >&6 25300 if test $ac_cv_lib_pthread_pthread_cond_timedwait = yes; then 25301 THREAD_LIBS="-lpthread" 25302 fi 25303 25304 fi 25305 25306 25307 # SELinux detection 25308 if test x$enable_selinux = xno ; then 25309 have_selinux=no; 25310 else 25311 # See if we have SELinux library 25312 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 25313 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 25314 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then 25315 echo $ECHO_N "(cached) $ECHO_C" >&6 25316 else 25317 ac_check_lib_save_LIBS=$LIBS 25318 LIBS="-lselinux $LIBS" 25319 cat >conftest.$ac_ext <<_ACEOF 25320 /* confdefs.h. */ 25321 _ACEOF 25322 cat confdefs.h >>conftest.$ac_ext 25323 cat >>conftest.$ac_ext <<_ACEOF 25324 /* end confdefs.h. */ 25325 25326 /* Override any gcc2 internal prototype to avoid an error. */ 25327 #ifdef __cplusplus 25328 extern "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. */ 25332 char is_selinux_enabled (); 25333 int 25334 main () 25335 { 25336 is_selinux_enabled (); 25337 ; 25338 return 0; 25339 } 25340 _ACEOF 25341 rm -f conftest.$ac_objext conftest$ac_exeext 25342 if { (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 25364 else 25365 echo "$as_me: failed program was:" >&5 25366 sed 's/^/| /' conftest.$ac_ext >&5 25367 25368 ac_cv_lib_selinux_is_selinux_enabled=no 25369 fi 25370 rm -f conftest.err conftest.$ac_objext \ 25371 conftest$ac_exeext conftest.$ac_ext 25372 LIBS=$ac_check_lib_save_LIBS 25373 fi 25374 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 25375 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 25376 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then 25377 have_selinux=yes 25378 else 25379 have_selinux=no 25380 fi 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 25386 echo $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 25390 cat confdefs.h >>conftest.$ac_ext 25391 cat >>conftest.$ac_ext <<_ACEOF 25392 /* end confdefs.h. */ 25393 #include <selinux/av_permissions.h> 25394 int 25395 main () 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 25405 rm -f conftest.$ac_objext 25406 if { (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 25428 else 25429 echo "$as_me: failed program was:" >&5 25430 sed 's/^/| /' conftest.$ac_ext >&5 25431 25432 have_selinux=no 25433 fi 25434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25435 echo "$as_me:$LINENO: result: $have_selinux" >&5 25436 echo "${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 25442 echo "$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 25447 echo "$as_me: error: SElinux explicitly required, and SELinux library not found" >&2;} 25448 { (exit 1); exit 1; }; } 25449 fi 25450 fi 25451 fi 25452 25453 25454 25455 if test x$have_selinux = xyes; then 25456 HAVE_SELINUX_TRUE= 25457 HAVE_SELINUX_FALSE='#' 25458 else 25459 HAVE_SELINUX_TRUE='#' 25460 HAVE_SELINUX_FALSE= 25461 fi 25462 25463 25464 if 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 25468 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6 25469 if test "${ac_cv_func_pthread_create+set}" = set; then 25470 echo $ECHO_N "(cached) $ECHO_C" >&6 25471 else 25472 cat >conftest.$ac_ext <<_ACEOF 25473 /* confdefs.h. */ 25474 _ACEOF 25475 cat confdefs.h >>conftest.$ac_ext 25476 cat >>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 25497 extern "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. */ 25502 char 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) 25507 choke me 25508 #else 25509 char (*f) () = pthread_create; 25510 #endif 25511 #ifdef __cplusplus 25512 } 25513 #endif 25514 25515 int 25516 main () 25517 { 25518 return f != pthread_create; 25519 ; 25520 return 0; 25521 } 25522 _ACEOF 25523 rm -f conftest.$ac_objext conftest$ac_exeext 25524 if { (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 25546 else 25547 echo "$as_me: failed program was:" >&5 25548 sed 's/^/| /' conftest.$ac_ext >&5 25549 25550 ac_cv_func_pthread_create=no 25551 fi 25552 rm -f conftest.err conftest.$ac_objext \ 25553 conftest$ac_exeext conftest.$ac_ext 25554 fi 25555 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5 25556 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6 25557 if test $ac_cv_func_pthread_create = yes; then 25558 : 25559 else 25560 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 25561 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 25562 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 25563 echo $ECHO_N "(cached) $ECHO_C" >&6 25564 else 25565 ac_check_lib_save_LIBS=$LIBS 25566 LIBS="-lpthread $LIBS" 25567 cat >conftest.$ac_ext <<_ACEOF 25568 /* confdefs.h. */ 25569 _ACEOF 25570 cat confdefs.h >>conftest.$ac_ext 25571 cat >>conftest.$ac_ext <<_ACEOF 25572 /* end confdefs.h. */ 25573 25574 /* Override any gcc2 internal prototype to avoid an error. */ 25575 #ifdef __cplusplus 25576 extern "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. */ 25580 char pthread_create (); 25581 int 25582 main () 25583 { 25584 pthread_create (); 25585 ; 25586 return 0; 25587 } 25588 _ACEOF 25589 rm -f conftest.$ac_objext conftest$ac_exeext 25590 if { (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 25612 else 25613 echo "$as_me: failed program was:" >&5 25614 sed 's/^/| /' conftest.$ac_ext >&5 25615 25616 ac_cv_lib_pthread_pthread_create=no 25617 fi 25618 rm -f conftest.err conftest.$ac_objext \ 25619 conftest$ac_exeext conftest.$ac_ext 25620 LIBS=$ac_check_lib_save_LIBS 25621 fi 25622 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 25623 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 25624 if test $ac_cv_lib_pthread_pthread_create = yes; then 25625 SELINUX_THREAD_LIBS="-lpthread" 25626 fi 25627 25628 fi 25629 25630 25631 SELINUX_LIBS="-lselinux $SELINUX_THREAD_LIBS" 25632 25633 cat >>confdefs.h <<\_ACEOF 25634 #define HAVE_SELINUX 1 25635 _ACEOF 25636 25637 else 25638 SELINUX_LIBS= 25639 fi 25640 25641 # dnotify checks 25642 if test x$enable_dnotify = xno ; then 25643 have_dnotify=no; 25644 else 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 25650 fi 25651 25652 if test x$have_dnotify = xyes; then 25653 25654 cat >>confdefs.h <<\_ACEOF 25655 #define DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1 25656 _ACEOF 25657 25658 fi 25659 25660 25661 25662 if test x$have_dnotify = xyes; then 25663 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE= 25664 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE='#' 25665 else 25666 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE='#' 25667 DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE= 25668 fi 25669 25670 25671 # kqueue checks 25672 if test x$enable_kqueue = xno ; then 25673 have_kqueue=no 25674 else 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 25678 echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6 25679 if test "${ac_cv_header_sys_event_h+set}" = set; then 25680 echo $ECHO_N "(cached) $ECHO_C" >&6 25681 fi 25682 echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5 25683 echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6 25684 else 25685 # Is the header compilable? 25686 echo "$as_me:$LINENO: checking sys/event.h usability" >&5 25687 echo $ECHO_N "checking sys/event.h usability... $ECHO_C" >&6 25688 cat >conftest.$ac_ext <<_ACEOF 25689 /* confdefs.h. */ 25690 _ACEOF 25691 cat confdefs.h >>conftest.$ac_ext 25692 cat >>conftest.$ac_ext <<_ACEOF 25693 /* end confdefs.h. */ 25694 $ac_includes_default 25695 #include <sys/event.h> 25696 _ACEOF 25697 rm -f conftest.$ac_objext 25698 if { (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 25720 else 25721 echo "$as_me: failed program was:" >&5 25722 sed 's/^/| /' conftest.$ac_ext >&5 25723 25724 ac_header_compiler=no 25725 fi 25726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25728 echo "${ECHO_T}$ac_header_compiler" >&6 25729 25730 # Is the header present? 25731 echo "$as_me:$LINENO: checking sys/event.h presence" >&5 25732 echo $ECHO_N "checking sys/event.h presence... $ECHO_C" >&6 25733 cat >conftest.$ac_ext <<_ACEOF 25734 /* confdefs.h. */ 25735 _ACEOF 25736 cat confdefs.h >>conftest.$ac_ext 25737 cat >>conftest.$ac_ext <<_ACEOF 25738 /* end confdefs.h. */ 25739 #include <sys/event.h> 25740 _ACEOF 25741 if { (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 25755 else 25756 ac_cpp_err=yes 25757 fi 25758 if test -z "$ac_cpp_err"; then 25759 ac_header_preproc=yes 25760 else 25761 echo "$as_me: failed program was:" >&5 25762 sed 's/^/| /' conftest.$ac_ext >&5 25763 25764 ac_header_preproc=no 25765 fi 25766 rm -f conftest.err conftest.$ac_ext 25767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25768 echo "${ECHO_T}$ac_header_preproc" >&6 25769 25770 # So? What about this header? 25771 case $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 25774 echo "$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 25776 echo "$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 25781 echo "$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 25783 echo "$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 25785 echo "$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 25787 echo "$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 25789 echo "$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 25791 echo "$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 ;; 25801 esac 25802 echo "$as_me:$LINENO: checking for sys/event.h" >&5 25803 echo $ECHO_N "checking for sys/event.h... $ECHO_C" >&6 25804 if test "${ac_cv_header_sys_event_h+set}" = set; then 25805 echo $ECHO_N "(cached) $ECHO_C" >&6 25806 else 25807 ac_cv_header_sys_event_h=$ac_header_preproc 25808 fi 25809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5 25810 echo "${ECHO_T}$ac_cv_header_sys_event_h" >&6 25811 25812 fi 25813 if test $ac_cv_header_sys_event_h = yes; then 25814 : 25815 else 25816 have_kqueue=no 25817 fi 25818 25819 25820 echo "$as_me:$LINENO: checking for kqueue" >&5 25821 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6 25822 if test "${ac_cv_func_kqueue+set}" = set; then 25823 echo $ECHO_N "(cached) $ECHO_C" >&6 25824 else 25825 cat >conftest.$ac_ext <<_ACEOF 25826 /* confdefs.h. */ 25827 _ACEOF 25828 cat confdefs.h >>conftest.$ac_ext 25829 cat >>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 25850 extern "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. */ 25855 char 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) 25860 choke me 25861 #else 25862 char (*f) () = kqueue; 25863 #endif 25864 #ifdef __cplusplus 25865 } 25866 #endif 25867 25868 int 25869 main () 25870 { 25871 return f != kqueue; 25872 ; 25873 return 0; 25874 } 25875 _ACEOF 25876 rm -f conftest.$ac_objext conftest$ac_exeext 25877 if { (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 25899 else 25900 echo "$as_me: failed program was:" >&5 25901 sed 's/^/| /' conftest.$ac_ext >&5 25902 25903 ac_cv_func_kqueue=no 25904 fi 25905 rm -f conftest.err conftest.$ac_objext \ 25906 conftest$ac_exeext conftest.$ac_ext 25907 fi 25908 echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5 25909 echo "${ECHO_T}$ac_cv_func_kqueue" >&6 25910 if test $ac_cv_func_kqueue = yes; then 25911 : 25912 else 25913 have_kqueue=no 25914 fi 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 25919 echo "$as_me: error: kqueue support explicitly enabled but not available" >&2;} 25920 { (exit 1); exit 1; }; } 25921 fi 25922 fi 25923 25924 if test x$have_kqueue = xyes; then 25925 25926 cat >>confdefs.h <<\_ACEOF 25927 #define DBUS_BUS_ENABLE_KQUEUE 1 25928 _ACEOF 25929 25930 fi 25931 25932 25933 25934 if test x$have_kqueue = xyes; then 25935 DBUS_BUS_ENABLE_KQUEUE_TRUE= 25936 DBUS_BUS_ENABLE_KQUEUE_FALSE='#' 25937 else 25938 DBUS_BUS_ENABLE_KQUEUE_TRUE='#' 25939 DBUS_BUS_ENABLE_KQUEUE_FALSE= 25940 fi 25941 25942 25943 if test x$enable_console_owner_file = xno ; then 25944 have_console_owner_file=no; 25945 else 25946 case $target_os in 25947 solaris*) 25948 have_console_owner_file=yes; 25949 25950 cat >>confdefs.h <<\_ACEOF 25951 #define HAVE_CONSOLE_OWNER_FILE 1 25952 _ACEOF 25953 25954 ;; 25955 *) 25956 have_console_owner_file=no;; 25957 esac 25958 fi 25959 25960 25961 25962 if test x$have_console_owner_file = xyes; then 25963 HAVE_CONSOLE_OWNER_FILE_TRUE= 25964 HAVE_CONSOLE_OWNER_FILE_FALSE='#' 25965 else 25966 HAVE_CONSOLE_OWNER_FILE_TRUE='#' 25967 HAVE_CONSOLE_OWNER_FILE_FALSE= 25968 fi 25969 25970 25971 #### Set up final flags 25972 DBUS_CLIENT_CFLAGS= 25973 DBUS_CLIENT_LIBS="$THREAD_LIBS" 25974 25975 25976 25977 DBUS_BUS_CFLAGS=$XML_CFLAGS 25978 DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS $THREAD_LIBS" 25979 25980 25981 25982 DBUS_TEST_CFLAGS= 25983 DBUS_TEST_LIBS="$THREAD_LIBS" 25984 25985 25986 25987 ### X11 detection 25988 echo "$as_me:$LINENO: checking for X" >&5 25989 echo $ECHO_N "checking for X... $ECHO_C" >&6 25990 25991 25992 # Check whether --with-x or --without-x was given. 25993 if test "${with_x+set}" = set; then 25994 withval="$with_x" 25995 25996 fi; 25997 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 25998 if test "x$with_x" = xno; then 25999 # The user explicitly disabled X. 26000 have_x=disabled 26001 else 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 26008 else 26009 # One or both of the vars are not set, and there is no cached value. 26010 ac_x_includes=no ac_x_libraries=no 26011 rm -fr conftest.dir 26012 if 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' 26016 acfindx: 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 26043 fi 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. 26047 ac_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 26082 if 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 26088 cat confdefs.h >>conftest.$ac_ext 26089 cat >>conftest.$ac_ext <<_ACEOF 26090 /* end confdefs.h. */ 26091 #include <X11/Xlib.h> 26092 _ACEOF 26093 if { (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 26107 else 26108 ac_cpp_err=yes 26109 fi 26110 if test -z "$ac_cpp_err"; then 26111 # We can compile using X headers with no special include directory. 26112 ac_x_includes= 26113 else 26114 echo "$as_me: failed program was:" >&5 26115 sed '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 26122 done 26123 fi 26124 rm -f conftest.err conftest.$ac_ext 26125 fi # $ac_x_includes = no 26126 26127 if 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 26136 cat confdefs.h >>conftest.$ac_ext 26137 cat >>conftest.$ac_ext <<_ACEOF 26138 /* end confdefs.h. */ 26139 #include <X11/Xlib.h> 26140 int 26141 main () 26142 { 26143 XrmInitialize () 26144 ; 26145 return 0; 26146 } 26147 _ACEOF 26148 rm -f conftest.$ac_objext conftest$ac_exeext 26149 if { (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. 26172 ac_x_libraries= 26173 else 26174 echo "$as_me: failed program was:" >&5 26175 sed 's/^/| /' conftest.$ac_ext >&5 26176 26177 LIBS=$ac_save_LIBS 26178 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 26179 do 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 26187 done 26188 fi 26189 rm -f conftest.err conftest.$ac_objext \ 26190 conftest$ac_exeext conftest.$ac_ext 26191 fi # $ac_x_libraries = no 26192 26193 if 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" 26196 else 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" 26200 fi 26201 fi 26202 26203 fi 26204 eval "$ac_cv_have_x" 26205 fi # $with_x != no 26206 26207 if test "$have_x" != yes; then 26208 echo "$as_me:$LINENO: result: $have_x" >&5 26209 echo "${ECHO_T}$have_x" >&6 26210 no_x=yes 26211 else 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 26219 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 26220 fi 26221 26222 if test "$no_x" = yes; then 26223 # Not all programs may use this symbol, but it does not hurt to define it. 26224 26225 cat >>confdefs.h <<\_ACEOF 26226 #define X_DISPLAY_MISSING 1 26227 _ACEOF 26228 26229 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 26230 else 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 26243 echo $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 26248 cat confdefs.h >>conftest.$ac_ext 26249 cat >>conftest.$ac_ext <<_ACEOF 26250 /* end confdefs.h. */ 26251 26252 int 26253 main () 26254 { 26255 26256 ; 26257 return 0; 26258 } 26259 _ACEOF 26260 rm -f conftest.$ac_objext conftest$ac_exeext 26261 if { (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 26283 else 26284 echo "$as_me: failed program was:" >&5 26285 sed 's/^/| /' conftest.$ac_ext >&5 26286 26287 ac_R_nospace=no 26288 fi 26289 rm -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 26293 echo "${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 26300 cat confdefs.h >>conftest.$ac_ext 26301 cat >>conftest.$ac_ext <<_ACEOF 26302 /* end confdefs.h. */ 26303 26304 int 26305 main () 26306 { 26307 26308 ; 26309 return 0; 26310 } 26311 _ACEOF 26312 rm -f conftest.$ac_objext conftest$ac_exeext 26313 if { (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 26335 else 26336 echo "$as_me: failed program was:" >&5 26337 sed 's/^/| /' conftest.$ac_ext >&5 26338 26339 ac_R_space=no 26340 fi 26341 rm -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 26345 echo "${ECHO_T}yes" >&6 26346 X_LIBS="$X_LIBS -R $x_libraries" 26347 else 26348 echo "$as_me:$LINENO: result: neither works" >&5 26349 echo "${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 26370 cat confdefs.h >>conftest.$ac_ext 26371 cat >>conftest.$ac_ext <<_ACEOF 26372 /* end confdefs.h. */ 26373 26374 /* Override any gcc2 internal prototype to avoid an error. */ 26375 #ifdef __cplusplus 26376 extern "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. */ 26380 char XOpenDisplay (); 26381 int 26382 main () 26383 { 26384 XOpenDisplay (); 26385 ; 26386 return 0; 26387 } 26388 _ACEOF 26389 rm -f conftest.$ac_objext conftest$ac_exeext 26390 if { (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 : 26412 else 26413 echo "$as_me: failed program was:" >&5 26414 sed 's/^/| /' conftest.$ac_ext >&5 26415 26416 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 26417 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 26418 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 26419 echo $ECHO_N "(cached) $ECHO_C" >&6 26420 else 26421 ac_check_lib_save_LIBS=$LIBS 26422 LIBS="-ldnet $LIBS" 26423 cat >conftest.$ac_ext <<_ACEOF 26424 /* confdefs.h. */ 26425 _ACEOF 26426 cat confdefs.h >>conftest.$ac_ext 26427 cat >>conftest.$ac_ext <<_ACEOF 26428 /* end confdefs.h. */ 26429 26430 /* Override any gcc2 internal prototype to avoid an error. */ 26431 #ifdef __cplusplus 26432 extern "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. */ 26436 char dnet_ntoa (); 26437 int 26438 main () 26439 { 26440 dnet_ntoa (); 26441 ; 26442 return 0; 26443 } 26444 _ACEOF 26445 rm -f conftest.$ac_objext conftest$ac_exeext 26446 if { (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 26468 else 26469 echo "$as_me: failed program was:" >&5 26470 sed 's/^/| /' conftest.$ac_ext >&5 26471 26472 ac_cv_lib_dnet_dnet_ntoa=no 26473 fi 26474 rm -f conftest.err conftest.$ac_objext \ 26475 conftest$ac_exeext conftest.$ac_ext 26476 LIBS=$ac_check_lib_save_LIBS 26477 fi 26478 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 26479 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 26480 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 26481 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 26482 fi 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 26486 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 26487 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 26488 echo $ECHO_N "(cached) $ECHO_C" >&6 26489 else 26490 ac_check_lib_save_LIBS=$LIBS 26491 LIBS="-ldnet_stub $LIBS" 26492 cat >conftest.$ac_ext <<_ACEOF 26493 /* confdefs.h. */ 26494 _ACEOF 26495 cat confdefs.h >>conftest.$ac_ext 26496 cat >>conftest.$ac_ext <<_ACEOF 26497 /* end confdefs.h. */ 26498 26499 /* Override any gcc2 internal prototype to avoid an error. */ 26500 #ifdef __cplusplus 26501 extern "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. */ 26505 char dnet_ntoa (); 26506 int 26507 main () 26508 { 26509 dnet_ntoa (); 26510 ; 26511 return 0; 26512 } 26513 _ACEOF 26514 rm -f conftest.$ac_objext conftest$ac_exeext 26515 if { (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 26537 else 26538 echo "$as_me: failed program was:" >&5 26539 sed 's/^/| /' conftest.$ac_ext >&5 26540 26541 ac_cv_lib_dnet_stub_dnet_ntoa=no 26542 fi 26543 rm -f conftest.err conftest.$ac_objext \ 26544 conftest$ac_exeext conftest.$ac_ext 26545 LIBS=$ac_check_lib_save_LIBS 26546 fi 26547 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 26548 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 26549 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 26550 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 26551 fi 26552 26553 fi 26554 fi 26555 rm -f conftest.err conftest.$ac_objext \ 26556 conftest$ac_exeext conftest.$ac_ext 26557 LIBS="$ac_xsave_LIBS" 26558 26559 # msh (at] 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 26568 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 26569 if test "${ac_cv_func_gethostbyname+set}" = set; then 26570 echo $ECHO_N "(cached) $ECHO_C" >&6 26571 else 26572 cat >conftest.$ac_ext <<_ACEOF 26573 /* confdefs.h. */ 26574 _ACEOF 26575 cat confdefs.h >>conftest.$ac_ext 26576 cat >>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 26597 extern "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. */ 26602 char 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) 26607 choke me 26608 #else 26609 char (*f) () = gethostbyname; 26610 #endif 26611 #ifdef __cplusplus 26612 } 26613 #endif 26614 26615 int 26616 main () 26617 { 26618 return f != gethostbyname; 26619 ; 26620 return 0; 26621 } 26622 _ACEOF 26623 rm -f conftest.$ac_objext conftest$ac_exeext 26624 if { (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 26646 else 26647 echo "$as_me: failed program was:" >&5 26648 sed 's/^/| /' conftest.$ac_ext >&5 26649 26650 ac_cv_func_gethostbyname=no 26651 fi 26652 rm -f conftest.err conftest.$ac_objext \ 26653 conftest$ac_exeext conftest.$ac_ext 26654 fi 26655 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 26656 echo "${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 26660 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 26661 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 26662 echo $ECHO_N "(cached) $ECHO_C" >&6 26663 else 26664 ac_check_lib_save_LIBS=$LIBS 26665 LIBS="-lnsl $LIBS" 26666 cat >conftest.$ac_ext <<_ACEOF 26667 /* confdefs.h. */ 26668 _ACEOF 26669 cat confdefs.h >>conftest.$ac_ext 26670 cat >>conftest.$ac_ext <<_ACEOF 26671 /* end confdefs.h. */ 26672 26673 /* Override any gcc2 internal prototype to avoid an error. */ 26674 #ifdef __cplusplus 26675 extern "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. */ 26679 char gethostbyname (); 26680 int 26681 main () 26682 { 26683 gethostbyname (); 26684 ; 26685 return 0; 26686 } 26687 _ACEOF 26688 rm -f conftest.$ac_objext conftest$ac_exeext 26689 if { (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 26711 else 26712 echo "$as_me: failed program was:" >&5 26713 sed 's/^/| /' conftest.$ac_ext >&5 26714 26715 ac_cv_lib_nsl_gethostbyname=no 26716 fi 26717 rm -f conftest.err conftest.$ac_objext \ 26718 conftest$ac_exeext conftest.$ac_ext 26719 LIBS=$ac_check_lib_save_LIBS 26720 fi 26721 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 26722 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 26723 if test $ac_cv_lib_nsl_gethostbyname = yes; then 26724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 26725 fi 26726 26727 if test $ac_cv_lib_nsl_gethostbyname = no; then 26728 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 26729 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 26730 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 26731 echo $ECHO_N "(cached) $ECHO_C" >&6 26732 else 26733 ac_check_lib_save_LIBS=$LIBS 26734 LIBS="-lbsd $LIBS" 26735 cat >conftest.$ac_ext <<_ACEOF 26736 /* confdefs.h. */ 26737 _ACEOF 26738 cat confdefs.h >>conftest.$ac_ext 26739 cat >>conftest.$ac_ext <<_ACEOF 26740 /* end confdefs.h. */ 26741 26742 /* Override any gcc2 internal prototype to avoid an error. */ 26743 #ifdef __cplusplus 26744 extern "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. */ 26748 char gethostbyname (); 26749 int 26750 main () 26751 { 26752 gethostbyname (); 26753 ; 26754 return 0; 26755 } 26756 _ACEOF 26757 rm -f conftest.$ac_objext conftest$ac_exeext 26758 if { (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 26780 else 26781 echo "$as_me: failed program was:" >&5 26782 sed 's/^/| /' conftest.$ac_ext >&5 26783 26784 ac_cv_lib_bsd_gethostbyname=no 26785 fi 26786 rm -f conftest.err conftest.$ac_objext \ 26787 conftest$ac_exeext conftest.$ac_ext 26788 LIBS=$ac_check_lib_save_LIBS 26789 fi 26790 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 26791 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 26792 if test $ac_cv_lib_bsd_gethostbyname = yes; then 26793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 26794 fi 26795 26796 fi 26797 fi 26798 26799 # lieder (at] 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 26807 echo $ECHO_N "checking for connect... $ECHO_C" >&6 26808 if test "${ac_cv_func_connect+set}" = set; then 26809 echo $ECHO_N "(cached) $ECHO_C" >&6 26810 else 26811 cat >conftest.$ac_ext <<_ACEOF 26812 /* confdefs.h. */ 26813 _ACEOF 26814 cat confdefs.h >>conftest.$ac_ext 26815 cat >>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 26836 extern "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. */ 26841 char 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) 26846 choke me 26847 #else 26848 char (*f) () = connect; 26849 #endif 26850 #ifdef __cplusplus 26851 } 26852 #endif 26853 26854 int 26855 main () 26856 { 26857 return f != connect; 26858 ; 26859 return 0; 26860 } 26861 _ACEOF 26862 rm -f conftest.$ac_objext conftest$ac_exeext 26863 if { (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 26885 else 26886 echo "$as_me: failed program was:" >&5 26887 sed 's/^/| /' conftest.$ac_ext >&5 26888 26889 ac_cv_func_connect=no 26890 fi 26891 rm -f conftest.err conftest.$ac_objext \ 26892 conftest$ac_exeext conftest.$ac_ext 26893 fi 26894 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 26895 echo "${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 26899 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 26900 if test "${ac_cv_lib_socket_connect+set}" = set; then 26901 echo $ECHO_N "(cached) $ECHO_C" >&6 26902 else 26903 ac_check_lib_save_LIBS=$LIBS 26904 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 26905 cat >conftest.$ac_ext <<_ACEOF 26906 /* confdefs.h. */ 26907 _ACEOF 26908 cat confdefs.h >>conftest.$ac_ext 26909 cat >>conftest.$ac_ext <<_ACEOF 26910 /* end confdefs.h. */ 26911 26912 /* Override any gcc2 internal prototype to avoid an error. */ 26913 #ifdef __cplusplus 26914 extern "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. */ 26918 char connect (); 26919 int 26920 main () 26921 { 26922 connect (); 26923 ; 26924 return 0; 26925 } 26926 _ACEOF 26927 rm -f conftest.$ac_objext conftest$ac_exeext 26928 if { (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 26950 else 26951 echo "$as_me: failed program was:" >&5 26952 sed 's/^/| /' conftest.$ac_ext >&5 26953 26954 ac_cv_lib_socket_connect=no 26955 fi 26956 rm -f conftest.err conftest.$ac_objext \ 26957 conftest$ac_exeext conftest.$ac_ext 26958 LIBS=$ac_check_lib_save_LIBS 26959 fi 26960 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 26961 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 26962 if test $ac_cv_lib_socket_connect = yes; then 26963 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 26964 fi 26965 26966 fi 26967 26968 # Guillermo Gomez says -lposix is necessary on A/UX. 26969 echo "$as_me:$LINENO: checking for remove" >&5 26970 echo $ECHO_N "checking for remove... $ECHO_C" >&6 26971 if test "${ac_cv_func_remove+set}" = set; then 26972 echo $ECHO_N "(cached) $ECHO_C" >&6 26973 else 26974 cat >conftest.$ac_ext <<_ACEOF 26975 /* confdefs.h. */ 26976 _ACEOF 26977 cat confdefs.h >>conftest.$ac_ext 26978 cat >>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 26999 extern "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. */ 27004 char 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) 27009 choke me 27010 #else 27011 char (*f) () = remove; 27012 #endif 27013 #ifdef __cplusplus 27014 } 27015 #endif 27016 27017 int 27018 main () 27019 { 27020 return f != remove; 27021 ; 27022 return 0; 27023 } 27024 _ACEOF 27025 rm -f conftest.$ac_objext conftest$ac_exeext 27026 if { (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 27048 else 27049 echo "$as_me: failed program was:" >&5 27050 sed 's/^/| /' conftest.$ac_ext >&5 27051 27052 ac_cv_func_remove=no 27053 fi 27054 rm -f conftest.err conftest.$ac_objext \ 27055 conftest$ac_exeext conftest.$ac_ext 27056 fi 27057 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 27058 echo "${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 27062 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 27063 if test "${ac_cv_lib_posix_remove+set}" = set; then 27064 echo $ECHO_N "(cached) $ECHO_C" >&6 27065 else 27066 ac_check_lib_save_LIBS=$LIBS 27067 LIBS="-lposix $LIBS" 27068 cat >conftest.$ac_ext <<_ACEOF 27069 /* confdefs.h. */ 27070 _ACEOF 27071 cat confdefs.h >>conftest.$ac_ext 27072 cat >>conftest.$ac_ext <<_ACEOF 27073 /* end confdefs.h. */ 27074 27075 /* Override any gcc2 internal prototype to avoid an error. */ 27076 #ifdef __cplusplus 27077 extern "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. */ 27081 char remove (); 27082 int 27083 main () 27084 { 27085 remove (); 27086 ; 27087 return 0; 27088 } 27089 _ACEOF 27090 rm -f conftest.$ac_objext conftest$ac_exeext 27091 if { (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 27113 else 27114 echo "$as_me: failed program was:" >&5 27115 sed 's/^/| /' conftest.$ac_ext >&5 27116 27117 ac_cv_lib_posix_remove=no 27118 fi 27119 rm -f conftest.err conftest.$ac_objext \ 27120 conftest$ac_exeext conftest.$ac_ext 27121 LIBS=$ac_check_lib_save_LIBS 27122 fi 27123 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 27124 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 27125 if test $ac_cv_lib_posix_remove = yes; then 27126 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 27127 fi 27128 27129 fi 27130 27131 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 27132 echo "$as_me:$LINENO: checking for shmat" >&5 27133 echo $ECHO_N "checking for shmat... $ECHO_C" >&6 27134 if test "${ac_cv_func_shmat+set}" = set; then 27135 echo $ECHO_N "(cached) $ECHO_C" >&6 27136 else 27137 cat >conftest.$ac_ext <<_ACEOF 27138 /* confdefs.h. */ 27139 _ACEOF 27140 cat confdefs.h >>conftest.$ac_ext 27141 cat >>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 27162 extern "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. */ 27167 char 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) 27172 choke me 27173 #else 27174 char (*f) () = shmat; 27175 #endif 27176 #ifdef __cplusplus 27177 } 27178 #endif 27179 27180 int 27181 main () 27182 { 27183 return f != shmat; 27184 ; 27185 return 0; 27186 } 27187 _ACEOF 27188 rm -f conftest.$ac_objext conftest$ac_exeext 27189 if { (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 27211 else 27212 echo "$as_me: failed program was:" >&5 27213 sed 's/^/| /' conftest.$ac_ext >&5 27214 27215 ac_cv_func_shmat=no 27216 fi 27217 rm -f conftest.err conftest.$ac_objext \ 27218 conftest$ac_exeext conftest.$ac_ext 27219 fi 27220 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 27221 echo "${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 27225 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 27226 if test "${ac_cv_lib_ipc_shmat+set}" = set; then 27227 echo $ECHO_N "(cached) $ECHO_C" >&6 27228 else 27229 ac_check_lib_save_LIBS=$LIBS 27230 LIBS="-lipc $LIBS" 27231 cat >conftest.$ac_ext <<_ACEOF 27232 /* confdefs.h. */ 27233 _ACEOF 27234 cat confdefs.h >>conftest.$ac_ext 27235 cat >>conftest.$ac_ext <<_ACEOF 27236 /* end confdefs.h. */ 27237 27238 /* Override any gcc2 internal prototype to avoid an error. */ 27239 #ifdef __cplusplus 27240 extern "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. */ 27244 char shmat (); 27245 int 27246 main () 27247 { 27248 shmat (); 27249 ; 27250 return 0; 27251 } 27252 _ACEOF 27253 rm -f conftest.$ac_objext conftest$ac_exeext 27254 if { (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 27276 else 27277 echo "$as_me: failed program was:" >&5 27278 sed 's/^/| /' conftest.$ac_ext >&5 27279 27280 ac_cv_lib_ipc_shmat=no 27281 fi 27282 rm -f conftest.err conftest.$ac_objext \ 27283 conftest$ac_exeext conftest.$ac_ext 27284 LIBS=$ac_check_lib_save_LIBS 27285 fi 27286 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 27287 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 27288 if test $ac_cv_lib_ipc_shmat = yes; then 27289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 27290 fi 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 27305 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 27306 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 27307 echo $ECHO_N "(cached) $ECHO_C" >&6 27308 else 27309 ac_check_lib_save_LIBS=$LIBS 27310 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 27311 cat >conftest.$ac_ext <<_ACEOF 27312 /* confdefs.h. */ 27313 _ACEOF 27314 cat confdefs.h >>conftest.$ac_ext 27315 cat >>conftest.$ac_ext <<_ACEOF 27316 /* end confdefs.h. */ 27317 27318 /* Override any gcc2 internal prototype to avoid an error. */ 27319 #ifdef __cplusplus 27320 extern "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. */ 27324 char IceConnectionNumber (); 27325 int 27326 main () 27327 { 27328 IceConnectionNumber (); 27329 ; 27330 return 0; 27331 } 27332 _ACEOF 27333 rm -f conftest.$ac_objext conftest$ac_exeext 27334 if { (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 27356 else 27357 echo "$as_me: failed program was:" >&5 27358 sed 's/^/| /' conftest.$ac_ext >&5 27359 27360 ac_cv_lib_ICE_IceConnectionNumber=no 27361 fi 27362 rm -f conftest.err conftest.$ac_objext \ 27363 conftest$ac_exeext conftest.$ac_ext 27364 LIBS=$ac_check_lib_save_LIBS 27365 fi 27366 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 27367 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 27368 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 27369 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 27370 fi 27371 27372 LDFLAGS=$ac_save_LDFLAGS 27373 27374 fi 27375 27376 27377 ## for now enable_x11 just tracks have_x11, 27378 ## there's no --enable-x11 27379 if test x$no_x = xyes ; then 27380 have_x11=no 27381 enable_x11=no 27382 else 27383 have_x11=yes 27384 enable_x11=yes 27385 fi 27386 27387 if test x$enable_x11 = xyes ; then 27388 27389 cat >>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" 27395 else 27396 DBUS_X_LIBS= 27397 DBUS_X_CFLAGS= 27398 fi 27399 27400 27401 27402 27403 ### Doxygen Documentation 27404 27405 # Extract the first word of "doxygen", so it can be a program name with args. 27406 set dummy doxygen; ac_word=$2 27407 echo "$as_me:$LINENO: checking for $ac_word" >&5 27408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 27409 if test "${ac_cv_path_DOXYGEN+set}" = set; then 27410 echo $ECHO_N "(cached) $ECHO_C" >&6 27411 else 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 27418 for as_dir in $PATH 27419 do 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 27428 done 27429 done 27430 27431 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no" 27432 ;; 27433 esac 27434 fi 27435 DOXYGEN=$ac_cv_path_DOXYGEN 27436 27437 if test -n "$DOXYGEN"; then 27438 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 27439 echo "${ECHO_T}$DOXYGEN" >&6 27440 else 27441 echo "$as_me:$LINENO: result: no" >&5 27442 echo "${ECHO_T}no" >&6 27443 fi 27444 27445 27446 echo "$as_me:$LINENO: checking whether to build Doxygen documentation" >&5 27447 echo $ECHO_N "checking whether to build Doxygen documentation... $ECHO_C" >&6 27448 27449 if test x$DOXYGEN = xno ; then 27450 have_doxygen=no 27451 else 27452 have_doxygen=yes 27453 fi 27454 27455 if 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 27461 fi 27462 27463 if 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 27466 echo "$as_me: error: Building Doxygen docs explicitly required, but Doxygen not found" >&2;} 27467 { (exit 1); exit 1; }; } 27468 fi 27469 fi 27470 27471 27472 27473 if test x$enable_doxygen_docs = xyes; then 27474 DBUS_DOXYGEN_DOCS_ENABLED_TRUE= 27475 DBUS_DOXYGEN_DOCS_ENABLED_FALSE='#' 27476 else 27477 DBUS_DOXYGEN_DOCS_ENABLED_TRUE='#' 27478 DBUS_DOXYGEN_DOCS_ENABLED_FALSE= 27479 fi 27480 27481 echo "$as_me:$LINENO: result: yes" >&5 27482 echo "${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. 27487 set dummy xmlto; ac_word=$2 27488 echo "$as_me:$LINENO: checking for $ac_word" >&5 27489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 27490 if test "${ac_cv_path_XMLTO+set}" = set; then 27491 echo $ECHO_N "(cached) $ECHO_C" >&6 27492 else 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 27499 for as_dir in $PATH 27500 do 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 27509 done 27510 done 27511 27512 test -z "$ac_cv_path_XMLTO" && ac_cv_path_XMLTO="no" 27513 ;; 27514 esac 27515 fi 27516 XMLTO=$ac_cv_path_XMLTO 27517 27518 if test -n "$XMLTO"; then 27519 echo "$as_me:$LINENO: result: $XMLTO" >&5 27520 echo "${ECHO_T}$XMLTO" >&6 27521 else 27522 echo "$as_me:$LINENO: result: no" >&5 27523 echo "${ECHO_T}no" >&6 27524 fi 27525 27526 27527 echo "$as_me:$LINENO: checking whether to build XML documentation" >&5 27528 echo $ECHO_N "checking whether to build XML documentation... $ECHO_C" >&6 27529 27530 if test x$XMLTO = xno ; then 27531 have_xmlto=no 27532 else 27533 have_xmlto=yes 27534 fi 27535 27536 if 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 27542 fi 27543 27544 if 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 27547 echo "$as_me: error: Building XML docs explicitly required, but xmlto not found" >&2;} 27548 { (exit 1); exit 1; }; } 27549 fi 27550 fi 27551 27552 27553 27554 if test x$enable_xml_docs = xyes; then 27555 DBUS_XML_DOCS_ENABLED_TRUE= 27556 DBUS_XML_DOCS_ENABLED_FALSE='#' 27557 else 27558 DBUS_XML_DOCS_ENABLED_TRUE='#' 27559 DBUS_XML_DOCS_ENABLED_FALSE= 27560 fi 27561 27562 echo "$as_me:$LINENO: result: yes" >&5 27563 echo "${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) 27571 REAL_PREFIX= 27572 if test "x$prefix" = "xNONE"; then 27573 REAL_PREFIX=$ac_default_prefix 27574 else 27575 REAL_PREFIX=$prefix 27576 fi 27577 27578 ## temporarily change prefix and exec_prefix 27579 old_prefix=$prefix 27580 prefix=$REAL_PREFIX 27581 27582 if test "x$exec_prefix" = xNONE ; then 27583 REAL_EXEC_PREFIX=$REAL_PREFIX 27584 else 27585 REAL_EXEC_PREFIX=$exec_prefix 27586 fi 27587 old_exec_prefix=$exec_prefix 27588 exec_prefix=$REAL_EXEC_PREFIX 27589 27590 ## eval everything 27591 LOCALSTATEDIR_TMP="$localstatedir" 27592 EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP` 27593 27594 27595 SYSCONFDIR_TMP="$sysconfdir" 27596 EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP` 27597 27598 27599 BINDIR_TMP="$bindir" 27600 EXPANDED_BINDIR=`eval echo $BINDIR_TMP` 27601 27602 27603 LIBDIR_TMP="$libdir" 27604 EXPANDED_LIBDIR=`eval echo $LIBDIR_TMP` 27605 27606 27607 DATADIR_TMP="$datadir" 27608 EXPANDED_DATADIR=`eval echo $DATADIR_TMP` 27609 27610 27611 ## put prefix and exec_prefix back 27612 prefix=$old_prefix 27613 exec_prefix=$old_exec_prefix 27614 27615 #### Check our operating system 27616 operating_system=unknown 27617 if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then 27618 operating_system=redhat 27619 fi 27620 27621 if test -f /etc/slackware-version || test -f $EXPANDED_SYSCONFDIR/slackware-version ; then 27622 operating_system=slackware 27623 fi 27624 27625 #### Sort out init scripts 27626 27627 if 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 27637 fi 27638 27639 27640 27641 if test x$with_init_scripts = xredhat; then 27642 DBUS_INIT_SCRIPTS_RED_HAT_TRUE= 27643 DBUS_INIT_SCRIPTS_RED_HAT_FALSE='#' 27644 else 27645 DBUS_INIT_SCRIPTS_RED_HAT_TRUE='#' 27646 DBUS_INIT_SCRIPTS_RED_HAT_FALSE= 27647 fi 27648 27649 27650 27651 27652 if test x$with_init_scripts = xslackware; then 27653 DBUS_INIT_SCRIPTS_SLACKWARE_TRUE= 27654 DBUS_INIT_SCRIPTS_SLACKWARE_FALSE='#' 27655 else 27656 DBUS_INIT_SCRIPTS_SLACKWARE_TRUE='#' 27657 DBUS_INIT_SCRIPTS_SLACKWARE_FALSE= 27658 fi 27659 27660 27661 ##### Set up location for system bus socket 27662 if ! test -z "$with_system_socket"; then 27663 DBUS_SYSTEM_SOCKET=$with_system_socket 27664 else 27665 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket 27666 fi 27667 27668 27669 27670 cat >>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) 27677 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$DBUS_SYSTEM_SOCKET" 27678 27679 27680 cat >>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 27686 if ! test -z "$with_system_pid_file"; then 27687 DBUS_SYSTEM_PID_FILE=$with_system_pid_file 27688 elif test x$with_init_scripts = xredhat ; then 27689 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid 27690 else 27691 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid 27692 fi 27693 27694 27695 27696 #### Directory to check for console ownership 27697 if ! test -z "$with_console_auth_dir"; then 27698 DBUS_CONSOLE_AUTH_DIR=$with_console_auth_dir 27699 else 27700 DBUS_CONSOLE_AUTH_DIR=/var/run/console/ 27701 fi 27702 27703 27704 27705 cat >>confdefs.h <<_ACEOF 27706 #define DBUS_CONSOLE_AUTH_DIR "$DBUS_CONSOLE_AUTH_DIR" 27707 _ACEOF 27708 27709 27710 #### File to check for console ownership 27711 if 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 27717 else 27718 DBUS_CONSOLE_OWNER_FILE= 27719 fi 27720 27721 27722 27723 cat >>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 27729 if test -z "$with_dbus_user" ; then 27730 DBUS_USER=messagebus 27731 else 27732 DBUS_USER=$with_dbus_user 27733 fi 27734 27735 27736 cat >>confdefs.h <<_ACEOF 27737 #define DBUS_USER "$DBUS_USER" 27738 _ACEOF 27739 27740 27741 #### Direcotry to install data files into 27742 DBUS_DATADIR=$EXPANDED_DATADIR 27743 27744 27745 cat >>confdefs.h <<_ACEOF 27746 #define DBUS_DATADIR "$DBUS_DATADIR" 27747 _ACEOF 27748 27749 27750 #### Directory to install dbus-daemon 27751 if test -z "$with_dbus_daemondir" ; then 27752 DBUS_DAEMONDIR=$EXPANDED_BINDIR 27753 else 27754 DBUS_DAEMONDIR=$with_dbus_daemondir 27755 fi 27756 27757 27758 cat >>confdefs.h <<_ACEOF 27759 #define DBUS_DAEMONDIR "$DBUS_DAEMONDIR" 27760 _ACEOF 27761 27762 27763 #### Directory to install the other binaries 27764 DBUS_BINDIR=$EXPANDED_BINDIR 27765 27766 27767 cat >>confdefs.h <<_ACEOF 27768 #define DBUS_BINDIR "$DBUS_BINDIR" 27769 _ACEOF 27770 27771 27772 #### Tell tests where to find certain stuff in builddir 27773 27774 DBUS_PWD=`pwd` 27775 27776 27777 27778 TEST_SERVICE_DIR=${DBUS_PWD}/test/data/valid-service-files 27779 27780 cat >>confdefs.h <<_ACEOF 27781 #define TEST_SERVICE_DIR "$TEST_SERVICE_DIR" 27782 _ACEOF 27783 27784 27785 27786 27787 TEST_SERVICE_BINARY=${DBUS_PWD}/test/test-service 27788 27789 cat >>confdefs.h <<_ACEOF 27790 #define TEST_SERVICE_BINARY "$TEST_SERVICE_BINARY" 27791 _ACEOF 27792 27793 27794 27795 27796 TEST_SHELL_SERVICE_BINARY=${DBUS_PWD}/test/test-shell-service 27797 27798 cat >>confdefs.h <<_ACEOF 27799 #define TEST_SHELL_SERVICE_BINARY "$TEST_SHELL_SERVICE_BINARY" 27800 _ACEOF 27801 27802 27803 27804 27805 TEST_EXIT_BINARY=${DBUS_PWD}/test/test-exit 27806 27807 cat >>confdefs.h <<_ACEOF 27808 #define TEST_EXIT_BINARY "$TEST_EXIT_BINARY" 27809 _ACEOF 27810 27811 27812 27813 27814 TEST_SEGFAULT_BINARY=${DBUS_PWD}/test/test-segfault 27815 27816 cat >>confdefs.h <<_ACEOF 27817 #define TEST_SEGFAULT_BINARY "$TEST_SEGFAULT_BINARY" 27818 _ACEOF 27819 27820 27821 27822 27823 TEST_SLEEP_FOREVER_BINARY=${DBUS_PWD}/test/test-sleep-forever 27824 27825 cat >>confdefs.h <<_ACEOF 27826 #define TEST_SLEEP_FOREVER_BINARY "$TEST_SLEEP_FOREVER_BINARY" 27827 _ACEOF 27828 27829 27830 27831 27832 27833 cat >>confdefs.h <<_ACEOF 27834 #define TEST_BUS_BINARY "$DBUS_PWD/bus/dbus-daemon" 27835 _ACEOF 27836 27837 27838 27839 #### Find socket directories 27840 if ! test -z "$TMPDIR" ; then 27841 DEFAULT_SOCKET_DIR=$TMPDIR 27842 elif ! test -z "$TEMP" ; then 27843 DEFAULT_SOCKET_DIR=$TEMP 27844 elif ! test -z "$TMP" ; then 27845 DEFAULT_SOCKET_DIR=$TMP 27846 else 27847 DEFAULT_SOCKET_DIR=/tmp 27848 fi 27849 27850 if ! test -z "$with_test_socket_dir" ; then 27851 TEST_SOCKET_DIR="$with_test_socket_dir" 27852 else 27853 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR 27854 fi 27855 27856 27857 cat >>confdefs.h <<_ACEOF 27858 #define DBUS_TEST_SOCKET_DIR "$TEST_SOCKET_DIR" 27859 _ACEOF 27860 27861 27862 if ! test -z "$with_session_socket_dir" ; then 27863 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir" 27864 else 27865 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR 27866 fi 27867 27868 cat >>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" 27875 cat >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 27920 if 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 27927 fi 27928 rm -f confcache 27929 27930 test "x$prefix" = xNONE && prefix=$ac_default_prefix 27931 # Let make expand exec_prefix. 27932 test "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). 27938 if test "x$srcdir" = x.; then 27939 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 27940 s/:*\$(srcdir):*/:/; 27941 s/:*\${srcdir}:*/:/; 27942 s/:*@srcdir@:*/:/; 27943 s/^\([^=]*=[ ]*\):*/\1/; 27944 s/:*$//; 27945 s/^[^=]*=[ ]*$//; 27946 }' 27947 fi 27948 27949 DEFS=-DHAVE_CONFIG_H 27950 27951 ac_libobjs= 27952 ac_ltlibobjs= 27953 for 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' 27960 done 27961 LIBOBJS=$ac_libobjs 27962 27963 LTLIBOBJS=$ac_ltlibobjs 27964 27965 27966 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27967 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 27968 Usually this means the macro was only invoked conditionally." >&5 27969 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 27970 Usually this means the macro was only invoked conditionally." >&2;} 27971 { (exit 1); exit 1; }; } 27972 fi 27973 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27974 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27975 Usually this means the macro was only invoked conditionally." >&5 27976 echo "$as_me: error: conditional \"AMDEP\" was never defined. 27977 Usually this means the macro was only invoked conditionally." >&2;} 27978 { (exit 1); exit 1; }; } 27979 fi 27980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27981 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27982 Usually this means the macro was only invoked conditionally." >&5 27983 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27984 Usually this means the macro was only invoked conditionally." >&2;} 27985 { (exit 1); exit 1; }; } 27986 fi 27987 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27988 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27989 Usually this means the macro was only invoked conditionally." >&5 27990 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27991 Usually this means the macro was only invoked conditionally." >&2;} 27992 { (exit 1); exit 1; }; } 27993 fi 27994 if 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. 27996 Usually this means the macro was only invoked conditionally." >&5 27997 echo "$as_me: error: conditional \"DBUS_BUILD_TESTS\" was never defined. 27998 Usually this means the macro was only invoked conditionally." >&2;} 27999 { (exit 1); exit 1; }; } 28000 fi 28001 if 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. 28003 Usually this means the macro was only invoked conditionally." >&5 28004 echo "$as_me: error: conditional \"DBUS_GCOV_ENABLED\" was never defined. 28005 Usually this means the macro was only invoked conditionally." >&2;} 28006 { (exit 1); exit 1; }; } 28007 fi 28008 if 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. 28010 Usually this means the macro was only invoked conditionally." >&5 28011 echo "$as_me: error: conditional \"DBUS_USE_EXPAT\" was never defined. 28012 Usually this means the macro was only invoked conditionally." >&2;} 28013 { (exit 1); exit 1; }; } 28014 fi 28015 if 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. 28017 Usually this means the macro was only invoked conditionally." >&5 28018 echo "$as_me: error: conditional \"DBUS_USE_LIBXML\" was never defined. 28019 Usually this means the macro was only invoked conditionally." >&2;} 28020 { (exit 1); exit 1; }; } 28021 fi 28022 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then 28023 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined. 28024 Usually this means the macro was only invoked conditionally." >&5 28025 echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined. 28026 Usually this means the macro was only invoked conditionally." >&2;} 28027 { (exit 1); exit 1; }; } 28028 fi 28029 if 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. 28031 Usually this means the macro was only invoked conditionally." >&5 28032 echo "$as_me: error: conditional \"DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX\" was never defined. 28033 Usually this means the macro was only invoked conditionally." >&2;} 28034 { (exit 1); exit 1; }; } 28035 fi 28036 if 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. 28038 Usually this means the macro was only invoked conditionally." >&5 28039 echo "$as_me: error: conditional \"DBUS_BUS_ENABLE_KQUEUE\" was never defined. 28040 Usually this means the macro was only invoked conditionally." >&2;} 28041 { (exit 1); exit 1; }; } 28042 fi 28043 if 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. 28045 Usually this means the macro was only invoked conditionally." >&5 28046 echo "$as_me: error: conditional \"HAVE_CONSOLE_OWNER_FILE\" was never defined. 28047 Usually this means the macro was only invoked conditionally." >&2;} 28048 { (exit 1); exit 1; }; } 28049 fi 28050 if 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. 28052 Usually this means the macro was only invoked conditionally." >&5 28053 echo "$as_me: error: conditional \"DBUS_DOXYGEN_DOCS_ENABLED\" was never defined. 28054 Usually this means the macro was only invoked conditionally." >&2;} 28055 { (exit 1); exit 1; }; } 28056 fi 28057 if 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. 28059 Usually this means the macro was only invoked conditionally." >&5 28060 echo "$as_me: error: conditional \"DBUS_XML_DOCS_ENABLED\" was never defined. 28061 Usually this means the macro was only invoked conditionally." >&2;} 28062 { (exit 1); exit 1; }; } 28063 fi 28064 if 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. 28066 Usually this means the macro was only invoked conditionally." >&5 28067 echo "$as_me: error: conditional \"DBUS_INIT_SCRIPTS_RED_HAT\" was never defined. 28068 Usually this means the macro was only invoked conditionally." >&2;} 28069 { (exit 1); exit 1; }; } 28070 fi 28071 if 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. 28073 Usually this means the macro was only invoked conditionally." >&5 28074 echo "$as_me: error: conditional \"DBUS_INIT_SCRIPTS_SLACKWARE\" was never defined. 28075 Usually this means the macro was only invoked conditionally." >&2;} 28076 { (exit 1); exit 1; }; } 28077 fi 28078 28079 : ${CONFIG_STATUS=./config.status} 28080 ac_clean_files_save=$ac_clean_files 28081 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 28083 echo "$as_me: creating $CONFIG_STATUS" >&6;} 28084 cat >$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 28091 debug=false 28092 ac_cs_recheck=false 28093 ac_cs_silent=false 28094 SHELL=\${CONFIG_SHELL-$SHELL} 28095 _ACEOF 28096 28097 cat >>$CONFIG_STATUS <<\_ACEOF 28098 ## --------------------- ## 28099 ## M4sh Initialization. ## 28100 ## --------------------- ## 28101 28102 # Be Bourne compatible 28103 if 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+"$@"}'='"$@"' 28109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28110 set -o posix 28111 fi 28112 DUALCASE=1; export DUALCASE # for MKS sh 28113 28114 # Support unset when possible. 28115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28116 as_unset=unset 28117 else 28118 as_unset=false 28119 fi 28120 28121 28122 # Work around bugs in pre-3.0 UWIN ksh. 28123 $as_unset ENV MAIL MAILPATH 28124 PS1='$ ' 28125 PS2='> ' 28126 PS4='+ ' 28127 28128 # NLS nuisances. 28129 for 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 28133 do 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 28139 done 28140 28141 # Required to use basename. 28142 if expr a : '\(a\)' >/dev/null 2>&1; then 28143 as_expr=expr 28144 else 28145 as_expr=false 28146 fi 28147 28148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 28149 as_basename=basename 28150 else 28151 as_basename=false 28152 fi 28153 28154 28155 # Name of the executable. 28156 as_me=`$as_basename "$0" || 28157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 28158 X"$0" : 'X\(//\)$' \| \ 28159 X"$0" : 'X\(/\)$' \| \ 28160 . : '\(.\)' 2>/dev/null || 28161 echo 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. 28170 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 28171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 28172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 28173 as_cr_digits='0123456789' 28174 as_cr_alnum=$as_cr_Letters$as_cr_digits 28175 28176 # The user is always right. 28177 if 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 28187 fi 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 28200 for as_dir in $PATH 28201 do 28202 IFS=$as_save_IFS 28203 test -z "$as_dir" && as_dir=. 28204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 28205 done 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 28216 echo "$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 28222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 28223 do 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 28243 done 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 28267 echo "$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 28279 case `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= ;; 28284 esac 28285 28286 if expr a : '\(a\)' >/dev/null 2>&1; then 28287 as_expr=expr 28288 else 28289 as_expr=false 28290 fi 28291 28292 rm -f conf$$ conf$$.exe conf$$.file 28293 echo >conf$$.file 28294 if 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 28303 elif ln conf$$.file conf$$ 2>/dev/null; then 28304 as_ln_s=ln 28305 else 28306 as_ln_s='cp -p' 28307 fi 28308 rm -f conf$$ conf$$.exe conf$$.file 28309 28310 if mkdir -p . 2>/dev/null; then 28311 as_mkdir_p=: 28312 else 28313 test -d ./-p && rmdir ./-p 28314 as_mkdir_p=false 28315 fi 28316 28317 as_executable_p="test -f" 28318 28319 # Sed expression to map a string onto a valid CPP name. 28320 as_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. 28323 as_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. 28328 as_nl=' 28329 ' 28330 IFS=" $as_nl" 28331 28332 # CDPATH. 28333 $as_unset CDPATH 28334 28335 exec 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. 28340 exec 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 28347 cat >&5 <<_CSEOF 28348 28349 This file was extended by $as_me, which was 28350 generated 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 28359 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 28360 echo >&5 28361 _ACEOF 28362 28363 # Files that config.status was made for. 28364 if test -n "$ac_config_files"; then 28365 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 28366 fi 28367 28368 if test -n "$ac_config_headers"; then 28369 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 28370 fi 28371 28372 if test -n "$ac_config_links"; then 28373 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 28374 fi 28375 28376 if test -n "$ac_config_commands"; then 28377 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 28378 fi 28379 28380 cat >>$CONFIG_STATUS <<\_ACEOF 28381 28382 ac_cs_usage="\ 28383 \`$as_me' instantiates files from templates according to the 28384 current configuration. 28385 28386 Usage: $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 28398 Configuration files: 28399 $config_files 28400 28401 Configuration headers: 28402 $config_headers 28403 28404 Configuration commands: 28405 $config_commands 28406 28407 Report bugs to <bug-autoconf@gnu.org>." 28408 _ACEOF 28409 28410 cat >>$CONFIG_STATUS <<_ACEOF 28411 ac_cs_version="\\ 28412 config.status 28413 configured by $0, generated by GNU Autoconf 2.59, 28414 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 28415 28416 Copyright (C) 2003 Free Software Foundation, Inc. 28417 This config.status script is free software; the Free Software Foundation 28418 gives unlimited permission to copy, distribute and modify it." 28419 srcdir=$srcdir 28420 INSTALL="$INSTALL" 28421 _ACEOF 28422 28423 cat >>$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. 28426 ac_need_defaults=: 28427 while test $# != 0 28428 do 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 28449 cat >>$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 28457 Try \`$0 --help' for more information." >&5 28458 echo "$as_me: error: ambiguous option: $1 28459 Try \`$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 28479 Try \`$0 --help' for more information." >&5 28480 echo "$as_me: error: unrecognized option: $1 28481 Try \`$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 28488 done 28489 28490 ac_configure_extra_args= 28491 28492 if $ac_cs_silent; then 28493 exec 6>/dev/null 28494 ac_configure_extra_args="$ac_configure_extra_args --silent" 28495 fi 28496 28497 _ACEOF 28498 cat >>$CONFIG_STATUS <<_ACEOF 28499 if \$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 28502 fi 28503 28504 _ACEOF 28505 28506 cat >>$CONFIG_STATUS <<_ACEOF 28507 # 28508 # INIT-COMMANDS section. 28509 # 28510 28511 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28512 28513 _ACEOF 28514 28515 28516 28517 cat >>$CONFIG_STATUS <<\_ACEOF 28518 for ac_config_target in $ac_config_targets 28519 do 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 28546 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28547 { (exit 1); exit 1; }; };; 28548 esac 28549 done 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. 28555 if $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 28559 fi 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 28588 cat >>$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 28596 if 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 28600 s,@SHELL@,$SHELL,;t t 28601 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 28602 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 28603 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 28604 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 28605 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 28606 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 28607 s,@exec_prefix@,$exec_prefix,;t t 28608 s,@prefix@,$prefix,;t t 28609 s,@program_transform_name@,$program_transform_name,;t t 28610 s,@bindir@,$bindir,;t t 28611 s,@sbindir@,$sbindir,;t t 28612 s,@libexecdir@,$libexecdir,;t t 28613 s,@datadir@,$datadir,;t t 28614 s,@sysconfdir@,$sysconfdir,;t t 28615 s,@sharedstatedir@,$sharedstatedir,;t t 28616 s,@localstatedir@,$localstatedir,;t t 28617 s,@libdir@,$libdir,;t t 28618 s,@includedir@,$includedir,;t t 28619 s,@oldincludedir@,$oldincludedir,;t t 28620 s,@infodir@,$infodir,;t t 28621 s,@mandir@,$mandir,;t t 28622 s,@build_alias@,$build_alias,;t t 28623 s,@host_alias@,$host_alias,;t t 28624 s,@target_alias@,$target_alias,;t t 28625 s,@DEFS@,$DEFS,;t t 28626 s,@ECHO_C@,$ECHO_C,;t t 28627 s,@ECHO_N@,$ECHO_N,;t t 28628 s,@ECHO_T@,$ECHO_T,;t t 28629 s,@LIBS@,$LIBS,;t t 28630 s,@build@,$build,;t t 28631 s,@build_cpu@,$build_cpu,;t t 28632 s,@build_vendor@,$build_vendor,;t t 28633 s,@build_os@,$build_os,;t t 28634 s,@host@,$host,;t t 28635 s,@host_cpu@,$host_cpu,;t t 28636 s,@host_vendor@,$host_vendor,;t t 28637 s,@host_os@,$host_os,;t t 28638 s,@target@,$target,;t t 28639 s,@target_cpu@,$target_cpu,;t t 28640 s,@target_vendor@,$target_vendor,;t t 28641 s,@target_os@,$target_os,;t t 28642 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 28643 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 28644 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 28645 s,@CYGPATH_W@,$CYGPATH_W,;t t 28646 s,@PACKAGE@,$PACKAGE,;t t 28647 s,@VERSION@,$VERSION,;t t 28648 s,@ACLOCAL@,$ACLOCAL,;t t 28649 s,@AUTOCONF@,$AUTOCONF,;t t 28650 s,@AUTOMAKE@,$AUTOMAKE,;t t 28651 s,@AUTOHEADER@,$AUTOHEADER,;t t 28652 s,@MAKEINFO@,$MAKEINFO,;t t 28653 s,@install_sh@,$install_sh,;t t 28654 s,@STRIP@,$STRIP,;t t 28655 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 28656 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 28657 s,@mkdir_p@,$mkdir_p,;t t 28658 s,@AWK@,$AWK,;t t 28659 s,@SET_MAKE@,$SET_MAKE,;t t 28660 s,@am__leading_dot@,$am__leading_dot,;t t 28661 s,@AMTAR@,$AMTAR,;t t 28662 s,@am__tar@,$am__tar,;t t 28663 s,@am__untar@,$am__untar,;t t 28664 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t 28665 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 28666 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 28667 s,@MAINT@,$MAINT,;t t 28668 s,@LT_CURRENT@,$LT_CURRENT,;t t 28669 s,@LT_REVISION@,$LT_REVISION,;t t 28670 s,@LT_AGE@,$LT_AGE,;t t 28671 s,@CC@,$CC,;t t 28672 s,@CFLAGS@,$CFLAGS,;t t 28673 s,@LDFLAGS@,$LDFLAGS,;t t 28674 s,@CPPFLAGS@,$CPPFLAGS,;t t 28675 s,@ac_ct_CC@,$ac_ct_CC,;t t 28676 s,@EXEEXT@,$EXEEXT,;t t 28677 s,@OBJEXT@,$OBJEXT,;t t 28678 s,@DEPDIR@,$DEPDIR,;t t 28679 s,@am__include@,$am__include,;t t 28680 s,@am__quote@,$am__quote,;t t 28681 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 28682 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 28683 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 28684 s,@CCDEPMODE@,$CCDEPMODE,;t t 28685 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 28686 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 28687 s,@CXX@,$CXX,;t t 28688 s,@CXXFLAGS@,$CXXFLAGS,;t t 28689 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 28690 s,@CXXDEPMODE@,$CXXDEPMODE,;t t 28691 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 28692 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 28693 s,@CPP@,$CPP,;t t 28694 s,@EGREP@,$EGREP,;t t 28695 s,@DBUS_BUILD_TESTS_TRUE@,$DBUS_BUILD_TESTS_TRUE,;t t 28696 s,@DBUS_BUILD_TESTS_FALSE@,$DBUS_BUILD_TESTS_FALSE,;t t 28697 s,@R_DYNAMIC_LDFLAG@,$R_DYNAMIC_LDFLAG,;t t 28698 s,@SED@,$SED,;t t 28699 s,@LN_S@,$LN_S,;t t 28700 s,@ECHO@,$ECHO,;t t 28701 s,@AR@,$AR,;t t 28702 s,@ac_ct_AR@,$ac_ct_AR,;t t 28703 s,@RANLIB@,$RANLIB,;t t 28704 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 28705 s,@CXXCPP@,$CXXCPP,;t t 28706 s,@F77@,$F77,;t t 28707 s,@FFLAGS@,$FFLAGS,;t t 28708 s,@ac_ct_F77@,$ac_ct_F77,;t t 28709 s,@LIBTOOL@,$LIBTOOL,;t t 28710 s,@DBUS_GCOV_ENABLED_TRUE@,$DBUS_GCOV_ENABLED_TRUE,;t t 28711 s,@DBUS_GCOV_ENABLED_FALSE@,$DBUS_GCOV_ENABLED_FALSE,;t t 28712 s,@DBUS_INT64_TYPE@,$DBUS_INT64_TYPE,;t t 28713 s,@DBUS_INT64_CONSTANT@,$DBUS_INT64_CONSTANT,;t t 28714 s,@DBUS_UINT64_CONSTANT@,$DBUS_UINT64_CONSTANT,;t t 28715 s,@DBUS_HAVE_INT64@,$DBUS_HAVE_INT64,;t t 28716 s,@DBUS_INT32_TYPE@,$DBUS_INT32_TYPE,;t t 28717 s,@DBUS_INT16_TYPE@,$DBUS_INT16_TYPE,;t t 28718 s,@DBUS_PATH_OR_ABSTRACT@,$DBUS_PATH_OR_ABSTRACT,;t t 28719 s,@PKG_CONFIG@,$PKG_CONFIG,;t t 28720 s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t 28721 s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t 28722 s,@DBUS_USE_EXPAT_TRUE@,$DBUS_USE_EXPAT_TRUE,;t t 28723 s,@DBUS_USE_EXPAT_FALSE@,$DBUS_USE_EXPAT_FALSE,;t t 28724 s,@DBUS_USE_LIBXML_TRUE@,$DBUS_USE_LIBXML_TRUE,;t t 28725 s,@DBUS_USE_LIBXML_FALSE@,$DBUS_USE_LIBXML_FALSE,;t t 28726 s,@HAVE_SELINUX_TRUE@,$HAVE_SELINUX_TRUE,;t t 28727 s,@HAVE_SELINUX_FALSE@,$HAVE_SELINUX_FALSE,;t t 28728 s,@DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE@,$DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_TRUE,;t t 28729 s,@DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE@,$DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX_FALSE,;t t 28730 s,@DBUS_BUS_ENABLE_KQUEUE_TRUE@,$DBUS_BUS_ENABLE_KQUEUE_TRUE,;t t 28731 s,@DBUS_BUS_ENABLE_KQUEUE_FALSE@,$DBUS_BUS_ENABLE_KQUEUE_FALSE,;t t 28732 s,@HAVE_CONSOLE_OWNER_FILE_TRUE@,$HAVE_CONSOLE_OWNER_FILE_TRUE,;t t 28733 s,@HAVE_CONSOLE_OWNER_FILE_FALSE@,$HAVE_CONSOLE_OWNER_FILE_FALSE,;t t 28734 s,@DBUS_CLIENT_CFLAGS@,$DBUS_CLIENT_CFLAGS,;t t 28735 s,@DBUS_CLIENT_LIBS@,$DBUS_CLIENT_LIBS,;t t 28736 s,@DBUS_BUS_CFLAGS@,$DBUS_BUS_CFLAGS,;t t 28737 s,@DBUS_BUS_LIBS@,$DBUS_BUS_LIBS,;t t 28738 s,@DBUS_TEST_CFLAGS@,$DBUS_TEST_CFLAGS,;t t 28739 s,@DBUS_TEST_LIBS@,$DBUS_TEST_LIBS,;t t 28740 s,@X_CFLAGS@,$X_CFLAGS,;t t 28741 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 28742 s,@X_LIBS@,$X_LIBS,;t t 28743 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 28744 s,@DBUS_X_CFLAGS@,$DBUS_X_CFLAGS,;t t 28745 s,@DBUS_X_LIBS@,$DBUS_X_LIBS,;t t 28746 s,@DOXYGEN@,$DOXYGEN,;t t 28747 s,@DBUS_DOXYGEN_DOCS_ENABLED_TRUE@,$DBUS_DOXYGEN_DOCS_ENABLED_TRUE,;t t 28748 s,@DBUS_DOXYGEN_DOCS_ENABLED_FALSE@,$DBUS_DOXYGEN_DOCS_ENABLED_FALSE,;t t 28749 s,@XMLTO@,$XMLTO,;t t 28750 s,@DBUS_XML_DOCS_ENABLED_TRUE@,$DBUS_XML_DOCS_ENABLED_TRUE,;t t 28751 s,@DBUS_XML_DOCS_ENABLED_FALSE@,$DBUS_XML_DOCS_ENABLED_FALSE,;t t 28752 s,@EXPANDED_LOCALSTATEDIR@,$EXPANDED_LOCALSTATEDIR,;t t 28753 s,@EXPANDED_SYSCONFDIR@,$EXPANDED_SYSCONFDIR,;t t 28754 s,@EXPANDED_BINDIR@,$EXPANDED_BINDIR,;t t 28755 s,@EXPANDED_LIBDIR@,$EXPANDED_LIBDIR,;t t 28756 s,@EXPANDED_DATADIR@,$EXPANDED_DATADIR,;t t 28757 s,@DBUS_INIT_SCRIPTS_RED_HAT_TRUE@,$DBUS_INIT_SCRIPTS_RED_HAT_TRUE,;t t 28758 s,@DBUS_INIT_SCRIPTS_RED_HAT_FALSE@,$DBUS_INIT_SCRIPTS_RED_HAT_FALSE,;t t 28759 s,@DBUS_INIT_SCRIPTS_SLACKWARE_TRUE@,$DBUS_INIT_SCRIPTS_SLACKWARE_TRUE,;t t 28760 s,@DBUS_INIT_SCRIPTS_SLACKWARE_FALSE@,$DBUS_INIT_SCRIPTS_SLACKWARE_FALSE,;t t 28761 s,@DBUS_SYSTEM_SOCKET@,$DBUS_SYSTEM_SOCKET,;t t 28762 s,@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@,$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS,;t t 28763 s,@DBUS_SYSTEM_PID_FILE@,$DBUS_SYSTEM_PID_FILE,;t t 28764 s,@DBUS_CONSOLE_AUTH_DIR@,$DBUS_CONSOLE_AUTH_DIR,;t t 28765 s,@DBUS_CONSOLE_OWNER_FILE@,$DBUS_CONSOLE_OWNER_FILE,;t t 28766 s,@DBUS_USER@,$DBUS_USER,;t t 28767 s,@DBUS_DATADIR@,$DBUS_DATADIR,;t t 28768 s,@DBUS_DAEMONDIR@,$DBUS_DAEMONDIR,;t t 28769 s,@DBUS_BINDIR@,$DBUS_BINDIR,;t t 28770 s,@TEST_SERVICE_DIR@,$TEST_SERVICE_DIR,;t t 28771 s,@TEST_SERVICE_BINARY@,$TEST_SERVICE_BINARY,;t t 28772 s,@TEST_SHELL_SERVICE_BINARY@,$TEST_SHELL_SERVICE_BINARY,;t t 28773 s,@TEST_EXIT_BINARY@,$TEST_EXIT_BINARY,;t t 28774 s,@TEST_SEGFAULT_BINARY@,$TEST_SEGFAULT_BINARY,;t t 28775 s,@TEST_SLEEP_FOREVER_BINARY@,$TEST_SLEEP_FOREVER_BINARY,;t t 28776 s,@TEST_BUS_BINARY@,$TEST_BUS_BINARY,;t t 28777 s,@TEST_SOCKET_DIR@,$TEST_SOCKET_DIR,;t t 28778 s,@DBUS_SESSION_SOCKET_DIR@,$DBUS_SESSION_SOCKET_DIR,;t t 28779 s,@LIBOBJS@,$LIBOBJS,;t t 28780 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 28781 CEOF 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 28822 fi # test -n "$CONFIG_FILES" 28823 28824 _ACEOF 28825 cat >>$CONFIG_STATUS <<\_ACEOF 28826 for 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 || 28845 echo 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 || 28864 echo 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 28873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28874 { (exit 1); exit 1; }; }; } 28875 28876 ac_builddir=. 28877 28878 if 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'` 28882 else 28883 ac_dir_suffix= ac_top_builddir= 28884 fi 28885 28886 case $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 ;; 28900 esac 28901 28902 # Do not use `cd foo && pwd` to compute absolute paths, because 28903 # the directories may not exist. 28904 case `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;; 28912 esac 28913 case $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;; 28921 esac 28922 case $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;; 28930 esac 28931 case $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;; 28939 esac 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 28949 echo "$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 28972 echo "$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 28985 echo "$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 28991 cat >>$CONFIG_STATUS <<_ACEOF 28992 sed "$ac_vpsub 28993 $extrasub 28994 _ACEOF 28995 cat >>$CONFIG_STATUS <<\_ACEOF 28996 :t 28997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28998 s,@configure_input@,$configure_input,;t t 28999 s,@srcdir@,$ac_srcdir,;t t 29000 s,@abs_srcdir@,$ac_abs_srcdir,;t t 29001 s,@top_srcdir@,$ac_top_srcdir,;t t 29002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 29003 s,@builddir@,$ac_builddir,;t t 29004 s,@abs_builddir@,$ac_abs_builddir,;t t 29005 s,@top_builddir@,$ac_top_builddir,;t t 29006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 29007 s,@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 29017 done 29018 _ACEOF 29019 cat >>$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. 29029 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 29030 ac_dB='[ ].*$,\1#\2' 29031 ac_dC=' ' 29032 ac_dD=',;t' 29033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 29034 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 29035 ac_uB='$,\1#\2define\3' 29036 ac_uC=' ' 29037 ac_uD=',;t' 29038 29039 for 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 29052 echo "$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 29063 echo "$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 29077 echo "$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. 29094 rm -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'. 29101 cat >confdef2sed.sed <<\_ACEOF 29102 s/[\\&,]/\\&/g 29103 s,[\\$`],\\&,g 29104 t clear 29105 : clear 29106 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 29107 t end 29108 s,^[ ]*#[ ]*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. 29114 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 29115 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 29116 rm -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. 29121 cat >>conftest.undefs <<\_ACEOF 29122 s,^[ ]*#[ ]*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). 29127 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 29128 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 29129 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 29130 echo ' :' >>$CONFIG_STATUS 29131 rm -f conftest.tail 29132 while grep . conftest.defines >/dev/null 29133 do 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 29150 done 29151 rm -f conftest.defines 29152 echo ' fi # grep' >>$CONFIG_STATUS 29153 echo >>$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). 29157 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 29158 rm -f conftest.tail 29159 while grep . conftest.undefs >/dev/null 29160 do 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 29177 done 29178 rm -f conftest.undefs 29179 29180 cat >>$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 29194 echo "$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 || 29202 echo 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 || 29221 echo 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 29230 echo "$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 29242 for _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 29249 done 29250 echo "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 || 29256 echo 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 29262 done 29263 _ACEOF 29264 cat >>$CONFIG_STATUS <<\_ACEOF 29265 29266 # 29267 # CONFIG_COMMANDS section. 29268 # 29269 for 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 || 29278 echo 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 || 29297 echo 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 29306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 29307 { (exit 1); exit 1; }; }; } 29308 29309 ac_builddir=. 29310 29311 if 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'` 29315 else 29316 ac_dir_suffix= ac_top_builddir= 29317 fi 29318 29319 case $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 ;; 29333 esac 29334 29335 # Do not use `cd foo && pwd` to compute absolute paths, because 29336 # the directories may not exist. 29337 case `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;; 29345 esac 29346 case $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;; 29354 esac 29355 case $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;; 29363 esac 29364 case $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;; 29372 esac 29373 29374 29375 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 29376 echo "$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 || 29394 echo 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 || 29427 echo 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 || 29446 echo 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 29455 echo "$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 29461 done 29462 ;; 29463 esac 29464 done 29465 _ACEOF 29466 29467 cat >>$CONFIG_STATUS <<\_ACEOF 29468 29469 { (exit 0); exit 0; } 29470 _ACEOF 29471 chmod +x $CONFIG_STATUS 29472 ac_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. 29483 if 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; } 29494 fi 29495 29496 29497 echo " 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 29519 echo " 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 29547 if test x$enable_tests = xyes; then 29548 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure." 29549 fi 29550 if 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)" 29552 fi 29553 if test x$enable_gcov = xyes; then 29554 echo "NOTE: building with coverage profiling is definitely for developers only." 29555 fi 29556 if 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." 29558 fi 29559 if test x$enable_asserts = xyes; then 29560 echo "NOTE: building with assertions increases library size and decreases performance." 29561 fi 29562 if 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." 29564 fi 29565