1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52 for Shared memory map 0.3.2. 4# 5# Report bugs to <margus@mail.ee>. 6# 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11 12# Find the correct PATH separator. Usually this is `:', but 13# DJGPP uses `;' like DOS. 14if test "X${PATH_SEPARATOR+set}" != Xset; then 15 UNAME=${UNAME-`uname 2>/dev/null`} 16 case X$UNAME in 17 *-DOS) lt_cv_sys_path_separator=';' ;; 18 *) lt_cv_sys_path_separator=':' ;; 19 esac 20 PATH_SEPARATOR=$lt_cv_sys_path_separator 21fi 22 23# Check that we are running under the correct shell. 24SHELL=${CONFIG_SHELL-/bin/sh} 25 26case X$ECHO in 27X*--fallback-echo) 28 # Remove one level of quotation (which was required for Make). 29 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 30 ;; 31esac 32 33echo=${ECHO-echo} 34if test "X$1" = X--no-reexec; then 35 # Discard the --no-reexec flag, and continue. 36 shift 37elif test "X$1" = X--fallback-echo; then 38 # Avoid inline document here, it may be left over 39 : 40elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 41 # Yippee, $echo works! 42 : 43else 44 # Restart under the correct shell. 45 exec $SHELL "$0" --no-reexec ${1+"$@"} 46fi 47 48if test "X$1" = X--fallback-echo; then 49 # used as fallback echo 50 shift 51 cat <<EOF 52 53EOF 54 exit 0 55fi 56 57# The HP-UX ksh and POSIX shell print the target directory to stdout 58# if CDPATH is set. 59if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 60 61if test -z "$ECHO"; then 62if test "X${echo_test_string+set}" != Xset; then 63# find a string as large as possible, as long as the shell can cope with it 64 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 65 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 66 if (echo_test_string="`eval $cmd`") 2>/dev/null && 67 echo_test_string="`eval $cmd`" && 68 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 69 then 70 break 71 fi 72 done 73fi 74 75if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 76 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 77 test "X$echo_testing_string" = "X$echo_test_string"; then 78 : 79else 80 # The Solaris, AIX, and Digital Unix default echo programs unquote 81 # backslashes. This makes it impossible to quote backslashes using 82 # echo "$something" | sed 's/\\/\\\\/g' 83 # 84 # So, first we look for a working echo in the user's PATH. 85 86 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 87 for dir in $PATH /usr/ucb; do 88 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 89 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 90 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 91 test "X$echo_testing_string" = "X$echo_test_string"; then 92 echo="$dir/echo" 93 break 94 fi 95 done 96 IFS="$save_ifs" 97 98 if test "X$echo" = Xecho; then 99 # We didn't find a better echo, so look for alternatives. 100 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 101 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 102 test "X$echo_testing_string" = "X$echo_test_string"; then 103 # This shell has a builtin print -r that does the trick. 104 echo='print -r' 105 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 106 test "X$CONFIG_SHELL" != X/bin/ksh; then 107 # If we have ksh, try running configure again with it. 108 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 109 export ORIGINAL_CONFIG_SHELL 110 CONFIG_SHELL=/bin/ksh 111 export CONFIG_SHELL 112 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 113 else 114 # Try using printf. 115 echo='printf %s\n' 116 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 117 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 118 test "X$echo_testing_string" = "X$echo_test_string"; then 119 # Cool, printf works 120 : 121 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 122 test "X$echo_testing_string" = 'X\t' && 123 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 124 test "X$echo_testing_string" = "X$echo_test_string"; then 125 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 126 export CONFIG_SHELL 127 SHELL="$CONFIG_SHELL" 128 export SHELL 129 echo="$CONFIG_SHELL $0 --fallback-echo" 130 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 131 test "X$echo_testing_string" = 'X\t' && 132 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 133 test "X$echo_testing_string" = "X$echo_test_string"; then 134 echo="$CONFIG_SHELL $0 --fallback-echo" 135 else 136 # maybe with a smaller string... 137 prev=: 138 139 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 140 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 141 then 142 break 143 fi 144 prev="$cmd" 145 done 146 147 if test "$prev" != 'sed 50q "$0"'; then 148 echo_test_string=`eval $prev` 149 export echo_test_string 150 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 151 else 152 # Oops. We lost completely, so just stick with echo. 153 echo=echo 154 fi 155 fi 156 fi 157 fi 158fi 159fi 160 161# Copy echo and quote the copy suitably for passing to libtool from 162# the Makefile, instead of quoting the original, which is used later. 163ECHO=$echo 164if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 165 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 166fi 167 168# Avoid depending upon Character Ranges. 169as_cr_letters='abcdefghijklmnopqrstuvwxyz' 170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 171as_cr_Letters=$as_cr_letters$as_cr_LETTERS 172as_cr_digits='0123456789' 173as_cr_alnum=$as_cr_Letters$as_cr_digits 174 175# Sed expression to map a string onto a valid variable name. 176as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 177 178# Sed expression to map a string onto a valid CPP name. 179as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 180 181# Be Bourne compatible 182if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 183 emulate sh 184 NULLCMD=: 185elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 186 set -o posix 187fi 188 189# Name of the executable. 190as_me=`echo "$0" |sed 's,.*[\\/],,'` 191 192if expr a : '\(a\)' >/dev/null 2>&1; then 193 as_expr=expr 194else 195 as_expr=false 196fi 197 198rm -f conf$$ conf$$.exe conf$$.file 199echo >conf$$.file 200if ln -s conf$$.file conf$$ 2>/dev/null; then 201 # We could just check for DJGPP; but this test a) works b) is more generic 202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 203 if test -f conf$$.exe; then 204 # Don't use ln at all; we don't have any links 205 as_ln_s='cp -p' 206 else 207 as_ln_s='ln -s' 208 fi 209elif ln conf$$.file conf$$ 2>/dev/null; then 210 as_ln_s=ln 211else 212 as_ln_s='cp -p' 213fi 214rm -f conf$$ conf$$.exe conf$$.file 215 216as_executable_p="test -f" 217 218# Support unset when possible. 219if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 220 as_unset=unset 221else 222 as_unset=false 223fi 224 225# NLS nuisances. 226$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 227$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 228$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 229$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 230$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 231$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 232$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 233$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255cross_compiling=no 256subdirs= 257MFLAGS= MAKEFLAGS= 258SHELL=${CONFIG_SHELL-/bin/sh} 259 260# Maximum number of lines to put in a shell here document. 261# This variable seems obsolete. It should probably be removed, and 262# only ac_max_sed_lines should be used. 263: ${ac_max_here_lines=38} 264 265ac_unique_file="shmap/shmap_hm.c" 266# Factoring default headers for most tests. 267ac_includes_default="\ 268#include <stdio.h> 269#if HAVE_SYS_TYPES_H 270# include <sys/types.h> 271#endif 272#if HAVE_SYS_STAT_H 273# include <sys/stat.h> 274#endif 275#if STDC_HEADERS 276# include <stdlib.h> 277# include <stddef.h> 278#else 279# if HAVE_STDLIB_H 280# include <stdlib.h> 281# endif 282#endif 283#if HAVE_STRING_H 284# if !STDC_HEADERS && HAVE_MEMORY_H 285# include <memory.h> 286# endif 287# include <string.h> 288#endif 289#if HAVE_STRINGS_H 290# include <strings.h> 291#endif 292#if HAVE_INTTYPES_H 293# include <inttypes.h> 294#else 295# if HAVE_STDINT_H 296# include <stdint.h> 297# endif 298#endif 299#if HAVE_UNISTD_H 300# include <unistd.h> 301#endif" 302 303# Initialize some variables set by options. 304ac_init_help= 305ac_init_version=false 306# The variables have the same names as the options, with 307# dashes changed to underlines. 308cache_file=/dev/null 309exec_prefix=NONE 310no_create= 311no_recursion= 312prefix=NONE 313program_prefix=NONE 314program_suffix=NONE 315program_transform_name=s,x,x, 316silent= 317site= 318srcdir= 319verbose= 320x_includes=NONE 321x_libraries=NONE 322 323# Installation directory options. 324# These are left unexpanded so users can "make install exec_prefix=/foo" 325# and all the variables that are supposed to be based on exec_prefix 326# by default will actually change. 327# Use braces instead of parens because sh, perl, etc. also accept them. 328bindir='${exec_prefix}/bin' 329sbindir='${exec_prefix}/sbin' 330libexecdir='${exec_prefix}/libexec' 331datadir='${prefix}/share' 332sysconfdir='${prefix}/etc' 333sharedstatedir='${prefix}/com' 334localstatedir='${prefix}/var' 335libdir='${exec_prefix}/lib' 336includedir='${prefix}/include' 337oldincludedir='/usr/include' 338infodir='${prefix}/info' 339mandir='${prefix}/man' 340 341# Identity of this package. 342PACKAGE_NAME='Shared memory map' 343PACKAGE_TARNAME='shared memory map' 344PACKAGE_VERSION='0.3.2' 345PACKAGE_STRING='Shared memory map 0.3.2' 346PACKAGE_BUGREPORT='margus@mail.ee' 347 348ac_prev= 349for ac_option 350do 351 # If the previous option needs an argument, assign it. 352 if test -n "$ac_prev"; then 353 eval "$ac_prev=\$ac_option" 354 ac_prev= 355 continue 356 fi 357 358 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 359 360 # Accept the important Cygnus configure options, so we can diagnose typos. 361 362 case $ac_option in 363 364 -bindir | --bindir | --bindi | --bind | --bin | --bi) 365 ac_prev=bindir ;; 366 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 367 bindir=$ac_optarg ;; 368 369 -build | --build | --buil | --bui | --bu) 370 ac_prev=build_alias ;; 371 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 372 build_alias=$ac_optarg ;; 373 374 -cache-file | --cache-file | --cache-fil | --cache-fi \ 375 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 376 ac_prev=cache_file ;; 377 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 378 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 379 cache_file=$ac_optarg ;; 380 381 --config-cache | -C) 382 cache_file=config.cache ;; 383 384 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 385 ac_prev=datadir ;; 386 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 387 | --da=*) 388 datadir=$ac_optarg ;; 389 390 -disable-* | --disable-*) 391 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 392 # Reject names that are not valid shell variable names. 393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 395 { (exit 1); exit 1; }; } 396 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 397 eval "enable_$ac_feature=no" ;; 398 399 -enable-* | --enable-*) 400 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 401 # Reject names that are not valid shell variable names. 402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 404 { (exit 1); exit 1; }; } 405 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 406 case $ac_option in 407 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 408 *) ac_optarg=yes ;; 409 esac 410 eval "enable_$ac_feature='$ac_optarg'" ;; 411 412 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 413 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 414 | --exec | --exe | --ex) 415 ac_prev=exec_prefix ;; 416 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 417 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 418 | --exec=* | --exe=* | --ex=*) 419 exec_prefix=$ac_optarg ;; 420 421 -gas | --gas | --ga | --g) 422 # Obsolete; use --with-gas. 423 with_gas=yes ;; 424 425 -help | --help | --hel | --he | -h) 426 ac_init_help=long ;; 427 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 428 ac_init_help=recursive ;; 429 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 430 ac_init_help=short ;; 431 432 -host | --host | --hos | --ho) 433 ac_prev=host_alias ;; 434 -host=* | --host=* | --hos=* | --ho=*) 435 host_alias=$ac_optarg ;; 436 437 -includedir | --includedir | --includedi | --included | --include \ 438 | --includ | --inclu | --incl | --inc) 439 ac_prev=includedir ;; 440 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 441 | --includ=* | --inclu=* | --incl=* | --inc=*) 442 includedir=$ac_optarg ;; 443 444 -infodir | --infodir | --infodi | --infod | --info | --inf) 445 ac_prev=infodir ;; 446 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 447 infodir=$ac_optarg ;; 448 449 -libdir | --libdir | --libdi | --libd) 450 ac_prev=libdir ;; 451 -libdir=* | --libdir=* | --libdi=* | --libd=*) 452 libdir=$ac_optarg ;; 453 454 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 455 | --libexe | --libex | --libe) 456 ac_prev=libexecdir ;; 457 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 458 | --libexe=* | --libex=* | --libe=*) 459 libexecdir=$ac_optarg ;; 460 461 -localstatedir | --localstatedir | --localstatedi | --localstated \ 462 | --localstate | --localstat | --localsta | --localst \ 463 | --locals | --local | --loca | --loc | --lo) 464 ac_prev=localstatedir ;; 465 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 466 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 467 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 468 localstatedir=$ac_optarg ;; 469 470 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 471 ac_prev=mandir ;; 472 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 473 mandir=$ac_optarg ;; 474 475 -nfp | --nfp | --nf) 476 # Obsolete; use --without-fp. 477 with_fp=no ;; 478 479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 480 | --no-cr | --no-c) 481 no_create=yes ;; 482 483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 485 no_recursion=yes ;; 486 487 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 488 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 489 | --oldin | --oldi | --old | --ol | --o) 490 ac_prev=oldincludedir ;; 491 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 492 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 493 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 494 oldincludedir=$ac_optarg ;; 495 496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 497 ac_prev=prefix ;; 498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 499 prefix=$ac_optarg ;; 500 501 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 502 | --program-pre | --program-pr | --program-p) 503 ac_prev=program_prefix ;; 504 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 505 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 506 program_prefix=$ac_optarg ;; 507 508 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 509 | --program-suf | --program-su | --program-s) 510 ac_prev=program_suffix ;; 511 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 512 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 513 program_suffix=$ac_optarg ;; 514 515 -program-transform-name | --program-transform-name \ 516 | --program-transform-nam | --program-transform-na \ 517 | --program-transform-n | --program-transform- \ 518 | --program-transform | --program-transfor \ 519 | --program-transfo | --program-transf \ 520 | --program-trans | --program-tran \ 521 | --progr-tra | --program-tr | --program-t) 522 ac_prev=program_transform_name ;; 523 -program-transform-name=* | --program-transform-name=* \ 524 | --program-transform-nam=* | --program-transform-na=* \ 525 | --program-transform-n=* | --program-transform-=* \ 526 | --program-transform=* | --program-transfor=* \ 527 | --program-transfo=* | --program-transf=* \ 528 | --program-trans=* | --program-tran=* \ 529 | --progr-tra=* | --program-tr=* | --program-t=*) 530 program_transform_name=$ac_optarg ;; 531 532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 533 | -silent | --silent | --silen | --sile | --sil) 534 silent=yes ;; 535 536 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 537 ac_prev=sbindir ;; 538 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 539 | --sbi=* | --sb=*) 540 sbindir=$ac_optarg ;; 541 542 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 543 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 544 | --sharedst | --shareds | --shared | --share | --shar \ 545 | --sha | --sh) 546 ac_prev=sharedstatedir ;; 547 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 548 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 549 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 550 | --sha=* | --sh=*) 551 sharedstatedir=$ac_optarg ;; 552 553 -site | --site | --sit) 554 ac_prev=site ;; 555 -site=* | --site=* | --sit=*) 556 site=$ac_optarg ;; 557 558 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 559 ac_prev=srcdir ;; 560 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 561 srcdir=$ac_optarg ;; 562 563 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 564 | --syscon | --sysco | --sysc | --sys | --sy) 565 ac_prev=sysconfdir ;; 566 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 567 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 568 sysconfdir=$ac_optarg ;; 569 570 -target | --target | --targe | --targ | --tar | --ta | --t) 571 ac_prev=target_alias ;; 572 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 573 target_alias=$ac_optarg ;; 574 575 -v | -verbose | --verbose | --verbos | --verbo | --verb) 576 verbose=yes ;; 577 578 -version | --version | --versio | --versi | --vers | -V) 579 ac_init_version=: ;; 580 581 -with-* | --with-*) 582 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 583 # Reject names that are not valid shell variable names. 584 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 585 { echo "$as_me: error: invalid package name: $ac_package" >&2 586 { (exit 1); exit 1; }; } 587 ac_package=`echo $ac_package| sed 's/-/_/g'` 588 case $ac_option in 589 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 590 *) ac_optarg=yes ;; 591 esac 592 eval "with_$ac_package='$ac_optarg'" ;; 593 594 -without-* | --without-*) 595 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 596 # Reject names that are not valid shell variable names. 597 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 598 { echo "$as_me: error: invalid package name: $ac_package" >&2 599 { (exit 1); exit 1; }; } 600 ac_package=`echo $ac_package | sed 's/-/_/g'` 601 eval "with_$ac_package=no" ;; 602 603 --x) 604 # Obsolete; use --with-x. 605 with_x=yes ;; 606 607 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 608 | --x-incl | --x-inc | --x-in | --x-i) 609 ac_prev=x_includes ;; 610 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 611 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 612 x_includes=$ac_optarg ;; 613 614 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 615 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 616 ac_prev=x_libraries ;; 617 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 618 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 619 x_libraries=$ac_optarg ;; 620 621 -*) { echo "$as_me: error: unrecognized option: $ac_option 622Try \`$0 --help' for more information." >&2 623 { (exit 1); exit 1; }; } 624 ;; 625 626 *=*) 627 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 628 # Reject names that are not valid shell variable names. 629 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 630 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 631 { (exit 1); exit 1; }; } 632 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 633 eval "$ac_envvar='$ac_optarg'" 634 export $ac_envvar ;; 635 636 *) 637 # FIXME: should be removed in autoconf 3.0. 638 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 639 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 640 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 641 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 642 ;; 643 644 esac 645done 646 647if test -n "$ac_prev"; then 648 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 649 { echo "$as_me: error: missing argument to $ac_option" >&2 650 { (exit 1); exit 1; }; } 651fi 652 653# Be sure to have absolute paths. 654for ac_var in exec_prefix prefix 655do 656 eval ac_val=$`echo $ac_var` 657 case $ac_val in 658 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 659 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 660 { (exit 1); exit 1; }; };; 661 esac 662done 663 664# Be sure to have absolute paths. 665for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 666 localstatedir libdir includedir oldincludedir infodir mandir 667do 668 eval ac_val=$`echo $ac_var` 669 case $ac_val in 670 [\\/$]* | ?:[\\/]* ) ;; 671 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 672 { (exit 1); exit 1; }; };; 673 esac 674done 675 676# There might be people who depend on the old broken behavior: `$host' 677# used to hold the argument of --host etc. 678build=$build_alias 679host=$host_alias 680target=$target_alias 681 682# FIXME: should be removed in autoconf 3.0. 683if test "x$host_alias" != x; then 684 if test "x$build_alias" = x; then 685 cross_compiling=maybe 686 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 687 If a cross compiler is detected then cross compile mode will be used." >&2 688 elif test "x$build_alias" != "x$host_alias"; then 689 cross_compiling=yes 690 fi 691fi 692 693ac_tool_prefix= 694test -n "$host_alias" && ac_tool_prefix=$host_alias- 695 696test "$silent" = yes && exec 6>/dev/null 697 698# Find the source files, if location was not specified. 699if test -z "$srcdir"; then 700 ac_srcdir_defaulted=yes 701 # Try the directory containing this script, then its parent. 702 ac_prog=$0 703 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 704 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 705 srcdir=$ac_confdir 706 if test ! -r $srcdir/$ac_unique_file; then 707 srcdir=.. 708 fi 709else 710 ac_srcdir_defaulted=no 711fi 712if test ! -r $srcdir/$ac_unique_file; then 713 if test "$ac_srcdir_defaulted" = yes; then 714 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 715 { (exit 1); exit 1; }; } 716 else 717 { echo "$as_me: error: cannot find sources in $srcdir" >&2 718 { (exit 1); exit 1; }; } 719 fi 720fi 721srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 722ac_env_build_alias_set=${build_alias+set} 723ac_env_build_alias_value=$build_alias 724ac_cv_env_build_alias_set=${build_alias+set} 725ac_cv_env_build_alias_value=$build_alias 726ac_env_host_alias_set=${host_alias+set} 727ac_env_host_alias_value=$host_alias 728ac_cv_env_host_alias_set=${host_alias+set} 729ac_cv_env_host_alias_value=$host_alias 730ac_env_target_alias_set=${target_alias+set} 731ac_env_target_alias_value=$target_alias 732ac_cv_env_target_alias_set=${target_alias+set} 733ac_cv_env_target_alias_value=$target_alias 734ac_env_CC_set=${CC+set} 735ac_env_CC_value=$CC 736ac_cv_env_CC_set=${CC+set} 737ac_cv_env_CC_value=$CC 738ac_env_CFLAGS_set=${CFLAGS+set} 739ac_env_CFLAGS_value=$CFLAGS 740ac_cv_env_CFLAGS_set=${CFLAGS+set} 741ac_cv_env_CFLAGS_value=$CFLAGS 742ac_env_LDFLAGS_set=${LDFLAGS+set} 743ac_env_LDFLAGS_value=$LDFLAGS 744ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 745ac_cv_env_LDFLAGS_value=$LDFLAGS 746ac_env_CPPFLAGS_set=${CPPFLAGS+set} 747ac_env_CPPFLAGS_value=$CPPFLAGS 748ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 749ac_cv_env_CPPFLAGS_value=$CPPFLAGS 750ac_env_CPP_set=${CPP+set} 751ac_env_CPP_value=$CPP 752ac_cv_env_CPP_set=${CPP+set} 753ac_cv_env_CPP_value=$CPP 754 755# 756# Report the --help message. 757# 758if test "$ac_init_help" = "long"; then 759 # Omit some internal or obsolete options to make the list less imposing. 760 # This message is too long to be a string in the A/UX 3.1 sh. 761 cat <<EOF 762\`configure' configures Shared memory map 0.3.2 to adapt to many kinds of systems. 763 764Usage: $0 [OPTION]... [VAR=VALUE]... 765 766To assign environment variables (e.g., CC, CFLAGS...), specify them as 767VAR=VALUE. See below for descriptions of some of the useful variables. 768 769Defaults for the options are specified in brackets. 770 771Configuration: 772 -h, --help display this help and exit 773 --help=short display options specific to this package 774 --help=recursive display the short help of all the included packages 775 -V, --version display version information and exit 776 -q, --quiet, --silent do not print \`checking...' messages 777 --cache-file=FILE cache test results in FILE [disabled] 778 -C, --config-cache alias for \`--cache-file=config.cache' 779 -n, --no-create do not create output files 780 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 781 782EOF 783 784 cat <<EOF 785Installation directories: 786 --prefix=PREFIX install architecture-independent files in PREFIX 787 [$ac_default_prefix] 788 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 789 [PREFIX] 790 791By default, \`make install' will install all the files in 792\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 793an installation prefix other than \`$ac_default_prefix' using \`--prefix', 794for instance \`--prefix=\$HOME'. 795 796For better control, use the options below. 797 798Fine tuning of the installation directories: 799 --bindir=DIR user executables [EPREFIX/bin] 800 --sbindir=DIR system admin executables [EPREFIX/sbin] 801 --libexecdir=DIR program executables [EPREFIX/libexec] 802 --datadir=DIR read-only architecture-independent data [PREFIX/share] 803 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 804 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 805 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 806 --libdir=DIR object code libraries [EPREFIX/lib] 807 --includedir=DIR C header files [PREFIX/include] 808 --oldincludedir=DIR C header files for non-gcc [/usr/include] 809 --infodir=DIR info documentation [PREFIX/info] 810 --mandir=DIR man documentation [PREFIX/man] 811EOF 812 813 cat <<\EOF 814 815Program names: 816 --program-prefix=PREFIX prepend PREFIX to installed program names 817 --program-suffix=SUFFIX append SUFFIX to installed program names 818 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 819 820System types: 821 --build=BUILD configure for building on BUILD [guessed] 822 --host=HOST build programs to run on HOST [BUILD] 823EOF 824fi 825 826if test -n "$ac_init_help"; then 827 case $ac_init_help in 828 short | recursive ) echo "Configuration of Shared memory map 0.3.2:";; 829 esac 830 cat <<\EOF 831 832Optional Features: 833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 835 --disable-dependency-tracking Speeds up one-time builds 836 --enable-dependency-tracking Do not reject slow dependency extractors 837 --enable-shared=PKGS build shared libraries default=yes 838 --enable-static=PKGS build static libraries default=yes 839 --enable-fast-install=PKGS optimize for fast installation default=yes 840 --disable-libtool-lock avoid locking (might break parallel builds) 841 842Optional Packages: 843 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 844 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 845 --with-gnu-ld assume the C compiler uses GNU ld default=no 846 --with-pic try to use only PIC/non-PIC objects default=use both 847 848Some influential environment variables: 849 CC C compiler command 850 CFLAGS C compiler flags 851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 852 nonstandard directory <lib dir> 853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 854 headers in a nonstandard directory <include dir> 855 CPP C preprocessor 856 857Use these variables to override the choices made by `configure' or to help 858it to find libraries and programs with nonstandard names/locations. 859 860Report bugs to <margus@mail.ee>. 861EOF 862fi 863 864if test "$ac_init_help" = "recursive"; then 865 # If there are subdirs, report their specific --help. 866 ac_popdir=`pwd` 867 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 868 cd $ac_subdir 869 # A "../" for each directory in /$ac_subdir. 870 ac_dots=`echo $ac_subdir | 871 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 872 873 case $srcdir in 874 .) # No --srcdir option. We are building in place. 875 ac_sub_srcdir=$srcdir ;; 876 [\\/]* | ?:[\\/]* ) # Absolute path. 877 ac_sub_srcdir=$srcdir/$ac_subdir ;; 878 *) # Relative path. 879 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 880 esac 881 882 # Check for guested configure; otherwise get Cygnus style configure. 883 if test -f $ac_sub_srcdir/configure.gnu; then 884 echo 885 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 886 elif test -f $ac_sub_srcdir/configure; then 887 echo 888 $SHELL $ac_sub_srcdir/configure --help=recursive 889 elif test -f $ac_sub_srcdir/configure.ac || 890 test -f $ac_sub_srcdir/configure.in; then 891 echo 892 $ac_configure --help 893 else 894 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 895 fi 896 cd $ac_popdir 897 done 898fi 899 900test -n "$ac_init_help" && exit 0 901if $ac_init_version; then 902 cat <<\EOF 903Shared memory map configure 0.3.2 904generated by GNU Autoconf 2.52 905 906Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 907Free Software Foundation, Inc. 908This configure script is free software; the Free Software Foundation 909gives unlimited permission to copy, distribute and modify it. 910EOF 911 exit 0 912fi 913exec 5>config.log 914cat >&5 <<EOF 915This file contains any messages produced by compilers while 916running configure, to aid debugging if configure makes a mistake. 917 918It was created by Shared memory map $as_me 0.3.2, which was 919generated by GNU Autoconf 2.52. Invocation command line was 920 921 $ $0 $@ 922 923EOF 924{ 925cat <<_ASUNAME 926## ---------- ## 927## Platform. ## 928## ---------- ## 929 930hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 931uname -m = `(uname -m) 2>/dev/null || echo unknown` 932uname -r = `(uname -r) 2>/dev/null || echo unknown` 933uname -s = `(uname -s) 2>/dev/null || echo unknown` 934uname -v = `(uname -v) 2>/dev/null || echo unknown` 935 936/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 937/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 938 939/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 940/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 941/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 942hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 943/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 944/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 945/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 946 947PATH = $PATH 948 949_ASUNAME 950} >&5 951 952cat >&5 <<EOF 953## ------------ ## 954## Core tests. ## 955## ------------ ## 956 957EOF 958 959# Keep a trace of the command line. 960# Strip out --no-create and --no-recursion so they do not pile up. 961# Also quote any args containing shell meta-characters. 962ac_configure_args= 963ac_sep= 964for ac_arg 965do 966 case $ac_arg in 967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 968 | --no-cr | --no-c) ;; 969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 971 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 972 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 973 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 974 ac_sep=" " ;; 975 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 976 ac_sep=" " ;; 977 esac 978 # Get rid of the leading space. 979done 980 981# When interrupted or exit'd, cleanup temporary files, and complete 982# config.log. We remove comments because anyway the quotes in there 983# would cause problems or look ugly. 984trap 'exit_status=$? 985 # Save into config.log some information that might help in debugging. 986 echo >&5 987 echo "## ----------------- ##" >&5 988 echo "## Cache variables. ##" >&5 989 echo "## ----------------- ##" >&5 990 echo >&5 991 # The following way of writing the cache mishandles newlines in values, 992{ 993 (set) 2>&1 | 994 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 995 *ac_space=\ *) 996 sed -n \ 997 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 999 ;; 1000 *) 1001 sed -n \ 1002 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1003 ;; 1004 esac; 1005} >&5 1006 sed "/^$/d" confdefs.h >conftest.log 1007 if test -s conftest.log; then 1008 echo >&5 1009 echo "## ------------ ##" >&5 1010 echo "## confdefs.h. ##" >&5 1011 echo "## ------------ ##" >&5 1012 echo >&5 1013 cat conftest.log >&5 1014 fi 1015 (echo; echo) >&5 1016 test "$ac_signal" != 0 && 1017 echo "$as_me: caught signal $ac_signal" >&5 1018 echo "$as_me: exit $exit_status" >&5 1019 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1020 exit $exit_status 1021 ' 0 1022for ac_signal in 1 2 13 15; do 1023 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1024done 1025ac_signal=0 1026 1027# confdefs.h avoids OS command line length limits that DEFS can exceed. 1028rm -rf conftest* confdefs.h 1029# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1030echo >confdefs.h 1031 1032# Let the site file select an alternate cache file if it wants to. 1033# Prefer explicitly selected file to automatically selected ones. 1034if test -z "$CONFIG_SITE"; then 1035 if test "x$prefix" != xNONE; then 1036 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1037 else 1038 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1039 fi 1040fi 1041for ac_site_file in $CONFIG_SITE; do 1042 if test -r "$ac_site_file"; then 1043 { echo "$as_me:1043: loading site script $ac_site_file" >&5 1044echo "$as_me: loading site script $ac_site_file" >&6;} 1045 cat "$ac_site_file" >&5 1046 . "$ac_site_file" 1047 fi 1048done 1049 1050if test -r "$cache_file"; then 1051 # Some versions of bash will fail to source /dev/null (special 1052 # files actually), so we avoid doing that. 1053 if test -f "$cache_file"; then 1054 { echo "$as_me:1054: loading cache $cache_file" >&5 1055echo "$as_me: loading cache $cache_file" >&6;} 1056 case $cache_file in 1057 [\\/]* | ?:[\\/]* ) . $cache_file;; 1058 *) . ./$cache_file;; 1059 esac 1060 fi 1061else 1062 { echo "$as_me:1062: creating cache $cache_file" >&5 1063echo "$as_me: creating cache $cache_file" >&6;} 1064 >$cache_file 1065fi 1066 1067# Check that the precious variables saved in the cache have kept the same 1068# value. 1069ac_cache_corrupted=false 1070for ac_var in `(set) 2>&1 | 1071 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1072 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1073 eval ac_new_set=\$ac_env_${ac_var}_set 1074 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1075 eval ac_new_val="\$ac_env_${ac_var}_value" 1076 case $ac_old_set,$ac_new_set in 1077 set,) 1078 { echo "$as_me:1078: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1079echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1080 ac_cache_corrupted=: ;; 1081 ,set) 1082 { echo "$as_me:1082: error: \`$ac_var' was not set in the previous run" >&5 1083echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1084 ac_cache_corrupted=: ;; 1085 ,);; 1086 *) 1087 if test "x$ac_old_val" != "x$ac_new_val"; then 1088 { echo "$as_me:1088: error: \`$ac_var' has changed since the previous run:" >&5 1089echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1090 { echo "$as_me:1090: former value: $ac_old_val" >&5 1091echo "$as_me: former value: $ac_old_val" >&2;} 1092 { echo "$as_me:1092: current value: $ac_new_val" >&5 1093echo "$as_me: current value: $ac_new_val" >&2;} 1094 ac_cache_corrupted=: 1095 fi;; 1096 esac 1097 # Pass precious variables to config.status. It doesn't matter if 1098 # we pass some twice (in addition to the command line arguments). 1099 if test "$ac_new_set" = set; then 1100 case $ac_new_val in 1101 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1102 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1103 ac_configure_args="$ac_configure_args '$ac_arg'" 1104 ;; 1105 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1106 ;; 1107 esac 1108 fi 1109done 1110if $ac_cache_corrupted; then 1111 { echo "$as_me:1111: error: changes in the environment can compromise the build" >&5 1112echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1113 { { echo "$as_me:1113: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1114echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1115 { (exit 1); exit 1; }; } 1116fi 1117 1118ac_ext=c 1119ac_cpp='$CPP $CPPFLAGS' 1120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1122ac_compiler_gnu=$ac_cv_c_compiler_gnu 1123 1124case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1125 *c*,-n*) ECHO_N= ECHO_C=' 1126' ECHO_T=' ' ;; 1127 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1128 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1129esac 1130echo "#! $SHELL" >conftest.sh 1131echo "exit 0" >>conftest.sh 1132chmod +x conftest.sh 1133if { (echo "$as_me:1133: PATH=\".;.\"; conftest.sh") >&5 1134 (PATH=".;."; conftest.sh) 2>&5 1135 ac_status=$? 1136 echo "$as_me:1136: \$? = $ac_status" >&5 1137 (exit $ac_status); }; then 1138 ac_path_separator=';' 1139else 1140 ac_path_separator=: 1141fi 1142PATH_SEPARATOR="$ac_path_separator" 1143rm -f conftest.sh 1144 1145ac_aux_dir= 1146for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1147 if test -f $ac_dir/install-sh; then 1148 ac_aux_dir=$ac_dir 1149 ac_install_sh="$ac_aux_dir/install-sh -c" 1150 break 1151 elif test -f $ac_dir/install.sh; then 1152 ac_aux_dir=$ac_dir 1153 ac_install_sh="$ac_aux_dir/install.sh -c" 1154 break 1155 elif test -f $ac_dir/shtool; then 1156 ac_aux_dir=$ac_dir 1157 ac_install_sh="$ac_aux_dir/shtool install -c" 1158 break 1159 fi 1160done 1161if test -z "$ac_aux_dir"; then 1162 { { echo "$as_me:1162: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1163echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1164 { (exit 1); exit 1; }; } 1165fi 1166ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1167ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1168ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1169 1170# Find a good install program. We prefer a C program (faster), 1171# so one script is as good as another. But avoid the broken or 1172# incompatible versions: 1173# SysV /etc/install, /usr/sbin/install 1174# SunOS /usr/etc/install 1175# IRIX /sbin/install 1176# AIX /bin/install 1177# AmigaOS /C/install, which installs bootblocks on floppy discs 1178# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1179# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1180# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1181# ./install, which can be erroneously created by make from ./install.sh. 1182echo "$as_me:1182: checking for a BSD compatible install" >&5 1183echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1184if test -z "$INSTALL"; then 1185if test "${ac_cv_path_install+set}" = set; then 1186 echo $ECHO_N "(cached) $ECHO_C" >&6 1187else 1188 ac_save_IFS=$IFS; IFS=$ac_path_separator 1189 for ac_dir in $PATH; do 1190 IFS=$ac_save_IFS 1191 # Account for people who put trailing slashes in PATH elements. 1192 case $ac_dir/ in 1193 / | ./ | .// | /cC/* \ 1194 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 1195 | /usr/ucb/* ) ;; 1196 *) 1197 # OSF1 and SCO ODT 3.0 have their own names for install. 1198 # Don't use installbsd from OSF since it installs stuff as root 1199 # by default. 1200 for ac_prog in ginstall scoinst install; do 1201 if $as_executable_p "$ac_dir/$ac_prog"; then 1202 if test $ac_prog = install && 1203 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1204 # AIX install. It has an incompatible calling convention. 1205 : 1206 elif test $ac_prog = install && 1207 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1208 # program-specific install script used by HP pwplus--don't use. 1209 : 1210 else 1211 ac_cv_path_install="$ac_dir/$ac_prog -c" 1212 break 2 1213 fi 1214 fi 1215 done 1216 ;; 1217 esac 1218 done 1219 1220fi 1221 if test "${ac_cv_path_install+set}" = set; then 1222 INSTALL=$ac_cv_path_install 1223 else 1224 # As a last resort, use the slow shell script. We don't cache a 1225 # path for INSTALL within a source directory, because that will 1226 # break other packages using the cache if that directory is 1227 # removed, or if the path is relative. 1228 INSTALL=$ac_install_sh 1229 fi 1230fi 1231echo "$as_me:1231: result: $INSTALL" >&5 1232echo "${ECHO_T}$INSTALL" >&6 1233 1234# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1235# It thinks the first close brace ends the variable substitution. 1236test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1237 1238test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1239 1240test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1241 1242echo "$as_me:1242: checking whether build environment is sane" >&5 1243echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1244# Just in case 1245sleep 1 1246echo timestamp > conftest.file 1247# Do `set' in a subshell so we don't clobber the current shell's 1248# arguments. Must try -L first in case configure is actually a 1249# symlink; some systems play weird games with the mod time of symlinks 1250# (eg FreeBSD returns the mod time of the symlink's containing 1251# directory). 1252if ( 1253 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1254 if test "$*" = "X"; then 1255 # -L didn't work. 1256 set X `ls -t $srcdir/configure conftest.file` 1257 fi 1258 rm -f conftest.file 1259 if test "$*" != "X $srcdir/configure conftest.file" \ 1260 && test "$*" != "X conftest.file $srcdir/configure"; then 1261 1262 # If neither matched, then we have a broken ls. This can happen 1263 # if, for instance, CONFIG_SHELL is bash and it inherits a 1264 # broken ls alias from the environment. This has actually 1265 # happened. Such a system could not be considered "sane". 1266 { { echo "$as_me:1266: error: ls -t appears to fail. Make sure there is not a broken 1267alias in your environment" >&5 1268echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1269alias in your environment" >&2;} 1270 { (exit 1); exit 1; }; } 1271 fi 1272 1273 test "$2" = conftest.file 1274 ) 1275then 1276 # Ok. 1277 : 1278else 1279 { { echo "$as_me:1279: error: newly created file is older than distributed files! 1280Check your system clock" >&5 1281echo "$as_me: error: newly created file is older than distributed files! 1282Check your system clock" >&2;} 1283 { (exit 1); exit 1; }; } 1284fi 1285echo "$as_me:1285: result: yes" >&5 1286echo "${ECHO_T}yes" >&6 1287test "$program_prefix" != NONE && 1288 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1289# Use a double $ so make ignores it. 1290test "$program_suffix" != NONE && 1291 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1292# Double any \ or $. echo might interpret backslashes. 1293# By default was `s,x,x', remove it if useless. 1294cat <<\_ACEOF >conftest.sed 1295s/[\\$]/&&/g;s/;s,x,x,$// 1296_ACEOF 1297program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1298rm conftest.sed 1299 1300# expand $ac_aux_dir to an absolute path 1301am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 1302 1303test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1304# Use eval to expand $SHELL 1305if eval "$MISSING --run true"; then 1306 am_missing_run="$MISSING --run " 1307else 1308 am_missing_run= 1309 am_backtick='`' 1310 { echo "$as_me:1310: WARNING: ${am_backtick}missing' script is too old or missing" >&5 1311echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} 1312fi 1313 1314for ac_prog in mawk gawk nawk awk 1315do 1316 # Extract the first word of "$ac_prog", so it can be a program name with args. 1317set dummy $ac_prog; ac_word=$2 1318echo "$as_me:1318: checking for $ac_word" >&5 1319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1320if test "${ac_cv_prog_AWK+set}" = set; then 1321 echo $ECHO_N "(cached) $ECHO_C" >&6 1322else 1323 if test -n "$AWK"; then 1324 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1325else 1326 ac_save_IFS=$IFS; IFS=$ac_path_separator 1327ac_dummy="$PATH" 1328for ac_dir in $ac_dummy; do 1329 IFS=$ac_save_IFS 1330 test -z "$ac_dir" && ac_dir=. 1331 $as_executable_p "$ac_dir/$ac_word" || continue 1332ac_cv_prog_AWK="$ac_prog" 1333echo "$as_me:1333: found $ac_dir/$ac_word" >&5 1334break 1335done 1336 1337fi 1338fi 1339AWK=$ac_cv_prog_AWK 1340if test -n "$AWK"; then 1341 echo "$as_me:1341: result: $AWK" >&5 1342echo "${ECHO_T}$AWK" >&6 1343else 1344 echo "$as_me:1344: result: no" >&5 1345echo "${ECHO_T}no" >&6 1346fi 1347 1348 test -n "$AWK" && break 1349done 1350 1351echo "$as_me:1351: checking whether ${MAKE-make} sets \${MAKE}" >&5 1352echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1353set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1354if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1355 echo $ECHO_N "(cached) $ECHO_C" >&6 1356else 1357 cat >conftest.make <<\EOF 1358all: 1359 @echo 'ac_maketemp="${MAKE}"' 1360EOF 1361# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1362eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1363if test -n "$ac_maketemp"; then 1364 eval ac_cv_prog_make_${ac_make}_set=yes 1365else 1366 eval ac_cv_prog_make_${ac_make}_set=no 1367fi 1368rm -f conftest.make 1369fi 1370if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1371 echo "$as_me:1371: result: yes" >&5 1372echo "${ECHO_T}yes" >&6 1373 SET_MAKE= 1374else 1375 echo "$as_me:1375: result: no" >&5 1376echo "${ECHO_T}no" >&6 1377 SET_MAKE="MAKE=${MAKE-make}" 1378fi 1379 1380# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1381if test "${enable_dependency_tracking+set}" = set; then 1382 enableval="$enable_dependency_tracking" 1383 1384fi; 1385if test "x$enable_dependency_tracking" != xno; then 1386 am_depcomp="$ac_aux_dir/depcomp" 1387 AMDEPBACKSLASH='\' 1388fi 1389 1390if test "x$enable_dependency_tracking" != xno; then 1391 AMDEP_TRUE= 1392 AMDEP_FALSE='#' 1393else 1394 AMDEP_TRUE='#' 1395 AMDEP_FALSE= 1396fi 1397 1398rm -f .deps 2>/dev/null 1399mkdir .deps 2>/dev/null 1400if test -d .deps; then 1401 DEPDIR=.deps 1402else 1403 # MS-DOS does not allow filenames that begin with a dot. 1404 DEPDIR=_deps 1405fi 1406rmdir .deps 2>/dev/null 1407 1408# test to see if srcdir already configured 1409if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 1410 test -f $srcdir/config.status; then 1411 { { echo "$as_me:1411: error: source directory already configured; run \"make distclean\" there first" >&5 1412echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1413 { (exit 1); exit 1; }; } 1414fi 1415 1416# Define the identity of the package. 1417PACKAGE=shmap 1418VERSION=0.3.2 1419 1420cat >>confdefs.h <<EOF 1421#define PACKAGE "$PACKAGE" 1422EOF 1423 1424cat >>confdefs.h <<EOF 1425#define VERSION "$VERSION" 1426EOF 1427 1428# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 1429# the ones we care about. 1430 1431# Autoconf 2.50 always computes EXEEXT. However we need to be 1432# compatible with 2.13, for now. So we always define EXEEXT, but we 1433# don't compute it. 1434 1435# Similar for OBJEXT -- only we only use OBJEXT if the user actually 1436# requests that it be used. This is a bit dumb. 1437: ${OBJEXT=o} 1438 1439# Some tools Automake needs. 1440 1441ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 1442 1443AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1444 1445AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 1446 1447AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1448 1449MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1450 1451AMTAR=${AMTAR-"${am_missing_run}tar"} 1452 1453install_sh=${install_sh-"$am_aux_dir/install-sh"} 1454 1455INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1456 1457# We need awk for the "check" target. The system "awk" is bad on 1458# some platforms. 1459 1460 ac_config_headers="$ac_config_headers shmap_config.h" 1461 1462# Checks for programs. 1463ac_ext=c 1464ac_cpp='$CPP $CPPFLAGS' 1465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1467ac_compiler_gnu=$ac_cv_c_compiler_gnu 1468if test -n "$ac_tool_prefix"; then 1469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1470set dummy ${ac_tool_prefix}gcc; ac_word=$2 1471echo "$as_me:1471: checking for $ac_word" >&5 1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1473if test "${ac_cv_prog_CC+set}" = set; then 1474 echo $ECHO_N "(cached) $ECHO_C" >&6 1475else 1476 if test -n "$CC"; then 1477 ac_cv_prog_CC="$CC" # Let the user override the test. 1478else 1479 ac_save_IFS=$IFS; IFS=$ac_path_separator 1480ac_dummy="$PATH" 1481for ac_dir in $ac_dummy; do 1482 IFS=$ac_save_IFS 1483 test -z "$ac_dir" && ac_dir=. 1484 $as_executable_p "$ac_dir/$ac_word" || continue 1485ac_cv_prog_CC="${ac_tool_prefix}gcc" 1486echo "$as_me:1486: found $ac_dir/$ac_word" >&5 1487break 1488done 1489 1490fi 1491fi 1492CC=$ac_cv_prog_CC 1493if test -n "$CC"; then 1494 echo "$as_me:1494: result: $CC" >&5 1495echo "${ECHO_T}$CC" >&6 1496else 1497 echo "$as_me:1497: result: no" >&5 1498echo "${ECHO_T}no" >&6 1499fi 1500 1501fi 1502if test -z "$ac_cv_prog_CC"; then 1503 ac_ct_CC=$CC 1504 # Extract the first word of "gcc", so it can be a program name with args. 1505set dummy gcc; ac_word=$2 1506echo "$as_me:1506: checking for $ac_word" >&5 1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1509 echo $ECHO_N "(cached) $ECHO_C" >&6 1510else 1511 if test -n "$ac_ct_CC"; then 1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1513else 1514 ac_save_IFS=$IFS; IFS=$ac_path_separator 1515ac_dummy="$PATH" 1516for ac_dir in $ac_dummy; do 1517 IFS=$ac_save_IFS 1518 test -z "$ac_dir" && ac_dir=. 1519 $as_executable_p "$ac_dir/$ac_word" || continue 1520ac_cv_prog_ac_ct_CC="gcc" 1521echo "$as_me:1521: found $ac_dir/$ac_word" >&5 1522break 1523done 1524 1525fi 1526fi 1527ac_ct_CC=$ac_cv_prog_ac_ct_CC 1528if test -n "$ac_ct_CC"; then 1529 echo "$as_me:1529: result: $ac_ct_CC" >&5 1530echo "${ECHO_T}$ac_ct_CC" >&6 1531else 1532 echo "$as_me:1532: result: no" >&5 1533echo "${ECHO_T}no" >&6 1534fi 1535 1536 CC=$ac_ct_CC 1537else 1538 CC="$ac_cv_prog_CC" 1539fi 1540 1541if test -z "$CC"; then 1542 if test -n "$ac_tool_prefix"; then 1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1544set dummy ${ac_tool_prefix}cc; ac_word=$2 1545echo "$as_me:1545: checking for $ac_word" >&5 1546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1547if test "${ac_cv_prog_CC+set}" = set; then 1548 echo $ECHO_N "(cached) $ECHO_C" >&6 1549else 1550 if test -n "$CC"; then 1551 ac_cv_prog_CC="$CC" # Let the user override the test. 1552else 1553 ac_save_IFS=$IFS; IFS=$ac_path_separator 1554ac_dummy="$PATH" 1555for ac_dir in $ac_dummy; do 1556 IFS=$ac_save_IFS 1557 test -z "$ac_dir" && ac_dir=. 1558 $as_executable_p "$ac_dir/$ac_word" || continue 1559ac_cv_prog_CC="${ac_tool_prefix}cc" 1560echo "$as_me:1560: found $ac_dir/$ac_word" >&5 1561break 1562done 1563 1564fi 1565fi 1566CC=$ac_cv_prog_CC 1567if test -n "$CC"; then 1568 echo "$as_me:1568: result: $CC" >&5 1569echo "${ECHO_T}$CC" >&6 1570else 1571 echo "$as_me:1571: result: no" >&5 1572echo "${ECHO_T}no" >&6 1573fi 1574 1575fi 1576if test -z "$ac_cv_prog_CC"; then 1577 ac_ct_CC=$CC 1578 # Extract the first word of "cc", so it can be a program name with args. 1579set dummy cc; ac_word=$2 1580echo "$as_me:1580: checking for $ac_word" >&5 1581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1583 echo $ECHO_N "(cached) $ECHO_C" >&6 1584else 1585 if test -n "$ac_ct_CC"; then 1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1587else 1588 ac_save_IFS=$IFS; IFS=$ac_path_separator 1589ac_dummy="$PATH" 1590for ac_dir in $ac_dummy; do 1591 IFS=$ac_save_IFS 1592 test -z "$ac_dir" && ac_dir=. 1593 $as_executable_p "$ac_dir/$ac_word" || continue 1594ac_cv_prog_ac_ct_CC="cc" 1595echo "$as_me:1595: found $ac_dir/$ac_word" >&5 1596break 1597done 1598 1599fi 1600fi 1601ac_ct_CC=$ac_cv_prog_ac_ct_CC 1602if test -n "$ac_ct_CC"; then 1603 echo "$as_me:1603: result: $ac_ct_CC" >&5 1604echo "${ECHO_T}$ac_ct_CC" >&6 1605else 1606 echo "$as_me:1606: result: no" >&5 1607echo "${ECHO_T}no" >&6 1608fi 1609 1610 CC=$ac_ct_CC 1611else 1612 CC="$ac_cv_prog_CC" 1613fi 1614 1615fi 1616if test -z "$CC"; then 1617 # Extract the first word of "cc", so it can be a program name with args. 1618set dummy cc; ac_word=$2 1619echo "$as_me:1619: checking for $ac_word" >&5 1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1621if test "${ac_cv_prog_CC+set}" = set; then 1622 echo $ECHO_N "(cached) $ECHO_C" >&6 1623else 1624 if test -n "$CC"; then 1625 ac_cv_prog_CC="$CC" # Let the user override the test. 1626else 1627 ac_prog_rejected=no 1628 ac_save_IFS=$IFS; IFS=$ac_path_separator 1629ac_dummy="$PATH" 1630for ac_dir in $ac_dummy; do 1631 IFS=$ac_save_IFS 1632 test -z "$ac_dir" && ac_dir=. 1633 $as_executable_p "$ac_dir/$ac_word" || continue 1634if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1635 ac_prog_rejected=yes 1636 continue 1637fi 1638ac_cv_prog_CC="cc" 1639echo "$as_me:1639: found $ac_dir/$ac_word" >&5 1640break 1641done 1642 1643if test $ac_prog_rejected = yes; then 1644 # We found a bogon in the path, so make sure we never use it. 1645 set dummy $ac_cv_prog_CC 1646 shift 1647 if test $# != 0; then 1648 # We chose a different compiler from the bogus one. 1649 # However, it has the same basename, so the bogon will be chosen 1650 # first if we set CC to just the basename; use the full file name. 1651 shift 1652 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1653 shift 1654 ac_cv_prog_CC="$@" 1655 fi 1656fi 1657fi 1658fi 1659CC=$ac_cv_prog_CC 1660if test -n "$CC"; then 1661 echo "$as_me:1661: result: $CC" >&5 1662echo "${ECHO_T}$CC" >&6 1663else 1664 echo "$as_me:1664: result: no" >&5 1665echo "${ECHO_T}no" >&6 1666fi 1667 1668fi 1669if test -z "$CC"; then 1670 if test -n "$ac_tool_prefix"; then 1671 for ac_prog in cl 1672 do 1673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1674set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1675echo "$as_me:1675: checking for $ac_word" >&5 1676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1677if test "${ac_cv_prog_CC+set}" = set; then 1678 echo $ECHO_N "(cached) $ECHO_C" >&6 1679else 1680 if test -n "$CC"; then 1681 ac_cv_prog_CC="$CC" # Let the user override the test. 1682else 1683 ac_save_IFS=$IFS; IFS=$ac_path_separator 1684ac_dummy="$PATH" 1685for ac_dir in $ac_dummy; do 1686 IFS=$ac_save_IFS 1687 test -z "$ac_dir" && ac_dir=. 1688 $as_executable_p "$ac_dir/$ac_word" || continue 1689ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1690echo "$as_me:1690: found $ac_dir/$ac_word" >&5 1691break 1692done 1693 1694fi 1695fi 1696CC=$ac_cv_prog_CC 1697if test -n "$CC"; then 1698 echo "$as_me:1698: result: $CC" >&5 1699echo "${ECHO_T}$CC" >&6 1700else 1701 echo "$as_me:1701: result: no" >&5 1702echo "${ECHO_T}no" >&6 1703fi 1704 1705 test -n "$CC" && break 1706 done 1707fi 1708if test -z "$CC"; then 1709 ac_ct_CC=$CC 1710 for ac_prog in cl 1711do 1712 # Extract the first word of "$ac_prog", so it can be a program name with args. 1713set dummy $ac_prog; ac_word=$2 1714echo "$as_me:1714: checking for $ac_word" >&5 1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1717 echo $ECHO_N "(cached) $ECHO_C" >&6 1718else 1719 if test -n "$ac_ct_CC"; then 1720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1721else 1722 ac_save_IFS=$IFS; IFS=$ac_path_separator 1723ac_dummy="$PATH" 1724for ac_dir in $ac_dummy; do 1725 IFS=$ac_save_IFS 1726 test -z "$ac_dir" && ac_dir=. 1727 $as_executable_p "$ac_dir/$ac_word" || continue 1728ac_cv_prog_ac_ct_CC="$ac_prog" 1729echo "$as_me:1729: found $ac_dir/$ac_word" >&5 1730break 1731done 1732 1733fi 1734fi 1735ac_ct_CC=$ac_cv_prog_ac_ct_CC 1736if test -n "$ac_ct_CC"; then 1737 echo "$as_me:1737: result: $ac_ct_CC" >&5 1738echo "${ECHO_T}$ac_ct_CC" >&6 1739else 1740 echo "$as_me:1740: result: no" >&5 1741echo "${ECHO_T}no" >&6 1742fi 1743 1744 test -n "$ac_ct_CC" && break 1745done 1746 1747 CC=$ac_ct_CC 1748fi 1749 1750fi 1751 1752test -z "$CC" && { { echo "$as_me:1752: error: no acceptable cc found in \$PATH" >&5 1753echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1754 { (exit 1); exit 1; }; } 1755 1756# Provide some information about the compiler. 1757echo "$as_me:1757:" \ 1758 "checking for C compiler version" >&5 1759ac_compiler=`set X $ac_compile; echo $2` 1760{ (eval echo "$as_me:1760: \"$ac_compiler --version </dev/null >&5\"") >&5 1761 (eval $ac_compiler --version </dev/null >&5) 2>&5 1762 ac_status=$? 1763 echo "$as_me:1763: \$? = $ac_status" >&5 1764 (exit $ac_status); } 1765{ (eval echo "$as_me:1765: \"$ac_compiler -v </dev/null >&5\"") >&5 1766 (eval $ac_compiler -v </dev/null >&5) 2>&5 1767 ac_status=$? 1768 echo "$as_me:1768: \$? = $ac_status" >&5 1769 (exit $ac_status); } 1770{ (eval echo "$as_me:1770: \"$ac_compiler -V </dev/null >&5\"") >&5 1771 (eval $ac_compiler -V </dev/null >&5) 2>&5 1772 ac_status=$? 1773 echo "$as_me:1773: \$? = $ac_status" >&5 1774 (exit $ac_status); } 1775 1776cat >conftest.$ac_ext <<_ACEOF 1777#line 1777 "configure" 1778#include "confdefs.h" 1779 1780int 1781main () 1782{ 1783 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788ac_clean_files_save=$ac_clean_files 1789ac_clean_files="$ac_clean_files a.out a.exe" 1790# Try to create an executable without -o first, disregard a.out. 1791# It will help us diagnose broken compilers, and finding out an intuition 1792# of exeext. 1793echo "$as_me:1793: checking for C compiler default output" >&5 1794echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1795ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1796if { (eval echo "$as_me:1796: \"$ac_link_default\"") >&5 1797 (eval $ac_link_default) 2>&5 1798 ac_status=$? 1799 echo "$as_me:1799: \$? = $ac_status" >&5 1800 (exit $ac_status); }; then 1801 # Find the output, starting from the most likely. This scheme is 1802# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1803# resort. 1804for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1805 ls a.out conftest 2>/dev/null; 1806 ls a.* conftest.* 2>/dev/null`; do 1807 case $ac_file in 1808 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1809 a.out ) # We found the default executable, but exeext='' is most 1810 # certainly right. 1811 break;; 1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1813 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1814 export ac_cv_exeext 1815 break;; 1816 * ) break;; 1817 esac 1818done 1819else 1820 echo "$as_me: failed program was:" >&5 1821cat conftest.$ac_ext >&5 1822{ { echo "$as_me:1822: error: C compiler cannot create executables" >&5 1823echo "$as_me: error: C compiler cannot create executables" >&2;} 1824 { (exit 77); exit 77; }; } 1825fi 1826 1827ac_exeext=$ac_cv_exeext 1828echo "$as_me:1828: result: $ac_file" >&5 1829echo "${ECHO_T}$ac_file" >&6 1830 1831# Check the compiler produces executables we can run. If not, either 1832# the compiler is broken, or we cross compile. 1833echo "$as_me:1833: checking whether the C compiler works" >&5 1834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1836# If not cross compiling, check that we can run a simple program. 1837if test "$cross_compiling" != yes; then 1838 if { ac_try='./$ac_file' 1839 { (eval echo "$as_me:1839: \"$ac_try\"") >&5 1840 (eval $ac_try) 2>&5 1841 ac_status=$? 1842 echo "$as_me:1842: \$? = $ac_status" >&5 1843 (exit $ac_status); }; }; then 1844 cross_compiling=no 1845 else 1846 if test "$cross_compiling" = maybe; then 1847 cross_compiling=yes 1848 else 1849 { { echo "$as_me:1849: error: cannot run C compiled programs. 1850If you meant to cross compile, use \`--host'." >&5 1851echo "$as_me: error: cannot run C compiled programs. 1852If you meant to cross compile, use \`--host'." >&2;} 1853 { (exit 1); exit 1; }; } 1854 fi 1855 fi 1856fi 1857echo "$as_me:1857: result: yes" >&5 1858echo "${ECHO_T}yes" >&6 1859 1860rm -f a.out a.exe conftest$ac_cv_exeext 1861ac_clean_files=$ac_clean_files_save 1862# Check the compiler produces executables we can run. If not, either 1863# the compiler is broken, or we cross compile. 1864echo "$as_me:1864: checking whether we are cross compiling" >&5 1865echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1866echo "$as_me:1866: result: $cross_compiling" >&5 1867echo "${ECHO_T}$cross_compiling" >&6 1868 1869echo "$as_me:1869: checking for executable suffix" >&5 1870echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1871if { (eval echo "$as_me:1871: \"$ac_link\"") >&5 1872 (eval $ac_link) 2>&5 1873 ac_status=$? 1874 echo "$as_me:1874: \$? = $ac_status" >&5 1875 (exit $ac_status); }; then 1876 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1877# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1878# work properly (i.e., refer to `conftest.exe'), while it won't with 1879# `rm'. 1880for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1881 case $ac_file in 1882 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1884 export ac_cv_exeext 1885 break;; 1886 * ) break;; 1887 esac 1888done 1889else 1890 { { echo "$as_me:1890: error: cannot compute EXEEXT: cannot compile and link" >&5 1891echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1892 { (exit 1); exit 1; }; } 1893fi 1894 1895rm -f conftest$ac_cv_exeext 1896echo "$as_me:1896: result: $ac_cv_exeext" >&5 1897echo "${ECHO_T}$ac_cv_exeext" >&6 1898 1899rm -f conftest.$ac_ext 1900EXEEXT=$ac_cv_exeext 1901ac_exeext=$EXEEXT 1902echo "$as_me:1902: checking for object suffix" >&5 1903echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1904if test "${ac_cv_objext+set}" = set; then 1905 echo $ECHO_N "(cached) $ECHO_C" >&6 1906else 1907 cat >conftest.$ac_ext <<_ACEOF 1908#line 1908 "configure" 1909#include "confdefs.h" 1910 1911int 1912main () 1913{ 1914 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919rm -f conftest.o conftest.obj 1920if { (eval echo "$as_me:1920: \"$ac_compile\"") >&5 1921 (eval $ac_compile) 2>&5 1922 ac_status=$? 1923 echo "$as_me:1923: \$? = $ac_status" >&5 1924 (exit $ac_status); }; then 1925 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1926 case $ac_file in 1927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1928 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1929 break;; 1930 esac 1931done 1932else 1933 echo "$as_me: failed program was:" >&5 1934cat conftest.$ac_ext >&5 1935{ { echo "$as_me:1935: error: cannot compute OBJEXT: cannot compile" >&5 1936echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1937 { (exit 1); exit 1; }; } 1938fi 1939 1940rm -f conftest.$ac_cv_objext conftest.$ac_ext 1941fi 1942echo "$as_me:1942: result: $ac_cv_objext" >&5 1943echo "${ECHO_T}$ac_cv_objext" >&6 1944OBJEXT=$ac_cv_objext 1945ac_objext=$OBJEXT 1946echo "$as_me:1946: checking whether we are using the GNU C compiler" >&5 1947echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1948if test "${ac_cv_c_compiler_gnu+set}" = set; then 1949 echo $ECHO_N "(cached) $ECHO_C" >&6 1950else 1951 cat >conftest.$ac_ext <<_ACEOF 1952#line 1952 "configure" 1953#include "confdefs.h" 1954 1955int 1956main () 1957{ 1958#ifndef __GNUC__ 1959 choke me 1960#endif 1961 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966rm -f conftest.$ac_objext 1967if { (eval echo "$as_me:1967: \"$ac_compile\"") >&5 1968 (eval $ac_compile) 2>&5 1969 ac_status=$? 1970 echo "$as_me:1970: \$? = $ac_status" >&5 1971 (exit $ac_status); } && 1972 { ac_try='test -s conftest.$ac_objext' 1973 { (eval echo "$as_me:1973: \"$ac_try\"") >&5 1974 (eval $ac_try) 2>&5 1975 ac_status=$? 1976 echo "$as_me:1976: \$? = $ac_status" >&5 1977 (exit $ac_status); }; }; then 1978 ac_compiler_gnu=yes 1979else 1980 echo "$as_me: failed program was:" >&5 1981cat conftest.$ac_ext >&5 1982ac_compiler_gnu=no 1983fi 1984rm -f conftest.$ac_objext conftest.$ac_ext 1985ac_cv_c_compiler_gnu=$ac_compiler_gnu 1986 1987fi 1988echo "$as_me:1988: result: $ac_cv_c_compiler_gnu" >&5 1989echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1990GCC=`test $ac_compiler_gnu = yes && echo yes` 1991ac_test_CFLAGS=${CFLAGS+set} 1992ac_save_CFLAGS=$CFLAGS 1993CFLAGS="-g" 1994echo "$as_me:1994: checking whether $CC accepts -g" >&5 1995echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1996if test "${ac_cv_prog_cc_g+set}" = set; then 1997 echo $ECHO_N "(cached) $ECHO_C" >&6 1998else 1999 cat >conftest.$ac_ext <<_ACEOF 2000#line 2000 "configure" 2001#include "confdefs.h" 2002 2003int 2004main () 2005{ 2006 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011rm -f conftest.$ac_objext 2012if { (eval echo "$as_me:2012: \"$ac_compile\"") >&5 2013 (eval $ac_compile) 2>&5 2014 ac_status=$? 2015 echo "$as_me:2015: \$? = $ac_status" >&5 2016 (exit $ac_status); } && 2017 { ac_try='test -s conftest.$ac_objext' 2018 { (eval echo "$as_me:2018: \"$ac_try\"") >&5 2019 (eval $ac_try) 2>&5 2020 ac_status=$? 2021 echo "$as_me:2021: \$? = $ac_status" >&5 2022 (exit $ac_status); }; }; then 2023 ac_cv_prog_cc_g=yes 2024else 2025 echo "$as_me: failed program was:" >&5 2026cat conftest.$ac_ext >&5 2027ac_cv_prog_cc_g=no 2028fi 2029rm -f conftest.$ac_objext conftest.$ac_ext 2030fi 2031echo "$as_me:2031: result: $ac_cv_prog_cc_g" >&5 2032echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2033if test "$ac_test_CFLAGS" = set; then 2034 CFLAGS=$ac_save_CFLAGS 2035elif test $ac_cv_prog_cc_g = yes; then 2036 if test "$GCC" = yes; then 2037 CFLAGS="-g -O2" 2038 else 2039 CFLAGS="-g" 2040 fi 2041else 2042 if test "$GCC" = yes; then 2043 CFLAGS="-O2" 2044 else 2045 CFLAGS= 2046 fi 2047fi 2048# Some people use a C++ compiler to compile C. Since we use `exit', 2049# in C++ we need to declare it. In case someone uses the same compiler 2050# for both compiling C and C++ we need to have the C++ compiler decide 2051# the declaration of exit, since it's the most demanding environment. 2052cat >conftest.$ac_ext <<_ACEOF 2053#ifndef __cplusplus 2054 choke me 2055#endif 2056_ACEOF 2057rm -f conftest.$ac_objext 2058if { (eval echo "$as_me:2058: \"$ac_compile\"") >&5 2059 (eval $ac_compile) 2>&5 2060 ac_status=$? 2061 echo "$as_me:2061: \$? = $ac_status" >&5 2062 (exit $ac_status); } && 2063 { ac_try='test -s conftest.$ac_objext' 2064 { (eval echo "$as_me:2064: \"$ac_try\"") >&5 2065 (eval $ac_try) 2>&5 2066 ac_status=$? 2067 echo "$as_me:2067: \$? = $ac_status" >&5 2068 (exit $ac_status); }; }; then 2069 for ac_declaration in \ 2070 ''\ 2071 '#include <stdlib.h>' \ 2072 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2073 'extern "C" void std::exit (int); using std::exit;' \ 2074 'extern "C" void exit (int) throw ();' \ 2075 'extern "C" void exit (int);' \ 2076 'void exit (int);' 2077do 2078 cat >conftest.$ac_ext <<_ACEOF 2079#line 2079 "configure" 2080#include "confdefs.h" 2081#include <stdlib.h> 2082$ac_declaration 2083int 2084main () 2085{ 2086exit (42); 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091rm -f conftest.$ac_objext 2092if { (eval echo "$as_me:2092: \"$ac_compile\"") >&5 2093 (eval $ac_compile) 2>&5 2094 ac_status=$? 2095 echo "$as_me:2095: \$? = $ac_status" >&5 2096 (exit $ac_status); } && 2097 { ac_try='test -s conftest.$ac_objext' 2098 { (eval echo "$as_me:2098: \"$ac_try\"") >&5 2099 (eval $ac_try) 2>&5 2100 ac_status=$? 2101 echo "$as_me:2101: \$? = $ac_status" >&5 2102 (exit $ac_status); }; }; then 2103 : 2104else 2105 echo "$as_me: failed program was:" >&5 2106cat conftest.$ac_ext >&5 2107continue 2108fi 2109rm -f conftest.$ac_objext conftest.$ac_ext 2110 cat >conftest.$ac_ext <<_ACEOF 2111#line 2111 "configure" 2112#include "confdefs.h" 2113$ac_declaration 2114int 2115main () 2116{ 2117exit (42); 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122rm -f conftest.$ac_objext 2123if { (eval echo "$as_me:2123: \"$ac_compile\"") >&5 2124 (eval $ac_compile) 2>&5 2125 ac_status=$? 2126 echo "$as_me:2126: \$? = $ac_status" >&5 2127 (exit $ac_status); } && 2128 { ac_try='test -s conftest.$ac_objext' 2129 { (eval echo "$as_me:2129: \"$ac_try\"") >&5 2130 (eval $ac_try) 2>&5 2131 ac_status=$? 2132 echo "$as_me:2132: \$? = $ac_status" >&5 2133 (exit $ac_status); }; }; then 2134 break 2135else 2136 echo "$as_me: failed program was:" >&5 2137cat conftest.$ac_ext >&5 2138fi 2139rm -f conftest.$ac_objext conftest.$ac_ext 2140done 2141rm -f conftest* 2142if test -n "$ac_declaration"; then 2143 echo '#ifdef __cplusplus' >>confdefs.h 2144 echo $ac_declaration >>confdefs.h 2145 echo '#endif' >>confdefs.h 2146fi 2147 2148else 2149 echo "$as_me: failed program was:" >&5 2150cat conftest.$ac_ext >&5 2151fi 2152rm -f conftest.$ac_objext conftest.$ac_ext 2153ac_ext=c 2154ac_cpp='$CPP $CPPFLAGS' 2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2157ac_compiler_gnu=$ac_cv_c_compiler_gnu 2158 2159ac_config_commands="$ac_config_commands default-1" 2160 2161am_make=${MAKE-make} 2162cat > confinc << 'END' 2163doit: 2164 @echo done 2165END 2166# If we don't find an include directive, just comment out the code. 2167echo "$as_me:2167: checking for style of include used by $am_make" >&5 2168echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2169am__include='#' 2170am__quote= 2171_am_result=none 2172# First try GNU make style include. 2173echo "include confinc" > confmf 2174# We grep out `Entering directory' and `Leaving directory' 2175# messages which can occur if `w' ends up in MAKEFLAGS. 2176# In particular we don't look at `^make:' because GNU make might 2177# be invoked under some other name (usually "gmake"), in which 2178# case it prints its new name instead of `make'. 2179if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2180 am__include=include 2181 am__quote= 2182 _am_result=GNU 2183fi 2184# Now try BSD make style include. 2185if test "$am__include" = "#"; then 2186 echo '.include "confinc"' > confmf 2187 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2188 am__include=.include 2189 am__quote='"' 2190 _am_result=BSD 2191 fi 2192fi 2193 2194echo "$as_me:2194: result: $_am_result" >&5 2195echo "${ECHO_T}$_am_result" >&6 2196rm -f confinc confmf 2197 2198depcc="$CC" am_compiler_list= 2199 2200echo "$as_me:2200: checking dependency style of $depcc" >&5 2201echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2202if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2203 echo $ECHO_N "(cached) $ECHO_C" >&6 2204else 2205 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2206 # We make a subdir and do the tests there. Otherwise we can end up 2207 # making bogus files that we don't know about and never remove. For 2208 # instance it was reported that on HP-UX the gcc test will end up 2209 # making a dummy file named `D' -- because `-MD' means `put the output 2210 # in D'. 2211 mkdir conftest.dir 2212 # Copy depcomp to subdir because otherwise we won't find it if we're 2213 # using a relative directory. 2214 cp "$am_depcomp" conftest.dir 2215 cd conftest.dir 2216 2217 am_cv_CC_dependencies_compiler_type=none 2218 if test "$am_compiler_list" = ""; then 2219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2220 fi 2221 for depmode in $am_compiler_list; do 2222 # We need to recreate these files for each test, as the compiler may 2223 # overwrite some of them when testing with obscure command lines. 2224 # This happens at least with the AIX C compiler. 2225 echo '#include "conftest.h"' > conftest.c 2226 echo 'int i;' > conftest.h 2227 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2228 2229 case $depmode in 2230 nosideeffect) 2231 # after this tag, mechanisms are not by side-effect, so they'll 2232 # only be used when explicitly requested 2233 if test "x$enable_dependency_tracking" = xyes; then 2234 continue 2235 else 2236 break 2237 fi 2238 ;; 2239 none) break ;; 2240 esac 2241 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2242 # mode. It turns out that the SunPro C++ compiler does not properly 2243 # handle `-M -o', and we need to detect this. 2244 if depmode=$depmode \ 2245 source=conftest.c object=conftest.o \ 2246 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2247 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2248 grep conftest.h conftest.Po > /dev/null 2>&1 && 2249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2250 am_cv_CC_dependencies_compiler_type=$depmode 2251 break 2252 fi 2253 done 2254 2255 cd .. 2256 rm -rf conftest.dir 2257else 2258 am_cv_CC_dependencies_compiler_type=none 2259fi 2260 2261fi 2262echo "$as_me:2262: result: $am_cv_CC_dependencies_compiler_type" >&5 2263echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2264CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 2265 2266# AC_PROG_INSTALL 2267echo "$as_me:2267: checking whether ${MAKE-make} sets \${MAKE}" >&5 2268echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2269set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2270if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2271 echo $ECHO_N "(cached) $ECHO_C" >&6 2272else 2273 cat >conftest.make <<\EOF 2274all: 2275 @echo 'ac_maketemp="${MAKE}"' 2276EOF 2277# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2278eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2279if test -n "$ac_maketemp"; then 2280 eval ac_cv_prog_make_${ac_make}_set=yes 2281else 2282 eval ac_cv_prog_make_${ac_make}_set=no 2283fi 2284rm -f conftest.make 2285fi 2286if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2287 echo "$as_me:2287: result: yes" >&5 2288echo "${ECHO_T}yes" >&6 2289 SET_MAKE= 2290else 2291 echo "$as_me:2291: result: no" >&5 2292echo "${ECHO_T}no" >&6 2293 SET_MAKE="MAKE=${MAKE-make}" 2294fi 2295 2296# Check whether --enable-shared or --disable-shared was given. 2297if test "${enable_shared+set}" = set; then 2298 enableval="$enable_shared" 2299 p=${PACKAGE-default} 2300case $enableval in 2301yes) enable_shared=yes ;; 2302no) enable_shared=no ;; 2303*) 2304 enable_shared=no 2305 # Look at the argument we got. We use all the common list separators. 2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2307 for pkg in $enableval; do 2308 if test "X$pkg" = "X$p"; then 2309 enable_shared=yes 2310 fi 2311 done 2312 IFS="$ac_save_ifs" 2313 ;; 2314esac 2315else 2316 enable_shared=yes 2317fi; 2318# Check whether --enable-static or --disable-static was given. 2319if test "${enable_static+set}" = set; then 2320 enableval="$enable_static" 2321 p=${PACKAGE-default} 2322case $enableval in 2323yes) enable_static=yes ;; 2324no) enable_static=no ;; 2325*) 2326 enable_static=no 2327 # Look at the argument we got. We use all the common list separators. 2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2329 for pkg in $enableval; do 2330 if test "X$pkg" = "X$p"; then 2331 enable_static=yes 2332 fi 2333 done 2334 IFS="$ac_save_ifs" 2335 ;; 2336esac 2337else 2338 enable_static=yes 2339fi; 2340# Check whether --enable-fast-install or --disable-fast-install was given. 2341if test "${enable_fast_install+set}" = set; then 2342 enableval="$enable_fast_install" 2343 p=${PACKAGE-default} 2344case $enableval in 2345yes) enable_fast_install=yes ;; 2346no) enable_fast_install=no ;; 2347*) 2348 enable_fast_install=no 2349 # Look at the argument we got. We use all the common list separators. 2350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2351 for pkg in $enableval; do 2352 if test "X$pkg" = "X$p"; then 2353 enable_fast_install=yes 2354 fi 2355 done 2356 IFS="$ac_save_ifs" 2357 ;; 2358esac 2359else 2360 enable_fast_install=yes 2361fi; 2362# Make sure we can run config.sub. 2363$ac_config_sub sun4 >/dev/null 2>&1 || 2364 { { echo "$as_me:2364: error: cannot run $ac_config_sub" >&5 2365echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2366 { (exit 1); exit 1; }; } 2367 2368echo "$as_me:2368: checking build system type" >&5 2369echo $ECHO_N "checking build system type... $ECHO_C" >&6 2370if test "${ac_cv_build+set}" = set; then 2371 echo $ECHO_N "(cached) $ECHO_C" >&6 2372else 2373 ac_cv_build_alias=$build_alias 2374test -z "$ac_cv_build_alias" && 2375 ac_cv_build_alias=`$ac_config_guess` 2376test -z "$ac_cv_build_alias" && 2377 { { echo "$as_me:2377: error: cannot guess build type; you must specify one" >&5 2378echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2379 { (exit 1); exit 1; }; } 2380ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2381 { { echo "$as_me:2381: error: $ac_config_sub $ac_cv_build_alias failed." >&5 2382echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 2383 { (exit 1); exit 1; }; } 2384 2385fi 2386echo "$as_me:2386: result: $ac_cv_build" >&5 2387echo "${ECHO_T}$ac_cv_build" >&6 2388build=$ac_cv_build 2389build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2390build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2391build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2392 2393test -z "$build_alias" && 2394 build_alias=$ac_cv_build 2395 2396echo "$as_me:2396: checking host system type" >&5 2397echo $ECHO_N "checking host system type... $ECHO_C" >&6 2398if test "${ac_cv_host+set}" = set; then 2399 echo $ECHO_N "(cached) $ECHO_C" >&6 2400else 2401 ac_cv_host_alias=$host_alias 2402test -z "$ac_cv_host_alias" && 2403 ac_cv_host_alias=$ac_cv_build_alias 2404ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2405 { { echo "$as_me:2405: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2406echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2407 { (exit 1); exit 1; }; } 2408 2409fi 2410echo "$as_me:2410: result: $ac_cv_host" >&5 2411echo "${ECHO_T}$ac_cv_host" >&6 2412host=$ac_cv_host 2413host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2414host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2415host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2416 2417test -z "$host_alias" && 2418 host_alias=$ac_cv_host 2419 2420# Find the correct PATH separator. Usually this is `:', but 2421# DJGPP uses `;' like DOS. 2422if test "X${PATH_SEPARATOR+set}" != Xset; then 2423 UNAME=${UNAME-`uname 2>/dev/null`} 2424 case X$UNAME in 2425 *-DOS) lt_cv_sys_path_separator=';' ;; 2426 *) lt_cv_sys_path_separator=':' ;; 2427 esac 2428 PATH_SEPARATOR=$lt_cv_sys_path_separator 2429fi 2430 2431# Check whether --with-gnu-ld or --without-gnu-ld was given. 2432if test "${with_gnu_ld+set}" = set; then 2433 withval="$with_gnu_ld" 2434 test "$withval" = no || with_gnu_ld=yes 2435else 2436 with_gnu_ld=no 2437fi; 2438ac_prog=ld 2439if test "$GCC" = yes; then 2440 # Check if gcc -print-prog-name=ld gives a path. 2441 echo "$as_me:2441: checking for ld used by GCC" >&5 2442echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 2443 case $host in 2444 *-*-mingw*) 2445 # gcc leaves a trailing carriage return which upsets mingw 2446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2447 *) 2448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2449 esac 2450 case $ac_prog in 2451 # Accept absolute paths. 2452 [\\/]* | [A-Za-z]:[\\/]*) 2453 re_direlt='/[^/][^/]*/\.\./' 2454 # Canonicalize the path of ld 2455 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 2456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2457 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 2458 done 2459 test -z "$LD" && LD="$ac_prog" 2460 ;; 2461 "") 2462 # If it fails, then pretend we aren't using GCC. 2463 ac_prog=ld 2464 ;; 2465 *) 2466 # If it is relative, then search for the first ld in PATH. 2467 with_gnu_ld=unknown 2468 ;; 2469 esac 2470elif test "$with_gnu_ld" = yes; then 2471 echo "$as_me:2471: checking for GNU ld" >&5 2472echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 2473else 2474 echo "$as_me:2474: checking for non-GNU ld" >&5 2475echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 2476fi 2477if test "${lt_cv_path_LD+set}" = set; then 2478 echo $ECHO_N "(cached) $ECHO_C" >&6 2479else 2480 if test -z "$LD"; then 2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2482 for ac_dir in $PATH; do 2483 test -z "$ac_dir" && ac_dir=. 2484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2485 lt_cv_path_LD="$ac_dir/$ac_prog" 2486 # Check to see if the program is GNU ld. I'd rather use --version, 2487 # but apparently some GNU ld's only accept -v. 2488 # Break only if it was the GNU/non-GNU ld that we prefer. 2489 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 2490 test "$with_gnu_ld" != no && break 2491 else 2492 test "$with_gnu_ld" != yes && break 2493 fi 2494 fi 2495 done 2496 IFS="$ac_save_ifs" 2497else 2498 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2499fi 2500fi 2501 2502LD="$lt_cv_path_LD" 2503if test -n "$LD"; then 2504 echo "$as_me:2504: result: $LD" >&5 2505echo "${ECHO_T}$LD" >&6 2506else 2507 echo "$as_me:2507: result: no" >&5 2508echo "${ECHO_T}no" >&6 2509fi 2510test -z "$LD" && { { echo "$as_me:2510: error: no acceptable ld found in \$PATH" >&5 2511echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 2512 { (exit 1); exit 1; }; } 2513echo "$as_me:2513: checking if the linker ($LD) is GNU ld" >&5 2514echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 2515if test "${lt_cv_prog_gnu_ld+set}" = set; then 2516 echo $ECHO_N "(cached) $ECHO_C" >&6 2517else 2518 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 2519if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 2520 lt_cv_prog_gnu_ld=yes 2521else 2522 lt_cv_prog_gnu_ld=no 2523fi 2524fi 2525echo "$as_me:2525: result: $lt_cv_prog_gnu_ld" >&5 2526echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 2527with_gnu_ld=$lt_cv_prog_gnu_ld 2528 2529echo "$as_me:2529: checking for $LD option to reload object files" >&5 2530echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 2531if test "${lt_cv_ld_reload_flag+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 lt_cv_ld_reload_flag='-r' 2535fi 2536echo "$as_me:2536: result: $lt_cv_ld_reload_flag" >&5 2537echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 2538reload_flag=$lt_cv_ld_reload_flag 2539test -n "$reload_flag" && reload_flag=" $reload_flag" 2540 2541echo "$as_me:2541: checking for BSD-compatible nm" >&5 2542echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 2543if test "${lt_cv_path_NM+set}" = set; then 2544 echo $ECHO_N "(cached) $ECHO_C" >&6 2545else 2546 if test -n "$NM"; then 2547 # Let the user override the test. 2548 lt_cv_path_NM="$NM" 2549else 2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2551 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2552 test -z "$ac_dir" && ac_dir=. 2553 tmp_nm=$ac_dir/${ac_tool_prefix}nm 2554 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 2555 # Check to see if the nm accepts a BSD-compat flag. 2556 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2557 # nm: unknown option "B" ignored 2558 # Tru64's nm complains that /dev/null is an invalid object file 2559 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 2560 lt_cv_path_NM="$tmp_nm -B" 2561 break 2562 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2563 lt_cv_path_NM="$tmp_nm -p" 2564 break 2565 else 2566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2567 continue # so that we can try to find one that supports BSD flags 2568 fi 2569 fi 2570 done 2571 IFS="$ac_save_ifs" 2572 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2573fi 2574fi 2575 2576NM="$lt_cv_path_NM" 2577echo "$as_me:2577: result: $NM" >&5 2578echo "${ECHO_T}$NM" >&6 2579 2580echo "$as_me:2580: checking whether ln -s works" >&5 2581echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2582LN_S=$as_ln_s 2583if test "$LN_S" = "ln -s"; then 2584 echo "$as_me:2584: result: yes" >&5 2585echo "${ECHO_T}yes" >&6 2586else 2587 echo "$as_me:2587: result: no, using $LN_S" >&5 2588echo "${ECHO_T}no, using $LN_S" >&6 2589fi 2590 2591echo "$as_me:2591: checking how to recognise dependant libraries" >&5 2592echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 2593if test "${lt_cv_deplibs_check_method+set}" = set; then 2594 echo $ECHO_N "(cached) $ECHO_C" >&6 2595else 2596 lt_cv_file_magic_cmd='$MAGIC_CMD' 2597lt_cv_file_magic_test_file= 2598lt_cv_deplibs_check_method='unknown' 2599# Need to set the preceding variable on all platforms that support 2600# interlibrary dependencies. 2601# 'none' -- dependencies not supported. 2602# `unknown' -- same as none, but documents that we really don't know. 2603# 'pass_all' -- all dependencies passed with no checks. 2604# 'test_compile' -- check by making test program. 2605# 'file_magic [[regex]]' -- check by looking for files in library path 2606# which responds to the $file_magic_cmd with a given egrep regex. 2607# If you have `file' or equivalent on your system and you're not sure 2608# whether `pass_all' will *always* work, you probably want this one. 2609 2610case $host_os in 2611aix4* | aix5*) 2612 lt_cv_deplibs_check_method=pass_all 2613 ;; 2614 2615beos*) 2616 lt_cv_deplibs_check_method=pass_all 2617 ;; 2618 2619bsdi4*) 2620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 2621 lt_cv_file_magic_cmd='/usr/bin/file -L' 2622 lt_cv_file_magic_test_file=/shlib/libc.so 2623 ;; 2624 2625cygwin* | mingw* | pw32*) 2626 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2627 lt_cv_file_magic_cmd='$OBJDUMP -f' 2628 ;; 2629 2630darwin* | rhapsody*) 2631 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 2632 lt_cv_file_magic_cmd='/usr/bin/file -L' 2633 case "$host_os" in 2634 rhapsody* | darwin1.[012]) 2635 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 2636 ;; 2637 *) # Darwin 1.3 on 2638 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 2639 ;; 2640 esac 2641 ;; 2642 2643freebsd*) 2644 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2645 case $host_cpu in 2646 i*86 ) 2647 # Not sure whether the presence of OpenBSD here was a mistake. 2648 # Let's accept both of them until this is cleared up. 2649 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 2650 lt_cv_file_magic_cmd=/usr/bin/file 2651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2652 ;; 2653 esac 2654 else 2655 lt_cv_deplibs_check_method=pass_all 2656 fi 2657 ;; 2658 2659gnu*) 2660 lt_cv_deplibs_check_method=pass_all 2661 ;; 2662 2663hpux10.20*|hpux11*) 2664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 2665 lt_cv_file_magic_cmd=/usr/bin/file 2666 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2667 ;; 2668 2669irix5* | irix6*) 2670 case $host_os in 2671 irix5*) 2672 # this will be overridden with pass_all, but let us keep it just in case 2673 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2674 ;; 2675 *) 2676 case $LD in 2677 *-32|*"-32 ") libmagic=32-bit;; 2678 *-n32|*"-n32 ") libmagic=N32;; 2679 *-64|*"-64 ") libmagic=64-bit;; 2680 *) libmagic=never-match;; 2681 esac 2682 # this will be overridden with pass_all, but let us keep it just in case 2683 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 2684 ;; 2685 esac 2686 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 2687 lt_cv_deplibs_check_method=pass_all 2688 ;; 2689 2690# This must be Linux ELF. 2691linux*) 2692 case $host_cpu in 2693 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* | m68* | mips* ) 2694 lt_cv_deplibs_check_method=pass_all ;; 2695 *) 2696 # glibc up to 2.1.1 does not perform some relocations on ARM 2697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 2698 esac 2699 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2700 ;; 2701 2702netbsd*) 2703 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2704 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 2705 else 2706 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 2707 fi 2708 ;; 2709 2710newos6*) 2711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 2712 lt_cv_file_magic_cmd=/usr/bin/file 2713 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2714 ;; 2715 2716openbsd*) 2717 lt_cv_file_magic_cmd=/usr/bin/file 2718 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 2721 else 2722 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2723 fi 2724 ;; 2725 2726osf3* | osf4* | osf5*) 2727 # this will be overridden with pass_all, but let us keep it just in case 2728 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 2729 lt_cv_file_magic_test_file=/shlib/libc.so 2730 lt_cv_deplibs_check_method=pass_all 2731 ;; 2732 2733sco3.2v5*) 2734 lt_cv_deplibs_check_method=pass_all 2735 ;; 2736 2737solaris*) 2738 lt_cv_deplibs_check_method=pass_all 2739 lt_cv_file_magic_test_file=/lib/libc.so 2740 ;; 2741 2742sysv5uw[78]* | sysv4*uw2*) 2743 lt_cv_deplibs_check_method=pass_all 2744 ;; 2745 2746sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2747 case $host_vendor in 2748 motorola) 2749 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]' 2750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2751 ;; 2752 ncr) 2753 lt_cv_deplibs_check_method=pass_all 2754 ;; 2755 sequent) 2756 lt_cv_file_magic_cmd='/bin/file' 2757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 2758 ;; 2759 sni) 2760 lt_cv_file_magic_cmd='/bin/file' 2761 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 2762 lt_cv_file_magic_test_file=/lib/libc.so 2763 ;; 2764 esac 2765 ;; 2766esac 2767 2768fi 2769echo "$as_me:2769: result: $lt_cv_deplibs_check_method" >&5 2770echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 2771file_magic_cmd=$lt_cv_file_magic_cmd 2772deplibs_check_method=$lt_cv_deplibs_check_method 2773 2774# Check for command to grab the raw symbol name followed by C symbol from nm. 2775echo "$as_me:2775: checking command to parse $NM output" >&5 2776echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 2777if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 2778 echo $ECHO_N "(cached) $ECHO_C" >&6 2779else 2780 2781# These are sane defaults that work on at least a few old systems. 2782# [They come from Ultrix. What could be older than Ultrix?!! ;)] 2783 2784# Character class describing NM global symbol codes. 2785symcode='[BCDEGRST]' 2786 2787# Regexp to match symbols that can be accessed directly from C. 2788sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 2789 2790# Transform the above into a raw symbol and a C symbol. 2791symxfrm='\1 \2\3 \3' 2792 2793# Transform an extracted symbol line into a proper C declaration 2794lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 2795 2796# Transform an extracted symbol line into symbol name and symbol address 2797lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 2798 2799# Define system-specific variables. 2800case $host_os in 2801aix*) 2802 symcode='[BCDT]' 2803 ;; 2804cygwin* | mingw* | pw32*) 2805 symcode='[ABCDGISTW]' 2806 ;; 2807hpux*) # Its linker distinguishes data from code symbols 2808 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 2809 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 2810 ;; 2811irix*) 2812 symcode='[BCDEGRST]' 2813 ;; 2814solaris* | sysv5*) 2815 symcode='[BDT]' 2816 ;; 2817sysv4) 2818 symcode='[DFNSTU]' 2819 ;; 2820esac 2821 2822# Handle CRLF in mingw tool chain 2823opt_cr= 2824case $host_os in 2825mingw*) 2826 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 2827 ;; 2828esac 2829 2830# If we're using GNU nm, then use its standard symbol codes. 2831if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 2832 symcode='[ABCDGISTW]' 2833fi 2834 2835# Try without a prefix undercore, then with it. 2836for ac_symprfx in "" "_"; do 2837 2838 # Write the raw and C identifiers. 2839lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 2840 2841 # Check to see that the pipe works correctly. 2842 pipe_works=no 2843 rm -f conftest* 2844 cat > conftest.$ac_ext <<EOF 2845#ifdef __cplusplus 2846extern "C" { 2847#endif 2848char nm_test_var; 2849void nm_test_func(){} 2850#ifdef __cplusplus 2851} 2852#endif 2853int main(){nm_test_var='a';nm_test_func();return(0);} 2854EOF 2855 2856 if { (eval echo "$as_me:2856: \"$ac_compile\"") >&5 2857 (eval $ac_compile) 2>&5 2858 ac_status=$? 2859 echo "$as_me:2859: \$? = $ac_status" >&5 2860 (exit $ac_status); }; then 2861 # Now try to grab the symbols. 2862 nlist=conftest.nm 2863 if { (eval echo "$as_me:2863: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 2864 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 2865 ac_status=$? 2866 echo "$as_me:2866: \$? = $ac_status" >&5 2867 (exit $ac_status); } && test -s "$nlist"; then 2868 # Try sorting and uniquifying the output. 2869 if sort "$nlist" | uniq > "$nlist"T; then 2870 mv -f "$nlist"T "$nlist" 2871 else 2872 rm -f "$nlist"T 2873 fi 2874 2875 # Make sure that we snagged all the symbols we need. 2876 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 2877 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 2878 cat <<EOF > conftest.$ac_ext 2879#ifdef __cplusplus 2880extern "C" { 2881#endif 2882 2883EOF 2884 # Now generate the symbol file. 2885 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 2886 2887 cat <<EOF >> conftest.$ac_ext 2888#if defined (__STDC__) && __STDC__ 2889# define lt_ptr void * 2890#else 2891# define lt_ptr char * 2892# define const 2893#endif 2894 2895/* The mapping between symbol names and symbols. */ 2896const struct { 2897 const char *name; 2898 lt_ptr address; 2899} 2900lt_preloaded_symbols[] = 2901{ 2902EOF 2903 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 2904 cat <<\EOF >> conftest.$ac_ext 2905 {0, (lt_ptr) 0} 2906}; 2907 2908#ifdef __cplusplus 2909} 2910#endif 2911EOF 2912 # Now try linking the two files. 2913 mv conftest.$ac_objext conftstm.$ac_objext 2914 save_LIBS="$LIBS" 2915 save_CFLAGS="$CFLAGS" 2916 LIBS="conftstm.$ac_objext" 2917 CFLAGS="$CFLAGS$no_builtin_flag" 2918 if { (eval echo "$as_me:2918: \"$ac_link\"") >&5 2919 (eval $ac_link) 2>&5 2920 ac_status=$? 2921 echo "$as_me:2921: \$? = $ac_status" >&5 2922 (exit $ac_status); } && test -s conftest; then 2923 pipe_works=yes 2924 fi 2925 LIBS="$save_LIBS" 2926 CFLAGS="$save_CFLAGS" 2927 else 2928 echo "cannot find nm_test_func in $nlist" >&5 2929 fi 2930 else 2931 echo "cannot find nm_test_var in $nlist" >&5 2932 fi 2933 else 2934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 2935 fi 2936 else 2937 echo "$progname: failed program was:" >&5 2938 cat conftest.$ac_ext >&5 2939 fi 2940 rm -f conftest* conftst* 2941 2942 # Do not use the global_symbol_pipe unless it works. 2943 if test "$pipe_works" = yes; then 2944 break 2945 else 2946 lt_cv_sys_global_symbol_pipe= 2947 fi 2948done 2949 2950fi 2951 2952global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 2953if test -z "$lt_cv_sys_global_symbol_pipe"; then 2954 global_symbol_to_cdecl= 2955 global_symbol_to_c_name_address= 2956else 2957 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 2958 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 2959fi 2960if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 2961then 2962 echo "$as_me:2962: result: failed" >&5 2963echo "${ECHO_T}failed" >&6 2964else 2965 echo "$as_me:2965: result: ok" >&5 2966echo "${ECHO_T}ok" >&6 2967fi 2968 2969ac_ext=c 2970ac_cpp='$CPP $CPPFLAGS' 2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2973ac_compiler_gnu=$ac_cv_c_compiler_gnu 2974echo "$as_me:2974: checking how to run the C preprocessor" >&5 2975echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2976# On Suns, sometimes $CPP names a directory. 2977if test -n "$CPP" && test -d "$CPP"; then 2978 CPP= 2979fi 2980if test -z "$CPP"; then 2981 if test "${ac_cv_prog_CPP+set}" = set; then 2982 echo $ECHO_N "(cached) $ECHO_C" >&6 2983else 2984 # Double quotes because CPP needs to be expanded 2985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2986 do 2987 ac_preproc_ok=false 2988for ac_c_preproc_warn_flag in '' yes 2989do 2990 # Use a header file that comes with gcc, so configuring glibc 2991 # with a fresh cross-compiler works. 2992 # On the NeXT, cc -E runs the code through the compiler's parser, 2993 # not just through cpp. "Syntax error" is here to catch this case. 2994 cat >conftest.$ac_ext <<_ACEOF 2995#line 2995 "configure" 2996#include "confdefs.h" 2997#include <assert.h> 2998 Syntax error 2999_ACEOF 3000if { (eval echo "$as_me:3000: \"$ac_cpp conftest.$ac_ext\"") >&5 3001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3002 ac_status=$? 3003 egrep -v '^ *\+' conftest.er1 >conftest.err 3004 rm -f conftest.er1 3005 cat conftest.err >&5 3006 echo "$as_me:3006: \$? = $ac_status" >&5 3007 (exit $ac_status); } >/dev/null; then 3008 if test -s conftest.err; then 3009 ac_cpp_err=$ac_c_preproc_warn_flag 3010 else 3011 ac_cpp_err= 3012 fi 3013else 3014 ac_cpp_err=yes 3015fi 3016if test -z "$ac_cpp_err"; then 3017 : 3018else 3019 echo "$as_me: failed program was:" >&5 3020 cat conftest.$ac_ext >&5 3021 # Broken: fails on valid input. 3022continue 3023fi 3024rm -f conftest.err conftest.$ac_ext 3025 3026 # OK, works on sane cases. Now check whether non-existent headers 3027 # can be detected and how. 3028 cat >conftest.$ac_ext <<_ACEOF 3029#line 3029 "configure" 3030#include "confdefs.h" 3031#include <ac_nonexistent.h> 3032_ACEOF 3033if { (eval echo "$as_me:3033: \"$ac_cpp conftest.$ac_ext\"") >&5 3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3035 ac_status=$? 3036 egrep -v '^ *\+' conftest.er1 >conftest.err 3037 rm -f conftest.er1 3038 cat conftest.err >&5 3039 echo "$as_me:3039: \$? = $ac_status" >&5 3040 (exit $ac_status); } >/dev/null; then 3041 if test -s conftest.err; then 3042 ac_cpp_err=$ac_c_preproc_warn_flag 3043 else 3044 ac_cpp_err= 3045 fi 3046else 3047 ac_cpp_err=yes 3048fi 3049if test -z "$ac_cpp_err"; then 3050 # Broken: success on invalid input. 3051continue 3052else 3053 echo "$as_me: failed program was:" >&5 3054 cat conftest.$ac_ext >&5 3055 # Passes both tests. 3056ac_preproc_ok=: 3057break 3058fi 3059rm -f conftest.err conftest.$ac_ext 3060 3061done 3062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3063rm -f conftest.err conftest.$ac_ext 3064if $ac_preproc_ok; then 3065 break 3066fi 3067 3068 done 3069 ac_cv_prog_CPP=$CPP 3070 3071fi 3072 CPP=$ac_cv_prog_CPP 3073else 3074 ac_cv_prog_CPP=$CPP 3075fi 3076echo "$as_me:3076: result: $CPP" >&5 3077echo "${ECHO_T}$CPP" >&6 3078ac_preproc_ok=false 3079for ac_c_preproc_warn_flag in '' yes 3080do 3081 # Use a header file that comes with gcc, so configuring glibc 3082 # with a fresh cross-compiler works. 3083 # On the NeXT, cc -E runs the code through the compiler's parser, 3084 # not just through cpp. "Syntax error" is here to catch this case. 3085 cat >conftest.$ac_ext <<_ACEOF 3086#line 3086 "configure" 3087#include "confdefs.h" 3088#include <assert.h> 3089 Syntax error 3090_ACEOF 3091if { (eval echo "$as_me:3091: \"$ac_cpp conftest.$ac_ext\"") >&5 3092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3093 ac_status=$? 3094 egrep -v '^ *\+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 echo "$as_me:3097: \$? = $ac_status" >&5 3098 (exit $ac_status); } >/dev/null; then 3099 if test -s conftest.err; then 3100 ac_cpp_err=$ac_c_preproc_warn_flag 3101 else 3102 ac_cpp_err= 3103 fi 3104else 3105 ac_cpp_err=yes 3106fi 3107if test -z "$ac_cpp_err"; then 3108 : 3109else 3110 echo "$as_me: failed program was:" >&5 3111 cat conftest.$ac_ext >&5 3112 # Broken: fails on valid input. 3113continue 3114fi 3115rm -f conftest.err conftest.$ac_ext 3116 3117 # OK, works on sane cases. Now check whether non-existent headers 3118 # can be detected and how. 3119 cat >conftest.$ac_ext <<_ACEOF 3120#line 3120 "configure" 3121#include "confdefs.h" 3122#include <ac_nonexistent.h> 3123_ACEOF 3124if { (eval echo "$as_me:3124: \"$ac_cpp conftest.$ac_ext\"") >&5 3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3126 ac_status=$? 3127 egrep -v '^ *\+' conftest.er1 >conftest.err 3128 rm -f conftest.er1 3129 cat conftest.err >&5 3130 echo "$as_me:3130: \$? = $ac_status" >&5 3131 (exit $ac_status); } >/dev/null; then 3132 if test -s conftest.err; then 3133 ac_cpp_err=$ac_c_preproc_warn_flag 3134 else 3135 ac_cpp_err= 3136 fi 3137else 3138 ac_cpp_err=yes 3139fi 3140if test -z "$ac_cpp_err"; then 3141 # Broken: success on invalid input. 3142continue 3143else 3144 echo "$as_me: failed program was:" >&5 3145 cat conftest.$ac_ext >&5 3146 # Passes both tests. 3147ac_preproc_ok=: 3148break 3149fi 3150rm -f conftest.err conftest.$ac_ext 3151 3152done 3153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3154rm -f conftest.err conftest.$ac_ext 3155if $ac_preproc_ok; then 3156 : 3157else 3158 { { echo "$as_me:3158: error: C preprocessor \"$CPP\" fails sanity check" >&5 3159echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3160 { (exit 1); exit 1; }; } 3161fi 3162 3163ac_ext=c 3164ac_cpp='$CPP $CPPFLAGS' 3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3167ac_compiler_gnu=$ac_cv_c_compiler_gnu 3168 3169for ac_header in dlfcn.h 3170do 3171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3172echo "$as_me:3172: checking for $ac_header" >&5 3173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3174if eval "test \"\${$as_ac_Header+set}\" = set"; then 3175 echo $ECHO_N "(cached) $ECHO_C" >&6 3176else 3177 cat >conftest.$ac_ext <<_ACEOF 3178#line 3178 "configure" 3179#include "confdefs.h" 3180#include <$ac_header> 3181_ACEOF 3182if { (eval echo "$as_me:3182: \"$ac_cpp conftest.$ac_ext\"") >&5 3183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3184 ac_status=$? 3185 egrep -v '^ *\+' conftest.er1 >conftest.err 3186 rm -f conftest.er1 3187 cat conftest.err >&5 3188 echo "$as_me:3188: \$? = $ac_status" >&5 3189 (exit $ac_status); } >/dev/null; then 3190 if test -s conftest.err; then 3191 ac_cpp_err=$ac_c_preproc_warn_flag 3192 else 3193 ac_cpp_err= 3194 fi 3195else 3196 ac_cpp_err=yes 3197fi 3198if test -z "$ac_cpp_err"; then 3199 eval "$as_ac_Header=yes" 3200else 3201 echo "$as_me: failed program was:" >&5 3202 cat conftest.$ac_ext >&5 3203 eval "$as_ac_Header=no" 3204fi 3205rm -f conftest.err conftest.$ac_ext 3206fi 3207echo "$as_me:3207: result: `eval echo '${'$as_ac_Header'}'`" >&5 3208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3209if test `eval echo '${'$as_ac_Header'}'` = yes; then 3210 cat >>confdefs.h <<EOF 3211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3212EOF 3213 3214fi 3215done 3216 3217# Only perform the check for file, if the check method requires it 3218case $deplibs_check_method in 3219file_magic*) 3220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3221 echo "$as_me:3221: checking for ${ac_tool_prefix}file" >&5 3222echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 3223if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3224 echo $ECHO_N "(cached) $ECHO_C" >&6 3225else 3226 case $MAGIC_CMD in 3227 /*) 3228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3229 ;; 3230 ?:/*) 3231 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3232 ;; 3233 *) 3234 ac_save_MAGIC_CMD="$MAGIC_CMD" 3235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3236 ac_dummy="/usr/bin:$PATH" 3237 for ac_dir in $ac_dummy; do 3238 test -z "$ac_dir" && ac_dir=. 3239 if test -f $ac_dir/${ac_tool_prefix}file; then 3240 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 3241 if test -n "$file_magic_test_file"; then 3242 case $deplibs_check_method in 3243 "file_magic "*) 3244 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3247 egrep "$file_magic_regex" > /dev/null; then 3248 : 3249 else 3250 cat <<EOF 1>&2 3251 3252*** Warning: the command libtool uses to detect shared libraries, 3253*** $file_magic_cmd, produces output that libtool cannot recognize. 3254*** The result is that libtool may fail to recognize shared libraries 3255*** as such. This will affect the creation of libtool libraries that 3256*** depend on shared libraries, but programs linked with such libtool 3257*** libraries will work regardless of this problem. Nevertheless, you 3258*** may want to report the problem to your system manager and/or to 3259*** bug-libtool@gnu.org 3260 3261EOF 3262 fi ;; 3263 esac 3264 fi 3265 break 3266 fi 3267 done 3268 IFS="$ac_save_ifs" 3269 MAGIC_CMD="$ac_save_MAGIC_CMD" 3270 ;; 3271esac 3272fi 3273 3274MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3275if test -n "$MAGIC_CMD"; then 3276 echo "$as_me:3276: result: $MAGIC_CMD" >&5 3277echo "${ECHO_T}$MAGIC_CMD" >&6 3278else 3279 echo "$as_me:3279: result: no" >&5 3280echo "${ECHO_T}no" >&6 3281fi 3282 3283if test -z "$lt_cv_path_MAGIC_CMD"; then 3284 if test -n "$ac_tool_prefix"; then 3285 echo "$as_me:3285: checking for file" >&5 3286echo $ECHO_N "checking for file... $ECHO_C" >&6 3287if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3288 echo $ECHO_N "(cached) $ECHO_C" >&6 3289else 3290 case $MAGIC_CMD in 3291 /*) 3292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3293 ;; 3294 ?:/*) 3295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3296 ;; 3297 *) 3298 ac_save_MAGIC_CMD="$MAGIC_CMD" 3299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3300 ac_dummy="/usr/bin:$PATH" 3301 for ac_dir in $ac_dummy; do 3302 test -z "$ac_dir" && ac_dir=. 3303 if test -f $ac_dir/file; then 3304 lt_cv_path_MAGIC_CMD="$ac_dir/file" 3305 if test -n "$file_magic_test_file"; then 3306 case $deplibs_check_method in 3307 "file_magic "*) 3308 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3311 egrep "$file_magic_regex" > /dev/null; then 3312 : 3313 else 3314 cat <<EOF 1>&2 3315 3316*** Warning: the command libtool uses to detect shared libraries, 3317*** $file_magic_cmd, produces output that libtool cannot recognize. 3318*** The result is that libtool may fail to recognize shared libraries 3319*** as such. This will affect the creation of libtool libraries that 3320*** depend on shared libraries, but programs linked with such libtool 3321*** libraries will work regardless of this problem. Nevertheless, you 3322*** may want to report the problem to your system manager and/or to 3323*** bug-libtool@gnu.org 3324 3325EOF 3326 fi ;; 3327 esac 3328 fi 3329 break 3330 fi 3331 done 3332 IFS="$ac_save_ifs" 3333 MAGIC_CMD="$ac_save_MAGIC_CMD" 3334 ;; 3335esac 3336fi 3337 3338MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3339if test -n "$MAGIC_CMD"; then 3340 echo "$as_me:3340: result: $MAGIC_CMD" >&5 3341echo "${ECHO_T}$MAGIC_CMD" >&6 3342else 3343 echo "$as_me:3343: result: no" >&5 3344echo "${ECHO_T}no" >&6 3345fi 3346 3347 else 3348 MAGIC_CMD=: 3349 fi 3350fi 3351 3352 fi 3353 ;; 3354esac 3355 3356if test -n "$ac_tool_prefix"; then 3357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3358set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3359echo "$as_me:3359: checking for $ac_word" >&5 3360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3361if test "${ac_cv_prog_RANLIB+set}" = set; then 3362 echo $ECHO_N "(cached) $ECHO_C" >&6 3363else 3364 if test -n "$RANLIB"; then 3365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3366else 3367 ac_save_IFS=$IFS; IFS=$ac_path_separator 3368ac_dummy="$PATH" 3369for ac_dir in $ac_dummy; do 3370 IFS=$ac_save_IFS 3371 test -z "$ac_dir" && ac_dir=. 3372 $as_executable_p "$ac_dir/$ac_word" || continue 3373ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3374echo "$as_me:3374: found $ac_dir/$ac_word" >&5 3375break 3376done 3377 3378fi 3379fi 3380RANLIB=$ac_cv_prog_RANLIB 3381if test -n "$RANLIB"; then 3382 echo "$as_me:3382: result: $RANLIB" >&5 3383echo "${ECHO_T}$RANLIB" >&6 3384else 3385 echo "$as_me:3385: result: no" >&5 3386echo "${ECHO_T}no" >&6 3387fi 3388 3389fi 3390if test -z "$ac_cv_prog_RANLIB"; then 3391 ac_ct_RANLIB=$RANLIB 3392 # Extract the first word of "ranlib", so it can be a program name with args. 3393set dummy ranlib; ac_word=$2 3394echo "$as_me:3394: checking for $ac_word" >&5 3395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3396if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3397 echo $ECHO_N "(cached) $ECHO_C" >&6 3398else 3399 if test -n "$ac_ct_RANLIB"; then 3400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3401else 3402 ac_save_IFS=$IFS; IFS=$ac_path_separator 3403ac_dummy="$PATH" 3404for ac_dir in $ac_dummy; do 3405 IFS=$ac_save_IFS 3406 test -z "$ac_dir" && ac_dir=. 3407 $as_executable_p "$ac_dir/$ac_word" || continue 3408ac_cv_prog_ac_ct_RANLIB="ranlib" 3409echo "$as_me:3409: found $ac_dir/$ac_word" >&5 3410break 3411done 3412 3413 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3414fi 3415fi 3416ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3417if test -n "$ac_ct_RANLIB"; then 3418 echo "$as_me:3418: result: $ac_ct_RANLIB" >&5 3419echo "${ECHO_T}$ac_ct_RANLIB" >&6 3420else 3421 echo "$as_me:3421: result: no" >&5 3422echo "${ECHO_T}no" >&6 3423fi 3424 3425 RANLIB=$ac_ct_RANLIB 3426else 3427 RANLIB="$ac_cv_prog_RANLIB" 3428fi 3429 3430if test -n "$ac_tool_prefix"; then 3431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3432set dummy ${ac_tool_prefix}strip; ac_word=$2 3433echo "$as_me:3433: checking for $ac_word" >&5 3434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3435if test "${ac_cv_prog_STRIP+set}" = set; then 3436 echo $ECHO_N "(cached) $ECHO_C" >&6 3437else 3438 if test -n "$STRIP"; then 3439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3440else 3441 ac_save_IFS=$IFS; IFS=$ac_path_separator 3442ac_dummy="$PATH" 3443for ac_dir in $ac_dummy; do 3444 IFS=$ac_save_IFS 3445 test -z "$ac_dir" && ac_dir=. 3446 $as_executable_p "$ac_dir/$ac_word" || continue 3447ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3448echo "$as_me:3448: found $ac_dir/$ac_word" >&5 3449break 3450done 3451 3452fi 3453fi 3454STRIP=$ac_cv_prog_STRIP 3455if test -n "$STRIP"; then 3456 echo "$as_me:3456: result: $STRIP" >&5 3457echo "${ECHO_T}$STRIP" >&6 3458else 3459 echo "$as_me:3459: result: no" >&5 3460echo "${ECHO_T}no" >&6 3461fi 3462 3463fi 3464if test -z "$ac_cv_prog_STRIP"; then 3465 ac_ct_STRIP=$STRIP 3466 # Extract the first word of "strip", so it can be a program name with args. 3467set dummy strip; ac_word=$2 3468echo "$as_me:3468: checking for $ac_word" >&5 3469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3470if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3471 echo $ECHO_N "(cached) $ECHO_C" >&6 3472else 3473 if test -n "$ac_ct_STRIP"; then 3474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3475else 3476 ac_save_IFS=$IFS; IFS=$ac_path_separator 3477ac_dummy="$PATH" 3478for ac_dir in $ac_dummy; do 3479 IFS=$ac_save_IFS 3480 test -z "$ac_dir" && ac_dir=. 3481 $as_executable_p "$ac_dir/$ac_word" || continue 3482ac_cv_prog_ac_ct_STRIP="strip" 3483echo "$as_me:3483: found $ac_dir/$ac_word" >&5 3484break 3485done 3486 3487 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3488fi 3489fi 3490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3491if test -n "$ac_ct_STRIP"; then 3492 echo "$as_me:3492: result: $ac_ct_STRIP" >&5 3493echo "${ECHO_T}$ac_ct_STRIP" >&6 3494else 3495 echo "$as_me:3495: result: no" >&5 3496echo "${ECHO_T}no" >&6 3497fi 3498 3499 STRIP=$ac_ct_STRIP 3500else 3501 STRIP="$ac_cv_prog_STRIP" 3502fi 3503 3504enable_dlopen=no 3505enable_win32_dll=no 3506 3507# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3508if test "${enable_libtool_lock+set}" = set; then 3509 enableval="$enable_libtool_lock" 3510 3511fi; 3512test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3513 3514# Some flags need to be propagated to the compiler or linker for good 3515# libtool support. 3516case $host in 3517*-*-irix6*) 3518 # Find out which ABI we are using. 3519 echo '#line 3519 "configure"' > conftest.$ac_ext 3520 if { (eval echo "$as_me:3520: \"$ac_compile\"") >&5 3521 (eval $ac_compile) 2>&5 3522 ac_status=$? 3523 echo "$as_me:3523: \$? = $ac_status" >&5 3524 (exit $ac_status); }; then 3525 case `/usr/bin/file conftest.$ac_objext` in 3526 *32-bit*) 3527 LD="${LD-ld} -32" 3528 ;; 3529 *N32*) 3530 LD="${LD-ld} -n32" 3531 ;; 3532 *64-bit*) 3533 LD="${LD-ld} -64" 3534 ;; 3535 esac 3536 fi 3537 rm -rf conftest* 3538 ;; 3539 3540*-*-sco3.2v5*) 3541 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3542 SAVE_CFLAGS="$CFLAGS" 3543 CFLAGS="$CFLAGS -belf" 3544 echo "$as_me:3544: checking whether the C compiler needs -belf" >&5 3545echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3546if test "${lt_cv_cc_needs_belf+set}" = set; then 3547 echo $ECHO_N "(cached) $ECHO_C" >&6 3548else 3549 3550 ac_ext=c 3551ac_cpp='$CPP $CPPFLAGS' 3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3554ac_compiler_gnu=$ac_cv_c_compiler_gnu 3555 3556 cat >conftest.$ac_ext <<_ACEOF 3557#line 3557 "configure" 3558#include "confdefs.h" 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568rm -f conftest.$ac_objext conftest$ac_exeext 3569if { (eval echo "$as_me:3569: \"$ac_link\"") >&5 3570 (eval $ac_link) 2>&5 3571 ac_status=$? 3572 echo "$as_me:3572: \$? = $ac_status" >&5 3573 (exit $ac_status); } && 3574 { ac_try='test -s conftest$ac_exeext' 3575 { (eval echo "$as_me:3575: \"$ac_try\"") >&5 3576 (eval $ac_try) 2>&5 3577 ac_status=$? 3578 echo "$as_me:3578: \$? = $ac_status" >&5 3579 (exit $ac_status); }; }; then 3580 lt_cv_cc_needs_belf=yes 3581else 3582 echo "$as_me: failed program was:" >&5 3583cat conftest.$ac_ext >&5 3584lt_cv_cc_needs_belf=no 3585fi 3586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3587 ac_ext=c 3588ac_cpp='$CPP $CPPFLAGS' 3589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3591ac_compiler_gnu=$ac_cv_c_compiler_gnu 3592 3593fi 3594echo "$as_me:3594: result: $lt_cv_cc_needs_belf" >&5 3595echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3596 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3597 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3598 CFLAGS="$SAVE_CFLAGS" 3599 fi 3600 ;; 3601 3602esac 3603 3604# Sed substitution that helps us do robust quoting. It backslashifies 3605# metacharacters that are still active within double-quoted strings. 3606Xsed='sed -e s/^X//' 3607sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 3608 3609# Same as above, but do not quote variable references. 3610double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 3611 3612# Sed substitution to delay expansion of an escaped shell variable in a 3613# double_quote_subst'ed string. 3614delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3615 3616# Constants: 3617rm="rm -f" 3618 3619# Global variables: 3620default_ofile=libtool 3621can_build_shared=yes 3622 3623# All known linkers require a `.a' archive for static linking (except M$VC, 3624# which needs '.lib'). 3625libext=a 3626ltmain="$ac_aux_dir/ltmain.sh" 3627ofile="$default_ofile" 3628with_gnu_ld="$lt_cv_prog_gnu_ld" 3629need_locks="$enable_libtool_lock" 3630 3631old_CC="$CC" 3632old_CFLAGS="$CFLAGS" 3633 3634# Set sane defaults for various variables 3635test -z "$AR" && AR=ar 3636test -z "$AR_FLAGS" && AR_FLAGS=cru 3637test -z "$AS" && AS=as 3638test -z "$CC" && CC=cc 3639test -z "$DLLTOOL" && DLLTOOL=dlltool 3640test -z "$LD" && LD=ld 3641test -z "$LN_S" && LN_S="ln -s" 3642test -z "$MAGIC_CMD" && MAGIC_CMD=file 3643test -z "$NM" && NM=nm 3644test -z "$OBJDUMP" && OBJDUMP=objdump 3645test -z "$RANLIB" && RANLIB=: 3646test -z "$STRIP" && STRIP=: 3647test -z "$ac_objext" && ac_objext=o 3648 3649if test x"$host" != x"$build"; then 3650 ac_tool_prefix=${host_alias}- 3651else 3652 ac_tool_prefix= 3653fi 3654 3655case $host_os in 3656aix3*) 3657 # AIX sometimes has problems with the GCC collect2 program. For some 3658 # reason, if we set the COLLECT_NAMES environment variable, the problems 3659 # vanish in a puff of smoke. 3660 if test "X${COLLECT_NAMES+set}" != Xset; then 3661 COLLECT_NAMES= 3662 export COLLECT_NAMES 3663 fi 3664 ;; 3665esac 3666 3667# Determine commands to create old-style static archives. 3668old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 3669old_postinstall_cmds='chmod 644 $oldlib' 3670old_postuninstall_cmds= 3671 3672if test -n "$RANLIB"; then 3673 case $host_os in 3674 openbsd*) 3675 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 3676 ;; 3677 *) 3678 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 3679 ;; 3680 esac 3681 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3682fi 3683 3684# Allow CC to be a program name with arguments. 3685set dummy $CC 3686compiler="$2" 3687 3688echo "$as_me:3688: checking for objdir" >&5 3689echo $ECHO_N "checking for objdir... $ECHO_C" >&6 3690rm -f .libs 2>/dev/null 3691mkdir .libs 2>/dev/null 3692if test -d .libs; then 3693 objdir=.libs 3694else 3695 # MS-DOS does not allow filenames that begin with a dot. 3696 objdir=_libs 3697fi 3698rmdir .libs 2>/dev/null 3699echo "$as_me:3699: result: $objdir" >&5 3700echo "${ECHO_T}$objdir" >&6 3701 3702# Check whether --with-pic or --without-pic was given. 3703if test "${with_pic+set}" = set; then 3704 withval="$with_pic" 3705 pic_mode="$withval" 3706else 3707 pic_mode=default 3708fi; 3709test -z "$pic_mode" && pic_mode=default 3710 3711# We assume here that the value for lt_cv_prog_cc_pic will not be cached 3712# in isolation, and that seeing it set (from the cache) indicates that 3713# the associated values are set (in the cache) correctly too. 3714echo "$as_me:3714: checking for $compiler option to produce PIC" >&5 3715echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 3716if test "${lt_cv_prog_cc_pic+set}" = set; then 3717 echo $ECHO_N "(cached) $ECHO_C" >&6 3718else 3719 lt_cv_prog_cc_pic= 3720 lt_cv_prog_cc_shlib= 3721 lt_cv_prog_cc_wl= 3722 lt_cv_prog_cc_static= 3723 lt_cv_prog_cc_no_builtin= 3724 lt_cv_prog_cc_can_build_shared=$can_build_shared 3725 3726 if test "$GCC" = yes; then 3727 lt_cv_prog_cc_wl='-Wl,' 3728 lt_cv_prog_cc_static='-static' 3729 3730 case $host_os in 3731 aix*) 3732 # Below there is a dirty hack to force normal static linking with -ldl 3733 # The problem is because libdl dynamically linked with both libc and 3734 # libC (AIX C++ library), which obviously doesn't included in libraries 3735 # list by gcc. This cause undefined symbols with -static flags. 3736 # This hack allows C programs to be linked with "-static -ldl", but 3737 # not sure about C++ programs. 3738 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 3739 ;; 3740 amigaos*) 3741 # FIXME: we need at least 68020 code to build shared libraries, but 3742 # adding the `-m68020' flag to GCC prevents building anything better, 3743 # like `-m68040'. 3744 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 3745 ;; 3746 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 3747 # PIC is the default for these OSes. 3748 ;; 3749 darwin* | rhapsody*) 3750 # PIC is the default on this platform 3751 # Common symbols not allowed in MH_DYLIB files 3752 lt_cv_prog_cc_pic='-fno-common' 3753 ;; 3754 cygwin* | mingw* | pw32* | os2*) 3755 # This hack is so that the source file can tell whether it is being 3756 # built for inclusion in a dll (and should export symbols for example). 3757 lt_cv_prog_cc_pic='-DDLL_EXPORT' 3758 ;; 3759 sysv4*MP*) 3760 if test -d /usr/nec; then 3761 lt_cv_prog_cc_pic=-Kconform_pic 3762 fi 3763 ;; 3764 *) 3765 lt_cv_prog_cc_pic='-fPIC' 3766 ;; 3767 esac 3768 else 3769 # PORTME Check for PIC flags for the system compiler. 3770 case $host_os in 3771 aix3* | aix4* | aix5*) 3772 lt_cv_prog_cc_wl='-Wl,' 3773 # All AIX code is PIC. 3774 if test "$host_cpu" = ia64; then 3775 # AIX 5 now supports IA64 processor 3776 lt_cv_prog_cc_static='-Bstatic' 3777 else 3778 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 3779 fi 3780 ;; 3781 3782 hpux9* | hpux10* | hpux11*) 3783 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 3784 lt_cv_prog_cc_wl='-Wl,' 3785 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 3786 lt_cv_prog_cc_pic='+Z' 3787 ;; 3788 3789 irix5* | irix6*) 3790 lt_cv_prog_cc_wl='-Wl,' 3791 lt_cv_prog_cc_static='-non_shared' 3792 # PIC (with -KPIC) is the default. 3793 ;; 3794 3795 cygwin* | mingw* | pw32* | os2*) 3796 # This hack is so that the source file can tell whether it is being 3797 # built for inclusion in a dll (and should export symbols for example). 3798 lt_cv_prog_cc_pic='-DDLL_EXPORT' 3799 ;; 3800 3801 newsos6) 3802 lt_cv_prog_cc_pic='-KPIC' 3803 lt_cv_prog_cc_static='-Bstatic' 3804 ;; 3805 3806 osf3* | osf4* | osf5*) 3807 # All OSF/1 code is PIC. 3808 lt_cv_prog_cc_wl='-Wl,' 3809 lt_cv_prog_cc_static='-non_shared' 3810 ;; 3811 3812 sco3.2v5*) 3813 lt_cv_prog_cc_pic='-Kpic' 3814 lt_cv_prog_cc_static='-dn' 3815 lt_cv_prog_cc_shlib='-belf' 3816 ;; 3817 3818 solaris*) 3819 lt_cv_prog_cc_pic='-KPIC' 3820 lt_cv_prog_cc_static='-Bstatic' 3821 lt_cv_prog_cc_wl='-Wl,' 3822 ;; 3823 3824 sunos4*) 3825 lt_cv_prog_cc_pic='-PIC' 3826 lt_cv_prog_cc_static='-Bstatic' 3827 lt_cv_prog_cc_wl='-Qoption ld ' 3828 ;; 3829 3830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3831 lt_cv_prog_cc_pic='-KPIC' 3832 lt_cv_prog_cc_static='-Bstatic' 3833 if test "x$host_vendor" = xsni; then 3834 lt_cv_prog_cc_wl='-LD' 3835 else 3836 lt_cv_prog_cc_wl='-Wl,' 3837 fi 3838 ;; 3839 3840 uts4*) 3841 lt_cv_prog_cc_pic='-pic' 3842 lt_cv_prog_cc_static='-Bstatic' 3843 ;; 3844 3845 sysv4*MP*) 3846 if test -d /usr/nec ;then 3847 lt_cv_prog_cc_pic='-Kconform_pic' 3848 lt_cv_prog_cc_static='-Bstatic' 3849 fi 3850 ;; 3851 3852 *) 3853 lt_cv_prog_cc_can_build_shared=no 3854 ;; 3855 esac 3856 fi 3857 3858fi 3859 3860if test -z "$lt_cv_prog_cc_pic"; then 3861 echo "$as_me:3861: result: none" >&5 3862echo "${ECHO_T}none" >&6 3863else 3864 echo "$as_me:3864: result: $lt_cv_prog_cc_pic" >&5 3865echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 3866 3867 # Check to make sure the pic_flag actually works. 3868 echo "$as_me:3868: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 3869echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 3870 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872else 3873 save_CFLAGS="$CFLAGS" 3874 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 3875 cat >conftest.$ac_ext <<_ACEOF 3876#line 3876 "configure" 3877#include "confdefs.h" 3878 3879int 3880main () 3881{ 3882 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887rm -f conftest.$ac_objext 3888if { (eval echo "$as_me:3888: \"$ac_compile\"") >&5 3889 (eval $ac_compile) 2>&5 3890 ac_status=$? 3891 echo "$as_me:3891: \$? = $ac_status" >&5 3892 (exit $ac_status); } && 3893 { ac_try='test -s conftest.$ac_objext' 3894 { (eval echo "$as_me:3894: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:3897: \$? = $ac_status" >&5 3898 (exit $ac_status); }; }; then 3899 case $host_os in 3900 hpux9* | hpux10* | hpux11*) 3901 # On HP-UX, both CC and GCC only warn that PIC is supported... then 3902 # they create non-PIC objects. So, if there were any warnings, we 3903 # assume that PIC is not supported. 3904 if test -s conftest.err; then 3905 lt_cv_prog_cc_pic_works=no 3906 else 3907 lt_cv_prog_cc_pic_works=yes 3908 fi 3909 ;; 3910 *) 3911 lt_cv_prog_cc_pic_works=yes 3912 ;; 3913 esac 3914 3915else 3916 echo "$as_me: failed program was:" >&5 3917cat conftest.$ac_ext >&5 3918 lt_cv_prog_cc_pic_works=no 3919 3920fi 3921rm -f conftest.$ac_objext conftest.$ac_ext 3922 CFLAGS="$save_CFLAGS" 3923 3924fi 3925 3926 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 3927 lt_cv_prog_cc_pic= 3928 lt_cv_prog_cc_can_build_shared=no 3929 else 3930 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3931 fi 3932 3933 echo "$as_me:3933: result: $lt_cv_prog_cc_pic_works" >&5 3934echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 3935fi 3936 3937# Check for any special shared library compilation flags. 3938if test -n "$lt_cv_prog_cc_shlib"; then 3939 { echo "$as_me:3939: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 3940echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 3941 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 3942 else 3943 { echo "$as_me:3943: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 3944echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 3945 lt_cv_prog_cc_can_build_shared=no 3946 fi 3947fi 3948 3949echo "$as_me:3949: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3950echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 3951if test "${lt_cv_prog_cc_static_works+set}" = set; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&6 3953else 3954 lt_cv_prog_cc_static_works=no 3955 save_LDFLAGS="$LDFLAGS" 3956 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 3957 cat >conftest.$ac_ext <<_ACEOF 3958#line 3958 "configure" 3959#include "confdefs.h" 3960 3961int 3962main () 3963{ 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969rm -f conftest.$ac_objext conftest$ac_exeext 3970if { (eval echo "$as_me:3970: \"$ac_link\"") >&5 3971 (eval $ac_link) 2>&5 3972 ac_status=$? 3973 echo "$as_me:3973: \$? = $ac_status" >&5 3974 (exit $ac_status); } && 3975 { ac_try='test -s conftest$ac_exeext' 3976 { (eval echo "$as_me:3976: \"$ac_try\"") >&5 3977 (eval $ac_try) 2>&5 3978 ac_status=$? 3979 echo "$as_me:3979: \$? = $ac_status" >&5 3980 (exit $ac_status); }; }; then 3981 lt_cv_prog_cc_static_works=yes 3982else 3983 echo "$as_me: failed program was:" >&5 3984cat conftest.$ac_ext >&5 3985fi 3986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3987 LDFLAGS="$save_LDFLAGS" 3988 3989fi 3990 3991# Belt *and* braces to stop my trousers falling down: 3992test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 3993echo "$as_me:3993: result: $lt_cv_prog_cc_static_works" >&5 3994echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 3995 3996pic_flag="$lt_cv_prog_cc_pic" 3997special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 3998wl="$lt_cv_prog_cc_wl" 3999link_static_flag="$lt_cv_prog_cc_static" 4000no_builtin_flag="$lt_cv_prog_cc_no_builtin" 4001can_build_shared="$lt_cv_prog_cc_can_build_shared" 4002 4003# Check to see if options -o and -c are simultaneously supported by compiler 4004echo "$as_me:4004: checking if $compiler supports -c -o file.$ac_objext" >&5 4005echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 4006if test "${lt_cv_compiler_c_o+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 4010$rm -r conftest 2>/dev/null 4011mkdir conftest 4012cd conftest 4013echo "int some_variable = 0;" > conftest.$ac_ext 4014mkdir out 4015# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 4016# that will create temporary files in the current directory regardless of 4017# the output directory. Thus, making CWD read-only will cause this test 4018# to fail, enabling locking or at least warning the user not to do parallel 4019# builds. 4020chmod -w . 4021save_CFLAGS="$CFLAGS" 4022CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 4023compiler_c_o=no 4024if { (eval echo configure:4024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 4025 # The compiler can only warn and ignore the option if not recognized 4026 # So say no if there are warnings 4027 if test -s out/conftest.err; then 4028 lt_cv_compiler_c_o=no 4029 else 4030 lt_cv_compiler_c_o=yes 4031 fi 4032else 4033 # Append any errors to the config.log. 4034 cat out/conftest.err 1>&5 4035 lt_cv_compiler_c_o=no 4036fi 4037CFLAGS="$save_CFLAGS" 4038chmod u+w . 4039$rm conftest* out/* 4040rmdir out 4041cd .. 4042rmdir conftest 4043$rm -r conftest 2>/dev/null 4044 4045fi 4046 4047compiler_c_o=$lt_cv_compiler_c_o 4048echo "$as_me:4048: result: $compiler_c_o" >&5 4049echo "${ECHO_T}$compiler_c_o" >&6 4050 4051if test x"$compiler_c_o" = x"yes"; then 4052 # Check to see if we can write to a .lo 4053 echo "$as_me:4053: checking if $compiler supports -c -o file.lo" >&5 4054echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 4055 if test "${lt_cv_compiler_o_lo+set}" = set; then 4056 echo $ECHO_N "(cached) $ECHO_C" >&6 4057else 4058 4059 lt_cv_compiler_o_lo=no 4060 save_CFLAGS="$CFLAGS" 4061 CFLAGS="$CFLAGS -c -o conftest.lo" 4062 save_objext="$ac_objext" 4063 ac_objext=lo 4064 cat >conftest.$ac_ext <<_ACEOF 4065#line 4065 "configure" 4066#include "confdefs.h" 4067 4068int 4069main () 4070{ 4071int some_variable = 0; 4072 ; 4073 return 0; 4074} 4075_ACEOF 4076rm -f conftest.$ac_objext 4077if { (eval echo "$as_me:4077: \"$ac_compile\"") >&5 4078 (eval $ac_compile) 2>&5 4079 ac_status=$? 4080 echo "$as_me:4080: \$? = $ac_status" >&5 4081 (exit $ac_status); } && 4082 { ac_try='test -s conftest.$ac_objext' 4083 { (eval echo "$as_me:4083: \"$ac_try\"") >&5 4084 (eval $ac_try) 2>&5 4085 ac_status=$? 4086 echo "$as_me:4086: \$? = $ac_status" >&5 4087 (exit $ac_status); }; }; then 4088 # The compiler can only warn and ignore the option if not recognized 4089 # So say no if there are warnings 4090 if test -s conftest.err; then 4091 lt_cv_compiler_o_lo=no 4092 else 4093 lt_cv_compiler_o_lo=yes 4094 fi 4095 4096else 4097 echo "$as_me: failed program was:" >&5 4098cat conftest.$ac_ext >&5 4099fi 4100rm -f conftest.$ac_objext conftest.$ac_ext 4101 ac_objext="$save_objext" 4102 CFLAGS="$save_CFLAGS" 4103 4104fi 4105 4106 compiler_o_lo=$lt_cv_compiler_o_lo 4107 echo "$as_me:4107: result: $compiler_o_lo" >&5 4108echo "${ECHO_T}$compiler_o_lo" >&6 4109else 4110 compiler_o_lo=no 4111fi 4112 4113# Check to see if we can do hard links to lock some files if needed 4114hard_links="nottested" 4115if test "$compiler_c_o" = no && test "$need_locks" != no; then 4116 # do not overwrite the value of need_locks provided by the user 4117 echo "$as_me:4117: checking if we can lock with hard links" >&5 4118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 4119 hard_links=yes 4120 $rm conftest* 4121 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4122 touch conftest.a 4123 ln conftest.a conftest.b 2>&5 || hard_links=no 4124 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4125 echo "$as_me:4125: result: $hard_links" >&5 4126echo "${ECHO_T}$hard_links" >&6 4127 if test "$hard_links" = no; then 4128 { echo "$as_me:4128: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 4129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 4130 need_locks=warn 4131 fi 4132else 4133 need_locks=no 4134fi 4135 4136if test "$GCC" = yes; then 4137 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 4138 echo "$as_me:4138: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 4139echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 4140 echo "int some_variable = 0;" > conftest.$ac_ext 4141 save_CFLAGS="$CFLAGS" 4142 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 4143 compiler_rtti_exceptions=no 4144 cat >conftest.$ac_ext <<_ACEOF 4145#line 4145 "configure" 4146#include "confdefs.h" 4147 4148int 4149main () 4150{ 4151int some_variable = 0; 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156rm -f conftest.$ac_objext 4157if { (eval echo "$as_me:4157: \"$ac_compile\"") >&5 4158 (eval $ac_compile) 2>&5 4159 ac_status=$? 4160 echo "$as_me:4160: \$? = $ac_status" >&5 4161 (exit $ac_status); } && 4162 { ac_try='test -s conftest.$ac_objext' 4163 { (eval echo "$as_me:4163: \"$ac_try\"") >&5 4164 (eval $ac_try) 2>&5 4165 ac_status=$? 4166 echo "$as_me:4166: \$? = $ac_status" >&5 4167 (exit $ac_status); }; }; then 4168 # The compiler can only warn and ignore the option if not recognized 4169 # So say no if there are warnings 4170 if test -s conftest.err; then 4171 compiler_rtti_exceptions=no 4172 else 4173 compiler_rtti_exceptions=yes 4174 fi 4175 4176else 4177 echo "$as_me: failed program was:" >&5 4178cat conftest.$ac_ext >&5 4179fi 4180rm -f conftest.$ac_objext conftest.$ac_ext 4181 CFLAGS="$save_CFLAGS" 4182 echo "$as_me:4182: result: $compiler_rtti_exceptions" >&5 4183echo "${ECHO_T}$compiler_rtti_exceptions" >&6 4184 4185 if test "$compiler_rtti_exceptions" = "yes"; then 4186 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 4187 else 4188 no_builtin_flag=' -fno-builtin' 4189 fi 4190fi 4191 4192# See if the linker supports building shared libraries. 4193echo "$as_me:4193: checking whether the linker ($LD) supports shared libraries" >&5 4194echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 4195 4196allow_undefined_flag= 4197no_undefined_flag= 4198need_lib_prefix=unknown 4199need_version=unknown 4200# when you set need_version to no, make sure it does not cause -set_version 4201# flags to be left without arguments 4202archive_cmds= 4203archive_expsym_cmds= 4204old_archive_from_new_cmds= 4205old_archive_from_expsyms_cmds= 4206export_dynamic_flag_spec= 4207whole_archive_flag_spec= 4208thread_safe_flag_spec= 4209hardcode_into_libs=no 4210hardcode_libdir_flag_spec= 4211hardcode_libdir_separator= 4212hardcode_direct=no 4213hardcode_minus_L=no 4214hardcode_shlibpath_var=unsupported 4215runpath_var= 4216link_all_deplibs=unknown 4217always_export_symbols=no 4218export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 4219# include_expsyms should be a list of space-separated symbols to be *always* 4220# included in the symbol list 4221include_expsyms= 4222# exclude_expsyms can be an egrep regular expression of symbols to exclude 4223# it will be wrapped by ` (' and `)$', so one must not match beginning or 4224# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4225# as well as any symbol that contains `d'. 4226exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 4227# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4228# platforms (ab)use it in PIC code, but their linkers get confused if 4229# the symbol is explicitly referenced. Since portable code cannot 4230# rely on this symbol name, it's probably fine to never include it in 4231# preloaded symbol tables. 4232extract_expsyms_cmds= 4233 4234case $host_os in 4235cygwin* | mingw* | pw32*) 4236 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4237 # When not using gcc, we currently assume that we are using 4238 # Microsoft Visual C++. 4239 if test "$GCC" != yes; then 4240 with_gnu_ld=no 4241 fi 4242 ;; 4243openbsd*) 4244 with_gnu_ld=no 4245 ;; 4246esac 4247 4248ld_shlibs=yes 4249if test "$with_gnu_ld" = yes; then 4250 # If archive_cmds runs LD, not CC, wlarc should be empty 4251 wlarc='${wl}' 4252 4253 # See if GNU ld supports shared libraries. 4254 case $host_os in 4255 aix3* | aix4* | aix5*) 4256 # On AIX, the GNU linker is very broken 4257 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 4258 ld_shlibs=no 4259 cat <<EOF 1>&2 4260 4261*** Warning: the GNU linker, at least up to release 2.9.1, is reported 4262*** to be unable to reliably create shared libraries on AIX. 4263*** Therefore, libtool is disabling shared libraries support. If you 4264*** really care for shared libraries, you may want to modify your PATH 4265*** so that a non-GNU linker is found, and then restart. 4266 4267EOF 4268 ;; 4269 4270 amigaos*) 4271 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)' 4272 hardcode_libdir_flag_spec='-L$libdir' 4273 hardcode_minus_L=yes 4274 4275 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 4276 # that the semantics of dynamic libraries on AmigaOS, at least up 4277 # to version 4, is to share data among multiple programs linked 4278 # with the same dynamic library. Since this doesn't match the 4279 # behavior of shared libraries on other platforms, we can use 4280 # them. 4281 ld_shlibs=no 4282 ;; 4283 4284 beos*) 4285 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 4286 allow_undefined_flag=unsupported 4287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4288 # support --undefined. This deserves some investigation. FIXME 4289 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4290 else 4291 ld_shlibs=no 4292 fi 4293 ;; 4294 4295 cygwin* | mingw* | pw32*) 4296 # hardcode_libdir_flag_spec is actually meaningless, as there is 4297 # no search path for DLLs. 4298 hardcode_libdir_flag_spec='-L$libdir' 4299 allow_undefined_flag=unsupported 4300 always_export_symbols=yes 4301 4302 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 4303 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 4304 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 4305 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 4306 else $CC -o impgen impgen.c ; fi)~ 4307 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 4308 4309 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 4310 4311 # cygwin and mingw dlls have different entry points and sets of symbols 4312 # to exclude. 4313 # FIXME: what about values for MSVC? 4314 dll_entry=__cygwin_dll_entry@12 4315 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 4316 case $host_os in 4317 mingw*) 4318 # mingw values 4319 dll_entry=_DllMainCRTStartup@12 4320 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 4321 ;; 4322 esac 4323 4324 # mingw and cygwin differ, and it's simplest to just exclude the union 4325 # of the two symbol sets. 4326 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 4327 4328 # recent cygwin and mingw systems supply a stub DllMain which the user 4329 # can override, but on older systems we have to supply one (in ltdll.c) 4330 if test "x$lt_cv_need_dllmain" = "xyes"; then 4331 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 4332 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 4333 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 4334 else 4335 ltdll_obj= 4336 ltdll_cmds= 4337 fi 4338 4339 # Extract the symbol export list from an `--export-all' def file, 4340 # then regenerate the def file from the symbol export list, so that 4341 # the compiled dll only exports the symbol export list. 4342 # Be careful not to strip the DATA tag left be newer dlltools. 4343 export_symbols_cmds="$ltdll_cmds"' 4344 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 4345 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 4346 4347 # If the export-symbols file already is a .def file (1st line 4348 # is EXPORTS), use it as is. 4349 # If DATA tags from a recent dlltool are present, honour them! 4350 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 4351 cp $export_symbols $output_objdir/$soname-def; 4352 else 4353 echo EXPORTS > $output_objdir/$soname-def; 4354 _lt_hint=1; 4355 cat $export_symbols | while read symbol; do 4356 set dummy \$symbol; 4357 case \$# in 4358 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 4359 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 4360 esac; 4361 _lt_hint=`expr 1 + \$_lt_hint`; 4362 done; 4363 fi~ 4364 '"$ltdll_cmds"' 4365 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 4366 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 4367 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 4368 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 4369 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 4370 ;; 4371 4372 netbsd*) 4373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4375 wlarc= 4376 else 4377 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4378 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4379 fi 4380 ;; 4381 4382 solaris* | sysv5*) 4383 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 4384 ld_shlibs=no 4385 cat <<EOF 1>&2 4386 4387*** Warning: The releases 2.8.* of the GNU linker cannot reliably 4388*** create shared libraries on Solaris systems. Therefore, libtool 4389*** is disabling shared libraries support. We urge you to upgrade GNU 4390*** binutils to release 2.9.1 or newer. Another option is to modify 4391*** your PATH or compiler configuration so that the native linker is 4392*** used, and then restart. 4393 4394EOF 4395 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 4396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4398 else 4399 ld_shlibs=no 4400 fi 4401 ;; 4402 4403 sunos4*) 4404 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4405 wlarc= 4406 hardcode_direct=yes 4407 hardcode_shlibpath_var=no 4408 ;; 4409 4410 *) 4411 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 4412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4414 else 4415 ld_shlibs=no 4416 fi 4417 ;; 4418 esac 4419 4420 if test "$ld_shlibs" = yes; then 4421 runpath_var=LD_RUN_PATH 4422 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 4423 export_dynamic_flag_spec='${wl}--export-dynamic' 4424 case $host_os in 4425 cygwin* | mingw* | pw32*) 4426 # dlltool doesn't understand --whole-archive et. al. 4427 whole_archive_flag_spec= 4428 ;; 4429 *) 4430 # ancient GNU ld didn't support --whole-archive et. al. 4431 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 4432 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4433 else 4434 whole_archive_flag_spec= 4435 fi 4436 ;; 4437 esac 4438 fi 4439else 4440 # PORTME fill in a description of your system's linker (not GNU ld) 4441 case $host_os in 4442 aix3*) 4443 allow_undefined_flag=unsupported 4444 always_export_symbols=yes 4445 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' 4446 # Note: this linker hardcodes the directories in LIBPATH if there 4447 # are no directories specified by -L. 4448 hardcode_minus_L=yes 4449 if test "$GCC" = yes && test -z "$link_static_flag"; then 4450 # Neither direct hardcoding nor static linking is supported with a 4451 # broken collect2. 4452 hardcode_direct=unsupported 4453 fi 4454 ;; 4455 4456 aix4* | aix5*) 4457 if test "$host_cpu" = ia64; then 4458 # On IA64, the linker does run time linking by default, so we don't 4459 # have to do anything special. 4460 aix_use_runtimelinking=no 4461 exp_sym_flag='-Bexport' 4462 no_entry_flag="" 4463 else 4464 aix_use_runtimelinking=no 4465 4466 # Test if we are trying to use run time linking or normal 4467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4468 # need to do runtime linking. 4469 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 4470 for ld_flag in $LDFLAGS; do 4471 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 4472 aix_use_runtimelinking=yes 4473 break 4474 fi 4475 done 4476 esac 4477 4478 exp_sym_flag='-bexport' 4479 no_entry_flag='-bnoentry' 4480 fi 4481 4482 # When large executables or shared objects are built, AIX ld can 4483 # have problems creating the table of contents. If linking a library 4484 # or program results in "error TOC overflow" add -mminimal-toc to 4485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 4486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 4487 4488 hardcode_direct=yes 4489 archive_cmds='' 4490 hardcode_libdir_separator=':' 4491 if test "$GCC" = yes; then 4492 case $host_os in aix4.[012]|aix4.[012].*) 4493 collect2name=`${CC} -print-prog-name=collect2` 4494 if test -f "$collect2name" && \ 4495 strings "$collect2name" | grep resolve_lib_name >/dev/null 4496 then 4497 # We have reworked collect2 4498 hardcode_direct=yes 4499 else 4500 # We have old collect2 4501 hardcode_direct=unsupported 4502 # It fails to find uninstalled libraries when the uninstalled 4503 # path is not listed in the libpath. Setting hardcode_minus_L 4504 # to unsupported forces relinking 4505 hardcode_minus_L=yes 4506 hardcode_libdir_flag_spec='-L$libdir' 4507 hardcode_libdir_separator= 4508 fi 4509 esac 4510 4511 shared_flag='-shared' 4512 else 4513 # not using gcc 4514 if test "$host_cpu" = ia64; then 4515 shared_flag='${wl}-G' 4516 else 4517 if test "$aix_use_runtimelinking" = yes; then 4518 shared_flag='${wl}-G' 4519 else 4520 shared_flag='${wl}-bM:SRE' 4521 fi 4522 fi 4523 fi 4524 4525 # It seems that -bexpall can do strange things, so it is better to 4526 # generate a list of symbols to export. 4527 always_export_symbols=yes 4528 if test "$aix_use_runtimelinking" = yes; then 4529 # Warning - without using the other runtime loading flags (-brtl), 4530 # -berok will link without error, but may produce a broken library. 4531 allow_undefined_flag='-berok' 4532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 4533 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 4534 else 4535 if test "$host_cpu" = ia64; then 4536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 4537 allow_undefined_flag="-z nodefs" 4538 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 4539 else 4540 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 4541 # Warning - without using the other run time loading flags, 4542 # -berok will link without error, but may produce a broken library. 4543 allow_undefined_flag='${wl}-berok' 4544 # This is a bit strange, but is similar to how AIX traditionally builds 4545 # it's shared libraries. 4546 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 4547 fi 4548 fi 4549 ;; 4550 4551 amigaos*) 4552 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)' 4553 hardcode_libdir_flag_spec='-L$libdir' 4554 hardcode_minus_L=yes 4555 # see comment about different semantics on the GNU ld section 4556 ld_shlibs=no 4557 ;; 4558 4559 cygwin* | mingw* | pw32*) 4560 # When not using gcc, we currently assume that we are using 4561 # Microsoft Visual C++. 4562 # hardcode_libdir_flag_spec is actually meaningless, as there is 4563 # no search path for DLLs. 4564 hardcode_libdir_flag_spec=' ' 4565 allow_undefined_flag=unsupported 4566 # Tell ltmain to make .lib files, not .a files. 4567 libext=lib 4568 # FIXME: Setting linknames here is a bad hack. 4569 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 4570 # The linker will automatically build a .lib file if we build a DLL. 4571 old_archive_from_new_cmds='true' 4572 # FIXME: Should let the user specify the lib program. 4573 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 4574 fix_srcfile_path='`cygpath -w "$srcfile"`' 4575 ;; 4576 4577 darwin* | rhapsody*) 4578 case "$host_os" in 4579 rhapsody* | darwin1.[012]) 4580 allow_undefined_flag='-undefined suppress' 4581 ;; 4582 *) # Darwin 1.3 on 4583 allow_undefined_flag='-flat_namespace -undefined suppress' 4584 ;; 4585 esac 4586 # FIXME: Relying on posixy $() will cause problems for 4587 # cross-compilation, but unfortunately the echo tests do not 4588 # yet detect zsh echo's removal of \ escapes. 4589 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 4590 # We need to add '_' to the symbols in $export_symbols first 4591 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 4592 hardcode_direct=yes 4593 hardcode_shlibpath_var=no 4594 whole_archive_flag_spec='-all_load $convenience' 4595 ;; 4596 4597 freebsd1*) 4598 ld_shlibs=no 4599 ;; 4600 4601 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 4602 # support. Future versions do this automatically, but an explicit c++rt0.o 4603 # does not break anything, and helps significantly (at the cost of a little 4604 # extra space). 4605 freebsd2.2*) 4606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 4607 hardcode_libdir_flag_spec='-R$libdir' 4608 hardcode_direct=yes 4609 hardcode_shlibpath_var=no 4610 ;; 4611 4612 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 4613 freebsd2*) 4614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4615 hardcode_direct=yes 4616 hardcode_minus_L=yes 4617 hardcode_shlibpath_var=no 4618 ;; 4619 4620 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 4621 freebsd*) 4622 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 4623 hardcode_libdir_flag_spec='-R$libdir' 4624 hardcode_direct=yes 4625 hardcode_shlibpath_var=no 4626 ;; 4627 4628 hpux9* | hpux10* | hpux11*) 4629 case $host_os in 4630 hpux9*) 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' ;; 4631 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 4632 esac 4633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 4634 hardcode_libdir_separator=: 4635 hardcode_direct=yes 4636 hardcode_minus_L=yes # Not in the search PATH, but as the default 4637 # location of the library. 4638 export_dynamic_flag_spec='${wl}-E' 4639 ;; 4640 4641 irix5* | irix6*) 4642 if test "$GCC" = yes; then 4643 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' 4644 else 4645 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' 4646 fi 4647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4648 hardcode_libdir_separator=: 4649 link_all_deplibs=yes 4650 ;; 4651 4652 netbsd*) 4653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 4655 else 4656 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 4657 fi 4658 hardcode_libdir_flag_spec='-R$libdir' 4659 hardcode_direct=yes 4660 hardcode_shlibpath_var=no 4661 ;; 4662 4663 newsos6) 4664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4665 hardcode_direct=yes 4666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4667 hardcode_libdir_separator=: 4668 hardcode_shlibpath_var=no 4669 ;; 4670 4671 openbsd*) 4672 hardcode_direct=yes 4673 hardcode_shlibpath_var=no 4674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 4676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 4677 export_dynamic_flag_spec='${wl}-E' 4678 else 4679 case "$host_os" in 4680 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 4681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4682 hardcode_libdir_flag_spec='-R$libdir' 4683 ;; 4684 *) 4685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 4686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 4687 ;; 4688 esac 4689 fi 4690 ;; 4691 4692 os2*) 4693 hardcode_libdir_flag_spec='-L$libdir' 4694 hardcode_minus_L=yes 4695 allow_undefined_flag=unsupported 4696 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' 4697 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 4698 ;; 4699 4700 osf3*) 4701 if test "$GCC" = yes; then 4702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 4703 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' 4704 else 4705 allow_undefined_flag=' -expect_unresolved \*' 4706 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' 4707 fi 4708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4709 hardcode_libdir_separator=: 4710 ;; 4711 4712 osf4* | osf5*) # as osf3* with the addition of -msym flag 4713 if test "$GCC" = yes; then 4714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 4715 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' 4716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4717 else 4718 allow_undefined_flag=' -expect_unresolved \*' 4719 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' 4720 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 4721 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 4722 4723 #Both c and cxx compiler support -rpath directly 4724 hardcode_libdir_flag_spec='-rpath $libdir' 4725 fi 4726 hardcode_libdir_separator=: 4727 ;; 4728 4729 sco3.2v5*) 4730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4731 hardcode_shlibpath_var=no 4732 runpath_var=LD_RUN_PATH 4733 hardcode_runpath_var=yes 4734 export_dynamic_flag_spec='${wl}-Bexport' 4735 ;; 4736 4737 solaris*) 4738 # gcc --version < 3.0 without binutils cannot create self contained 4739 # shared libraries reliably, requiring libgcc.a to resolve some of 4740 # the object symbols generated in some cases. Libraries that use 4741 # assert need libgcc.a to resolve __eprintf, for example. Linking 4742 # a copy of libgcc.a into every shared library to guarantee resolving 4743 # such symbols causes other problems: According to Tim Van Holder 4744 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 4745 # (to the application) exception stack for one thing. 4746 no_undefined_flag=' -z defs' 4747 if test "$GCC" = yes; then 4748 case `$CC --version 2>/dev/null` in 4749 [12].*) 4750 cat <<EOF 1>&2 4751 4752*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 4753*** create self contained shared libraries on Solaris systems, without 4754*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 4755*** -no-undefined support, which will at least allow you to build shared 4756*** libraries. However, you may find that when you link such libraries 4757*** into an application without using GCC, you have to manually add 4758*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 4759*** upgrade to a newer version of GCC. Another option is to rebuild your 4760*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 4761 4762EOF 4763 no_undefined_flag= 4764 ;; 4765 esac 4766 fi 4767 # $CC -shared without GNU ld will not create a library from C++ 4768 # object files and a static libstdc++, better avoid it by now 4769 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4770 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 4772 hardcode_libdir_flag_spec='-R$libdir' 4773 hardcode_shlibpath_var=no 4774 case $host_os in 4775 solaris2.[0-5] | solaris2.[0-5].*) ;; 4776 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 4777 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 4778 esac 4779 link_all_deplibs=yes 4780 ;; 4781 4782 sunos4*) 4783 if test "x$host_vendor" = xsequent; then 4784 # Use $CC to link under sequent, because it throws in some extra .o 4785 # files that make .init and .fini sections work. 4786 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 4787 else 4788 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 4789 fi 4790 hardcode_libdir_flag_spec='-L$libdir' 4791 hardcode_direct=yes 4792 hardcode_minus_L=yes 4793 hardcode_shlibpath_var=no 4794 ;; 4795 4796 sysv4) 4797 if test "x$host_vendor" = xsno; then 4798 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 4799 hardcode_direct=yes # is this really true??? 4800 else 4801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4802 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 4803 fi 4804 runpath_var='LD_RUN_PATH' 4805 hardcode_shlibpath_var=no 4806 ;; 4807 4808 sysv4.3*) 4809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4810 hardcode_shlibpath_var=no 4811 export_dynamic_flag_spec='-Bexport' 4812 ;; 4813 4814 sysv5*) 4815 no_undefined_flag=' -z text' 4816 # $CC -shared without GNU ld will not create a library from C++ 4817 # object files and a static libstdc++, better avoid it by now 4818 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 4821 hardcode_libdir_flag_spec= 4822 hardcode_shlibpath_var=no 4823 runpath_var='LD_RUN_PATH' 4824 ;; 4825 4826 uts4*) 4827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4828 hardcode_libdir_flag_spec='-L$libdir' 4829 hardcode_shlibpath_var=no 4830 ;; 4831 4832 dgux*) 4833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4834 hardcode_libdir_flag_spec='-L$libdir' 4835 hardcode_shlibpath_var=no 4836 ;; 4837 4838 sysv4*MP*) 4839 if test -d /usr/nec; then 4840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4841 hardcode_shlibpath_var=no 4842 runpath_var=LD_RUN_PATH 4843 hardcode_runpath_var=yes 4844 ld_shlibs=yes 4845 fi 4846 ;; 4847 4848 sysv4.2uw2*) 4849 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 4850 hardcode_direct=yes 4851 hardcode_minus_L=no 4852 hardcode_shlibpath_var=no 4853 hardcode_runpath_var=yes 4854 runpath_var=LD_RUN_PATH 4855 ;; 4856 4857 sysv5uw7* | unixware7*) 4858 no_undefined_flag='${wl}-z ${wl}text' 4859 if test "$GCC" = yes; then 4860 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4861 else 4862 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4863 fi 4864 runpath_var='LD_RUN_PATH' 4865 hardcode_shlibpath_var=no 4866 ;; 4867 4868 *) 4869 ld_shlibs=no 4870 ;; 4871 esac 4872fi 4873echo "$as_me:4873: result: $ld_shlibs" >&5 4874echo "${ECHO_T}$ld_shlibs" >&6 4875test "$ld_shlibs" = no && can_build_shared=no 4876 4877# Check hardcoding attributes. 4878echo "$as_me:4878: checking how to hardcode library paths into programs" >&5 4879echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 4880hardcode_action= 4881if test -n "$hardcode_libdir_flag_spec" || \ 4882 test -n "$runpath_var"; then 4883 4884 # We can hardcode non-existant directories. 4885 if test "$hardcode_direct" != no && 4886 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4887 # have to relink, otherwise we might link with an installed library 4888 # when we should be linking with a yet-to-be-installed one 4889 ## test "$hardcode_shlibpath_var" != no && 4890 test "$hardcode_minus_L" != no; then 4891 # Linking always hardcodes the temporary library directory. 4892 hardcode_action=relink 4893 else 4894 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4895 hardcode_action=immediate 4896 fi 4897else 4898 # We cannot hardcode anything, or else we can only hardcode existing 4899 # directories. 4900 hardcode_action=unsupported 4901fi 4902echo "$as_me:4902: result: $hardcode_action" >&5 4903echo "${ECHO_T}$hardcode_action" >&6 4904 4905striplib= 4906old_striplib= 4907echo "$as_me:4907: checking whether stripping libraries is possible" >&5 4908echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 4909if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 4910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4911 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4912 echo "$as_me:4912: result: yes" >&5 4913echo "${ECHO_T}yes" >&6 4914else 4915 echo "$as_me:4915: result: no" >&5 4916echo "${ECHO_T}no" >&6 4917fi 4918 4919reload_cmds='$LD$reload_flag -o $output$reload_objs' 4920test -z "$deplibs_check_method" && deplibs_check_method=unknown 4921 4922# PORTME Fill in your ld.so characteristics 4923echo "$as_me:4923: checking dynamic linker characteristics" >&5 4924echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 4925library_names_spec= 4926libname_spec='lib$name' 4927soname_spec= 4928postinstall_cmds= 4929postuninstall_cmds= 4930finish_cmds= 4931finish_eval= 4932shlibpath_var= 4933shlibpath_overrides_runpath=unknown 4934version_type=none 4935dynamic_linker="$host_os ld.so" 4936sys_lib_dlsearch_path_spec="/lib /usr/lib" 4937sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4938 4939case $host_os in 4940aix3*) 4941 version_type=linux 4942 library_names_spec='${libname}${release}.so$versuffix $libname.a' 4943 shlibpath_var=LIBPATH 4944 4945 # AIX has no versioning support, so we append a major version to the name. 4946 soname_spec='${libname}${release}.so$major' 4947 ;; 4948 4949aix4* | aix5*) 4950 version_type=linux 4951 if test "$host_cpu" = ia64; then 4952 # AIX 5 supports IA64 4953 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 4954 shlibpath_var=LD_LIBRARY_PATH 4955 else 4956 # With GCC up to 2.95.x, collect2 would create an import file 4957 # for dependence libraries. The import file would start with 4958 # the line `#! .'. This would cause the generated library to 4959 # depend on `.', always an invalid library. This was fixed in 4960 # development snapshots of GCC prior to 3.0. 4961 case $host_os in 4962 aix4 | aix4.[01] | aix4.[01].*) 4963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4964 echo ' yes ' 4965 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 4966 : 4967 else 4968 can_build_shared=no 4969 fi 4970 ;; 4971 esac 4972 # AIX (on Power*) has no versioning support, so currently we can 4973 # not hardcode correct soname into executable. Probably we can 4974 # add versioning support to collect2, so additional links can 4975 # be useful in future. 4976 if test "$aix_use_runtimelinking" = yes; then 4977 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4978 # instead of lib<name>.a to let people know that these are not 4979 # typical AIX shared libraries. 4980 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4981 else 4982 # We preserve .a as extension for shared libraries through AIX4.2 4983 # and later when we are not doing run time linking. 4984 library_names_spec='${libname}${release}.a $libname.a' 4985 soname_spec='${libname}${release}.so$major' 4986 fi 4987 shlibpath_var=LIBPATH 4988 fi 4989 ;; 4990 4991amigaos*) 4992 library_names_spec='$libname.ixlibrary $libname.a' 4993 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4994 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' 4995 ;; 4996 4997beos*) 4998 library_names_spec='${libname}.so' 4999 dynamic_linker="$host_os ld.so" 5000 shlibpath_var=LIBRARY_PATH 5001 ;; 5002 5003bsdi4*) 5004 version_type=linux 5005 need_version=no 5006 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5007 soname_spec='${libname}${release}.so$major' 5008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 5009 shlibpath_var=LD_LIBRARY_PATH 5010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 5011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 5012 export_dynamic_flag_spec=-rdynamic 5013 # the default ld.so.conf also contains /usr/contrib/lib and 5014 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 5015 # libtool to hard-code these into programs 5016 ;; 5017 5018cygwin* | mingw* | pw32*) 5019 version_type=windows 5020 need_version=no 5021 need_lib_prefix=no 5022 case $GCC,$host_os in 5023 yes,cygwin*) 5024 library_names_spec='$libname.dll.a' 5025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 5026 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 5027 dldir=$destdir/`dirname \$dlpath`~ 5028 test -d \$dldir || mkdir -p \$dldir~ 5029 $install_prog .libs/$dlname \$dldir/$dlname' 5030 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5031 dlpath=$dir/\$dldll~ 5032 $rm \$dlpath' 5033 ;; 5034 yes,mingw*) 5035 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 5036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 5037 ;; 5038 yes,pw32*) 5039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 5040 ;; 5041 *) 5042 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 5043 ;; 5044 esac 5045 dynamic_linker='Win32 ld.exe' 5046 # FIXME: first we should search . and the directory the executable is in 5047 shlibpath_var=PATH 5048 ;; 5049 5050darwin* | rhapsody*) 5051 dynamic_linker="$host_os dyld" 5052 version_type=darwin 5053 need_lib_prefix=no 5054 need_version=no 5055 # FIXME: Relying on posixy $() will cause problems for 5056 # cross-compilation, but unfortunately the echo tests do not 5057 # yet detect zsh echo's removal of \ escapes. 5058 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 5059 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 5060 shlibpath_overrides_runpath=yes 5061 shlibpath_var=DYLD_LIBRARY_PATH 5062 ;; 5063 5064freebsd1*) 5065 dynamic_linker=no 5066 ;; 5067 5068freebsd*) 5069 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 5070 version_type=freebsd-$objformat 5071 case $version_type in 5072 freebsd-elf*) 5073 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 5074 need_version=no 5075 need_lib_prefix=no 5076 ;; 5077 freebsd-*) 5078 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 5079 need_version=yes 5080 ;; 5081 esac 5082 shlibpath_var=LD_LIBRARY_PATH 5083 case $host_os in 5084 freebsd2*) 5085 shlibpath_overrides_runpath=yes 5086 ;; 5087 *) 5088 shlibpath_overrides_runpath=no 5089 hardcode_into_libs=yes 5090 ;; 5091 esac 5092 ;; 5093 5094gnu*) 5095 version_type=linux 5096 need_lib_prefix=no 5097 need_version=no 5098 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 5099 soname_spec='${libname}${release}.so$major' 5100 shlibpath_var=LD_LIBRARY_PATH 5101 hardcode_into_libs=yes 5102 ;; 5103 5104hpux9* | hpux10* | hpux11*) 5105 # Give a soname corresponding to the major version so that dld.sl refuses to 5106 # link against other versions. 5107 dynamic_linker="$host_os dld.sl" 5108 version_type=sunos 5109 need_lib_prefix=no 5110 need_version=no 5111 shlibpath_var=SHLIB_PATH 5112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 5113 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 5114 soname_spec='${libname}${release}.sl$major' 5115 # HP-UX runs *really* slowly unless shared libraries are mode 555. 5116 postinstall_cmds='chmod 555 $lib' 5117 ;; 5118 5119irix5* | irix6*) 5120 version_type=irix 5121 need_lib_prefix=no 5122 need_version=no 5123 soname_spec='${libname}${release}.so$major' 5124 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 5125 case $host_os in 5126 irix5*) 5127 libsuff= shlibsuff= 5128 ;; 5129 *) 5130 case $LD in # libtool.m4 will add one of these switches to LD 5131 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 5132 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 5133 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 5134 *) libsuff= shlibsuff= libmagic=never-match;; 5135 esac 5136 ;; 5137 esac 5138 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 5139 shlibpath_overrides_runpath=no 5140 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 5141 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 5142 ;; 5143 5144# No shared lib support for Linux oldld, aout, or coff. 5145linux*oldld* | linux*aout* | linux*coff*) 5146 dynamic_linker=no 5147 ;; 5148 5149# This must be Linux ELF. 5150linux*) 5151 version_type=linux 5152 need_lib_prefix=no 5153 need_version=no 5154 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5155 soname_spec='${libname}${release}.so$major' 5156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 5157 shlibpath_var=LD_LIBRARY_PATH 5158 shlibpath_overrides_runpath=no 5159 # This implies no fast_install, which is unacceptable. 5160 # Some rework will be needed to allow for fast_install 5161 # before this can be enabled. 5162 hardcode_into_libs=yes 5163 5164 # We used to test for /lib/ld.so.1 and disable shared libraries on 5165 # powerpc, because MkLinux only supported shared libraries with the 5166 # GNU dynamic linker. Since this was broken with cross compilers, 5167 # most powerpc-linux boxes support dynamic linking these days and 5168 # people can always --disable-shared, the test was removed, and we 5169 # assume the GNU/Linux dynamic linker is in use. 5170 dynamic_linker='GNU/Linux ld.so' 5171 ;; 5172 5173netbsd*) 5174 version_type=sunos 5175 need_lib_prefix=no 5176 need_version=no 5177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5178 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 5179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5180 dynamic_linker='NetBSD (a.out) ld.so' 5181 else 5182 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 5183 soname_spec='${libname}${release}.so$major' 5184 dynamic_linker='NetBSD ld.elf_so' 5185 fi 5186 shlibpath_var=LD_LIBRARY_PATH 5187 shlibpath_overrides_runpath=yes 5188 hardcode_into_libs=yes 5189 ;; 5190 5191newsos6) 5192 version_type=linux 5193 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5194 shlibpath_var=LD_LIBRARY_PATH 5195 shlibpath_overrides_runpath=yes 5196 ;; 5197 5198openbsd*) 5199 version_type=sunos 5200 need_lib_prefix=no 5201 need_version=no 5202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5203 case "$host_os" in 5204 openbsd2.[89] | openbsd2.[89].*) 5205 shlibpath_overrides_runpath=no 5206 ;; 5207 *) 5208 shlibpath_overrides_runpath=yes 5209 ;; 5210 esac 5211 else 5212 shlibpath_overrides_runpath=yes 5213 fi 5214 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 5215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 5216 shlibpath_var=LD_LIBRARY_PATH 5217 ;; 5218 5219os2*) 5220 libname_spec='$name' 5221 need_lib_prefix=no 5222 library_names_spec='$libname.dll $libname.a' 5223 dynamic_linker='OS/2 ld.exe' 5224 shlibpath_var=LIBPATH 5225 ;; 5226 5227osf3* | osf4* | osf5*) 5228 version_type=osf 5229 need_version=no 5230 soname_spec='${libname}${release}.so' 5231 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 5232 shlibpath_var=LD_LIBRARY_PATH 5233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 5234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 5235 ;; 5236 5237sco3.2v5*) 5238 version_type=osf 5239 soname_spec='${libname}${release}.so$major' 5240 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5241 shlibpath_var=LD_LIBRARY_PATH 5242 ;; 5243 5244solaris*) 5245 version_type=linux 5246 need_lib_prefix=no 5247 need_version=no 5248 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5249 soname_spec='${libname}${release}.so$major' 5250 shlibpath_var=LD_LIBRARY_PATH 5251 shlibpath_overrides_runpath=yes 5252 hardcode_into_libs=yes 5253 # ldd complains unless libraries are executable 5254 postinstall_cmds='chmod +x $lib' 5255 ;; 5256 5257sunos4*) 5258 version_type=sunos 5259 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 5260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 5261 shlibpath_var=LD_LIBRARY_PATH 5262 shlibpath_overrides_runpath=yes 5263 if test "$with_gnu_ld" = yes; then 5264 need_lib_prefix=no 5265 fi 5266 need_version=yes 5267 ;; 5268 5269sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5270 version_type=linux 5271 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5272 soname_spec='${libname}${release}.so$major' 5273 shlibpath_var=LD_LIBRARY_PATH 5274 case $host_vendor in 5275 sni) 5276 shlibpath_overrides_runpath=no 5277 ;; 5278 motorola) 5279 need_lib_prefix=no 5280 need_version=no 5281 shlibpath_overrides_runpath=no 5282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 5283 ;; 5284 esac 5285 ;; 5286 5287uts4*) 5288 version_type=linux 5289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5290 soname_spec='${libname}${release}.so$major' 5291 shlibpath_var=LD_LIBRARY_PATH 5292 ;; 5293 5294dgux*) 5295 version_type=linux 5296 need_lib_prefix=no 5297 need_version=no 5298 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5299 soname_spec='${libname}${release}.so$major' 5300 shlibpath_var=LD_LIBRARY_PATH 5301 ;; 5302 5303sysv4*MP*) 5304 if test -d /usr/nec ;then 5305 version_type=linux 5306 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 5307 soname_spec='$libname.so.$major' 5308 shlibpath_var=LD_LIBRARY_PATH 5309 fi 5310 ;; 5311 5312*) 5313 dynamic_linker=no 5314 ;; 5315esac 5316echo "$as_me:5316: result: $dynamic_linker" >&5 5317echo "${ECHO_T}$dynamic_linker" >&6 5318test "$dynamic_linker" = no && can_build_shared=no 5319 5320# Report the final consequences. 5321echo "$as_me:5321: checking if libtool supports shared libraries" >&5 5322echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 5323echo "$as_me:5323: result: $can_build_shared" >&5 5324echo "${ECHO_T}$can_build_shared" >&6 5325 5326echo "$as_me:5326: checking whether to build shared libraries" >&5 5327echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 5328test "$can_build_shared" = "no" && enable_shared=no 5329 5330# On AIX, shared libraries and static libraries use the same namespace, and 5331# are all built from PIC. 5332case "$host_os" in 5333aix3*) 5334 test "$enable_shared" = yes && enable_static=no 5335 if test -n "$RANLIB"; then 5336 archive_cmds="$archive_cmds~\$RANLIB \$lib" 5337 postinstall_cmds='$RANLIB $lib' 5338 fi 5339 ;; 5340 5341aix4*) 5342 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5343 test "$enable_shared" = yes && enable_static=no 5344 fi 5345 ;; 5346esac 5347echo "$as_me:5347: result: $enable_shared" >&5 5348echo "${ECHO_T}$enable_shared" >&6 5349 5350echo "$as_me:5350: checking whether to build static libraries" >&5 5351echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 5352# Make sure either enable_shared or enable_static is yes. 5353test "$enable_shared" = yes || enable_static=yes 5354echo "$as_me:5354: result: $enable_static" >&5 5355echo "${ECHO_T}$enable_static" >&6 5356 5357if test "$hardcode_action" = relink; then 5358 # Fast installation is not supported 5359 enable_fast_install=no 5360elif test "$shlibpath_overrides_runpath" = yes || 5361 test "$enable_shared" = no; then 5362 # Fast installation is not necessary 5363 enable_fast_install=needless 5364fi 5365 5366variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 5367if test "$GCC" = yes; then 5368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 5369fi 5370 5371if test "x$enable_dlopen" != xyes; then 5372 enable_dlopen=unknown 5373 enable_dlopen_self=unknown 5374 enable_dlopen_self_static=unknown 5375else 5376 lt_cv_dlopen=no 5377 lt_cv_dlopen_libs= 5378 5379 case $host_os in 5380 beos*) 5381 lt_cv_dlopen="load_add_on" 5382 lt_cv_dlopen_libs= 5383 lt_cv_dlopen_self=yes 5384 ;; 5385 5386 cygwin* | mingw* | pw32*) 5387 lt_cv_dlopen="LoadLibrary" 5388 lt_cv_dlopen_libs= 5389 ;; 5390 5391 *) 5392 echo "$as_me:5392: checking for shl_load" >&5 5393echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 5394if test "${ac_cv_func_shl_load+set}" = set; then 5395 echo $ECHO_N "(cached) $ECHO_C" >&6 5396else 5397 cat >conftest.$ac_ext <<_ACEOF 5398#line 5398 "configure" 5399#include "confdefs.h" 5400/* System header to define __stub macros and hopefully few prototypes, 5401 which can conflict with char shl_load (); below. */ 5402#include <assert.h> 5403/* Override any gcc2 internal prototype to avoid an error. */ 5404#ifdef __cplusplus 5405extern "C" 5406#endif 5407/* We use char because int might match the return type of a gcc2 5408 builtin and then its argument prototype would still apply. */ 5409char shl_load (); 5410char (*f) (); 5411 5412int 5413main () 5414{ 5415/* The GNU C library defines this for functions which it implements 5416 to always fail with ENOSYS. Some functions are actually named 5417 something starting with __ and the normal name is an alias. */ 5418#if defined (__stub_shl_load) || defined (__stub___shl_load) 5419choke me 5420#else 5421f = shl_load; 5422#endif 5423 5424 ; 5425 return 0; 5426} 5427_ACEOF 5428rm -f conftest.$ac_objext conftest$ac_exeext 5429if { (eval echo "$as_me:5429: \"$ac_link\"") >&5 5430 (eval $ac_link) 2>&5 5431 ac_status=$? 5432 echo "$as_me:5432: \$? = $ac_status" >&5 5433 (exit $ac_status); } && 5434 { ac_try='test -s conftest$ac_exeext' 5435 { (eval echo "$as_me:5435: \"$ac_try\"") >&5 5436 (eval $ac_try) 2>&5 5437 ac_status=$? 5438 echo "$as_me:5438: \$? = $ac_status" >&5 5439 (exit $ac_status); }; }; then 5440 ac_cv_func_shl_load=yes 5441else 5442 echo "$as_me: failed program was:" >&5 5443cat conftest.$ac_ext >&5 5444ac_cv_func_shl_load=no 5445fi 5446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5447fi 5448echo "$as_me:5448: result: $ac_cv_func_shl_load" >&5 5449echo "${ECHO_T}$ac_cv_func_shl_load" >&6 5450if test $ac_cv_func_shl_load = yes; then 5451 lt_cv_dlopen="shl_load" 5452else 5453 echo "$as_me:5453: checking for shl_load in -ldld" >&5 5454echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5455if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5456 echo $ECHO_N "(cached) $ECHO_C" >&6 5457else 5458 ac_check_lib_save_LIBS=$LIBS 5459LIBS="-ldld $LIBS" 5460cat >conftest.$ac_ext <<_ACEOF 5461#line 5461 "configure" 5462#include "confdefs.h" 5463 5464/* Override any gcc2 internal prototype to avoid an error. */ 5465#ifdef __cplusplus 5466extern "C" 5467#endif 5468/* We use char because int might match the return type of a gcc2 5469 builtin and then its argument prototype would still apply. */ 5470char shl_load (); 5471int 5472main () 5473{ 5474shl_load (); 5475 ; 5476 return 0; 5477} 5478_ACEOF 5479rm -f conftest.$ac_objext conftest$ac_exeext 5480if { (eval echo "$as_me:5480: \"$ac_link\"") >&5 5481 (eval $ac_link) 2>&5 5482 ac_status=$? 5483 echo "$as_me:5483: \$? = $ac_status" >&5 5484 (exit $ac_status); } && 5485 { ac_try='test -s conftest$ac_exeext' 5486 { (eval echo "$as_me:5486: \"$ac_try\"") >&5 5487 (eval $ac_try) 2>&5 5488 ac_status=$? 5489 echo "$as_me:5489: \$? = $ac_status" >&5 5490 (exit $ac_status); }; }; then 5491 ac_cv_lib_dld_shl_load=yes 5492else 5493 echo "$as_me: failed program was:" >&5 5494cat conftest.$ac_ext >&5 5495ac_cv_lib_dld_shl_load=no 5496fi 5497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5498LIBS=$ac_check_lib_save_LIBS 5499fi 5500echo "$as_me:5500: result: $ac_cv_lib_dld_shl_load" >&5 5501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5502if test $ac_cv_lib_dld_shl_load = yes; then 5503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 5504else 5505 echo "$as_me:5505: checking for dlopen" >&5 5506echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 5507if test "${ac_cv_func_dlopen+set}" = set; then 5508 echo $ECHO_N "(cached) $ECHO_C" >&6 5509else 5510 cat >conftest.$ac_ext <<_ACEOF 5511#line 5511 "configure" 5512#include "confdefs.h" 5513/* System header to define __stub macros and hopefully few prototypes, 5514 which can conflict with char dlopen (); below. */ 5515#include <assert.h> 5516/* Override any gcc2 internal prototype to avoid an error. */ 5517#ifdef __cplusplus 5518extern "C" 5519#endif 5520/* We use char because int might match the return type of a gcc2 5521 builtin and then its argument prototype would still apply. */ 5522char dlopen (); 5523char (*f) (); 5524 5525int 5526main () 5527{ 5528/* The GNU C library defines this for functions which it implements 5529 to always fail with ENOSYS. Some functions are actually named 5530 something starting with __ and the normal name is an alias. */ 5531#if defined (__stub_dlopen) || defined (__stub___dlopen) 5532choke me 5533#else 5534f = dlopen; 5535#endif 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541rm -f conftest.$ac_objext conftest$ac_exeext 5542if { (eval echo "$as_me:5542: \"$ac_link\"") >&5 5543 (eval $ac_link) 2>&5 5544 ac_status=$? 5545 echo "$as_me:5545: \$? = $ac_status" >&5 5546 (exit $ac_status); } && 5547 { ac_try='test -s conftest$ac_exeext' 5548 { (eval echo "$as_me:5548: \"$ac_try\"") >&5 5549 (eval $ac_try) 2>&5 5550 ac_status=$? 5551 echo "$as_me:5551: \$? = $ac_status" >&5 5552 (exit $ac_status); }; }; then 5553 ac_cv_func_dlopen=yes 5554else 5555 echo "$as_me: failed program was:" >&5 5556cat conftest.$ac_ext >&5 5557ac_cv_func_dlopen=no 5558fi 5559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5560fi 5561echo "$as_me:5561: result: $ac_cv_func_dlopen" >&5 5562echo "${ECHO_T}$ac_cv_func_dlopen" >&6 5563if test $ac_cv_func_dlopen = yes; then 5564 lt_cv_dlopen="dlopen" 5565else 5566 echo "$as_me:5566: checking for dlopen in -ldl" >&5 5567echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 5568if test "${ac_cv_lib_dl_dlopen+set}" = set; then 5569 echo $ECHO_N "(cached) $ECHO_C" >&6 5570else 5571 ac_check_lib_save_LIBS=$LIBS 5572LIBS="-ldl $LIBS" 5573cat >conftest.$ac_ext <<_ACEOF 5574#line 5574 "configure" 5575#include "confdefs.h" 5576 5577/* Override any gcc2 internal prototype to avoid an error. */ 5578#ifdef __cplusplus 5579extern "C" 5580#endif 5581/* We use char because int might match the return type of a gcc2 5582 builtin and then its argument prototype would still apply. */ 5583char dlopen (); 5584int 5585main () 5586{ 5587dlopen (); 5588 ; 5589 return 0; 5590} 5591_ACEOF 5592rm -f conftest.$ac_objext conftest$ac_exeext 5593if { (eval echo "$as_me:5593: \"$ac_link\"") >&5 5594 (eval $ac_link) 2>&5 5595 ac_status=$? 5596 echo "$as_me:5596: \$? = $ac_status" >&5 5597 (exit $ac_status); } && 5598 { ac_try='test -s conftest$ac_exeext' 5599 { (eval echo "$as_me:5599: \"$ac_try\"") >&5 5600 (eval $ac_try) 2>&5 5601 ac_status=$? 5602 echo "$as_me:5602: \$? = $ac_status" >&5 5603 (exit $ac_status); }; }; then 5604 ac_cv_lib_dl_dlopen=yes 5605else 5606 echo "$as_me: failed program was:" >&5 5607cat conftest.$ac_ext >&5 5608ac_cv_lib_dl_dlopen=no 5609fi 5610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5611LIBS=$ac_check_lib_save_LIBS 5612fi 5613echo "$as_me:5613: result: $ac_cv_lib_dl_dlopen" >&5 5614echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 5615if test $ac_cv_lib_dl_dlopen = yes; then 5616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 5617else 5618 echo "$as_me:5618: checking for dlopen in -lsvld" >&5 5619echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 5620if test "${ac_cv_lib_svld_dlopen+set}" = set; then 5621 echo $ECHO_N "(cached) $ECHO_C" >&6 5622else 5623 ac_check_lib_save_LIBS=$LIBS 5624LIBS="-lsvld $LIBS" 5625cat >conftest.$ac_ext <<_ACEOF 5626#line 5626 "configure" 5627#include "confdefs.h" 5628 5629/* Override any gcc2 internal prototype to avoid an error. */ 5630#ifdef __cplusplus 5631extern "C" 5632#endif 5633/* We use char because int might match the return type of a gcc2 5634 builtin and then its argument prototype would still apply. */ 5635char dlopen (); 5636int 5637main () 5638{ 5639dlopen (); 5640 ; 5641 return 0; 5642} 5643_ACEOF 5644rm -f conftest.$ac_objext conftest$ac_exeext 5645if { (eval echo "$as_me:5645: \"$ac_link\"") >&5 5646 (eval $ac_link) 2>&5 5647 ac_status=$? 5648 echo "$as_me:5648: \$? = $ac_status" >&5 5649 (exit $ac_status); } && 5650 { ac_try='test -s conftest$ac_exeext' 5651 { (eval echo "$as_me:5651: \"$ac_try\"") >&5 5652 (eval $ac_try) 2>&5 5653 ac_status=$? 5654 echo "$as_me:5654: \$? = $ac_status" >&5 5655 (exit $ac_status); }; }; then 5656 ac_cv_lib_svld_dlopen=yes 5657else 5658 echo "$as_me: failed program was:" >&5 5659cat conftest.$ac_ext >&5 5660ac_cv_lib_svld_dlopen=no 5661fi 5662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5663LIBS=$ac_check_lib_save_LIBS 5664fi 5665echo "$as_me:5665: result: $ac_cv_lib_svld_dlopen" >&5 5666echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 5667if test $ac_cv_lib_svld_dlopen = yes; then 5668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 5669else 5670 echo "$as_me:5670: checking for dld_link in -ldld" >&5 5671echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 5672if test "${ac_cv_lib_dld_dld_link+set}" = set; then 5673 echo $ECHO_N "(cached) $ECHO_C" >&6 5674else 5675 ac_check_lib_save_LIBS=$LIBS 5676LIBS="-ldld $LIBS" 5677cat >conftest.$ac_ext <<_ACEOF 5678#line 5678 "configure" 5679#include "confdefs.h" 5680 5681/* Override any gcc2 internal prototype to avoid an error. */ 5682#ifdef __cplusplus 5683extern "C" 5684#endif 5685/* We use char because int might match the return type of a gcc2 5686 builtin and then its argument prototype would still apply. */ 5687char dld_link (); 5688int 5689main () 5690{ 5691dld_link (); 5692 ; 5693 return 0; 5694} 5695_ACEOF 5696rm -f conftest.$ac_objext conftest$ac_exeext 5697if { (eval echo "$as_me:5697: \"$ac_link\"") >&5 5698 (eval $ac_link) 2>&5 5699 ac_status=$? 5700 echo "$as_me:5700: \$? = $ac_status" >&5 5701 (exit $ac_status); } && 5702 { ac_try='test -s conftest$ac_exeext' 5703 { (eval echo "$as_me:5703: \"$ac_try\"") >&5 5704 (eval $ac_try) 2>&5 5705 ac_status=$? 5706 echo "$as_me:5706: \$? = $ac_status" >&5 5707 (exit $ac_status); }; }; then 5708 ac_cv_lib_dld_dld_link=yes 5709else 5710 echo "$as_me: failed program was:" >&5 5711cat conftest.$ac_ext >&5 5712ac_cv_lib_dld_dld_link=no 5713fi 5714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5715LIBS=$ac_check_lib_save_LIBS 5716fi 5717echo "$as_me:5717: result: $ac_cv_lib_dld_dld_link" >&5 5718echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 5719if test $ac_cv_lib_dld_dld_link = yes; then 5720 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 5721fi 5722 5723fi 5724 5725fi 5726 5727fi 5728 5729fi 5730 5731fi 5732 5733 ;; 5734 esac 5735 5736 if test "x$lt_cv_dlopen" != xno; then 5737 enable_dlopen=yes 5738 else 5739 enable_dlopen=no 5740 fi 5741 5742 case $lt_cv_dlopen in 5743 dlopen) 5744 save_CPPFLAGS="$CPPFLAGS" 5745 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 5746 5747 save_LDFLAGS="$LDFLAGS" 5748 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 5749 5750 save_LIBS="$LIBS" 5751 LIBS="$lt_cv_dlopen_libs $LIBS" 5752 5753 echo "$as_me:5753: checking whether a program can dlopen itself" >&5 5754echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 5755if test "${lt_cv_dlopen_self+set}" = set; then 5756 echo $ECHO_N "(cached) $ECHO_C" >&6 5757else 5758 if test "$cross_compiling" = yes; then : 5759 lt_cv_dlopen_self=cross 5760else 5761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 5762 lt_status=$lt_dlunknown 5763 cat > conftest.$ac_ext <<EOF 5764#line 5764 "configure" 5765#include "confdefs.h" 5766 5767#if HAVE_DLFCN_H 5768#include <dlfcn.h> 5769#endif 5770 5771#include <stdio.h> 5772 5773#ifdef RTLD_GLOBAL 5774# define LT_DLGLOBAL RTLD_GLOBAL 5775#else 5776# ifdef DL_GLOBAL 5777# define LT_DLGLOBAL DL_GLOBAL 5778# else 5779# define LT_DLGLOBAL 0 5780# endif 5781#endif 5782 5783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 5784 find out it does not work in some platform. */ 5785#ifndef LT_DLLAZY_OR_NOW 5786# ifdef RTLD_LAZY 5787# define LT_DLLAZY_OR_NOW RTLD_LAZY 5788# else 5789# ifdef DL_LAZY 5790# define LT_DLLAZY_OR_NOW DL_LAZY 5791# else 5792# ifdef RTLD_NOW 5793# define LT_DLLAZY_OR_NOW RTLD_NOW 5794# else 5795# ifdef DL_NOW 5796# define LT_DLLAZY_OR_NOW DL_NOW 5797# else 5798# define LT_DLLAZY_OR_NOW 0 5799# endif 5800# endif 5801# endif 5802# endif 5803#endif 5804 5805#ifdef __cplusplus 5806extern "C" void exit (int); 5807#endif 5808 5809void fnord() { int i=42;} 5810int main () 5811{ 5812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 5813 int status = $lt_dlunknown; 5814 5815 if (self) 5816 { 5817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 5818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 5819 /* dlclose (self); */ 5820 } 5821 5822 exit (status); 5823} 5824EOF 5825 if { (eval echo "$as_me:5825: \"$ac_link\"") >&5 5826 (eval $ac_link) 2>&5 5827 ac_status=$? 5828 echo "$as_me:5828: \$? = $ac_status" >&5 5829 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 5830 (./conftest; exit; ) 2>/dev/null 5831 lt_status=$? 5832 case x$lt_status in 5833 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 5834 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 5835 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 5836 esac 5837 else : 5838 # compilation failed 5839 lt_cv_dlopen_self=no 5840 fi 5841fi 5842rm -fr conftest* 5843 5844fi 5845echo "$as_me:5845: result: $lt_cv_dlopen_self" >&5 5846echo "${ECHO_T}$lt_cv_dlopen_self" >&6 5847 5848 if test "x$lt_cv_dlopen_self" = xyes; then 5849 LDFLAGS="$LDFLAGS $link_static_flag" 5850 echo "$as_me:5850: checking whether a statically linked program can dlopen itself" >&5 5851echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 5852if test "${lt_cv_dlopen_self_static+set}" = set; then 5853 echo $ECHO_N "(cached) $ECHO_C" >&6 5854else 5855 if test "$cross_compiling" = yes; then : 5856 lt_cv_dlopen_self_static=cross 5857else 5858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 5859 lt_status=$lt_dlunknown 5860 cat > conftest.$ac_ext <<EOF 5861#line 5861 "configure" 5862#include "confdefs.h" 5863 5864#if HAVE_DLFCN_H 5865#include <dlfcn.h> 5866#endif 5867 5868#include <stdio.h> 5869 5870#ifdef RTLD_GLOBAL 5871# define LT_DLGLOBAL RTLD_GLOBAL 5872#else 5873# ifdef DL_GLOBAL 5874# define LT_DLGLOBAL DL_GLOBAL 5875# else 5876# define LT_DLGLOBAL 0 5877# endif 5878#endif 5879 5880/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 5881 find out it does not work in some platform. */ 5882#ifndef LT_DLLAZY_OR_NOW 5883# ifdef RTLD_LAZY 5884# define LT_DLLAZY_OR_NOW RTLD_LAZY 5885# else 5886# ifdef DL_LAZY 5887# define LT_DLLAZY_OR_NOW DL_LAZY 5888# else 5889# ifdef RTLD_NOW 5890# define LT_DLLAZY_OR_NOW RTLD_NOW 5891# else 5892# ifdef DL_NOW 5893# define LT_DLLAZY_OR_NOW DL_NOW 5894# else 5895# define LT_DLLAZY_OR_NOW 0 5896# endif 5897# endif 5898# endif 5899# endif 5900#endif 5901 5902#ifdef __cplusplus 5903extern "C" void exit (int); 5904#endif 5905 5906void fnord() { int i=42;} 5907int main () 5908{ 5909 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 5910 int status = $lt_dlunknown; 5911 5912 if (self) 5913 { 5914 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 5915 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 5916 /* dlclose (self); */ 5917 } 5918 5919 exit (status); 5920} 5921EOF 5922 if { (eval echo "$as_me:5922: \"$ac_link\"") >&5 5923 (eval $ac_link) 2>&5 5924 ac_status=$? 5925 echo "$as_me:5925: \$? = $ac_status" >&5 5926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 5927 (./conftest; exit; ) 2>/dev/null 5928 lt_status=$? 5929 case x$lt_status in 5930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 5931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 5932 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 5933 esac 5934 else : 5935 # compilation failed 5936 lt_cv_dlopen_self_static=no 5937 fi 5938fi 5939rm -fr conftest* 5940 5941fi 5942echo "$as_me:5942: result: $lt_cv_dlopen_self_static" >&5 5943echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 5944 fi 5945 5946 CPPFLAGS="$save_CPPFLAGS" 5947 LDFLAGS="$save_LDFLAGS" 5948 LIBS="$save_LIBS" 5949 ;; 5950 esac 5951 5952 case $lt_cv_dlopen_self in 5953 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 5954 *) enable_dlopen_self=unknown ;; 5955 esac 5956 5957 case $lt_cv_dlopen_self_static in 5958 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 5959 *) enable_dlopen_self_static=unknown ;; 5960 esac 5961fi 5962 5963if test "$enable_shared" = yes && test "$GCC" = yes; then 5964 case $archive_cmds in 5965 *'~'*) 5966 # FIXME: we may have to deal with multi-command sequences. 5967 ;; 5968 '$CC '*) 5969 # Test whether the compiler implicitly links with -lc since on some 5970 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5971 # to ld, don't add -lc before -lgcc. 5972 echo "$as_me:5972: checking whether -lc should be explicitly linked in" >&5 5973echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 5974 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976else 5977 $rm conftest* 5978 echo 'static int dummy;' > conftest.$ac_ext 5979 5980 if { (eval echo "$as_me:5980: \"$ac_compile\"") >&5 5981 (eval $ac_compile) 2>&5 5982 ac_status=$? 5983 echo "$as_me:5983: \$? = $ac_status" >&5 5984 (exit $ac_status); }; then 5985 soname=conftest 5986 lib=conftest 5987 libobjs=conftest.$ac_objext 5988 deplibs= 5989 wl=$lt_cv_prog_cc_wl 5990 compiler_flags=-v 5991 linker_flags=-v 5992 verstring= 5993 output_objdir=. 5994 libname=conftest 5995 save_allow_undefined_flag=$allow_undefined_flag 5996 allow_undefined_flag= 5997 if { (eval echo "$as_me:5997: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 5998 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 5999 ac_status=$? 6000 echo "$as_me:6000: \$? = $ac_status" >&5 6001 (exit $ac_status); } 6002 then 6003 lt_cv_archive_cmds_need_lc=no 6004 else 6005 lt_cv_archive_cmds_need_lc=yes 6006 fi 6007 allow_undefined_flag=$save_allow_undefined_flag 6008 else 6009 cat conftest.err 1>&5 6010 fi 6011fi 6012 6013 echo "$as_me:6013: result: $lt_cv_archive_cmds_need_lc" >&5 6014echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 6015 ;; 6016 esac 6017fi 6018need_lc=${lt_cv_archive_cmds_need_lc-yes} 6019 6020# The second clause should only fire when bootstrapping the 6021# libtool distribution, otherwise you forgot to ship ltmain.sh 6022# with your package, and you will get complaints that there are 6023# no rules to generate ltmain.sh. 6024if test -f "$ltmain"; then 6025 : 6026else 6027 # If there is no Makefile yet, we rely on a make rule to execute 6028 # `config.status --recheck' to rerun these tests and create the 6029 # libtool script then. 6030 test -f Makefile && make "$ltmain" 6031fi 6032 6033if test -f "$ltmain"; then 6034 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 6035 $rm -f "${ofile}T" 6036 6037 echo creating $ofile 6038 6039 # Now quote all the things that may contain metacharacters while being 6040 # careful not to overquote the AC_SUBSTed values. We take copies of the 6041 # variables and quote the copies for generation of the libtool script. 6042 for var in echo old_CC old_CFLAGS \ 6043 AR AR_FLAGS AS CC LD LN_S NM SHELL \ 6044 reload_flag reload_cmds wl \ 6045 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 6046 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 6047 library_names_spec soname_spec \ 6048 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 6049 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 6050 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 6051 old_striplib striplib file_magic_cmd export_symbols_cmds \ 6052 deplibs_check_method allow_undefined_flag no_undefined_flag \ 6053 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 6054 global_symbol_to_c_name_address \ 6055 hardcode_libdir_flag_spec hardcode_libdir_separator \ 6056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 6057 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 6058 6059 case $var in 6060 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 6061 old_postinstall_cmds | old_postuninstall_cmds | \ 6062 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 6063 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 6064 postinstall_cmds | postuninstall_cmds | \ 6065 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 6066 # Double-quote double-evaled strings. 6067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 6068 ;; 6069 *) 6070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 6071 ;; 6072 esac 6073 done 6074 6075 cat <<__EOF__ > "${ofile}T" 6076#! $SHELL 6077 6078# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 6079# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 6080# NOTE: Changes made to this file will be lost: look at ltmain.sh. 6081# 6082# Copyright (C) 1996-2000 Free Software Foundation, Inc. 6083# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6084# 6085# This program is free software; you can redistribute it and/or modify 6086# it under the terms of the GNU General Public License as published by 6087# the Free Software Foundation; either version 2 of the License, or 6088# (at your option) any later version. 6089# 6090# This program is distributed in the hope that it will be useful, but 6091# WITHOUT ANY WARRANTY; without even the implied warranty of 6092# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 6093# General Public License for more details. 6094# 6095# You should have received a copy of the GNU General Public License 6096# along with this program; if not, write to the Free Software 6097# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 6098# 6099# As a special exception to the GNU General Public License, if you 6100# distribute this file as part of a program that contains a 6101# configuration script generated by Autoconf, you may include it under 6102# the same distribution terms that you use for the rest of that program. 6103 6104# Sed that helps us avoid accidentally triggering echo(1) options like -n. 6105Xsed="sed -e s/^X//" 6106 6107# The HP-UX ksh and POSIX shell print the target directory to stdout 6108# if CDPATH is set. 6109if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 6110 6111# ### BEGIN LIBTOOL CONFIG 6112 6113# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 6114 6115# Shell to use when invoking shell scripts. 6116SHELL=$lt_SHELL 6117 6118# Whether or not to build shared libraries. 6119build_libtool_libs=$enable_shared 6120 6121# Whether or not to build static libraries. 6122build_old_libs=$enable_static 6123 6124# Whether or not to add -lc for building shared libraries. 6125build_libtool_need_lc=$need_lc 6126 6127# Whether or not to optimize for fast installation. 6128fast_install=$enable_fast_install 6129 6130# The host system. 6131host_alias=$host_alias 6132host=$host 6133 6134# An echo program that does not interpret backslashes. 6135echo=$lt_echo 6136 6137# The archiver. 6138AR=$lt_AR 6139AR_FLAGS=$lt_AR_FLAGS 6140 6141# The default C compiler. 6142CC=$lt_CC 6143 6144# Is the compiler the GNU C compiler? 6145with_gcc=$GCC 6146 6147# The linker used to build libraries. 6148LD=$lt_LD 6149 6150# Whether we need hard or soft links. 6151LN_S=$lt_LN_S 6152 6153# A BSD-compatible nm program. 6154NM=$lt_NM 6155 6156# A symbol stripping program 6157STRIP=$STRIP 6158 6159# Used to examine libraries when file_magic_cmd begins "file" 6160MAGIC_CMD=$MAGIC_CMD 6161 6162# Used on cygwin: DLL creation program. 6163DLLTOOL="$DLLTOOL" 6164 6165# Used on cygwin: object dumper. 6166OBJDUMP="$OBJDUMP" 6167 6168# Used on cygwin: assembler. 6169AS=$lt_AS 6170 6171# The name of the directory that contains temporary libtool files. 6172objdir=$objdir 6173 6174# How to create reloadable object files. 6175reload_flag=$lt_reload_flag 6176reload_cmds=$lt_reload_cmds 6177 6178# How to pass a linker flag through the compiler. 6179wl=$lt_wl 6180 6181# Object file suffix (normally "o"). 6182objext="$ac_objext" 6183 6184# Old archive suffix (normally "a"). 6185libext="$libext" 6186 6187# Executable file suffix (normally ""). 6188exeext="$exeext" 6189 6190# Additional compiler flags for building library objects. 6191pic_flag=$lt_pic_flag 6192pic_mode=$pic_mode 6193 6194# Does compiler simultaneously support -c and -o options? 6195compiler_c_o=$lt_compiler_c_o 6196 6197# Can we write directly to a .lo ? 6198compiler_o_lo=$lt_compiler_o_lo 6199 6200# Must we lock files when doing compilation ? 6201need_locks=$lt_need_locks 6202 6203# Do we need the lib prefix for modules? 6204need_lib_prefix=$need_lib_prefix 6205 6206# Do we need a version for libraries? 6207need_version=$need_version 6208 6209# Whether dlopen is supported. 6210dlopen_support=$enable_dlopen 6211 6212# Whether dlopen of programs is supported. 6213dlopen_self=$enable_dlopen_self 6214 6215# Whether dlopen of statically linked programs is supported. 6216dlopen_self_static=$enable_dlopen_self_static 6217 6218# Compiler flag to prevent dynamic linking. 6219link_static_flag=$lt_link_static_flag 6220 6221# Compiler flag to turn off builtin functions. 6222no_builtin_flag=$lt_no_builtin_flag 6223 6224# Compiler flag to allow reflexive dlopens. 6225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 6226 6227# Compiler flag to generate shared objects directly from archives. 6228whole_archive_flag_spec=$lt_whole_archive_flag_spec 6229 6230# Compiler flag to generate thread-safe objects. 6231thread_safe_flag_spec=$lt_thread_safe_flag_spec 6232 6233# Library versioning type. 6234version_type=$version_type 6235 6236# Format of library name prefix. 6237libname_spec=$lt_libname_spec 6238 6239# List of archive names. First name is the real one, the rest are links. 6240# The last name is the one that the linker finds with -lNAME. 6241library_names_spec=$lt_library_names_spec 6242 6243# The coded name of the library, if different from the real name. 6244soname_spec=$lt_soname_spec 6245 6246# Commands used to build and install an old-style archive. 6247RANLIB=$lt_RANLIB 6248old_archive_cmds=$lt_old_archive_cmds 6249old_postinstall_cmds=$lt_old_postinstall_cmds 6250old_postuninstall_cmds=$lt_old_postuninstall_cmds 6251 6252# Create an old-style archive from a shared archive. 6253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 6254 6255# Create a temporary old-style archive to link instead of a shared archive. 6256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 6257 6258# Commands used to build and install a shared archive. 6259archive_cmds=$lt_archive_cmds 6260archive_expsym_cmds=$lt_archive_expsym_cmds 6261postinstall_cmds=$lt_postinstall_cmds 6262postuninstall_cmds=$lt_postuninstall_cmds 6263 6264# Commands to strip libraries. 6265old_striplib=$lt_old_striplib 6266striplib=$lt_striplib 6267 6268# Method to check whether dependent libraries are shared objects. 6269deplibs_check_method=$lt_deplibs_check_method 6270 6271# Command to use when deplibs_check_method == file_magic. 6272file_magic_cmd=$lt_file_magic_cmd 6273 6274# Flag that allows shared libraries with undefined symbols to be built. 6275allow_undefined_flag=$lt_allow_undefined_flag 6276 6277# Flag that forces no undefined symbols. 6278no_undefined_flag=$lt_no_undefined_flag 6279 6280# Commands used to finish a libtool library installation in a directory. 6281finish_cmds=$lt_finish_cmds 6282 6283# Same as above, but a single script fragment to be evaled but not shown. 6284finish_eval=$lt_finish_eval 6285 6286# Take the output of nm and produce a listing of raw symbols and C names. 6287global_symbol_pipe=$lt_global_symbol_pipe 6288 6289# Transform the output of nm in a proper C declaration 6290global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 6291 6292# Transform the output of nm in a C name address pair 6293global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 6294 6295# This is the shared library runtime path variable. 6296runpath_var=$runpath_var 6297 6298# This is the shared library path variable. 6299shlibpath_var=$shlibpath_var 6300 6301# Is shlibpath searched before the hard-coded library search path? 6302shlibpath_overrides_runpath=$shlibpath_overrides_runpath 6303 6304# How to hardcode a shared library path into an executable. 6305hardcode_action=$hardcode_action 6306 6307# Whether we should hardcode library paths into libraries. 6308hardcode_into_libs=$hardcode_into_libs 6309 6310# Flag to hardcode \$libdir into a binary during linking. 6311# This must work even if \$libdir does not exist. 6312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 6313 6314# Whether we need a single -rpath flag with a separated argument. 6315hardcode_libdir_separator=$lt_hardcode_libdir_separator 6316 6317# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 6318# resulting binary. 6319hardcode_direct=$hardcode_direct 6320 6321# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 6322# resulting binary. 6323hardcode_minus_L=$hardcode_minus_L 6324 6325# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 6326# the resulting binary. 6327hardcode_shlibpath_var=$hardcode_shlibpath_var 6328 6329# Variables whose values should be saved in libtool wrapper scripts and 6330# restored at relink time. 6331variables_saved_for_relink="$variables_saved_for_relink" 6332 6333# Whether libtool must link a program against all its dependency libraries. 6334link_all_deplibs=$link_all_deplibs 6335 6336# Compile-time system search path for libraries 6337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 6338 6339# Run-time system search path for libraries 6340sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 6341 6342# Fix the shell variable \$srcfile for the compiler. 6343fix_srcfile_path="$fix_srcfile_path" 6344 6345# Set to yes if exported symbols are required. 6346always_export_symbols=$always_export_symbols 6347 6348# The commands to list exported symbols. 6349export_symbols_cmds=$lt_export_symbols_cmds 6350 6351# The commands to extract the exported symbol list from a shared archive. 6352extract_expsyms_cmds=$lt_extract_expsyms_cmds 6353 6354# Symbols that should not be listed in the preloaded symbols. 6355exclude_expsyms=$lt_exclude_expsyms 6356 6357# Symbols that must always be exported. 6358include_expsyms=$lt_include_expsyms 6359 6360# ### END LIBTOOL CONFIG 6361 6362__EOF__ 6363 6364 case $host_os in 6365 aix3*) 6366 cat <<\EOF >> "${ofile}T" 6367 6368# AIX sometimes has problems with the GCC collect2 program. For some 6369# reason, if we set the COLLECT_NAMES environment variable, the problems 6370# vanish in a puff of smoke. 6371if test "X${COLLECT_NAMES+set}" != Xset; then 6372 COLLECT_NAMES= 6373 export COLLECT_NAMES 6374fi 6375EOF 6376 ;; 6377 esac 6378 6379 case $host_os in 6380 cygwin* | mingw* | pw32* | os2*) 6381 cat <<'EOF' >> "${ofile}T" 6382 # This is a source program that is used to create dlls on Windows 6383 # Don't remove nor modify the starting and closing comments 6384# /* ltdll.c starts here */ 6385# #define WIN32_LEAN_AND_MEAN 6386# #include <windows.h> 6387# #undef WIN32_LEAN_AND_MEAN 6388# #include <stdio.h> 6389# 6390# #ifndef __CYGWIN__ 6391# # ifdef __CYGWIN32__ 6392# # define __CYGWIN__ __CYGWIN32__ 6393# # endif 6394# #endif 6395# 6396# #ifdef __cplusplus 6397# extern "C" { 6398# #endif 6399# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 6400# #ifdef __cplusplus 6401# } 6402# #endif 6403# 6404# #ifdef __CYGWIN__ 6405# #include <cygwin/cygwin_dll.h> 6406# DECLARE_CYGWIN_DLL( DllMain ); 6407# #endif 6408# HINSTANCE __hDllInstance_base; 6409# 6410# BOOL APIENTRY 6411# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 6412# { 6413# __hDllInstance_base = hInst; 6414# return TRUE; 6415# } 6416# /* ltdll.c ends here */ 6417 # This is a source program that is used to create import libraries 6418 # on Windows for dlls which lack them. Don't remove nor modify the 6419 # starting and closing comments 6420# /* impgen.c starts here */ 6421# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 6422# 6423# This file is part of GNU libtool. 6424# 6425# This program is free software; you can redistribute it and/or modify 6426# it under the terms of the GNU General Public License as published by 6427# the Free Software Foundation; either version 2 of the License, or 6428# (at your option) any later version. 6429# 6430# This program is distributed in the hope that it will be useful, 6431# but WITHOUT ANY WARRANTY; without even the implied warranty of 6432# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6433# GNU General Public License for more details. 6434# 6435# You should have received a copy of the GNU General Public License 6436# along with this program; if not, write to the Free Software 6437# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 6438# */ 6439# 6440# #include <stdio.h> /* for printf() */ 6441# #include <unistd.h> /* for open(), lseek(), read() */ 6442# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 6443# #include <string.h> /* for strdup() */ 6444# 6445# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 6446# #ifndef O_BINARY 6447# #define O_BINARY 0 6448# #endif 6449# 6450# static unsigned int 6451# pe_get16 (fd, offset) 6452# int fd; 6453# int offset; 6454# { 6455# unsigned char b[2]; 6456# lseek (fd, offset, SEEK_SET); 6457# read (fd, b, 2); 6458# return b[0] + (b[1]<<8); 6459# } 6460# 6461# static unsigned int 6462# pe_get32 (fd, offset) 6463# int fd; 6464# int offset; 6465# { 6466# unsigned char b[4]; 6467# lseek (fd, offset, SEEK_SET); 6468# read (fd, b, 4); 6469# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 6470# } 6471# 6472# static unsigned int 6473# pe_as32 (ptr) 6474# void *ptr; 6475# { 6476# unsigned char *b = ptr; 6477# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 6478# } 6479# 6480# int 6481# main (argc, argv) 6482# int argc; 6483# char *argv[]; 6484# { 6485# int dll; 6486# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 6487# unsigned long export_rva, export_size, nsections, secptr, expptr; 6488# unsigned long name_rvas, nexp; 6489# unsigned char *expdata, *erva; 6490# char *filename, *dll_name; 6491# 6492# filename = argv[1]; 6493# 6494# dll = open(filename, O_RDONLY|O_BINARY); 6495# if (dll < 1) 6496# return 1; 6497# 6498# dll_name = filename; 6499# 6500# for (i=0; filename[i]; i++) 6501# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 6502# dll_name = filename + i +1; 6503# 6504# pe_header_offset = pe_get32 (dll, 0x3c); 6505# opthdr_ofs = pe_header_offset + 4 + 20; 6506# num_entries = pe_get32 (dll, opthdr_ofs + 92); 6507# 6508# if (num_entries < 1) /* no exports */ 6509# return 1; 6510# 6511# export_rva = pe_get32 (dll, opthdr_ofs + 96); 6512# export_size = pe_get32 (dll, opthdr_ofs + 100); 6513# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 6514# secptr = (pe_header_offset + 4 + 20 + 6515# pe_get16 (dll, pe_header_offset + 4 + 16)); 6516# 6517# expptr = 0; 6518# for (i = 0; i < nsections; i++) 6519# { 6520# char sname[8]; 6521# unsigned long secptr1 = secptr + 40 * i; 6522# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 6523# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 6524# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 6525# lseek(dll, secptr1, SEEK_SET); 6526# read(dll, sname, 8); 6527# if (vaddr <= export_rva && vaddr+vsize > export_rva) 6528# { 6529# expptr = fptr + (export_rva - vaddr); 6530# if (export_rva + export_size > vaddr + vsize) 6531# export_size = vsize - (export_rva - vaddr); 6532# break; 6533# } 6534# } 6535# 6536# expdata = (unsigned char*)malloc(export_size); 6537# lseek (dll, expptr, SEEK_SET); 6538# read (dll, expdata, export_size); 6539# erva = expdata - export_rva; 6540# 6541# nexp = pe_as32 (expdata+24); 6542# name_rvas = pe_as32 (expdata+32); 6543# 6544# printf ("EXPORTS\n"); 6545# for (i = 0; i<nexp; i++) 6546# { 6547# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 6548# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 6549# } 6550# 6551# return 0; 6552# } 6553# /* impgen.c ends here */ 6554 6555EOF 6556 ;; 6557 esac 6558 6559 # We use sed instead of cat because bash on DJGPP gets confused if 6560 # if finds mixed CR/LF and LF-only lines. Since sed operates in 6561 # text mode, it properly converts lines to CR/LF. This bash problem 6562 # is reportedly fixed, but why not run on old versions too? 6563 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 6564 6565 mv -f "${ofile}T" "$ofile" || \ 6566 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 6567 chmod +x "$ofile" 6568fi 6569 6570# This can be used to rebuild libtool when needed 6571LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 6572 6573# Always use our own libtool. 6574LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6575 6576# Prevent multiple expansion 6577 6578# Checks for libraries. 6579# FIXME: Replace `main' with a function in `-lmm': 6580 6581echo "$as_me:6581: checking for main in -lmm" >&5 6582echo $ECHO_N "checking for main in -lmm... $ECHO_C" >&6 6583if test "${ac_cv_lib_mm_main+set}" = set; then 6584 echo $ECHO_N "(cached) $ECHO_C" >&6 6585else 6586 ac_check_lib_save_LIBS=$LIBS 6587LIBS="-lmm $LIBS" 6588cat >conftest.$ac_ext <<_ACEOF 6589#line 6589 "configure" 6590#include "confdefs.h" 6591 6592int 6593main () 6594{ 6595main (); 6596 ; 6597 return 0; 6598} 6599_ACEOF 6600rm -f conftest.$ac_objext conftest$ac_exeext 6601if { (eval echo "$as_me:6601: \"$ac_link\"") >&5 6602 (eval $ac_link) 2>&5 6603 ac_status=$? 6604 echo "$as_me:6604: \$? = $ac_status" >&5 6605 (exit $ac_status); } && 6606 { ac_try='test -s conftest$ac_exeext' 6607 { (eval echo "$as_me:6607: \"$ac_try\"") >&5 6608 (eval $ac_try) 2>&5 6609 ac_status=$? 6610 echo "$as_me:6610: \$? = $ac_status" >&5 6611 (exit $ac_status); }; }; then 6612 ac_cv_lib_mm_main=yes 6613else 6614 echo "$as_me: failed program was:" >&5 6615cat conftest.$ac_ext >&5 6616ac_cv_lib_mm_main=no 6617fi 6618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6619LIBS=$ac_check_lib_save_LIBS 6620fi 6621echo "$as_me:6621: result: $ac_cv_lib_mm_main" >&5 6622echo "${ECHO_T}$ac_cv_lib_mm_main" >&6 6623if test $ac_cv_lib_mm_main = yes; then 6624 cat >>confdefs.h <<EOF 6625#define HAVE_LIBMM 1 6626EOF 6627 6628 LIBS="-lmm $LIBS" 6629 6630fi 6631 6632# Checks for header files. 6633echo "$as_me:6633: checking for ANSI C header files" >&5 6634echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6635if test "${ac_cv_header_stdc+set}" = set; then 6636 echo $ECHO_N "(cached) $ECHO_C" >&6 6637else 6638 cat >conftest.$ac_ext <<_ACEOF 6639#line 6639 "configure" 6640#include "confdefs.h" 6641#include <stdlib.h> 6642#include <stdarg.h> 6643#include <string.h> 6644#include <float.h> 6645 6646_ACEOF 6647if { (eval echo "$as_me:6647: \"$ac_cpp conftest.$ac_ext\"") >&5 6648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6649 ac_status=$? 6650 egrep -v '^ *\+' conftest.er1 >conftest.err 6651 rm -f conftest.er1 6652 cat conftest.err >&5 6653 echo "$as_me:6653: \$? = $ac_status" >&5 6654 (exit $ac_status); } >/dev/null; then 6655 if test -s conftest.err; then 6656 ac_cpp_err=$ac_c_preproc_warn_flag 6657 else 6658 ac_cpp_err= 6659 fi 6660else 6661 ac_cpp_err=yes 6662fi 6663if test -z "$ac_cpp_err"; then 6664 ac_cv_header_stdc=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667 cat conftest.$ac_ext >&5 6668 ac_cv_header_stdc=no 6669fi 6670rm -f conftest.err conftest.$ac_ext 6671 6672if test $ac_cv_header_stdc = yes; then 6673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6674 cat >conftest.$ac_ext <<_ACEOF 6675#line 6675 "configure" 6676#include "confdefs.h" 6677#include <string.h> 6678 6679_ACEOF 6680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6681 egrep "memchr" >/dev/null 2>&1; then 6682 : 6683else 6684 ac_cv_header_stdc=no 6685fi 6686rm -f conftest* 6687 6688fi 6689 6690if test $ac_cv_header_stdc = yes; then 6691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6692 cat >conftest.$ac_ext <<_ACEOF 6693#line 6693 "configure" 6694#include "confdefs.h" 6695#include <stdlib.h> 6696 6697_ACEOF 6698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6699 egrep "free" >/dev/null 2>&1; then 6700 : 6701else 6702 ac_cv_header_stdc=no 6703fi 6704rm -f conftest* 6705 6706fi 6707 6708if test $ac_cv_header_stdc = yes; then 6709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6710 if test "$cross_compiling" = yes; then 6711 : 6712else 6713 cat >conftest.$ac_ext <<_ACEOF 6714#line 6714 "configure" 6715#include "confdefs.h" 6716#include <ctype.h> 6717#if ((' ' & 0x0FF) == 0x020) 6718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6720#else 6721# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 6722 || ('j' <= (c) && (c) <= 'r') \ 6723 || ('s' <= (c) && (c) <= 'z')) 6724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6725#endif 6726 6727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6728int 6729main () 6730{ 6731 int i; 6732 for (i = 0; i < 256; i++) 6733 if (XOR (islower (i), ISLOWER (i)) 6734 || toupper (i) != TOUPPER (i)) 6735 exit(2); 6736 exit (0); 6737} 6738_ACEOF 6739rm -f conftest$ac_exeext 6740if { (eval echo "$as_me:6740: \"$ac_link\"") >&5 6741 (eval $ac_link) 2>&5 6742 ac_status=$? 6743 echo "$as_me:6743: \$? = $ac_status" >&5 6744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6745 { (eval echo "$as_me:6745: \"$ac_try\"") >&5 6746 (eval $ac_try) 2>&5 6747 ac_status=$? 6748 echo "$as_me:6748: \$? = $ac_status" >&5 6749 (exit $ac_status); }; }; then 6750 : 6751else 6752 echo "$as_me: program exited with status $ac_status" >&5 6753echo "$as_me: failed program was:" >&5 6754cat conftest.$ac_ext >&5 6755ac_cv_header_stdc=no 6756fi 6757rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6758fi 6759fi 6760fi 6761echo "$as_me:6761: result: $ac_cv_header_stdc" >&5 6762echo "${ECHO_T}$ac_cv_header_stdc" >&6 6763if test $ac_cv_header_stdc = yes; then 6764 6765cat >>confdefs.h <<\EOF 6766#define STDC_HEADERS 1 6767EOF 6768 6769fi 6770 6771for ac_header in stdlib.h 6772do 6773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6774echo "$as_me:6774: checking for $ac_header" >&5 6775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6776if eval "test \"\${$as_ac_Header+set}\" = set"; then 6777 echo $ECHO_N "(cached) $ECHO_C" >&6 6778else 6779 cat >conftest.$ac_ext <<_ACEOF 6780#line 6780 "configure" 6781#include "confdefs.h" 6782#include <$ac_header> 6783_ACEOF 6784if { (eval echo "$as_me:6784: \"$ac_cpp conftest.$ac_ext\"") >&5 6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6786 ac_status=$? 6787 egrep -v '^ *\+' conftest.er1 >conftest.err 6788 rm -f conftest.er1 6789 cat conftest.err >&5 6790 echo "$as_me:6790: \$? = $ac_status" >&5 6791 (exit $ac_status); } >/dev/null; then 6792 if test -s conftest.err; then 6793 ac_cpp_err=$ac_c_preproc_warn_flag 6794 else 6795 ac_cpp_err= 6796 fi 6797else 6798 ac_cpp_err=yes 6799fi 6800if test -z "$ac_cpp_err"; then 6801 eval "$as_ac_Header=yes" 6802else 6803 echo "$as_me: failed program was:" >&5 6804 cat conftest.$ac_ext >&5 6805 eval "$as_ac_Header=no" 6806fi 6807rm -f conftest.err conftest.$ac_ext 6808fi 6809echo "$as_me:6809: result: `eval echo '${'$as_ac_Header'}'`" >&5 6810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6811if test `eval echo '${'$as_ac_Header'}'` = yes; then 6812 cat >>confdefs.h <<EOF 6813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6814EOF 6815 6816fi 6817done 6818 6819# Checks for typedefs, structures, and compiler characteristics. 6820echo "$as_me:6820: checking for $CC option to accept ANSI C" >&5 6821echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 6822if test "${ac_cv_prog_cc_stdc+set}" = set; then 6823 echo $ECHO_N "(cached) $ECHO_C" >&6 6824else 6825 ac_cv_prog_cc_stdc=no 6826ac_save_CC=$CC 6827cat >conftest.$ac_ext <<_ACEOF 6828#line 6828 "configure" 6829#include "confdefs.h" 6830#include <stdarg.h> 6831#include <stdio.h> 6832#include <sys/types.h> 6833#include <sys/stat.h> 6834/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6835struct buf { int x; }; 6836FILE * (*rcsopen) (struct buf *, struct stat *, int); 6837static char *e (p, i) 6838 char **p; 6839 int i; 6840{ 6841 return p[i]; 6842} 6843static char *f (char * (*g) (char **, int), char **p, ...) 6844{ 6845 char *s; 6846 va_list v; 6847 va_start (v,p); 6848 s = g (p, va_arg (v,int)); 6849 va_end (v); 6850 return s; 6851} 6852int test (int i, double x); 6853struct s1 {int (*f) (int a);}; 6854struct s2 {int (*f) (double a);}; 6855int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6856int argc; 6857char **argv; 6858int 6859main () 6860{ 6861return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6862 ; 6863 return 0; 6864} 6865_ACEOF 6866# Don't try gcc -ansi; that turns off useful extensions and 6867# breaks some systems' header files. 6868# AIX -qlanglvl=ansi 6869# Ultrix and OSF/1 -std1 6870# HP-UX 10.20 and later -Ae 6871# HP-UX older versions -Aa -D_HPUX_SOURCE 6872# SVR4 -Xc -D__EXTENSIONS__ 6873for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6874do 6875 CC="$ac_save_CC $ac_arg" 6876 rm -f conftest.$ac_objext 6877if { (eval echo "$as_me:6877: \"$ac_compile\"") >&5 6878 (eval $ac_compile) 2>&5 6879 ac_status=$? 6880 echo "$as_me:6880: \$? = $ac_status" >&5 6881 (exit $ac_status); } && 6882 { ac_try='test -s conftest.$ac_objext' 6883 { (eval echo "$as_me:6883: \"$ac_try\"") >&5 6884 (eval $ac_try) 2>&5 6885 ac_status=$? 6886 echo "$as_me:6886: \$? = $ac_status" >&5 6887 (exit $ac_status); }; }; then 6888 ac_cv_prog_cc_stdc=$ac_arg 6889break 6890else 6891 echo "$as_me: failed program was:" >&5 6892cat conftest.$ac_ext >&5 6893fi 6894rm -f conftest.$ac_objext 6895done 6896rm -f conftest.$ac_ext conftest.$ac_objext 6897CC=$ac_save_CC 6898 6899fi 6900 6901case "x$ac_cv_prog_cc_stdc" in 6902 x|xno) 6903 echo "$as_me:6903: result: none needed" >&5 6904echo "${ECHO_T}none needed" >&6 ;; 6905 *) 6906 echo "$as_me:6906: result: $ac_cv_prog_cc_stdc" >&5 6907echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 6908 CC="$CC $ac_cv_prog_cc_stdc" ;; 6909esac 6910 6911echo "$as_me:6911: checking for an ANSI C-conforming const" >&5 6912echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 6913if test "${ac_cv_c_const+set}" = set; then 6914 echo $ECHO_N "(cached) $ECHO_C" >&6 6915else 6916 cat >conftest.$ac_ext <<_ACEOF 6917#line 6917 "configure" 6918#include "confdefs.h" 6919 6920int 6921main () 6922{ 6923/* FIXME: Include the comments suggested by Paul. */ 6924#ifndef __cplusplus 6925 /* Ultrix mips cc rejects this. */ 6926 typedef int charset[2]; 6927 const charset x; 6928 /* SunOS 4.1.1 cc rejects this. */ 6929 char const *const *ccp; 6930 char **p; 6931 /* NEC SVR4.0.2 mips cc rejects this. */ 6932 struct point {int x, y;}; 6933 static struct point const zero = {0,0}; 6934 /* AIX XL C 1.02.0.0 rejects this. 6935 It does not let you subtract one const X* pointer from another in 6936 an arm of an if-expression whose if-part is not a constant 6937 expression */ 6938 const char *g = "string"; 6939 ccp = &g + (g ? g-g : 0); 6940 /* HPUX 7.0 cc rejects these. */ 6941 ++ccp; 6942 p = (char**) ccp; 6943 ccp = (char const *const *) p; 6944 { /* SCO 3.2v4 cc rejects this. */ 6945 char *t; 6946 char const *s = 0 ? (char *) 0 : (char const *) 0; 6947 6948 *t++ = 0; 6949 } 6950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6951 int x[] = {25, 17}; 6952 const int *foo = &x[0]; 6953 ++foo; 6954 } 6955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6956 typedef const int *iptr; 6957 iptr p = 0; 6958 ++p; 6959 } 6960 { /* AIX XL C 1.02.0.0 rejects this saying 6961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6962 struct s { int j; const int *ap[3]; }; 6963 struct s *b; b->j = 5; 6964 } 6965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6966 const int foo = 10; 6967 } 6968#endif 6969 6970 ; 6971 return 0; 6972} 6973_ACEOF 6974rm -f conftest.$ac_objext 6975if { (eval echo "$as_me:6975: \"$ac_compile\"") >&5 6976 (eval $ac_compile) 2>&5 6977 ac_status=$? 6978 echo "$as_me:6978: \$? = $ac_status" >&5 6979 (exit $ac_status); } && 6980 { ac_try='test -s conftest.$ac_objext' 6981 { (eval echo "$as_me:6981: \"$ac_try\"") >&5 6982 (eval $ac_try) 2>&5 6983 ac_status=$? 6984 echo "$as_me:6984: \$? = $ac_status" >&5 6985 (exit $ac_status); }; }; then 6986 ac_cv_c_const=yes 6987else 6988 echo "$as_me: failed program was:" >&5 6989cat conftest.$ac_ext >&5 6990ac_cv_c_const=no 6991fi 6992rm -f conftest.$ac_objext conftest.$ac_ext 6993fi 6994echo "$as_me:6994: result: $ac_cv_c_const" >&5 6995echo "${ECHO_T}$ac_cv_c_const" >&6 6996if test $ac_cv_c_const = no; then 6997 6998cat >>confdefs.h <<\EOF 6999#define const 7000EOF 7001 7002fi 7003 7004# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7005 7006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7007 inttypes.h stdint.h unistd.h 7008do 7009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7010echo "$as_me:7010: checking for $ac_header" >&5 7011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7012if eval "test \"\${$as_ac_Header+set}\" = set"; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 cat >conftest.$ac_ext <<_ACEOF 7016#line 7016 "configure" 7017#include "confdefs.h" 7018$ac_includes_default 7019#include <$ac_header> 7020_ACEOF 7021rm -f conftest.$ac_objext 7022if { (eval echo "$as_me:7022: \"$ac_compile\"") >&5 7023 (eval $ac_compile) 2>&5 7024 ac_status=$? 7025 echo "$as_me:7025: \$? = $ac_status" >&5 7026 (exit $ac_status); } && 7027 { ac_try='test -s conftest.$ac_objext' 7028 { (eval echo "$as_me:7028: \"$ac_try\"") >&5 7029 (eval $ac_try) 2>&5 7030 ac_status=$? 7031 echo "$as_me:7031: \$? = $ac_status" >&5 7032 (exit $ac_status); }; }; then 7033 eval "$as_ac_Header=yes" 7034else 7035 echo "$as_me: failed program was:" >&5 7036cat conftest.$ac_ext >&5 7037eval "$as_ac_Header=no" 7038fi 7039rm -f conftest.$ac_objext conftest.$ac_ext 7040fi 7041echo "$as_me:7041: result: `eval echo '${'$as_ac_Header'}'`" >&5 7042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7043if test `eval echo '${'$as_ac_Header'}'` = yes; then 7044 cat >>confdefs.h <<EOF 7045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7046EOF 7047 7048fi 7049done 7050 7051echo "$as_me:7051: checking for size_t" >&5 7052echo $ECHO_N "checking for size_t... $ECHO_C" >&6 7053if test "${ac_cv_type_size_t+set}" = set; then 7054 echo $ECHO_N "(cached) $ECHO_C" >&6 7055else 7056 cat >conftest.$ac_ext <<_ACEOF 7057#line 7057 "configure" 7058#include "confdefs.h" 7059$ac_includes_default 7060int 7061main () 7062{ 7063if ((size_t *) 0) 7064 return 0; 7065if (sizeof (size_t)) 7066 return 0; 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071rm -f conftest.$ac_objext 7072if { (eval echo "$as_me:7072: \"$ac_compile\"") >&5 7073 (eval $ac_compile) 2>&5 7074 ac_status=$? 7075 echo "$as_me:7075: \$? = $ac_status" >&5 7076 (exit $ac_status); } && 7077 { ac_try='test -s conftest.$ac_objext' 7078 { (eval echo "$as_me:7078: \"$ac_try\"") >&5 7079 (eval $ac_try) 2>&5 7080 ac_status=$? 7081 echo "$as_me:7081: \$? = $ac_status" >&5 7082 (exit $ac_status); }; }; then 7083 ac_cv_type_size_t=yes 7084else 7085 echo "$as_me: failed program was:" >&5 7086cat conftest.$ac_ext >&5 7087ac_cv_type_size_t=no 7088fi 7089rm -f conftest.$ac_objext conftest.$ac_ext 7090fi 7091echo "$as_me:7091: result: $ac_cv_type_size_t" >&5 7092echo "${ECHO_T}$ac_cv_type_size_t" >&6 7093if test $ac_cv_type_size_t = yes; then 7094 : 7095else 7096 7097cat >>confdefs.h <<EOF 7098#define size_t unsigned 7099EOF 7100 7101fi 7102 7103# Checks for library functions. 7104 7105for ac_func in memset 7106do 7107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7108echo "$as_me:7108: checking for $ac_func" >&5 7109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7110if eval "test \"\${$as_ac_var+set}\" = set"; then 7111 echo $ECHO_N "(cached) $ECHO_C" >&6 7112else 7113 cat >conftest.$ac_ext <<_ACEOF 7114#line 7114 "configure" 7115#include "confdefs.h" 7116/* System header to define __stub macros and hopefully few prototypes, 7117 which can conflict with char $ac_func (); below. */ 7118#include <assert.h> 7119/* Override any gcc2 internal prototype to avoid an error. */ 7120#ifdef __cplusplus 7121extern "C" 7122#endif 7123/* We use char because int might match the return type of a gcc2 7124 builtin and then its argument prototype would still apply. */ 7125char $ac_func (); 7126char (*f) (); 7127 7128int 7129main () 7130{ 7131/* The GNU C library defines this for functions which it implements 7132 to always fail with ENOSYS. Some functions are actually named 7133 something starting with __ and the normal name is an alias. */ 7134#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7135choke me 7136#else 7137f = $ac_func; 7138#endif 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144rm -f conftest.$ac_objext conftest$ac_exeext 7145if { (eval echo "$as_me:7145: \"$ac_link\"") >&5 7146 (eval $ac_link) 2>&5 7147 ac_status=$? 7148 echo "$as_me:7148: \$? = $ac_status" >&5 7149 (exit $ac_status); } && 7150 { ac_try='test -s conftest$ac_exeext' 7151 { (eval echo "$as_me:7151: \"$ac_try\"") >&5 7152 (eval $ac_try) 2>&5 7153 ac_status=$? 7154 echo "$as_me:7154: \$? = $ac_status" >&5 7155 (exit $ac_status); }; }; then 7156 eval "$as_ac_var=yes" 7157else 7158 echo "$as_me: failed program was:" >&5 7159cat conftest.$ac_ext >&5 7160eval "$as_ac_var=no" 7161fi 7162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7163fi 7164echo "$as_me:7164: result: `eval echo '${'$as_ac_var'}'`" >&5 7165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7166if test `eval echo '${'$as_ac_var'}'` = yes; then 7167 cat >>confdefs.h <<EOF 7168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7169EOF 7170 7171fi 7172done 7173 7174ac_config_files="$ac_config_files Makefile shmap/Makefile" 7175 7176# configure libmm as well. 7177# well, this is not written very nicely, but whta the heck ... 7178cd mm-1.1.3 7179./configure --disable-shared --enable-static --with-shm=IPCSHM --with-sem=IPCSEM 7180cd .. 7181cat >confcache <<\_ACEOF 7182# This file is a shell script that caches the results of configure 7183# tests run on this system so they can be shared between configure 7184# scripts and configure runs, see configure's option --config-cache. 7185# It is not useful on other systems. If it contains results you don't 7186# want to keep, you may remove or edit it. 7187# 7188# config.status only pays attention to the cache file if you give it 7189# the --recheck option to rerun configure. 7190# 7191# `ac_cv_env_foo' variables (set or unset) will be overriden when 7192# loading this file, other *unset* `ac_cv_foo' will be assigned the 7193# following values. 7194 7195_ACEOF 7196 7197# The following way of writing the cache mishandles newlines in values, 7198# but we know of no workaround that is simple, portable, and efficient. 7199# So, don't put newlines in cache variables' values. 7200# Ultrix sh set writes to stderr and can't be redirected directly, 7201# and sets the high bit in the cache file unless we assign to the vars. 7202{ 7203 (set) 2>&1 | 7204 case `(ac_space=' '; set | grep ac_space) 2>&1` in 7205 *ac_space=\ *) 7206 # `set' does not quote correctly, so add quotes (double-quote 7207 # substitution turns \\\\ into \\, and sed turns \\ into \). 7208 sed -n \ 7209 "s/'/'\\\\''/g; 7210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7211 ;; 7212 *) 7213 # `set' quotes correctly as required by POSIX, so do not add quotes. 7214 sed -n \ 7215 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 7216 ;; 7217 esac; 7218} | 7219 sed ' 7220 t clear 7221 : clear 7222 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7223 t end 7224 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7225 : end' >>confcache 7226if cmp -s $cache_file confcache; then :; else 7227 if test -w $cache_file; then 7228 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 7229 cat confcache >$cache_file 7230 else 7231 echo "not updating unwritable cache $cache_file" 7232 fi 7233fi 7234rm -f confcache 7235 7236test "x$prefix" = xNONE && prefix=$ac_default_prefix 7237# Let make expand exec_prefix. 7238test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7239 7240# VPATH may cause trouble with some makes, so we remove $(srcdir), 7241# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7242# trailing colons and then remove the whole line if VPATH becomes empty 7243# (actually we leave an empty line to preserve line numbers). 7244if test "x$srcdir" = x.; then 7245 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7246s/:*\$(srcdir):*/:/; 7247s/:*\${srcdir}:*/:/; 7248s/:*@srcdir@:*/:/; 7249s/^\([^=]*=[ ]*\):*/\1/; 7250s/:*$//; 7251s/^[^=]*=[ ]*$//; 7252}' 7253fi 7254 7255DEFS=-DHAVE_CONFIG_H 7256 7257: ${CONFIG_STATUS=./config.status} 7258ac_clean_files_save=$ac_clean_files 7259ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7260{ echo "$as_me:7260: creating $CONFIG_STATUS" >&5 7261echo "$as_me: creating $CONFIG_STATUS" >&6;} 7262cat >$CONFIG_STATUS <<_ACEOF 7263#! $SHELL 7264# Generated automatically by configure. 7265# Run this file to recreate the current configuration. 7266# Compiler output produced by configure, useful for debugging 7267# configure, is in config.log if it exists. 7268 7269debug=false 7270SHELL=\${CONFIG_SHELL-$SHELL} 7271ac_cs_invocation="\$0 \$@" 7272 7273_ACEOF 7274 7275cat >>$CONFIG_STATUS <<\_ACEOF 7276# Be Bourne compatible 7277if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7278 emulate sh 7279 NULLCMD=: 7280elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 7281 set -o posix 7282fi 7283 7284# Name of the executable. 7285as_me=`echo "$0" |sed 's,.*[\\/],,'` 7286 7287if expr a : '\(a\)' >/dev/null 2>&1; then 7288 as_expr=expr 7289else 7290 as_expr=false 7291fi 7292 7293rm -f conf$$ conf$$.exe conf$$.file 7294echo >conf$$.file 7295if ln -s conf$$.file conf$$ 2>/dev/null; then 7296 # We could just check for DJGPP; but this test a) works b) is more generic 7297 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 7298 if test -f conf$$.exe; then 7299 # Don't use ln at all; we don't have any links 7300 as_ln_s='cp -p' 7301 else 7302 as_ln_s='ln -s' 7303 fi 7304elif ln conf$$.file conf$$ 2>/dev/null; then 7305 as_ln_s=ln 7306else 7307 as_ln_s='cp -p' 7308fi 7309rm -f conf$$ conf$$.exe conf$$.file 7310 7311as_executable_p="test -f" 7312 7313# Support unset when possible. 7314if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 7315 as_unset=unset 7316else 7317 as_unset=false 7318fi 7319 7320# NLS nuisances. 7321$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 7322$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 7323$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 7324$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 7325$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 7326$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 7327$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 7328$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 7329 7330# IFS 7331# We need space, tab and new line, in precisely that order. 7332as_nl=' 7333' 7334IFS=" $as_nl" 7335 7336# CDPATH. 7337$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 7338 7339exec 6>&1 7340 7341_ACEOF 7342 7343# Files that config.status was made for. 7344if test -n "$ac_config_files"; then 7345 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 7346fi 7347 7348if test -n "$ac_config_headers"; then 7349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 7350fi 7351 7352if test -n "$ac_config_links"; then 7353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 7354fi 7355 7356if test -n "$ac_config_commands"; then 7357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 7358fi 7359 7360cat >>$CONFIG_STATUS <<\EOF 7361 7362ac_cs_usage="\ 7363\`$as_me' instantiates files from templates according to the 7364current configuration. 7365 7366Usage: $0 [OPTIONS] [FILE]... 7367 7368 -h, --help print this help, then exit 7369 -V, --version print version number, then exit 7370 -d, --debug don't remove temporary files 7371 --recheck update $as_me by reconfiguring in the same conditions 7372 --file=FILE[:TEMPLATE] 7373 instantiate the configuration file FILE 7374 --header=FILE[:TEMPLATE] 7375 instantiate the configuration header FILE 7376 7377Configuration files: 7378$config_files 7379 7380Configuration headers: 7381$config_headers 7382 7383Configuration commands: 7384$config_commands 7385 7386Report bugs to <bug-autoconf@gnu.org>." 7387EOF 7388 7389cat >>$CONFIG_STATUS <<EOF 7390ac_cs_version="\\ 7391Shared memory map config.status 0.3.2 7392configured by $0, generated by GNU Autoconf 2.52, 7393 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 7394 7395Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7396Free Software Foundation, Inc. 7397This config.status script is free software; the Free Software Foundation 7398gives unlimited permission to copy, distribute and modify it." 7399srcdir=$srcdir 7400INSTALL="$INSTALL" 7401EOF 7402 7403cat >>$CONFIG_STATUS <<\EOF 7404# If no file are specified by the user, then we need to provide default 7405# value. By we need to know if files were specified by the user. 7406ac_need_defaults=: 7407while test $# != 0 7408do 7409 case $1 in 7410 --*=*) 7411 ac_option=`expr "x$1" : 'x\([^=]*\)='` 7412 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 7413 shift 7414 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 7415 shift 7416 ;; 7417 -*);; 7418 *) # This is not an option, so the user has probably given explicit 7419 # arguments. 7420 ac_need_defaults=false;; 7421 esac 7422 7423 case $1 in 7424 # Handling of the options. 7425EOF 7426cat >>$CONFIG_STATUS <<EOF 7427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7428 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 7429 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 7430EOF 7431cat >>$CONFIG_STATUS <<\EOF 7432 --version | --vers* | -V ) 7433 echo "$ac_cs_version"; exit 0 ;; 7434 --he | --h) 7435 # Conflict between --help and --header 7436 { { echo "$as_me:7436: error: ambiguous option: $1 7437Try \`$0 --help' for more information." >&5 7438echo "$as_me: error: ambiguous option: $1 7439Try \`$0 --help' for more information." >&2;} 7440 { (exit 1); exit 1; }; };; 7441 --help | --hel | -h ) 7442 echo "$ac_cs_usage"; exit 0 ;; 7443 --debug | --d* | -d ) 7444 debug=: ;; 7445 --file | --fil | --fi | --f ) 7446 shift 7447 CONFIG_FILES="$CONFIG_FILES $1" 7448 ac_need_defaults=false;; 7449 --header | --heade | --head | --hea ) 7450 shift 7451 CONFIG_HEADERS="$CONFIG_HEADERS $1" 7452 ac_need_defaults=false;; 7453 7454 # This is an error. 7455 -*) { { echo "$as_me:7455: error: unrecognized option: $1 7456Try \`$0 --help' for more information." >&5 7457echo "$as_me: error: unrecognized option: $1 7458Try \`$0 --help' for more information." >&2;} 7459 { (exit 1); exit 1; }; } ;; 7460 7461 *) ac_config_targets="$ac_config_targets $1" ;; 7462 7463 esac 7464 shift 7465done 7466 7467exec 5>>config.log 7468cat >&5 << _ACEOF 7469 7470## ----------------------- ## 7471## Running config.status. ## 7472## ----------------------- ## 7473 7474This file was extended by $as_me (Shared memory map 0.3.2) 2.52, executed with 7475 CONFIG_FILES = $CONFIG_FILES 7476 CONFIG_HEADERS = $CONFIG_HEADERS 7477 CONFIG_LINKS = $CONFIG_LINKS 7478 CONFIG_COMMANDS = $CONFIG_COMMANDS 7479 > $ac_cs_invocation 7480on `(hostname || uname -n) 2>/dev/null | sed 1q` 7481 7482_ACEOF 7483EOF 7484 7485cat >>$CONFIG_STATUS <<EOF 7486# 7487# INIT-COMMANDS section. 7488# 7489 7490AMDEP_TRUE="$AMDEP_TRUE" 7491ac_aux_dir="$ac_aux_dir" 7492 7493EOF 7494 7495cat >>$CONFIG_STATUS <<\EOF 7496for ac_config_target in $ac_config_targets 7497do 7498 case "$ac_config_target" in 7499 # Handling of arguments. 7500 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7501 "shmap/Makefile" ) CONFIG_FILES="$CONFIG_FILES shmap/Makefile" ;; 7502 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 7503 "shmap_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS shmap_config.h" ;; 7504 *) { { echo "$as_me:7504: error: invalid argument: $ac_config_target" >&5 7505echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7506 { (exit 1); exit 1; }; };; 7507 esac 7508done 7509 7510# If the user did not use the arguments to specify the items to instantiate, 7511# then the envvar interface is used. Set only those that are not. 7512# We use the long form for the default assignment because of an extremely 7513# bizarre bug on SunOS 4.1.3. 7514if $ac_need_defaults; then 7515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7518fi 7519 7520# Create a temporary directory, and hook for its removal unless debugging. 7521$debug || 7522{ 7523 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7524 trap '{ (exit 1); exit 1; }' 1 2 13 15 7525} 7526 7527# Create a (secure) tmp directory for tmp files. 7528: ${TMPDIR=/tmp} 7529{ 7530 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 7531 test -n "$tmp" && test -d "$tmp" 7532} || 7533{ 7534 tmp=$TMPDIR/cs$$-$RANDOM 7535 (umask 077 && mkdir $tmp) 7536} || 7537{ 7538 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 7539 { (exit 1); exit 1; } 7540} 7541 7542EOF 7543 7544cat >>$CONFIG_STATUS <<EOF 7545 7546# 7547# CONFIG_FILES section. 7548# 7549 7550# No need to generate the scripts if there are no CONFIG_FILES. 7551# This happens for instance when ./config.status config.h 7552if test -n "\$CONFIG_FILES"; then 7553 # Protect against being on the right side of a sed subst in config.status. 7554 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7555 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7556s,@SHELL@,$SHELL,;t t 7557s,@exec_prefix@,$exec_prefix,;t t 7558s,@prefix@,$prefix,;t t 7559s,@program_transform_name@,$program_transform_name,;t t 7560s,@bindir@,$bindir,;t t 7561s,@sbindir@,$sbindir,;t t 7562s,@libexecdir@,$libexecdir,;t t 7563s,@datadir@,$datadir,;t t 7564s,@sysconfdir@,$sysconfdir,;t t 7565s,@sharedstatedir@,$sharedstatedir,;t t 7566s,@localstatedir@,$localstatedir,;t t 7567s,@libdir@,$libdir,;t t 7568s,@includedir@,$includedir,;t t 7569s,@oldincludedir@,$oldincludedir,;t t 7570s,@infodir@,$infodir,;t t 7571s,@mandir@,$mandir,;t t 7572s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7573s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7574s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7575s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7576s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7577s,@build_alias@,$build_alias,;t t 7578s,@host_alias@,$host_alias,;t t 7579s,@target_alias@,$target_alias,;t t 7580s,@ECHO_C@,$ECHO_C,;t t 7581s,@ECHO_N@,$ECHO_N,;t t 7582s,@ECHO_T@,$ECHO_T,;t t 7583s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7584s,@DEFS@,$DEFS,;t t 7585s,@LIBS@,$LIBS,;t t 7586s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7587s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7588s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7589s,@PACKAGE@,$PACKAGE,;t t 7590s,@VERSION@,$VERSION,;t t 7591s,@EXEEXT@,$EXEEXT,;t t 7592s,@OBJEXT@,$OBJEXT,;t t 7593s,@ACLOCAL@,$ACLOCAL,;t t 7594s,@AUTOCONF@,$AUTOCONF,;t t 7595s,@AUTOMAKE@,$AUTOMAKE,;t t 7596s,@AUTOHEADER@,$AUTOHEADER,;t t 7597s,@MAKEINFO@,$MAKEINFO,;t t 7598s,@AMTAR@,$AMTAR,;t t 7599s,@install_sh@,$install_sh,;t t 7600s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 7601s,@AWK@,$AWK,;t t 7602s,@SET_MAKE@,$SET_MAKE,;t t 7603s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 7604s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 7605s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 7606s,@DEPDIR@,$DEPDIR,;t t 7607s,@CC@,$CC,;t t 7608s,@CFLAGS@,$CFLAGS,;t t 7609s,@LDFLAGS@,$LDFLAGS,;t t 7610s,@CPPFLAGS@,$CPPFLAGS,;t t 7611s,@ac_ct_CC@,$ac_ct_CC,;t t 7612s,@am__include@,$am__include,;t t 7613s,@am__quote@,$am__quote,;t t 7614s,@CCDEPMODE@,$CCDEPMODE,;t t 7615s,@build@,$build,;t t 7616s,@build_cpu@,$build_cpu,;t t 7617s,@build_vendor@,$build_vendor,;t t 7618s,@build_os@,$build_os,;t t 7619s,@host@,$host,;t t 7620s,@host_cpu@,$host_cpu,;t t 7621s,@host_vendor@,$host_vendor,;t t 7622s,@host_os@,$host_os,;t t 7623s,@LN_S@,$LN_S,;t t 7624s,@ECHO@,$ECHO,;t t 7625s,@RANLIB@,$RANLIB,;t t 7626s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 7627s,@STRIP@,$STRIP,;t t 7628s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 7629s,@CPP@,$CPP,;t t 7630s,@LIBTOOL@,$LIBTOOL,;t t 7631CEOF 7632 7633EOF 7634 7635 cat >>$CONFIG_STATUS <<\EOF 7636 # Split the substitutions into bite-sized pieces for seds with 7637 # small command number limits, like on Digital OSF/1 and HP-UX. 7638 ac_max_sed_lines=48 7639 ac_sed_frag=1 # Number of current file. 7640 ac_beg=1 # First line for current file. 7641 ac_end=$ac_max_sed_lines # Line after last line for current file. 7642 ac_more_lines=: 7643 ac_sed_cmds= 7644 while $ac_more_lines; do 7645 if test $ac_beg -gt 1; then 7646 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7647 else 7648 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7649 fi 7650 if test ! -s $tmp/subs.frag; then 7651 ac_more_lines=false 7652 else 7653 # The purpose of the label and of the branching condition is to 7654 # speed up the sed processing (if there are no `@' at all, there 7655 # is no need to browse any of the substitutions). 7656 # These are the two extra sed commands mentioned above. 7657 (echo ':t 7658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7659 if test -z "$ac_sed_cmds"; then 7660 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7661 else 7662 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7663 fi 7664 ac_sed_frag=`expr $ac_sed_frag + 1` 7665 ac_beg=$ac_end 7666 ac_end=`expr $ac_end + $ac_max_sed_lines` 7667 fi 7668 done 7669 if test -z "$ac_sed_cmds"; then 7670 ac_sed_cmds=cat 7671 fi 7672fi # test -n "$CONFIG_FILES" 7673 7674EOF 7675cat >>$CONFIG_STATUS <<\EOF 7676for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7678 case $ac_file in 7679 - | *:- | *:-:* ) # input from stdin 7680 cat >$tmp/stdin 7681 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7683 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7685 * ) ac_file_in=$ac_file.in ;; 7686 esac 7687 7688 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7689 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7690 X"$ac_file" : 'X\(//\)[^/]' \| \ 7691 X"$ac_file" : 'X\(//\)$' \| \ 7692 X"$ac_file" : 'X\(/\)' \| \ 7693 . : '\(.\)' 2>/dev/null || 7694echo X"$ac_file" | 7695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7696 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7697 /^X\(\/\/\)$/{ s//\1/; q; } 7698 /^X\(\/\).*/{ s//\1/; q; } 7699 s/.*/./; q'` 7700 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7701 { case "$ac_dir" in 7702 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 7703 *) as_incr_dir=.;; 7704esac 7705as_dummy="$ac_dir" 7706for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 7707 case $as_mkdir_dir in 7708 # Skip DOS drivespec 7709 ?:) as_incr_dir=$as_mkdir_dir ;; 7710 *) 7711 as_incr_dir=$as_incr_dir/$as_mkdir_dir 7712 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 7713 ;; 7714 esac 7715done; } 7716 7717 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 7718 # A "../" for each directory in $ac_dir_suffix. 7719 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 7720 else 7721 ac_dir_suffix= ac_dots= 7722 fi 7723 7724 case $srcdir in 7725 .) ac_srcdir=. 7726 if test -z "$ac_dots"; then 7727 ac_top_srcdir=. 7728 else 7729 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 7730 fi ;; 7731 [\\/]* | ?:[\\/]* ) 7732 ac_srcdir=$srcdir$ac_dir_suffix; 7733 ac_top_srcdir=$srcdir ;; 7734 *) # Relative path. 7735 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 7736 ac_top_srcdir=$ac_dots$srcdir ;; 7737 esac 7738 7739 case $INSTALL in 7740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7741 *) ac_INSTALL=$ac_dots$INSTALL ;; 7742 esac 7743 7744 if test x"$ac_file" != x-; then 7745 { echo "$as_me:7745: creating $ac_file" >&5 7746echo "$as_me: creating $ac_file" >&6;} 7747 rm -f "$ac_file" 7748 fi 7749 # Let's still pretend it is `configure' which instantiates (i.e., don't 7750 # use $as_me), people would be surprised to read: 7751 # /* config.h. Generated automatically by config.status. */ 7752 configure_input="Generated automatically from `echo $ac_file_in | 7753 sed 's,.*/,,'` by configure." 7754 7755 # First look for the input files in the build tree, otherwise in the 7756 # src tree. 7757 ac_file_inputs=`IFS=: 7758 for f in $ac_file_in; do 7759 case $f in 7760 -) echo $tmp/stdin ;; 7761 [\\/$]*) 7762 # Absolute (can't be DOS-style, as IFS=:) 7763 test -f "$f" || { { echo "$as_me:7763: error: cannot find input file: $f" >&5 7764echo "$as_me: error: cannot find input file: $f" >&2;} 7765 { (exit 1); exit 1; }; } 7766 echo $f;; 7767 *) # Relative 7768 if test -f "$f"; then 7769 # Build tree 7770 echo $f 7771 elif test -f "$srcdir/$f"; then 7772 # Source tree 7773 echo $srcdir/$f 7774 else 7775 # /dev/null tree 7776 { { echo "$as_me:7776: error: cannot find input file: $f" >&5 7777echo "$as_me: error: cannot find input file: $f" >&2;} 7778 { (exit 1); exit 1; }; } 7779 fi;; 7780 esac 7781 done` || { (exit 1); exit 1; } 7782EOF 7783cat >>$CONFIG_STATUS <<EOF 7784 sed "$ac_vpsub 7785$extrasub 7786EOF 7787cat >>$CONFIG_STATUS <<\EOF 7788:t 7789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7790s,@configure_input@,$configure_input,;t t 7791s,@srcdir@,$ac_srcdir,;t t 7792s,@top_srcdir@,$ac_top_srcdir,;t t 7793s,@INSTALL@,$ac_INSTALL,;t t 7794" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7795 rm -f $tmp/stdin 7796 if test x"$ac_file" != x-; then 7797 mv $tmp/out $ac_file 7798 else 7799 cat $tmp/out 7800 rm -f $tmp/out 7801 fi 7802 7803done 7804EOF 7805cat >>$CONFIG_STATUS <<\EOF 7806 7807# 7808# CONFIG_HEADER section. 7809# 7810 7811# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7812# NAME is the cpp macro being defined and VALUE is the value it is being given. 7813# 7814# ac_d sets the value in "#define NAME VALUE" lines. 7815ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7816ac_dB='[ ].*$,\1#\2' 7817ac_dC=' ' 7818ac_dD=',;t' 7819# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7820ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7821ac_uB='$,\1#\2define\3' 7822ac_uC=' ' 7823ac_uD=',;t' 7824 7825for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 7826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7827 case $ac_file in 7828 - | *:- | *:-:* ) # input from stdin 7829 cat >$tmp/stdin 7830 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7832 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7834 * ) ac_file_in=$ac_file.in ;; 7835 esac 7836 7837 test x"$ac_file" != x- && { echo "$as_me:7837: creating $ac_file" >&5 7838echo "$as_me: creating $ac_file" >&6;} 7839 7840 # First look for the input files in the build tree, otherwise in the 7841 # src tree. 7842 ac_file_inputs=`IFS=: 7843 for f in $ac_file_in; do 7844 case $f in 7845 -) echo $tmp/stdin ;; 7846 [\\/$]*) 7847 # Absolute (can't be DOS-style, as IFS=:) 7848 test -f "$f" || { { echo "$as_me:7848: error: cannot find input file: $f" >&5 7849echo "$as_me: error: cannot find input file: $f" >&2;} 7850 { (exit 1); exit 1; }; } 7851 echo $f;; 7852 *) # Relative 7853 if test -f "$f"; then 7854 # Build tree 7855 echo $f 7856 elif test -f "$srcdir/$f"; then 7857 # Source tree 7858 echo $srcdir/$f 7859 else 7860 # /dev/null tree 7861 { { echo "$as_me:7861: error: cannot find input file: $f" >&5 7862echo "$as_me: error: cannot find input file: $f" >&2;} 7863 { (exit 1); exit 1; }; } 7864 fi;; 7865 esac 7866 done` || { (exit 1); exit 1; } 7867 # Remove the trailing spaces. 7868 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7869 7870EOF 7871 7872# Transform confdefs.h into two sed scripts, `conftest.defines' and 7873# `conftest.undefs', that substitutes the proper values into 7874# config.h.in to produce config.h. The first handles `#define' 7875# templates, and the second `#undef' templates. 7876# And first: Protect against being on the right side of a sed subst in 7877# config.status. Protect against being in an unquoted here document 7878# in config.status. 7879rm -f conftest.defines conftest.undefs 7880# Using a here document instead of a string reduces the quoting nightmare. 7881# Putting comments in sed scripts is not portable. 7882# 7883# `end' is used to avoid that the second main sed command (meant for 7884# 0-ary CPP macros) applies to n-ary macro definitions. 7885# See the Autoconf documentation for `clear'. 7886cat >confdef2sed.sed <<\EOF 7887s/[\\&,]/\\&/g 7888s,[\\$`],\\&,g 7889t clear 7890: clear 7891s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 7892t end 7893s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7894: end 7895EOF 7896# If some macros were called several times there might be several times 7897# the same #defines, which is useless. Nevertheless, we may not want to 7898# sort them, since we want the *last* AC-DEFINE to be honored. 7899uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7900sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7901rm -f confdef2sed.sed 7902 7903# This sed command replaces #undef with comments. This is necessary, for 7904# example, in the case of _POSIX_SOURCE, which is predefined and required 7905# on some systems where configure will not decide to define it. 7906cat >>conftest.undefs <<\EOF 7907s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7908EOF 7909 7910# Break up conftest.defines because some shells have a limit on the size 7911# of here documents, and old seds have small limits too (100 cmds). 7912echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 7913echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 7914echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 7915echo ' :' >>$CONFIG_STATUS 7916rm -f conftest.tail 7917while grep . conftest.defines >/dev/null 7918do 7919 # Write a limited-size here document to $tmp/defines.sed. 7920 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 7921 # Speed up: don't consider the non `#define' lines. 7922 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 7923 # Work around the forget-to-reset-the-flag bug. 7924 echo 't clr' >>$CONFIG_STATUS 7925 echo ': clr' >>$CONFIG_STATUS 7926 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 7927 echo 'CEOF 7928 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7929 rm -f $tmp/in 7930 mv $tmp/out $tmp/in 7931' >>$CONFIG_STATUS 7932 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 7933 rm -f conftest.defines 7934 mv conftest.tail conftest.defines 7935done 7936rm -f conftest.defines 7937echo ' fi # egrep' >>$CONFIG_STATUS 7938echo >>$CONFIG_STATUS 7939 7940# Break up conftest.undefs because some shells have a limit on the size 7941# of here documents, and old seds have small limits too (100 cmds). 7942echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 7943rm -f conftest.tail 7944while grep . conftest.undefs >/dev/null 7945do 7946 # Write a limited-size here document to $tmp/undefs.sed. 7947 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 7948 # Speed up: don't consider the non `#undef' 7949 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 7950 # Work around the forget-to-reset-the-flag bug. 7951 echo 't clr' >>$CONFIG_STATUS 7952 echo ': clr' >>$CONFIG_STATUS 7953 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 7954 echo 'CEOF 7955 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7956 rm -f $tmp/in 7957 mv $tmp/out $tmp/in 7958' >>$CONFIG_STATUS 7959 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 7960 rm -f conftest.undefs 7961 mv conftest.tail conftest.undefs 7962done 7963rm -f conftest.undefs 7964 7965cat >>$CONFIG_STATUS <<\EOF 7966 # Let's still pretend it is `configure' which instantiates (i.e., don't 7967 # use $as_me), people would be surprised to read: 7968 # /* config.h. Generated automatically by config.status. */ 7969 if test x"$ac_file" = x-; then 7970 echo "/* Generated automatically by configure. */" >$tmp/config.h 7971 else 7972 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 7973 fi 7974 cat $tmp/in >>$tmp/config.h 7975 rm -f $tmp/in 7976 if test x"$ac_file" != x-; then 7977 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 7978 { echo "$as_me:7978: $ac_file is unchanged" >&5 7979echo "$as_me: $ac_file is unchanged" >&6;} 7980 else 7981 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7982 X"$ac_file" : 'X\(//\)[^/]' \| \ 7983 X"$ac_file" : 'X\(//\)$' \| \ 7984 X"$ac_file" : 'X\(/\)' \| \ 7985 . : '\(.\)' 2>/dev/null || 7986echo X"$ac_file" | 7987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7988 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7989 /^X\(\/\/\)$/{ s//\1/; q; } 7990 /^X\(\/\).*/{ s//\1/; q; } 7991 s/.*/./; q'` 7992 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7993 { case "$ac_dir" in 7994 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 7995 *) as_incr_dir=.;; 7996esac 7997as_dummy="$ac_dir" 7998for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 7999 case $as_mkdir_dir in 8000 # Skip DOS drivespec 8001 ?:) as_incr_dir=$as_mkdir_dir ;; 8002 *) 8003 as_incr_dir=$as_incr_dir/$as_mkdir_dir 8004 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 8005 ;; 8006 esac 8007done; } 8008 8009 fi 8010 rm -f $ac_file 8011 mv $tmp/config.h $ac_file 8012 fi 8013 else 8014 cat $tmp/config.h 8015 rm -f $tmp/config.h 8016 fi 8017 # Run the commands associated with the file. 8018 case $ac_file in 8019 shmap_config.h ) # update the timestamp 8020echo timestamp >"./stamp-h1" 8021 ;; 8022 esac 8023done 8024EOF 8025cat >>$CONFIG_STATUS <<\EOF 8026 8027# 8028# CONFIG_COMMANDS section. 8029# 8030for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 8031 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 8032 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 8033 8034 case $ac_dest in 8035 default-1 ) 8036test x"$AMDEP_TRUE" != x"" || 8037for mf in $CONFIG_FILES; do 8038 case "$mf" in 8039 Makefile) dirpart=.;; 8040 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 8041 *) continue;; 8042 esac 8043 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 8044 # Extract the definition of DEP_FILES from the Makefile without 8045 # running `make'. 8046 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 8047 test -z "$DEPDIR" && continue 8048 # When using ansi2knr, U may be empty or an underscore; expand it 8049 U=`sed -n -e '/^U = / s///p' < "$mf"` 8050 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 8051 # We invoke sed twice because it is the simplest approach to 8052 # changing $(DEPDIR) to its actual value in the expansion. 8053 for file in `sed -n -e ' 8054 /^DEP_FILES = .*\\\\$/ { 8055 s/^DEP_FILES = // 8056 :loop 8057 s/\\\\$// 8058 p 8059 n 8060 /\\\\$/ b loop 8061 p 8062 } 8063 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 8064 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 8065 # Make sure the directory exists. 8066 test -f "$dirpart/$file" && continue 8067 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 8068 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 8069 # echo "creating $dirpart/$file" 8070 echo '# dummy' > "$dirpart/$file" 8071 done 8072done 8073 ;; 8074 esac 8075done 8076EOF 8077 8078cat >>$CONFIG_STATUS <<\EOF 8079 8080{ (exit 0); exit 0; } 8081EOF 8082chmod +x $CONFIG_STATUS 8083ac_clean_files=$ac_clean_files_save 8084 8085# configure is writing to config.log, and then calls config.status. 8086# config.status does its own redirection, appending to config.log. 8087# Unfortunately, on DOS this fails, as config.log is still kept open 8088# by configure, so config.status won't be able to write to it; its 8089# output is simply discarded. So we exec the FD to /dev/null, 8090# effectively closing config.log, so it can be properly (re)opened and 8091# appended to by config.status. When coming back to configure, we 8092# need to make the FD available again. 8093if test "$no_create" != yes; then 8094 ac_cs_success=: 8095 exec 5>/dev/null 8096 $SHELL $CONFIG_STATUS || ac_cs_success=false 8097 exec 5>>config.log 8098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8099 # would make configure fail if this is the last instruction. 8100 $ac_cs_success || { (exit 1); exit 1; } 8101fi 8102 8103