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