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