1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for mydns 1.1.0. 4# 5# Report bugs to <bboy@bboy.net>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10# 11# Portions of this script are Copyright 2002-2005 Don Moore 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be Bourne compatible 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24 set -o posix 25fi 26DUALCASE=1; export DUALCASE # for MKS sh 27 28# Support unset when possible. 29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 30 as_unset=unset 31else 32 as_unset=false 33fi 34 35 36# Work around bugs in pre-3.0 UWIN ksh. 37$as_unset ENV MAIL MAILPATH 38PS1='$ ' 39PS2='> ' 40PS4='+ ' 41 42# NLS nuisances. 43for as_var in \ 44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 46 LC_TELEPHONE LC_TIME 47do 48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 49 eval $as_var=C; export $as_var 50 else 51 $as_unset $as_var 52 fi 53done 54 55# Required to use basename. 56if expr a : '\(a\)' >/dev/null 2>&1; then 57 as_expr=expr 58else 59 as_expr=false 60fi 61 62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 63 as_basename=basename 64else 65 as_basename=false 66fi 67 68 69# Name of the executable. 70as_me=`$as_basename "$0" || 71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 72 X"$0" : 'X\(//\)$' \| \ 73 X"$0" : 'X\(/\)$' \| \ 74 . : '\(.\)' 2>/dev/null || 75echo X/"$0" | 76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 77 /^X\/\(\/\/\)$/{ s//\1/; q; } 78 /^X\/\(\/\).*/{ s//\1/; q; } 79 s/.*/./; q'` 80 81 82# PATH needs CR, and LINENO needs CR and PATH. 83# Avoid depending upon Character Ranges. 84as_cr_letters='abcdefghijklmnopqrstuvwxyz' 85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 86as_cr_Letters=$as_cr_letters$as_cr_LETTERS 87as_cr_digits='0123456789' 88as_cr_alnum=$as_cr_Letters$as_cr_digits 89 90# The user is always right. 91if test "${PATH_SEPARATOR+set}" != set; then 92 echo "#! /bin/sh" >conf$$.sh 93 echo "exit 0" >>conf$$.sh 94 chmod +x conf$$.sh 95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 96 PATH_SEPARATOR=';' 97 else 98 PATH_SEPARATOR=: 99 fi 100 rm -f conf$$.sh 101fi 102 103 104 as_lineno_1=$LINENO 105 as_lineno_2=$LINENO 106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 107 test "x$as_lineno_1" != "x$as_lineno_2" && 108 test "x$as_lineno_3" = "x$as_lineno_2" || { 109 # Find who we are. Look in the path if we contain no path at all 110 # relative or not. 111 case $0 in 112 *[\\/]* ) as_myself=$0 ;; 113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114for as_dir in $PATH 115do 116 IFS=$as_save_IFS 117 test -z "$as_dir" && as_dir=. 118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 119done 120 121 ;; 122 esac 123 # We did not find ourselves, most probably we were run as `sh COMMAND' 124 # in which case we are not to be found in the path. 125 if test "x$as_myself" = x; then 126 as_myself=$0 127 fi 128 if test ! -f "$as_myself"; then 129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 130 { (exit 1); exit 1; }; } 131 fi 132 case $CONFIG_SHELL in 133 '') 134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 136do 137 IFS=$as_save_IFS 138 test -z "$as_dir" && as_dir=. 139 for as_base in sh bash ksh sh5; do 140 case $as_dir in 141 /*) 142 if ("$as_dir/$as_base" -c ' 143 as_lineno_1=$LINENO 144 as_lineno_2=$LINENO 145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 146 test "x$as_lineno_1" != "x$as_lineno_2" && 147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 150 CONFIG_SHELL=$as_dir/$as_base 151 export CONFIG_SHELL 152 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 153 fi;; 154 esac 155 done 156done 157;; 158 esac 159 160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 161 # uniformly replaced by the line number. The first 'sed' inserts a 162 # line-number line before each line; the second 'sed' does the real 163 # work. The second script uses 'N' to pair each line-number line 164 # with the numbered line, and appends trailing '-' during 165 # substitution so that $LINENO is not a special case at line end. 166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 168 sed '=' <$as_myself | 169 sed ' 170 N 171 s,$,-, 172 : loop 173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 174 t loop 175 s,-$,, 176 s,^['$as_cr_digits']*\n,, 177 ' >$as_me.lineno && 178 chmod +x $as_me.lineno || 179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 180 { (exit 1); exit 1; }; } 181 182 # Don't try to exec as it changes $[0], causing all sort of problems 183 # (the dirname of $[0] is not the place where we might find the 184 # original and so on. Autoconf is especially sensible to this). 185 . ./$as_me.lineno 186 # Exit status is that of the last command. 187 exit 188} 189 190 191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 192 *c*,-n*) ECHO_N= ECHO_C=' 193' ECHO_T=' ' ;; 194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 196esac 197 198if expr a : '\(a\)' >/dev/null 2>&1; then 199 as_expr=expr 200else 201 as_expr=false 202fi 203 204rm -f conf$$ conf$$.exe conf$$.file 205echo >conf$$.file 206if ln -s conf$$.file conf$$ 2>/dev/null; then 207 # We could just check for DJGPP; but this test a) works b) is more generic 208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 209 if test -f conf$$.exe; then 210 # Don't use ln at all; we don't have any links 211 as_ln_s='cp -p' 212 else 213 as_ln_s='ln -s' 214 fi 215elif ln conf$$.file conf$$ 2>/dev/null; then 216 as_ln_s=ln 217else 218 as_ln_s='cp -p' 219fi 220rm -f conf$$ conf$$.exe conf$$.file 221 222if mkdir -p . 2>/dev/null; then 223 as_mkdir_p=: 224else 225 test -d ./-p && rmdir ./-p 226 as_mkdir_p=false 227fi 228 229as_executable_p="test -f" 230 231# Sed expression to map a string onto a valid CPP name. 232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 233 234# Sed expression to map a string onto a valid variable name. 235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 236 237 238# IFS 239# We need space, tab and new line, in precisely that order. 240as_nl=' 241' 242IFS=" $as_nl" 243 244# CDPATH. 245$as_unset CDPATH 246 247 248# Find the correct PATH separator. Usually this is `:', but 249# DJGPP uses `;' like DOS. 250if test "X${PATH_SEPARATOR+set}" != Xset; then 251 UNAME=${UNAME-`uname 2>/dev/null`} 252 case X$UNAME in 253 *-DOS) lt_cv_sys_path_separator=';' ;; 254 *) lt_cv_sys_path_separator=':' ;; 255 esac 256 PATH_SEPARATOR=$lt_cv_sys_path_separator 257fi 258 259 260# Check that we are running under the correct shell. 261SHELL=${CONFIG_SHELL-/bin/sh} 262 263case X$ECHO in 264X*--fallback-echo) 265 # Remove one level of quotation (which was required for Make). 266 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 267 ;; 268esac 269 270echo=${ECHO-echo} 271if test "X$1" = X--no-reexec; then 272 # Discard the --no-reexec flag, and continue. 273 shift 274elif test "X$1" = X--fallback-echo; then 275 # Avoid inline document here, it may be left over 276 : 277elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 278 # Yippee, $echo works! 279 : 280else 281 # Restart under the correct shell. 282 exec $SHELL "$0" --no-reexec ${1+"$@"} 283fi 284 285if test "X$1" = X--fallback-echo; then 286 # used as fallback echo 287 shift 288 cat <<EOF 289 290EOF 291 exit 0 292fi 293 294# The HP-UX ksh and POSIX shell print the target directory to stdout 295# if CDPATH is set. 296if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 297 298if test -z "$ECHO"; then 299if test "X${echo_test_string+set}" != Xset; then 300# find a string as large as possible, as long as the shell can cope with it 301 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 302 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 303 if (echo_test_string="`eval $cmd`") 2>/dev/null && 304 echo_test_string="`eval $cmd`" && 305 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 306 then 307 break 308 fi 309 done 310fi 311 312if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 : 316else 317 # The Solaris, AIX, and Digital Unix default echo programs unquote 318 # backslashes. This makes it impossible to quote backslashes using 319 # echo "$something" | sed 's/\\/\\\\/g' 320 # 321 # So, first we look for a working echo in the user's PATH. 322 323 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 324 for dir in $PATH /usr/ucb; do 325 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 326 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 327 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 328 test "X$echo_testing_string" = "X$echo_test_string"; then 329 echo="$dir/echo" 330 break 331 fi 332 done 333 IFS="$save_ifs" 334 335 if test "X$echo" = Xecho; then 336 # We didn't find a better echo, so look for alternatives. 337 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 338 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 339 test "X$echo_testing_string" = "X$echo_test_string"; then 340 # This shell has a builtin print -r that does the trick. 341 echo='print -r' 342 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 343 test "X$CONFIG_SHELL" != X/bin/ksh; then 344 # If we have ksh, try running configure again with it. 345 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 346 export ORIGINAL_CONFIG_SHELL 347 CONFIG_SHELL=/bin/ksh 348 export CONFIG_SHELL 349 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 350 else 351 # Try using printf. 352 echo='printf %s\n' 353 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 354 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 # Cool, printf works 357 : 358 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 359 test "X$echo_testing_string" = 'X\t' && 360 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 361 test "X$echo_testing_string" = "X$echo_test_string"; then 362 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 363 export CONFIG_SHELL 364 SHELL="$CONFIG_SHELL" 365 export SHELL 366 echo="$CONFIG_SHELL $0 --fallback-echo" 367 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 368 test "X$echo_testing_string" = 'X\t' && 369 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 370 test "X$echo_testing_string" = "X$echo_test_string"; then 371 echo="$CONFIG_SHELL $0 --fallback-echo" 372 else 373 # maybe with a smaller string... 374 prev=: 375 376 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 377 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 378 then 379 break 380 fi 381 prev="$cmd" 382 done 383 384 if test "$prev" != 'sed 50q "$0"'; then 385 echo_test_string=`eval $prev` 386 export echo_test_string 387 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 388 else 389 # Oops. We lost completely, so just stick with echo. 390 echo=echo 391 fi 392 fi 393 fi 394 fi 395fi 396fi 397 398# Copy echo and quote the copy suitably for passing to libtool from 399# the Makefile, instead of quoting the original, which is used later. 400ECHO=$echo 401if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 402 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 403fi 404 405 406 407# Name of the host. 408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 409# so uname gets run too. 410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 411 412exec 6>&1 413 414# 415# Initializations. 416# 417ac_default_prefix=/usr/local 418ac_config_libobj_dir=. 419cross_compiling=no 420subdirs= 421MFLAGS= 422MAKEFLAGS= 423SHELL=${CONFIG_SHELL-/bin/sh} 424 425# Maximum number of lines to put in a shell here document. 426# This variable seems obsolete. It should probably be removed, and 427# only ac_max_sed_lines should be used. 428: ${ac_max_here_lines=38} 429 430# Identity of this package. 431PACKAGE_NAME='mydns' 432PACKAGE_TARNAME='mydns' 433PACKAGE_VERSION='1.1.0' 434PACKAGE_STRING='mydns 1.1.0' 435PACKAGE_BUGREPORT='bboy@bboy.net' 436 437# Factoring default headers for most tests. 438ac_includes_default="\ 439#include <stdio.h> 440#if HAVE_SYS_TYPES_H 441# include <sys/types.h> 442#endif 443#if HAVE_SYS_STAT_H 444# include <sys/stat.h> 445#endif 446#if STDC_HEADERS 447# include <stdlib.h> 448# include <stddef.h> 449#else 450# if HAVE_STDLIB_H 451# include <stdlib.h> 452# endif 453#endif 454#if HAVE_STRING_H 455# if !STDC_HEADERS && HAVE_MEMORY_H 456# include <memory.h> 457# endif 458# include <string.h> 459#endif 460#if HAVE_STRINGS_H 461# include <strings.h> 462#endif 463#if HAVE_INTTYPES_H 464# include <inttypes.h> 465#else 466# if HAVE_STDINT_H 467# include <stdint.h> 468# endif 469#endif 470#if HAVE_UNISTD_H 471# include <unistd.h> 472#endif" 473 474ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LIBSOCKET LIBNSL LIBM PACKAGE_DATE PACKAGE_RELEASE_DATE PACKAGE_HOMEPAGE PACKAGE_COPYRIGHT COPYRIGHT_HOLDER PACKAGE_AUTHOR LIBZ LIBMYSQLCLIENT MYSQL_INCLUDE LIBPQ PQ_INCLUDE LIBSSL SSLINCLUDE MYDNS_CONF ac_mydns_static_build USE_DB_NAME LIBSQL SQLINCLUDE PROFILE_ENABLED WEBROOT INTLINCLUDE UTILDIR UTILINCLUDE LIBUTIL MYDNSDIR MYDNSINCLUDE LIBMYDNS DOCDIR SEDFILE LTLIBOBJS' 475ac_subst_files='' 476 477# Initialize some variables set by options. 478ac_init_help= 479ac_init_version=false 480# The variables have the same names as the options, with 481# dashes changed to underlines. 482cache_file=/dev/null 483exec_prefix=NONE 484no_create= 485no_recursion= 486prefix=NONE 487program_prefix=NONE 488program_suffix=NONE 489program_transform_name=s,x,x, 490silent= 491site= 492srcdir= 493verbose= 494x_includes=NONE 495x_libraries=NONE 496 497# Installation directory options. 498# These are left unexpanded so users can "make install exec_prefix=/foo" 499# and all the variables that are supposed to be based on exec_prefix 500# by default will actually change. 501# Use braces instead of parens because sh, perl, etc. also accept them. 502bindir='${exec_prefix}/bin' 503sbindir='${exec_prefix}/sbin' 504libexecdir='${exec_prefix}/libexec' 505datadir='${prefix}/share' 506sysconfdir='${prefix}/etc' 507sharedstatedir='${prefix}/com' 508localstatedir='${prefix}/var' 509libdir='${exec_prefix}/lib' 510includedir='${prefix}/include' 511oldincludedir='/usr/include' 512infodir='${prefix}/info' 513mandir='${prefix}/man' 514 515ac_prev= 516for ac_option 517do 518 # If the previous option needs an argument, assign it. 519 if test -n "$ac_prev"; then 520 eval "$ac_prev=\$ac_option" 521 ac_prev= 522 continue 523 fi 524 525 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 526 527 # Accept the important Cygnus configure options, so we can diagnose typos. 528 529 case $ac_option in 530 531 -bindir | --bindir | --bindi | --bind | --bin | --bi) 532 ac_prev=bindir ;; 533 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 534 bindir=$ac_optarg ;; 535 536 -build | --build | --buil | --bui | --bu) 537 ac_prev=build_alias ;; 538 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 539 build_alias=$ac_optarg ;; 540 541 -cache-file | --cache-file | --cache-fil | --cache-fi \ 542 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 543 ac_prev=cache_file ;; 544 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 545 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 546 cache_file=$ac_optarg ;; 547 548 --config-cache | -C) 549 cache_file=config.cache ;; 550 551 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 552 ac_prev=datadir ;; 553 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 554 | --da=*) 555 datadir=$ac_optarg ;; 556 557 -disable-* | --disable-*) 558 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 559 # Reject names that are not valid shell variable names. 560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 562 { (exit 1); exit 1; }; } 563 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 564 eval "enable_$ac_feature=no" ;; 565 566 -enable-* | --enable-*) 567 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 568 # Reject names that are not valid shell variable names. 569 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 570 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 571 { (exit 1); exit 1; }; } 572 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 573 case $ac_option in 574 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 575 *) ac_optarg=yes ;; 576 esac 577 eval "enable_$ac_feature='$ac_optarg'" ;; 578 579 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 580 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 581 | --exec | --exe | --ex) 582 ac_prev=exec_prefix ;; 583 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 584 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 585 | --exec=* | --exe=* | --ex=*) 586 exec_prefix=$ac_optarg ;; 587 588 -gas | --gas | --ga | --g) 589 # Obsolete; use --with-gas. 590 with_gas=yes ;; 591 592 -help | --help | --hel | --he | -h) 593 ac_init_help=long ;; 594 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 595 ac_init_help=recursive ;; 596 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 597 ac_init_help=short ;; 598 599 -host | --host | --hos | --ho) 600 ac_prev=host_alias ;; 601 -host=* | --host=* | --hos=* | --ho=*) 602 host_alias=$ac_optarg ;; 603 604 -includedir | --includedir | --includedi | --included | --include \ 605 | --includ | --inclu | --incl | --inc) 606 ac_prev=includedir ;; 607 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 608 | --includ=* | --inclu=* | --incl=* | --inc=*) 609 includedir=$ac_optarg ;; 610 611 -infodir | --infodir | --infodi | --infod | --info | --inf) 612 ac_prev=infodir ;; 613 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 614 infodir=$ac_optarg ;; 615 616 -libdir | --libdir | --libdi | --libd) 617 ac_prev=libdir ;; 618 -libdir=* | --libdir=* | --libdi=* | --libd=*) 619 libdir=$ac_optarg ;; 620 621 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 622 | --libexe | --libex | --libe) 623 ac_prev=libexecdir ;; 624 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 625 | --libexe=* | --libex=* | --libe=*) 626 libexecdir=$ac_optarg ;; 627 628 -localstatedir | --localstatedir | --localstatedi | --localstated \ 629 | --localstate | --localstat | --localsta | --localst \ 630 | --locals | --local | --loca | --loc | --lo) 631 ac_prev=localstatedir ;; 632 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 633 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 634 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 635 localstatedir=$ac_optarg ;; 636 637 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 638 ac_prev=mandir ;; 639 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 640 mandir=$ac_optarg ;; 641 642 -nfp | --nfp | --nf) 643 # Obsolete; use --without-fp. 644 with_fp=no ;; 645 646 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 647 | --no-cr | --no-c | -n) 648 no_create=yes ;; 649 650 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 651 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 652 no_recursion=yes ;; 653 654 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 655 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 656 | --oldin | --oldi | --old | --ol | --o) 657 ac_prev=oldincludedir ;; 658 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 659 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 660 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 661 oldincludedir=$ac_optarg ;; 662 663 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 664 ac_prev=prefix ;; 665 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 666 prefix=$ac_optarg ;; 667 668 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 669 | --program-pre | --program-pr | --program-p) 670 ac_prev=program_prefix ;; 671 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 672 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 673 program_prefix=$ac_optarg ;; 674 675 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 676 | --program-suf | --program-su | --program-s) 677 ac_prev=program_suffix ;; 678 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 679 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 680 program_suffix=$ac_optarg ;; 681 682 -program-transform-name | --program-transform-name \ 683 | --program-transform-nam | --program-transform-na \ 684 | --program-transform-n | --program-transform- \ 685 | --program-transform | --program-transfor \ 686 | --program-transfo | --program-transf \ 687 | --program-trans | --program-tran \ 688 | --progr-tra | --program-tr | --program-t) 689 ac_prev=program_transform_name ;; 690 -program-transform-name=* | --program-transform-name=* \ 691 | --program-transform-nam=* | --program-transform-na=* \ 692 | --program-transform-n=* | --program-transform-=* \ 693 | --program-transform=* | --program-transfor=* \ 694 | --program-transfo=* | --program-transf=* \ 695 | --program-trans=* | --program-tran=* \ 696 | --progr-tra=* | --program-tr=* | --program-t=*) 697 program_transform_name=$ac_optarg ;; 698 699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 700 | -silent | --silent | --silen | --sile | --sil) 701 silent=yes ;; 702 703 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 704 ac_prev=sbindir ;; 705 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 706 | --sbi=* | --sb=*) 707 sbindir=$ac_optarg ;; 708 709 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 710 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 711 | --sharedst | --shareds | --shared | --share | --shar \ 712 | --sha | --sh) 713 ac_prev=sharedstatedir ;; 714 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 715 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 716 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 717 | --sha=* | --sh=*) 718 sharedstatedir=$ac_optarg ;; 719 720 -site | --site | --sit) 721 ac_prev=site ;; 722 -site=* | --site=* | --sit=*) 723 site=$ac_optarg ;; 724 725 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 726 ac_prev=srcdir ;; 727 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 728 srcdir=$ac_optarg ;; 729 730 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 731 | --syscon | --sysco | --sysc | --sys | --sy) 732 ac_prev=sysconfdir ;; 733 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 734 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 735 sysconfdir=$ac_optarg ;; 736 737 -target | --target | --targe | --targ | --tar | --ta | --t) 738 ac_prev=target_alias ;; 739 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 740 target_alias=$ac_optarg ;; 741 742 -v | -verbose | --verbose | --verbos | --verbo | --verb) 743 verbose=yes ;; 744 745 -version | --version | --versio | --versi | --vers | -V) 746 ac_init_version=: ;; 747 748 -with-* | --with-*) 749 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 750 # Reject names that are not valid shell variable names. 751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 752 { echo "$as_me: error: invalid package name: $ac_package" >&2 753 { (exit 1); exit 1; }; } 754 ac_package=`echo $ac_package| sed 's/-/_/g'` 755 case $ac_option in 756 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 757 *) ac_optarg=yes ;; 758 esac 759 eval "with_$ac_package='$ac_optarg'" ;; 760 761 -without-* | --without-*) 762 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 763 # Reject names that are not valid shell variable names. 764 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 765 { echo "$as_me: error: invalid package name: $ac_package" >&2 766 { (exit 1); exit 1; }; } 767 ac_package=`echo $ac_package | sed 's/-/_/g'` 768 eval "with_$ac_package=no" ;; 769 770 --x) 771 # Obsolete; use --with-x. 772 with_x=yes ;; 773 774 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 775 | --x-incl | --x-inc | --x-in | --x-i) 776 ac_prev=x_includes ;; 777 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 778 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 779 x_includes=$ac_optarg ;; 780 781 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 782 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 783 ac_prev=x_libraries ;; 784 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 785 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 786 x_libraries=$ac_optarg ;; 787 788 -*) { echo "$as_me: error: unrecognized option: $ac_option 789Try \`$0 --help' for more information." >&2 790 { (exit 1); exit 1; }; } 791 ;; 792 793 *=*) 794 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 795 # Reject names that are not valid shell variable names. 796 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 797 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 798 { (exit 1); exit 1; }; } 799 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 800 eval "$ac_envvar='$ac_optarg'" 801 export $ac_envvar ;; 802 803 *) 804 # FIXME: should be removed in autoconf 3.0. 805 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 806 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 807 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 808 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 809 ;; 810 811 esac 812done 813 814if test -n "$ac_prev"; then 815 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 816 { echo "$as_me: error: missing argument to $ac_option" >&2 817 { (exit 1); exit 1; }; } 818fi 819 820# Be sure to have absolute paths. 821for ac_var in exec_prefix prefix 822do 823 eval ac_val=$`echo $ac_var` 824 case $ac_val in 825 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 827 { (exit 1); exit 1; }; };; 828 esac 829done 830 831# Be sure to have absolute paths. 832for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 833 localstatedir libdir includedir oldincludedir infodir mandir 834do 835 eval ac_val=$`echo $ac_var` 836 case $ac_val in 837 [\\/$]* | ?:[\\/]* ) ;; 838 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 839 { (exit 1); exit 1; }; };; 840 esac 841done 842 843# There might be people who depend on the old broken behavior: `$host' 844# used to hold the argument of --host etc. 845# FIXME: To remove some day. 846build=$build_alias 847host=$host_alias 848target=$target_alias 849 850# FIXME: To remove some day. 851if test "x$host_alias" != x; then 852 if test "x$build_alias" = x; then 853 cross_compiling=maybe 854 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 855 If a cross compiler is detected then cross compile mode will be used." >&2 856 elif test "x$build_alias" != "x$host_alias"; then 857 cross_compiling=yes 858 fi 859fi 860 861ac_tool_prefix= 862test -n "$host_alias" && ac_tool_prefix=$host_alias- 863 864test "$silent" = yes && exec 6>/dev/null 865 866 867# Find the source files, if location was not specified. 868if test -z "$srcdir"; then 869 ac_srcdir_defaulted=yes 870 # Try the directory containing this script, then its parent. 871 ac_confdir=`(dirname "$0") 2>/dev/null || 872$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 873 X"$0" : 'X\(//\)[^/]' \| \ 874 X"$0" : 'X\(//\)$' \| \ 875 X"$0" : 'X\(/\)' \| \ 876 . : '\(.\)' 2>/dev/null || 877echo X"$0" | 878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 879 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 880 /^X\(\/\/\)$/{ s//\1/; q; } 881 /^X\(\/\).*/{ s//\1/; q; } 882 s/.*/./; q'` 883 srcdir=$ac_confdir 884 if test ! -r $srcdir/$ac_unique_file; then 885 srcdir=.. 886 fi 887else 888 ac_srcdir_defaulted=no 889fi 890if test ! -r $srcdir/$ac_unique_file; then 891 if test "$ac_srcdir_defaulted" = yes; then 892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 893 { (exit 1); exit 1; }; } 894 else 895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 896 { (exit 1); exit 1; }; } 897 fi 898fi 899(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 900 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 901 { (exit 1); exit 1; }; } 902srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 903ac_env_build_alias_set=${build_alias+set} 904ac_env_build_alias_value=$build_alias 905ac_cv_env_build_alias_set=${build_alias+set} 906ac_cv_env_build_alias_value=$build_alias 907ac_env_host_alias_set=${host_alias+set} 908ac_env_host_alias_value=$host_alias 909ac_cv_env_host_alias_set=${host_alias+set} 910ac_cv_env_host_alias_value=$host_alias 911ac_env_target_alias_set=${target_alias+set} 912ac_env_target_alias_value=$target_alias 913ac_cv_env_target_alias_set=${target_alias+set} 914ac_cv_env_target_alias_value=$target_alias 915ac_env_CC_set=${CC+set} 916ac_env_CC_value=$CC 917ac_cv_env_CC_set=${CC+set} 918ac_cv_env_CC_value=$CC 919ac_env_CFLAGS_set=${CFLAGS+set} 920ac_env_CFLAGS_value=$CFLAGS 921ac_cv_env_CFLAGS_set=${CFLAGS+set} 922ac_cv_env_CFLAGS_value=$CFLAGS 923ac_env_LDFLAGS_set=${LDFLAGS+set} 924ac_env_LDFLAGS_value=$LDFLAGS 925ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 926ac_cv_env_LDFLAGS_value=$LDFLAGS 927ac_env_CPPFLAGS_set=${CPPFLAGS+set} 928ac_env_CPPFLAGS_value=$CPPFLAGS 929ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 930ac_cv_env_CPPFLAGS_value=$CPPFLAGS 931ac_env_CPP_set=${CPP+set} 932ac_env_CPP_value=$CPP 933ac_cv_env_CPP_set=${CPP+set} 934ac_cv_env_CPP_value=$CPP 935 936# 937# Report the --help message. 938# 939if test "$ac_init_help" = "long"; then 940 # Omit some internal or obsolete options to make the list less imposing. 941 # This message is too long to be a string in the A/UX 3.1 sh. 942 cat <<_ACEOF 943\`configure' configures mydns 1.1.0 to adapt to many kinds of systems. 944 945Usage: $0 [OPTION]... [VAR=VALUE]... 946 947To assign environment variables (e.g., CC, CFLAGS...), specify them as 948VAR=VALUE. See below for descriptions of some of the useful variables. 949 950Defaults for the options are specified in brackets. 951 952Configuration: 953 -h, --help display this help and exit 954 --help=short display options specific to this package 955 --help=recursive display the short help of all the included packages 956 -V, --version display version information and exit 957 -q, --quiet, --silent do not print \`checking...' messages 958 --cache-file=FILE cache test results in FILE [disabled] 959 -C, --config-cache alias for \`--cache-file=config.cache' 960 -n, --no-create do not create output files 961 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 962 963_ACEOF 964 965 cat <<_ACEOF 966Installation directories: 967 --prefix=PREFIX install architecture-independent files in PREFIX 968 [$ac_default_prefix] 969 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 970 [PREFIX] 971 972By default, \`make install' will install all the files in 973\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 974an installation prefix other than \`$ac_default_prefix' using \`--prefix', 975for instance \`--prefix=\$HOME'. 976 977For better control, use the options below. 978 979Fine tuning of the installation directories: 980 --bindir=DIR user executables [EPREFIX/bin] 981 --sbindir=DIR system admin executables [EPREFIX/sbin] 982 --libexecdir=DIR program executables [EPREFIX/libexec] 983 --datadir=DIR read-only architecture-independent data [PREFIX/share] 984 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 985 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 986 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 987 --libdir=DIR object code libraries [EPREFIX/lib] 988 --includedir=DIR C header files [PREFIX/include] 989 --oldincludedir=DIR C header files for non-gcc [/usr/include] 990 --infodir=DIR info documentation [PREFIX/info] 991 --mandir=DIR man documentation [PREFIX/man] 992_ACEOF 993 994 cat <<\_ACEOF 995 996Program names: 997 --program-prefix=PREFIX prepend PREFIX to installed program names 998 --program-suffix=SUFFIX append SUFFIX to installed program names 999 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1000 1001System types: 1002 --build=BUILD configure for building on BUILD [guessed] 1003 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1004_ACEOF 1005fi 1006 1007if test -n "$ac_init_help"; then 1008 case $ac_init_help in 1009 short | recursive ) echo "Configuration of mydns 1.1.0:";; 1010 esac 1011 cat <<\_ACEOF 1012 1013Optional Features: 1014 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1015 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1016 --disable-dependency-tracking speeds up one-time build 1017 --enable-dependency-tracking do not reject slow dependency extractors 1018 --enable-shared=PKGS build shared libraries default=yes 1019 --enable-static=PKGS build static libraries default=yes 1020 --enable-fast-install=PKGS optimize for fast installation default=yes 1021 --disable-libtool-lock avoid locking (might break parallel builds) 1022 --disable-nls do not use Native Language Support 1023 --enable-alias enable alias patch (see contrib/README.alias) 1024 --enable-static-build build a static binary (mainly for RPM) 1025 --enable-profiling enable profiling 1026 --enable-debug enable debugging options 1027 --enable-valgrind compile with Valgrind-friendly flags 1028 --enable-strict-warnings 1029 compile with strict warning flags 1030 --enable-alt-names enable alternate column names (do not use) 1031 --enable-status enable remote server status reports 1032 --disable-date-logging disable date/time in verbose output 1033 1034Optional Packages: 1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1037 --with-gnu-ld assume the C compiler uses GNU ld default=no 1038 --with-pic try to use only PIC/non-PIC objects default=use both 1039 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 1040 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1041 --with-included-gettext use the GNU gettext library included here 1042 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib 1043 --without-libintl-prefix don't search for libintl in includedir and libdir 1044 --without-mysql configure without MySQL support 1045 --with-mysql-lib=DIR look for the MySQL client library in DIR 1046 --with-zlib=DIR look for the zlib compression library in DIR 1047 --with-mysql-include=DIR 1048 look for MySQL include files in DIR 1049 --without-pgsql configure without PostgreSQL support 1050 --with-pgsql-lib=DIR look for the PostgreSQL client library in DIR 1051 --with-pgsql-include=DIR 1052 look for PostgreSQL include files in DIR 1053 --with-openssl compile with OpenSSL support? 1054 --with-openssl-lib=DIR look for the OpenSSL libraries in DIR 1055 --with-openssl-include=DIR 1056 look for OpenSSL include files in DIR 1057 --with-confdir=DIR default config file path (default is `/etc') 1058 1059Some influential environment variables: 1060 CC C compiler command 1061 CFLAGS C compiler flags 1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1063 nonstandard directory <lib dir> 1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1065 headers in a nonstandard directory <include dir> 1066 CPP C preprocessor 1067 1068Use these variables to override the choices made by `configure' or to help 1069it to find libraries and programs with nonstandard names/locations. 1070 1071Report bugs to <bboy@bboy.net>. 1072_ACEOF 1073fi 1074 1075if test "$ac_init_help" = "recursive"; then 1076 # If there are subdirs, report their specific --help. 1077 ac_popdir=`pwd` 1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1079 test -d $ac_dir || continue 1080 ac_builddir=. 1081 1082if test "$ac_dir" != .; then 1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1084 # A "../" for each directory in $ac_dir_suffix. 1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1086else 1087 ac_dir_suffix= ac_top_builddir= 1088fi 1089 1090case $srcdir in 1091 .) # No --srcdir option. We are building in place. 1092 ac_srcdir=. 1093 if test -z "$ac_top_builddir"; then 1094 ac_top_srcdir=. 1095 else 1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1097 fi ;; 1098 [\\/]* | ?:[\\/]* ) # Absolute path. 1099 ac_srcdir=$srcdir$ac_dir_suffix; 1100 ac_top_srcdir=$srcdir ;; 1101 *) # Relative path. 1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1103 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1104esac 1105 1106# Do not use `cd foo && pwd` to compute absolute paths, because 1107# the directories may not exist. 1108case `pwd` in 1109.) ac_abs_builddir="$ac_dir";; 1110*) 1111 case "$ac_dir" in 1112 .) ac_abs_builddir=`pwd`;; 1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1114 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1115 esac;; 1116esac 1117case $ac_abs_builddir in 1118.) ac_abs_top_builddir=${ac_top_builddir}.;; 1119*) 1120 case ${ac_top_builddir}. in 1121 .) ac_abs_top_builddir=$ac_abs_builddir;; 1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1124 esac;; 1125esac 1126case $ac_abs_builddir in 1127.) ac_abs_srcdir=$ac_srcdir;; 1128*) 1129 case $ac_srcdir in 1130 .) ac_abs_srcdir=$ac_abs_builddir;; 1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1133 esac;; 1134esac 1135case $ac_abs_builddir in 1136.) ac_abs_top_srcdir=$ac_top_srcdir;; 1137*) 1138 case $ac_top_srcdir in 1139 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1142 esac;; 1143esac 1144 1145 cd $ac_dir 1146 # Check for guested configure; otherwise get Cygnus style configure. 1147 if test -f $ac_srcdir/configure.gnu; then 1148 echo 1149 $SHELL $ac_srcdir/configure.gnu --help=recursive 1150 elif test -f $ac_srcdir/configure; then 1151 echo 1152 $SHELL $ac_srcdir/configure --help=recursive 1153 elif test -f $ac_srcdir/configure.ac || 1154 test -f $ac_srcdir/configure.in; then 1155 echo 1156 $ac_configure --help 1157 else 1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1159 fi 1160 cd $ac_popdir 1161 done 1162fi 1163 1164test -n "$ac_init_help" && exit 0 1165if $ac_init_version; then 1166 cat <<\_ACEOF 1167mydns configure 1.1.0 1168generated by GNU Autoconf 2.59 1169 1170Copyright (C) 2003 Free Software Foundation, Inc. 1171This configure script is free software; the Free Software Foundation 1172gives unlimited permission to copy, distribute and modify it. 1173 1174Portions of this script are Copyright 2002-2005 Don Moore 1175_ACEOF 1176 exit 0 1177fi 1178exec 5>config.log 1179cat >&5 <<_ACEOF 1180This file contains any messages produced by compilers while 1181running configure, to aid debugging if configure makes a mistake. 1182 1183It was created by mydns $as_me 1.1.0, which was 1184generated by GNU Autoconf 2.59. Invocation command line was 1185 1186 $ $0 $@ 1187 1188_ACEOF 1189{ 1190cat <<_ASUNAME 1191## --------- ## 1192## Platform. ## 1193## --------- ## 1194 1195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1196uname -m = `(uname -m) 2>/dev/null || echo unknown` 1197uname -r = `(uname -r) 2>/dev/null || echo unknown` 1198uname -s = `(uname -s) 2>/dev/null || echo unknown` 1199uname -v = `(uname -v) 2>/dev/null || echo unknown` 1200 1201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1202/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1203 1204/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1205/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1207hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1208/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1209/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1210/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1211 1212_ASUNAME 1213 1214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1215for as_dir in $PATH 1216do 1217 IFS=$as_save_IFS 1218 test -z "$as_dir" && as_dir=. 1219 echo "PATH: $as_dir" 1220done 1221 1222} >&5 1223 1224cat >&5 <<_ACEOF 1225 1226 1227## ----------- ## 1228## Core tests. ## 1229## ----------- ## 1230 1231_ACEOF 1232 1233 1234# Keep a trace of the command line. 1235# Strip out --no-create and --no-recursion so they do not pile up. 1236# Strip out --silent because we don't want to record it for future runs. 1237# Also quote any args containing shell meta-characters. 1238# Make two passes to allow for proper duplicate-argument suppression. 1239ac_configure_args= 1240ac_configure_args0= 1241ac_configure_args1= 1242ac_sep= 1243ac_must_keep_next=false 1244for ac_pass in 1 2 1245do 1246 for ac_arg 1247 do 1248 case $ac_arg in 1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1251 | -silent | --silent | --silen | --sile | --sil) 1252 continue ;; 1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1255 esac 1256 case $ac_pass in 1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1258 2) 1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1260 if test $ac_must_keep_next = true; then 1261 ac_must_keep_next=false # Got value, back to normal. 1262 else 1263 case $ac_arg in 1264 *=* | --config-cache | -C | -disable-* | --disable-* \ 1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1267 | -with-* | --with-* | -without-* | --without-* | --x) 1268 case "$ac_configure_args0 " in 1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1270 esac 1271 ;; 1272 -* ) ac_must_keep_next=true ;; 1273 esac 1274 fi 1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1276 # Get rid of the leading space. 1277 ac_sep=" " 1278 ;; 1279 esac 1280 done 1281done 1282$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1283$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1284 1285# When interrupted or exit'd, cleanup temporary files, and complete 1286# config.log. We remove comments because anyway the quotes in there 1287# would cause problems or look ugly. 1288# WARNING: Be sure not to use single quotes in there, as some shells, 1289# such as our DU 5.0 friend, will then `close' the trap. 1290trap 'exit_status=$? 1291 # Save into config.log some information that might help in debugging. 1292 { 1293 echo 1294 1295 cat <<\_ASBOX 1296## ---------------- ## 1297## Cache variables. ## 1298## ---------------- ## 1299_ASBOX 1300 echo 1301 # The following way of writing the cache mishandles newlines in values, 1302{ 1303 (set) 2>&1 | 1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1305 *ac_space=\ *) 1306 sed -n \ 1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1309 ;; 1310 *) 1311 sed -n \ 1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1313 ;; 1314 esac; 1315} 1316 echo 1317 1318 cat <<\_ASBOX 1319## ----------------- ## 1320## Output variables. ## 1321## ----------------- ## 1322_ASBOX 1323 echo 1324 for ac_var in $ac_subst_vars 1325 do 1326 eval ac_val=$`echo $ac_var` 1327 echo "$ac_var='"'"'$ac_val'"'"'" 1328 done | sort 1329 echo 1330 1331 if test -n "$ac_subst_files"; then 1332 cat <<\_ASBOX 1333## ------------- ## 1334## Output files. ## 1335## ------------- ## 1336_ASBOX 1337 echo 1338 for ac_var in $ac_subst_files 1339 do 1340 eval ac_val=$`echo $ac_var` 1341 echo "$ac_var='"'"'$ac_val'"'"'" 1342 done | sort 1343 echo 1344 fi 1345 1346 if test -s confdefs.h; then 1347 cat <<\_ASBOX 1348## ----------- ## 1349## confdefs.h. ## 1350## ----------- ## 1351_ASBOX 1352 echo 1353 sed "/^$/d" confdefs.h | sort 1354 echo 1355 fi 1356 test "$ac_signal" != 0 && 1357 echo "$as_me: caught signal $ac_signal" 1358 echo "$as_me: exit $exit_status" 1359 } >&5 1360 rm -f core *.core && 1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1362 exit $exit_status 1363 ' 0 1364for ac_signal in 1 2 13 15; do 1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1366done 1367ac_signal=0 1368 1369# confdefs.h avoids OS command line length limits that DEFS can exceed. 1370rm -rf conftest* confdefs.h 1371# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1372echo >confdefs.h 1373 1374# Predefined preprocessor variables. 1375 1376cat >>confdefs.h <<_ACEOF 1377#define PACKAGE_NAME "$PACKAGE_NAME" 1378_ACEOF 1379 1380 1381cat >>confdefs.h <<_ACEOF 1382#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1383_ACEOF 1384 1385 1386cat >>confdefs.h <<_ACEOF 1387#define PACKAGE_VERSION "$PACKAGE_VERSION" 1388_ACEOF 1389 1390 1391cat >>confdefs.h <<_ACEOF 1392#define PACKAGE_STRING "$PACKAGE_STRING" 1393_ACEOF 1394 1395 1396cat >>confdefs.h <<_ACEOF 1397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1398_ACEOF 1399 1400 1401# Let the site file select an alternate cache file if it wants to. 1402# Prefer explicitly selected file to automatically selected ones. 1403if test -z "$CONFIG_SITE"; then 1404 if test "x$prefix" != xNONE; then 1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1406 else 1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1408 fi 1409fi 1410for ac_site_file in $CONFIG_SITE; do 1411 if test -r "$ac_site_file"; then 1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1413echo "$as_me: loading site script $ac_site_file" >&6;} 1414 sed 's/^/| /' "$ac_site_file" >&5 1415 . "$ac_site_file" 1416 fi 1417done 1418 1419if test -r "$cache_file"; then 1420 # Some versions of bash will fail to source /dev/null (special 1421 # files actually), so we avoid doing that. 1422 if test -f "$cache_file"; then 1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1424echo "$as_me: loading cache $cache_file" >&6;} 1425 case $cache_file in 1426 [\\/]* | ?:[\\/]* ) . $cache_file;; 1427 *) . ./$cache_file;; 1428 esac 1429 fi 1430else 1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1432echo "$as_me: creating cache $cache_file" >&6;} 1433 >$cache_file 1434fi 1435 1436# Check that the precious variables saved in the cache have kept the same 1437# value. 1438ac_cache_corrupted=false 1439for ac_var in `(set) 2>&1 | 1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1442 eval ac_new_set=\$ac_env_${ac_var}_set 1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1444 eval ac_new_val="\$ac_env_${ac_var}_value" 1445 case $ac_old_set,$ac_new_set in 1446 set,) 1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1448echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1449 ac_cache_corrupted=: ;; 1450 ,set) 1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1452echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1453 ac_cache_corrupted=: ;; 1454 ,);; 1455 *) 1456 if test "x$ac_old_val" != "x$ac_new_val"; then 1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1458echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1460echo "$as_me: former value: $ac_old_val" >&2;} 1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1462echo "$as_me: current value: $ac_new_val" >&2;} 1463 ac_cache_corrupted=: 1464 fi;; 1465 esac 1466 # Pass precious variables to config.status. 1467 if test "$ac_new_set" = set; then 1468 case $ac_new_val in 1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1471 *) ac_arg=$ac_var=$ac_new_val ;; 1472 esac 1473 case " $ac_configure_args " in 1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1476 esac 1477 fi 1478done 1479if $ac_cache_corrupted; then 1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1481echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1483echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1484 { (exit 1); exit 1; }; } 1485fi 1486 1487ac_ext=c 1488ac_cpp='$CPP $CPPFLAGS' 1489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1491ac_compiler_gnu=$ac_cv_c_compiler_gnu 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 ## Package name, version, bugreport address 1519 1520 1521am__api_version="1.9" 1522ac_aux_dir= 1523for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1524 if test -f $ac_dir/install-sh; then 1525 ac_aux_dir=$ac_dir 1526 ac_install_sh="$ac_aux_dir/install-sh -c" 1527 break 1528 elif test -f $ac_dir/install.sh; then 1529 ac_aux_dir=$ac_dir 1530 ac_install_sh="$ac_aux_dir/install.sh -c" 1531 break 1532 elif test -f $ac_dir/shtool; then 1533 ac_aux_dir=$ac_dir 1534 ac_install_sh="$ac_aux_dir/shtool install -c" 1535 break 1536 fi 1537done 1538if test -z "$ac_aux_dir"; then 1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1540echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1541 { (exit 1); exit 1; }; } 1542fi 1543ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1544ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1546 1547# Find a good install program. We prefer a C program (faster), 1548# so one script is as good as another. But avoid the broken or 1549# incompatible versions: 1550# SysV /etc/install, /usr/sbin/install 1551# SunOS /usr/etc/install 1552# IRIX /sbin/install 1553# AIX /bin/install 1554# AmigaOS /C/install, which installs bootblocks on floppy discs 1555# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1556# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1557# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1558# OS/2's system install, which has a completely different semantic 1559# ./install, which can be erroneously created by make from ./install.sh. 1560echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1561echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1562if test -z "$INSTALL"; then 1563if test "${ac_cv_path_install+set}" = set; then 1564 echo $ECHO_N "(cached) $ECHO_C" >&6 1565else 1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1567for as_dir in $PATH 1568do 1569 IFS=$as_save_IFS 1570 test -z "$as_dir" && as_dir=. 1571 # Account for people who put trailing slashes in PATH elements. 1572case $as_dir/ in 1573 ./ | .// | /cC/* | \ 1574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1575 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1576 /usr/ucb/* ) ;; 1577 *) 1578 # OSF1 and SCO ODT 3.0 have their own names for install. 1579 # Don't use installbsd from OSF since it installs stuff as root 1580 # by default. 1581 for ac_prog in ginstall scoinst install; do 1582 for ac_exec_ext in '' $ac_executable_extensions; do 1583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1584 if test $ac_prog = install && 1585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1586 # AIX install. It has an incompatible calling convention. 1587 : 1588 elif test $ac_prog = install && 1589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1590 # program-specific install script used by HP pwplus--don't use. 1591 : 1592 else 1593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1594 break 3 1595 fi 1596 fi 1597 done 1598 done 1599 ;; 1600esac 1601done 1602 1603 1604fi 1605 if test "${ac_cv_path_install+set}" = set; then 1606 INSTALL=$ac_cv_path_install 1607 else 1608 # As a last resort, use the slow shell script. We don't cache a 1609 # path for INSTALL within a source directory, because that will 1610 # break other packages using the cache if that directory is 1611 # removed, or if the path is relative. 1612 INSTALL=$ac_install_sh 1613 fi 1614fi 1615echo "$as_me:$LINENO: result: $INSTALL" >&5 1616echo "${ECHO_T}$INSTALL" >&6 1617 1618# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1619# It thinks the first close brace ends the variable substitution. 1620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1621 1622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1623 1624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1625 1626echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1627echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1628# Just in case 1629sleep 1 1630echo timestamp > conftest.file 1631# Do `set' in a subshell so we don't clobber the current shell's 1632# arguments. Must try -L first in case configure is actually a 1633# symlink; some systems play weird games with the mod time of symlinks 1634# (eg FreeBSD returns the mod time of the symlink's containing 1635# directory). 1636if ( 1637 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1638 if test "$*" = "X"; then 1639 # -L didn't work. 1640 set X `ls -t $srcdir/configure conftest.file` 1641 fi 1642 rm -f conftest.file 1643 if test "$*" != "X $srcdir/configure conftest.file" \ 1644 && test "$*" != "X conftest.file $srcdir/configure"; then 1645 1646 # If neither matched, then we have a broken ls. This can happen 1647 # if, for instance, CONFIG_SHELL is bash and it inherits a 1648 # broken ls alias from the environment. This has actually 1649 # happened. Such a system could not be considered "sane". 1650 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1651alias in your environment" >&5 1652echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1653alias in your environment" >&2;} 1654 { (exit 1); exit 1; }; } 1655 fi 1656 1657 test "$2" = conftest.file 1658 ) 1659then 1660 # Ok. 1661 : 1662else 1663 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1664Check your system clock" >&5 1665echo "$as_me: error: newly created file is older than distributed files! 1666Check your system clock" >&2;} 1667 { (exit 1); exit 1; }; } 1668fi 1669echo "$as_me:$LINENO: result: yes" >&5 1670echo "${ECHO_T}yes" >&6 1671test "$program_prefix" != NONE && 1672 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1673# Use a double $ so make ignores it. 1674test "$program_suffix" != NONE && 1675 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1676# Double any \ or $. echo might interpret backslashes. 1677# By default was `s,x,x', remove it if useless. 1678cat <<\_ACEOF >conftest.sed 1679s/[\\$]/&&/g;s/;s,x,x,$// 1680_ACEOF 1681program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1682rm conftest.sed 1683 1684# expand $ac_aux_dir to an absolute path 1685am_aux_dir=`cd $ac_aux_dir && pwd` 1686 1687test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1688# Use eval to expand $SHELL 1689if eval "$MISSING --run true"; then 1690 am_missing_run="$MISSING --run " 1691else 1692 am_missing_run= 1693 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1694echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1695fi 1696 1697if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1698 # We used to keeping the `.' as first argument, in order to 1699 # allow $(mkdir_p) to be used without argument. As in 1700 # $(mkdir_p) $(somedir) 1701 # where $(somedir) is conditionally defined. However this is wrong 1702 # for two reasons: 1703 # 1. if the package is installed by a user who cannot write `.' 1704 # make install will fail, 1705 # 2. the above comment should most certainly read 1706 # $(mkdir_p) $(DESTDIR)$(somedir) 1707 # so it does not work when $(somedir) is undefined and 1708 # $(DESTDIR) is not. 1709 # To support the latter case, we have to write 1710 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1711 # so the `.' trick is pointless. 1712 mkdir_p='mkdir -p --' 1713else 1714 # On NextStep and OpenStep, the `mkdir' command does not 1715 # recognize any option. It will interpret all options as 1716 # directories to create, and then abort because `.' already 1717 # exists. 1718 for d in ./-p ./--version; 1719 do 1720 test -d $d && rmdir $d 1721 done 1722 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1723 if test -f "$ac_aux_dir/mkinstalldirs"; then 1724 mkdir_p='$(mkinstalldirs)' 1725 else 1726 mkdir_p='$(install_sh) -d' 1727 fi 1728fi 1729 1730for ac_prog in gawk mawk nawk awk 1731do 1732 # Extract the first word of "$ac_prog", so it can be a program name with args. 1733set dummy $ac_prog; ac_word=$2 1734echo "$as_me:$LINENO: checking for $ac_word" >&5 1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1736if test "${ac_cv_prog_AWK+set}" = set; then 1737 echo $ECHO_N "(cached) $ECHO_C" >&6 1738else 1739 if test -n "$AWK"; then 1740 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1741else 1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1743for as_dir in $PATH 1744do 1745 IFS=$as_save_IFS 1746 test -z "$as_dir" && as_dir=. 1747 for ac_exec_ext in '' $ac_executable_extensions; do 1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1749 ac_cv_prog_AWK="$ac_prog" 1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1751 break 2 1752 fi 1753done 1754done 1755 1756fi 1757fi 1758AWK=$ac_cv_prog_AWK 1759if test -n "$AWK"; then 1760 echo "$as_me:$LINENO: result: $AWK" >&5 1761echo "${ECHO_T}$AWK" >&6 1762else 1763 echo "$as_me:$LINENO: result: no" >&5 1764echo "${ECHO_T}no" >&6 1765fi 1766 1767 test -n "$AWK" && break 1768done 1769 1770echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1771echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1772set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1773if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1774 echo $ECHO_N "(cached) $ECHO_C" >&6 1775else 1776 cat >conftest.make <<\_ACEOF 1777all: 1778 @echo 'ac_maketemp="$(MAKE)"' 1779_ACEOF 1780# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1781eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1782if test -n "$ac_maketemp"; then 1783 eval ac_cv_prog_make_${ac_make}_set=yes 1784else 1785 eval ac_cv_prog_make_${ac_make}_set=no 1786fi 1787rm -f conftest.make 1788fi 1789if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1790 echo "$as_me:$LINENO: result: yes" >&5 1791echo "${ECHO_T}yes" >&6 1792 SET_MAKE= 1793else 1794 echo "$as_me:$LINENO: result: no" >&5 1795echo "${ECHO_T}no" >&6 1796 SET_MAKE="MAKE=${MAKE-make}" 1797fi 1798 1799rm -rf .tst 2>/dev/null 1800mkdir .tst 2>/dev/null 1801if test -d .tst; then 1802 am__leading_dot=. 1803else 1804 am__leading_dot=_ 1805fi 1806rmdir .tst 2>/dev/null 1807 1808# test to see if srcdir already configured 1809if test "`cd $srcdir && pwd`" != "`pwd`" && 1810 test -f $srcdir/config.status; then 1811 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1812echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1813 { (exit 1); exit 1; }; } 1814fi 1815 1816# test whether we have cygpath 1817if test -z "$CYGPATH_W"; then 1818 if (cygpath --version) >/dev/null 2>/dev/null; then 1819 CYGPATH_W='cygpath -w' 1820 else 1821 CYGPATH_W=echo 1822 fi 1823fi 1824 1825 1826# Define the identity of the package. 1827 PACKAGE='mydns' 1828 VERSION='1.1.0' 1829 1830 1831cat >>confdefs.h <<_ACEOF 1832#define PACKAGE "$PACKAGE" 1833_ACEOF 1834 1835 1836cat >>confdefs.h <<_ACEOF 1837#define VERSION "$VERSION" 1838_ACEOF 1839 1840# Some tools Automake needs. 1841 1842ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1843 1844 1845AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1846 1847 1848AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1849 1850 1851AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1852 1853 1854MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1855 1856install_sh=${install_sh-"$am_aux_dir/install-sh"} 1857 1858# Installed binaries are usually stripped using `strip' when the user 1859# run `make install-strip'. However `strip' might not be the right 1860# tool to use in cross-compilation environments, therefore Automake 1861# will honor the `STRIP' environment variable to overrule this program. 1862if test "$cross_compiling" != no; then 1863 if test -n "$ac_tool_prefix"; then 1864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1865set dummy ${ac_tool_prefix}strip; ac_word=$2 1866echo "$as_me:$LINENO: checking for $ac_word" >&5 1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1868if test "${ac_cv_prog_STRIP+set}" = set; then 1869 echo $ECHO_N "(cached) $ECHO_C" >&6 1870else 1871 if test -n "$STRIP"; then 1872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1873else 1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1875for as_dir in $PATH 1876do 1877 IFS=$as_save_IFS 1878 test -z "$as_dir" && as_dir=. 1879 for ac_exec_ext in '' $ac_executable_extensions; do 1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1881 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1883 break 2 1884 fi 1885done 1886done 1887 1888fi 1889fi 1890STRIP=$ac_cv_prog_STRIP 1891if test -n "$STRIP"; then 1892 echo "$as_me:$LINENO: result: $STRIP" >&5 1893echo "${ECHO_T}$STRIP" >&6 1894else 1895 echo "$as_me:$LINENO: result: no" >&5 1896echo "${ECHO_T}no" >&6 1897fi 1898 1899fi 1900if test -z "$ac_cv_prog_STRIP"; then 1901 ac_ct_STRIP=$STRIP 1902 # Extract the first word of "strip", so it can be a program name with args. 1903set dummy strip; ac_word=$2 1904echo "$as_me:$LINENO: checking for $ac_word" >&5 1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1906if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1907 echo $ECHO_N "(cached) $ECHO_C" >&6 1908else 1909 if test -n "$ac_ct_STRIP"; then 1910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1911else 1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1913for as_dir in $PATH 1914do 1915 IFS=$as_save_IFS 1916 test -z "$as_dir" && as_dir=. 1917 for ac_exec_ext in '' $ac_executable_extensions; do 1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1919 ac_cv_prog_ac_ct_STRIP="strip" 1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1921 break 2 1922 fi 1923done 1924done 1925 1926 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1927fi 1928fi 1929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1930if test -n "$ac_ct_STRIP"; then 1931 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1932echo "${ECHO_T}$ac_ct_STRIP" >&6 1933else 1934 echo "$as_me:$LINENO: result: no" >&5 1935echo "${ECHO_T}no" >&6 1936fi 1937 1938 STRIP=$ac_ct_STRIP 1939else 1940 STRIP="$ac_cv_prog_STRIP" 1941fi 1942 1943fi 1944INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1945 1946# We need awk for the "check" target. The system "awk" is bad on 1947# some platforms. 1948# Always define AMTAR for backward compatibility. 1949 1950AMTAR=${AMTAR-"${am_missing_run}tar"} 1951 1952am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1953 1954 1955 1956 1957 1958 ac_config_headers="$ac_config_headers config.h" 1959 1960 1961## Checks for programs 1962for ac_prog in gawk mawk nawk awk 1963do 1964 # Extract the first word of "$ac_prog", so it can be a program name with args. 1965set dummy $ac_prog; ac_word=$2 1966echo "$as_me:$LINENO: checking for $ac_word" >&5 1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1968if test "${ac_cv_prog_AWK+set}" = set; then 1969 echo $ECHO_N "(cached) $ECHO_C" >&6 1970else 1971 if test -n "$AWK"; then 1972 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1973else 1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1975for as_dir in $PATH 1976do 1977 IFS=$as_save_IFS 1978 test -z "$as_dir" && as_dir=. 1979 for ac_exec_ext in '' $ac_executable_extensions; do 1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1981 ac_cv_prog_AWK="$ac_prog" 1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1983 break 2 1984 fi 1985done 1986done 1987 1988fi 1989fi 1990AWK=$ac_cv_prog_AWK 1991if test -n "$AWK"; then 1992 echo "$as_me:$LINENO: result: $AWK" >&5 1993echo "${ECHO_T}$AWK" >&6 1994else 1995 echo "$as_me:$LINENO: result: no" >&5 1996echo "${ECHO_T}no" >&6 1997fi 1998 1999 test -n "$AWK" && break 2000done 2001 2002ac_ext=c 2003ac_cpp='$CPP $CPPFLAGS' 2004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2006ac_compiler_gnu=$ac_cv_c_compiler_gnu 2007if test -n "$ac_tool_prefix"; then 2008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2009set dummy ${ac_tool_prefix}gcc; ac_word=$2 2010echo "$as_me:$LINENO: checking for $ac_word" >&5 2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2012if test "${ac_cv_prog_CC+set}" = set; then 2013 echo $ECHO_N "(cached) $ECHO_C" >&6 2014else 2015 if test -n "$CC"; then 2016 ac_cv_prog_CC="$CC" # Let the user override the test. 2017else 2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019for as_dir in $PATH 2020do 2021 IFS=$as_save_IFS 2022 test -z "$as_dir" && as_dir=. 2023 for ac_exec_ext in '' $ac_executable_extensions; do 2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2025 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2027 break 2 2028 fi 2029done 2030done 2031 2032fi 2033fi 2034CC=$ac_cv_prog_CC 2035if test -n "$CC"; then 2036 echo "$as_me:$LINENO: result: $CC" >&5 2037echo "${ECHO_T}$CC" >&6 2038else 2039 echo "$as_me:$LINENO: result: no" >&5 2040echo "${ECHO_T}no" >&6 2041fi 2042 2043fi 2044if test -z "$ac_cv_prog_CC"; then 2045 ac_ct_CC=$CC 2046 # Extract the first word of "gcc", so it can be a program name with args. 2047set dummy gcc; ac_word=$2 2048echo "$as_me:$LINENO: checking for $ac_word" >&5 2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2050if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052else 2053 if test -n "$ac_ct_CC"; then 2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2055else 2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2057for as_dir in $PATH 2058do 2059 IFS=$as_save_IFS 2060 test -z "$as_dir" && as_dir=. 2061 for ac_exec_ext in '' $ac_executable_extensions; do 2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2063 ac_cv_prog_ac_ct_CC="gcc" 2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2065 break 2 2066 fi 2067done 2068done 2069 2070fi 2071fi 2072ac_ct_CC=$ac_cv_prog_ac_ct_CC 2073if test -n "$ac_ct_CC"; then 2074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2075echo "${ECHO_T}$ac_ct_CC" >&6 2076else 2077 echo "$as_me:$LINENO: result: no" >&5 2078echo "${ECHO_T}no" >&6 2079fi 2080 2081 CC=$ac_ct_CC 2082else 2083 CC="$ac_cv_prog_CC" 2084fi 2085 2086if test -z "$CC"; then 2087 if test -n "$ac_tool_prefix"; then 2088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2089set dummy ${ac_tool_prefix}cc; ac_word=$2 2090echo "$as_me:$LINENO: checking for $ac_word" >&5 2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2092if test "${ac_cv_prog_CC+set}" = set; then 2093 echo $ECHO_N "(cached) $ECHO_C" >&6 2094else 2095 if test -n "$CC"; then 2096 ac_cv_prog_CC="$CC" # Let the user override the test. 2097else 2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2099for as_dir in $PATH 2100do 2101 IFS=$as_save_IFS 2102 test -z "$as_dir" && as_dir=. 2103 for ac_exec_ext in '' $ac_executable_extensions; do 2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2105 ac_cv_prog_CC="${ac_tool_prefix}cc" 2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2107 break 2 2108 fi 2109done 2110done 2111 2112fi 2113fi 2114CC=$ac_cv_prog_CC 2115if test -n "$CC"; then 2116 echo "$as_me:$LINENO: result: $CC" >&5 2117echo "${ECHO_T}$CC" >&6 2118else 2119 echo "$as_me:$LINENO: result: no" >&5 2120echo "${ECHO_T}no" >&6 2121fi 2122 2123fi 2124if test -z "$ac_cv_prog_CC"; then 2125 ac_ct_CC=$CC 2126 # Extract the first word of "cc", so it can be a program name with args. 2127set dummy cc; ac_word=$2 2128echo "$as_me:$LINENO: checking for $ac_word" >&5 2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2131 echo $ECHO_N "(cached) $ECHO_C" >&6 2132else 2133 if test -n "$ac_ct_CC"; then 2134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2135else 2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2137for as_dir in $PATH 2138do 2139 IFS=$as_save_IFS 2140 test -z "$as_dir" && as_dir=. 2141 for ac_exec_ext in '' $ac_executable_extensions; do 2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2143 ac_cv_prog_ac_ct_CC="cc" 2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2145 break 2 2146 fi 2147done 2148done 2149 2150fi 2151fi 2152ac_ct_CC=$ac_cv_prog_ac_ct_CC 2153if test -n "$ac_ct_CC"; then 2154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2155echo "${ECHO_T}$ac_ct_CC" >&6 2156else 2157 echo "$as_me:$LINENO: result: no" >&5 2158echo "${ECHO_T}no" >&6 2159fi 2160 2161 CC=$ac_ct_CC 2162else 2163 CC="$ac_cv_prog_CC" 2164fi 2165 2166fi 2167if test -z "$CC"; then 2168 # Extract the first word of "cc", so it can be a program name with args. 2169set dummy cc; ac_word=$2 2170echo "$as_me:$LINENO: checking for $ac_word" >&5 2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2172if test "${ac_cv_prog_CC+set}" = set; then 2173 echo $ECHO_N "(cached) $ECHO_C" >&6 2174else 2175 if test -n "$CC"; then 2176 ac_cv_prog_CC="$CC" # Let the user override the test. 2177else 2178 ac_prog_rejected=no 2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2180for as_dir in $PATH 2181do 2182 IFS=$as_save_IFS 2183 test -z "$as_dir" && as_dir=. 2184 for ac_exec_ext in '' $ac_executable_extensions; do 2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2187 ac_prog_rejected=yes 2188 continue 2189 fi 2190 ac_cv_prog_CC="cc" 2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2192 break 2 2193 fi 2194done 2195done 2196 2197if test $ac_prog_rejected = yes; then 2198 # We found a bogon in the path, so make sure we never use it. 2199 set dummy $ac_cv_prog_CC 2200 shift 2201 if test $# != 0; then 2202 # We chose a different compiler from the bogus one. 2203 # However, it has the same basename, so the bogon will be chosen 2204 # first if we set CC to just the basename; use the full file name. 2205 shift 2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2207 fi 2208fi 2209fi 2210fi 2211CC=$ac_cv_prog_CC 2212if test -n "$CC"; then 2213 echo "$as_me:$LINENO: result: $CC" >&5 2214echo "${ECHO_T}$CC" >&6 2215else 2216 echo "$as_me:$LINENO: result: no" >&5 2217echo "${ECHO_T}no" >&6 2218fi 2219 2220fi 2221if test -z "$CC"; then 2222 if test -n "$ac_tool_prefix"; then 2223 for ac_prog in cl 2224 do 2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2227echo "$as_me:$LINENO: checking for $ac_word" >&5 2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2229if test "${ac_cv_prog_CC+set}" = set; then 2230 echo $ECHO_N "(cached) $ECHO_C" >&6 2231else 2232 if test -n "$CC"; then 2233 ac_cv_prog_CC="$CC" # Let the user override the test. 2234else 2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236for as_dir in $PATH 2237do 2238 IFS=$as_save_IFS 2239 test -z "$as_dir" && as_dir=. 2240 for ac_exec_ext in '' $ac_executable_extensions; do 2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2244 break 2 2245 fi 2246done 2247done 2248 2249fi 2250fi 2251CC=$ac_cv_prog_CC 2252if test -n "$CC"; then 2253 echo "$as_me:$LINENO: result: $CC" >&5 2254echo "${ECHO_T}$CC" >&6 2255else 2256 echo "$as_me:$LINENO: result: no" >&5 2257echo "${ECHO_T}no" >&6 2258fi 2259 2260 test -n "$CC" && break 2261 done 2262fi 2263if test -z "$CC"; then 2264 ac_ct_CC=$CC 2265 for ac_prog in cl 2266do 2267 # Extract the first word of "$ac_prog", so it can be a program name with args. 2268set dummy $ac_prog; ac_word=$2 2269echo "$as_me:$LINENO: checking for $ac_word" >&5 2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273else 2274 if test -n "$ac_ct_CC"; then 2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2276else 2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 for ac_exec_ext in '' $ac_executable_extensions; do 2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2284 ac_cv_prog_ac_ct_CC="$ac_prog" 2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2286 break 2 2287 fi 2288done 2289done 2290 2291fi 2292fi 2293ac_ct_CC=$ac_cv_prog_ac_ct_CC 2294if test -n "$ac_ct_CC"; then 2295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2296echo "${ECHO_T}$ac_ct_CC" >&6 2297else 2298 echo "$as_me:$LINENO: result: no" >&5 2299echo "${ECHO_T}no" >&6 2300fi 2301 2302 test -n "$ac_ct_CC" && break 2303done 2304 2305 CC=$ac_ct_CC 2306fi 2307 2308fi 2309 2310 2311test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2312See \`config.log' for more details." >&5 2313echo "$as_me: error: no acceptable C compiler found in \$PATH 2314See \`config.log' for more details." >&2;} 2315 { (exit 1); exit 1; }; } 2316 2317# Provide some information about the compiler. 2318echo "$as_me:$LINENO:" \ 2319 "checking for C compiler version" >&5 2320ac_compiler=`set X $ac_compile; echo $2` 2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2322 (eval $ac_compiler --version </dev/null >&5) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); } 2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2327 (eval $ac_compiler -v </dev/null >&5) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); } 2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2332 (eval $ac_compiler -V </dev/null >&5) 2>&5 2333 ac_status=$? 2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2335 (exit $ac_status); } 2336 2337cat >conftest.$ac_ext <<_ACEOF 2338/* confdefs.h. */ 2339_ACEOF 2340cat confdefs.h >>conftest.$ac_ext 2341cat >>conftest.$ac_ext <<_ACEOF 2342/* end confdefs.h. */ 2343 2344int 2345main () 2346{ 2347 2348 ; 2349 return 0; 2350} 2351_ACEOF 2352ac_clean_files_save=$ac_clean_files 2353ac_clean_files="$ac_clean_files a.out a.exe b.out" 2354# Try to create an executable without -o first, disregard a.out. 2355# It will help us diagnose broken compilers, and finding out an intuition 2356# of exeext. 2357echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2358echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2359ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2360if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2361 (eval $ac_link_default) 2>&5 2362 ac_status=$? 2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2364 (exit $ac_status); }; then 2365 # Find the output, starting from the most likely. This scheme is 2366# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2367# resort. 2368 2369# Be careful to initialize this variable, since it used to be cached. 2370# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2371ac_cv_exeext= 2372# b.out is created by i960 compilers. 2373for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2374do 2375 test -f "$ac_file" || continue 2376 case $ac_file in 2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2378 ;; 2379 conftest.$ac_ext ) 2380 # This is the source file. 2381 ;; 2382 [ab].out ) 2383 # We found the default executable, but exeext='' is most 2384 # certainly right. 2385 break;; 2386 *.* ) 2387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2388 # FIXME: I believe we export ac_cv_exeext for Libtool, 2389 # but it would be cool to find out if it's true. Does anybody 2390 # maintain Libtool? --akim. 2391 export ac_cv_exeext 2392 break;; 2393 * ) 2394 break;; 2395 esac 2396done 2397else 2398 echo "$as_me: failed program was:" >&5 2399sed 's/^/| /' conftest.$ac_ext >&5 2400 2401{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2402See \`config.log' for more details." >&5 2403echo "$as_me: error: C compiler cannot create executables 2404See \`config.log' for more details." >&2;} 2405 { (exit 77); exit 77; }; } 2406fi 2407 2408ac_exeext=$ac_cv_exeext 2409echo "$as_me:$LINENO: result: $ac_file" >&5 2410echo "${ECHO_T}$ac_file" >&6 2411 2412# Check the compiler produces executables we can run. If not, either 2413# the compiler is broken, or we cross compile. 2414echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2415echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2416# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2417# If not cross compiling, check that we can run a simple program. 2418if test "$cross_compiling" != yes; then 2419 if { ac_try='./$ac_file' 2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2421 (eval $ac_try) 2>&5 2422 ac_status=$? 2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2424 (exit $ac_status); }; }; then 2425 cross_compiling=no 2426 else 2427 if test "$cross_compiling" = maybe; then 2428 cross_compiling=yes 2429 else 2430 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2431If you meant to cross compile, use \`--host'. 2432See \`config.log' for more details." >&5 2433echo "$as_me: error: cannot run C compiled programs. 2434If you meant to cross compile, use \`--host'. 2435See \`config.log' for more details." >&2;} 2436 { (exit 1); exit 1; }; } 2437 fi 2438 fi 2439fi 2440echo "$as_me:$LINENO: result: yes" >&5 2441echo "${ECHO_T}yes" >&6 2442 2443rm -f a.out a.exe conftest$ac_cv_exeext b.out 2444ac_clean_files=$ac_clean_files_save 2445# Check the compiler produces executables we can run. If not, either 2446# the compiler is broken, or we cross compile. 2447echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2448echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2449echo "$as_me:$LINENO: result: $cross_compiling" >&5 2450echo "${ECHO_T}$cross_compiling" >&6 2451 2452echo "$as_me:$LINENO: checking for suffix of executables" >&5 2453echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2455 (eval $ac_link) 2>&5 2456 ac_status=$? 2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2458 (exit $ac_status); }; then 2459 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2461# work properly (i.e., refer to `conftest.exe'), while it won't with 2462# `rm'. 2463for ac_file in conftest.exe conftest conftest.*; do 2464 test -f "$ac_file" || continue 2465 case $ac_file in 2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2468 export ac_cv_exeext 2469 break;; 2470 * ) break;; 2471 esac 2472done 2473else 2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2475See \`config.log' for more details." >&5 2476echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2477See \`config.log' for more details." >&2;} 2478 { (exit 1); exit 1; }; } 2479fi 2480 2481rm -f conftest$ac_cv_exeext 2482echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2483echo "${ECHO_T}$ac_cv_exeext" >&6 2484 2485rm -f conftest.$ac_ext 2486EXEEXT=$ac_cv_exeext 2487ac_exeext=$EXEEXT 2488echo "$as_me:$LINENO: checking for suffix of object files" >&5 2489echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2490if test "${ac_cv_objext+set}" = set; then 2491 echo $ECHO_N "(cached) $ECHO_C" >&6 2492else 2493 cat >conftest.$ac_ext <<_ACEOF 2494/* confdefs.h. */ 2495_ACEOF 2496cat confdefs.h >>conftest.$ac_ext 2497cat >>conftest.$ac_ext <<_ACEOF 2498/* end confdefs.h. */ 2499 2500int 2501main () 2502{ 2503 2504 ; 2505 return 0; 2506} 2507_ACEOF 2508rm -f conftest.o conftest.obj 2509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2510 (eval $ac_compile) 2>&5 2511 ac_status=$? 2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2513 (exit $ac_status); }; then 2514 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2515 case $ac_file in 2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2518 break;; 2519 esac 2520done 2521else 2522 echo "$as_me: failed program was:" >&5 2523sed 's/^/| /' conftest.$ac_ext >&5 2524 2525{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2526See \`config.log' for more details." >&5 2527echo "$as_me: error: cannot compute suffix of object files: cannot compile 2528See \`config.log' for more details." >&2;} 2529 { (exit 1); exit 1; }; } 2530fi 2531 2532rm -f conftest.$ac_cv_objext conftest.$ac_ext 2533fi 2534echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2535echo "${ECHO_T}$ac_cv_objext" >&6 2536OBJEXT=$ac_cv_objext 2537ac_objext=$OBJEXT 2538echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2539echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2540if test "${ac_cv_c_compiler_gnu+set}" = set; then 2541 echo $ECHO_N "(cached) $ECHO_C" >&6 2542else 2543 cat >conftest.$ac_ext <<_ACEOF 2544/* confdefs.h. */ 2545_ACEOF 2546cat confdefs.h >>conftest.$ac_ext 2547cat >>conftest.$ac_ext <<_ACEOF 2548/* end confdefs.h. */ 2549 2550int 2551main () 2552{ 2553#ifndef __GNUC__ 2554 choke me 2555#endif 2556 2557 ; 2558 return 0; 2559} 2560_ACEOF 2561rm -f conftest.$ac_objext 2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2563 (eval $ac_compile) 2>conftest.er1 2564 ac_status=$? 2565 grep -v '^ *+' conftest.er1 >conftest.err 2566 rm -f conftest.er1 2567 cat conftest.err >&5 2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2569 (exit $ac_status); } && 2570 { ac_try='test -z "$ac_c_werror_flag" 2571 || test ! -s conftest.err' 2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2573 (eval $ac_try) 2>&5 2574 ac_status=$? 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); }; } && 2577 { ac_try='test -s conftest.$ac_objext' 2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2579 (eval $ac_try) 2>&5 2580 ac_status=$? 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); }; }; then 2583 ac_compiler_gnu=yes 2584else 2585 echo "$as_me: failed program was:" >&5 2586sed 's/^/| /' conftest.$ac_ext >&5 2587 2588ac_compiler_gnu=no 2589fi 2590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2591ac_cv_c_compiler_gnu=$ac_compiler_gnu 2592 2593fi 2594echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2595echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2596GCC=`test $ac_compiler_gnu = yes && echo yes` 2597ac_test_CFLAGS=${CFLAGS+set} 2598ac_save_CFLAGS=$CFLAGS 2599CFLAGS="-g" 2600echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2601echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2602if test "${ac_cv_prog_cc_g+set}" = set; then 2603 echo $ECHO_N "(cached) $ECHO_C" >&6 2604else 2605 cat >conftest.$ac_ext <<_ACEOF 2606/* confdefs.h. */ 2607_ACEOF 2608cat confdefs.h >>conftest.$ac_ext 2609cat >>conftest.$ac_ext <<_ACEOF 2610/* end confdefs.h. */ 2611 2612int 2613main () 2614{ 2615 2616 ; 2617 return 0; 2618} 2619_ACEOF 2620rm -f conftest.$ac_objext 2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2622 (eval $ac_compile) 2>conftest.er1 2623 ac_status=$? 2624 grep -v '^ *+' conftest.er1 >conftest.err 2625 rm -f conftest.er1 2626 cat conftest.err >&5 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); } && 2629 { ac_try='test -z "$ac_c_werror_flag" 2630 || test ! -s conftest.err' 2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2632 (eval $ac_try) 2>&5 2633 ac_status=$? 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); }; } && 2636 { ac_try='test -s conftest.$ac_objext' 2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2638 (eval $ac_try) 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); }; }; then 2642 ac_cv_prog_cc_g=yes 2643else 2644 echo "$as_me: failed program was:" >&5 2645sed 's/^/| /' conftest.$ac_ext >&5 2646 2647ac_cv_prog_cc_g=no 2648fi 2649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2650fi 2651echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2652echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2653if test "$ac_test_CFLAGS" = set; then 2654 CFLAGS=$ac_save_CFLAGS 2655elif test $ac_cv_prog_cc_g = yes; then 2656 if test "$GCC" = yes; then 2657 CFLAGS="-g -O2" 2658 else 2659 CFLAGS="-g" 2660 fi 2661else 2662 if test "$GCC" = yes; then 2663 CFLAGS="-O2" 2664 else 2665 CFLAGS= 2666 fi 2667fi 2668echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2669echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2670if test "${ac_cv_prog_cc_stdc+set}" = set; then 2671 echo $ECHO_N "(cached) $ECHO_C" >&6 2672else 2673 ac_cv_prog_cc_stdc=no 2674ac_save_CC=$CC 2675cat >conftest.$ac_ext <<_ACEOF 2676/* confdefs.h. */ 2677_ACEOF 2678cat confdefs.h >>conftest.$ac_ext 2679cat >>conftest.$ac_ext <<_ACEOF 2680/* end confdefs.h. */ 2681#include <stdarg.h> 2682#include <stdio.h> 2683#include <sys/types.h> 2684#include <sys/stat.h> 2685/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2686struct buf { int x; }; 2687FILE * (*rcsopen) (struct buf *, struct stat *, int); 2688static char *e (p, i) 2689 char **p; 2690 int i; 2691{ 2692 return p[i]; 2693} 2694static char *f (char * (*g) (char **, int), char **p, ...) 2695{ 2696 char *s; 2697 va_list v; 2698 va_start (v,p); 2699 s = g (p, va_arg (v,int)); 2700 va_end (v); 2701 return s; 2702} 2703 2704/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2705 function prototypes and stuff, but not '\xHH' hex character constants. 2706 These don't provoke an error unfortunately, instead are silently treated 2707 as 'x'. The following induces an error, until -std1 is added to get 2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2709 array size at least. It's necessary to write '\x00'==0 to get something 2710 that's true only with -std1. */ 2711int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2712 2713int test (int i, double x); 2714struct s1 {int (*f) (int a);}; 2715struct s2 {int (*f) (double a);}; 2716int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2717int argc; 2718char **argv; 2719int 2720main () 2721{ 2722return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2723 ; 2724 return 0; 2725} 2726_ACEOF 2727# Don't try gcc -ansi; that turns off useful extensions and 2728# breaks some systems' header files. 2729# AIX -qlanglvl=ansi 2730# Ultrix and OSF/1 -std1 2731# HP-UX 10.20 and later -Ae 2732# HP-UX older versions -Aa -D_HPUX_SOURCE 2733# SVR4 -Xc -D__EXTENSIONS__ 2734for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2735do 2736 CC="$ac_save_CC $ac_arg" 2737 rm -f conftest.$ac_objext 2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2739 (eval $ac_compile) 2>conftest.er1 2740 ac_status=$? 2741 grep -v '^ *+' conftest.er1 >conftest.err 2742 rm -f conftest.er1 2743 cat conftest.err >&5 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); } && 2746 { ac_try='test -z "$ac_c_werror_flag" 2747 || test ! -s conftest.err' 2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2749 (eval $ac_try) 2>&5 2750 ac_status=$? 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); }; } && 2753 { ac_try='test -s conftest.$ac_objext' 2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2755 (eval $ac_try) 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); }; }; then 2759 ac_cv_prog_cc_stdc=$ac_arg 2760break 2761else 2762 echo "$as_me: failed program was:" >&5 2763sed 's/^/| /' conftest.$ac_ext >&5 2764 2765fi 2766rm -f conftest.err conftest.$ac_objext 2767done 2768rm -f conftest.$ac_ext conftest.$ac_objext 2769CC=$ac_save_CC 2770 2771fi 2772 2773case "x$ac_cv_prog_cc_stdc" in 2774 x|xno) 2775 echo "$as_me:$LINENO: result: none needed" >&5 2776echo "${ECHO_T}none needed" >&6 ;; 2777 *) 2778 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2779echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2780 CC="$CC $ac_cv_prog_cc_stdc" ;; 2781esac 2782 2783# Some people use a C++ compiler to compile C. Since we use `exit', 2784# in C++ we need to declare it. In case someone uses the same compiler 2785# for both compiling C and C++ we need to have the C++ compiler decide 2786# the declaration of exit, since it's the most demanding environment. 2787cat >conftest.$ac_ext <<_ACEOF 2788#ifndef __cplusplus 2789 choke me 2790#endif 2791_ACEOF 2792rm -f conftest.$ac_objext 2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2794 (eval $ac_compile) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" 2802 || test ! -s conftest.err' 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2804 (eval $ac_try) 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; } && 2808 { ac_try='test -s conftest.$ac_objext' 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; }; then 2814 for ac_declaration in \ 2815 '' \ 2816 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2817 'extern "C" void std::exit (int); using std::exit;' \ 2818 'extern "C" void exit (int) throw ();' \ 2819 'extern "C" void exit (int);' \ 2820 'void exit (int);' 2821do 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828$ac_declaration 2829#include <stdlib.h> 2830int 2831main () 2832{ 2833exit (42); 2834 ; 2835 return 0; 2836} 2837_ACEOF 2838rm -f conftest.$ac_objext 2839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2840 (eval $ac_compile) 2>conftest.er1 2841 ac_status=$? 2842 grep -v '^ *+' conftest.er1 >conftest.err 2843 rm -f conftest.er1 2844 cat conftest.err >&5 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); } && 2847 { ac_try='test -z "$ac_c_werror_flag" 2848 || test ! -s conftest.err' 2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2850 (eval $ac_try) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); }; } && 2854 { ac_try='test -s conftest.$ac_objext' 2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2856 (eval $ac_try) 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); }; }; then 2860 : 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865continue 2866fi 2867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2868 cat >conftest.$ac_ext <<_ACEOF 2869/* confdefs.h. */ 2870_ACEOF 2871cat confdefs.h >>conftest.$ac_ext 2872cat >>conftest.$ac_ext <<_ACEOF 2873/* end confdefs.h. */ 2874$ac_declaration 2875int 2876main () 2877{ 2878exit (42); 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883rm -f conftest.$ac_objext 2884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2885 (eval $ac_compile) 2>conftest.er1 2886 ac_status=$? 2887 grep -v '^ *+' conftest.er1 >conftest.err 2888 rm -f conftest.er1 2889 cat conftest.err >&5 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); } && 2892 { ac_try='test -z "$ac_c_werror_flag" 2893 || test ! -s conftest.err' 2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2895 (eval $ac_try) 2>&5 2896 ac_status=$? 2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); }; } && 2899 { ac_try='test -s conftest.$ac_objext' 2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2901 (eval $ac_try) 2>&5 2902 ac_status=$? 2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2904 (exit $ac_status); }; }; then 2905 break 2906else 2907 echo "$as_me: failed program was:" >&5 2908sed 's/^/| /' conftest.$ac_ext >&5 2909 2910fi 2911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2912done 2913rm -f conftest* 2914if test -n "$ac_declaration"; then 2915 echo '#ifdef __cplusplus' >>confdefs.h 2916 echo $ac_declaration >>confdefs.h 2917 echo '#endif' >>confdefs.h 2918fi 2919 2920else 2921 echo "$as_me: failed program was:" >&5 2922sed 's/^/| /' conftest.$ac_ext >&5 2923 2924fi 2925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2926ac_ext=c 2927ac_cpp='$CPP $CPPFLAGS' 2928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2930ac_compiler_gnu=$ac_cv_c_compiler_gnu 2931DEPDIR="${am__leading_dot}deps" 2932 2933 ac_config_commands="$ac_config_commands depfiles" 2934 2935 2936am_make=${MAKE-make} 2937cat > confinc << 'END' 2938am__doit: 2939 @echo done 2940.PHONY: am__doit 2941END 2942# If we don't find an include directive, just comment out the code. 2943echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2944echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2945am__include="#" 2946am__quote= 2947_am_result=none 2948# First try GNU make style include. 2949echo "include confinc" > confmf 2950# We grep out `Entering directory' and `Leaving directory' 2951# messages which can occur if `w' ends up in MAKEFLAGS. 2952# In particular we don't look at `^make:' because GNU make might 2953# be invoked under some other name (usually "gmake"), in which 2954# case it prints its new name instead of `make'. 2955if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2956 am__include=include 2957 am__quote= 2958 _am_result=GNU 2959fi 2960# Now try BSD make style include. 2961if test "$am__include" = "#"; then 2962 echo '.include "confinc"' > confmf 2963 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2964 am__include=.include 2965 am__quote="\"" 2966 _am_result=BSD 2967 fi 2968fi 2969 2970 2971echo "$as_me:$LINENO: result: $_am_result" >&5 2972echo "${ECHO_T}$_am_result" >&6 2973rm -f confinc confmf 2974 2975# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2976if test "${enable_dependency_tracking+set}" = set; then 2977 enableval="$enable_dependency_tracking" 2978 2979fi; 2980if test "x$enable_dependency_tracking" != xno; then 2981 am_depcomp="$ac_aux_dir/depcomp" 2982 AMDEPBACKSLASH='\' 2983fi 2984 2985 2986if test "x$enable_dependency_tracking" != xno; then 2987 AMDEP_TRUE= 2988 AMDEP_FALSE='#' 2989else 2990 AMDEP_TRUE='#' 2991 AMDEP_FALSE= 2992fi 2993 2994 2995 2996 2997depcc="$CC" am_compiler_list= 2998 2999echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3000echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3001if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3002 echo $ECHO_N "(cached) $ECHO_C" >&6 3003else 3004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3005 # We make a subdir and do the tests there. Otherwise we can end up 3006 # making bogus files that we don't know about and never remove. For 3007 # instance it was reported that on HP-UX the gcc test will end up 3008 # making a dummy file named `D' -- because `-MD' means `put the output 3009 # in D'. 3010 mkdir conftest.dir 3011 # Copy depcomp to subdir because otherwise we won't find it if we're 3012 # using a relative directory. 3013 cp "$am_depcomp" conftest.dir 3014 cd conftest.dir 3015 # We will build objects and dependencies in a subdirectory because 3016 # it helps to detect inapplicable dependency modes. For instance 3017 # both Tru64's cc and ICC support -MD to output dependencies as a 3018 # side effect of compilation, but ICC will put the dependencies in 3019 # the current directory while Tru64 will put them in the object 3020 # directory. 3021 mkdir sub 3022 3023 am_cv_CC_dependencies_compiler_type=none 3024 if test "$am_compiler_list" = ""; then 3025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3026 fi 3027 for depmode in $am_compiler_list; do 3028 # Setup a source with many dependencies, because some compilers 3029 # like to wrap large dependency lists on column 80 (with \), and 3030 # we should not choose a depcomp mode which is confused by this. 3031 # 3032 # We need to recreate these files for each test, as the compiler may 3033 # overwrite some of them when testing with obscure command lines. 3034 # This happens at least with the AIX C compiler. 3035 : > sub/conftest.c 3036 for i in 1 2 3 4 5 6; do 3037 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3039 # Solaris 8's {/usr,}/bin/sh. 3040 touch sub/conftst$i.h 3041 done 3042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3043 3044 case $depmode in 3045 nosideeffect) 3046 # after this tag, mechanisms are not by side-effect, so they'll 3047 # only be used when explicitly requested 3048 if test "x$enable_dependency_tracking" = xyes; then 3049 continue 3050 else 3051 break 3052 fi 3053 ;; 3054 none) break ;; 3055 esac 3056 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3057 # mode. It turns out that the SunPro C++ compiler does not properly 3058 # handle `-M -o', and we need to detect this. 3059 if depmode=$depmode \ 3060 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3062 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3063 >/dev/null 2>conftest.err && 3064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3067 # icc doesn't choke on unknown options, it will just issue warnings 3068 # or remarks (even with -Werror). So we grep stderr for any message 3069 # that says an option was ignored or not supported. 3070 # When given -MP, icc 7.0 and 7.1 complain thusly: 3071 # icc: Command line warning: ignoring option '-M'; no argument required 3072 # The diagnosis changed in icc 8.0: 3073 # icc: Command line remark: option '-MP' not supported 3074 if (grep 'ignoring option' conftest.err || 3075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3076 am_cv_CC_dependencies_compiler_type=$depmode 3077 break 3078 fi 3079 fi 3080 done 3081 3082 cd .. 3083 rm -rf conftest.dir 3084else 3085 am_cv_CC_dependencies_compiler_type=none 3086fi 3087 3088fi 3089echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3090echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3091CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3092 3093 3094 3095if 3096 test "x$enable_dependency_tracking" != xno \ 3097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3098 am__fastdepCC_TRUE= 3099 am__fastdepCC_FALSE='#' 3100else 3101 am__fastdepCC_TRUE='#' 3102 am__fastdepCC_FALSE= 3103fi 3104 3105 3106# Find a good install program. We prefer a C program (faster), 3107# so one script is as good as another. But avoid the broken or 3108# incompatible versions: 3109# SysV /etc/install, /usr/sbin/install 3110# SunOS /usr/etc/install 3111# IRIX /sbin/install 3112# AIX /bin/install 3113# AmigaOS /C/install, which installs bootblocks on floppy discs 3114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3115# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3117# OS/2's system install, which has a completely different semantic 3118# ./install, which can be erroneously created by make from ./install.sh. 3119echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3120echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3121if test -z "$INSTALL"; then 3122if test "${ac_cv_path_install+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124else 3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 # Account for people who put trailing slashes in PATH elements. 3131case $as_dir/ in 3132 ./ | .// | /cC/* | \ 3133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3134 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3135 /usr/ucb/* ) ;; 3136 *) 3137 # OSF1 and SCO ODT 3.0 have their own names for install. 3138 # Don't use installbsd from OSF since it installs stuff as root 3139 # by default. 3140 for ac_prog in ginstall scoinst install; do 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3143 if test $ac_prog = install && 3144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3145 # AIX install. It has an incompatible calling convention. 3146 : 3147 elif test $ac_prog = install && 3148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3149 # program-specific install script used by HP pwplus--don't use. 3150 : 3151 else 3152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3153 break 3 3154 fi 3155 fi 3156 done 3157 done 3158 ;; 3159esac 3160done 3161 3162 3163fi 3164 if test "${ac_cv_path_install+set}" = set; then 3165 INSTALL=$ac_cv_path_install 3166 else 3167 # As a last resort, use the slow shell script. We don't cache a 3168 # path for INSTALL within a source directory, because that will 3169 # break other packages using the cache if that directory is 3170 # removed, or if the path is relative. 3171 INSTALL=$ac_install_sh 3172 fi 3173fi 3174echo "$as_me:$LINENO: result: $INSTALL" >&5 3175echo "${ECHO_T}$INSTALL" >&6 3176 3177# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3178# It thinks the first close brace ends the variable substitution. 3179test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3180 3181test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3182 3183test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3184 3185echo "$as_me:$LINENO: checking whether ln -s works" >&5 3186echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3187LN_S=$as_ln_s 3188if test "$LN_S" = "ln -s"; then 3189 echo "$as_me:$LINENO: result: yes" >&5 3190echo "${ECHO_T}yes" >&6 3191else 3192 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3193echo "${ECHO_T}no, using $LN_S" >&6 3194fi 3195 3196# Check whether --enable-shared or --disable-shared was given. 3197if test "${enable_shared+set}" = set; then 3198 enableval="$enable_shared" 3199 p=${PACKAGE-default} 3200case $enableval in 3201yes) enable_shared=yes ;; 3202no) enable_shared=no ;; 3203*) 3204 enable_shared=no 3205 # Look at the argument we got. We use all the common list separators. 3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3207 for pkg in $enableval; do 3208 if test "X$pkg" = "X$p"; then 3209 enable_shared=yes 3210 fi 3211 done 3212 IFS="$ac_save_ifs" 3213 ;; 3214esac 3215else 3216 enable_shared=yes 3217fi; 3218# Check whether --enable-static or --disable-static was given. 3219if test "${enable_static+set}" = set; then 3220 enableval="$enable_static" 3221 p=${PACKAGE-default} 3222case $enableval in 3223yes) enable_static=yes ;; 3224no) enable_static=no ;; 3225*) 3226 enable_static=no 3227 # Look at the argument we got. We use all the common list separators. 3228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3229 for pkg in $enableval; do 3230 if test "X$pkg" = "X$p"; then 3231 enable_static=yes 3232 fi 3233 done 3234 IFS="$ac_save_ifs" 3235 ;; 3236esac 3237else 3238 enable_static=yes 3239fi; 3240# Check whether --enable-fast-install or --disable-fast-install was given. 3241if test "${enable_fast_install+set}" = set; then 3242 enableval="$enable_fast_install" 3243 p=${PACKAGE-default} 3244case $enableval in 3245yes) enable_fast_install=yes ;; 3246no) enable_fast_install=no ;; 3247*) 3248 enable_fast_install=no 3249 # Look at the argument we got. We use all the common list separators. 3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3251 for pkg in $enableval; do 3252 if test "X$pkg" = "X$p"; then 3253 enable_fast_install=yes 3254 fi 3255 done 3256 IFS="$ac_save_ifs" 3257 ;; 3258esac 3259else 3260 enable_fast_install=yes 3261fi; 3262# Make sure we can run config.sub. 3263$ac_config_sub sun4 >/dev/null 2>&1 || 3264 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3265echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3266 { (exit 1); exit 1; }; } 3267 3268echo "$as_me:$LINENO: checking build system type" >&5 3269echo $ECHO_N "checking build system type... $ECHO_C" >&6 3270if test "${ac_cv_build+set}" = set; then 3271 echo $ECHO_N "(cached) $ECHO_C" >&6 3272else 3273 ac_cv_build_alias=$build_alias 3274test -z "$ac_cv_build_alias" && 3275 ac_cv_build_alias=`$ac_config_guess` 3276test -z "$ac_cv_build_alias" && 3277 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3278echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3279 { (exit 1); exit 1; }; } 3280ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3281 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3282echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3283 { (exit 1); exit 1; }; } 3284 3285fi 3286echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3287echo "${ECHO_T}$ac_cv_build" >&6 3288build=$ac_cv_build 3289build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3290build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3291build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3292 3293 3294echo "$as_me:$LINENO: checking host system type" >&5 3295echo $ECHO_N "checking host system type... $ECHO_C" >&6 3296if test "${ac_cv_host+set}" = set; then 3297 echo $ECHO_N "(cached) $ECHO_C" >&6 3298else 3299 ac_cv_host_alias=$host_alias 3300test -z "$ac_cv_host_alias" && 3301 ac_cv_host_alias=$ac_cv_build_alias 3302ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3303 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3304echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3305 { (exit 1); exit 1; }; } 3306 3307fi 3308echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3309echo "${ECHO_T}$ac_cv_host" >&6 3310host=$ac_cv_host 3311host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3312host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3313host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3314 3315 3316# Find the correct PATH separator. Usually this is `:', but 3317# DJGPP uses `;' like DOS. 3318if test "X${PATH_SEPARATOR+set}" != Xset; then 3319 UNAME=${UNAME-`uname 2>/dev/null`} 3320 case X$UNAME in 3321 *-DOS) lt_cv_sys_path_separator=';' ;; 3322 *) lt_cv_sys_path_separator=':' ;; 3323 esac 3324 PATH_SEPARATOR=$lt_cv_sys_path_separator 3325fi 3326 3327 3328# Check whether --with-gnu-ld or --without-gnu-ld was given. 3329if test "${with_gnu_ld+set}" = set; then 3330 withval="$with_gnu_ld" 3331 test "$withval" = no || with_gnu_ld=yes 3332else 3333 with_gnu_ld=no 3334fi; 3335ac_prog=ld 3336if test "$GCC" = yes; then 3337 # Check if gcc -print-prog-name=ld gives a path. 3338 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3339echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3340 case $host in 3341 *-*-mingw*) 3342 # gcc leaves a trailing carriage return which upsets mingw 3343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3344 *) 3345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3346 esac 3347 case $ac_prog in 3348 # Accept absolute paths. 3349 [\\/]* | [A-Za-z]:[\\/]*) 3350 re_direlt='/[^/][^/]*/\.\./' 3351 # Canonicalize the path of ld 3352 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3353 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3354 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3355 done 3356 test -z "$LD" && LD="$ac_prog" 3357 ;; 3358 "") 3359 # If it fails, then pretend we aren't using GCC. 3360 ac_prog=ld 3361 ;; 3362 *) 3363 # If it is relative, then search for the first ld in PATH. 3364 with_gnu_ld=unknown 3365 ;; 3366 esac 3367elif test "$with_gnu_ld" = yes; then 3368 echo "$as_me:$LINENO: checking for GNU ld" >&5 3369echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3370else 3371 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3372echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3373fi 3374if test "${lt_cv_path_LD+set}" = set; then 3375 echo $ECHO_N "(cached) $ECHO_C" >&6 3376else 3377 if test -z "$LD"; then 3378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3379 for ac_dir in $PATH; do 3380 test -z "$ac_dir" && ac_dir=. 3381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3382 lt_cv_path_LD="$ac_dir/$ac_prog" 3383 # Check to see if the program is GNU ld. I'd rather use --version, 3384 # but apparently some GNU ld's only accept -v. 3385 # Break only if it was the GNU/non-GNU ld that we prefer. 3386 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3387 test "$with_gnu_ld" != no && break 3388 else 3389 test "$with_gnu_ld" != yes && break 3390 fi 3391 fi 3392 done 3393 IFS="$ac_save_ifs" 3394else 3395 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3396fi 3397fi 3398 3399LD="$lt_cv_path_LD" 3400if test -n "$LD"; then 3401 echo "$as_me:$LINENO: result: $LD" >&5 3402echo "${ECHO_T}$LD" >&6 3403else 3404 echo "$as_me:$LINENO: result: no" >&5 3405echo "${ECHO_T}no" >&6 3406fi 3407test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3408echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3409 { (exit 1); exit 1; }; } 3410echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3411echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3412if test "${lt_cv_prog_gnu_ld+set}" = set; then 3413 echo $ECHO_N "(cached) $ECHO_C" >&6 3414else 3415 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3416if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3417 lt_cv_prog_gnu_ld=yes 3418else 3419 lt_cv_prog_gnu_ld=no 3420fi 3421fi 3422echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3423echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3424with_gnu_ld=$lt_cv_prog_gnu_ld 3425 3426 3427echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3428echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3429if test "${lt_cv_ld_reload_flag+set}" = set; then 3430 echo $ECHO_N "(cached) $ECHO_C" >&6 3431else 3432 lt_cv_ld_reload_flag='-r' 3433fi 3434echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3435echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3436reload_flag=$lt_cv_ld_reload_flag 3437test -n "$reload_flag" && reload_flag=" $reload_flag" 3438 3439echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3440echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3441if test "${lt_cv_path_NM+set}" = set; then 3442 echo $ECHO_N "(cached) $ECHO_C" >&6 3443else 3444 if test -n "$NM"; then 3445 # Let the user override the test. 3446 lt_cv_path_NM="$NM" 3447else 3448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3449 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3450 test -z "$ac_dir" && ac_dir=. 3451 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3452 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3453 # Check to see if the nm accepts a BSD-compat flag. 3454 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3455 # nm: unknown option "B" ignored 3456 # Tru64's nm complains that /dev/null is an invalid object file 3457 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3458 lt_cv_path_NM="$tmp_nm -B" 3459 break 3460 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3461 lt_cv_path_NM="$tmp_nm -p" 3462 break 3463 else 3464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3465 continue # so that we can try to find one that supports BSD flags 3466 fi 3467 fi 3468 done 3469 IFS="$ac_save_ifs" 3470 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3471fi 3472fi 3473 3474NM="$lt_cv_path_NM" 3475echo "$as_me:$LINENO: result: $NM" >&5 3476echo "${ECHO_T}$NM" >&6 3477 3478echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3479echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3480if test "${lt_cv_deplibs_check_method+set}" = set; then 3481 echo $ECHO_N "(cached) $ECHO_C" >&6 3482else 3483 lt_cv_file_magic_cmd='$MAGIC_CMD' 3484lt_cv_file_magic_test_file= 3485lt_cv_deplibs_check_method='unknown' 3486# Need to set the preceding variable on all platforms that support 3487# interlibrary dependencies. 3488# 'none' -- dependencies not supported. 3489# `unknown' -- same as none, but documents that we really don't know. 3490# 'pass_all' -- all dependencies passed with no checks. 3491# 'test_compile' -- check by making test program. 3492# 'file_magic [[regex]]' -- check by looking for files in library path 3493# which responds to the $file_magic_cmd with a given egrep regex. 3494# If you have `file' or equivalent on your system and you're not sure 3495# whether `pass_all' will *always* work, you probably want this one. 3496 3497case $host_os in 3498aix4* | aix5*) 3499 lt_cv_deplibs_check_method=pass_all 3500 ;; 3501 3502beos*) 3503 lt_cv_deplibs_check_method=pass_all 3504 ;; 3505 3506bsdi4*) 3507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3508 lt_cv_file_magic_cmd='/usr/bin/file -L' 3509 lt_cv_file_magic_test_file=/shlib/libc.so 3510 ;; 3511 3512cygwin* | mingw* | pw32*) 3513 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3514 lt_cv_file_magic_cmd='$OBJDUMP -f' 3515 ;; 3516 3517darwin* | rhapsody*) 3518 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3519 lt_cv_file_magic_cmd='/usr/bin/file -L' 3520 case "$host_os" in 3521 rhapsody* | darwin1.[012]) 3522 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 3523 ;; 3524 *) # Darwin 1.3 on 3525 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3526 ;; 3527 esac 3528 ;; 3529 3530freebsd*) 3531 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3532 case $host_cpu in 3533 i*86 ) 3534 # Not sure whether the presence of OpenBSD here was a mistake. 3535 # Let's accept both of them until this is cleared up. 3536 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3537 lt_cv_file_magic_cmd=/usr/bin/file 3538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3539 ;; 3540 esac 3541 else 3542 lt_cv_deplibs_check_method=pass_all 3543 fi 3544 ;; 3545 3546gnu*) 3547 lt_cv_deplibs_check_method=pass_all 3548 ;; 3549 3550hpux10.20*|hpux11*) 3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3552 lt_cv_file_magic_cmd=/usr/bin/file 3553 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3554 ;; 3555 3556irix5* | irix6*) 3557 case $host_os in 3558 irix5*) 3559 # this will be overridden with pass_all, but let us keep it just in case 3560 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3561 ;; 3562 *) 3563 case $LD in 3564 *-32|*"-32 ") libmagic=32-bit;; 3565 *-n32|*"-n32 ") libmagic=N32;; 3566 *-64|*"-64 ") libmagic=64-bit;; 3567 *) libmagic=never-match;; 3568 esac 3569 # this will be overridden with pass_all, but let us keep it just in case 3570 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3571 ;; 3572 esac 3573 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3574 lt_cv_deplibs_check_method=pass_all 3575 ;; 3576 3577# This must be Linux ELF. 3578linux-gnu*) 3579 case $host_cpu in 3580 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 3581 lt_cv_deplibs_check_method=pass_all ;; 3582 *) 3583 # glibc up to 2.1.1 does not perform some relocations on ARM 3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3585 esac 3586 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3587 ;; 3588 3589netbsd*) 3590 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3591 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3592 else 3593 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3594 fi 3595 ;; 3596 3597newos6*) 3598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3599 lt_cv_file_magic_cmd=/usr/bin/file 3600 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3601 ;; 3602 3603openbsd*) 3604 lt_cv_file_magic_cmd=/usr/bin/file 3605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3608 else 3609 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3610 fi 3611 ;; 3612 3613osf3* | osf4* | osf5*) 3614 # this will be overridden with pass_all, but let us keep it just in case 3615 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3616 lt_cv_file_magic_test_file=/shlib/libc.so 3617 lt_cv_deplibs_check_method=pass_all 3618 ;; 3619 3620sco3.2v5*) 3621 lt_cv_deplibs_check_method=pass_all 3622 ;; 3623 3624solaris*) 3625 lt_cv_deplibs_check_method=pass_all 3626 lt_cv_file_magic_test_file=/lib/libc.so 3627 ;; 3628 3629sysv5uw[78]* | sysv4*uw2*) 3630 lt_cv_deplibs_check_method=pass_all 3631 ;; 3632 3633sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3634 case $host_vendor in 3635 motorola) 3636 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]' 3637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3638 ;; 3639 ncr) 3640 lt_cv_deplibs_check_method=pass_all 3641 ;; 3642 sequent) 3643 lt_cv_file_magic_cmd='/bin/file' 3644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3645 ;; 3646 sni) 3647 lt_cv_file_magic_cmd='/bin/file' 3648 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3649 lt_cv_file_magic_test_file=/lib/libc.so 3650 ;; 3651 esac 3652 ;; 3653esac 3654 3655fi 3656echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3657echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3658file_magic_cmd=$lt_cv_file_magic_cmd 3659deplibs_check_method=$lt_cv_deplibs_check_method 3660 3661 3662 3663 3664 3665 3666 3667 3668# Check for command to grab the raw symbol name followed by C symbol from nm. 3669echo "$as_me:$LINENO: checking command to parse $NM output" >&5 3670echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 3671if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 3672 echo $ECHO_N "(cached) $ECHO_C" >&6 3673else 3674 3675# These are sane defaults that work on at least a few old systems. 3676# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3677 3678# Character class describing NM global symbol codes. 3679symcode='[BCDEGRST]' 3680 3681# Regexp to match symbols that can be accessed directly from C. 3682sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 3683 3684# Transform the above into a raw symbol and a C symbol. 3685symxfrm='\1 \2\3 \3' 3686 3687# Transform an extracted symbol line into a proper C declaration 3688lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 3689 3690# Transform an extracted symbol line into symbol name and symbol address 3691lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 3692 3693# Define system-specific variables. 3694case $host_os in 3695aix*) 3696 symcode='[BCDT]' 3697 ;; 3698cygwin* | mingw* | pw32*) 3699 symcode='[ABCDGISTW]' 3700 ;; 3701hpux*) # Its linker distinguishes data from code symbols 3702 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3703 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'" 3704 ;; 3705irix*) 3706 symcode='[BCDEGRST]' 3707 ;; 3708solaris* | sysv5*) 3709 symcode='[BDT]' 3710 ;; 3711sysv4) 3712 symcode='[DFNSTU]' 3713 ;; 3714esac 3715 3716# Handle CRLF in mingw tool chain 3717opt_cr= 3718case $host_os in 3719mingw*) 3720 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3721 ;; 3722esac 3723 3724# If we're using GNU nm, then use its standard symbol codes. 3725if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 3726 symcode='[ABCDGISTW]' 3727fi 3728 3729# Try without a prefix undercore, then with it. 3730for ac_symprfx in "" "_"; do 3731 3732 # Write the raw and C identifiers. 3733lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 3734 3735 # Check to see that the pipe works correctly. 3736 pipe_works=no 3737 rm -f conftest* 3738 cat > conftest.$ac_ext <<EOF 3739#ifdef __cplusplus 3740extern "C" { 3741#endif 3742char nm_test_var; 3743void nm_test_func(){} 3744#ifdef __cplusplus 3745} 3746#endif 3747int main(){nm_test_var='a';nm_test_func();return(0);} 3748EOF 3749 3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3751 (eval $ac_compile) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; then 3755 # Now try to grab the symbols. 3756 nlist=conftest.nm 3757 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 3758 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 3759 ac_status=$? 3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3761 (exit $ac_status); } && test -s "$nlist"; then 3762 # Try sorting and uniquifying the output. 3763 if sort "$nlist" | uniq > "$nlist"T; then 3764 mv -f "$nlist"T "$nlist" 3765 else 3766 rm -f "$nlist"T 3767 fi 3768 3769 # Make sure that we snagged all the symbols we need. 3770 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 3771 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 3772 cat <<EOF > conftest.$ac_ext 3773#ifdef __cplusplus 3774extern "C" { 3775#endif 3776 3777EOF 3778 # Now generate the symbol file. 3779 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 3780 3781 cat <<EOF >> conftest.$ac_ext 3782#if defined (__STDC__) && __STDC__ 3783# define lt_ptr void * 3784#else 3785# define lt_ptr char * 3786# define const 3787#endif 3788 3789/* The mapping between symbol names and symbols. */ 3790const struct { 3791 const char *name; 3792 lt_ptr address; 3793} 3794lt_preloaded_symbols[] = 3795{ 3796EOF 3797 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 3798 cat <<\EOF >> conftest.$ac_ext 3799 {0, (lt_ptr) 0} 3800}; 3801 3802#ifdef __cplusplus 3803} 3804#endif 3805EOF 3806 # Now try linking the two files. 3807 mv conftest.$ac_objext conftstm.$ac_objext 3808 save_LIBS="$LIBS" 3809 save_CFLAGS="$CFLAGS" 3810 LIBS="conftstm.$ac_objext" 3811 CFLAGS="$CFLAGS$no_builtin_flag" 3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3813 (eval $ac_link) 2>&5 3814 ac_status=$? 3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3816 (exit $ac_status); } && test -s conftest; then 3817 pipe_works=yes 3818 fi 3819 LIBS="$save_LIBS" 3820 CFLAGS="$save_CFLAGS" 3821 else 3822 echo "cannot find nm_test_func in $nlist" >&5 3823 fi 3824 else 3825 echo "cannot find nm_test_var in $nlist" >&5 3826 fi 3827 else 3828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 3829 fi 3830 else 3831 echo "$progname: failed program was:" >&5 3832 cat conftest.$ac_ext >&5 3833 fi 3834 rm -f conftest* conftst* 3835 3836 # Do not use the global_symbol_pipe unless it works. 3837 if test "$pipe_works" = yes; then 3838 break 3839 else 3840 lt_cv_sys_global_symbol_pipe= 3841 fi 3842done 3843 3844fi 3845 3846global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 3847if test -z "$lt_cv_sys_global_symbol_pipe"; then 3848 global_symbol_to_cdecl= 3849 global_symbol_to_c_name_address= 3850else 3851 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3852 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 3853fi 3854if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 3855then 3856 echo "$as_me:$LINENO: result: failed" >&5 3857echo "${ECHO_T}failed" >&6 3858else 3859 echo "$as_me:$LINENO: result: ok" >&5 3860echo "${ECHO_T}ok" >&6 3861fi 3862 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3869echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3870# On Suns, sometimes $CPP names a directory. 3871if test -n "$CPP" && test -d "$CPP"; then 3872 CPP= 3873fi 3874if test -z "$CPP"; then 3875 if test "${ac_cv_prog_CPP+set}" = set; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877else 3878 # Double quotes because CPP needs to be expanded 3879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3880 do 3881 ac_preproc_ok=false 3882for ac_c_preproc_warn_flag in '' yes 3883do 3884 # Use a header file that comes with gcc, so configuring glibc 3885 # with a fresh cross-compiler works. 3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3887 # <limits.h> exists even on freestanding compilers. 3888 # On the NeXT, cc -E runs the code through the compiler's parser, 3889 # not just through cpp. "Syntax error" is here to catch this case. 3890 cat >conftest.$ac_ext <<_ACEOF 3891/* confdefs.h. */ 3892_ACEOF 3893cat confdefs.h >>conftest.$ac_ext 3894cat >>conftest.$ac_ext <<_ACEOF 3895/* end confdefs.h. */ 3896#ifdef __STDC__ 3897# include <limits.h> 3898#else 3899# include <assert.h> 3900#endif 3901 Syntax error 3902_ACEOF 3903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3905 ac_status=$? 3906 grep -v '^ *+' conftest.er1 >conftest.err 3907 rm -f conftest.er1 3908 cat conftest.err >&5 3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 (exit $ac_status); } >/dev/null; then 3911 if test -s conftest.err; then 3912 ac_cpp_err=$ac_c_preproc_warn_flag 3913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3914 else 3915 ac_cpp_err= 3916 fi 3917else 3918 ac_cpp_err=yes 3919fi 3920if test -z "$ac_cpp_err"; then 3921 : 3922else 3923 echo "$as_me: failed program was:" >&5 3924sed 's/^/| /' conftest.$ac_ext >&5 3925 3926 # Broken: fails on valid input. 3927continue 3928fi 3929rm -f conftest.err conftest.$ac_ext 3930 3931 # OK, works on sane cases. Now check whether non-existent headers 3932 # can be detected and how. 3933 cat >conftest.$ac_ext <<_ACEOF 3934/* confdefs.h. */ 3935_ACEOF 3936cat confdefs.h >>conftest.$ac_ext 3937cat >>conftest.$ac_ext <<_ACEOF 3938/* end confdefs.h. */ 3939#include <ac_nonexistent.h> 3940_ACEOF 3941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3943 ac_status=$? 3944 grep -v '^ *+' conftest.er1 >conftest.err 3945 rm -f conftest.er1 3946 cat conftest.err >&5 3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3948 (exit $ac_status); } >/dev/null; then 3949 if test -s conftest.err; then 3950 ac_cpp_err=$ac_c_preproc_warn_flag 3951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3952 else 3953 ac_cpp_err= 3954 fi 3955else 3956 ac_cpp_err=yes 3957fi 3958if test -z "$ac_cpp_err"; then 3959 # Broken: success on invalid input. 3960continue 3961else 3962 echo "$as_me: failed program was:" >&5 3963sed 's/^/| /' conftest.$ac_ext >&5 3964 3965 # Passes both tests. 3966ac_preproc_ok=: 3967break 3968fi 3969rm -f conftest.err conftest.$ac_ext 3970 3971done 3972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3973rm -f conftest.err conftest.$ac_ext 3974if $ac_preproc_ok; then 3975 break 3976fi 3977 3978 done 3979 ac_cv_prog_CPP=$CPP 3980 3981fi 3982 CPP=$ac_cv_prog_CPP 3983else 3984 ac_cv_prog_CPP=$CPP 3985fi 3986echo "$as_me:$LINENO: result: $CPP" >&5 3987echo "${ECHO_T}$CPP" >&6 3988ac_preproc_ok=false 3989for ac_c_preproc_warn_flag in '' yes 3990do 3991 # Use a header file that comes with gcc, so configuring glibc 3992 # with a fresh cross-compiler works. 3993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3994 # <limits.h> exists even on freestanding compilers. 3995 # On the NeXT, cc -E runs the code through the compiler's parser, 3996 # not just through cpp. "Syntax error" is here to catch this case. 3997 cat >conftest.$ac_ext <<_ACEOF 3998/* confdefs.h. */ 3999_ACEOF 4000cat confdefs.h >>conftest.$ac_ext 4001cat >>conftest.$ac_ext <<_ACEOF 4002/* end confdefs.h. */ 4003#ifdef __STDC__ 4004# include <limits.h> 4005#else 4006# include <assert.h> 4007#endif 4008 Syntax error 4009_ACEOF 4010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4012 ac_status=$? 4013 grep -v '^ *+' conftest.er1 >conftest.err 4014 rm -f conftest.er1 4015 cat conftest.err >&5 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); } >/dev/null; then 4018 if test -s conftest.err; then 4019 ac_cpp_err=$ac_c_preproc_warn_flag 4020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4021 else 4022 ac_cpp_err= 4023 fi 4024else 4025 ac_cpp_err=yes 4026fi 4027if test -z "$ac_cpp_err"; then 4028 : 4029else 4030 echo "$as_me: failed program was:" >&5 4031sed 's/^/| /' conftest.$ac_ext >&5 4032 4033 # Broken: fails on valid input. 4034continue 4035fi 4036rm -f conftest.err conftest.$ac_ext 4037 4038 # OK, works on sane cases. Now check whether non-existent headers 4039 # can be detected and how. 4040 cat >conftest.$ac_ext <<_ACEOF 4041/* confdefs.h. */ 4042_ACEOF 4043cat confdefs.h >>conftest.$ac_ext 4044cat >>conftest.$ac_ext <<_ACEOF 4045/* end confdefs.h. */ 4046#include <ac_nonexistent.h> 4047_ACEOF 4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4050 ac_status=$? 4051 grep -v '^ *+' conftest.er1 >conftest.err 4052 rm -f conftest.er1 4053 cat conftest.err >&5 4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4055 (exit $ac_status); } >/dev/null; then 4056 if test -s conftest.err; then 4057 ac_cpp_err=$ac_c_preproc_warn_flag 4058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4059 else 4060 ac_cpp_err= 4061 fi 4062else 4063 ac_cpp_err=yes 4064fi 4065if test -z "$ac_cpp_err"; then 4066 # Broken: success on invalid input. 4067continue 4068else 4069 echo "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072 # Passes both tests. 4073ac_preproc_ok=: 4074break 4075fi 4076rm -f conftest.err conftest.$ac_ext 4077 4078done 4079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4080rm -f conftest.err conftest.$ac_ext 4081if $ac_preproc_ok; then 4082 : 4083else 4084 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4085See \`config.log' for more details." >&5 4086echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4087See \`config.log' for more details." >&2;} 4088 { (exit 1); exit 1; }; } 4089fi 4090 4091ac_ext=c 4092ac_cpp='$CPP $CPPFLAGS' 4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4095ac_compiler_gnu=$ac_cv_c_compiler_gnu 4096 4097 4098echo "$as_me:$LINENO: checking for egrep" >&5 4099echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4100if test "${ac_cv_prog_egrep+set}" = set; then 4101 echo $ECHO_N "(cached) $ECHO_C" >&6 4102else 4103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4104 then ac_cv_prog_egrep='grep -E' 4105 else ac_cv_prog_egrep='egrep' 4106 fi 4107fi 4108echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4109echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4110 EGREP=$ac_cv_prog_egrep 4111 4112 4113echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4114echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4115if test "${ac_cv_header_stdc+set}" = set; then 4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4117else 4118 cat >conftest.$ac_ext <<_ACEOF 4119/* confdefs.h. */ 4120_ACEOF 4121cat confdefs.h >>conftest.$ac_ext 4122cat >>conftest.$ac_ext <<_ACEOF 4123/* end confdefs.h. */ 4124#include <stdlib.h> 4125#include <stdarg.h> 4126#include <string.h> 4127#include <float.h> 4128 4129int 4130main () 4131{ 4132 4133 ; 4134 return 0; 4135} 4136_ACEOF 4137rm -f conftest.$ac_objext 4138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4139 (eval $ac_compile) 2>conftest.er1 4140 ac_status=$? 4141 grep -v '^ *+' conftest.er1 >conftest.err 4142 rm -f conftest.er1 4143 cat conftest.err >&5 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); } && 4146 { ac_try='test -z "$ac_c_werror_flag" 4147 || test ! -s conftest.err' 4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4149 (eval $ac_try) 2>&5 4150 ac_status=$? 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4152 (exit $ac_status); }; } && 4153 { ac_try='test -s conftest.$ac_objext' 4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4155 (eval $ac_try) 2>&5 4156 ac_status=$? 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); }; }; then 4159 ac_cv_header_stdc=yes 4160else 4161 echo "$as_me: failed program was:" >&5 4162sed 's/^/| /' conftest.$ac_ext >&5 4163 4164ac_cv_header_stdc=no 4165fi 4166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4167 4168if test $ac_cv_header_stdc = yes; then 4169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4170 cat >conftest.$ac_ext <<_ACEOF 4171/* confdefs.h. */ 4172_ACEOF 4173cat confdefs.h >>conftest.$ac_ext 4174cat >>conftest.$ac_ext <<_ACEOF 4175/* end confdefs.h. */ 4176#include <string.h> 4177 4178_ACEOF 4179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4180 $EGREP "memchr" >/dev/null 2>&1; then 4181 : 4182else 4183 ac_cv_header_stdc=no 4184fi 4185rm -f conftest* 4186 4187fi 4188 4189if test $ac_cv_header_stdc = yes; then 4190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4191 cat >conftest.$ac_ext <<_ACEOF 4192/* confdefs.h. */ 4193_ACEOF 4194cat confdefs.h >>conftest.$ac_ext 4195cat >>conftest.$ac_ext <<_ACEOF 4196/* end confdefs.h. */ 4197#include <stdlib.h> 4198 4199_ACEOF 4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4201 $EGREP "free" >/dev/null 2>&1; then 4202 : 4203else 4204 ac_cv_header_stdc=no 4205fi 4206rm -f conftest* 4207 4208fi 4209 4210if test $ac_cv_header_stdc = yes; then 4211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4212 if test "$cross_compiling" = yes; then 4213 : 4214else 4215 cat >conftest.$ac_ext <<_ACEOF 4216/* confdefs.h. */ 4217_ACEOF 4218cat confdefs.h >>conftest.$ac_ext 4219cat >>conftest.$ac_ext <<_ACEOF 4220/* end confdefs.h. */ 4221#include <ctype.h> 4222#if ((' ' & 0x0FF) == 0x020) 4223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4225#else 4226# define ISLOWER(c) \ 4227 (('a' <= (c) && (c) <= 'i') \ 4228 || ('j' <= (c) && (c) <= 'r') \ 4229 || ('s' <= (c) && (c) <= 'z')) 4230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4231#endif 4232 4233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4234int 4235main () 4236{ 4237 int i; 4238 for (i = 0; i < 256; i++) 4239 if (XOR (islower (i), ISLOWER (i)) 4240 || toupper (i) != TOUPPER (i)) 4241 exit(2); 4242 exit (0); 4243} 4244_ACEOF 4245rm -f conftest$ac_exeext 4246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4247 (eval $ac_link) 2>&5 4248 ac_status=$? 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4252 (eval $ac_try) 2>&5 4253 ac_status=$? 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); }; }; then 4256 : 4257else 4258 echo "$as_me: program exited with status $ac_status" >&5 4259echo "$as_me: failed program was:" >&5 4260sed 's/^/| /' conftest.$ac_ext >&5 4261 4262( exit $ac_status ) 4263ac_cv_header_stdc=no 4264fi 4265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4266fi 4267fi 4268fi 4269echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4270echo "${ECHO_T}$ac_cv_header_stdc" >&6 4271if test $ac_cv_header_stdc = yes; then 4272 4273cat >>confdefs.h <<\_ACEOF 4274#define STDC_HEADERS 1 4275_ACEOF 4276 4277fi 4278 4279# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4290 inttypes.h stdint.h unistd.h 4291do 4292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4293echo "$as_me:$LINENO: checking for $ac_header" >&5 4294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4295if eval "test \"\${$as_ac_Header+set}\" = set"; then 4296 echo $ECHO_N "(cached) $ECHO_C" >&6 4297else 4298 cat >conftest.$ac_ext <<_ACEOF 4299/* confdefs.h. */ 4300_ACEOF 4301cat confdefs.h >>conftest.$ac_ext 4302cat >>conftest.$ac_ext <<_ACEOF 4303/* end confdefs.h. */ 4304$ac_includes_default 4305 4306#include <$ac_header> 4307_ACEOF 4308rm -f conftest.$ac_objext 4309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4310 (eval $ac_compile) 2>conftest.er1 4311 ac_status=$? 4312 grep -v '^ *+' conftest.er1 >conftest.err 4313 rm -f conftest.er1 4314 cat conftest.err >&5 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } && 4317 { ac_try='test -z "$ac_c_werror_flag" 4318 || test ! -s conftest.err' 4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4320 (eval $ac_try) 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); }; } && 4324 { ac_try='test -s conftest.$ac_objext' 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4326 (eval $ac_try) 2>&5 4327 ac_status=$? 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); }; }; then 4330 eval "$as_ac_Header=yes" 4331else 4332 echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335eval "$as_ac_Header=no" 4336fi 4337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4338fi 4339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4341if test `eval echo '${'$as_ac_Header'}'` = yes; then 4342 cat >>confdefs.h <<_ACEOF 4343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4344_ACEOF 4345 4346fi 4347 4348done 4349 4350 4351 4352for ac_header in dlfcn.h 4353do 4354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4355if eval "test \"\${$as_ac_Header+set}\" = set"; then 4356 echo "$as_me:$LINENO: checking for $ac_header" >&5 4357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4358if eval "test \"\${$as_ac_Header+set}\" = set"; then 4359 echo $ECHO_N "(cached) $ECHO_C" >&6 4360fi 4361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4363else 4364 # Is the header compilable? 4365echo "$as_me:$LINENO: checking $ac_header usability" >&5 4366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4367cat >conftest.$ac_ext <<_ACEOF 4368/* confdefs.h. */ 4369_ACEOF 4370cat confdefs.h >>conftest.$ac_ext 4371cat >>conftest.$ac_ext <<_ACEOF 4372/* end confdefs.h. */ 4373$ac_includes_default 4374#include <$ac_header> 4375_ACEOF 4376rm -f conftest.$ac_objext 4377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4378 (eval $ac_compile) 2>conftest.er1 4379 ac_status=$? 4380 grep -v '^ *+' conftest.er1 >conftest.err 4381 rm -f conftest.er1 4382 cat conftest.err >&5 4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4384 (exit $ac_status); } && 4385 { ac_try='test -z "$ac_c_werror_flag" 4386 || test ! -s conftest.err' 4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4388 (eval $ac_try) 2>&5 4389 ac_status=$? 4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391 (exit $ac_status); }; } && 4392 { ac_try='test -s conftest.$ac_objext' 4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4394 (eval $ac_try) 2>&5 4395 ac_status=$? 4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4397 (exit $ac_status); }; }; then 4398 ac_header_compiler=yes 4399else 4400 echo "$as_me: failed program was:" >&5 4401sed 's/^/| /' conftest.$ac_ext >&5 4402 4403ac_header_compiler=no 4404fi 4405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4407echo "${ECHO_T}$ac_header_compiler" >&6 4408 4409# Is the header present? 4410echo "$as_me:$LINENO: checking $ac_header presence" >&5 4411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4412cat >conftest.$ac_ext <<_ACEOF 4413/* confdefs.h. */ 4414_ACEOF 4415cat confdefs.h >>conftest.$ac_ext 4416cat >>conftest.$ac_ext <<_ACEOF 4417/* end confdefs.h. */ 4418#include <$ac_header> 4419_ACEOF 4420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4422 ac_status=$? 4423 grep -v '^ *+' conftest.er1 >conftest.err 4424 rm -f conftest.er1 4425 cat conftest.err >&5 4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4427 (exit $ac_status); } >/dev/null; then 4428 if test -s conftest.err; then 4429 ac_cpp_err=$ac_c_preproc_warn_flag 4430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4431 else 4432 ac_cpp_err= 4433 fi 4434else 4435 ac_cpp_err=yes 4436fi 4437if test -z "$ac_cpp_err"; then 4438 ac_header_preproc=yes 4439else 4440 echo "$as_me: failed program was:" >&5 4441sed 's/^/| /' conftest.$ac_ext >&5 4442 4443 ac_header_preproc=no 4444fi 4445rm -f conftest.err conftest.$ac_ext 4446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4447echo "${ECHO_T}$ac_header_preproc" >&6 4448 4449# So? What about this header? 4450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4451 yes:no: ) 4452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4456 ac_header_preproc=yes 4457 ;; 4458 no:yes:* ) 4459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4471 ( 4472 cat <<\_ASBOX 4473## ---------------------------- ## 4474## Report this to bboy@bboy.net ## 4475## ---------------------------- ## 4476_ASBOX 4477 ) | 4478 sed "s/^/$as_me: WARNING: /" >&2 4479 ;; 4480esac 4481echo "$as_me:$LINENO: checking for $ac_header" >&5 4482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4483if eval "test \"\${$as_ac_Header+set}\" = set"; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 eval "$as_ac_Header=\$ac_header_preproc" 4487fi 4488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4490 4491fi 4492if test `eval echo '${'$as_ac_Header'}'` = yes; then 4493 cat >>confdefs.h <<_ACEOF 4494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4495_ACEOF 4496 4497fi 4498 4499done 4500 4501 4502 4503 4504 4505# Only perform the check for file, if the check method requires it 4506case $deplibs_check_method in 4507file_magic*) 4508 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4509 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4510echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4511if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4512 echo $ECHO_N "(cached) $ECHO_C" >&6 4513else 4514 case $MAGIC_CMD in 4515 /*) 4516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4517 ;; 4518 ?:/*) 4519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4520 ;; 4521 *) 4522 ac_save_MAGIC_CMD="$MAGIC_CMD" 4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4524 ac_dummy="/usr/bin:$PATH" 4525 for ac_dir in $ac_dummy; do 4526 test -z "$ac_dir" && ac_dir=. 4527 if test -f $ac_dir/${ac_tool_prefix}file; then 4528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4529 if test -n "$file_magic_test_file"; then 4530 case $deplibs_check_method in 4531 "file_magic "*) 4532 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4535 egrep "$file_magic_regex" > /dev/null; then 4536 : 4537 else 4538 cat <<EOF 1>&2 4539 4540*** Warning: the command libtool uses to detect shared libraries, 4541*** $file_magic_cmd, produces output that libtool cannot recognize. 4542*** The result is that libtool may fail to recognize shared libraries 4543*** as such. This will affect the creation of libtool libraries that 4544*** depend on shared libraries, but programs linked with such libtool 4545*** libraries will work regardless of this problem. Nevertheless, you 4546*** may want to report the problem to your system manager and/or to 4547*** bug-libtool@gnu.org 4548 4549EOF 4550 fi ;; 4551 esac 4552 fi 4553 break 4554 fi 4555 done 4556 IFS="$ac_save_ifs" 4557 MAGIC_CMD="$ac_save_MAGIC_CMD" 4558 ;; 4559esac 4560fi 4561 4562MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4563if test -n "$MAGIC_CMD"; then 4564 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4565echo "${ECHO_T}$MAGIC_CMD" >&6 4566else 4567 echo "$as_me:$LINENO: result: no" >&5 4568echo "${ECHO_T}no" >&6 4569fi 4570 4571if test -z "$lt_cv_path_MAGIC_CMD"; then 4572 if test -n "$ac_tool_prefix"; then 4573 echo "$as_me:$LINENO: checking for file" >&5 4574echo $ECHO_N "checking for file... $ECHO_C" >&6 4575if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4576 echo $ECHO_N "(cached) $ECHO_C" >&6 4577else 4578 case $MAGIC_CMD in 4579 /*) 4580 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4581 ;; 4582 ?:/*) 4583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4584 ;; 4585 *) 4586 ac_save_MAGIC_CMD="$MAGIC_CMD" 4587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4588 ac_dummy="/usr/bin:$PATH" 4589 for ac_dir in $ac_dummy; do 4590 test -z "$ac_dir" && ac_dir=. 4591 if test -f $ac_dir/file; then 4592 lt_cv_path_MAGIC_CMD="$ac_dir/file" 4593 if test -n "$file_magic_test_file"; then 4594 case $deplibs_check_method in 4595 "file_magic "*) 4596 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4598 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4599 egrep "$file_magic_regex" > /dev/null; then 4600 : 4601 else 4602 cat <<EOF 1>&2 4603 4604*** Warning: the command libtool uses to detect shared libraries, 4605*** $file_magic_cmd, produces output that libtool cannot recognize. 4606*** The result is that libtool may fail to recognize shared libraries 4607*** as such. This will affect the creation of libtool libraries that 4608*** depend on shared libraries, but programs linked with such libtool 4609*** libraries will work regardless of this problem. Nevertheless, you 4610*** may want to report the problem to your system manager and/or to 4611*** bug-libtool@gnu.org 4612 4613EOF 4614 fi ;; 4615 esac 4616 fi 4617 break 4618 fi 4619 done 4620 IFS="$ac_save_ifs" 4621 MAGIC_CMD="$ac_save_MAGIC_CMD" 4622 ;; 4623esac 4624fi 4625 4626MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4627if test -n "$MAGIC_CMD"; then 4628 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4629echo "${ECHO_T}$MAGIC_CMD" >&6 4630else 4631 echo "$as_me:$LINENO: result: no" >&5 4632echo "${ECHO_T}no" >&6 4633fi 4634 4635 else 4636 MAGIC_CMD=: 4637 fi 4638fi 4639 4640 fi 4641 ;; 4642esac 4643 4644if test -n "$ac_tool_prefix"; then 4645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4646set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4647echo "$as_me:$LINENO: checking for $ac_word" >&5 4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4649if test "${ac_cv_prog_RANLIB+set}" = set; then 4650 echo $ECHO_N "(cached) $ECHO_C" >&6 4651else 4652 if test -n "$RANLIB"; then 4653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4654else 4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4656for as_dir in $PATH 4657do 4658 IFS=$as_save_IFS 4659 test -z "$as_dir" && as_dir=. 4660 for ac_exec_ext in '' $ac_executable_extensions; do 4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4664 break 2 4665 fi 4666done 4667done 4668 4669fi 4670fi 4671RANLIB=$ac_cv_prog_RANLIB 4672if test -n "$RANLIB"; then 4673 echo "$as_me:$LINENO: result: $RANLIB" >&5 4674echo "${ECHO_T}$RANLIB" >&6 4675else 4676 echo "$as_me:$LINENO: result: no" >&5 4677echo "${ECHO_T}no" >&6 4678fi 4679 4680fi 4681if test -z "$ac_cv_prog_RANLIB"; then 4682 ac_ct_RANLIB=$RANLIB 4683 # Extract the first word of "ranlib", so it can be a program name with args. 4684set dummy ranlib; ac_word=$2 4685echo "$as_me:$LINENO: checking for $ac_word" >&5 4686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4687if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4688 echo $ECHO_N "(cached) $ECHO_C" >&6 4689else 4690 if test -n "$ac_ct_RANLIB"; then 4691 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4692else 4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4694for as_dir in $PATH 4695do 4696 IFS=$as_save_IFS 4697 test -z "$as_dir" && as_dir=. 4698 for ac_exec_ext in '' $ac_executable_extensions; do 4699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4700 ac_cv_prog_ac_ct_RANLIB="ranlib" 4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4702 break 2 4703 fi 4704done 4705done 4706 4707 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4708fi 4709fi 4710ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4711if test -n "$ac_ct_RANLIB"; then 4712 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4713echo "${ECHO_T}$ac_ct_RANLIB" >&6 4714else 4715 echo "$as_me:$LINENO: result: no" >&5 4716echo "${ECHO_T}no" >&6 4717fi 4718 4719 RANLIB=$ac_ct_RANLIB 4720else 4721 RANLIB="$ac_cv_prog_RANLIB" 4722fi 4723 4724if test -n "$ac_tool_prefix"; then 4725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4726set dummy ${ac_tool_prefix}strip; ac_word=$2 4727echo "$as_me:$LINENO: checking for $ac_word" >&5 4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4729if test "${ac_cv_prog_STRIP+set}" = set; then 4730 echo $ECHO_N "(cached) $ECHO_C" >&6 4731else 4732 if test -n "$STRIP"; then 4733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4742 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747done 4748 4749fi 4750fi 4751STRIP=$ac_cv_prog_STRIP 4752if test -n "$STRIP"; then 4753 echo "$as_me:$LINENO: result: $STRIP" >&5 4754echo "${ECHO_T}$STRIP" >&6 4755else 4756 echo "$as_me:$LINENO: result: no" >&5 4757echo "${ECHO_T}no" >&6 4758fi 4759 4760fi 4761if test -z "$ac_cv_prog_STRIP"; then 4762 ac_ct_STRIP=$STRIP 4763 # Extract the first word of "strip", so it can be a program name with args. 4764set dummy strip; ac_word=$2 4765echo "$as_me:$LINENO: checking for $ac_word" >&5 4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4767if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4768 echo $ECHO_N "(cached) $ECHO_C" >&6 4769else 4770 if test -n "$ac_ct_STRIP"; then 4771 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4772else 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4780 ac_cv_prog_ac_ct_STRIP="strip" 4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4782 break 2 4783 fi 4784done 4785done 4786 4787 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4788fi 4789fi 4790ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4791if test -n "$ac_ct_STRIP"; then 4792 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4793echo "${ECHO_T}$ac_ct_STRIP" >&6 4794else 4795 echo "$as_me:$LINENO: result: no" >&5 4796echo "${ECHO_T}no" >&6 4797fi 4798 4799 STRIP=$ac_ct_STRIP 4800else 4801 STRIP="$ac_cv_prog_STRIP" 4802fi 4803 4804 4805enable_dlopen=no 4806enable_win32_dll=no 4807 4808# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4809if test "${enable_libtool_lock+set}" = set; then 4810 enableval="$enable_libtool_lock" 4811 4812fi; 4813test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4814 4815# Some flags need to be propagated to the compiler or linker for good 4816# libtool support. 4817case $host in 4818*-*-irix6*) 4819 # Find out which ABI we are using. 4820 echo '#line 4820 "configure"' > conftest.$ac_ext 4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4822 (eval $ac_compile) 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); }; then 4826 case `/usr/bin/file conftest.$ac_objext` in 4827 *32-bit*) 4828 LD="${LD-ld} -32" 4829 ;; 4830 *N32*) 4831 LD="${LD-ld} -n32" 4832 ;; 4833 *64-bit*) 4834 LD="${LD-ld} -64" 4835 ;; 4836 esac 4837 fi 4838 rm -rf conftest* 4839 ;; 4840 4841*-*-sco3.2v5*) 4842 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4843 SAVE_CFLAGS="$CFLAGS" 4844 CFLAGS="$CFLAGS -belf" 4845 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4846echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4847if test "${lt_cv_cc_needs_belf+set}" = set; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849else 4850 4851 4852 ac_ext=c 4853ac_cpp='$CPP $CPPFLAGS' 4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4856ac_compiler_gnu=$ac_cv_c_compiler_gnu 4857 4858 cat >conftest.$ac_ext <<_ACEOF 4859/* confdefs.h. */ 4860_ACEOF 4861cat confdefs.h >>conftest.$ac_ext 4862cat >>conftest.$ac_ext <<_ACEOF 4863/* end confdefs.h. */ 4864 4865int 4866main () 4867{ 4868 4869 ; 4870 return 0; 4871} 4872_ACEOF 4873rm -f conftest.$ac_objext conftest$ac_exeext 4874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4875 (eval $ac_link) 2>conftest.er1 4876 ac_status=$? 4877 grep -v '^ *+' conftest.er1 >conftest.err 4878 rm -f conftest.er1 4879 cat conftest.err >&5 4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); } && 4882 { ac_try='test -z "$ac_c_werror_flag" 4883 || test ! -s conftest.err' 4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4885 (eval $ac_try) 2>&5 4886 ac_status=$? 4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4888 (exit $ac_status); }; } && 4889 { ac_try='test -s conftest$ac_exeext' 4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4891 (eval $ac_try) 2>&5 4892 ac_status=$? 4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4894 (exit $ac_status); }; }; then 4895 lt_cv_cc_needs_belf=yes 4896else 4897 echo "$as_me: failed program was:" >&5 4898sed 's/^/| /' conftest.$ac_ext >&5 4899 4900lt_cv_cc_needs_belf=no 4901fi 4902rm -f conftest.err conftest.$ac_objext \ 4903 conftest$ac_exeext conftest.$ac_ext 4904 ac_ext=c 4905ac_cpp='$CPP $CPPFLAGS' 4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4908ac_compiler_gnu=$ac_cv_c_compiler_gnu 4909 4910fi 4911echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4912echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4915 CFLAGS="$SAVE_CFLAGS" 4916 fi 4917 ;; 4918 4919 4920esac 4921 4922# Sed substitution that helps us do robust quoting. It backslashifies 4923# metacharacters that are still active within double-quoted strings. 4924Xsed='sed -e s/^X//' 4925sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 4926 4927# Same as above, but do not quote variable references. 4928double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 4929 4930# Sed substitution to delay expansion of an escaped shell variable in a 4931# double_quote_subst'ed string. 4932delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4933 4934# Constants: 4935rm="rm -f" 4936 4937# Global variables: 4938default_ofile=libtool 4939can_build_shared=yes 4940 4941# All known linkers require a `.a' archive for static linking (except M$VC, 4942# which needs '.lib'). 4943libext=a 4944ltmain="$ac_aux_dir/ltmain.sh" 4945ofile="$default_ofile" 4946with_gnu_ld="$lt_cv_prog_gnu_ld" 4947need_locks="$enable_libtool_lock" 4948 4949old_CC="$CC" 4950old_CFLAGS="$CFLAGS" 4951 4952# Set sane defaults for various variables 4953test -z "$AR" && AR=ar 4954test -z "$AR_FLAGS" && AR_FLAGS=cru 4955test -z "$AS" && AS=as 4956test -z "$CC" && CC=cc 4957test -z "$DLLTOOL" && DLLTOOL=dlltool 4958test -z "$LD" && LD=ld 4959test -z "$LN_S" && LN_S="ln -s" 4960test -z "$MAGIC_CMD" && MAGIC_CMD=file 4961test -z "$NM" && NM=nm 4962test -z "$OBJDUMP" && OBJDUMP=objdump 4963test -z "$RANLIB" && RANLIB=: 4964test -z "$STRIP" && STRIP=: 4965test -z "$ac_objext" && ac_objext=o 4966 4967if test x"$host" != x"$build"; then 4968 ac_tool_prefix=${host_alias}- 4969else 4970 ac_tool_prefix= 4971fi 4972 4973# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 4974case $host_os in 4975linux-gnu*) ;; 4976linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 4977esac 4978 4979case $host_os in 4980aix3*) 4981 # AIX sometimes has problems with the GCC collect2 program. For some 4982 # reason, if we set the COLLECT_NAMES environment variable, the problems 4983 # vanish in a puff of smoke. 4984 if test "X${COLLECT_NAMES+set}" != Xset; then 4985 COLLECT_NAMES= 4986 export COLLECT_NAMES 4987 fi 4988 ;; 4989esac 4990 4991# Determine commands to create old-style static archives. 4992old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 4993old_postinstall_cmds='chmod 644 $oldlib' 4994old_postuninstall_cmds= 4995 4996if test -n "$RANLIB"; then 4997 case $host_os in 4998 openbsd*) 4999 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5000 ;; 5001 *) 5002 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5003 ;; 5004 esac 5005 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5006fi 5007 5008# Allow CC to be a program name with arguments. 5009set dummy $CC 5010compiler="$2" 5011 5012## FIXME: this should be a separate macro 5013## 5014echo "$as_me:$LINENO: checking for objdir" >&5 5015echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5016rm -f .libs 2>/dev/null 5017mkdir .libs 2>/dev/null 5018if test -d .libs; then 5019 objdir=.libs 5020else 5021 # MS-DOS does not allow filenames that begin with a dot. 5022 objdir=_libs 5023fi 5024rmdir .libs 2>/dev/null 5025echo "$as_me:$LINENO: result: $objdir" >&5 5026echo "${ECHO_T}$objdir" >&6 5027## 5028## END FIXME 5029 5030 5031## FIXME: this should be a separate macro 5032## 5033 5034# Check whether --with-pic or --without-pic was given. 5035if test "${with_pic+set}" = set; then 5036 withval="$with_pic" 5037 pic_mode="$withval" 5038else 5039 pic_mode=default 5040fi; 5041test -z "$pic_mode" && pic_mode=default 5042 5043# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5044# in isolation, and that seeing it set (from the cache) indicates that 5045# the associated values are set (in the cache) correctly too. 5046echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5048if test "${lt_cv_prog_cc_pic+set}" = set; then 5049 echo $ECHO_N "(cached) $ECHO_C" >&6 5050else 5051 lt_cv_prog_cc_pic= 5052 lt_cv_prog_cc_shlib= 5053 lt_cv_prog_cc_wl= 5054 lt_cv_prog_cc_static= 5055 lt_cv_prog_cc_no_builtin= 5056 lt_cv_prog_cc_can_build_shared=$can_build_shared 5057 5058 if test "$GCC" = yes; then 5059 lt_cv_prog_cc_wl='-Wl,' 5060 lt_cv_prog_cc_static='-static' 5061 5062 case $host_os in 5063 aix*) 5064 # Below there is a dirty hack to force normal static linking with -ldl 5065 # The problem is because libdl dynamically linked with both libc and 5066 # libC (AIX C++ library), which obviously doesn't included in libraries 5067 # list by gcc. This cause undefined symbols with -static flags. 5068 # This hack allows C programs to be linked with "-static -ldl", but 5069 # not sure about C++ programs. 5070 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 5071 ;; 5072 amigaos*) 5073 # FIXME: we need at least 68020 code to build shared libraries, but 5074 # adding the `-m68020' flag to GCC prevents building anything better, 5075 # like `-m68040'. 5076 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 5077 ;; 5078 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 5079 # PIC is the default for these OSes. 5080 ;; 5081 darwin* | rhapsody*) 5082 # PIC is the default on this platform 5083 # Common symbols not allowed in MH_DYLIB files 5084 lt_cv_prog_cc_pic='-fno-common' 5085 ;; 5086 cygwin* | mingw* | pw32* | os2*) 5087 # This hack is so that the source file can tell whether it is being 5088 # built for inclusion in a dll (and should export symbols for example). 5089 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5090 ;; 5091 sysv4*MP*) 5092 if test -d /usr/nec; then 5093 lt_cv_prog_cc_pic=-Kconform_pic 5094 fi 5095 ;; 5096 *) 5097 lt_cv_prog_cc_pic='-fPIC' 5098 ;; 5099 esac 5100 else 5101 # PORTME Check for PIC flags for the system compiler. 5102 case $host_os in 5103 aix3* | aix4* | aix5*) 5104 lt_cv_prog_cc_wl='-Wl,' 5105 # All AIX code is PIC. 5106 if test "$host_cpu" = ia64; then 5107 # AIX 5 now supports IA64 processor 5108 lt_cv_prog_cc_static='-Bstatic' 5109 else 5110 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 5111 fi 5112 ;; 5113 5114 hpux9* | hpux10* | hpux11*) 5115 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 5116 lt_cv_prog_cc_wl='-Wl,' 5117 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 5118 lt_cv_prog_cc_pic='+Z' 5119 ;; 5120 5121 irix5* | irix6*) 5122 lt_cv_prog_cc_wl='-Wl,' 5123 lt_cv_prog_cc_static='-non_shared' 5124 # PIC (with -KPIC) is the default. 5125 ;; 5126 5127 linux*) 5128 echo '__INTEL_COMPILER' > conftest.$ac_ext 5129 if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null 5130 then 5131 lt_cv_prog_cc_can_build_shared=no 5132 else 5133 # Intel icc 5134 lt_cv_prog_cc_pic='-KPIC' 5135 lt_cv_prog_cc_static='-static' 5136 lt_cv_prog_cc_wl='-Qoption,ld,' 5137 fi 5138 ;; 5139 5140 cygwin* | mingw* | pw32* | os2*) 5141 # This hack is so that the source file can tell whether it is being 5142 # built for inclusion in a dll (and should export symbols for example). 5143 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5144 ;; 5145 5146 newsos6) 5147 lt_cv_prog_cc_pic='-KPIC' 5148 lt_cv_prog_cc_static='-Bstatic' 5149 ;; 5150 5151 osf3* | osf4* | osf5*) 5152 # All OSF/1 code is PIC. 5153 lt_cv_prog_cc_wl='-Wl,' 5154 lt_cv_prog_cc_static='-non_shared' 5155 ;; 5156 5157 sco3.2v5*) 5158 lt_cv_prog_cc_pic='-Kpic' 5159 lt_cv_prog_cc_static='-dn' 5160 lt_cv_prog_cc_shlib='-belf' 5161 ;; 5162 5163 solaris*) 5164 lt_cv_prog_cc_pic='-KPIC' 5165 lt_cv_prog_cc_static='-Bstatic' 5166 lt_cv_prog_cc_wl='-Wl,' 5167 ;; 5168 5169 sunos4*) 5170 lt_cv_prog_cc_pic='-PIC' 5171 lt_cv_prog_cc_static='-Bstatic' 5172 lt_cv_prog_cc_wl='-Qoption ld ' 5173 ;; 5174 5175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5176 lt_cv_prog_cc_pic='-KPIC' 5177 lt_cv_prog_cc_static='-Bstatic' 5178 if test "x$host_vendor" = xsni; then 5179 lt_cv_prog_cc_wl='-LD' 5180 else 5181 lt_cv_prog_cc_wl='-Wl,' 5182 fi 5183 ;; 5184 5185 uts4*) 5186 lt_cv_prog_cc_pic='-pic' 5187 lt_cv_prog_cc_static='-Bstatic' 5188 ;; 5189 5190 sysv4*MP*) 5191 if test -d /usr/nec ;then 5192 lt_cv_prog_cc_pic='-Kconform_pic' 5193 lt_cv_prog_cc_static='-Bstatic' 5194 fi 5195 ;; 5196 5197 *) 5198 lt_cv_prog_cc_can_build_shared=no 5199 ;; 5200 esac 5201 fi 5202 5203fi 5204 5205if test -z "$lt_cv_prog_cc_pic"; then 5206 echo "$as_me:$LINENO: result: none" >&5 5207echo "${ECHO_T}none" >&6 5208else 5209 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 5210echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 5211 5212 # Check to make sure the pic_flag actually works. 5213 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 5214echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 5215 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 5216 echo $ECHO_N "(cached) $ECHO_C" >&6 5217else 5218 save_CFLAGS="$CFLAGS" 5219 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5220 cat >conftest.$ac_ext <<_ACEOF 5221/* confdefs.h. */ 5222_ACEOF 5223cat confdefs.h >>conftest.$ac_ext 5224cat >>conftest.$ac_ext <<_ACEOF 5225/* end confdefs.h. */ 5226 5227int 5228main () 5229{ 5230 5231 ; 5232 return 0; 5233} 5234_ACEOF 5235rm -f conftest.$ac_objext 5236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5237 (eval $ac_compile) 2>conftest.er1 5238 ac_status=$? 5239 grep -v '^ *+' conftest.er1 >conftest.err 5240 rm -f conftest.er1 5241 cat conftest.err >&5 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); } && 5244 { ac_try='test -z "$ac_c_werror_flag" 5245 || test ! -s conftest.err' 5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5247 (eval $ac_try) 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); }; } && 5251 { ac_try='test -s conftest.$ac_objext' 5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5253 (eval $ac_try) 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); }; }; then 5257 case $host_os in 5258 hpux9* | hpux10* | hpux11*) 5259 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5260 # they create non-PIC objects. So, if there were any warnings, we 5261 # assume that PIC is not supported. 5262 if test -s conftest.err; then 5263 lt_cv_prog_cc_pic_works=no 5264 else 5265 lt_cv_prog_cc_pic_works=yes 5266 fi 5267 ;; 5268 *) 5269 lt_cv_prog_cc_pic_works=yes 5270 ;; 5271 esac 5272 5273else 5274 echo "$as_me: failed program was:" >&5 5275sed 's/^/| /' conftest.$ac_ext >&5 5276 5277 lt_cv_prog_cc_pic_works=no 5278 5279fi 5280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5281 CFLAGS="$save_CFLAGS" 5282 5283fi 5284 5285 5286 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5287 lt_cv_prog_cc_pic= 5288 lt_cv_prog_cc_can_build_shared=no 5289 else 5290 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5291 fi 5292 5293 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 5294echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 5295fi 5296## 5297## END FIXME 5298 5299# Check for any special shared library compilation flags. 5300if test -n "$lt_cv_prog_cc_shlib"; then 5301 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 5302echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 5303 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5304 else 5305 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5306echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5307 lt_cv_prog_cc_can_build_shared=no 5308 fi 5309fi 5310 5311## FIXME: this should be a separate macro 5312## 5313echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 5314echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 5315if test "${lt_cv_prog_cc_static_works+set}" = set; then 5316 echo $ECHO_N "(cached) $ECHO_C" >&6 5317else 5318 lt_cv_prog_cc_static_works=no 5319 save_LDFLAGS="$LDFLAGS" 5320 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5321 cat >conftest.$ac_ext <<_ACEOF 5322/* confdefs.h. */ 5323_ACEOF 5324cat confdefs.h >>conftest.$ac_ext 5325cat >>conftest.$ac_ext <<_ACEOF 5326/* end confdefs.h. */ 5327 5328int 5329main () 5330{ 5331 5332 ; 5333 return 0; 5334} 5335_ACEOF 5336rm -f conftest.$ac_objext conftest$ac_exeext 5337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5338 (eval $ac_link) 2>conftest.er1 5339 ac_status=$? 5340 grep -v '^ *+' conftest.er1 >conftest.err 5341 rm -f conftest.er1 5342 cat conftest.err >&5 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } && 5345 { ac_try='test -z "$ac_c_werror_flag" 5346 || test ! -s conftest.err' 5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5348 (eval $ac_try) 2>&5 5349 ac_status=$? 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); }; } && 5352 { ac_try='test -s conftest$ac_exeext' 5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5354 (eval $ac_try) 2>&5 5355 ac_status=$? 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); }; }; then 5358 lt_cv_prog_cc_static_works=yes 5359else 5360 echo "$as_me: failed program was:" >&5 5361sed 's/^/| /' conftest.$ac_ext >&5 5362 5363fi 5364rm -f conftest.err conftest.$ac_objext \ 5365 conftest$ac_exeext conftest.$ac_ext 5366 LDFLAGS="$save_LDFLAGS" 5367 5368fi 5369 5370 5371# Belt *and* braces to stop my trousers falling down: 5372test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5373echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 5374echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 5375 5376pic_flag="$lt_cv_prog_cc_pic" 5377special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5378wl="$lt_cv_prog_cc_wl" 5379link_static_flag="$lt_cv_prog_cc_static" 5380no_builtin_flag="$lt_cv_prog_cc_no_builtin" 5381can_build_shared="$lt_cv_prog_cc_can_build_shared" 5382## 5383## END FIXME 5384 5385 5386## FIXME: this should be a separate macro 5387## 5388# Check to see if options -o and -c are simultaneously supported by compiler 5389echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5390echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5391if test "${lt_cv_compiler_c_o+set}" = set; then 5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5393else 5394 5395$rm -r conftest 2>/dev/null 5396mkdir conftest 5397cd conftest 5398echo "int some_variable = 0;" > conftest.$ac_ext 5399mkdir out 5400# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 5401# that will create temporary files in the current directory regardless of 5402# the output directory. Thus, making CWD read-only will cause this test 5403# to fail, enabling locking or at least warning the user not to do parallel 5404# builds. 5405chmod -w . 5406save_CFLAGS="$CFLAGS" 5407CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5408compiler_c_o=no 5409if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5410 # The compiler can only warn and ignore the option if not recognized 5411 # So say no if there are warnings 5412 if test -s out/conftest.err; then 5413 lt_cv_compiler_c_o=no 5414 else 5415 lt_cv_compiler_c_o=yes 5416 fi 5417else 5418 # Append any errors to the config.log. 5419 cat out/conftest.err 1>&5 5420 lt_cv_compiler_c_o=no 5421fi 5422CFLAGS="$save_CFLAGS" 5423chmod u+w . 5424$rm conftest* out/* 5425rmdir out 5426cd .. 5427rmdir conftest 5428$rm -r conftest 2>/dev/null 5429 5430fi 5431 5432compiler_c_o=$lt_cv_compiler_c_o 5433echo "$as_me:$LINENO: result: $compiler_c_o" >&5 5434echo "${ECHO_T}$compiler_c_o" >&6 5435 5436if test x"$compiler_c_o" = x"yes"; then 5437 # Check to see if we can write to a .lo 5438 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 5439echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 5440 if test "${lt_cv_compiler_o_lo+set}" = set; then 5441 echo $ECHO_N "(cached) $ECHO_C" >&6 5442else 5443 5444 lt_cv_compiler_o_lo=no 5445 save_CFLAGS="$CFLAGS" 5446 CFLAGS="$CFLAGS -c -o conftest.lo" 5447 save_objext="$ac_objext" 5448 ac_objext=lo 5449 cat >conftest.$ac_ext <<_ACEOF 5450/* confdefs.h. */ 5451_ACEOF 5452cat confdefs.h >>conftest.$ac_ext 5453cat >>conftest.$ac_ext <<_ACEOF 5454/* end confdefs.h. */ 5455 5456int 5457main () 5458{ 5459int some_variable = 0; 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464rm -f conftest.$ac_objext 5465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5466 (eval $ac_compile) 2>conftest.er1 5467 ac_status=$? 5468 grep -v '^ *+' conftest.er1 >conftest.err 5469 rm -f conftest.er1 5470 cat conftest.err >&5 5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5472 (exit $ac_status); } && 5473 { ac_try='test -z "$ac_c_werror_flag" 5474 || test ! -s conftest.err' 5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5476 (eval $ac_try) 2>&5 5477 ac_status=$? 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); }; } && 5480 { ac_try='test -s conftest.$ac_objext' 5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5482 (eval $ac_try) 2>&5 5483 ac_status=$? 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); }; }; then 5486 # The compiler can only warn and ignore the option if not recognized 5487 # So say no if there are warnings 5488 if test -s conftest.err; then 5489 lt_cv_compiler_o_lo=no 5490 else 5491 lt_cv_compiler_o_lo=yes 5492 fi 5493 5494else 5495 echo "$as_me: failed program was:" >&5 5496sed 's/^/| /' conftest.$ac_ext >&5 5497 5498fi 5499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5500 ac_objext="$save_objext" 5501 CFLAGS="$save_CFLAGS" 5502 5503fi 5504 5505 compiler_o_lo=$lt_cv_compiler_o_lo 5506 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 5507echo "${ECHO_T}$compiler_o_lo" >&6 5508else 5509 compiler_o_lo=no 5510fi 5511## 5512## END FIXME 5513 5514## FIXME: this should be a separate macro 5515## 5516# Check to see if we can do hard links to lock some files if needed 5517hard_links="nottested" 5518if test "$compiler_c_o" = no && test "$need_locks" != no; then 5519 # do not overwrite the value of need_locks provided by the user 5520 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 5521echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 5522 hard_links=yes 5523 $rm conftest* 5524 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5525 touch conftest.a 5526 ln conftest.a conftest.b 2>&5 || hard_links=no 5527 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5528 echo "$as_me:$LINENO: result: $hard_links" >&5 5529echo "${ECHO_T}$hard_links" >&6 5530 if test "$hard_links" = no; then 5531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5532echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5533 need_locks=warn 5534 fi 5535else 5536 need_locks=no 5537fi 5538## 5539## END FIXME 5540 5541## FIXME: this should be a separate macro 5542## 5543if test "$GCC" = yes; then 5544 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5545 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5546echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5547 echo "int some_variable = 0;" > conftest.$ac_ext 5548 save_CFLAGS="$CFLAGS" 5549 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5550 compiler_rtti_exceptions=no 5551 cat >conftest.$ac_ext <<_ACEOF 5552/* confdefs.h. */ 5553_ACEOF 5554cat confdefs.h >>conftest.$ac_ext 5555cat >>conftest.$ac_ext <<_ACEOF 5556/* end confdefs.h. */ 5557 5558int 5559main () 5560{ 5561int some_variable = 0; 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566rm -f conftest.$ac_objext 5567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5568 (eval $ac_compile) 2>conftest.er1 5569 ac_status=$? 5570 grep -v '^ *+' conftest.er1 >conftest.err 5571 rm -f conftest.er1 5572 cat conftest.err >&5 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); } && 5575 { ac_try='test -z "$ac_c_werror_flag" 5576 || test ! -s conftest.err' 5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5578 (eval $ac_try) 2>&5 5579 ac_status=$? 5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5581 (exit $ac_status); }; } && 5582 { ac_try='test -s conftest.$ac_objext' 5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5584 (eval $ac_try) 2>&5 5585 ac_status=$? 5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); }; }; then 5588 # The compiler can only warn and ignore the option if not recognized 5589 # So say no if there are warnings 5590 if test -s conftest.err; then 5591 compiler_rtti_exceptions=no 5592 else 5593 compiler_rtti_exceptions=yes 5594 fi 5595 5596else 5597 echo "$as_me: failed program was:" >&5 5598sed 's/^/| /' conftest.$ac_ext >&5 5599 5600fi 5601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5602 CFLAGS="$save_CFLAGS" 5603 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5604echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5605 5606 if test "$compiler_rtti_exceptions" = "yes"; then 5607 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5608 else 5609 no_builtin_flag=' -fno-builtin' 5610 fi 5611fi 5612## 5613## END FIXME 5614 5615## FIXME: this should be a separate macro 5616## 5617# See if the linker supports building shared libraries. 5618echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5619echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5620 5621allow_undefined_flag= 5622no_undefined_flag= 5623need_lib_prefix=unknown 5624need_version=unknown 5625# when you set need_version to no, make sure it does not cause -set_version 5626# flags to be left without arguments 5627archive_cmds= 5628archive_expsym_cmds= 5629old_archive_from_new_cmds= 5630old_archive_from_expsyms_cmds= 5631export_dynamic_flag_spec= 5632whole_archive_flag_spec= 5633thread_safe_flag_spec= 5634hardcode_into_libs=no 5635hardcode_libdir_flag_spec= 5636hardcode_libdir_separator= 5637hardcode_direct=no 5638hardcode_minus_L=no 5639hardcode_shlibpath_var=unsupported 5640runpath_var= 5641link_all_deplibs=unknown 5642always_export_symbols=no 5643export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5644# include_expsyms should be a list of space-separated symbols to be *always* 5645# included in the symbol list 5646include_expsyms= 5647# exclude_expsyms can be an egrep regular expression of symbols to exclude 5648# it will be wrapped by ` (' and `)$', so one must not match beginning or 5649# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5650# as well as any symbol that contains `d'. 5651exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5652# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5653# platforms (ab)use it in PIC code, but their linkers get confused if 5654# the symbol is explicitly referenced. Since portable code cannot 5655# rely on this symbol name, it's probably fine to never include it in 5656# preloaded symbol tables. 5657extract_expsyms_cmds= 5658 5659case $host_os in 5660cygwin* | mingw* | pw32*) 5661 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5662 # When not using gcc, we currently assume that we are using 5663 # Microsoft Visual C++. 5664 if test "$GCC" != yes; then 5665 with_gnu_ld=no 5666 fi 5667 ;; 5668openbsd*) 5669 with_gnu_ld=no 5670 ;; 5671esac 5672 5673ld_shlibs=yes 5674if test "$with_gnu_ld" = yes; then 5675 # If archive_cmds runs LD, not CC, wlarc should be empty 5676 wlarc='${wl}' 5677 5678 # See if GNU ld supports shared libraries. 5679 case $host_os in 5680 aix3* | aix4* | aix5*) 5681 # On AIX, the GNU linker is very broken 5682 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 5683 ld_shlibs=no 5684 cat <<EOF 1>&2 5685 5686*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5687*** to be unable to reliably create shared libraries on AIX. 5688*** Therefore, libtool is disabling shared libraries support. If you 5689*** really care for shared libraries, you may want to modify your PATH 5690*** so that a non-GNU linker is found, and then restart. 5691 5692EOF 5693 ;; 5694 5695 amigaos*) 5696 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)' 5697 hardcode_libdir_flag_spec='-L$libdir' 5698 hardcode_minus_L=yes 5699 5700 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5701 # that the semantics of dynamic libraries on AmigaOS, at least up 5702 # to version 4, is to share data among multiple programs linked 5703 # with the same dynamic library. Since this doesn't match the 5704 # behavior of shared libraries on other platforms, we can use 5705 # them. 5706 ld_shlibs=no 5707 ;; 5708 5709 beos*) 5710 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5711 allow_undefined_flag=unsupported 5712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5713 # support --undefined. This deserves some investigation. FIXME 5714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5715 else 5716 ld_shlibs=no 5717 fi 5718 ;; 5719 5720 cygwin* | mingw* | pw32*) 5721 # hardcode_libdir_flag_spec is actually meaningless, as there is 5722 # no search path for DLLs. 5723 hardcode_libdir_flag_spec='-L$libdir' 5724 allow_undefined_flag=unsupported 5725 always_export_symbols=yes 5726 5727 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 5728 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 5729 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 5730 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 5731 else $CC -o impgen impgen.c ; fi)~ 5732 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 5733 5734 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 5735 5736 # cygwin and mingw dlls have different entry points and sets of symbols 5737 # to exclude. 5738 # FIXME: what about values for MSVC? 5739 dll_entry=__cygwin_dll_entry@12 5740 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 5741 case $host_os in 5742 mingw*) 5743 # mingw values 5744 dll_entry=_DllMainCRTStartup@12 5745 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 5746 ;; 5747 esac 5748 5749 # mingw and cygwin differ, and it's simplest to just exclude the union 5750 # of the two symbol sets. 5751 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 5752 5753 # recent cygwin and mingw systems supply a stub DllMain which the user 5754 # can override, but on older systems we have to supply one (in ltdll.c) 5755 if test "x$lt_cv_need_dllmain" = "xyes"; then 5756 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 5757 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~ 5758 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 5759 else 5760 ltdll_obj= 5761 ltdll_cmds= 5762 fi 5763 5764 # Extract the symbol export list from an `--export-all' def file, 5765 # then regenerate the def file from the symbol export list, so that 5766 # the compiled dll only exports the symbol export list. 5767 # Be careful not to strip the DATA tag left be newer dlltools. 5768 export_symbols_cmds="$ltdll_cmds"' 5769 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 5770 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 5771 5772 # If the export-symbols file already is a .def file (1st line 5773 # is EXPORTS), use it as is. 5774 # If DATA tags from a recent dlltool are present, honour them! 5775 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 5776 cp $export_symbols $output_objdir/$soname-def; 5777 else 5778 echo EXPORTS > $output_objdir/$soname-def; 5779 _lt_hint=1; 5780 cat $export_symbols | while read symbol; do 5781 set dummy \$symbol; 5782 case \$# in 5783 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 5784 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 5785 esac; 5786 _lt_hint=`expr 1 + \$_lt_hint`; 5787 done; 5788 fi~ 5789 '"$ltdll_cmds"' 5790 $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~ 5791 $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~ 5792 $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~ 5793 $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~ 5794 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 5795 ;; 5796 5797 netbsd*) 5798 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5800 wlarc= 5801 else 5802 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5803 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5804 fi 5805 ;; 5806 5807 solaris* | sysv5*) 5808 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 5809 ld_shlibs=no 5810 cat <<EOF 1>&2 5811 5812*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5813*** create shared libraries on Solaris systems. Therefore, libtool 5814*** is disabling shared libraries support. We urge you to upgrade GNU 5815*** binutils to release 2.9.1 or newer. Another option is to modify 5816*** your PATH or compiler configuration so that the native linker is 5817*** used, and then restart. 5818 5819EOF 5820 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5823 else 5824 ld_shlibs=no 5825 fi 5826 ;; 5827 5828 sunos4*) 5829 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5830 wlarc= 5831 hardcode_direct=yes 5832 hardcode_shlibpath_var=no 5833 ;; 5834 5835 *) 5836 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5839 else 5840 ld_shlibs=no 5841 fi 5842 ;; 5843 esac 5844 5845 if test "$ld_shlibs" = yes; then 5846 runpath_var=LD_RUN_PATH 5847 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 5848 export_dynamic_flag_spec='${wl}--export-dynamic' 5849 case $host_os in 5850 cygwin* | mingw* | pw32*) 5851 # dlltool doesn't understand --whole-archive et. al. 5852 whole_archive_flag_spec= 5853 ;; 5854 *) 5855 # ancient GNU ld didn't support --whole-archive et. al. 5856 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 5857 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5858 else 5859 whole_archive_flag_spec= 5860 fi 5861 ;; 5862 esac 5863 fi 5864else 5865 # PORTME fill in a description of your system's linker (not GNU ld) 5866 case $host_os in 5867 aix3*) 5868 allow_undefined_flag=unsupported 5869 always_export_symbols=yes 5870 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' 5871 # Note: this linker hardcodes the directories in LIBPATH if there 5872 # are no directories specified by -L. 5873 hardcode_minus_L=yes 5874 if test "$GCC" = yes && test -z "$link_static_flag"; then 5875 # Neither direct hardcoding nor static linking is supported with a 5876 # broken collect2. 5877 hardcode_direct=unsupported 5878 fi 5879 ;; 5880 5881 aix4* | aix5*) 5882 if test "$host_cpu" = ia64; then 5883 # On IA64, the linker does run time linking by default, so we don't 5884 # have to do anything special. 5885 aix_use_runtimelinking=no 5886 exp_sym_flag='-Bexport' 5887 no_entry_flag="" 5888 else 5889 aix_use_runtimelinking=no 5890 5891 # Test if we are trying to use run time linking or normal 5892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5893 # need to do runtime linking. 5894 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 5895 for ld_flag in $LDFLAGS; do 5896 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5897 aix_use_runtimelinking=yes 5898 break 5899 fi 5900 done 5901 esac 5902 5903 exp_sym_flag='-bexport' 5904 no_entry_flag='-bnoentry' 5905 fi 5906 5907 # When large executables or shared objects are built, AIX ld can 5908 # have problems creating the table of contents. If linking a library 5909 # or program results in "error TOC overflow" add -mminimal-toc to 5910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5912 5913 hardcode_direct=yes 5914 archive_cmds='' 5915 hardcode_libdir_separator=':' 5916 if test "$GCC" = yes; then 5917 case $host_os in aix4.[012]|aix4.[012].*) 5918 collect2name=`${CC} -print-prog-name=collect2` 5919 if test -f "$collect2name" && \ 5920 strings "$collect2name" | grep resolve_lib_name >/dev/null 5921 then 5922 # We have reworked collect2 5923 hardcode_direct=yes 5924 else 5925 # We have old collect2 5926 hardcode_direct=unsupported 5927 # It fails to find uninstalled libraries when the uninstalled 5928 # path is not listed in the libpath. Setting hardcode_minus_L 5929 # to unsupported forces relinking 5930 hardcode_minus_L=yes 5931 hardcode_libdir_flag_spec='-L$libdir' 5932 hardcode_libdir_separator= 5933 fi 5934 esac 5935 5936 shared_flag='-shared' 5937 else 5938 # not using gcc 5939 if test "$host_cpu" = ia64; then 5940 shared_flag='${wl}-G' 5941 else 5942 if test "$aix_use_runtimelinking" = yes; then 5943 shared_flag='${wl}-G' 5944 else 5945 shared_flag='${wl}-bM:SRE' 5946 fi 5947 fi 5948 fi 5949 5950 # It seems that -bexpall can do strange things, so it is better to 5951 # generate a list of symbols to export. 5952 always_export_symbols=yes 5953 if test "$aix_use_runtimelinking" = yes; then 5954 # Warning - without using the other runtime loading flags (-brtl), 5955 # -berok will link without error, but may produce a broken library. 5956 allow_undefined_flag='-berok' 5957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 5958 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" 5959 else 5960 if test "$host_cpu" = ia64; then 5961 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 5962 allow_undefined_flag="-z nodefs" 5963 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" 5964 else 5965 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 5966 # Warning - without using the other run time loading flags, 5967 # -berok will link without error, but may produce a broken library. 5968 allow_undefined_flag='${wl}-berok' 5969 # This is a bit strange, but is similar to how AIX traditionally builds 5970 # it's shared libraries. 5971 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' 5972 fi 5973 fi 5974 ;; 5975 5976 amigaos*) 5977 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)' 5978 hardcode_libdir_flag_spec='-L$libdir' 5979 hardcode_minus_L=yes 5980 # see comment about different semantics on the GNU ld section 5981 ld_shlibs=no 5982 ;; 5983 5984 cygwin* | mingw* | pw32*) 5985 # When not using gcc, we currently assume that we are using 5986 # Microsoft Visual C++. 5987 # hardcode_libdir_flag_spec is actually meaningless, as there is 5988 # no search path for DLLs. 5989 hardcode_libdir_flag_spec=' ' 5990 allow_undefined_flag=unsupported 5991 # Tell ltmain to make .lib files, not .a files. 5992 libext=lib 5993 # FIXME: Setting linknames here is a bad hack. 5994 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5995 # The linker will automatically build a .lib file if we build a DLL. 5996 old_archive_from_new_cmds='true' 5997 # FIXME: Should let the user specify the lib program. 5998 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 5999 fix_srcfile_path='`cygpath -w "$srcfile"`' 6000 ;; 6001 6002 darwin* | rhapsody*) 6003 case "$host_os" in 6004 rhapsody* | darwin1.[012]) 6005 allow_undefined_flag='-undefined suppress' 6006 ;; 6007 *) # Darwin 1.3 on 6008 allow_undefined_flag='-flat_namespace -undefined suppress' 6009 ;; 6010 esac 6011 # FIXME: Relying on posixy $() will cause problems for 6012 # cross-compilation, but unfortunately the echo tests do not 6013 # yet detect zsh echo's removal of \ escapes. 6014 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' 6015 # We need to add '_' to the symbols in $export_symbols first 6016 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 6017 hardcode_direct=yes 6018 hardcode_shlibpath_var=no 6019 whole_archive_flag_spec='-all_load $convenience' 6020 ;; 6021 6022 freebsd1*) 6023 ld_shlibs=no 6024 ;; 6025 6026 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6027 # support. Future versions do this automatically, but an explicit c++rt0.o 6028 # does not break anything, and helps significantly (at the cost of a little 6029 # extra space). 6030 freebsd2.2*) 6031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6032 hardcode_libdir_flag_spec='-R$libdir' 6033 hardcode_direct=yes 6034 hardcode_shlibpath_var=no 6035 ;; 6036 6037 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6038 freebsd2*) 6039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6040 hardcode_direct=yes 6041 hardcode_minus_L=yes 6042 hardcode_shlibpath_var=no 6043 ;; 6044 6045 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6046 freebsd*) 6047 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6048 hardcode_libdir_flag_spec='-R$libdir' 6049 hardcode_direct=yes 6050 hardcode_shlibpath_var=no 6051 ;; 6052 6053 hpux9* | hpux10* | hpux11*) 6054 case $host_os in 6055 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' ;; 6056 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 6057 esac 6058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6059 hardcode_libdir_separator=: 6060 hardcode_direct=yes 6061 hardcode_minus_L=yes # Not in the search PATH, but as the default 6062 # location of the library. 6063 export_dynamic_flag_spec='${wl}-E' 6064 ;; 6065 6066 irix5* | irix6*) 6067 if test "$GCC" = yes; then 6068 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' 6069 else 6070 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' 6071 fi 6072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6073 hardcode_libdir_separator=: 6074 link_all_deplibs=yes 6075 ;; 6076 6077 netbsd*) 6078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6080 else 6081 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6082 fi 6083 hardcode_libdir_flag_spec='-R$libdir' 6084 hardcode_direct=yes 6085 hardcode_shlibpath_var=no 6086 ;; 6087 6088 newsos6) 6089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6090 hardcode_direct=yes 6091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6092 hardcode_libdir_separator=: 6093 hardcode_shlibpath_var=no 6094 ;; 6095 6096 openbsd*) 6097 hardcode_direct=yes 6098 hardcode_shlibpath_var=no 6099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 6101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6102 export_dynamic_flag_spec='${wl}-E' 6103 else 6104 case "$host_os" in 6105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6107 hardcode_libdir_flag_spec='-R$libdir' 6108 ;; 6109 *) 6110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 6111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6112 ;; 6113 esac 6114 fi 6115 ;; 6116 6117 os2*) 6118 hardcode_libdir_flag_spec='-L$libdir' 6119 hardcode_minus_L=yes 6120 allow_undefined_flag=unsupported 6121 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' 6122 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6123 ;; 6124 6125 osf3*) 6126 if test "$GCC" = yes; then 6127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6128 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' 6129 else 6130 allow_undefined_flag=' -expect_unresolved \*' 6131 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' 6132 fi 6133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6134 hardcode_libdir_separator=: 6135 ;; 6136 6137 osf4* | osf5*) # as osf3* with the addition of -msym flag 6138 if test "$GCC" = yes; then 6139 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6140 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' 6141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6142 else 6143 allow_undefined_flag=' -expect_unresolved \*' 6144 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' 6145 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6146 $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' 6147 6148 #Both c and cxx compiler support -rpath directly 6149 hardcode_libdir_flag_spec='-rpath $libdir' 6150 fi 6151 hardcode_libdir_separator=: 6152 ;; 6153 6154 sco3.2v5*) 6155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6156 hardcode_shlibpath_var=no 6157 runpath_var=LD_RUN_PATH 6158 hardcode_runpath_var=yes 6159 export_dynamic_flag_spec='${wl}-Bexport' 6160 ;; 6161 6162 solaris*) 6163 # gcc --version < 3.0 without binutils cannot create self contained 6164 # shared libraries reliably, requiring libgcc.a to resolve some of 6165 # the object symbols generated in some cases. Libraries that use 6166 # assert need libgcc.a to resolve __eprintf, for example. Linking 6167 # a copy of libgcc.a into every shared library to guarantee resolving 6168 # such symbols causes other problems: According to Tim Van Holder 6169 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 6170 # (to the application) exception stack for one thing. 6171 no_undefined_flag=' -z defs' 6172 if test "$GCC" = yes; then 6173 case `$CC --version 2>/dev/null` in 6174 [12].*) 6175 cat <<EOF 1>&2 6176 6177*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 6178*** create self contained shared libraries on Solaris systems, without 6179*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 6180*** -no-undefined support, which will at least allow you to build shared 6181*** libraries. However, you may find that when you link such libraries 6182*** into an application without using GCC, you have to manually add 6183*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 6184*** upgrade to a newer version of GCC. Another option is to rebuild your 6185*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 6186 6187EOF 6188 no_undefined_flag= 6189 ;; 6190 esac 6191 fi 6192 # $CC -shared without GNU ld will not create a library from C++ 6193 # object files and a static libstdc++, better avoid it by now 6194 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6195 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6197 hardcode_libdir_flag_spec='-R$libdir' 6198 hardcode_shlibpath_var=no 6199 case $host_os in 6200 solaris2.[0-5] | solaris2.[0-5].*) ;; 6201 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6203 esac 6204 link_all_deplibs=yes 6205 ;; 6206 6207 sunos4*) 6208 if test "x$host_vendor" = xsequent; then 6209 # Use $CC to link under sequent, because it throws in some extra .o 6210 # files that make .init and .fini sections work. 6211 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6212 else 6213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6214 fi 6215 hardcode_libdir_flag_spec='-L$libdir' 6216 hardcode_direct=yes 6217 hardcode_minus_L=yes 6218 hardcode_shlibpath_var=no 6219 ;; 6220 6221 sysv4) 6222 if test "x$host_vendor" = xsno; then 6223 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 6224 hardcode_direct=yes # is this really true??? 6225 else 6226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6227 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6228 fi 6229 runpath_var='LD_RUN_PATH' 6230 hardcode_shlibpath_var=no 6231 ;; 6232 6233 sysv4.3*) 6234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6235 hardcode_shlibpath_var=no 6236 export_dynamic_flag_spec='-Bexport' 6237 ;; 6238 6239 sysv5*) 6240 no_undefined_flag=' -z text' 6241 # $CC -shared without GNU ld will not create a library from C++ 6242 # object files and a static libstdc++, better avoid it by now 6243 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6244 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6245 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6246 hardcode_libdir_flag_spec= 6247 hardcode_shlibpath_var=no 6248 runpath_var='LD_RUN_PATH' 6249 ;; 6250 6251 uts4*) 6252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6253 hardcode_libdir_flag_spec='-L$libdir' 6254 hardcode_shlibpath_var=no 6255 ;; 6256 6257 dgux*) 6258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6259 hardcode_libdir_flag_spec='-L$libdir' 6260 hardcode_shlibpath_var=no 6261 ;; 6262 6263 sysv4*MP*) 6264 if test -d /usr/nec; then 6265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6266 hardcode_shlibpath_var=no 6267 runpath_var=LD_RUN_PATH 6268 hardcode_runpath_var=yes 6269 ld_shlibs=yes 6270 fi 6271 ;; 6272 6273 sysv4.2uw2*) 6274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6275 hardcode_direct=yes 6276 hardcode_minus_L=no 6277 hardcode_shlibpath_var=no 6278 hardcode_runpath_var=yes 6279 runpath_var=LD_RUN_PATH 6280 ;; 6281 6282 sysv5uw7* | unixware7*) 6283 no_undefined_flag='${wl}-z ${wl}text' 6284 if test "$GCC" = yes; then 6285 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6286 else 6287 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6288 fi 6289 runpath_var='LD_RUN_PATH' 6290 hardcode_shlibpath_var=no 6291 ;; 6292 6293 *) 6294 ld_shlibs=no 6295 ;; 6296 esac 6297fi 6298echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6299echo "${ECHO_T}$ld_shlibs" >&6 6300test "$ld_shlibs" = no && can_build_shared=no 6301## 6302## END FIXME 6303 6304## FIXME: this should be a separate macro 6305## 6306# Check hardcoding attributes. 6307echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 6308echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 6309hardcode_action= 6310if test -n "$hardcode_libdir_flag_spec" || \ 6311 test -n "$runpath_var"; then 6312 6313 # We can hardcode non-existant directories. 6314 if test "$hardcode_direct" != no && 6315 # If the only mechanism to avoid hardcoding is shlibpath_var, we 6316 # have to relink, otherwise we might link with an installed library 6317 # when we should be linking with a yet-to-be-installed one 6318 ## test "$hardcode_shlibpath_var" != no && 6319 test "$hardcode_minus_L" != no; then 6320 # Linking always hardcodes the temporary library directory. 6321 hardcode_action=relink 6322 else 6323 # We can link without hardcoding, and we can hardcode nonexisting dirs. 6324 hardcode_action=immediate 6325 fi 6326else 6327 # We cannot hardcode anything, or else we can only hardcode existing 6328 # directories. 6329 hardcode_action=unsupported 6330fi 6331echo "$as_me:$LINENO: result: $hardcode_action" >&5 6332echo "${ECHO_T}$hardcode_action" >&6 6333## 6334## END FIXME 6335 6336## FIXME: this should be a separate macro 6337## 6338striplib= 6339old_striplib= 6340echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 6341echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 6342if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6344 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6345 echo "$as_me:$LINENO: result: yes" >&5 6346echo "${ECHO_T}yes" >&6 6347else 6348 echo "$as_me:$LINENO: result: no" >&5 6349echo "${ECHO_T}no" >&6 6350fi 6351## 6352## END FIXME 6353 6354reload_cmds='$LD$reload_flag -o $output$reload_objs' 6355test -z "$deplibs_check_method" && deplibs_check_method=unknown 6356 6357## FIXME: this should be a separate macro 6358## 6359# PORTME Fill in your ld.so characteristics 6360echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6361echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6362library_names_spec= 6363libname_spec='lib$name' 6364soname_spec= 6365postinstall_cmds= 6366postuninstall_cmds= 6367finish_cmds= 6368finish_eval= 6369shlibpath_var= 6370shlibpath_overrides_runpath=unknown 6371version_type=none 6372dynamic_linker="$host_os ld.so" 6373sys_lib_dlsearch_path_spec="/lib /usr/lib" 6374sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6375 6376case $host_os in 6377aix3*) 6378 version_type=linux 6379 library_names_spec='${libname}${release}.so$versuffix $libname.a' 6380 shlibpath_var=LIBPATH 6381 6382 # AIX has no versioning support, so we append a major version to the name. 6383 soname_spec='${libname}${release}.so$major' 6384 ;; 6385 6386aix4* | aix5*) 6387 version_type=linux 6388 if test "$host_cpu" = ia64; then 6389 # AIX 5 supports IA64 6390 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 6391 shlibpath_var=LD_LIBRARY_PATH 6392 else 6393 # With GCC up to 2.95.x, collect2 would create an import file 6394 # for dependence libraries. The import file would start with 6395 # the line `#! .'. This would cause the generated library to 6396 # depend on `.', always an invalid library. This was fixed in 6397 # development snapshots of GCC prior to 3.0. 6398 case $host_os in 6399 aix4 | aix4.[01] | aix4.[01].*) 6400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6401 echo ' yes ' 6402 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6403 : 6404 else 6405 can_build_shared=no 6406 fi 6407 ;; 6408 esac 6409 # AIX (on Power*) has no versioning support, so currently we can 6410 # not hardcode correct soname into executable. Probably we can 6411 # add versioning support to collect2, so additional links can 6412 # be useful in future. 6413 if test "$aix_use_runtimelinking" = yes; then 6414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 6415 # instead of lib<name>.a to let people know that these are not 6416 # typical AIX shared libraries. 6417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6418 else 6419 # We preserve .a as extension for shared libraries through AIX4.2 6420 # and later when we are not doing run time linking. 6421 library_names_spec='${libname}${release}.a $libname.a' 6422 soname_spec='${libname}${release}.so$major' 6423 fi 6424 shlibpath_var=LIBPATH 6425 fi 6426 ;; 6427 6428amigaos*) 6429 library_names_spec='$libname.ixlibrary $libname.a' 6430 # Create ${libname}_ixlibrary.a entries in /sys/libs. 6431 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' 6432 ;; 6433 6434beos*) 6435 library_names_spec='${libname}.so' 6436 dynamic_linker="$host_os ld.so" 6437 shlibpath_var=LIBRARY_PATH 6438 ;; 6439 6440bsdi4*) 6441 version_type=linux 6442 need_version=no 6443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6444 soname_spec='${libname}${release}.so$major' 6445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6446 shlibpath_var=LD_LIBRARY_PATH 6447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6449 export_dynamic_flag_spec=-rdynamic 6450 # the default ld.so.conf also contains /usr/contrib/lib and 6451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6452 # libtool to hard-code these into programs 6453 ;; 6454 6455cygwin* | mingw* | pw32*) 6456 version_type=windows 6457 need_version=no 6458 need_lib_prefix=no 6459 case $GCC,$host_os in 6460 yes,cygwin*) 6461 library_names_spec='$libname.dll.a' 6462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6463 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 6464 dldir=$destdir/`dirname \$dlpath`~ 6465 test -d \$dldir || mkdir -p \$dldir~ 6466 $install_prog .libs/$dlname \$dldir/$dlname' 6467 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6468 dlpath=$dir/\$dldll~ 6469 $rm \$dlpath' 6470 ;; 6471 yes,mingw*) 6472 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 6474 ;; 6475 yes,pw32*) 6476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 6477 ;; 6478 *) 6479 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 6480 ;; 6481 esac 6482 dynamic_linker='Win32 ld.exe' 6483 # FIXME: first we should search . and the directory the executable is in 6484 shlibpath_var=PATH 6485 ;; 6486 6487darwin* | rhapsody*) 6488 dynamic_linker="$host_os dyld" 6489 version_type=darwin 6490 need_lib_prefix=no 6491 need_version=no 6492 # FIXME: Relying on posixy $() will cause problems for 6493 # cross-compilation, but unfortunately the echo tests do not 6494 # yet detect zsh echo's removal of \ escapes. 6495 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)' 6496 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 6497 shlibpath_overrides_runpath=yes 6498 shlibpath_var=DYLD_LIBRARY_PATH 6499 ;; 6500 6501freebsd1*) 6502 dynamic_linker=no 6503 ;; 6504 6505freebsd*-gnu*) 6506 version_type=linux 6507 need_lib_prefix=no 6508 need_version=no 6509 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6510 soname_spec='${libname}${release}.so$major' 6511 shlibpath_var=LD_LIBRARY_PATH 6512 shlibpath_overrides_runpath=no 6513 hardcode_into_libs=yes 6514 dynamic_linker='GNU ld.so' 6515 ;; 6516 6517freebsd*) 6518 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 6519 version_type=freebsd-$objformat 6520 case $version_type in 6521 freebsd-elf*) 6522 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6523 need_version=no 6524 need_lib_prefix=no 6525 ;; 6526 freebsd-*) 6527 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 6528 need_version=yes 6529 ;; 6530 esac 6531 shlibpath_var=LD_LIBRARY_PATH 6532 case $host_os in 6533 freebsd2*) 6534 shlibpath_overrides_runpath=yes 6535 ;; 6536 *) 6537 shlibpath_overrides_runpath=no 6538 hardcode_into_libs=yes 6539 ;; 6540 esac 6541 ;; 6542 6543gnu*) 6544 version_type=linux 6545 need_lib_prefix=no 6546 need_version=no 6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 6548 soname_spec='${libname}${release}.so$major' 6549 shlibpath_var=LD_LIBRARY_PATH 6550 hardcode_into_libs=yes 6551 ;; 6552 6553hpux9* | hpux10* | hpux11*) 6554 # Give a soname corresponding to the major version so that dld.sl refuses to 6555 # link against other versions. 6556 dynamic_linker="$host_os dld.sl" 6557 version_type=sunos 6558 need_lib_prefix=no 6559 need_version=no 6560 shlibpath_var=SHLIB_PATH 6561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6562 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 6563 soname_spec='${libname}${release}.sl$major' 6564 # HP-UX runs *really* slowly unless shared libraries are mode 555. 6565 postinstall_cmds='chmod 555 $lib' 6566 ;; 6567 6568irix5* | irix6*) 6569 version_type=irix 6570 need_lib_prefix=no 6571 need_version=no 6572 soname_spec='${libname}${release}.so$major' 6573 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 6574 case $host_os in 6575 irix5*) 6576 libsuff= shlibsuff= 6577 ;; 6578 *) 6579 case $LD in # libtool.m4 will add one of these switches to LD 6580 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 6581 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 6582 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 6583 *) libsuff= shlibsuff= libmagic=never-match;; 6584 esac 6585 ;; 6586 esac 6587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6588 shlibpath_overrides_runpath=no 6589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 6590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 6591 ;; 6592 6593# No shared lib support for Linux oldld, aout, or coff. 6594linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6595 dynamic_linker=no 6596 ;; 6597 6598# This must be Linux ELF. 6599linux-gnu*) 6600 version_type=linux 6601 need_lib_prefix=no 6602 need_version=no 6603 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6604 soname_spec='${libname}${release}.so$major' 6605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6606 shlibpath_var=LD_LIBRARY_PATH 6607 shlibpath_overrides_runpath=no 6608 # This implies no fast_install, which is unacceptable. 6609 # Some rework will be needed to allow for fast_install 6610 # before this can be enabled. 6611 hardcode_into_libs=yes 6612 6613 # We used to test for /lib/ld.so.1 and disable shared libraries on 6614 # powerpc, because MkLinux only supported shared libraries with the 6615 # GNU dynamic linker. Since this was broken with cross compilers, 6616 # most powerpc-linux boxes support dynamic linking these days and 6617 # people can always --disable-shared, the test was removed, and we 6618 # assume the GNU/Linux dynamic linker is in use. 6619 dynamic_linker='GNU/Linux ld.so' 6620 ;; 6621 6622netbsd*) 6623 version_type=sunos 6624 need_lib_prefix=no 6625 need_version=no 6626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6627 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6629 dynamic_linker='NetBSD (a.out) ld.so' 6630 else 6631 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6632 soname_spec='${libname}${release}.so$major' 6633 dynamic_linker='NetBSD ld.elf_so' 6634 fi 6635 shlibpath_var=LD_LIBRARY_PATH 6636 shlibpath_overrides_runpath=yes 6637 hardcode_into_libs=yes 6638 ;; 6639 6640newsos6) 6641 version_type=linux 6642 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6643 shlibpath_var=LD_LIBRARY_PATH 6644 shlibpath_overrides_runpath=yes 6645 ;; 6646 6647openbsd*) 6648 version_type=sunos 6649 need_lib_prefix=no 6650 need_version=no 6651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6652 case "$host_os" in 6653 openbsd2.[89] | openbsd2.[89].*) 6654 shlibpath_overrides_runpath=no 6655 ;; 6656 *) 6657 shlibpath_overrides_runpath=yes 6658 ;; 6659 esac 6660 else 6661 shlibpath_overrides_runpath=yes 6662 fi 6663 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6665 shlibpath_var=LD_LIBRARY_PATH 6666 ;; 6667 6668os2*) 6669 libname_spec='$name' 6670 need_lib_prefix=no 6671 library_names_spec='$libname.dll $libname.a' 6672 dynamic_linker='OS/2 ld.exe' 6673 shlibpath_var=LIBPATH 6674 ;; 6675 6676osf3* | osf4* | osf5*) 6677 version_type=osf 6678 need_version=no 6679 soname_spec='${libname}${release}.so' 6680 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6681 shlibpath_var=LD_LIBRARY_PATH 6682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 6684 ;; 6685 6686sco3.2v5*) 6687 version_type=osf 6688 soname_spec='${libname}${release}.so$major' 6689 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6690 shlibpath_var=LD_LIBRARY_PATH 6691 ;; 6692 6693solaris*) 6694 version_type=linux 6695 need_lib_prefix=no 6696 need_version=no 6697 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6698 soname_spec='${libname}${release}.so$major' 6699 shlibpath_var=LD_LIBRARY_PATH 6700 shlibpath_overrides_runpath=yes 6701 hardcode_into_libs=yes 6702 # ldd complains unless libraries are executable 6703 postinstall_cmds='chmod +x $lib' 6704 ;; 6705 6706sunos4*) 6707 version_type=sunos 6708 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6710 shlibpath_var=LD_LIBRARY_PATH 6711 shlibpath_overrides_runpath=yes 6712 if test "$with_gnu_ld" = yes; then 6713 need_lib_prefix=no 6714 fi 6715 need_version=yes 6716 ;; 6717 6718sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6719 version_type=linux 6720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6721 soname_spec='${libname}${release}.so$major' 6722 shlibpath_var=LD_LIBRARY_PATH 6723 case $host_vendor in 6724 sni) 6725 shlibpath_overrides_runpath=no 6726 ;; 6727 motorola) 6728 need_lib_prefix=no 6729 need_version=no 6730 shlibpath_overrides_runpath=no 6731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6732 ;; 6733 esac 6734 ;; 6735 6736uts4*) 6737 version_type=linux 6738 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6739 soname_spec='${libname}${release}.so$major' 6740 shlibpath_var=LD_LIBRARY_PATH 6741 ;; 6742 6743dgux*) 6744 version_type=linux 6745 need_lib_prefix=no 6746 need_version=no 6747 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6748 soname_spec='${libname}${release}.so$major' 6749 shlibpath_var=LD_LIBRARY_PATH 6750 ;; 6751 6752sysv4*MP*) 6753 if test -d /usr/nec ;then 6754 version_type=linux 6755 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 6756 soname_spec='$libname.so.$major' 6757 shlibpath_var=LD_LIBRARY_PATH 6758 fi 6759 ;; 6760 6761*) 6762 dynamic_linker=no 6763 ;; 6764esac 6765echo "$as_me:$LINENO: result: $dynamic_linker" >&5 6766echo "${ECHO_T}$dynamic_linker" >&6 6767test "$dynamic_linker" = no && can_build_shared=no 6768## 6769## END FIXME 6770 6771## FIXME: this should be a separate macro 6772## 6773# Report the final consequences. 6774echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 6775echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 6776echo "$as_me:$LINENO: result: $can_build_shared" >&5 6777echo "${ECHO_T}$can_build_shared" >&6 6778## 6779## END FIXME 6780 6781## FIXME: this should be a separate macro 6782## 6783echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 6784echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 6785test "$can_build_shared" = "no" && enable_shared=no 6786 6787# On AIX, shared libraries and static libraries use the same namespace, and 6788# are all built from PIC. 6789case "$host_os" in 6790aix3*) 6791 test "$enable_shared" = yes && enable_static=no 6792 if test -n "$RANLIB"; then 6793 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6794 postinstall_cmds='$RANLIB $lib' 6795 fi 6796 ;; 6797 6798aix4*) 6799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6800 test "$enable_shared" = yes && enable_static=no 6801 fi 6802 ;; 6803esac 6804echo "$as_me:$LINENO: result: $enable_shared" >&5 6805echo "${ECHO_T}$enable_shared" >&6 6806## 6807## END FIXME 6808 6809## FIXME: this should be a separate macro 6810## 6811echo "$as_me:$LINENO: checking whether to build static libraries" >&5 6812echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 6813# Make sure either enable_shared or enable_static is yes. 6814test "$enable_shared" = yes || enable_static=yes 6815echo "$as_me:$LINENO: result: $enable_static" >&5 6816echo "${ECHO_T}$enable_static" >&6 6817## 6818## END FIXME 6819 6820if test "$hardcode_action" = relink; then 6821 # Fast installation is not supported 6822 enable_fast_install=no 6823elif test "$shlibpath_overrides_runpath" = yes || 6824 test "$enable_shared" = no; then 6825 # Fast installation is not necessary 6826 enable_fast_install=needless 6827fi 6828 6829variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6830if test "$GCC" = yes; then 6831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6832fi 6833 6834if test "x$enable_dlopen" != xyes; then 6835 enable_dlopen=unknown 6836 enable_dlopen_self=unknown 6837 enable_dlopen_self_static=unknown 6838else 6839 lt_cv_dlopen=no 6840 lt_cv_dlopen_libs= 6841 6842 case $host_os in 6843 beos*) 6844 lt_cv_dlopen="load_add_on" 6845 lt_cv_dlopen_libs= 6846 lt_cv_dlopen_self=yes 6847 ;; 6848 6849 cygwin* | mingw* | pw32*) 6850 lt_cv_dlopen="LoadLibrary" 6851 lt_cv_dlopen_libs= 6852 ;; 6853 6854 *) 6855 echo "$as_me:$LINENO: checking for shl_load" >&5 6856echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 6857if test "${ac_cv_func_shl_load+set}" = set; then 6858 echo $ECHO_N "(cached) $ECHO_C" >&6 6859else 6860 cat >conftest.$ac_ext <<_ACEOF 6861/* confdefs.h. */ 6862_ACEOF 6863cat confdefs.h >>conftest.$ac_ext 6864cat >>conftest.$ac_ext <<_ACEOF 6865/* end confdefs.h. */ 6866/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 6867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6868#define shl_load innocuous_shl_load 6869 6870/* System header to define __stub macros and hopefully few prototypes, 6871 which can conflict with char shl_load (); below. 6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6873 <limits.h> exists even on freestanding compilers. */ 6874 6875#ifdef __STDC__ 6876# include <limits.h> 6877#else 6878# include <assert.h> 6879#endif 6880 6881#undef shl_load 6882 6883/* Override any gcc2 internal prototype to avoid an error. */ 6884#ifdef __cplusplus 6885extern "C" 6886{ 6887#endif 6888/* We use char because int might match the return type of a gcc2 6889 builtin and then its argument prototype would still apply. */ 6890char shl_load (); 6891/* The GNU C library defines this for functions which it implements 6892 to always fail with ENOSYS. Some functions are actually named 6893 something starting with __ and the normal name is an alias. */ 6894#if defined (__stub_shl_load) || defined (__stub___shl_load) 6895choke me 6896#else 6897char (*f) () = shl_load; 6898#endif 6899#ifdef __cplusplus 6900} 6901#endif 6902 6903int 6904main () 6905{ 6906return f != shl_load; 6907 ; 6908 return 0; 6909} 6910_ACEOF 6911rm -f conftest.$ac_objext conftest$ac_exeext 6912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6913 (eval $ac_link) 2>conftest.er1 6914 ac_status=$? 6915 grep -v '^ *+' conftest.er1 >conftest.err 6916 rm -f conftest.er1 6917 cat conftest.err >&5 6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6919 (exit $ac_status); } && 6920 { ac_try='test -z "$ac_c_werror_flag" 6921 || test ! -s conftest.err' 6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6923 (eval $ac_try) 2>&5 6924 ac_status=$? 6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6926 (exit $ac_status); }; } && 6927 { ac_try='test -s conftest$ac_exeext' 6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6929 (eval $ac_try) 2>&5 6930 ac_status=$? 6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6932 (exit $ac_status); }; }; then 6933 ac_cv_func_shl_load=yes 6934else 6935 echo "$as_me: failed program was:" >&5 6936sed 's/^/| /' conftest.$ac_ext >&5 6937 6938ac_cv_func_shl_load=no 6939fi 6940rm -f conftest.err conftest.$ac_objext \ 6941 conftest$ac_exeext conftest.$ac_ext 6942fi 6943echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 6944echo "${ECHO_T}$ac_cv_func_shl_load" >&6 6945if test $ac_cv_func_shl_load = yes; then 6946 lt_cv_dlopen="shl_load" 6947else 6948 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 6949echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 6950if test "${ac_cv_lib_dld_shl_load+set}" = set; then 6951 echo $ECHO_N "(cached) $ECHO_C" >&6 6952else 6953 ac_check_lib_save_LIBS=$LIBS 6954LIBS="-ldld $LIBS" 6955cat >conftest.$ac_ext <<_ACEOF 6956/* confdefs.h. */ 6957_ACEOF 6958cat confdefs.h >>conftest.$ac_ext 6959cat >>conftest.$ac_ext <<_ACEOF 6960/* end confdefs.h. */ 6961 6962/* Override any gcc2 internal prototype to avoid an error. */ 6963#ifdef __cplusplus 6964extern "C" 6965#endif 6966/* We use char because int might match the return type of a gcc2 6967 builtin and then its argument prototype would still apply. */ 6968char shl_load (); 6969int 6970main () 6971{ 6972shl_load (); 6973 ; 6974 return 0; 6975} 6976_ACEOF 6977rm -f conftest.$ac_objext conftest$ac_exeext 6978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6979 (eval $ac_link) 2>conftest.er1 6980 ac_status=$? 6981 grep -v '^ *+' conftest.er1 >conftest.err 6982 rm -f conftest.er1 6983 cat conftest.err >&5 6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6985 (exit $ac_status); } && 6986 { ac_try='test -z "$ac_c_werror_flag" 6987 || test ! -s conftest.err' 6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6989 (eval $ac_try) 2>&5 6990 ac_status=$? 6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6992 (exit $ac_status); }; } && 6993 { ac_try='test -s conftest$ac_exeext' 6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6995 (eval $ac_try) 2>&5 6996 ac_status=$? 6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6998 (exit $ac_status); }; }; then 6999 ac_cv_lib_dld_shl_load=yes 7000else 7001 echo "$as_me: failed program was:" >&5 7002sed 's/^/| /' conftest.$ac_ext >&5 7003 7004ac_cv_lib_dld_shl_load=no 7005fi 7006rm -f conftest.err conftest.$ac_objext \ 7007 conftest$ac_exeext conftest.$ac_ext 7008LIBS=$ac_check_lib_save_LIBS 7009fi 7010echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7011echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7012if test $ac_cv_lib_dld_shl_load = yes; then 7013 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7014else 7015 echo "$as_me:$LINENO: checking for dlopen" >&5 7016echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7017if test "${ac_cv_func_dlopen+set}" = set; then 7018 echo $ECHO_N "(cached) $ECHO_C" >&6 7019else 7020 cat >conftest.$ac_ext <<_ACEOF 7021/* confdefs.h. */ 7022_ACEOF 7023cat confdefs.h >>conftest.$ac_ext 7024cat >>conftest.$ac_ext <<_ACEOF 7025/* end confdefs.h. */ 7026/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 7027 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7028#define dlopen innocuous_dlopen 7029 7030/* System header to define __stub macros and hopefully few prototypes, 7031 which can conflict with char dlopen (); below. 7032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7033 <limits.h> exists even on freestanding compilers. */ 7034 7035#ifdef __STDC__ 7036# include <limits.h> 7037#else 7038# include <assert.h> 7039#endif 7040 7041#undef dlopen 7042 7043/* Override any gcc2 internal prototype to avoid an error. */ 7044#ifdef __cplusplus 7045extern "C" 7046{ 7047#endif 7048/* We use char because int might match the return type of a gcc2 7049 builtin and then its argument prototype would still apply. */ 7050char dlopen (); 7051/* The GNU C library defines this for functions which it implements 7052 to always fail with ENOSYS. Some functions are actually named 7053 something starting with __ and the normal name is an alias. */ 7054#if defined (__stub_dlopen) || defined (__stub___dlopen) 7055choke me 7056#else 7057char (*f) () = dlopen; 7058#endif 7059#ifdef __cplusplus 7060} 7061#endif 7062 7063int 7064main () 7065{ 7066return f != dlopen; 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071rm -f conftest.$ac_objext conftest$ac_exeext 7072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7073 (eval $ac_link) 2>conftest.er1 7074 ac_status=$? 7075 grep -v '^ *+' conftest.er1 >conftest.err 7076 rm -f conftest.er1 7077 cat conftest.err >&5 7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7079 (exit $ac_status); } && 7080 { ac_try='test -z "$ac_c_werror_flag" 7081 || test ! -s conftest.err' 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7083 (eval $ac_try) 2>&5 7084 ac_status=$? 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7086 (exit $ac_status); }; } && 7087 { ac_try='test -s conftest$ac_exeext' 7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7089 (eval $ac_try) 2>&5 7090 ac_status=$? 7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7092 (exit $ac_status); }; }; then 7093 ac_cv_func_dlopen=yes 7094else 7095 echo "$as_me: failed program was:" >&5 7096sed 's/^/| /' conftest.$ac_ext >&5 7097 7098ac_cv_func_dlopen=no 7099fi 7100rm -f conftest.err conftest.$ac_objext \ 7101 conftest$ac_exeext conftest.$ac_ext 7102fi 7103echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 7104echo "${ECHO_T}$ac_cv_func_dlopen" >&6 7105if test $ac_cv_func_dlopen = yes; then 7106 lt_cv_dlopen="dlopen" 7107else 7108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7109echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7110if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7111 echo $ECHO_N "(cached) $ECHO_C" >&6 7112else 7113 ac_check_lib_save_LIBS=$LIBS 7114LIBS="-ldl $LIBS" 7115cat >conftest.$ac_ext <<_ACEOF 7116/* confdefs.h. */ 7117_ACEOF 7118cat confdefs.h >>conftest.$ac_ext 7119cat >>conftest.$ac_ext <<_ACEOF 7120/* end confdefs.h. */ 7121 7122/* Override any gcc2 internal prototype to avoid an error. */ 7123#ifdef __cplusplus 7124extern "C" 7125#endif 7126/* We use char because int might match the return type of a gcc2 7127 builtin and then its argument prototype would still apply. */ 7128char dlopen (); 7129int 7130main () 7131{ 7132dlopen (); 7133 ; 7134 return 0; 7135} 7136_ACEOF 7137rm -f conftest.$ac_objext conftest$ac_exeext 7138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7139 (eval $ac_link) 2>conftest.er1 7140 ac_status=$? 7141 grep -v '^ *+' conftest.er1 >conftest.err 7142 rm -f conftest.er1 7143 cat conftest.err >&5 7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7145 (exit $ac_status); } && 7146 { ac_try='test -z "$ac_c_werror_flag" 7147 || test ! -s conftest.err' 7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7149 (eval $ac_try) 2>&5 7150 ac_status=$? 7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7152 (exit $ac_status); }; } && 7153 { ac_try='test -s conftest$ac_exeext' 7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7155 (eval $ac_try) 2>&5 7156 ac_status=$? 7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7158 (exit $ac_status); }; }; then 7159 ac_cv_lib_dl_dlopen=yes 7160else 7161 echo "$as_me: failed program was:" >&5 7162sed 's/^/| /' conftest.$ac_ext >&5 7163 7164ac_cv_lib_dl_dlopen=no 7165fi 7166rm -f conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168LIBS=$ac_check_lib_save_LIBS 7169fi 7170echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7171echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7172if test $ac_cv_lib_dl_dlopen = yes; then 7173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7174else 7175 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 7176echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 7177if test "${ac_cv_lib_svld_dlopen+set}" = set; then 7178 echo $ECHO_N "(cached) $ECHO_C" >&6 7179else 7180 ac_check_lib_save_LIBS=$LIBS 7181LIBS="-lsvld $LIBS" 7182cat >conftest.$ac_ext <<_ACEOF 7183/* confdefs.h. */ 7184_ACEOF 7185cat confdefs.h >>conftest.$ac_ext 7186cat >>conftest.$ac_ext <<_ACEOF 7187/* end confdefs.h. */ 7188 7189/* Override any gcc2 internal prototype to avoid an error. */ 7190#ifdef __cplusplus 7191extern "C" 7192#endif 7193/* We use char because int might match the return type of a gcc2 7194 builtin and then its argument prototype would still apply. */ 7195char dlopen (); 7196int 7197main () 7198{ 7199dlopen (); 7200 ; 7201 return 0; 7202} 7203_ACEOF 7204rm -f conftest.$ac_objext conftest$ac_exeext 7205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7206 (eval $ac_link) 2>conftest.er1 7207 ac_status=$? 7208 grep -v '^ *+' conftest.er1 >conftest.err 7209 rm -f conftest.er1 7210 cat conftest.err >&5 7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7212 (exit $ac_status); } && 7213 { ac_try='test -z "$ac_c_werror_flag" 7214 || test ! -s conftest.err' 7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7216 (eval $ac_try) 2>&5 7217 ac_status=$? 7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7219 (exit $ac_status); }; } && 7220 { ac_try='test -s conftest$ac_exeext' 7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7222 (eval $ac_try) 2>&5 7223 ac_status=$? 7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7225 (exit $ac_status); }; }; then 7226 ac_cv_lib_svld_dlopen=yes 7227else 7228 echo "$as_me: failed program was:" >&5 7229sed 's/^/| /' conftest.$ac_ext >&5 7230 7231ac_cv_lib_svld_dlopen=no 7232fi 7233rm -f conftest.err conftest.$ac_objext \ 7234 conftest$ac_exeext conftest.$ac_ext 7235LIBS=$ac_check_lib_save_LIBS 7236fi 7237echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 7238echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 7239if test $ac_cv_lib_svld_dlopen = yes; then 7240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7241else 7242 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 7243echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 7244if test "${ac_cv_lib_dld_dld_link+set}" = set; then 7245 echo $ECHO_N "(cached) $ECHO_C" >&6 7246else 7247 ac_check_lib_save_LIBS=$LIBS 7248LIBS="-ldld $LIBS" 7249cat >conftest.$ac_ext <<_ACEOF 7250/* confdefs.h. */ 7251_ACEOF 7252cat confdefs.h >>conftest.$ac_ext 7253cat >>conftest.$ac_ext <<_ACEOF 7254/* end confdefs.h. */ 7255 7256/* Override any gcc2 internal prototype to avoid an error. */ 7257#ifdef __cplusplus 7258extern "C" 7259#endif 7260/* We use char because int might match the return type of a gcc2 7261 builtin and then its argument prototype would still apply. */ 7262char dld_link (); 7263int 7264main () 7265{ 7266dld_link (); 7267 ; 7268 return 0; 7269} 7270_ACEOF 7271rm -f conftest.$ac_objext conftest$ac_exeext 7272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7273 (eval $ac_link) 2>conftest.er1 7274 ac_status=$? 7275 grep -v '^ *+' conftest.er1 >conftest.err 7276 rm -f conftest.er1 7277 cat conftest.err >&5 7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7279 (exit $ac_status); } && 7280 { ac_try='test -z "$ac_c_werror_flag" 7281 || test ! -s conftest.err' 7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7283 (eval $ac_try) 2>&5 7284 ac_status=$? 7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7286 (exit $ac_status); }; } && 7287 { ac_try='test -s conftest$ac_exeext' 7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7289 (eval $ac_try) 2>&5 7290 ac_status=$? 7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7292 (exit $ac_status); }; }; then 7293 ac_cv_lib_dld_dld_link=yes 7294else 7295 echo "$as_me: failed program was:" >&5 7296sed 's/^/| /' conftest.$ac_ext >&5 7297 7298ac_cv_lib_dld_dld_link=no 7299fi 7300rm -f conftest.err conftest.$ac_objext \ 7301 conftest$ac_exeext conftest.$ac_ext 7302LIBS=$ac_check_lib_save_LIBS 7303fi 7304echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 7305echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 7306if test $ac_cv_lib_dld_dld_link = yes; then 7307 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7308fi 7309 7310 7311fi 7312 7313 7314fi 7315 7316 7317fi 7318 7319 7320fi 7321 7322 7323fi 7324 7325 ;; 7326 esac 7327 7328 if test "x$lt_cv_dlopen" != xno; then 7329 enable_dlopen=yes 7330 else 7331 enable_dlopen=no 7332 fi 7333 7334 case $lt_cv_dlopen in 7335 dlopen) 7336 save_CPPFLAGS="$CPPFLAGS" 7337 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 7338 7339 save_LDFLAGS="$LDFLAGS" 7340 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7341 7342 save_LIBS="$LIBS" 7343 LIBS="$lt_cv_dlopen_libs $LIBS" 7344 7345 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 7346echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 7347if test "${lt_cv_dlopen_self+set}" = set; then 7348 echo $ECHO_N "(cached) $ECHO_C" >&6 7349else 7350 if test "$cross_compiling" = yes; then : 7351 lt_cv_dlopen_self=cross 7352else 7353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7354 lt_status=$lt_dlunknown 7355 cat > conftest.$ac_ext <<EOF 7356#line 7356 "configure" 7357#include "confdefs.h" 7358 7359#if HAVE_DLFCN_H 7360#include <dlfcn.h> 7361#endif 7362 7363#include <stdio.h> 7364 7365#ifdef RTLD_GLOBAL 7366# define LT_DLGLOBAL RTLD_GLOBAL 7367#else 7368# ifdef DL_GLOBAL 7369# define LT_DLGLOBAL DL_GLOBAL 7370# else 7371# define LT_DLGLOBAL 0 7372# endif 7373#endif 7374 7375/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7376 find out it does not work in some platform. */ 7377#ifndef LT_DLLAZY_OR_NOW 7378# ifdef RTLD_LAZY 7379# define LT_DLLAZY_OR_NOW RTLD_LAZY 7380# else 7381# ifdef DL_LAZY 7382# define LT_DLLAZY_OR_NOW DL_LAZY 7383# else 7384# ifdef RTLD_NOW 7385# define LT_DLLAZY_OR_NOW RTLD_NOW 7386# else 7387# ifdef DL_NOW 7388# define LT_DLLAZY_OR_NOW DL_NOW 7389# else 7390# define LT_DLLAZY_OR_NOW 0 7391# endif 7392# endif 7393# endif 7394# endif 7395#endif 7396 7397#ifdef __cplusplus 7398extern "C" void exit (int); 7399#endif 7400 7401void fnord() { int i=42;} 7402int main () 7403{ 7404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7405 int status = $lt_dlunknown; 7406 7407 if (self) 7408 { 7409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7411 /* dlclose (self); */ 7412 } 7413 7414 exit (status); 7415} 7416EOF 7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7418 (eval $ac_link) 2>&5 7419 ac_status=$? 7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7421 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7422 (./conftest; exit; ) 2>/dev/null 7423 lt_status=$? 7424 case x$lt_status in 7425 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7426 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7427 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 7428 esac 7429 else : 7430 # compilation failed 7431 lt_cv_dlopen_self=no 7432 fi 7433fi 7434rm -fr conftest* 7435 7436 7437fi 7438echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 7439echo "${ECHO_T}$lt_cv_dlopen_self" >&6 7440 7441 if test "x$lt_cv_dlopen_self" = xyes; then 7442 LDFLAGS="$LDFLAGS $link_static_flag" 7443 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 7444echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 7445if test "${lt_cv_dlopen_self_static+set}" = set; then 7446 echo $ECHO_N "(cached) $ECHO_C" >&6 7447else 7448 if test "$cross_compiling" = yes; then : 7449 lt_cv_dlopen_self_static=cross 7450else 7451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7452 lt_status=$lt_dlunknown 7453 cat > conftest.$ac_ext <<EOF 7454#line 7454 "configure" 7455#include "confdefs.h" 7456 7457#if HAVE_DLFCN_H 7458#include <dlfcn.h> 7459#endif 7460 7461#include <stdio.h> 7462 7463#ifdef RTLD_GLOBAL 7464# define LT_DLGLOBAL RTLD_GLOBAL 7465#else 7466# ifdef DL_GLOBAL 7467# define LT_DLGLOBAL DL_GLOBAL 7468# else 7469# define LT_DLGLOBAL 0 7470# endif 7471#endif 7472 7473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7474 find out it does not work in some platform. */ 7475#ifndef LT_DLLAZY_OR_NOW 7476# ifdef RTLD_LAZY 7477# define LT_DLLAZY_OR_NOW RTLD_LAZY 7478# else 7479# ifdef DL_LAZY 7480# define LT_DLLAZY_OR_NOW DL_LAZY 7481# else 7482# ifdef RTLD_NOW 7483# define LT_DLLAZY_OR_NOW RTLD_NOW 7484# else 7485# ifdef DL_NOW 7486# define LT_DLLAZY_OR_NOW DL_NOW 7487# else 7488# define LT_DLLAZY_OR_NOW 0 7489# endif 7490# endif 7491# endif 7492# endif 7493#endif 7494 7495#ifdef __cplusplus 7496extern "C" void exit (int); 7497#endif 7498 7499void fnord() { int i=42;} 7500int main () 7501{ 7502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7503 int status = $lt_dlunknown; 7504 7505 if (self) 7506 { 7507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7509 /* dlclose (self); */ 7510 } 7511 7512 exit (status); 7513} 7514EOF 7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7516 (eval $ac_link) 2>&5 7517 ac_status=$? 7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7519 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7520 (./conftest; exit; ) 2>/dev/null 7521 lt_status=$? 7522 case x$lt_status in 7523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7525 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 7526 esac 7527 else : 7528 # compilation failed 7529 lt_cv_dlopen_self_static=no 7530 fi 7531fi 7532rm -fr conftest* 7533 7534 7535fi 7536echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 7537echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 7538 fi 7539 7540 CPPFLAGS="$save_CPPFLAGS" 7541 LDFLAGS="$save_LDFLAGS" 7542 LIBS="$save_LIBS" 7543 ;; 7544 esac 7545 7546 case $lt_cv_dlopen_self in 7547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 7548 *) enable_dlopen_self=unknown ;; 7549 esac 7550 7551 case $lt_cv_dlopen_self_static in 7552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 7553 *) enable_dlopen_self_static=unknown ;; 7554 esac 7555fi 7556 7557 7558## FIXME: this should be a separate macro 7559## 7560if test "$enable_shared" = yes && test "$GCC" = yes; then 7561 case $archive_cmds in 7562 *'~'*) 7563 # FIXME: we may have to deal with multi-command sequences. 7564 ;; 7565 '$CC '*) 7566 # Test whether the compiler implicitly links with -lc since on some 7567 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7568 # to ld, don't add -lc before -lgcc. 7569 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7570echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7571 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 7572 echo $ECHO_N "(cached) $ECHO_C" >&6 7573else 7574 $rm conftest* 7575 echo 'static int dummy;' > conftest.$ac_ext 7576 7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7578 (eval $ac_compile) 2>&5 7579 ac_status=$? 7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7581 (exit $ac_status); }; then 7582 soname=conftest 7583 lib=conftest 7584 libobjs=conftest.$ac_objext 7585 deplibs= 7586 wl=$lt_cv_prog_cc_wl 7587 compiler_flags=-v 7588 linker_flags=-v 7589 verstring= 7590 output_objdir=. 7591 libname=conftest 7592 save_allow_undefined_flag=$allow_undefined_flag 7593 allow_undefined_flag= 7594 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7595 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7596 ac_status=$? 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); } 7599 then 7600 lt_cv_archive_cmds_need_lc=no 7601 else 7602 lt_cv_archive_cmds_need_lc=yes 7603 fi 7604 allow_undefined_flag=$save_allow_undefined_flag 7605 else 7606 cat conftest.err 1>&5 7607 fi 7608 $rm conftest* 7609 7610fi 7611 7612 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 7613echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 7614 ;; 7615 esac 7616fi 7617need_lc=${lt_cv_archive_cmds_need_lc-yes} 7618## 7619## END FIXME 7620 7621## FIXME: this should be a separate macro 7622## 7623# The second clause should only fire when bootstrapping the 7624# libtool distribution, otherwise you forgot to ship ltmain.sh 7625# with your package, and you will get complaints that there are 7626# no rules to generate ltmain.sh. 7627if test -f "$ltmain"; then 7628 : 7629else 7630 # If there is no Makefile yet, we rely on a make rule to execute 7631 # `config.status --recheck' to rerun these tests and create the 7632 # libtool script then. 7633 test -f Makefile && make "$ltmain" 7634fi 7635 7636if test -f "$ltmain"; then 7637 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 7638 $rm -f "${ofile}T" 7639 7640 echo creating $ofile 7641 7642 # Now quote all the things that may contain metacharacters while being 7643 # careful not to overquote the AC_SUBSTed values. We take copies of the 7644 # variables and quote the copies for generation of the libtool script. 7645 for var in echo old_CC old_CFLAGS \ 7646 AR AR_FLAGS CC LD LN_S NM SHELL \ 7647 reload_flag reload_cmds wl \ 7648 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7649 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7650 library_names_spec soname_spec \ 7651 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7652 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7653 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7654 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7655 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7656 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7657 global_symbol_to_c_name_address \ 7658 hardcode_libdir_flag_spec hardcode_libdir_separator \ 7659 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7660 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 7661 7662 case $var in 7663 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 7664 old_postinstall_cmds | old_postuninstall_cmds | \ 7665 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7666 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7667 postinstall_cmds | postuninstall_cmds | \ 7668 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7669 # Double-quote double-evaled strings. 7670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 7671 ;; 7672 *) 7673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 7674 ;; 7675 esac 7676 done 7677 7678 cat <<__EOF__ > "${ofile}T" 7679#! $SHELL 7680 7681# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7682# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7683# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7684# 7685# Copyright (C) 1996-2000 Free Software Foundation, Inc. 7686# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7687# 7688# This program is free software; you can redistribute it and/or modify 7689# it under the terms of the GNU General Public License as published by 7690# the Free Software Foundation; either version 2 of the License, or 7691# (at your option) any later version. 7692# 7693# This program is distributed in the hope that it will be useful, but 7694# WITHOUT ANY WARRANTY; without even the implied warranty of 7695# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7696# General Public License for more details. 7697# 7698# You should have received a copy of the GNU General Public License 7699# along with this program; if not, write to the Free Software 7700# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7701# 7702# As a special exception to the GNU General Public License, if you 7703# distribute this file as part of a program that contains a 7704# configuration script generated by Autoconf, you may include it under 7705# the same distribution terms that you use for the rest of that program. 7706 7707# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7708Xsed="sed -e s/^X//" 7709 7710# The HP-UX ksh and POSIX shell print the target directory to stdout 7711# if CDPATH is set. 7712if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7713 7714# ### BEGIN LIBTOOL CONFIG 7715 7716# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7717 7718# Shell to use when invoking shell scripts. 7719SHELL=$lt_SHELL 7720 7721# Whether or not to build shared libraries. 7722build_libtool_libs=$enable_shared 7723 7724# Whether or not to build static libraries. 7725build_old_libs=$enable_static 7726 7727# Whether or not to add -lc for building shared libraries. 7728build_libtool_need_lc=$need_lc 7729 7730# Whether or not to optimize for fast installation. 7731fast_install=$enable_fast_install 7732 7733# The host system. 7734host_alias=$host_alias 7735host=$host 7736 7737# An echo program that does not interpret backslashes. 7738echo=$lt_echo 7739 7740# The archiver. 7741AR=$lt_AR 7742AR_FLAGS=$lt_AR_FLAGS 7743 7744# The default C compiler. 7745CC=$lt_CC 7746 7747# Is the compiler the GNU C compiler? 7748with_gcc=$GCC 7749 7750# The linker used to build libraries. 7751LD=$lt_LD 7752 7753# Whether we need hard or soft links. 7754LN_S=$lt_LN_S 7755 7756# A BSD-compatible nm program. 7757NM=$lt_NM 7758 7759# A symbol stripping program 7760STRIP=$STRIP 7761 7762# Used to examine libraries when file_magic_cmd begins "file" 7763MAGIC_CMD=$MAGIC_CMD 7764 7765# Used on cygwin: DLL creation program. 7766DLLTOOL="$DLLTOOL" 7767 7768# Used on cygwin: object dumper. 7769OBJDUMP="$OBJDUMP" 7770 7771# Used on cygwin: assembler. 7772AS="$AS" 7773 7774# The name of the directory that contains temporary libtool files. 7775objdir=$objdir 7776 7777# How to create reloadable object files. 7778reload_flag=$lt_reload_flag 7779reload_cmds=$lt_reload_cmds 7780 7781# How to pass a linker flag through the compiler. 7782wl=$lt_wl 7783 7784# Object file suffix (normally "o"). 7785objext="$ac_objext" 7786 7787# Old archive suffix (normally "a"). 7788libext="$libext" 7789 7790# Executable file suffix (normally ""). 7791exeext="$exeext" 7792 7793# Additional compiler flags for building library objects. 7794pic_flag=$lt_pic_flag 7795pic_mode=$pic_mode 7796 7797# Does compiler simultaneously support -c and -o options? 7798compiler_c_o=$lt_compiler_c_o 7799 7800# Can we write directly to a .lo ? 7801compiler_o_lo=$lt_compiler_o_lo 7802 7803# Must we lock files when doing compilation ? 7804need_locks=$lt_need_locks 7805 7806# Do we need the lib prefix for modules? 7807need_lib_prefix=$need_lib_prefix 7808 7809# Do we need a version for libraries? 7810need_version=$need_version 7811 7812# Whether dlopen is supported. 7813dlopen_support=$enable_dlopen 7814 7815# Whether dlopen of programs is supported. 7816dlopen_self=$enable_dlopen_self 7817 7818# Whether dlopen of statically linked programs is supported. 7819dlopen_self_static=$enable_dlopen_self_static 7820 7821# Compiler flag to prevent dynamic linking. 7822link_static_flag=$lt_link_static_flag 7823 7824# Compiler flag to turn off builtin functions. 7825no_builtin_flag=$lt_no_builtin_flag 7826 7827# Compiler flag to allow reflexive dlopens. 7828export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 7829 7830# Compiler flag to generate shared objects directly from archives. 7831whole_archive_flag_spec=$lt_whole_archive_flag_spec 7832 7833# Compiler flag to generate thread-safe objects. 7834thread_safe_flag_spec=$lt_thread_safe_flag_spec 7835 7836# Library versioning type. 7837version_type=$version_type 7838 7839# Format of library name prefix. 7840libname_spec=$lt_libname_spec 7841 7842# List of archive names. First name is the real one, the rest are links. 7843# The last name is the one that the linker finds with -lNAME. 7844library_names_spec=$lt_library_names_spec 7845 7846# The coded name of the library, if different from the real name. 7847soname_spec=$lt_soname_spec 7848 7849# Commands used to build and install an old-style archive. 7850RANLIB=$lt_RANLIB 7851old_archive_cmds=$lt_old_archive_cmds 7852old_postinstall_cmds=$lt_old_postinstall_cmds 7853old_postuninstall_cmds=$lt_old_postuninstall_cmds 7854 7855# Create an old-style archive from a shared archive. 7856old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 7857 7858# Create a temporary old-style archive to link instead of a shared archive. 7859old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 7860 7861# Commands used to build and install a shared archive. 7862archive_cmds=$lt_archive_cmds 7863archive_expsym_cmds=$lt_archive_expsym_cmds 7864postinstall_cmds=$lt_postinstall_cmds 7865postuninstall_cmds=$lt_postuninstall_cmds 7866 7867# Commands to strip libraries. 7868old_striplib=$lt_old_striplib 7869striplib=$lt_striplib 7870 7871# Method to check whether dependent libraries are shared objects. 7872deplibs_check_method=$lt_deplibs_check_method 7873 7874# Command to use when deplibs_check_method == file_magic. 7875file_magic_cmd=$lt_file_magic_cmd 7876 7877# Flag that allows shared libraries with undefined symbols to be built. 7878allow_undefined_flag=$lt_allow_undefined_flag 7879 7880# Flag that forces no undefined symbols. 7881no_undefined_flag=$lt_no_undefined_flag 7882 7883# Commands used to finish a libtool library installation in a directory. 7884finish_cmds=$lt_finish_cmds 7885 7886# Same as above, but a single script fragment to be evaled but not shown. 7887finish_eval=$lt_finish_eval 7888 7889# Take the output of nm and produce a listing of raw symbols and C names. 7890global_symbol_pipe=$lt_global_symbol_pipe 7891 7892# Transform the output of nm in a proper C declaration 7893global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 7894 7895# Transform the output of nm in a C name address pair 7896global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 7897 7898# This is the shared library runtime path variable. 7899runpath_var=$runpath_var 7900 7901# This is the shared library path variable. 7902shlibpath_var=$shlibpath_var 7903 7904# Is shlibpath searched before the hard-coded library search path? 7905shlibpath_overrides_runpath=$shlibpath_overrides_runpath 7906 7907# How to hardcode a shared library path into an executable. 7908hardcode_action=$hardcode_action 7909 7910# Whether we should hardcode library paths into libraries. 7911hardcode_into_libs=$hardcode_into_libs 7912 7913# Flag to hardcode \$libdir into a binary during linking. 7914# This must work even if \$libdir does not exist. 7915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 7916 7917# Whether we need a single -rpath flag with a separated argument. 7918hardcode_libdir_separator=$lt_hardcode_libdir_separator 7919 7920# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 7921# resulting binary. 7922hardcode_direct=$hardcode_direct 7923 7924# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 7925# resulting binary. 7926hardcode_minus_L=$hardcode_minus_L 7927 7928# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 7929# the resulting binary. 7930hardcode_shlibpath_var=$hardcode_shlibpath_var 7931 7932# Variables whose values should be saved in libtool wrapper scripts and 7933# restored at relink time. 7934variables_saved_for_relink="$variables_saved_for_relink" 7935 7936# Whether libtool must link a program against all its dependency libraries. 7937link_all_deplibs=$link_all_deplibs 7938 7939# Compile-time system search path for libraries 7940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 7941 7942# Run-time system search path for libraries 7943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 7944 7945# Fix the shell variable \$srcfile for the compiler. 7946fix_srcfile_path="$fix_srcfile_path" 7947 7948# Set to yes if exported symbols are required. 7949always_export_symbols=$always_export_symbols 7950 7951# The commands to list exported symbols. 7952export_symbols_cmds=$lt_export_symbols_cmds 7953 7954# The commands to extract the exported symbol list from a shared archive. 7955extract_expsyms_cmds=$lt_extract_expsyms_cmds 7956 7957# Symbols that should not be listed in the preloaded symbols. 7958exclude_expsyms=$lt_exclude_expsyms 7959 7960# Symbols that must always be exported. 7961include_expsyms=$lt_include_expsyms 7962 7963# ### END LIBTOOL CONFIG 7964 7965__EOF__ 7966 7967 case $host_os in 7968 aix3*) 7969 cat <<\EOF >> "${ofile}T" 7970 7971# AIX sometimes has problems with the GCC collect2 program. For some 7972# reason, if we set the COLLECT_NAMES environment variable, the problems 7973# vanish in a puff of smoke. 7974if test "X${COLLECT_NAMES+set}" != Xset; then 7975 COLLECT_NAMES= 7976 export COLLECT_NAMES 7977fi 7978EOF 7979 ;; 7980 esac 7981 7982 case $host_os in 7983 cygwin* | mingw* | pw32* | os2*) 7984 cat <<'EOF' >> "${ofile}T" 7985 # This is a source program that is used to create dlls on Windows 7986 # Don't remove nor modify the starting and closing comments 7987# /* ltdll.c starts here */ 7988# #define WIN32_LEAN_AND_MEAN 7989# #include <windows.h> 7990# #undef WIN32_LEAN_AND_MEAN 7991# #include <stdio.h> 7992# 7993# #ifndef __CYGWIN__ 7994# # ifdef __CYGWIN32__ 7995# # define __CYGWIN__ __CYGWIN32__ 7996# # endif 7997# #endif 7998# 7999# #ifdef __cplusplus 8000# extern "C" { 8001# #endif 8002# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 8003# #ifdef __cplusplus 8004# } 8005# #endif 8006# 8007# #ifdef __CYGWIN__ 8008# #include <cygwin/cygwin_dll.h> 8009# DECLARE_CYGWIN_DLL( DllMain ); 8010# #endif 8011# HINSTANCE __hDllInstance_base; 8012# 8013# BOOL APIENTRY 8014# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 8015# { 8016# __hDllInstance_base = hInst; 8017# return TRUE; 8018# } 8019# /* ltdll.c ends here */ 8020 # This is a source program that is used to create import libraries 8021 # on Windows for dlls which lack them. Don't remove nor modify the 8022 # starting and closing comments 8023# /* impgen.c starts here */ 8024# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 8025# 8026# This file is part of GNU libtool. 8027# 8028# This program is free software; you can redistribute it and/or modify 8029# it under the terms of the GNU General Public License as published by 8030# the Free Software Foundation; either version 2 of the License, or 8031# (at your option) any later version. 8032# 8033# This program is distributed in the hope that it will be useful, 8034# but WITHOUT ANY WARRANTY; without even the implied warranty of 8035# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 8036# GNU General Public License for more details. 8037# 8038# You should have received a copy of the GNU General Public License 8039# along with this program; if not, write to the Free Software 8040# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8041# */ 8042# 8043# #include <stdio.h> /* for printf() */ 8044# #include <unistd.h> /* for open(), lseek(), read() */ 8045# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 8046# #include <string.h> /* for strdup() */ 8047# 8048# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 8049# #ifndef O_BINARY 8050# #define O_BINARY 0 8051# #endif 8052# 8053# static unsigned int 8054# pe_get16 (fd, offset) 8055# int fd; 8056# int offset; 8057# { 8058# unsigned char b[2]; 8059# lseek (fd, offset, SEEK_SET); 8060# read (fd, b, 2); 8061# return b[0] + (b[1]<<8); 8062# } 8063# 8064# static unsigned int 8065# pe_get32 (fd, offset) 8066# int fd; 8067# int offset; 8068# { 8069# unsigned char b[4]; 8070# lseek (fd, offset, SEEK_SET); 8071# read (fd, b, 4); 8072# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8073# } 8074# 8075# static unsigned int 8076# pe_as32 (ptr) 8077# void *ptr; 8078# { 8079# unsigned char *b = ptr; 8080# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8081# } 8082# 8083# int 8084# main (argc, argv) 8085# int argc; 8086# char *argv[]; 8087# { 8088# int dll; 8089# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 8090# unsigned long export_rva, export_size, nsections, secptr, expptr; 8091# unsigned long name_rvas, nexp; 8092# unsigned char *expdata, *erva; 8093# char *filename, *dll_name; 8094# 8095# filename = argv[1]; 8096# 8097# dll = open(filename, O_RDONLY|O_BINARY); 8098# if (dll < 1) 8099# return 1; 8100# 8101# dll_name = filename; 8102# 8103# for (i=0; filename[i]; i++) 8104# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 8105# dll_name = filename + i +1; 8106# 8107# pe_header_offset = pe_get32 (dll, 0x3c); 8108# opthdr_ofs = pe_header_offset + 4 + 20; 8109# num_entries = pe_get32 (dll, opthdr_ofs + 92); 8110# 8111# if (num_entries < 1) /* no exports */ 8112# return 1; 8113# 8114# export_rva = pe_get32 (dll, opthdr_ofs + 96); 8115# export_size = pe_get32 (dll, opthdr_ofs + 100); 8116# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 8117# secptr = (pe_header_offset + 4 + 20 + 8118# pe_get16 (dll, pe_header_offset + 4 + 16)); 8119# 8120# expptr = 0; 8121# for (i = 0; i < nsections; i++) 8122# { 8123# char sname[8]; 8124# unsigned long secptr1 = secptr + 40 * i; 8125# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 8126# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 8127# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 8128# lseek(dll, secptr1, SEEK_SET); 8129# read(dll, sname, 8); 8130# if (vaddr <= export_rva && vaddr+vsize > export_rva) 8131# { 8132# expptr = fptr + (export_rva - vaddr); 8133# if (export_rva + export_size > vaddr + vsize) 8134# export_size = vsize - (export_rva - vaddr); 8135# break; 8136# } 8137# } 8138# 8139# expdata = (unsigned char*)malloc(export_size); 8140# lseek (dll, expptr, SEEK_SET); 8141# read (dll, expdata, export_size); 8142# erva = expdata - export_rva; 8143# 8144# nexp = pe_as32 (expdata+24); 8145# name_rvas = pe_as32 (expdata+32); 8146# 8147# printf ("EXPORTS\n"); 8148# for (i = 0; i<nexp; i++) 8149# { 8150# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 8151# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 8152# } 8153# 8154# return 0; 8155# } 8156# /* impgen.c ends here */ 8157 8158EOF 8159 ;; 8160 esac 8161 8162 # We use sed instead of cat because bash on DJGPP gets confused if 8163 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8164 # text mode, it properly converts lines to CR/LF. This bash problem 8165 # is reportedly fixed, but why not run on old versions too? 8166 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 8167 8168 mv -f "${ofile}T" "$ofile" || \ 8169 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 8170 chmod +x "$ofile" 8171fi 8172## 8173## END FIXME 8174 8175 8176 8177 8178 8179# This can be used to rebuild libtool when needed 8180LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 8181 8182# Always use our own libtool. 8183LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8184 8185# Prevent multiple expansion 8186 8187 8188 8189## GNU gettext 8190 8191 MKINSTALLDIRS= 8192 if test -n "$ac_aux_dir"; then 8193 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 8194 fi 8195 if test -z "$MKINSTALLDIRS"; then 8196 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 8197 fi 8198 8199 8200 8201 8202 8203 # Extract the first word of "msgfmt", so it can be a program name with args. 8204set dummy msgfmt; ac_word=$2 8205echo "$as_me:$LINENO: checking for $ac_word" >&5 8206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8207if test "${ac_cv_path_MSGFMT+set}" = set; then 8208 echo $ECHO_N "(cached) $ECHO_C" >&6 8209else 8210 case "$MSGFMT" in 8211 /*) 8212 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 8213 ;; 8214 *) 8215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8216 for ac_dir in $PATH; do 8217 test -z "$ac_dir" && ac_dir=. 8218 if test -f $ac_dir/$ac_word; then 8219 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 8220 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8221 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 8222 break 8223 fi 8224 fi 8225 done 8226 IFS="$ac_save_ifs" 8227 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 8228 ;; 8229esac 8230fi 8231MSGFMT="$ac_cv_path_MSGFMT" 8232if test "$MSGFMT" != ":"; then 8233 echo "$as_me:$LINENO: result: $MSGFMT" >&5 8234echo "${ECHO_T}$MSGFMT" >&6 8235else 8236 echo "$as_me:$LINENO: result: no" >&5 8237echo "${ECHO_T}no" >&6 8238fi 8239 8240 # Extract the first word of "gmsgfmt", so it can be a program name with args. 8241set dummy gmsgfmt; ac_word=$2 8242echo "$as_me:$LINENO: checking for $ac_word" >&5 8243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8244if test "${ac_cv_path_GMSGFMT+set}" = set; then 8245 echo $ECHO_N "(cached) $ECHO_C" >&6 8246else 8247 case $GMSGFMT in 8248 [\\/]* | ?:[\\/]*) 8249 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 8250 ;; 8251 *) 8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8253for as_dir in $PATH 8254do 8255 IFS=$as_save_IFS 8256 test -z "$as_dir" && as_dir=. 8257 for ac_exec_ext in '' $ac_executable_extensions; do 8258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8259 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 8260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8261 break 2 8262 fi 8263done 8264done 8265 8266 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 8267 ;; 8268esac 8269fi 8270GMSGFMT=$ac_cv_path_GMSGFMT 8271 8272if test -n "$GMSGFMT"; then 8273 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 8274echo "${ECHO_T}$GMSGFMT" >&6 8275else 8276 echo "$as_me:$LINENO: result: no" >&5 8277echo "${ECHO_T}no" >&6 8278fi 8279 8280 8281 # Extract the first word of "xgettext", so it can be a program name with args. 8282set dummy xgettext; ac_word=$2 8283echo "$as_me:$LINENO: checking for $ac_word" >&5 8284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8285if test "${ac_cv_path_XGETTEXT+set}" = set; then 8286 echo $ECHO_N "(cached) $ECHO_C" >&6 8287else 8288 case "$XGETTEXT" in 8289 /*) 8290 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 8291 ;; 8292 *) 8293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8294 for ac_dir in $PATH; do 8295 test -z "$ac_dir" && ac_dir=. 8296 if test -f $ac_dir/$ac_word; then 8297 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 8298 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8299 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 8300 break 8301 fi 8302 fi 8303 done 8304 IFS="$ac_save_ifs" 8305 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 8306 ;; 8307esac 8308fi 8309XGETTEXT="$ac_cv_path_XGETTEXT" 8310if test "$XGETTEXT" != ":"; then 8311 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 8312echo "${ECHO_T}$XGETTEXT" >&6 8313else 8314 echo "$as_me:$LINENO: result: no" >&5 8315echo "${ECHO_T}no" >&6 8316fi 8317 8318 rm -f messages.po 8319 8320 # Extract the first word of "msgmerge", so it can be a program name with args. 8321set dummy msgmerge; ac_word=$2 8322echo "$as_me:$LINENO: checking for $ac_word" >&5 8323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8324if test "${ac_cv_path_MSGMERGE+set}" = set; then 8325 echo $ECHO_N "(cached) $ECHO_C" >&6 8326else 8327 case "$MSGMERGE" in 8328 /*) 8329 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 8330 ;; 8331 *) 8332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8333 for ac_dir in $PATH; do 8334 test -z "$ac_dir" && ac_dir=. 8335 if test -f $ac_dir/$ac_word; then 8336 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 8337 ac_cv_path_MSGMERGE="$ac_dir/$ac_word" 8338 break 8339 fi 8340 fi 8341 done 8342 IFS="$ac_save_ifs" 8343 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 8344 ;; 8345esac 8346fi 8347MSGMERGE="$ac_cv_path_MSGMERGE" 8348if test "$MSGMERGE" != ":"; then 8349 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 8350echo "${ECHO_T}$MSGMERGE" >&6 8351else 8352 echo "$as_me:$LINENO: result: no" >&5 8353echo "${ECHO_T}no" >&6 8354fi 8355 8356 8357 if test "$GMSGFMT" != ":"; then 8358 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 8359 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8360 : ; 8361 else 8362 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 8363 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 8364echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 8365 GMSGFMT=":" 8366 fi 8367 fi 8368 8369 if test "$XGETTEXT" != ":"; then 8370 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 8371 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8372 : ; 8373 else 8374 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 8375echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 8376 XGETTEXT=":" 8377 fi 8378 rm -f messages.po 8379 fi 8380 8381 ac_config_commands="$ac_config_commands default-1" 8382 8383 8384if test -n "$ac_tool_prefix"; then 8385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8386set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8387echo "$as_me:$LINENO: checking for $ac_word" >&5 8388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8389if test "${ac_cv_prog_RANLIB+set}" = set; then 8390 echo $ECHO_N "(cached) $ECHO_C" >&6 8391else 8392 if test -n "$RANLIB"; then 8393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8394else 8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8396for as_dir in $PATH 8397do 8398 IFS=$as_save_IFS 8399 test -z "$as_dir" && as_dir=. 8400 for ac_exec_ext in '' $ac_executable_extensions; do 8401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8404 break 2 8405 fi 8406done 8407done 8408 8409fi 8410fi 8411RANLIB=$ac_cv_prog_RANLIB 8412if test -n "$RANLIB"; then 8413 echo "$as_me:$LINENO: result: $RANLIB" >&5 8414echo "${ECHO_T}$RANLIB" >&6 8415else 8416 echo "$as_me:$LINENO: result: no" >&5 8417echo "${ECHO_T}no" >&6 8418fi 8419 8420fi 8421if test -z "$ac_cv_prog_RANLIB"; then 8422 ac_ct_RANLIB=$RANLIB 8423 # Extract the first word of "ranlib", so it can be a program name with args. 8424set dummy ranlib; ac_word=$2 8425echo "$as_me:$LINENO: checking for $ac_word" >&5 8426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8427if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8428 echo $ECHO_N "(cached) $ECHO_C" >&6 8429else 8430 if test -n "$ac_ct_RANLIB"; then 8431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8432else 8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8434for as_dir in $PATH 8435do 8436 IFS=$as_save_IFS 8437 test -z "$as_dir" && as_dir=. 8438 for ac_exec_ext in '' $ac_executable_extensions; do 8439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8440 ac_cv_prog_ac_ct_RANLIB="ranlib" 8441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8442 break 2 8443 fi 8444done 8445done 8446 8447 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 8448fi 8449fi 8450ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8451if test -n "$ac_ct_RANLIB"; then 8452 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8453echo "${ECHO_T}$ac_ct_RANLIB" >&6 8454else 8455 echo "$as_me:$LINENO: result: no" >&5 8456echo "${ECHO_T}no" >&6 8457fi 8458 8459 RANLIB=$ac_ct_RANLIB 8460else 8461 RANLIB="$ac_cv_prog_RANLIB" 8462fi 8463 8464echo "$as_me:$LINENO: checking for library containing strerror" >&5 8465echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 8466if test "${ac_cv_search_strerror+set}" = set; then 8467 echo $ECHO_N "(cached) $ECHO_C" >&6 8468else 8469 ac_func_search_save_LIBS=$LIBS 8470ac_cv_search_strerror=no 8471cat >conftest.$ac_ext <<_ACEOF 8472/* confdefs.h. */ 8473_ACEOF 8474cat confdefs.h >>conftest.$ac_ext 8475cat >>conftest.$ac_ext <<_ACEOF 8476/* end confdefs.h. */ 8477 8478/* Override any gcc2 internal prototype to avoid an error. */ 8479#ifdef __cplusplus 8480extern "C" 8481#endif 8482/* We use char because int might match the return type of a gcc2 8483 builtin and then its argument prototype would still apply. */ 8484char strerror (); 8485int 8486main () 8487{ 8488strerror (); 8489 ; 8490 return 0; 8491} 8492_ACEOF 8493rm -f conftest.$ac_objext conftest$ac_exeext 8494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8495 (eval $ac_link) 2>conftest.er1 8496 ac_status=$? 8497 grep -v '^ *+' conftest.er1 >conftest.err 8498 rm -f conftest.er1 8499 cat conftest.err >&5 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8501 (exit $ac_status); } && 8502 { ac_try='test -z "$ac_c_werror_flag" 8503 || test ! -s conftest.err' 8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8505 (eval $ac_try) 2>&5 8506 ac_status=$? 8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8508 (exit $ac_status); }; } && 8509 { ac_try='test -s conftest$ac_exeext' 8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8511 (eval $ac_try) 2>&5 8512 ac_status=$? 8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8514 (exit $ac_status); }; }; then 8515 ac_cv_search_strerror="none required" 8516else 8517 echo "$as_me: failed program was:" >&5 8518sed 's/^/| /' conftest.$ac_ext >&5 8519 8520fi 8521rm -f conftest.err conftest.$ac_objext \ 8522 conftest$ac_exeext conftest.$ac_ext 8523if test "$ac_cv_search_strerror" = no; then 8524 for ac_lib in cposix; do 8525 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8526 cat >conftest.$ac_ext <<_ACEOF 8527/* confdefs.h. */ 8528_ACEOF 8529cat confdefs.h >>conftest.$ac_ext 8530cat >>conftest.$ac_ext <<_ACEOF 8531/* end confdefs.h. */ 8532 8533/* Override any gcc2 internal prototype to avoid an error. */ 8534#ifdef __cplusplus 8535extern "C" 8536#endif 8537/* We use char because int might match the return type of a gcc2 8538 builtin and then its argument prototype would still apply. */ 8539char strerror (); 8540int 8541main () 8542{ 8543strerror (); 8544 ; 8545 return 0; 8546} 8547_ACEOF 8548rm -f conftest.$ac_objext conftest$ac_exeext 8549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8550 (eval $ac_link) 2>conftest.er1 8551 ac_status=$? 8552 grep -v '^ *+' conftest.er1 >conftest.err 8553 rm -f conftest.er1 8554 cat conftest.err >&5 8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8556 (exit $ac_status); } && 8557 { ac_try='test -z "$ac_c_werror_flag" 8558 || test ! -s conftest.err' 8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8560 (eval $ac_try) 2>&5 8561 ac_status=$? 8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8563 (exit $ac_status); }; } && 8564 { ac_try='test -s conftest$ac_exeext' 8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8566 (eval $ac_try) 2>&5 8567 ac_status=$? 8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8569 (exit $ac_status); }; }; then 8570 ac_cv_search_strerror="-l$ac_lib" 8571break 8572else 8573 echo "$as_me: failed program was:" >&5 8574sed 's/^/| /' conftest.$ac_ext >&5 8575 8576fi 8577rm -f conftest.err conftest.$ac_objext \ 8578 conftest$ac_exeext conftest.$ac_ext 8579 done 8580fi 8581LIBS=$ac_func_search_save_LIBS 8582fi 8583echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 8584echo "${ECHO_T}$ac_cv_search_strerror" >&6 8585if test "$ac_cv_search_strerror" != no; then 8586 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 8587 8588fi 8589 8590echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8591echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 8592if test "${ac_cv_c_const+set}" = set; then 8593 echo $ECHO_N "(cached) $ECHO_C" >&6 8594else 8595 cat >conftest.$ac_ext <<_ACEOF 8596/* confdefs.h. */ 8597_ACEOF 8598cat confdefs.h >>conftest.$ac_ext 8599cat >>conftest.$ac_ext <<_ACEOF 8600/* end confdefs.h. */ 8601 8602int 8603main () 8604{ 8605/* FIXME: Include the comments suggested by Paul. */ 8606#ifndef __cplusplus 8607 /* Ultrix mips cc rejects this. */ 8608 typedef int charset[2]; 8609 const charset x; 8610 /* SunOS 4.1.1 cc rejects this. */ 8611 char const *const *ccp; 8612 char **p; 8613 /* NEC SVR4.0.2 mips cc rejects this. */ 8614 struct point {int x, y;}; 8615 static struct point const zero = {0,0}; 8616 /* AIX XL C 1.02.0.0 rejects this. 8617 It does not let you subtract one const X* pointer from another in 8618 an arm of an if-expression whose if-part is not a constant 8619 expression */ 8620 const char *g = "string"; 8621 ccp = &g + (g ? g-g : 0); 8622 /* HPUX 7.0 cc rejects these. */ 8623 ++ccp; 8624 p = (char**) ccp; 8625 ccp = (char const *const *) p; 8626 { /* SCO 3.2v4 cc rejects this. */ 8627 char *t; 8628 char const *s = 0 ? (char *) 0 : (char const *) 0; 8629 8630 *t++ = 0; 8631 } 8632 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8633 int x[] = {25, 17}; 8634 const int *foo = &x[0]; 8635 ++foo; 8636 } 8637 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8638 typedef const int *iptr; 8639 iptr p = 0; 8640 ++p; 8641 } 8642 { /* AIX XL C 1.02.0.0 rejects this saying 8643 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8644 struct s { int j; const int *ap[3]; }; 8645 struct s *b; b->j = 5; 8646 } 8647 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8648 const int foo = 10; 8649 } 8650#endif 8651 8652 ; 8653 return 0; 8654} 8655_ACEOF 8656rm -f conftest.$ac_objext 8657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8658 (eval $ac_compile) 2>conftest.er1 8659 ac_status=$? 8660 grep -v '^ *+' conftest.er1 >conftest.err 8661 rm -f conftest.er1 8662 cat conftest.err >&5 8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8664 (exit $ac_status); } && 8665 { ac_try='test -z "$ac_c_werror_flag" 8666 || test ! -s conftest.err' 8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8668 (eval $ac_try) 2>&5 8669 ac_status=$? 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); }; } && 8672 { ac_try='test -s conftest.$ac_objext' 8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8674 (eval $ac_try) 2>&5 8675 ac_status=$? 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 (exit $ac_status); }; }; then 8678 ac_cv_c_const=yes 8679else 8680 echo "$as_me: failed program was:" >&5 8681sed 's/^/| /' conftest.$ac_ext >&5 8682 8683ac_cv_c_const=no 8684fi 8685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8686fi 8687echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8688echo "${ECHO_T}$ac_cv_c_const" >&6 8689if test $ac_cv_c_const = no; then 8690 8691cat >>confdefs.h <<\_ACEOF 8692#define const 8693_ACEOF 8694 8695fi 8696 8697echo "$as_me:$LINENO: checking for inline" >&5 8698echo $ECHO_N "checking for inline... $ECHO_C" >&6 8699if test "${ac_cv_c_inline+set}" = set; then 8700 echo $ECHO_N "(cached) $ECHO_C" >&6 8701else 8702 ac_cv_c_inline=no 8703for ac_kw in inline __inline__ __inline; do 8704 cat >conftest.$ac_ext <<_ACEOF 8705/* confdefs.h. */ 8706_ACEOF 8707cat confdefs.h >>conftest.$ac_ext 8708cat >>conftest.$ac_ext <<_ACEOF 8709/* end confdefs.h. */ 8710#ifndef __cplusplus 8711typedef int foo_t; 8712static $ac_kw foo_t static_foo () {return 0; } 8713$ac_kw foo_t foo () {return 0; } 8714#endif 8715 8716_ACEOF 8717rm -f conftest.$ac_objext 8718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8719 (eval $ac_compile) 2>conftest.er1 8720 ac_status=$? 8721 grep -v '^ *+' conftest.er1 >conftest.err 8722 rm -f conftest.er1 8723 cat conftest.err >&5 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8725 (exit $ac_status); } && 8726 { ac_try='test -z "$ac_c_werror_flag" 8727 || test ! -s conftest.err' 8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8729 (eval $ac_try) 2>&5 8730 ac_status=$? 8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8732 (exit $ac_status); }; } && 8733 { ac_try='test -s conftest.$ac_objext' 8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8735 (eval $ac_try) 2>&5 8736 ac_status=$? 8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8738 (exit $ac_status); }; }; then 8739 ac_cv_c_inline=$ac_kw; break 8740else 8741 echo "$as_me: failed program was:" >&5 8742sed 's/^/| /' conftest.$ac_ext >&5 8743 8744fi 8745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8746done 8747 8748fi 8749echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8750echo "${ECHO_T}$ac_cv_c_inline" >&6 8751 8752 8753case $ac_cv_c_inline in 8754 inline | yes) ;; 8755 *) 8756 case $ac_cv_c_inline in 8757 no) ac_val=;; 8758 *) ac_val=$ac_cv_c_inline;; 8759 esac 8760 cat >>confdefs.h <<_ACEOF 8761#ifndef __cplusplus 8762#define inline $ac_val 8763#endif 8764_ACEOF 8765 ;; 8766esac 8767 8768echo "$as_me:$LINENO: checking for off_t" >&5 8769echo $ECHO_N "checking for off_t... $ECHO_C" >&6 8770if test "${ac_cv_type_off_t+set}" = set; then 8771 echo $ECHO_N "(cached) $ECHO_C" >&6 8772else 8773 cat >conftest.$ac_ext <<_ACEOF 8774/* confdefs.h. */ 8775_ACEOF 8776cat confdefs.h >>conftest.$ac_ext 8777cat >>conftest.$ac_ext <<_ACEOF 8778/* end confdefs.h. */ 8779$ac_includes_default 8780int 8781main () 8782{ 8783if ((off_t *) 0) 8784 return 0; 8785if (sizeof (off_t)) 8786 return 0; 8787 ; 8788 return 0; 8789} 8790_ACEOF 8791rm -f conftest.$ac_objext 8792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8793 (eval $ac_compile) 2>conftest.er1 8794 ac_status=$? 8795 grep -v '^ *+' conftest.er1 >conftest.err 8796 rm -f conftest.er1 8797 cat conftest.err >&5 8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 (exit $ac_status); } && 8800 { ac_try='test -z "$ac_c_werror_flag" 8801 || test ! -s conftest.err' 8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8803 (eval $ac_try) 2>&5 8804 ac_status=$? 8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8806 (exit $ac_status); }; } && 8807 { ac_try='test -s conftest.$ac_objext' 8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8809 (eval $ac_try) 2>&5 8810 ac_status=$? 8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8812 (exit $ac_status); }; }; then 8813 ac_cv_type_off_t=yes 8814else 8815 echo "$as_me: failed program was:" >&5 8816sed 's/^/| /' conftest.$ac_ext >&5 8817 8818ac_cv_type_off_t=no 8819fi 8820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8821fi 8822echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 8823echo "${ECHO_T}$ac_cv_type_off_t" >&6 8824if test $ac_cv_type_off_t = yes; then 8825 : 8826else 8827 8828cat >>confdefs.h <<_ACEOF 8829#define off_t long 8830_ACEOF 8831 8832fi 8833 8834echo "$as_me:$LINENO: checking for size_t" >&5 8835echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8836if test "${ac_cv_type_size_t+set}" = set; then 8837 echo $ECHO_N "(cached) $ECHO_C" >&6 8838else 8839 cat >conftest.$ac_ext <<_ACEOF 8840/* confdefs.h. */ 8841_ACEOF 8842cat confdefs.h >>conftest.$ac_ext 8843cat >>conftest.$ac_ext <<_ACEOF 8844/* end confdefs.h. */ 8845$ac_includes_default 8846int 8847main () 8848{ 8849if ((size_t *) 0) 8850 return 0; 8851if (sizeof (size_t)) 8852 return 0; 8853 ; 8854 return 0; 8855} 8856_ACEOF 8857rm -f conftest.$ac_objext 8858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8859 (eval $ac_compile) 2>conftest.er1 8860 ac_status=$? 8861 grep -v '^ *+' conftest.er1 >conftest.err 8862 rm -f conftest.er1 8863 cat conftest.err >&5 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8865 (exit $ac_status); } && 8866 { ac_try='test -z "$ac_c_werror_flag" 8867 || test ! -s conftest.err' 8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8869 (eval $ac_try) 2>&5 8870 ac_status=$? 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 (exit $ac_status); }; } && 8873 { ac_try='test -s conftest.$ac_objext' 8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8875 (eval $ac_try) 2>&5 8876 ac_status=$? 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8878 (exit $ac_status); }; }; then 8879 ac_cv_type_size_t=yes 8880else 8881 echo "$as_me: failed program was:" >&5 8882sed 's/^/| /' conftest.$ac_ext >&5 8883 8884ac_cv_type_size_t=no 8885fi 8886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8887fi 8888echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8889echo "${ECHO_T}$ac_cv_type_size_t" >&6 8890if test $ac_cv_type_size_t = yes; then 8891 : 8892else 8893 8894cat >>confdefs.h <<_ACEOF 8895#define size_t unsigned 8896_ACEOF 8897 8898fi 8899 8900# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8901# for constant arguments. Useless! 8902echo "$as_me:$LINENO: checking for working alloca.h" >&5 8903echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 8904if test "${ac_cv_working_alloca_h+set}" = set; then 8905 echo $ECHO_N "(cached) $ECHO_C" >&6 8906else 8907 cat >conftest.$ac_ext <<_ACEOF 8908/* confdefs.h. */ 8909_ACEOF 8910cat confdefs.h >>conftest.$ac_ext 8911cat >>conftest.$ac_ext <<_ACEOF 8912/* end confdefs.h. */ 8913#include <alloca.h> 8914int 8915main () 8916{ 8917char *p = (char *) alloca (2 * sizeof (int)); 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922rm -f conftest.$ac_objext conftest$ac_exeext 8923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8924 (eval $ac_link) 2>conftest.er1 8925 ac_status=$? 8926 grep -v '^ *+' conftest.er1 >conftest.err 8927 rm -f conftest.er1 8928 cat conftest.err >&5 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); } && 8931 { ac_try='test -z "$ac_c_werror_flag" 8932 || test ! -s conftest.err' 8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8934 (eval $ac_try) 2>&5 8935 ac_status=$? 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 (exit $ac_status); }; } && 8938 { ac_try='test -s conftest$ac_exeext' 8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8940 (eval $ac_try) 2>&5 8941 ac_status=$? 8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943 (exit $ac_status); }; }; then 8944 ac_cv_working_alloca_h=yes 8945else 8946 echo "$as_me: failed program was:" >&5 8947sed 's/^/| /' conftest.$ac_ext >&5 8948 8949ac_cv_working_alloca_h=no 8950fi 8951rm -f conftest.err conftest.$ac_objext \ 8952 conftest$ac_exeext conftest.$ac_ext 8953fi 8954echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 8955echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 8956if test $ac_cv_working_alloca_h = yes; then 8957 8958cat >>confdefs.h <<\_ACEOF 8959#define HAVE_ALLOCA_H 1 8960_ACEOF 8961 8962fi 8963 8964echo "$as_me:$LINENO: checking for alloca" >&5 8965echo $ECHO_N "checking for alloca... $ECHO_C" >&6 8966if test "${ac_cv_func_alloca_works+set}" = set; then 8967 echo $ECHO_N "(cached) $ECHO_C" >&6 8968else 8969 cat >conftest.$ac_ext <<_ACEOF 8970/* confdefs.h. */ 8971_ACEOF 8972cat confdefs.h >>conftest.$ac_ext 8973cat >>conftest.$ac_ext <<_ACEOF 8974/* end confdefs.h. */ 8975#ifdef __GNUC__ 8976# define alloca __builtin_alloca 8977#else 8978# ifdef _MSC_VER 8979# include <malloc.h> 8980# define alloca _alloca 8981# else 8982# if HAVE_ALLOCA_H 8983# include <alloca.h> 8984# else 8985# ifdef _AIX 8986 #pragma alloca 8987# else 8988# ifndef alloca /* predefined by HP cc +Olibcalls */ 8989char *alloca (); 8990# endif 8991# endif 8992# endif 8993# endif 8994#endif 8995 8996int 8997main () 8998{ 8999char *p = (char *) alloca (1); 9000 ; 9001 return 0; 9002} 9003_ACEOF 9004rm -f conftest.$ac_objext conftest$ac_exeext 9005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9006 (eval $ac_link) 2>conftest.er1 9007 ac_status=$? 9008 grep -v '^ *+' conftest.er1 >conftest.err 9009 rm -f conftest.er1 9010 cat conftest.err >&5 9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9012 (exit $ac_status); } && 9013 { ac_try='test -z "$ac_c_werror_flag" 9014 || test ! -s conftest.err' 9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9016 (eval $ac_try) 2>&5 9017 ac_status=$? 9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9019 (exit $ac_status); }; } && 9020 { ac_try='test -s conftest$ac_exeext' 9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9022 (eval $ac_try) 2>&5 9023 ac_status=$? 9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9025 (exit $ac_status); }; }; then 9026 ac_cv_func_alloca_works=yes 9027else 9028 echo "$as_me: failed program was:" >&5 9029sed 's/^/| /' conftest.$ac_ext >&5 9030 9031ac_cv_func_alloca_works=no 9032fi 9033rm -f conftest.err conftest.$ac_objext \ 9034 conftest$ac_exeext conftest.$ac_ext 9035fi 9036echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 9037echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 9038 9039if test $ac_cv_func_alloca_works = yes; then 9040 9041cat >>confdefs.h <<\_ACEOF 9042#define HAVE_ALLOCA 1 9043_ACEOF 9044 9045else 9046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9047# that cause trouble. Some versions do not even contain alloca or 9048# contain a buggy version. If you still want to use their alloca, 9049# use ar to extract alloca.o from them instead of compiling alloca.c. 9050 9051ALLOCA=alloca.$ac_objext 9052 9053cat >>confdefs.h <<\_ACEOF 9054#define C_ALLOCA 1 9055_ACEOF 9056 9057 9058echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 9059echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 9060if test "${ac_cv_os_cray+set}" = set; then 9061 echo $ECHO_N "(cached) $ECHO_C" >&6 9062else 9063 cat >conftest.$ac_ext <<_ACEOF 9064/* confdefs.h. */ 9065_ACEOF 9066cat confdefs.h >>conftest.$ac_ext 9067cat >>conftest.$ac_ext <<_ACEOF 9068/* end confdefs.h. */ 9069#if defined(CRAY) && ! defined(CRAY2) 9070webecray 9071#else 9072wenotbecray 9073#endif 9074 9075_ACEOF 9076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9077 $EGREP "webecray" >/dev/null 2>&1; then 9078 ac_cv_os_cray=yes 9079else 9080 ac_cv_os_cray=no 9081fi 9082rm -f conftest* 9083 9084fi 9085echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 9086echo "${ECHO_T}$ac_cv_os_cray" >&6 9087if test $ac_cv_os_cray = yes; then 9088 for ac_func in _getb67 GETB67 getb67; do 9089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9090echo "$as_me:$LINENO: checking for $ac_func" >&5 9091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9092if eval "test \"\${$as_ac_var+set}\" = set"; then 9093 echo $ECHO_N "(cached) $ECHO_C" >&6 9094else 9095 cat >conftest.$ac_ext <<_ACEOF 9096/* confdefs.h. */ 9097_ACEOF 9098cat confdefs.h >>conftest.$ac_ext 9099cat >>conftest.$ac_ext <<_ACEOF 9100/* end confdefs.h. */ 9101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9102 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9103#define $ac_func innocuous_$ac_func 9104 9105/* System header to define __stub macros and hopefully few prototypes, 9106 which can conflict with char $ac_func (); below. 9107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9108 <limits.h> exists even on freestanding compilers. */ 9109 9110#ifdef __STDC__ 9111# include <limits.h> 9112#else 9113# include <assert.h> 9114#endif 9115 9116#undef $ac_func 9117 9118/* Override any gcc2 internal prototype to avoid an error. */ 9119#ifdef __cplusplus 9120extern "C" 9121{ 9122#endif 9123/* We use char because int might match the return type of a gcc2 9124 builtin and then its argument prototype would still apply. */ 9125char $ac_func (); 9126/* The GNU C library defines this for functions which it implements 9127 to always fail with ENOSYS. Some functions are actually named 9128 something starting with __ and the normal name is an alias. */ 9129#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9130choke me 9131#else 9132char (*f) () = $ac_func; 9133#endif 9134#ifdef __cplusplus 9135} 9136#endif 9137 9138int 9139main () 9140{ 9141return f != $ac_func; 9142 ; 9143 return 0; 9144} 9145_ACEOF 9146rm -f conftest.$ac_objext conftest$ac_exeext 9147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9148 (eval $ac_link) 2>conftest.er1 9149 ac_status=$? 9150 grep -v '^ *+' conftest.er1 >conftest.err 9151 rm -f conftest.er1 9152 cat conftest.err >&5 9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9154 (exit $ac_status); } && 9155 { ac_try='test -z "$ac_c_werror_flag" 9156 || test ! -s conftest.err' 9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9158 (eval $ac_try) 2>&5 9159 ac_status=$? 9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9161 (exit $ac_status); }; } && 9162 { ac_try='test -s conftest$ac_exeext' 9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9164 (eval $ac_try) 2>&5 9165 ac_status=$? 9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9167 (exit $ac_status); }; }; then 9168 eval "$as_ac_var=yes" 9169else 9170 echo "$as_me: failed program was:" >&5 9171sed 's/^/| /' conftest.$ac_ext >&5 9172 9173eval "$as_ac_var=no" 9174fi 9175rm -f conftest.err conftest.$ac_objext \ 9176 conftest$ac_exeext conftest.$ac_ext 9177fi 9178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9180if test `eval echo '${'$as_ac_var'}'` = yes; then 9181 9182cat >>confdefs.h <<_ACEOF 9183#define CRAY_STACKSEG_END $ac_func 9184_ACEOF 9185 9186 break 9187fi 9188 9189 done 9190fi 9191 9192echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 9193echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 9194if test "${ac_cv_c_stack_direction+set}" = set; then 9195 echo $ECHO_N "(cached) $ECHO_C" >&6 9196else 9197 if test "$cross_compiling" = yes; then 9198 ac_cv_c_stack_direction=0 9199else 9200 cat >conftest.$ac_ext <<_ACEOF 9201/* confdefs.h. */ 9202_ACEOF 9203cat confdefs.h >>conftest.$ac_ext 9204cat >>conftest.$ac_ext <<_ACEOF 9205/* end confdefs.h. */ 9206int 9207find_stack_direction () 9208{ 9209 static char *addr = 0; 9210 auto char dummy; 9211 if (addr == 0) 9212 { 9213 addr = &dummy; 9214 return find_stack_direction (); 9215 } 9216 else 9217 return (&dummy > addr) ? 1 : -1; 9218} 9219 9220int 9221main () 9222{ 9223 exit (find_stack_direction () < 0); 9224} 9225_ACEOF 9226rm -f conftest$ac_exeext 9227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9228 (eval $ac_link) 2>&5 9229 ac_status=$? 9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9233 (eval $ac_try) 2>&5 9234 ac_status=$? 9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9236 (exit $ac_status); }; }; then 9237 ac_cv_c_stack_direction=1 9238else 9239 echo "$as_me: program exited with status $ac_status" >&5 9240echo "$as_me: failed program was:" >&5 9241sed 's/^/| /' conftest.$ac_ext >&5 9242 9243( exit $ac_status ) 9244ac_cv_c_stack_direction=-1 9245fi 9246rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9247fi 9248fi 9249echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 9250echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 9251 9252cat >>confdefs.h <<_ACEOF 9253#define STACK_DIRECTION $ac_cv_c_stack_direction 9254_ACEOF 9255 9256 9257fi 9258 9259 9260 9261for ac_header in stdlib.h unistd.h 9262do 9263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9264if eval "test \"\${$as_ac_Header+set}\" = set"; then 9265 echo "$as_me:$LINENO: checking for $ac_header" >&5 9266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9267if eval "test \"\${$as_ac_Header+set}\" = set"; then 9268 echo $ECHO_N "(cached) $ECHO_C" >&6 9269fi 9270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9272else 9273 # Is the header compilable? 9274echo "$as_me:$LINENO: checking $ac_header usability" >&5 9275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9276cat >conftest.$ac_ext <<_ACEOF 9277/* confdefs.h. */ 9278_ACEOF 9279cat confdefs.h >>conftest.$ac_ext 9280cat >>conftest.$ac_ext <<_ACEOF 9281/* end confdefs.h. */ 9282$ac_includes_default 9283#include <$ac_header> 9284_ACEOF 9285rm -f conftest.$ac_objext 9286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9287 (eval $ac_compile) 2>conftest.er1 9288 ac_status=$? 9289 grep -v '^ *+' conftest.er1 >conftest.err 9290 rm -f conftest.er1 9291 cat conftest.err >&5 9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9293 (exit $ac_status); } && 9294 { ac_try='test -z "$ac_c_werror_flag" 9295 || test ! -s conftest.err' 9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9297 (eval $ac_try) 2>&5 9298 ac_status=$? 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9300 (exit $ac_status); }; } && 9301 { ac_try='test -s conftest.$ac_objext' 9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9303 (eval $ac_try) 2>&5 9304 ac_status=$? 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); }; }; then 9307 ac_header_compiler=yes 9308else 9309 echo "$as_me: failed program was:" >&5 9310sed 's/^/| /' conftest.$ac_ext >&5 9311 9312ac_header_compiler=no 9313fi 9314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9316echo "${ECHO_T}$ac_header_compiler" >&6 9317 9318# Is the header present? 9319echo "$as_me:$LINENO: checking $ac_header presence" >&5 9320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9321cat >conftest.$ac_ext <<_ACEOF 9322/* confdefs.h. */ 9323_ACEOF 9324cat confdefs.h >>conftest.$ac_ext 9325cat >>conftest.$ac_ext <<_ACEOF 9326/* end confdefs.h. */ 9327#include <$ac_header> 9328_ACEOF 9329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9331 ac_status=$? 9332 grep -v '^ *+' conftest.er1 >conftest.err 9333 rm -f conftest.er1 9334 cat conftest.err >&5 9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 (exit $ac_status); } >/dev/null; then 9337 if test -s conftest.err; then 9338 ac_cpp_err=$ac_c_preproc_warn_flag 9339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9340 else 9341 ac_cpp_err= 9342 fi 9343else 9344 ac_cpp_err=yes 9345fi 9346if test -z "$ac_cpp_err"; then 9347 ac_header_preproc=yes 9348else 9349 echo "$as_me: failed program was:" >&5 9350sed 's/^/| /' conftest.$ac_ext >&5 9351 9352 ac_header_preproc=no 9353fi 9354rm -f conftest.err conftest.$ac_ext 9355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9356echo "${ECHO_T}$ac_header_preproc" >&6 9357 9358# So? What about this header? 9359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9360 yes:no: ) 9361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9365 ac_header_preproc=yes 9366 ;; 9367 no:yes:* ) 9368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9380 ( 9381 cat <<\_ASBOX 9382## ---------------------------- ## 9383## Report this to bboy@bboy.net ## 9384## ---------------------------- ## 9385_ASBOX 9386 ) | 9387 sed "s/^/$as_me: WARNING: /" >&2 9388 ;; 9389esac 9390echo "$as_me:$LINENO: checking for $ac_header" >&5 9391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9392if eval "test \"\${$as_ac_Header+set}\" = set"; then 9393 echo $ECHO_N "(cached) $ECHO_C" >&6 9394else 9395 eval "$as_ac_Header=\$ac_header_preproc" 9396fi 9397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9399 9400fi 9401if test `eval echo '${'$as_ac_Header'}'` = yes; then 9402 cat >>confdefs.h <<_ACEOF 9403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9404_ACEOF 9405 9406fi 9407 9408done 9409 9410 9411for ac_func in getpagesize 9412do 9413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9414echo "$as_me:$LINENO: checking for $ac_func" >&5 9415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9416if eval "test \"\${$as_ac_var+set}\" = set"; then 9417 echo $ECHO_N "(cached) $ECHO_C" >&6 9418else 9419 cat >conftest.$ac_ext <<_ACEOF 9420/* confdefs.h. */ 9421_ACEOF 9422cat confdefs.h >>conftest.$ac_ext 9423cat >>conftest.$ac_ext <<_ACEOF 9424/* end confdefs.h. */ 9425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9426 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9427#define $ac_func innocuous_$ac_func 9428 9429/* System header to define __stub macros and hopefully few prototypes, 9430 which can conflict with char $ac_func (); below. 9431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9432 <limits.h> exists even on freestanding compilers. */ 9433 9434#ifdef __STDC__ 9435# include <limits.h> 9436#else 9437# include <assert.h> 9438#endif 9439 9440#undef $ac_func 9441 9442/* Override any gcc2 internal prototype to avoid an error. */ 9443#ifdef __cplusplus 9444extern "C" 9445{ 9446#endif 9447/* We use char because int might match the return type of a gcc2 9448 builtin and then its argument prototype would still apply. */ 9449char $ac_func (); 9450/* The GNU C library defines this for functions which it implements 9451 to always fail with ENOSYS. Some functions are actually named 9452 something starting with __ and the normal name is an alias. */ 9453#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9454choke me 9455#else 9456char (*f) () = $ac_func; 9457#endif 9458#ifdef __cplusplus 9459} 9460#endif 9461 9462int 9463main () 9464{ 9465return f != $ac_func; 9466 ; 9467 return 0; 9468} 9469_ACEOF 9470rm -f conftest.$ac_objext conftest$ac_exeext 9471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9472 (eval $ac_link) 2>conftest.er1 9473 ac_status=$? 9474 grep -v '^ *+' conftest.er1 >conftest.err 9475 rm -f conftest.er1 9476 cat conftest.err >&5 9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9478 (exit $ac_status); } && 9479 { ac_try='test -z "$ac_c_werror_flag" 9480 || test ! -s conftest.err' 9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9482 (eval $ac_try) 2>&5 9483 ac_status=$? 9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9485 (exit $ac_status); }; } && 9486 { ac_try='test -s conftest$ac_exeext' 9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9488 (eval $ac_try) 2>&5 9489 ac_status=$? 9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9491 (exit $ac_status); }; }; then 9492 eval "$as_ac_var=yes" 9493else 9494 echo "$as_me: failed program was:" >&5 9495sed 's/^/| /' conftest.$ac_ext >&5 9496 9497eval "$as_ac_var=no" 9498fi 9499rm -f conftest.err conftest.$ac_objext \ 9500 conftest$ac_exeext conftest.$ac_ext 9501fi 9502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9504if test `eval echo '${'$as_ac_var'}'` = yes; then 9505 cat >>confdefs.h <<_ACEOF 9506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9507_ACEOF 9508 9509fi 9510done 9511 9512echo "$as_me:$LINENO: checking for working mmap" >&5 9513echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 9514if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 9515 echo $ECHO_N "(cached) $ECHO_C" >&6 9516else 9517 if test "$cross_compiling" = yes; then 9518 ac_cv_func_mmap_fixed_mapped=no 9519else 9520 cat >conftest.$ac_ext <<_ACEOF 9521/* confdefs.h. */ 9522_ACEOF 9523cat confdefs.h >>conftest.$ac_ext 9524cat >>conftest.$ac_ext <<_ACEOF 9525/* end confdefs.h. */ 9526$ac_includes_default 9527/* malloc might have been renamed as rpl_malloc. */ 9528#undef malloc 9529 9530/* Thanks to Mike Haertel and Jim Avera for this test. 9531 Here is a matrix of mmap possibilities: 9532 mmap private not fixed 9533 mmap private fixed at somewhere currently unmapped 9534 mmap private fixed at somewhere already mapped 9535 mmap shared not fixed 9536 mmap shared fixed at somewhere currently unmapped 9537 mmap shared fixed at somewhere already mapped 9538 For private mappings, we should verify that changes cannot be read() 9539 back from the file, nor mmap's back from the file at a different 9540 address. (There have been systems where private was not correctly 9541 implemented like the infamous i386 svr4.0, and systems where the 9542 VM page cache was not coherent with the file system buffer cache 9543 like early versions of FreeBSD and possibly contemporary NetBSD.) 9544 For shared mappings, we should conversely verify that changes get 9545 propagated back to all the places they're supposed to be. 9546 9547 Grep wants private fixed already mapped. 9548 The main things grep needs to know about mmap are: 9549 * does it exist and is it safe to write into the mmap'd area 9550 * how to use it (BSD variants) */ 9551 9552#include <fcntl.h> 9553#include <sys/mman.h> 9554 9555#if !STDC_HEADERS && !HAVE_STDLIB_H 9556char *malloc (); 9557#endif 9558 9559/* This mess was copied from the GNU getpagesize.h. */ 9560#if !HAVE_GETPAGESIZE 9561/* Assume that all systems that can run configure have sys/param.h. */ 9562# if !HAVE_SYS_PARAM_H 9563# define HAVE_SYS_PARAM_H 1 9564# endif 9565 9566# ifdef _SC_PAGESIZE 9567# define getpagesize() sysconf(_SC_PAGESIZE) 9568# else /* no _SC_PAGESIZE */ 9569# if HAVE_SYS_PARAM_H 9570# include <sys/param.h> 9571# ifdef EXEC_PAGESIZE 9572# define getpagesize() EXEC_PAGESIZE 9573# else /* no EXEC_PAGESIZE */ 9574# ifdef NBPG 9575# define getpagesize() NBPG * CLSIZE 9576# ifndef CLSIZE 9577# define CLSIZE 1 9578# endif /* no CLSIZE */ 9579# else /* no NBPG */ 9580# ifdef NBPC 9581# define getpagesize() NBPC 9582# else /* no NBPC */ 9583# ifdef PAGESIZE 9584# define getpagesize() PAGESIZE 9585# endif /* PAGESIZE */ 9586# endif /* no NBPC */ 9587# endif /* no NBPG */ 9588# endif /* no EXEC_PAGESIZE */ 9589# else /* no HAVE_SYS_PARAM_H */ 9590# define getpagesize() 8192 /* punt totally */ 9591# endif /* no HAVE_SYS_PARAM_H */ 9592# endif /* no _SC_PAGESIZE */ 9593 9594#endif /* no HAVE_GETPAGESIZE */ 9595 9596int 9597main () 9598{ 9599 char *data, *data2, *data3; 9600 int i, pagesize; 9601 int fd; 9602 9603 pagesize = getpagesize (); 9604 9605 /* First, make a file with some known garbage in it. */ 9606 data = (char *) malloc (pagesize); 9607 if (!data) 9608 exit (1); 9609 for (i = 0; i < pagesize; ++i) 9610 *(data + i) = rand (); 9611 umask (0); 9612 fd = creat ("conftest.mmap", 0600); 9613 if (fd < 0) 9614 exit (1); 9615 if (write (fd, data, pagesize) != pagesize) 9616 exit (1); 9617 close (fd); 9618 9619 /* Next, try to mmap the file at a fixed address which already has 9620 something else allocated at it. If we can, also make sure that 9621 we see the same garbage. */ 9622 fd = open ("conftest.mmap", O_RDWR); 9623 if (fd < 0) 9624 exit (1); 9625 data2 = (char *) malloc (2 * pagesize); 9626 if (!data2) 9627 exit (1); 9628 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 9629 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9630 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9631 exit (1); 9632 for (i = 0; i < pagesize; ++i) 9633 if (*(data + i) != *(data2 + i)) 9634 exit (1); 9635 9636 /* Finally, make sure that changes to the mapped area do not 9637 percolate back to the file as seen by read(). (This is a bug on 9638 some variants of i386 svr4.0.) */ 9639 for (i = 0; i < pagesize; ++i) 9640 *(data2 + i) = *(data2 + i) + 1; 9641 data3 = (char *) malloc (pagesize); 9642 if (!data3) 9643 exit (1); 9644 if (read (fd, data3, pagesize) != pagesize) 9645 exit (1); 9646 for (i = 0; i < pagesize; ++i) 9647 if (*(data + i) != *(data3 + i)) 9648 exit (1); 9649 close (fd); 9650 exit (0); 9651} 9652_ACEOF 9653rm -f conftest$ac_exeext 9654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9655 (eval $ac_link) 2>&5 9656 ac_status=$? 9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9660 (eval $ac_try) 2>&5 9661 ac_status=$? 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 (exit $ac_status); }; }; then 9664 ac_cv_func_mmap_fixed_mapped=yes 9665else 9666 echo "$as_me: program exited with status $ac_status" >&5 9667echo "$as_me: failed program was:" >&5 9668sed 's/^/| /' conftest.$ac_ext >&5 9669 9670( exit $ac_status ) 9671ac_cv_func_mmap_fixed_mapped=no 9672fi 9673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9674fi 9675fi 9676echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 9677echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 9678if test $ac_cv_func_mmap_fixed_mapped = yes; then 9679 9680cat >>confdefs.h <<\_ACEOF 9681#define HAVE_MMAP 1 9682_ACEOF 9683 9684fi 9685rm -f conftest.mmap 9686 9687 9688 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 9689echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 9690if test "${ac_cv_gnu_library_2_1+set}" = set; then 9691 echo $ECHO_N "(cached) $ECHO_C" >&6 9692else 9693 cat >conftest.$ac_ext <<_ACEOF 9694/* confdefs.h. */ 9695_ACEOF 9696cat confdefs.h >>conftest.$ac_ext 9697cat >>conftest.$ac_ext <<_ACEOF 9698/* end confdefs.h. */ 9699 9700#include <features.h> 9701#ifdef __GNU_LIBRARY__ 9702 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9703 Lucky GNU user 9704 #endif 9705#endif 9706 9707_ACEOF 9708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9709 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 9710 ac_cv_gnu_library_2_1=yes 9711else 9712 ac_cv_gnu_library_2_1=no 9713fi 9714rm -f conftest* 9715 9716 9717 9718fi 9719echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 9720echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 9721 9722 GLIBC21="$ac_cv_gnu_library_2_1" 9723 9724 9725 9726 9727 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 9728echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 9729if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 9730 echo $ECHO_N "(cached) $ECHO_C" >&6 9731else 9732 9733 if test "$cross_compiling" = yes; then 9734 9735 # Guess based on the CPU. 9736 case "$host_cpu" in 9737 alpha* | i3456786 | m68k | s390*) 9738 gt_cv_int_divbyzero_sigfpe="guessing yes";; 9739 *) 9740 gt_cv_int_divbyzero_sigfpe="guessing no";; 9741 esac 9742 9743else 9744 cat >conftest.$ac_ext <<_ACEOF 9745/* confdefs.h. */ 9746_ACEOF 9747cat confdefs.h >>conftest.$ac_ext 9748cat >>conftest.$ac_ext <<_ACEOF 9749/* end confdefs.h. */ 9750 9751#include <stdlib.h> 9752#include <signal.h> 9753 9754static void 9755#ifdef __cplusplus 9756sigfpe_handler (int sig) 9757#else 9758sigfpe_handler (sig) int sig; 9759#endif 9760{ 9761 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 9762 exit (sig != SIGFPE); 9763} 9764 9765int x = 1; 9766int y = 0; 9767int z; 9768int nan; 9769 9770int main () 9771{ 9772 signal (SIGFPE, sigfpe_handler); 9773/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 9774#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 9775 signal (SIGTRAP, sigfpe_handler); 9776#endif 9777/* Linux/SPARC yields signal SIGILL. */ 9778#if defined (__sparc__) && defined (__linux__) 9779 signal (SIGILL, sigfpe_handler); 9780#endif 9781 9782 z = x / y; 9783 nan = y / y; 9784 exit (1); 9785} 9786 9787_ACEOF 9788rm -f conftest$ac_exeext 9789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9790 (eval $ac_link) 2>&5 9791 ac_status=$? 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9795 (eval $ac_try) 2>&5 9796 ac_status=$? 9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); }; }; then 9799 gt_cv_int_divbyzero_sigfpe=yes 9800else 9801 echo "$as_me: program exited with status $ac_status" >&5 9802echo "$as_me: failed program was:" >&5 9803sed 's/^/| /' conftest.$ac_ext >&5 9804 9805( exit $ac_status ) 9806gt_cv_int_divbyzero_sigfpe=no 9807fi 9808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9809fi 9810 9811fi 9812echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 9813echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 9814 case "$gt_cv_int_divbyzero_sigfpe" in 9815 *yes) value=1;; 9816 *) value=0;; 9817 esac 9818 9819cat >>confdefs.h <<_ACEOF 9820#define INTDIV0_RAISES_SIGFPE $value 9821_ACEOF 9822 9823 9824 9825 echo "$as_me:$LINENO: checking for inttypes.h" >&5 9826echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 9827if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 9828 echo $ECHO_N "(cached) $ECHO_C" >&6 9829else 9830 cat >conftest.$ac_ext <<_ACEOF 9831/* confdefs.h. */ 9832_ACEOF 9833cat confdefs.h >>conftest.$ac_ext 9834cat >>conftest.$ac_ext <<_ACEOF 9835/* end confdefs.h. */ 9836#include <sys/types.h> 9837#include <inttypes.h> 9838int 9839main () 9840{ 9841uintmax_t i = (uintmax_t) -1; 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846rm -f conftest.$ac_objext 9847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9848 (eval $ac_compile) 2>conftest.er1 9849 ac_status=$? 9850 grep -v '^ *+' conftest.er1 >conftest.err 9851 rm -f conftest.er1 9852 cat conftest.err >&5 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); } && 9855 { ac_try='test -z "$ac_c_werror_flag" 9856 || test ! -s conftest.err' 9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9858 (eval $ac_try) 2>&5 9859 ac_status=$? 9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9861 (exit $ac_status); }; } && 9862 { ac_try='test -s conftest.$ac_objext' 9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9864 (eval $ac_try) 2>&5 9865 ac_status=$? 9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 (exit $ac_status); }; }; then 9868 jm_ac_cv_header_inttypes_h=yes 9869else 9870 echo "$as_me: failed program was:" >&5 9871sed 's/^/| /' conftest.$ac_ext >&5 9872 9873jm_ac_cv_header_inttypes_h=no 9874fi 9875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9876fi 9877echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 9878echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 9879 if test $jm_ac_cv_header_inttypes_h = yes; then 9880 9881cat >>confdefs.h <<_ACEOF 9882#define HAVE_INTTYPES_H_WITH_UINTMAX 1 9883_ACEOF 9884 9885 fi 9886 9887 9888 echo "$as_me:$LINENO: checking for stdint.h" >&5 9889echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 9890if test "${jm_ac_cv_header_stdint_h+set}" = set; then 9891 echo $ECHO_N "(cached) $ECHO_C" >&6 9892else 9893 cat >conftest.$ac_ext <<_ACEOF 9894/* confdefs.h. */ 9895_ACEOF 9896cat confdefs.h >>conftest.$ac_ext 9897cat >>conftest.$ac_ext <<_ACEOF 9898/* end confdefs.h. */ 9899#include <sys/types.h> 9900#include <stdint.h> 9901int 9902main () 9903{ 9904uintmax_t i = (uintmax_t) -1; 9905 ; 9906 return 0; 9907} 9908_ACEOF 9909rm -f conftest.$ac_objext 9910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9911 (eval $ac_compile) 2>conftest.er1 9912 ac_status=$? 9913 grep -v '^ *+' conftest.er1 >conftest.err 9914 rm -f conftest.er1 9915 cat conftest.err >&5 9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9917 (exit $ac_status); } && 9918 { ac_try='test -z "$ac_c_werror_flag" 9919 || test ! -s conftest.err' 9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9921 (eval $ac_try) 2>&5 9922 ac_status=$? 9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9924 (exit $ac_status); }; } && 9925 { ac_try='test -s conftest.$ac_objext' 9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9927 (eval $ac_try) 2>&5 9928 ac_status=$? 9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9930 (exit $ac_status); }; }; then 9931 jm_ac_cv_header_stdint_h=yes 9932else 9933 echo "$as_me: failed program was:" >&5 9934sed 's/^/| /' conftest.$ac_ext >&5 9935 9936jm_ac_cv_header_stdint_h=no 9937fi 9938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9939fi 9940echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 9941echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 9942 if test $jm_ac_cv_header_stdint_h = yes; then 9943 9944cat >>confdefs.h <<_ACEOF 9945#define HAVE_STDINT_H_WITH_UINTMAX 1 9946_ACEOF 9947 9948 fi 9949 9950 9951 echo "$as_me:$LINENO: checking for unsigned long long" >&5 9952echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 9953if test "${ac_cv_type_unsigned_long_long+set}" = set; then 9954 echo $ECHO_N "(cached) $ECHO_C" >&6 9955else 9956 cat >conftest.$ac_ext <<_ACEOF 9957/* confdefs.h. */ 9958_ACEOF 9959cat confdefs.h >>conftest.$ac_ext 9960cat >>conftest.$ac_ext <<_ACEOF 9961/* end confdefs.h. */ 9962unsigned long long ull = 1; int i = 63; 9963int 9964main () 9965{ 9966unsigned long long ullmax = (unsigned long long) -1; 9967 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972rm -f conftest.$ac_objext conftest$ac_exeext 9973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9974 (eval $ac_link) 2>conftest.er1 9975 ac_status=$? 9976 grep -v '^ *+' conftest.er1 >conftest.err 9977 rm -f conftest.er1 9978 cat conftest.err >&5 9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9980 (exit $ac_status); } && 9981 { ac_try='test -z "$ac_c_werror_flag" 9982 || test ! -s conftest.err' 9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9984 (eval $ac_try) 2>&5 9985 ac_status=$? 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); }; } && 9988 { ac_try='test -s conftest$ac_exeext' 9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9990 (eval $ac_try) 2>&5 9991 ac_status=$? 9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9993 (exit $ac_status); }; }; then 9994 ac_cv_type_unsigned_long_long=yes 9995else 9996 echo "$as_me: failed program was:" >&5 9997sed 's/^/| /' conftest.$ac_ext >&5 9998 9999ac_cv_type_unsigned_long_long=no 10000fi 10001rm -f conftest.err conftest.$ac_objext \ 10002 conftest$ac_exeext conftest.$ac_ext 10003fi 10004echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 10005echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 10006 if test $ac_cv_type_unsigned_long_long = yes; then 10007 10008cat >>confdefs.h <<\_ACEOF 10009#define HAVE_UNSIGNED_LONG_LONG 1 10010_ACEOF 10011 10012 fi 10013 10014 10015 10016 10017 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 10018 10019 test $ac_cv_type_unsigned_long_long = yes \ 10020 && ac_type='unsigned long long' \ 10021 || ac_type='unsigned long' 10022 10023cat >>confdefs.h <<_ACEOF 10024#define uintmax_t $ac_type 10025_ACEOF 10026 10027 fi 10028 10029 10030 echo "$as_me:$LINENO: checking for inttypes.h" >&5 10031echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 10032if test "${gt_cv_header_inttypes_h+set}" = set; then 10033 echo $ECHO_N "(cached) $ECHO_C" >&6 10034else 10035 10036 cat >conftest.$ac_ext <<_ACEOF 10037/* confdefs.h. */ 10038_ACEOF 10039cat confdefs.h >>conftest.$ac_ext 10040cat >>conftest.$ac_ext <<_ACEOF 10041/* end confdefs.h. */ 10042#include <sys/types.h> 10043#include <inttypes.h> 10044int 10045main () 10046{ 10047 10048 ; 10049 return 0; 10050} 10051_ACEOF 10052rm -f conftest.$ac_objext 10053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10054 (eval $ac_compile) 2>conftest.er1 10055 ac_status=$? 10056 grep -v '^ *+' conftest.er1 >conftest.err 10057 rm -f conftest.er1 10058 cat conftest.err >&5 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); } && 10061 { ac_try='test -z "$ac_c_werror_flag" 10062 || test ! -s conftest.err' 10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10064 (eval $ac_try) 2>&5 10065 ac_status=$? 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); }; } && 10068 { ac_try='test -s conftest.$ac_objext' 10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10070 (eval $ac_try) 2>&5 10071 ac_status=$? 10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10073 (exit $ac_status); }; }; then 10074 gt_cv_header_inttypes_h=yes 10075else 10076 echo "$as_me: failed program was:" >&5 10077sed 's/^/| /' conftest.$ac_ext >&5 10078 10079gt_cv_header_inttypes_h=no 10080fi 10081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10082 10083fi 10084echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 10085echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 10086 if test $gt_cv_header_inttypes_h = yes; then 10087 10088cat >>confdefs.h <<_ACEOF 10089#define HAVE_INTTYPES_H 1 10090_ACEOF 10091 10092 fi 10093 10094 10095 10096 if test $gt_cv_header_inttypes_h = yes; then 10097 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 10098echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 10099if test "${gt_cv_inttypes_pri_broken+set}" = set; then 10100 echo $ECHO_N "(cached) $ECHO_C" >&6 10101else 10102 10103 cat >conftest.$ac_ext <<_ACEOF 10104/* confdefs.h. */ 10105_ACEOF 10106cat confdefs.h >>conftest.$ac_ext 10107cat >>conftest.$ac_ext <<_ACEOF 10108/* end confdefs.h. */ 10109#include <inttypes.h> 10110#ifdef PRId32 10111char *p = PRId32; 10112#endif 10113 10114int 10115main () 10116{ 10117 10118 ; 10119 return 0; 10120} 10121_ACEOF 10122rm -f conftest.$ac_objext 10123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10124 (eval $ac_compile) 2>conftest.er1 10125 ac_status=$? 10126 grep -v '^ *+' conftest.er1 >conftest.err 10127 rm -f conftest.er1 10128 cat conftest.err >&5 10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10130 (exit $ac_status); } && 10131 { ac_try='test -z "$ac_c_werror_flag" 10132 || test ! -s conftest.err' 10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10134 (eval $ac_try) 2>&5 10135 ac_status=$? 10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10137 (exit $ac_status); }; } && 10138 { ac_try='test -s conftest.$ac_objext' 10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10140 (eval $ac_try) 2>&5 10141 ac_status=$? 10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 (exit $ac_status); }; }; then 10144 gt_cv_inttypes_pri_broken=no 10145else 10146 echo "$as_me: failed program was:" >&5 10147sed 's/^/| /' conftest.$ac_ext >&5 10148 10149gt_cv_inttypes_pri_broken=yes 10150fi 10151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10152 10153fi 10154echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 10155echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 10156 fi 10157 if test "$gt_cv_inttypes_pri_broken" = yes; then 10158 10159cat >>confdefs.h <<_ACEOF 10160#define PRI_MACROS_BROKEN 1 10161_ACEOF 10162 10163 fi 10164 10165 10166 if test "X$prefix" = "XNONE"; then 10167 acl_final_prefix="$ac_default_prefix" 10168 else 10169 acl_final_prefix="$prefix" 10170 fi 10171 if test "X$exec_prefix" = "XNONE"; then 10172 acl_final_exec_prefix='${prefix}' 10173 else 10174 acl_final_exec_prefix="$exec_prefix" 10175 fi 10176 acl_save_prefix="$prefix" 10177 prefix="$acl_final_prefix" 10178 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10179 prefix="$acl_save_prefix" 10180 10181 10182# Check whether --with-gnu-ld or --without-gnu-ld was given. 10183if test "${with_gnu_ld+set}" = set; then 10184 withval="$with_gnu_ld" 10185 test "$withval" = no || with_gnu_ld=yes 10186else 10187 with_gnu_ld=no 10188fi; 10189ac_prog=ld 10190if test "$GCC" = yes; then 10191 # Check if gcc -print-prog-name=ld gives a path. 10192 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10193echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10194 case $host in 10195 *-*-mingw*) 10196 # gcc leaves a trailing carriage return which upsets mingw 10197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10198 *) 10199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10200 esac 10201 case $ac_prog in 10202 # Accept absolute paths. 10203 [\\/]* | [A-Za-z]:[\\/]*) 10204 re_direlt='/[^/][^/]*/\.\./' 10205 # Canonicalize the path of ld 10206 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10208 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10209 done 10210 test -z "$LD" && LD="$ac_prog" 10211 ;; 10212 "") 10213 # If it fails, then pretend we aren't using GCC. 10214 ac_prog=ld 10215 ;; 10216 *) 10217 # If it is relative, then search for the first ld in PATH. 10218 with_gnu_ld=unknown 10219 ;; 10220 esac 10221elif test "$with_gnu_ld" = yes; then 10222 echo "$as_me:$LINENO: checking for GNU ld" >&5 10223echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10224else 10225 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10226echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10227fi 10228if test "${acl_cv_path_LD+set}" = set; then 10229 echo $ECHO_N "(cached) $ECHO_C" >&6 10230else 10231 if test -z "$LD"; then 10232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10233 for ac_dir in $PATH; do 10234 test -z "$ac_dir" && ac_dir=. 10235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10236 acl_cv_path_LD="$ac_dir/$ac_prog" 10237 # Check to see if the program is GNU ld. I'd rather use --version, 10238 # but apparently some GNU ld's only accept -v. 10239 # Break only if it was the GNU/non-GNU ld that we prefer. 10240 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 10241 test "$with_gnu_ld" != no && break 10242 else 10243 test "$with_gnu_ld" != yes && break 10244 fi 10245 fi 10246 done 10247 IFS="$ac_save_ifs" 10248else 10249 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10250fi 10251fi 10252 10253LD="$acl_cv_path_LD" 10254if test -n "$LD"; then 10255 echo "$as_me:$LINENO: result: $LD" >&5 10256echo "${ECHO_T}$LD" >&6 10257else 10258 echo "$as_me:$LINENO: result: no" >&5 10259echo "${ECHO_T}no" >&6 10260fi 10261test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10262echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10263 { (exit 1); exit 1; }; } 10264echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10265echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10266if test "${acl_cv_prog_gnu_ld+set}" = set; then 10267 echo $ECHO_N "(cached) $ECHO_C" >&6 10268else 10269 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10270if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 10271 acl_cv_prog_gnu_ld=yes 10272else 10273 acl_cv_prog_gnu_ld=no 10274fi 10275fi 10276echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 10277echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 10278with_gnu_ld=$acl_cv_prog_gnu_ld 10279 10280 10281 10282 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 10283echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 10284if test "${acl_cv_rpath+set}" = set; then 10285 echo $ECHO_N "(cached) $ECHO_C" >&6 10286else 10287 10288 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10289 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10290 . ./conftest.sh 10291 rm -f ./conftest.sh 10292 acl_cv_rpath=done 10293 10294fi 10295echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 10296echo "${ECHO_T}$acl_cv_rpath" >&6 10297 wl="$acl_cv_wl" 10298 libext="$acl_cv_libext" 10299 shlibext="$acl_cv_shlibext" 10300 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10301 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10302 hardcode_direct="$acl_cv_hardcode_direct" 10303 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10304 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 10305 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" 10306 10307 10308 10309 10310 10311 10312 10313 use_additional=yes 10314 10315 acl_save_prefix="$prefix" 10316 prefix="$acl_final_prefix" 10317 acl_save_exec_prefix="$exec_prefix" 10318 exec_prefix="$acl_final_exec_prefix" 10319 10320 eval additional_includedir=\"$includedir\" 10321 eval additional_libdir=\"$libdir\" 10322 10323 exec_prefix="$acl_save_exec_prefix" 10324 prefix="$acl_save_prefix" 10325 10326 10327# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 10328if test "${with_libiconv_prefix+set}" = set; then 10329 withval="$with_libiconv_prefix" 10330 10331 if test "X$withval" = "Xno"; then 10332 use_additional=no 10333 else 10334 if test "X$withval" = "X"; then 10335 10336 acl_save_prefix="$prefix" 10337 prefix="$acl_final_prefix" 10338 acl_save_exec_prefix="$exec_prefix" 10339 exec_prefix="$acl_final_exec_prefix" 10340 10341 eval additional_includedir=\"$includedir\" 10342 eval additional_libdir=\"$libdir\" 10343 10344 exec_prefix="$acl_save_exec_prefix" 10345 prefix="$acl_save_prefix" 10346 10347 else 10348 additional_includedir="$withval/include" 10349 additional_libdir="$withval/lib" 10350 fi 10351 fi 10352 10353fi; 10354 LIBICONV= 10355 LTLIBICONV= 10356 INCICONV= 10357 rpathdirs= 10358 ltrpathdirs= 10359 names_already_handled= 10360 names_next_round='iconv ' 10361 while test -n "$names_next_round"; do 10362 names_this_round="$names_next_round" 10363 names_next_round= 10364 for name in $names_this_round; do 10365 already_handled= 10366 for n in $names_already_handled; do 10367 if test "$n" = "$name"; then 10368 already_handled=yes 10369 break 10370 fi 10371 done 10372 if test -z "$already_handled"; then 10373 names_already_handled="$names_already_handled $name" 10374 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10375 eval value=\"\$HAVE_LIB$uppername\" 10376 if test -n "$value"; then 10377 if test "$value" = yes; then 10378 eval value=\"\$LIB$uppername\" 10379 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10380 eval value=\"\$LTLIB$uppername\" 10381 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10382 else 10383 : 10384 fi 10385 else 10386 found_dir= 10387 found_la= 10388 found_so= 10389 found_a= 10390 if test $use_additional = yes; then 10391 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10392 found_dir="$additional_libdir" 10393 found_so="$additional_libdir/lib$name.$shlibext" 10394 if test -f "$additional_libdir/lib$name.la"; then 10395 found_la="$additional_libdir/lib$name.la" 10396 fi 10397 else 10398 if test -f "$additional_libdir/lib$name.$libext"; then 10399 found_dir="$additional_libdir" 10400 found_a="$additional_libdir/lib$name.$libext" 10401 if test -f "$additional_libdir/lib$name.la"; then 10402 found_la="$additional_libdir/lib$name.la" 10403 fi 10404 fi 10405 fi 10406 fi 10407 if test "X$found_dir" = "X"; then 10408 for x in $LDFLAGS $LTLIBICONV; do 10409 10410 acl_save_prefix="$prefix" 10411 prefix="$acl_final_prefix" 10412 acl_save_exec_prefix="$exec_prefix" 10413 exec_prefix="$acl_final_exec_prefix" 10414 eval x=\"$x\" 10415 exec_prefix="$acl_save_exec_prefix" 10416 prefix="$acl_save_prefix" 10417 10418 case "$x" in 10419 -L*) 10420 dir=`echo "X$x" | sed -e 's/^X-L//'` 10421 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10422 found_dir="$dir" 10423 found_so="$dir/lib$name.$shlibext" 10424 if test -f "$dir/lib$name.la"; then 10425 found_la="$dir/lib$name.la" 10426 fi 10427 else 10428 if test -f "$dir/lib$name.$libext"; then 10429 found_dir="$dir" 10430 found_a="$dir/lib$name.$libext" 10431 if test -f "$dir/lib$name.la"; then 10432 found_la="$dir/lib$name.la" 10433 fi 10434 fi 10435 fi 10436 ;; 10437 esac 10438 if test "X$found_dir" != "X"; then 10439 break 10440 fi 10441 done 10442 fi 10443 if test "X$found_dir" != "X"; then 10444 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10445 if test "X$found_so" != "X"; then 10446 if test "X$found_dir" = "X/usr/lib"; then 10447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10448 else 10449 haveit= 10450 for x in $ltrpathdirs; do 10451 if test "X$x" = "X$found_dir"; then 10452 haveit=yes 10453 break 10454 fi 10455 done 10456 if test -z "$haveit"; then 10457 ltrpathdirs="$ltrpathdirs $found_dir" 10458 fi 10459 if test "$hardcode_direct" = yes; then 10460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10461 else 10462 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10464 haveit= 10465 for x in $rpathdirs; do 10466 if test "X$x" = "X$found_dir"; then 10467 haveit=yes 10468 break 10469 fi 10470 done 10471 if test -z "$haveit"; then 10472 rpathdirs="$rpathdirs $found_dir" 10473 fi 10474 else 10475 haveit= 10476 for x in $LDFLAGS $LIBICONV; do 10477 10478 acl_save_prefix="$prefix" 10479 prefix="$acl_final_prefix" 10480 acl_save_exec_prefix="$exec_prefix" 10481 exec_prefix="$acl_final_exec_prefix" 10482 eval x=\"$x\" 10483 exec_prefix="$acl_save_exec_prefix" 10484 prefix="$acl_save_prefix" 10485 10486 if test "X$x" = "X-L$found_dir"; then 10487 haveit=yes 10488 break 10489 fi 10490 done 10491 if test -z "$haveit"; then 10492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10493 fi 10494 if test "$hardcode_minus_L" != no; then 10495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10496 else 10497 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10498 fi 10499 fi 10500 fi 10501 fi 10502 else 10503 if test "X$found_a" != "X"; then 10504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10505 else 10506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10507 fi 10508 fi 10509 additional_includedir= 10510 case "$found_dir" in 10511 */lib | */lib/) 10512 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10513 additional_includedir="$basedir/include" 10514 ;; 10515 esac 10516 if test "X$additional_includedir" != "X"; then 10517 if test "X$additional_includedir" != "X/usr/include"; then 10518 haveit= 10519 if test "X$additional_includedir" = "X/usr/local/include"; then 10520 if test -n "$GCC"; then 10521 case $host_os in 10522 linux*) haveit=yes;; 10523 esac 10524 fi 10525 fi 10526 if test -z "$haveit"; then 10527 for x in $CPPFLAGS $INCICONV; do 10528 10529 acl_save_prefix="$prefix" 10530 prefix="$acl_final_prefix" 10531 acl_save_exec_prefix="$exec_prefix" 10532 exec_prefix="$acl_final_exec_prefix" 10533 eval x=\"$x\" 10534 exec_prefix="$acl_save_exec_prefix" 10535 prefix="$acl_save_prefix" 10536 10537 if test "X$x" = "X-I$additional_includedir"; then 10538 haveit=yes 10539 break 10540 fi 10541 done 10542 if test -z "$haveit"; then 10543 if test -d "$additional_includedir"; then 10544 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 10545 fi 10546 fi 10547 fi 10548 fi 10549 fi 10550 if test -n "$found_la"; then 10551 save_libdir="$libdir" 10552 case "$found_la" in 10553 */* | *\\*) . "$found_la" ;; 10554 *) . "./$found_la" ;; 10555 esac 10556 libdir="$save_libdir" 10557 for dep in $dependency_libs; do 10558 case "$dep" in 10559 -L*) 10560 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10561 if test "X$additional_libdir" != "X/usr/lib"; then 10562 haveit= 10563 if test "X$additional_libdir" = "X/usr/local/lib"; then 10564 if test -n "$GCC"; then 10565 case $host_os in 10566 linux*) haveit=yes;; 10567 esac 10568 fi 10569 fi 10570 if test -z "$haveit"; then 10571 haveit= 10572 for x in $LDFLAGS $LIBICONV; do 10573 10574 acl_save_prefix="$prefix" 10575 prefix="$acl_final_prefix" 10576 acl_save_exec_prefix="$exec_prefix" 10577 exec_prefix="$acl_final_exec_prefix" 10578 eval x=\"$x\" 10579 exec_prefix="$acl_save_exec_prefix" 10580 prefix="$acl_save_prefix" 10581 10582 if test "X$x" = "X-L$additional_libdir"; then 10583 haveit=yes 10584 break 10585 fi 10586 done 10587 if test -z "$haveit"; then 10588 if test -d "$additional_libdir"; then 10589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 10590 fi 10591 fi 10592 haveit= 10593 for x in $LDFLAGS $LTLIBICONV; do 10594 10595 acl_save_prefix="$prefix" 10596 prefix="$acl_final_prefix" 10597 acl_save_exec_prefix="$exec_prefix" 10598 exec_prefix="$acl_final_exec_prefix" 10599 eval x=\"$x\" 10600 exec_prefix="$acl_save_exec_prefix" 10601 prefix="$acl_save_prefix" 10602 10603 if test "X$x" = "X-L$additional_libdir"; then 10604 haveit=yes 10605 break 10606 fi 10607 done 10608 if test -z "$haveit"; then 10609 if test -d "$additional_libdir"; then 10610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 10611 fi 10612 fi 10613 fi 10614 fi 10615 ;; 10616 -R*) 10617 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10618 haveit= 10619 for x in $rpathdirs; do 10620 if test "X$x" = "X$dir"; then 10621 haveit=yes 10622 break 10623 fi 10624 done 10625 if test -z "$haveit"; then 10626 rpathdirs="$rpathdirs $dir" 10627 fi 10628 haveit= 10629 for x in $ltrpathdirs; do 10630 if test "X$x" = "X$dir"; then 10631 haveit=yes 10632 break 10633 fi 10634 done 10635 if test -z "$haveit"; then 10636 ltrpathdirs="$ltrpathdirs $dir" 10637 fi 10638 ;; 10639 -l*) 10640 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10641 ;; 10642 *.la) 10643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10644 ;; 10645 *) 10646 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 10647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 10648 ;; 10649 esac 10650 done 10651 fi 10652 else 10653 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 10655 fi 10656 fi 10657 fi 10658 done 10659 done 10660 if test "X$rpathdirs" != "X"; then 10661 if test -n "$hardcode_libdir_separator"; then 10662 alldirs= 10663 for found_dir in $rpathdirs; do 10664 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10665 done 10666 acl_save_libdir="$libdir" 10667 libdir="$alldirs" 10668 eval flag=\"$hardcode_libdir_flag_spec\" 10669 libdir="$acl_save_libdir" 10670 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10671 else 10672 for found_dir in $rpathdirs; do 10673 acl_save_libdir="$libdir" 10674 libdir="$found_dir" 10675 eval flag=\"$hardcode_libdir_flag_spec\" 10676 libdir="$acl_save_libdir" 10677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10678 done 10679 fi 10680 fi 10681 if test "X$ltrpathdirs" != "X"; then 10682 for found_dir in $ltrpathdirs; do 10683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 10684 done 10685 fi 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 10701stdlib.h string.h unistd.h sys/param.h 10702do 10703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10704if eval "test \"\${$as_ac_Header+set}\" = set"; then 10705 echo "$as_me:$LINENO: checking for $ac_header" >&5 10706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10707if eval "test \"\${$as_ac_Header+set}\" = set"; then 10708 echo $ECHO_N "(cached) $ECHO_C" >&6 10709fi 10710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10712else 10713 # Is the header compilable? 10714echo "$as_me:$LINENO: checking $ac_header usability" >&5 10715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10716cat >conftest.$ac_ext <<_ACEOF 10717/* confdefs.h. */ 10718_ACEOF 10719cat confdefs.h >>conftest.$ac_ext 10720cat >>conftest.$ac_ext <<_ACEOF 10721/* end confdefs.h. */ 10722$ac_includes_default 10723#include <$ac_header> 10724_ACEOF 10725rm -f conftest.$ac_objext 10726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10727 (eval $ac_compile) 2>conftest.er1 10728 ac_status=$? 10729 grep -v '^ *+' conftest.er1 >conftest.err 10730 rm -f conftest.er1 10731 cat conftest.err >&5 10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 (exit $ac_status); } && 10734 { ac_try='test -z "$ac_c_werror_flag" 10735 || test ! -s conftest.err' 10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10737 (eval $ac_try) 2>&5 10738 ac_status=$? 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10740 (exit $ac_status); }; } && 10741 { ac_try='test -s conftest.$ac_objext' 10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10743 (eval $ac_try) 2>&5 10744 ac_status=$? 10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10746 (exit $ac_status); }; }; then 10747 ac_header_compiler=yes 10748else 10749 echo "$as_me: failed program was:" >&5 10750sed 's/^/| /' conftest.$ac_ext >&5 10751 10752ac_header_compiler=no 10753fi 10754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10756echo "${ECHO_T}$ac_header_compiler" >&6 10757 10758# Is the header present? 10759echo "$as_me:$LINENO: checking $ac_header presence" >&5 10760echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10761cat >conftest.$ac_ext <<_ACEOF 10762/* confdefs.h. */ 10763_ACEOF 10764cat confdefs.h >>conftest.$ac_ext 10765cat >>conftest.$ac_ext <<_ACEOF 10766/* end confdefs.h. */ 10767#include <$ac_header> 10768_ACEOF 10769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10771 ac_status=$? 10772 grep -v '^ *+' conftest.er1 >conftest.err 10773 rm -f conftest.er1 10774 cat conftest.err >&5 10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10776 (exit $ac_status); } >/dev/null; then 10777 if test -s conftest.err; then 10778 ac_cpp_err=$ac_c_preproc_warn_flag 10779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10780 else 10781 ac_cpp_err= 10782 fi 10783else 10784 ac_cpp_err=yes 10785fi 10786if test -z "$ac_cpp_err"; then 10787 ac_header_preproc=yes 10788else 10789 echo "$as_me: failed program was:" >&5 10790sed 's/^/| /' conftest.$ac_ext >&5 10791 10792 ac_header_preproc=no 10793fi 10794rm -f conftest.err conftest.$ac_ext 10795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10796echo "${ECHO_T}$ac_header_preproc" >&6 10797 10798# So? What about this header? 10799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10800 yes:no: ) 10801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10805 ac_header_preproc=yes 10806 ;; 10807 no:yes:* ) 10808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10820 ( 10821 cat <<\_ASBOX 10822## ---------------------------- ## 10823## Report this to bboy@bboy.net ## 10824## ---------------------------- ## 10825_ASBOX 10826 ) | 10827 sed "s/^/$as_me: WARNING: /" >&2 10828 ;; 10829esac 10830echo "$as_me:$LINENO: checking for $ac_header" >&5 10831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10832if eval "test \"\${$as_ac_Header+set}\" = set"; then 10833 echo $ECHO_N "(cached) $ECHO_C" >&6 10834else 10835 eval "$as_ac_Header=\$ac_header_preproc" 10836fi 10837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10839 10840fi 10841if test `eval echo '${'$as_ac_Header'}'` = yes; then 10842 cat >>confdefs.h <<_ACEOF 10843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10844_ACEOF 10845 10846fi 10847 10848done 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 10872geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ 10873strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next 10874do 10875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10876echo "$as_me:$LINENO: checking for $ac_func" >&5 10877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10878if eval "test \"\${$as_ac_var+set}\" = set"; then 10879 echo $ECHO_N "(cached) $ECHO_C" >&6 10880else 10881 cat >conftest.$ac_ext <<_ACEOF 10882/* confdefs.h. */ 10883_ACEOF 10884cat confdefs.h >>conftest.$ac_ext 10885cat >>conftest.$ac_ext <<_ACEOF 10886/* end confdefs.h. */ 10887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10888 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10889#define $ac_func innocuous_$ac_func 10890 10891/* System header to define __stub macros and hopefully few prototypes, 10892 which can conflict with char $ac_func (); below. 10893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10894 <limits.h> exists even on freestanding compilers. */ 10895 10896#ifdef __STDC__ 10897# include <limits.h> 10898#else 10899# include <assert.h> 10900#endif 10901 10902#undef $ac_func 10903 10904/* Override any gcc2 internal prototype to avoid an error. */ 10905#ifdef __cplusplus 10906extern "C" 10907{ 10908#endif 10909/* We use char because int might match the return type of a gcc2 10910 builtin and then its argument prototype would still apply. */ 10911char $ac_func (); 10912/* The GNU C library defines this for functions which it implements 10913 to always fail with ENOSYS. Some functions are actually named 10914 something starting with __ and the normal name is an alias. */ 10915#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10916choke me 10917#else 10918char (*f) () = $ac_func; 10919#endif 10920#ifdef __cplusplus 10921} 10922#endif 10923 10924int 10925main () 10926{ 10927return f != $ac_func; 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932rm -f conftest.$ac_objext conftest$ac_exeext 10933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10934 (eval $ac_link) 2>conftest.er1 10935 ac_status=$? 10936 grep -v '^ *+' conftest.er1 >conftest.err 10937 rm -f conftest.er1 10938 cat conftest.err >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 (exit $ac_status); } && 10941 { ac_try='test -z "$ac_c_werror_flag" 10942 || test ! -s conftest.err' 10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10944 (eval $ac_try) 2>&5 10945 ac_status=$? 10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10947 (exit $ac_status); }; } && 10948 { ac_try='test -s conftest$ac_exeext' 10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10950 (eval $ac_try) 2>&5 10951 ac_status=$? 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); }; }; then 10954 eval "$as_ac_var=yes" 10955else 10956 echo "$as_me: failed program was:" >&5 10957sed 's/^/| /' conftest.$ac_ext >&5 10958 10959eval "$as_ac_var=no" 10960fi 10961rm -f conftest.err conftest.$ac_objext \ 10962 conftest$ac_exeext conftest.$ac_ext 10963fi 10964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10966if test `eval echo '${'$as_ac_var'}'` = yes; then 10967 cat >>confdefs.h <<_ACEOF 10968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10969_ACEOF 10970 10971fi 10972done 10973 10974 10975 10976 10977 10978 10979 10980 am_save_CPPFLAGS="$CPPFLAGS" 10981 10982 for element in $INCICONV; do 10983 haveit= 10984 for x in $CPPFLAGS; do 10985 10986 acl_save_prefix="$prefix" 10987 prefix="$acl_final_prefix" 10988 acl_save_exec_prefix="$exec_prefix" 10989 exec_prefix="$acl_final_exec_prefix" 10990 eval x=\"$x\" 10991 exec_prefix="$acl_save_exec_prefix" 10992 prefix="$acl_save_prefix" 10993 10994 if test "X$x" = "X$element"; then 10995 haveit=yes 10996 break 10997 fi 10998 done 10999 if test -z "$haveit"; then 11000 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11001 fi 11002 done 11003 11004 11005 echo "$as_me:$LINENO: checking for iconv" >&5 11006echo $ECHO_N "checking for iconv... $ECHO_C" >&6 11007if test "${am_cv_func_iconv+set}" = set; then 11008 echo $ECHO_N "(cached) $ECHO_C" >&6 11009else 11010 11011 am_cv_func_iconv="no, consider installing GNU libiconv" 11012 am_cv_lib_iconv=no 11013 cat >conftest.$ac_ext <<_ACEOF 11014/* confdefs.h. */ 11015_ACEOF 11016cat confdefs.h >>conftest.$ac_ext 11017cat >>conftest.$ac_ext <<_ACEOF 11018/* end confdefs.h. */ 11019#include <stdlib.h> 11020#include <iconv.h> 11021int 11022main () 11023{ 11024iconv_t cd = iconv_open("",""); 11025 iconv(cd,NULL,NULL,NULL,NULL); 11026 iconv_close(cd); 11027 ; 11028 return 0; 11029} 11030_ACEOF 11031rm -f conftest.$ac_objext conftest$ac_exeext 11032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11033 (eval $ac_link) 2>conftest.er1 11034 ac_status=$? 11035 grep -v '^ *+' conftest.er1 >conftest.err 11036 rm -f conftest.er1 11037 cat conftest.err >&5 11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11039 (exit $ac_status); } && 11040 { ac_try='test -z "$ac_c_werror_flag" 11041 || test ! -s conftest.err' 11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11043 (eval $ac_try) 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); }; } && 11047 { ac_try='test -s conftest$ac_exeext' 11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11049 (eval $ac_try) 2>&5 11050 ac_status=$? 11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11052 (exit $ac_status); }; }; then 11053 am_cv_func_iconv=yes 11054else 11055 echo "$as_me: failed program was:" >&5 11056sed 's/^/| /' conftest.$ac_ext >&5 11057 11058fi 11059rm -f conftest.err conftest.$ac_objext \ 11060 conftest$ac_exeext conftest.$ac_ext 11061 if test "$am_cv_func_iconv" != yes; then 11062 am_save_LIBS="$LIBS" 11063 LIBS="$LIBS $LIBICONV" 11064 cat >conftest.$ac_ext <<_ACEOF 11065/* confdefs.h. */ 11066_ACEOF 11067cat confdefs.h >>conftest.$ac_ext 11068cat >>conftest.$ac_ext <<_ACEOF 11069/* end confdefs.h. */ 11070#include <stdlib.h> 11071#include <iconv.h> 11072int 11073main () 11074{ 11075iconv_t cd = iconv_open("",""); 11076 iconv(cd,NULL,NULL,NULL,NULL); 11077 iconv_close(cd); 11078 ; 11079 return 0; 11080} 11081_ACEOF 11082rm -f conftest.$ac_objext conftest$ac_exeext 11083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11084 (eval $ac_link) 2>conftest.er1 11085 ac_status=$? 11086 grep -v '^ *+' conftest.er1 >conftest.err 11087 rm -f conftest.er1 11088 cat conftest.err >&5 11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11090 (exit $ac_status); } && 11091 { ac_try='test -z "$ac_c_werror_flag" 11092 || test ! -s conftest.err' 11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 (eval $ac_try) 2>&5 11095 ac_status=$? 11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 (exit $ac_status); }; } && 11098 { ac_try='test -s conftest$ac_exeext' 11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11100 (eval $ac_try) 2>&5 11101 ac_status=$? 11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11103 (exit $ac_status); }; }; then 11104 am_cv_lib_iconv=yes 11105 am_cv_func_iconv=yes 11106else 11107 echo "$as_me: failed program was:" >&5 11108sed 's/^/| /' conftest.$ac_ext >&5 11109 11110fi 11111rm -f conftest.err conftest.$ac_objext \ 11112 conftest$ac_exeext conftest.$ac_ext 11113 LIBS="$am_save_LIBS" 11114 fi 11115 11116fi 11117echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 11118echo "${ECHO_T}$am_cv_func_iconv" >&6 11119 if test "$am_cv_func_iconv" = yes; then 11120 11121cat >>confdefs.h <<\_ACEOF 11122#define HAVE_ICONV 1 11123_ACEOF 11124 11125 fi 11126 if test "$am_cv_lib_iconv" = yes; then 11127 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 11128echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 11129 echo "$as_me:$LINENO: result: $LIBICONV" >&5 11130echo "${ECHO_T}$LIBICONV" >&6 11131 else 11132 CPPFLAGS="$am_save_CPPFLAGS" 11133 LIBICONV= 11134 LTLIBICONV= 11135 fi 11136 11137 11138 11139 if test "$am_cv_func_iconv" = yes; then 11140 echo "$as_me:$LINENO: checking for iconv declaration" >&5 11141echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 11142 if test "${am_cv_proto_iconv+set}" = set; then 11143 echo $ECHO_N "(cached) $ECHO_C" >&6 11144else 11145 11146 cat >conftest.$ac_ext <<_ACEOF 11147/* confdefs.h. */ 11148_ACEOF 11149cat confdefs.h >>conftest.$ac_ext 11150cat >>conftest.$ac_ext <<_ACEOF 11151/* end confdefs.h. */ 11152 11153#include <stdlib.h> 11154#include <iconv.h> 11155extern 11156#ifdef __cplusplus 11157"C" 11158#endif 11159#if defined(__STDC__) || defined(__cplusplus) 11160size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 11161#else 11162size_t iconv(); 11163#endif 11164 11165int 11166main () 11167{ 11168 11169 ; 11170 return 0; 11171} 11172_ACEOF 11173rm -f conftest.$ac_objext 11174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11175 (eval $ac_compile) 2>conftest.er1 11176 ac_status=$? 11177 grep -v '^ *+' conftest.er1 >conftest.err 11178 rm -f conftest.er1 11179 cat conftest.err >&5 11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11181 (exit $ac_status); } && 11182 { ac_try='test -z "$ac_c_werror_flag" 11183 || test ! -s conftest.err' 11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11185 (eval $ac_try) 2>&5 11186 ac_status=$? 11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11188 (exit $ac_status); }; } && 11189 { ac_try='test -s conftest.$ac_objext' 11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11191 (eval $ac_try) 2>&5 11192 ac_status=$? 11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11194 (exit $ac_status); }; }; then 11195 am_cv_proto_iconv_arg1="" 11196else 11197 echo "$as_me: failed program was:" >&5 11198sed 's/^/| /' conftest.$ac_ext >&5 11199 11200am_cv_proto_iconv_arg1="const" 11201fi 11202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11203 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 11204fi 11205 11206 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11207 echo "$as_me:$LINENO: result: ${ac_t:- 11208 }$am_cv_proto_iconv" >&5 11209echo "${ECHO_T}${ac_t:- 11210 }$am_cv_proto_iconv" >&6 11211 11212cat >>confdefs.h <<_ACEOF 11213#define ICONV_CONST $am_cv_proto_iconv_arg1 11214_ACEOF 11215 11216 fi 11217 11218 11219 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 11220echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 11221if test "${am_cv_langinfo_codeset+set}" = set; then 11222 echo $ECHO_N "(cached) $ECHO_C" >&6 11223else 11224 cat >conftest.$ac_ext <<_ACEOF 11225/* confdefs.h. */ 11226_ACEOF 11227cat confdefs.h >>conftest.$ac_ext 11228cat >>conftest.$ac_ext <<_ACEOF 11229/* end confdefs.h. */ 11230#include <langinfo.h> 11231int 11232main () 11233{ 11234char* cs = nl_langinfo(CODESET); 11235 ; 11236 return 0; 11237} 11238_ACEOF 11239rm -f conftest.$ac_objext conftest$ac_exeext 11240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11241 (eval $ac_link) 2>conftest.er1 11242 ac_status=$? 11243 grep -v '^ *+' conftest.er1 >conftest.err 11244 rm -f conftest.er1 11245 cat conftest.err >&5 11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11247 (exit $ac_status); } && 11248 { ac_try='test -z "$ac_c_werror_flag" 11249 || test ! -s conftest.err' 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11251 (eval $ac_try) 2>&5 11252 ac_status=$? 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11254 (exit $ac_status); }; } && 11255 { ac_try='test -s conftest$ac_exeext' 11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11257 (eval $ac_try) 2>&5 11258 ac_status=$? 11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11260 (exit $ac_status); }; }; then 11261 am_cv_langinfo_codeset=yes 11262else 11263 echo "$as_me: failed program was:" >&5 11264sed 's/^/| /' conftest.$ac_ext >&5 11265 11266am_cv_langinfo_codeset=no 11267fi 11268rm -f conftest.err conftest.$ac_objext \ 11269 conftest$ac_exeext conftest.$ac_ext 11270 11271fi 11272echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 11273echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 11274 if test $am_cv_langinfo_codeset = yes; then 11275 11276cat >>confdefs.h <<\_ACEOF 11277#define HAVE_LANGINFO_CODESET 1 11278_ACEOF 11279 11280 fi 11281 11282 if test $ac_cv_header_locale_h = yes; then 11283 if test $ac_cv_header_locale_h = yes; then 11284 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 11285echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 11286if test "${am_cv_val_LC_MESSAGES+set}" = set; then 11287 echo $ECHO_N "(cached) $ECHO_C" >&6 11288else 11289 cat >conftest.$ac_ext <<_ACEOF 11290/* confdefs.h. */ 11291_ACEOF 11292cat confdefs.h >>conftest.$ac_ext 11293cat >>conftest.$ac_ext <<_ACEOF 11294/* end confdefs.h. */ 11295#include <locale.h> 11296int 11297main () 11298{ 11299return LC_MESSAGES 11300 ; 11301 return 0; 11302} 11303_ACEOF 11304rm -f conftest.$ac_objext conftest$ac_exeext 11305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11306 (eval $ac_link) 2>conftest.er1 11307 ac_status=$? 11308 grep -v '^ *+' conftest.er1 >conftest.err 11309 rm -f conftest.er1 11310 cat conftest.err >&5 11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11312 (exit $ac_status); } && 11313 { ac_try='test -z "$ac_c_werror_flag" 11314 || test ! -s conftest.err' 11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11316 (eval $ac_try) 2>&5 11317 ac_status=$? 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 (exit $ac_status); }; } && 11320 { ac_try='test -s conftest$ac_exeext' 11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11322 (eval $ac_try) 2>&5 11323 ac_status=$? 11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11325 (exit $ac_status); }; }; then 11326 am_cv_val_LC_MESSAGES=yes 11327else 11328 echo "$as_me: failed program was:" >&5 11329sed 's/^/| /' conftest.$ac_ext >&5 11330 11331am_cv_val_LC_MESSAGES=no 11332fi 11333rm -f conftest.err conftest.$ac_objext \ 11334 conftest$ac_exeext conftest.$ac_ext 11335fi 11336echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 11337echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 11338 if test $am_cv_val_LC_MESSAGES = yes; then 11339 11340cat >>confdefs.h <<\_ACEOF 11341#define HAVE_LC_MESSAGES 1 11342_ACEOF 11343 11344 fi 11345 fi 11346 fi 11347 11348 for ac_prog in bison 11349do 11350 # Extract the first word of "$ac_prog", so it can be a program name with args. 11351set dummy $ac_prog; ac_word=$2 11352echo "$as_me:$LINENO: checking for $ac_word" >&5 11353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11354if test "${ac_cv_prog_INTLBISON+set}" = set; then 11355 echo $ECHO_N "(cached) $ECHO_C" >&6 11356else 11357 if test -n "$INTLBISON"; then 11358 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 11359else 11360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11361for as_dir in $PATH 11362do 11363 IFS=$as_save_IFS 11364 test -z "$as_dir" && as_dir=. 11365 for ac_exec_ext in '' $ac_executable_extensions; do 11366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11367 ac_cv_prog_INTLBISON="$ac_prog" 11368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11369 break 2 11370 fi 11371done 11372done 11373 11374fi 11375fi 11376INTLBISON=$ac_cv_prog_INTLBISON 11377if test -n "$INTLBISON"; then 11378 echo "$as_me:$LINENO: result: $INTLBISON" >&5 11379echo "${ECHO_T}$INTLBISON" >&6 11380else 11381 echo "$as_me:$LINENO: result: no" >&5 11382echo "${ECHO_T}no" >&6 11383fi 11384 11385 test -n "$INTLBISON" && break 11386done 11387 11388 if test -z "$INTLBISON"; then 11389 ac_verc_fail=yes 11390 else 11391 echo "$as_me:$LINENO: checking version of bison" >&5 11392echo $ECHO_N "checking version of bison... $ECHO_C" >&6 11393 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 11394 case $ac_prog_version in 11395 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 11396 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 11397 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 11398 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 11399 esac 11400 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 11401echo "${ECHO_T}$ac_prog_version" >&6 11402 fi 11403 if test $ac_verc_fail = yes; then 11404 INTLBISON=: 11405 fi 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 11422echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 11423 # Check whether --enable-nls or --disable-nls was given. 11424if test "${enable_nls+set}" = set; then 11425 enableval="$enable_nls" 11426 USE_NLS=$enableval 11427else 11428 USE_NLS=yes 11429fi; 11430 echo "$as_me:$LINENO: result: $USE_NLS" >&5 11431echo "${ECHO_T}$USE_NLS" >&6 11432 11433 11434 11435 BUILD_INCLUDED_LIBINTL=no 11436 USE_INCLUDED_LIBINTL=no 11437 11438 LIBINTL= 11439 LTLIBINTL= 11440 POSUB= 11441 11442 if test "$USE_NLS" = "yes"; then 11443 gt_use_preinstalled_gnugettext=no 11444 11445 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 11446echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 11447 11448# Check whether --with-included-gettext or --without-included-gettext was given. 11449if test "${with_included_gettext+set}" = set; then 11450 withval="$with_included_gettext" 11451 nls_cv_force_use_gnu_gettext=$withval 11452else 11453 nls_cv_force_use_gnu_gettext=no 11454fi; 11455 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 11456echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 11457 11458 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 11459 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 11460 11461 11462 11463 11464 11465 11466 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 11467echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 11468if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 11469 echo $ECHO_N "(cached) $ECHO_C" >&6 11470else 11471 cat >conftest.$ac_ext <<_ACEOF 11472/* confdefs.h. */ 11473_ACEOF 11474cat confdefs.h >>conftest.$ac_ext 11475cat >>conftest.$ac_ext <<_ACEOF 11476/* end confdefs.h. */ 11477#include <libintl.h> 11478extern int _nl_msg_cat_cntr; 11479extern int *_nl_domain_bindings; 11480int 11481main () 11482{ 11483bindtextdomain ("", ""); 11484return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489rm -f conftest.$ac_objext conftest$ac_exeext 11490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11491 (eval $ac_link) 2>conftest.er1 11492 ac_status=$? 11493 grep -v '^ *+' conftest.er1 >conftest.err 11494 rm -f conftest.er1 11495 cat conftest.err >&5 11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11497 (exit $ac_status); } && 11498 { ac_try='test -z "$ac_c_werror_flag" 11499 || test ! -s conftest.err' 11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11501 (eval $ac_try) 2>&5 11502 ac_status=$? 11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11504 (exit $ac_status); }; } && 11505 { ac_try='test -s conftest$ac_exeext' 11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11507 (eval $ac_try) 2>&5 11508 ac_status=$? 11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11510 (exit $ac_status); }; }; then 11511 gt_cv_func_gnugettext1_libc=yes 11512else 11513 echo "$as_me: failed program was:" >&5 11514sed 's/^/| /' conftest.$ac_ext >&5 11515 11516gt_cv_func_gnugettext1_libc=no 11517fi 11518rm -f conftest.err conftest.$ac_objext \ 11519 conftest$ac_exeext conftest.$ac_ext 11520fi 11521echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 11522echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 11523 11524 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 11525 11526 11527 11528 use_additional=yes 11529 11530 acl_save_prefix="$prefix" 11531 prefix="$acl_final_prefix" 11532 acl_save_exec_prefix="$exec_prefix" 11533 exec_prefix="$acl_final_exec_prefix" 11534 11535 eval additional_includedir=\"$includedir\" 11536 eval additional_libdir=\"$libdir\" 11537 11538 exec_prefix="$acl_save_exec_prefix" 11539 prefix="$acl_save_prefix" 11540 11541 11542# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 11543if test "${with_libintl_prefix+set}" = set; then 11544 withval="$with_libintl_prefix" 11545 11546 if test "X$withval" = "Xno"; then 11547 use_additional=no 11548 else 11549 if test "X$withval" = "X"; then 11550 11551 acl_save_prefix="$prefix" 11552 prefix="$acl_final_prefix" 11553 acl_save_exec_prefix="$exec_prefix" 11554 exec_prefix="$acl_final_exec_prefix" 11555 11556 eval additional_includedir=\"$includedir\" 11557 eval additional_libdir=\"$libdir\" 11558 11559 exec_prefix="$acl_save_exec_prefix" 11560 prefix="$acl_save_prefix" 11561 11562 else 11563 additional_includedir="$withval/include" 11564 additional_libdir="$withval/lib" 11565 fi 11566 fi 11567 11568fi; 11569 LIBINTL= 11570 LTLIBINTL= 11571 INCINTL= 11572 rpathdirs= 11573 ltrpathdirs= 11574 names_already_handled= 11575 names_next_round='intl ' 11576 while test -n "$names_next_round"; do 11577 names_this_round="$names_next_round" 11578 names_next_round= 11579 for name in $names_this_round; do 11580 already_handled= 11581 for n in $names_already_handled; do 11582 if test "$n" = "$name"; then 11583 already_handled=yes 11584 break 11585 fi 11586 done 11587 if test -z "$already_handled"; then 11588 names_already_handled="$names_already_handled $name" 11589 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11590 eval value=\"\$HAVE_LIB$uppername\" 11591 if test -n "$value"; then 11592 if test "$value" = yes; then 11593 eval value=\"\$LIB$uppername\" 11594 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 11595 eval value=\"\$LTLIB$uppername\" 11596 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 11597 else 11598 : 11599 fi 11600 else 11601 found_dir= 11602 found_la= 11603 found_so= 11604 found_a= 11605 if test $use_additional = yes; then 11606 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 11607 found_dir="$additional_libdir" 11608 found_so="$additional_libdir/lib$name.$shlibext" 11609 if test -f "$additional_libdir/lib$name.la"; then 11610 found_la="$additional_libdir/lib$name.la" 11611 fi 11612 else 11613 if test -f "$additional_libdir/lib$name.$libext"; then 11614 found_dir="$additional_libdir" 11615 found_a="$additional_libdir/lib$name.$libext" 11616 if test -f "$additional_libdir/lib$name.la"; then 11617 found_la="$additional_libdir/lib$name.la" 11618 fi 11619 fi 11620 fi 11621 fi 11622 if test "X$found_dir" = "X"; then 11623 for x in $LDFLAGS $LTLIBINTL; do 11624 11625 acl_save_prefix="$prefix" 11626 prefix="$acl_final_prefix" 11627 acl_save_exec_prefix="$exec_prefix" 11628 exec_prefix="$acl_final_exec_prefix" 11629 eval x=\"$x\" 11630 exec_prefix="$acl_save_exec_prefix" 11631 prefix="$acl_save_prefix" 11632 11633 case "$x" in 11634 -L*) 11635 dir=`echo "X$x" | sed -e 's/^X-L//'` 11636 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 11637 found_dir="$dir" 11638 found_so="$dir/lib$name.$shlibext" 11639 if test -f "$dir/lib$name.la"; then 11640 found_la="$dir/lib$name.la" 11641 fi 11642 else 11643 if test -f "$dir/lib$name.$libext"; then 11644 found_dir="$dir" 11645 found_a="$dir/lib$name.$libext" 11646 if test -f "$dir/lib$name.la"; then 11647 found_la="$dir/lib$name.la" 11648 fi 11649 fi 11650 fi 11651 ;; 11652 esac 11653 if test "X$found_dir" != "X"; then 11654 break 11655 fi 11656 done 11657 fi 11658 if test "X$found_dir" != "X"; then 11659 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 11660 if test "X$found_so" != "X"; then 11661 if test "X$found_dir" = "X/usr/lib"; then 11662 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11663 else 11664 haveit= 11665 for x in $ltrpathdirs; do 11666 if test "X$x" = "X$found_dir"; then 11667 haveit=yes 11668 break 11669 fi 11670 done 11671 if test -z "$haveit"; then 11672 ltrpathdirs="$ltrpathdirs $found_dir" 11673 fi 11674 if test "$hardcode_direct" = yes; then 11675 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11676 else 11677 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11678 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11679 haveit= 11680 for x in $rpathdirs; do 11681 if test "X$x" = "X$found_dir"; then 11682 haveit=yes 11683 break 11684 fi 11685 done 11686 if test -z "$haveit"; then 11687 rpathdirs="$rpathdirs $found_dir" 11688 fi 11689 else 11690 haveit= 11691 for x in $LDFLAGS $LIBINTL; do 11692 11693 acl_save_prefix="$prefix" 11694 prefix="$acl_final_prefix" 11695 acl_save_exec_prefix="$exec_prefix" 11696 exec_prefix="$acl_final_exec_prefix" 11697 eval x=\"$x\" 11698 exec_prefix="$acl_save_exec_prefix" 11699 prefix="$acl_save_prefix" 11700 11701 if test "X$x" = "X-L$found_dir"; then 11702 haveit=yes 11703 break 11704 fi 11705 done 11706 if test -z "$haveit"; then 11707 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 11708 fi 11709 if test "$hardcode_minus_L" != no; then 11710 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11711 else 11712 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11713 fi 11714 fi 11715 fi 11716 fi 11717 else 11718 if test "X$found_a" != "X"; then 11719 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 11720 else 11721 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 11722 fi 11723 fi 11724 additional_includedir= 11725 case "$found_dir" in 11726 */lib | */lib/) 11727 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11728 additional_includedir="$basedir/include" 11729 ;; 11730 esac 11731 if test "X$additional_includedir" != "X"; then 11732 if test "X$additional_includedir" != "X/usr/include"; then 11733 haveit= 11734 if test "X$additional_includedir" = "X/usr/local/include"; then 11735 if test -n "$GCC"; then 11736 case $host_os in 11737 linux*) haveit=yes;; 11738 esac 11739 fi 11740 fi 11741 if test -z "$haveit"; then 11742 for x in $CPPFLAGS $INCINTL; do 11743 11744 acl_save_prefix="$prefix" 11745 prefix="$acl_final_prefix" 11746 acl_save_exec_prefix="$exec_prefix" 11747 exec_prefix="$acl_final_exec_prefix" 11748 eval x=\"$x\" 11749 exec_prefix="$acl_save_exec_prefix" 11750 prefix="$acl_save_prefix" 11751 11752 if test "X$x" = "X-I$additional_includedir"; then 11753 haveit=yes 11754 break 11755 fi 11756 done 11757 if test -z "$haveit"; then 11758 if test -d "$additional_includedir"; then 11759 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 11760 fi 11761 fi 11762 fi 11763 fi 11764 fi 11765 if test -n "$found_la"; then 11766 save_libdir="$libdir" 11767 case "$found_la" in 11768 */* | *\\*) . "$found_la" ;; 11769 *) . "./$found_la" ;; 11770 esac 11771 libdir="$save_libdir" 11772 for dep in $dependency_libs; do 11773 case "$dep" in 11774 -L*) 11775 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11776 if test "X$additional_libdir" != "X/usr/lib"; then 11777 haveit= 11778 if test "X$additional_libdir" = "X/usr/local/lib"; then 11779 if test -n "$GCC"; then 11780 case $host_os in 11781 linux*) haveit=yes;; 11782 esac 11783 fi 11784 fi 11785 if test -z "$haveit"; then 11786 haveit= 11787 for x in $LDFLAGS $LIBINTL; do 11788 11789 acl_save_prefix="$prefix" 11790 prefix="$acl_final_prefix" 11791 acl_save_exec_prefix="$exec_prefix" 11792 exec_prefix="$acl_final_exec_prefix" 11793 eval x=\"$x\" 11794 exec_prefix="$acl_save_exec_prefix" 11795 prefix="$acl_save_prefix" 11796 11797 if test "X$x" = "X-L$additional_libdir"; then 11798 haveit=yes 11799 break 11800 fi 11801 done 11802 if test -z "$haveit"; then 11803 if test -d "$additional_libdir"; then 11804 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 11805 fi 11806 fi 11807 haveit= 11808 for x in $LDFLAGS $LTLIBINTL; do 11809 11810 acl_save_prefix="$prefix" 11811 prefix="$acl_final_prefix" 11812 acl_save_exec_prefix="$exec_prefix" 11813 exec_prefix="$acl_final_exec_prefix" 11814 eval x=\"$x\" 11815 exec_prefix="$acl_save_exec_prefix" 11816 prefix="$acl_save_prefix" 11817 11818 if test "X$x" = "X-L$additional_libdir"; then 11819 haveit=yes 11820 break 11821 fi 11822 done 11823 if test -z "$haveit"; then 11824 if test -d "$additional_libdir"; then 11825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 11826 fi 11827 fi 11828 fi 11829 fi 11830 ;; 11831 -R*) 11832 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11833 haveit= 11834 for x in $rpathdirs; do 11835 if test "X$x" = "X$dir"; then 11836 haveit=yes 11837 break 11838 fi 11839 done 11840 if test -z "$haveit"; then 11841 rpathdirs="$rpathdirs $dir" 11842 fi 11843 haveit= 11844 for x in $ltrpathdirs; do 11845 if test "X$x" = "X$dir"; then 11846 haveit=yes 11847 break 11848 fi 11849 done 11850 if test -z "$haveit"; then 11851 ltrpathdirs="$ltrpathdirs $dir" 11852 fi 11853 ;; 11854 -l*) 11855 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11856 ;; 11857 *.la) 11858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11859 ;; 11860 *) 11861 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 11862 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 11863 ;; 11864 esac 11865 done 11866 fi 11867 else 11868 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11869 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 11870 fi 11871 fi 11872 fi 11873 done 11874 done 11875 if test "X$rpathdirs" != "X"; then 11876 if test -n "$hardcode_libdir_separator"; then 11877 alldirs= 11878 for found_dir in $rpathdirs; do 11879 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11880 done 11881 acl_save_libdir="$libdir" 11882 libdir="$alldirs" 11883 eval flag=\"$hardcode_libdir_flag_spec\" 11884 libdir="$acl_save_libdir" 11885 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11886 else 11887 for found_dir in $rpathdirs; do 11888 acl_save_libdir="$libdir" 11889 libdir="$found_dir" 11890 eval flag=\"$hardcode_libdir_flag_spec\" 11891 libdir="$acl_save_libdir" 11892 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11893 done 11894 fi 11895 fi 11896 if test "X$ltrpathdirs" != "X"; then 11897 for found_dir in $ltrpathdirs; do 11898 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 11899 done 11900 fi 11901 11902 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 11903echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 11904if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 11905 echo $ECHO_N "(cached) $ECHO_C" >&6 11906else 11907 gt_save_CPPFLAGS="$CPPFLAGS" 11908 CPPFLAGS="$CPPFLAGS $INCINTL" 11909 gt_save_LIBS="$LIBS" 11910 LIBS="$LIBS $LIBINTL" 11911 cat >conftest.$ac_ext <<_ACEOF 11912/* confdefs.h. */ 11913_ACEOF 11914cat confdefs.h >>conftest.$ac_ext 11915cat >>conftest.$ac_ext <<_ACEOF 11916/* end confdefs.h. */ 11917#include <libintl.h> 11918extern int _nl_msg_cat_cntr; 11919extern 11920#ifdef __cplusplus 11921"C" 11922#endif 11923const char *_nl_expand_alias (); 11924int 11925main () 11926{ 11927bindtextdomain ("", ""); 11928return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 11929 ; 11930 return 0; 11931} 11932_ACEOF 11933rm -f conftest.$ac_objext conftest$ac_exeext 11934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11935 (eval $ac_link) 2>conftest.er1 11936 ac_status=$? 11937 grep -v '^ *+' conftest.er1 >conftest.err 11938 rm -f conftest.er1 11939 cat conftest.err >&5 11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 (exit $ac_status); } && 11942 { ac_try='test -z "$ac_c_werror_flag" 11943 || test ! -s conftest.err' 11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11945 (eval $ac_try) 2>&5 11946 ac_status=$? 11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11948 (exit $ac_status); }; } && 11949 { ac_try='test -s conftest$ac_exeext' 11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11951 (eval $ac_try) 2>&5 11952 ac_status=$? 11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11954 (exit $ac_status); }; }; then 11955 gt_cv_func_gnugettext1_libintl=yes 11956else 11957 echo "$as_me: failed program was:" >&5 11958sed 's/^/| /' conftest.$ac_ext >&5 11959 11960gt_cv_func_gnugettext1_libintl=no 11961fi 11962rm -f conftest.err conftest.$ac_objext \ 11963 conftest$ac_exeext conftest.$ac_ext 11964 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 11965 LIBS="$LIBS $LIBICONV" 11966 cat >conftest.$ac_ext <<_ACEOF 11967/* confdefs.h. */ 11968_ACEOF 11969cat confdefs.h >>conftest.$ac_ext 11970cat >>conftest.$ac_ext <<_ACEOF 11971/* end confdefs.h. */ 11972#include <libintl.h> 11973extern int _nl_msg_cat_cntr; 11974extern 11975#ifdef __cplusplus 11976"C" 11977#endif 11978const char *_nl_expand_alias (); 11979int 11980main () 11981{ 11982bindtextdomain ("", ""); 11983return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 11984 ; 11985 return 0; 11986} 11987_ACEOF 11988rm -f conftest.$ac_objext conftest$ac_exeext 11989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11990 (eval $ac_link) 2>conftest.er1 11991 ac_status=$? 11992 grep -v '^ *+' conftest.er1 >conftest.err 11993 rm -f conftest.er1 11994 cat conftest.err >&5 11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 (exit $ac_status); } && 11997 { ac_try='test -z "$ac_c_werror_flag" 11998 || test ! -s conftest.err' 11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12000 (eval $ac_try) 2>&5 12001 ac_status=$? 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); }; } && 12004 { ac_try='test -s conftest$ac_exeext' 12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12006 (eval $ac_try) 2>&5 12007 ac_status=$? 12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12009 (exit $ac_status); }; }; then 12010 LIBINTL="$LIBINTL $LIBICONV" 12011 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 12012 gt_cv_func_gnugettext1_libintl=yes 12013 12014else 12015 echo "$as_me: failed program was:" >&5 12016sed 's/^/| /' conftest.$ac_ext >&5 12017 12018fi 12019rm -f conftest.err conftest.$ac_objext \ 12020 conftest$ac_exeext conftest.$ac_ext 12021 fi 12022 CPPFLAGS="$gt_save_CPPFLAGS" 12023 LIBS="$gt_save_LIBS" 12024fi 12025echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 12026echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 12027 fi 12028 12029 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 12030 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 12031 && test "$PACKAGE" != gettext; }; then 12032 gt_use_preinstalled_gnugettext=yes 12033 else 12034 LIBINTL= 12035 LTLIBINTL= 12036 INCINTL= 12037 fi 12038 12039 12040 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 12041 nls_cv_use_gnu_gettext=yes 12042 fi 12043 fi 12044 12045 if test "$nls_cv_use_gnu_gettext" = "yes"; then 12046 INTLOBJS="\$(GETTOBJS)" 12047 BUILD_INCLUDED_LIBINTL=yes 12048 USE_INCLUDED_LIBINTL=yes 12049 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 12050 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 12051 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 12052 fi 12053 12054 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 12055 || test "$nls_cv_use_gnu_gettext" = "yes"; then 12056 CATOBJEXT=.gmo 12057 fi 12058 12059 12060 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 12061 || test "$nls_cv_use_gnu_gettext" = "yes"; then 12062 12063cat >>confdefs.h <<\_ACEOF 12064#define ENABLE_NLS 1 12065_ACEOF 12066 12067 else 12068 USE_NLS=no 12069 fi 12070 fi 12071 12072 if test "$USE_NLS" = "yes"; then 12073 12074 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 12075 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 12076 echo "$as_me:$LINENO: checking how to link with libintl" >&5 12077echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 12078 echo "$as_me:$LINENO: result: $LIBINTL" >&5 12079echo "${ECHO_T}$LIBINTL" >&6 12080 12081 for element in $INCINTL; do 12082 haveit= 12083 for x in $CPPFLAGS; do 12084 12085 acl_save_prefix="$prefix" 12086 prefix="$acl_final_prefix" 12087 acl_save_exec_prefix="$exec_prefix" 12088 exec_prefix="$acl_final_exec_prefix" 12089 eval x=\"$x\" 12090 exec_prefix="$acl_save_exec_prefix" 12091 prefix="$acl_save_prefix" 12092 12093 if test "X$x" = "X$element"; then 12094 haveit=yes 12095 break 12096 fi 12097 done 12098 if test -z "$haveit"; then 12099 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12100 fi 12101 done 12102 12103 fi 12104 12105 12106cat >>confdefs.h <<\_ACEOF 12107#define HAVE_GETTEXT 1 12108_ACEOF 12109 12110 12111cat >>confdefs.h <<\_ACEOF 12112#define HAVE_DCGETTEXT 1 12113_ACEOF 12114 12115 fi 12116 12117 POSUB=po 12118 fi 12119 12120 12121 if test "$PACKAGE" = gettext; then 12122 BUILD_INCLUDED_LIBINTL=yes 12123 fi 12124 12125 12126 12127 12128 12129 12130 nls_cv_header_intl= 12131 nls_cv_header_libgt= 12132 12133 DATADIRNAME=share 12134 12135 12136 INSTOBJEXT=.mo 12137 12138 12139 GENCAT=gencat 12140 12141 12142 INTL_LIBTOOL_SUFFIX_PREFIX= 12143 12144 12145 12146 INTLLIBS="$LIBINTL" 12147 12148 12149 12150 12151 12152 12153 12154 12155## Checks for header files 12156echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12157echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 12158if test "${ac_cv_header_stdc+set}" = set; then 12159 echo $ECHO_N "(cached) $ECHO_C" >&6 12160else 12161 cat >conftest.$ac_ext <<_ACEOF 12162/* confdefs.h. */ 12163_ACEOF 12164cat confdefs.h >>conftest.$ac_ext 12165cat >>conftest.$ac_ext <<_ACEOF 12166/* end confdefs.h. */ 12167#include <stdlib.h> 12168#include <stdarg.h> 12169#include <string.h> 12170#include <float.h> 12171 12172int 12173main () 12174{ 12175 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180rm -f conftest.$ac_objext 12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12182 (eval $ac_compile) 2>conftest.er1 12183 ac_status=$? 12184 grep -v '^ *+' conftest.er1 >conftest.err 12185 rm -f conftest.er1 12186 cat conftest.err >&5 12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12188 (exit $ac_status); } && 12189 { ac_try='test -z "$ac_c_werror_flag" 12190 || test ! -s conftest.err' 12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12192 (eval $ac_try) 2>&5 12193 ac_status=$? 12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12195 (exit $ac_status); }; } && 12196 { ac_try='test -s conftest.$ac_objext' 12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12198 (eval $ac_try) 2>&5 12199 ac_status=$? 12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12201 (exit $ac_status); }; }; then 12202 ac_cv_header_stdc=yes 12203else 12204 echo "$as_me: failed program was:" >&5 12205sed 's/^/| /' conftest.$ac_ext >&5 12206 12207ac_cv_header_stdc=no 12208fi 12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12210 12211if test $ac_cv_header_stdc = yes; then 12212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12213 cat >conftest.$ac_ext <<_ACEOF 12214/* confdefs.h. */ 12215_ACEOF 12216cat confdefs.h >>conftest.$ac_ext 12217cat >>conftest.$ac_ext <<_ACEOF 12218/* end confdefs.h. */ 12219#include <string.h> 12220 12221_ACEOF 12222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12223 $EGREP "memchr" >/dev/null 2>&1; then 12224 : 12225else 12226 ac_cv_header_stdc=no 12227fi 12228rm -f conftest* 12229 12230fi 12231 12232if test $ac_cv_header_stdc = yes; then 12233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12234 cat >conftest.$ac_ext <<_ACEOF 12235/* confdefs.h. */ 12236_ACEOF 12237cat confdefs.h >>conftest.$ac_ext 12238cat >>conftest.$ac_ext <<_ACEOF 12239/* end confdefs.h. */ 12240#include <stdlib.h> 12241 12242_ACEOF 12243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12244 $EGREP "free" >/dev/null 2>&1; then 12245 : 12246else 12247 ac_cv_header_stdc=no 12248fi 12249rm -f conftest* 12250 12251fi 12252 12253if test $ac_cv_header_stdc = yes; then 12254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12255 if test "$cross_compiling" = yes; then 12256 : 12257else 12258 cat >conftest.$ac_ext <<_ACEOF 12259/* confdefs.h. */ 12260_ACEOF 12261cat confdefs.h >>conftest.$ac_ext 12262cat >>conftest.$ac_ext <<_ACEOF 12263/* end confdefs.h. */ 12264#include <ctype.h> 12265#if ((' ' & 0x0FF) == 0x020) 12266# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12267# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12268#else 12269# define ISLOWER(c) \ 12270 (('a' <= (c) && (c) <= 'i') \ 12271 || ('j' <= (c) && (c) <= 'r') \ 12272 || ('s' <= (c) && (c) <= 'z')) 12273# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12274#endif 12275 12276#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12277int 12278main () 12279{ 12280 int i; 12281 for (i = 0; i < 256; i++) 12282 if (XOR (islower (i), ISLOWER (i)) 12283 || toupper (i) != TOUPPER (i)) 12284 exit(2); 12285 exit (0); 12286} 12287_ACEOF 12288rm -f conftest$ac_exeext 12289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12290 (eval $ac_link) 2>&5 12291 ac_status=$? 12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12295 (eval $ac_try) 2>&5 12296 ac_status=$? 12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12298 (exit $ac_status); }; }; then 12299 : 12300else 12301 echo "$as_me: program exited with status $ac_status" >&5 12302echo "$as_me: failed program was:" >&5 12303sed 's/^/| /' conftest.$ac_ext >&5 12304 12305( exit $ac_status ) 12306ac_cv_header_stdc=no 12307fi 12308rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12309fi 12310fi 12311fi 12312echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12313echo "${ECHO_T}$ac_cv_header_stdc" >&6 12314if test $ac_cv_header_stdc = yes; then 12315 12316cat >>confdefs.h <<\_ACEOF 12317#define STDC_HEADERS 1 12318_ACEOF 12319 12320fi 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331for ac_header in fcntl.h getopt.h libintl.h netdb.h pwd.h signal.h stdarg.h termios.h time.h 12332do 12333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12334if eval "test \"\${$as_ac_Header+set}\" = set"; then 12335 echo "$as_me:$LINENO: checking for $ac_header" >&5 12336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12337if eval "test \"\${$as_ac_Header+set}\" = set"; then 12338 echo $ECHO_N "(cached) $ECHO_C" >&6 12339fi 12340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12342else 12343 # Is the header compilable? 12344echo "$as_me:$LINENO: checking $ac_header usability" >&5 12345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12346cat >conftest.$ac_ext <<_ACEOF 12347/* confdefs.h. */ 12348_ACEOF 12349cat confdefs.h >>conftest.$ac_ext 12350cat >>conftest.$ac_ext <<_ACEOF 12351/* end confdefs.h. */ 12352$ac_includes_default 12353#include <$ac_header> 12354_ACEOF 12355rm -f conftest.$ac_objext 12356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12357 (eval $ac_compile) 2>conftest.er1 12358 ac_status=$? 12359 grep -v '^ *+' conftest.er1 >conftest.err 12360 rm -f conftest.er1 12361 cat conftest.err >&5 12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12363 (exit $ac_status); } && 12364 { ac_try='test -z "$ac_c_werror_flag" 12365 || test ! -s conftest.err' 12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12367 (eval $ac_try) 2>&5 12368 ac_status=$? 12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12370 (exit $ac_status); }; } && 12371 { ac_try='test -s conftest.$ac_objext' 12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12373 (eval $ac_try) 2>&5 12374 ac_status=$? 12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12376 (exit $ac_status); }; }; then 12377 ac_header_compiler=yes 12378else 12379 echo "$as_me: failed program was:" >&5 12380sed 's/^/| /' conftest.$ac_ext >&5 12381 12382ac_header_compiler=no 12383fi 12384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12386echo "${ECHO_T}$ac_header_compiler" >&6 12387 12388# Is the header present? 12389echo "$as_me:$LINENO: checking $ac_header presence" >&5 12390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12391cat >conftest.$ac_ext <<_ACEOF 12392/* confdefs.h. */ 12393_ACEOF 12394cat confdefs.h >>conftest.$ac_ext 12395cat >>conftest.$ac_ext <<_ACEOF 12396/* end confdefs.h. */ 12397#include <$ac_header> 12398_ACEOF 12399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } >/dev/null; then 12407 if test -s conftest.err; then 12408 ac_cpp_err=$ac_c_preproc_warn_flag 12409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12410 else 12411 ac_cpp_err= 12412 fi 12413else 12414 ac_cpp_err=yes 12415fi 12416if test -z "$ac_cpp_err"; then 12417 ac_header_preproc=yes 12418else 12419 echo "$as_me: failed program was:" >&5 12420sed 's/^/| /' conftest.$ac_ext >&5 12421 12422 ac_header_preproc=no 12423fi 12424rm -f conftest.err conftest.$ac_ext 12425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12426echo "${ECHO_T}$ac_header_preproc" >&6 12427 12428# So? What about this header? 12429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12430 yes:no: ) 12431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12435 ac_header_preproc=yes 12436 ;; 12437 no:yes:* ) 12438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12450 ( 12451 cat <<\_ASBOX 12452## ---------------------------- ## 12453## Report this to bboy@bboy.net ## 12454## ---------------------------- ## 12455_ASBOX 12456 ) | 12457 sed "s/^/$as_me: WARNING: /" >&2 12458 ;; 12459esac 12460echo "$as_me:$LINENO: checking for $ac_header" >&5 12461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12462if eval "test \"\${$as_ac_Header+set}\" = set"; then 12463 echo $ECHO_N "(cached) $ECHO_C" >&6 12464else 12465 eval "$as_ac_Header=\$ac_header_preproc" 12466fi 12467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12469 12470fi 12471if test `eval echo '${'$as_ac_Header'}'` = yes; then 12472 cat >>confdefs.h <<_ACEOF 12473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12474_ACEOF 12475 12476fi 12477 12478done 12479 12480 12481 12482 12483 12484for ac_header in sys/fcntl.h sys/file.h sys/ioctl.h sys/resource.h 12485do 12486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12487if eval "test \"\${$as_ac_Header+set}\" = set"; then 12488 echo "$as_me:$LINENO: checking for $ac_header" >&5 12489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12490if eval "test \"\${$as_ac_Header+set}\" = set"; then 12491 echo $ECHO_N "(cached) $ECHO_C" >&6 12492fi 12493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12495else 12496 # Is the header compilable? 12497echo "$as_me:$LINENO: checking $ac_header usability" >&5 12498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12499cat >conftest.$ac_ext <<_ACEOF 12500/* confdefs.h. */ 12501_ACEOF 12502cat confdefs.h >>conftest.$ac_ext 12503cat >>conftest.$ac_ext <<_ACEOF 12504/* end confdefs.h. */ 12505$ac_includes_default 12506#include <$ac_header> 12507_ACEOF 12508rm -f conftest.$ac_objext 12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12510 (eval $ac_compile) 2>conftest.er1 12511 ac_status=$? 12512 grep -v '^ *+' conftest.er1 >conftest.err 12513 rm -f conftest.er1 12514 cat conftest.err >&5 12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); } && 12517 { ac_try='test -z "$ac_c_werror_flag" 12518 || test ! -s conftest.err' 12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12520 (eval $ac_try) 2>&5 12521 ac_status=$? 12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12523 (exit $ac_status); }; } && 12524 { ac_try='test -s conftest.$ac_objext' 12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12526 (eval $ac_try) 2>&5 12527 ac_status=$? 12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12529 (exit $ac_status); }; }; then 12530 ac_header_compiler=yes 12531else 12532 echo "$as_me: failed program was:" >&5 12533sed 's/^/| /' conftest.$ac_ext >&5 12534 12535ac_header_compiler=no 12536fi 12537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12539echo "${ECHO_T}$ac_header_compiler" >&6 12540 12541# Is the header present? 12542echo "$as_me:$LINENO: checking $ac_header presence" >&5 12543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12544cat >conftest.$ac_ext <<_ACEOF 12545/* confdefs.h. */ 12546_ACEOF 12547cat confdefs.h >>conftest.$ac_ext 12548cat >>conftest.$ac_ext <<_ACEOF 12549/* end confdefs.h. */ 12550#include <$ac_header> 12551_ACEOF 12552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12554 ac_status=$? 12555 grep -v '^ *+' conftest.er1 >conftest.err 12556 rm -f conftest.er1 12557 cat conftest.err >&5 12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12559 (exit $ac_status); } >/dev/null; then 12560 if test -s conftest.err; then 12561 ac_cpp_err=$ac_c_preproc_warn_flag 12562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12563 else 12564 ac_cpp_err= 12565 fi 12566else 12567 ac_cpp_err=yes 12568fi 12569if test -z "$ac_cpp_err"; then 12570 ac_header_preproc=yes 12571else 12572 echo "$as_me: failed program was:" >&5 12573sed 's/^/| /' conftest.$ac_ext >&5 12574 12575 ac_header_preproc=no 12576fi 12577rm -f conftest.err conftest.$ac_ext 12578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12579echo "${ECHO_T}$ac_header_preproc" >&6 12580 12581# So? What about this header? 12582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12583 yes:no: ) 12584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12588 ac_header_preproc=yes 12589 ;; 12590 no:yes:* ) 12591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12603 ( 12604 cat <<\_ASBOX 12605## ---------------------------- ## 12606## Report this to bboy@bboy.net ## 12607## ---------------------------- ## 12608_ASBOX 12609 ) | 12610 sed "s/^/$as_me: WARNING: /" >&2 12611 ;; 12612esac 12613echo "$as_me:$LINENO: checking for $ac_header" >&5 12614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12615if eval "test \"\${$as_ac_Header+set}\" = set"; then 12616 echo $ECHO_N "(cached) $ECHO_C" >&6 12617else 12618 eval "$as_ac_Header=\$ac_header_preproc" 12619fi 12620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12622 12623fi 12624if test `eval echo '${'$as_ac_Header'}'` = yes; then 12625 cat >>confdefs.h <<_ACEOF 12626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12627_ACEOF 12628 12629fi 12630 12631done 12632 12633 12634 12635 12636 12637for ac_header in sys/socket.h sys/sockio.h sys/time.h sys/wait.h 12638do 12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12640if eval "test \"\${$as_ac_Header+set}\" = set"; then 12641 echo "$as_me:$LINENO: checking for $ac_header" >&5 12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12643if eval "test \"\${$as_ac_Header+set}\" = set"; then 12644 echo $ECHO_N "(cached) $ECHO_C" >&6 12645fi 12646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12648else 12649 # Is the header compilable? 12650echo "$as_me:$LINENO: checking $ac_header usability" >&5 12651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12652cat >conftest.$ac_ext <<_ACEOF 12653/* confdefs.h. */ 12654_ACEOF 12655cat confdefs.h >>conftest.$ac_ext 12656cat >>conftest.$ac_ext <<_ACEOF 12657/* end confdefs.h. */ 12658$ac_includes_default 12659#include <$ac_header> 12660_ACEOF 12661rm -f conftest.$ac_objext 12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12663 (eval $ac_compile) 2>conftest.er1 12664 ac_status=$? 12665 grep -v '^ *+' conftest.er1 >conftest.err 12666 rm -f conftest.er1 12667 cat conftest.err >&5 12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12669 (exit $ac_status); } && 12670 { ac_try='test -z "$ac_c_werror_flag" 12671 || test ! -s conftest.err' 12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12673 (eval $ac_try) 2>&5 12674 ac_status=$? 12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12676 (exit $ac_status); }; } && 12677 { ac_try='test -s conftest.$ac_objext' 12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12679 (eval $ac_try) 2>&5 12680 ac_status=$? 12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12682 (exit $ac_status); }; }; then 12683 ac_header_compiler=yes 12684else 12685 echo "$as_me: failed program was:" >&5 12686sed 's/^/| /' conftest.$ac_ext >&5 12687 12688ac_header_compiler=no 12689fi 12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12692echo "${ECHO_T}$ac_header_compiler" >&6 12693 12694# Is the header present? 12695echo "$as_me:$LINENO: checking $ac_header presence" >&5 12696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12697cat >conftest.$ac_ext <<_ACEOF 12698/* confdefs.h. */ 12699_ACEOF 12700cat confdefs.h >>conftest.$ac_ext 12701cat >>conftest.$ac_ext <<_ACEOF 12702/* end confdefs.h. */ 12703#include <$ac_header> 12704_ACEOF 12705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12707 ac_status=$? 12708 grep -v '^ *+' conftest.er1 >conftest.err 12709 rm -f conftest.er1 12710 cat conftest.err >&5 12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12712 (exit $ac_status); } >/dev/null; then 12713 if test -s conftest.err; then 12714 ac_cpp_err=$ac_c_preproc_warn_flag 12715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12716 else 12717 ac_cpp_err= 12718 fi 12719else 12720 ac_cpp_err=yes 12721fi 12722if test -z "$ac_cpp_err"; then 12723 ac_header_preproc=yes 12724else 12725 echo "$as_me: failed program was:" >&5 12726sed 's/^/| /' conftest.$ac_ext >&5 12727 12728 ac_header_preproc=no 12729fi 12730rm -f conftest.err conftest.$ac_ext 12731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12732echo "${ECHO_T}$ac_header_preproc" >&6 12733 12734# So? What about this header? 12735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12736 yes:no: ) 12737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12741 ac_header_preproc=yes 12742 ;; 12743 no:yes:* ) 12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12756 ( 12757 cat <<\_ASBOX 12758## ---------------------------- ## 12759## Report this to bboy@bboy.net ## 12760## ---------------------------- ## 12761_ASBOX 12762 ) | 12763 sed "s/^/$as_me: WARNING: /" >&2 12764 ;; 12765esac 12766echo "$as_me:$LINENO: checking for $ac_header" >&5 12767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12768if eval "test \"\${$as_ac_Header+set}\" = set"; then 12769 echo $ECHO_N "(cached) $ECHO_C" >&6 12770else 12771 eval "$as_ac_Header=\$ac_header_preproc" 12772fi 12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12775 12776fi 12777if test `eval echo '${'$as_ac_Header'}'` = yes; then 12778 cat >>confdefs.h <<_ACEOF 12779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12780_ACEOF 12781 12782fi 12783 12784done 12785 12786 12787for ac_header in netinet/in.h 12788do 12789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12790if eval "test \"\${$as_ac_Header+set}\" = set"; then 12791 echo "$as_me:$LINENO: checking for $ac_header" >&5 12792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12793if eval "test \"\${$as_ac_Header+set}\" = set"; then 12794 echo $ECHO_N "(cached) $ECHO_C" >&6 12795fi 12796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12798else 12799 # Is the header compilable? 12800echo "$as_me:$LINENO: checking $ac_header usability" >&5 12801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12802cat >conftest.$ac_ext <<_ACEOF 12803/* confdefs.h. */ 12804_ACEOF 12805cat confdefs.h >>conftest.$ac_ext 12806cat >>conftest.$ac_ext <<_ACEOF 12807/* end confdefs.h. */ 12808$ac_includes_default 12809#include <$ac_header> 12810_ACEOF 12811rm -f conftest.$ac_objext 12812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12813 (eval $ac_compile) 2>conftest.er1 12814 ac_status=$? 12815 grep -v '^ *+' conftest.er1 >conftest.err 12816 rm -f conftest.er1 12817 cat conftest.err >&5 12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12819 (exit $ac_status); } && 12820 { ac_try='test -z "$ac_c_werror_flag" 12821 || test ! -s conftest.err' 12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12823 (eval $ac_try) 2>&5 12824 ac_status=$? 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12826 (exit $ac_status); }; } && 12827 { ac_try='test -s conftest.$ac_objext' 12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12829 (eval $ac_try) 2>&5 12830 ac_status=$? 12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12832 (exit $ac_status); }; }; then 12833 ac_header_compiler=yes 12834else 12835 echo "$as_me: failed program was:" >&5 12836sed 's/^/| /' conftest.$ac_ext >&5 12837 12838ac_header_compiler=no 12839fi 12840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12842echo "${ECHO_T}$ac_header_compiler" >&6 12843 12844# Is the header present? 12845echo "$as_me:$LINENO: checking $ac_header presence" >&5 12846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12847cat >conftest.$ac_ext <<_ACEOF 12848/* confdefs.h. */ 12849_ACEOF 12850cat confdefs.h >>conftest.$ac_ext 12851cat >>conftest.$ac_ext <<_ACEOF 12852/* end confdefs.h. */ 12853#include <$ac_header> 12854_ACEOF 12855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12857 ac_status=$? 12858 grep -v '^ *+' conftest.er1 >conftest.err 12859 rm -f conftest.er1 12860 cat conftest.err >&5 12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12862 (exit $ac_status); } >/dev/null; then 12863 if test -s conftest.err; then 12864 ac_cpp_err=$ac_c_preproc_warn_flag 12865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12866 else 12867 ac_cpp_err= 12868 fi 12869else 12870 ac_cpp_err=yes 12871fi 12872if test -z "$ac_cpp_err"; then 12873 ac_header_preproc=yes 12874else 12875 echo "$as_me: failed program was:" >&5 12876sed 's/^/| /' conftest.$ac_ext >&5 12877 12878 ac_header_preproc=no 12879fi 12880rm -f conftest.err conftest.$ac_ext 12881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12882echo "${ECHO_T}$ac_header_preproc" >&6 12883 12884# So? What about this header? 12885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12886 yes:no: ) 12887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12891 ac_header_preproc=yes 12892 ;; 12893 no:yes:* ) 12894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12906 ( 12907 cat <<\_ASBOX 12908## ---------------------------- ## 12909## Report this to bboy@bboy.net ## 12910## ---------------------------- ## 12911_ASBOX 12912 ) | 12913 sed "s/^/$as_me: WARNING: /" >&2 12914 ;; 12915esac 12916echo "$as_me:$LINENO: checking for $ac_header" >&5 12917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12918if eval "test \"\${$as_ac_Header+set}\" = set"; then 12919 echo $ECHO_N "(cached) $ECHO_C" >&6 12920else 12921 eval "$as_ac_Header=\$ac_header_preproc" 12922fi 12923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12925 12926fi 12927if test `eval echo '${'$as_ac_Header'}'` = yes; then 12928 cat >>confdefs.h <<_ACEOF 12929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12930_ACEOF 12931 12932fi 12933 12934done 12935 12936 12937for ac_header in net/if.h 12938do 12939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12940if eval "test \"\${$as_ac_Header+set}\" = set"; then 12941 echo "$as_me:$LINENO: checking for $ac_header" >&5 12942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12943if eval "test \"\${$as_ac_Header+set}\" = set"; then 12944 echo $ECHO_N "(cached) $ECHO_C" >&6 12945fi 12946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12948else 12949 # Is the header compilable? 12950echo "$as_me:$LINENO: checking $ac_header usability" >&5 12951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12952cat >conftest.$ac_ext <<_ACEOF 12953/* confdefs.h. */ 12954_ACEOF 12955cat confdefs.h >>conftest.$ac_ext 12956cat >>conftest.$ac_ext <<_ACEOF 12957/* end confdefs.h. */ 12958$ac_includes_default 12959#include <$ac_header> 12960_ACEOF 12961rm -f conftest.$ac_objext 12962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12963 (eval $ac_compile) 2>conftest.er1 12964 ac_status=$? 12965 grep -v '^ *+' conftest.er1 >conftest.err 12966 rm -f conftest.er1 12967 cat conftest.err >&5 12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12969 (exit $ac_status); } && 12970 { ac_try='test -z "$ac_c_werror_flag" 12971 || test ! -s conftest.err' 12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12973 (eval $ac_try) 2>&5 12974 ac_status=$? 12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12976 (exit $ac_status); }; } && 12977 { ac_try='test -s conftest.$ac_objext' 12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12979 (eval $ac_try) 2>&5 12980 ac_status=$? 12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12982 (exit $ac_status); }; }; then 12983 ac_header_compiler=yes 12984else 12985 echo "$as_me: failed program was:" >&5 12986sed 's/^/| /' conftest.$ac_ext >&5 12987 12988ac_header_compiler=no 12989fi 12990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12992echo "${ECHO_T}$ac_header_compiler" >&6 12993 12994# Is the header present? 12995echo "$as_me:$LINENO: checking $ac_header presence" >&5 12996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12997cat >conftest.$ac_ext <<_ACEOF 12998/* confdefs.h. */ 12999_ACEOF 13000cat confdefs.h >>conftest.$ac_ext 13001cat >>conftest.$ac_ext <<_ACEOF 13002/* end confdefs.h. */ 13003#include <$ac_header> 13004_ACEOF 13005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13007 ac_status=$? 13008 grep -v '^ *+' conftest.er1 >conftest.err 13009 rm -f conftest.er1 13010 cat conftest.err >&5 13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13012 (exit $ac_status); } >/dev/null; then 13013 if test -s conftest.err; then 13014 ac_cpp_err=$ac_c_preproc_warn_flag 13015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13016 else 13017 ac_cpp_err= 13018 fi 13019else 13020 ac_cpp_err=yes 13021fi 13022if test -z "$ac_cpp_err"; then 13023 ac_header_preproc=yes 13024else 13025 echo "$as_me: failed program was:" >&5 13026sed 's/^/| /' conftest.$ac_ext >&5 13027 13028 ac_header_preproc=no 13029fi 13030rm -f conftest.err conftest.$ac_ext 13031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13032echo "${ECHO_T}$ac_header_preproc" >&6 13033 13034# So? What about this header? 13035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13036 yes:no: ) 13037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13041 ac_header_preproc=yes 13042 ;; 13043 no:yes:* ) 13044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13056 ( 13057 cat <<\_ASBOX 13058## ---------------------------- ## 13059## Report this to bboy@bboy.net ## 13060## ---------------------------- ## 13061_ASBOX 13062 ) | 13063 sed "s/^/$as_me: WARNING: /" >&2 13064 ;; 13065esac 13066echo "$as_me:$LINENO: checking for $ac_header" >&5 13067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13068if eval "test \"\${$as_ac_Header+set}\" = set"; then 13069 echo $ECHO_N "(cached) $ECHO_C" >&6 13070else 13071 eval "$as_ac_Header=\$ac_header_preproc" 13072fi 13073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13075 13076fi 13077if test `eval echo '${'$as_ac_Header'}'` = yes; then 13078 cat >>confdefs.h <<_ACEOF 13079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13080_ACEOF 13081 13082fi 13083 13084done 13085 13086 13087for ac_header in arpa/inet.h 13088do 13089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13090if eval "test \"\${$as_ac_Header+set}\" = set"; then 13091 echo "$as_me:$LINENO: checking for $ac_header" >&5 13092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13093if eval "test \"\${$as_ac_Header+set}\" = set"; then 13094 echo $ECHO_N "(cached) $ECHO_C" >&6 13095fi 13096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13098else 13099 # Is the header compilable? 13100echo "$as_me:$LINENO: checking $ac_header usability" >&5 13101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13102cat >conftest.$ac_ext <<_ACEOF 13103/* confdefs.h. */ 13104_ACEOF 13105cat confdefs.h >>conftest.$ac_ext 13106cat >>conftest.$ac_ext <<_ACEOF 13107/* end confdefs.h. */ 13108$ac_includes_default 13109#include <$ac_header> 13110_ACEOF 13111rm -f conftest.$ac_objext 13112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13113 (eval $ac_compile) 2>conftest.er1 13114 ac_status=$? 13115 grep -v '^ *+' conftest.er1 >conftest.err 13116 rm -f conftest.er1 13117 cat conftest.err >&5 13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13119 (exit $ac_status); } && 13120 { ac_try='test -z "$ac_c_werror_flag" 13121 || test ! -s conftest.err' 13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13123 (eval $ac_try) 2>&5 13124 ac_status=$? 13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13126 (exit $ac_status); }; } && 13127 { ac_try='test -s conftest.$ac_objext' 13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13129 (eval $ac_try) 2>&5 13130 ac_status=$? 13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13132 (exit $ac_status); }; }; then 13133 ac_header_compiler=yes 13134else 13135 echo "$as_me: failed program was:" >&5 13136sed 's/^/| /' conftest.$ac_ext >&5 13137 13138ac_header_compiler=no 13139fi 13140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13141echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13142echo "${ECHO_T}$ac_header_compiler" >&6 13143 13144# Is the header present? 13145echo "$as_me:$LINENO: checking $ac_header presence" >&5 13146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13147cat >conftest.$ac_ext <<_ACEOF 13148/* confdefs.h. */ 13149_ACEOF 13150cat confdefs.h >>conftest.$ac_ext 13151cat >>conftest.$ac_ext <<_ACEOF 13152/* end confdefs.h. */ 13153#include <$ac_header> 13154_ACEOF 13155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13157 ac_status=$? 13158 grep -v '^ *+' conftest.er1 >conftest.err 13159 rm -f conftest.er1 13160 cat conftest.err >&5 13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13162 (exit $ac_status); } >/dev/null; then 13163 if test -s conftest.err; then 13164 ac_cpp_err=$ac_c_preproc_warn_flag 13165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13166 else 13167 ac_cpp_err= 13168 fi 13169else 13170 ac_cpp_err=yes 13171fi 13172if test -z "$ac_cpp_err"; then 13173 ac_header_preproc=yes 13174else 13175 echo "$as_me: failed program was:" >&5 13176sed 's/^/| /' conftest.$ac_ext >&5 13177 13178 ac_header_preproc=no 13179fi 13180rm -f conftest.err conftest.$ac_ext 13181echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13182echo "${ECHO_T}$ac_header_preproc" >&6 13183 13184# So? What about this header? 13185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13186 yes:no: ) 13187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13191 ac_header_preproc=yes 13192 ;; 13193 no:yes:* ) 13194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13206 ( 13207 cat <<\_ASBOX 13208## ---------------------------- ## 13209## Report this to bboy@bboy.net ## 13210## ---------------------------- ## 13211_ASBOX 13212 ) | 13213 sed "s/^/$as_me: WARNING: /" >&2 13214 ;; 13215esac 13216echo "$as_me:$LINENO: checking for $ac_header" >&5 13217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13218if eval "test \"\${$as_ac_Header+set}\" = set"; then 13219 echo $ECHO_N "(cached) $ECHO_C" >&6 13220else 13221 eval "$as_ac_Header=\$ac_header_preproc" 13222fi 13223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13225 13226fi 13227if test `eval echo '${'$as_ac_Header'}'` = yes; then 13228 cat >>confdefs.h <<_ACEOF 13229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13230_ACEOF 13231 13232fi 13233 13234done 13235 13236 13237for ac_header in inttypes.h 13238do 13239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13240if eval "test \"\${$as_ac_Header+set}\" = set"; then 13241 echo "$as_me:$LINENO: checking for $ac_header" >&5 13242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13243if eval "test \"\${$as_ac_Header+set}\" = set"; then 13244 echo $ECHO_N "(cached) $ECHO_C" >&6 13245fi 13246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13248else 13249 # Is the header compilable? 13250echo "$as_me:$LINENO: checking $ac_header usability" >&5 13251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13252cat >conftest.$ac_ext <<_ACEOF 13253/* confdefs.h. */ 13254_ACEOF 13255cat confdefs.h >>conftest.$ac_ext 13256cat >>conftest.$ac_ext <<_ACEOF 13257/* end confdefs.h. */ 13258$ac_includes_default 13259#include <$ac_header> 13260_ACEOF 13261rm -f conftest.$ac_objext 13262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13263 (eval $ac_compile) 2>conftest.er1 13264 ac_status=$? 13265 grep -v '^ *+' conftest.er1 >conftest.err 13266 rm -f conftest.er1 13267 cat conftest.err >&5 13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13269 (exit $ac_status); } && 13270 { ac_try='test -z "$ac_c_werror_flag" 13271 || test ! -s conftest.err' 13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13273 (eval $ac_try) 2>&5 13274 ac_status=$? 13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13276 (exit $ac_status); }; } && 13277 { ac_try='test -s conftest.$ac_objext' 13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13279 (eval $ac_try) 2>&5 13280 ac_status=$? 13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13282 (exit $ac_status); }; }; then 13283 ac_header_compiler=yes 13284else 13285 echo "$as_me: failed program was:" >&5 13286sed 's/^/| /' conftest.$ac_ext >&5 13287 13288ac_header_compiler=no 13289fi 13290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13292echo "${ECHO_T}$ac_header_compiler" >&6 13293 13294# Is the header present? 13295echo "$as_me:$LINENO: checking $ac_header presence" >&5 13296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13297cat >conftest.$ac_ext <<_ACEOF 13298/* confdefs.h. */ 13299_ACEOF 13300cat confdefs.h >>conftest.$ac_ext 13301cat >>conftest.$ac_ext <<_ACEOF 13302/* end confdefs.h. */ 13303#include <$ac_header> 13304_ACEOF 13305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13307 ac_status=$? 13308 grep -v '^ *+' conftest.er1 >conftest.err 13309 rm -f conftest.er1 13310 cat conftest.err >&5 13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13312 (exit $ac_status); } >/dev/null; then 13313 if test -s conftest.err; then 13314 ac_cpp_err=$ac_c_preproc_warn_flag 13315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13316 else 13317 ac_cpp_err= 13318 fi 13319else 13320 ac_cpp_err=yes 13321fi 13322if test -z "$ac_cpp_err"; then 13323 ac_header_preproc=yes 13324else 13325 echo "$as_me: failed program was:" >&5 13326sed 's/^/| /' conftest.$ac_ext >&5 13327 13328 ac_header_preproc=no 13329fi 13330rm -f conftest.err conftest.$ac_ext 13331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13332echo "${ECHO_T}$ac_header_preproc" >&6 13333 13334# So? What about this header? 13335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13336 yes:no: ) 13337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13341 ac_header_preproc=yes 13342 ;; 13343 no:yes:* ) 13344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13356 ( 13357 cat <<\_ASBOX 13358## ---------------------------- ## 13359## Report this to bboy@bboy.net ## 13360## ---------------------------- ## 13361_ASBOX 13362 ) | 13363 sed "s/^/$as_me: WARNING: /" >&2 13364 ;; 13365esac 13366echo "$as_me:$LINENO: checking for $ac_header" >&5 13367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13368if eval "test \"\${$as_ac_Header+set}\" = set"; then 13369 echo $ECHO_N "(cached) $ECHO_C" >&6 13370else 13371 eval "$as_ac_Header=\$ac_header_preproc" 13372fi 13373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13375 13376fi 13377if test `eval echo '${'$as_ac_Header'}'` = yes; then 13378 cat >>confdefs.h <<_ACEOF 13379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13380_ACEOF 13381 13382fi 13383 13384done 13385 13386 13387## Typedefs, structures, and compiler characteristics. 13388echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 13389echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 13390if test "${ac_cv_c_const+set}" = set; then 13391 echo $ECHO_N "(cached) $ECHO_C" >&6 13392else 13393 cat >conftest.$ac_ext <<_ACEOF 13394/* confdefs.h. */ 13395_ACEOF 13396cat confdefs.h >>conftest.$ac_ext 13397cat >>conftest.$ac_ext <<_ACEOF 13398/* end confdefs.h. */ 13399 13400int 13401main () 13402{ 13403/* FIXME: Include the comments suggested by Paul. */ 13404#ifndef __cplusplus 13405 /* Ultrix mips cc rejects this. */ 13406 typedef int charset[2]; 13407 const charset x; 13408 /* SunOS 4.1.1 cc rejects this. */ 13409 char const *const *ccp; 13410 char **p; 13411 /* NEC SVR4.0.2 mips cc rejects this. */ 13412 struct point {int x, y;}; 13413 static struct point const zero = {0,0}; 13414 /* AIX XL C 1.02.0.0 rejects this. 13415 It does not let you subtract one const X* pointer from another in 13416 an arm of an if-expression whose if-part is not a constant 13417 expression */ 13418 const char *g = "string"; 13419 ccp = &g + (g ? g-g : 0); 13420 /* HPUX 7.0 cc rejects these. */ 13421 ++ccp; 13422 p = (char**) ccp; 13423 ccp = (char const *const *) p; 13424 { /* SCO 3.2v4 cc rejects this. */ 13425 char *t; 13426 char const *s = 0 ? (char *) 0 : (char const *) 0; 13427 13428 *t++ = 0; 13429 } 13430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13431 int x[] = {25, 17}; 13432 const int *foo = &x[0]; 13433 ++foo; 13434 } 13435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13436 typedef const int *iptr; 13437 iptr p = 0; 13438 ++p; 13439 } 13440 { /* AIX XL C 1.02.0.0 rejects this saying 13441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13442 struct s { int j; const int *ap[3]; }; 13443 struct s *b; b->j = 5; 13444 } 13445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13446 const int foo = 10; 13447 } 13448#endif 13449 13450 ; 13451 return 0; 13452} 13453_ACEOF 13454rm -f conftest.$ac_objext 13455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13456 (eval $ac_compile) 2>conftest.er1 13457 ac_status=$? 13458 grep -v '^ *+' conftest.er1 >conftest.err 13459 rm -f conftest.er1 13460 cat conftest.err >&5 13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13462 (exit $ac_status); } && 13463 { ac_try='test -z "$ac_c_werror_flag" 13464 || test ! -s conftest.err' 13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13466 (eval $ac_try) 2>&5 13467 ac_status=$? 13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13469 (exit $ac_status); }; } && 13470 { ac_try='test -s conftest.$ac_objext' 13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13472 (eval $ac_try) 2>&5 13473 ac_status=$? 13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13475 (exit $ac_status); }; }; then 13476 ac_cv_c_const=yes 13477else 13478 echo "$as_me: failed program was:" >&5 13479sed 's/^/| /' conftest.$ac_ext >&5 13480 13481ac_cv_c_const=no 13482fi 13483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13484fi 13485echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 13486echo "${ECHO_T}$ac_cv_c_const" >&6 13487if test $ac_cv_c_const = no; then 13488 13489cat >>confdefs.h <<\_ACEOF 13490#define const 13491_ACEOF 13492 13493fi 13494 13495echo "$as_me:$LINENO: checking for inline" >&5 13496echo $ECHO_N "checking for inline... $ECHO_C" >&6 13497if test "${ac_cv_c_inline+set}" = set; then 13498 echo $ECHO_N "(cached) $ECHO_C" >&6 13499else 13500 ac_cv_c_inline=no 13501for ac_kw in inline __inline__ __inline; do 13502 cat >conftest.$ac_ext <<_ACEOF 13503/* confdefs.h. */ 13504_ACEOF 13505cat confdefs.h >>conftest.$ac_ext 13506cat >>conftest.$ac_ext <<_ACEOF 13507/* end confdefs.h. */ 13508#ifndef __cplusplus 13509typedef int foo_t; 13510static $ac_kw foo_t static_foo () {return 0; } 13511$ac_kw foo_t foo () {return 0; } 13512#endif 13513 13514_ACEOF 13515rm -f conftest.$ac_objext 13516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13517 (eval $ac_compile) 2>conftest.er1 13518 ac_status=$? 13519 grep -v '^ *+' conftest.er1 >conftest.err 13520 rm -f conftest.er1 13521 cat conftest.err >&5 13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13523 (exit $ac_status); } && 13524 { ac_try='test -z "$ac_c_werror_flag" 13525 || test ! -s conftest.err' 13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13527 (eval $ac_try) 2>&5 13528 ac_status=$? 13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13530 (exit $ac_status); }; } && 13531 { ac_try='test -s conftest.$ac_objext' 13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13533 (eval $ac_try) 2>&5 13534 ac_status=$? 13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13536 (exit $ac_status); }; }; then 13537 ac_cv_c_inline=$ac_kw; break 13538else 13539 echo "$as_me: failed program was:" >&5 13540sed 's/^/| /' conftest.$ac_ext >&5 13541 13542fi 13543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13544done 13545 13546fi 13547echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 13548echo "${ECHO_T}$ac_cv_c_inline" >&6 13549 13550 13551case $ac_cv_c_inline in 13552 inline | yes) ;; 13553 *) 13554 case $ac_cv_c_inline in 13555 no) ac_val=;; 13556 *) ac_val=$ac_cv_c_inline;; 13557 esac 13558 cat >>confdefs.h <<_ACEOF 13559#ifndef __cplusplus 13560#define inline $ac_val 13561#endif 13562_ACEOF 13563 ;; 13564esac 13565 13566echo "$as_me:$LINENO: checking for uchar" >&5 13567echo $ECHO_N "checking for uchar... $ECHO_C" >&6 13568if test "${ac_cv_type_uchar+set}" = set; then 13569 echo $ECHO_N "(cached) $ECHO_C" >&6 13570else 13571 cat >conftest.$ac_ext <<_ACEOF 13572/* confdefs.h. */ 13573_ACEOF 13574cat confdefs.h >>conftest.$ac_ext 13575cat >>conftest.$ac_ext <<_ACEOF 13576/* end confdefs.h. */ 13577$ac_includes_default 13578int 13579main () 13580{ 13581if ((uchar *) 0) 13582 return 0; 13583if (sizeof (uchar)) 13584 return 0; 13585 ; 13586 return 0; 13587} 13588_ACEOF 13589rm -f conftest.$ac_objext 13590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13591 (eval $ac_compile) 2>conftest.er1 13592 ac_status=$? 13593 grep -v '^ *+' conftest.er1 >conftest.err 13594 rm -f conftest.er1 13595 cat conftest.err >&5 13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13597 (exit $ac_status); } && 13598 { ac_try='test -z "$ac_c_werror_flag" 13599 || test ! -s conftest.err' 13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13601 (eval $ac_try) 2>&5 13602 ac_status=$? 13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13604 (exit $ac_status); }; } && 13605 { ac_try='test -s conftest.$ac_objext' 13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13607 (eval $ac_try) 2>&5 13608 ac_status=$? 13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13610 (exit $ac_status); }; }; then 13611 ac_cv_type_uchar=yes 13612else 13613 echo "$as_me: failed program was:" >&5 13614sed 's/^/| /' conftest.$ac_ext >&5 13615 13616ac_cv_type_uchar=no 13617fi 13618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13619fi 13620echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5 13621echo "${ECHO_T}$ac_cv_type_uchar" >&6 13622if test $ac_cv_type_uchar = yes; then 13623 13624cat >>confdefs.h <<_ACEOF 13625#define HAVE_UCHAR 1 13626_ACEOF 13627 13628 13629fi 13630echo "$as_me:$LINENO: checking for uint" >&5 13631echo $ECHO_N "checking for uint... $ECHO_C" >&6 13632if test "${ac_cv_type_uint+set}" = set; then 13633 echo $ECHO_N "(cached) $ECHO_C" >&6 13634else 13635 cat >conftest.$ac_ext <<_ACEOF 13636/* confdefs.h. */ 13637_ACEOF 13638cat confdefs.h >>conftest.$ac_ext 13639cat >>conftest.$ac_ext <<_ACEOF 13640/* end confdefs.h. */ 13641$ac_includes_default 13642int 13643main () 13644{ 13645if ((uint *) 0) 13646 return 0; 13647if (sizeof (uint)) 13648 return 0; 13649 ; 13650 return 0; 13651} 13652_ACEOF 13653rm -f conftest.$ac_objext 13654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13655 (eval $ac_compile) 2>conftest.er1 13656 ac_status=$? 13657 grep -v '^ *+' conftest.er1 >conftest.err 13658 rm -f conftest.er1 13659 cat conftest.err >&5 13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13661 (exit $ac_status); } && 13662 { ac_try='test -z "$ac_c_werror_flag" 13663 || test ! -s conftest.err' 13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13665 (eval $ac_try) 2>&5 13666 ac_status=$? 13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13668 (exit $ac_status); }; } && 13669 { ac_try='test -s conftest.$ac_objext' 13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13671 (eval $ac_try) 2>&5 13672 ac_status=$? 13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13674 (exit $ac_status); }; }; then 13675 ac_cv_type_uint=yes 13676else 13677 echo "$as_me: failed program was:" >&5 13678sed 's/^/| /' conftest.$ac_ext >&5 13679 13680ac_cv_type_uint=no 13681fi 13682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13683fi 13684echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5 13685echo "${ECHO_T}$ac_cv_type_uint" >&6 13686if test $ac_cv_type_uint = yes; then 13687 13688cat >>confdefs.h <<_ACEOF 13689#define HAVE_UINT 1 13690_ACEOF 13691 13692 13693fi 13694echo "$as_me:$LINENO: checking for uint8_t" >&5 13695echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 13696if test "${ac_cv_type_uint8_t+set}" = set; then 13697 echo $ECHO_N "(cached) $ECHO_C" >&6 13698else 13699 cat >conftest.$ac_ext <<_ACEOF 13700/* confdefs.h. */ 13701_ACEOF 13702cat confdefs.h >>conftest.$ac_ext 13703cat >>conftest.$ac_ext <<_ACEOF 13704/* end confdefs.h. */ 13705$ac_includes_default 13706int 13707main () 13708{ 13709if ((uint8_t *) 0) 13710 return 0; 13711if (sizeof (uint8_t)) 13712 return 0; 13713 ; 13714 return 0; 13715} 13716_ACEOF 13717rm -f conftest.$ac_objext 13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13719 (eval $ac_compile) 2>conftest.er1 13720 ac_status=$? 13721 grep -v '^ *+' conftest.er1 >conftest.err 13722 rm -f conftest.er1 13723 cat conftest.err >&5 13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13725 (exit $ac_status); } && 13726 { ac_try='test -z "$ac_c_werror_flag" 13727 || test ! -s conftest.err' 13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13729 (eval $ac_try) 2>&5 13730 ac_status=$? 13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13732 (exit $ac_status); }; } && 13733 { ac_try='test -s conftest.$ac_objext' 13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13735 (eval $ac_try) 2>&5 13736 ac_status=$? 13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13738 (exit $ac_status); }; }; then 13739 ac_cv_type_uint8_t=yes 13740else 13741 echo "$as_me: failed program was:" >&5 13742sed 's/^/| /' conftest.$ac_ext >&5 13743 13744ac_cv_type_uint8_t=no 13745fi 13746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13747fi 13748echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 13749echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 13750if test $ac_cv_type_uint8_t = yes; then 13751 13752cat >>confdefs.h <<_ACEOF 13753#define HAVE_UINT8_T 1 13754_ACEOF 13755 13756 13757fi 13758echo "$as_me:$LINENO: checking for uint16_t" >&5 13759echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 13760if test "${ac_cv_type_uint16_t+set}" = set; then 13761 echo $ECHO_N "(cached) $ECHO_C" >&6 13762else 13763 cat >conftest.$ac_ext <<_ACEOF 13764/* confdefs.h. */ 13765_ACEOF 13766cat confdefs.h >>conftest.$ac_ext 13767cat >>conftest.$ac_ext <<_ACEOF 13768/* end confdefs.h. */ 13769$ac_includes_default 13770int 13771main () 13772{ 13773if ((uint16_t *) 0) 13774 return 0; 13775if (sizeof (uint16_t)) 13776 return 0; 13777 ; 13778 return 0; 13779} 13780_ACEOF 13781rm -f conftest.$ac_objext 13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13783 (eval $ac_compile) 2>conftest.er1 13784 ac_status=$? 13785 grep -v '^ *+' conftest.er1 >conftest.err 13786 rm -f conftest.er1 13787 cat conftest.err >&5 13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13789 (exit $ac_status); } && 13790 { ac_try='test -z "$ac_c_werror_flag" 13791 || test ! -s conftest.err' 13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13793 (eval $ac_try) 2>&5 13794 ac_status=$? 13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13796 (exit $ac_status); }; } && 13797 { ac_try='test -s conftest.$ac_objext' 13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13799 (eval $ac_try) 2>&5 13800 ac_status=$? 13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13802 (exit $ac_status); }; }; then 13803 ac_cv_type_uint16_t=yes 13804else 13805 echo "$as_me: failed program was:" >&5 13806sed 's/^/| /' conftest.$ac_ext >&5 13807 13808ac_cv_type_uint16_t=no 13809fi 13810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13811fi 13812echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 13813echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 13814if test $ac_cv_type_uint16_t = yes; then 13815 13816cat >>confdefs.h <<_ACEOF 13817#define HAVE_UINT16_T 1 13818_ACEOF 13819 13820 13821fi 13822echo "$as_me:$LINENO: checking for uint32_t" >&5 13823echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 13824if test "${ac_cv_type_uint32_t+set}" = set; then 13825 echo $ECHO_N "(cached) $ECHO_C" >&6 13826else 13827 cat >conftest.$ac_ext <<_ACEOF 13828/* confdefs.h. */ 13829_ACEOF 13830cat confdefs.h >>conftest.$ac_ext 13831cat >>conftest.$ac_ext <<_ACEOF 13832/* end confdefs.h. */ 13833$ac_includes_default 13834int 13835main () 13836{ 13837if ((uint32_t *) 0) 13838 return 0; 13839if (sizeof (uint32_t)) 13840 return 0; 13841 ; 13842 return 0; 13843} 13844_ACEOF 13845rm -f conftest.$ac_objext 13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13847 (eval $ac_compile) 2>conftest.er1 13848 ac_status=$? 13849 grep -v '^ *+' conftest.er1 >conftest.err 13850 rm -f conftest.er1 13851 cat conftest.err >&5 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13853 (exit $ac_status); } && 13854 { ac_try='test -z "$ac_c_werror_flag" 13855 || test ! -s conftest.err' 13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13857 (eval $ac_try) 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); }; } && 13861 { ac_try='test -s conftest.$ac_objext' 13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13863 (eval $ac_try) 2>&5 13864 ac_status=$? 13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13866 (exit $ac_status); }; }; then 13867 ac_cv_type_uint32_t=yes 13868else 13869 echo "$as_me: failed program was:" >&5 13870sed 's/^/| /' conftest.$ac_ext >&5 13871 13872ac_cv_type_uint32_t=no 13873fi 13874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13875fi 13876echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 13877echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 13878if test $ac_cv_type_uint32_t = yes; then 13879 13880cat >>confdefs.h <<_ACEOF 13881#define HAVE_UINT32_T 1 13882_ACEOF 13883 13884 13885fi 13886 13887 13888## Library functions 13889 13890for ac_header in stdlib.h 13891do 13892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13893if eval "test \"\${$as_ac_Header+set}\" = set"; then 13894 echo "$as_me:$LINENO: checking for $ac_header" >&5 13895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13896if eval "test \"\${$as_ac_Header+set}\" = set"; then 13897 echo $ECHO_N "(cached) $ECHO_C" >&6 13898fi 13899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13901else 13902 # Is the header compilable? 13903echo "$as_me:$LINENO: checking $ac_header usability" >&5 13904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13905cat >conftest.$ac_ext <<_ACEOF 13906/* confdefs.h. */ 13907_ACEOF 13908cat confdefs.h >>conftest.$ac_ext 13909cat >>conftest.$ac_ext <<_ACEOF 13910/* end confdefs.h. */ 13911$ac_includes_default 13912#include <$ac_header> 13913_ACEOF 13914rm -f conftest.$ac_objext 13915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13916 (eval $ac_compile) 2>conftest.er1 13917 ac_status=$? 13918 grep -v '^ *+' conftest.er1 >conftest.err 13919 rm -f conftest.er1 13920 cat conftest.err >&5 13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13922 (exit $ac_status); } && 13923 { ac_try='test -z "$ac_c_werror_flag" 13924 || test ! -s conftest.err' 13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13926 (eval $ac_try) 2>&5 13927 ac_status=$? 13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13929 (exit $ac_status); }; } && 13930 { ac_try='test -s conftest.$ac_objext' 13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13932 (eval $ac_try) 2>&5 13933 ac_status=$? 13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13935 (exit $ac_status); }; }; then 13936 ac_header_compiler=yes 13937else 13938 echo "$as_me: failed program was:" >&5 13939sed 's/^/| /' conftest.$ac_ext >&5 13940 13941ac_header_compiler=no 13942fi 13943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13945echo "${ECHO_T}$ac_header_compiler" >&6 13946 13947# Is the header present? 13948echo "$as_me:$LINENO: checking $ac_header presence" >&5 13949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13950cat >conftest.$ac_ext <<_ACEOF 13951/* confdefs.h. */ 13952_ACEOF 13953cat confdefs.h >>conftest.$ac_ext 13954cat >>conftest.$ac_ext <<_ACEOF 13955/* end confdefs.h. */ 13956#include <$ac_header> 13957_ACEOF 13958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13960 ac_status=$? 13961 grep -v '^ *+' conftest.er1 >conftest.err 13962 rm -f conftest.er1 13963 cat conftest.err >&5 13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13965 (exit $ac_status); } >/dev/null; then 13966 if test -s conftest.err; then 13967 ac_cpp_err=$ac_c_preproc_warn_flag 13968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13969 else 13970 ac_cpp_err= 13971 fi 13972else 13973 ac_cpp_err=yes 13974fi 13975if test -z "$ac_cpp_err"; then 13976 ac_header_preproc=yes 13977else 13978 echo "$as_me: failed program was:" >&5 13979sed 's/^/| /' conftest.$ac_ext >&5 13980 13981 ac_header_preproc=no 13982fi 13983rm -f conftest.err conftest.$ac_ext 13984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13985echo "${ECHO_T}$ac_header_preproc" >&6 13986 13987# So? What about this header? 13988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13989 yes:no: ) 13990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13991echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13993echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13994 ac_header_preproc=yes 13995 ;; 13996 no:yes:* ) 13997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14000echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14002echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14004echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14008echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14009 ( 14010 cat <<\_ASBOX 14011## ---------------------------- ## 14012## Report this to bboy@bboy.net ## 14013## ---------------------------- ## 14014_ASBOX 14015 ) | 14016 sed "s/^/$as_me: WARNING: /" >&2 14017 ;; 14018esac 14019echo "$as_me:$LINENO: checking for $ac_header" >&5 14020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14021if eval "test \"\${$as_ac_Header+set}\" = set"; then 14022 echo $ECHO_N "(cached) $ECHO_C" >&6 14023else 14024 eval "$as_ac_Header=\$ac_header_preproc" 14025fi 14026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14028 14029fi 14030if test `eval echo '${'$as_ac_Header'}'` = yes; then 14031 cat >>confdefs.h <<_ACEOF 14032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14033_ACEOF 14034 14035fi 14036 14037done 14038 14039echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 14040echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 14041if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 14042 echo $ECHO_N "(cached) $ECHO_C" >&6 14043else 14044 if test "$cross_compiling" = yes; then 14045 ac_cv_func_malloc_0_nonnull=no 14046else 14047 cat >conftest.$ac_ext <<_ACEOF 14048/* confdefs.h. */ 14049_ACEOF 14050cat confdefs.h >>conftest.$ac_ext 14051cat >>conftest.$ac_ext <<_ACEOF 14052/* end confdefs.h. */ 14053#if STDC_HEADERS || HAVE_STDLIB_H 14054# include <stdlib.h> 14055#else 14056char *malloc (); 14057#endif 14058 14059int 14060main () 14061{ 14062exit (malloc (0) ? 0 : 1); 14063 ; 14064 return 0; 14065} 14066_ACEOF 14067rm -f conftest$ac_exeext 14068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14069 (eval $ac_link) 2>&5 14070 ac_status=$? 14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14074 (eval $ac_try) 2>&5 14075 ac_status=$? 14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14077 (exit $ac_status); }; }; then 14078 ac_cv_func_malloc_0_nonnull=yes 14079else 14080 echo "$as_me: program exited with status $ac_status" >&5 14081echo "$as_me: failed program was:" >&5 14082sed 's/^/| /' conftest.$ac_ext >&5 14083 14084( exit $ac_status ) 14085ac_cv_func_malloc_0_nonnull=no 14086fi 14087rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14088fi 14089fi 14090echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 14091echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 14092if test $ac_cv_func_malloc_0_nonnull = yes; then 14093 14094cat >>confdefs.h <<\_ACEOF 14095#define HAVE_MALLOC 1 14096_ACEOF 14097 14098else 14099 cat >>confdefs.h <<\_ACEOF 14100#define HAVE_MALLOC 0 14101_ACEOF 14102 14103 case $LIBOBJS in 14104 "malloc.$ac_objext" | \ 14105 *" malloc.$ac_objext" | \ 14106 "malloc.$ac_objext "* | \ 14107 *" malloc.$ac_objext "* ) ;; 14108 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 14109esac 14110 14111 14112cat >>confdefs.h <<\_ACEOF 14113#define malloc rpl_malloc 14114_ACEOF 14115 14116fi 14117 14118 14119 14120echo "$as_me:$LINENO: checking return type of signal handlers" >&5 14121echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 14122if test "${ac_cv_type_signal+set}" = set; then 14123 echo $ECHO_N "(cached) $ECHO_C" >&6 14124else 14125 cat >conftest.$ac_ext <<_ACEOF 14126/* confdefs.h. */ 14127_ACEOF 14128cat confdefs.h >>conftest.$ac_ext 14129cat >>conftest.$ac_ext <<_ACEOF 14130/* end confdefs.h. */ 14131#include <sys/types.h> 14132#include <signal.h> 14133#ifdef signal 14134# undef signal 14135#endif 14136#ifdef __cplusplus 14137extern "C" void (*signal (int, void (*)(int)))(int); 14138#else 14139void (*signal ()) (); 14140#endif 14141 14142int 14143main () 14144{ 14145int i; 14146 ; 14147 return 0; 14148} 14149_ACEOF 14150rm -f conftest.$ac_objext 14151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14152 (eval $ac_compile) 2>conftest.er1 14153 ac_status=$? 14154 grep -v '^ *+' conftest.er1 >conftest.err 14155 rm -f conftest.er1 14156 cat conftest.err >&5 14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14158 (exit $ac_status); } && 14159 { ac_try='test -z "$ac_c_werror_flag" 14160 || test ! -s conftest.err' 14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14162 (eval $ac_try) 2>&5 14163 ac_status=$? 14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14165 (exit $ac_status); }; } && 14166 { ac_try='test -s conftest.$ac_objext' 14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14168 (eval $ac_try) 2>&5 14169 ac_status=$? 14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14171 (exit $ac_status); }; }; then 14172 ac_cv_type_signal=void 14173else 14174 echo "$as_me: failed program was:" >&5 14175sed 's/^/| /' conftest.$ac_ext >&5 14176 14177ac_cv_type_signal=int 14178fi 14179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14180fi 14181echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 14182echo "${ECHO_T}$ac_cv_type_signal" >&6 14183 14184cat >>confdefs.h <<_ACEOF 14185#define RETSIGTYPE $ac_cv_type_signal 14186_ACEOF 14187 14188 14189# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 14190# for constant arguments. Useless! 14191echo "$as_me:$LINENO: checking for working alloca.h" >&5 14192echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 14193if test "${ac_cv_working_alloca_h+set}" = set; then 14194 echo $ECHO_N "(cached) $ECHO_C" >&6 14195else 14196 cat >conftest.$ac_ext <<_ACEOF 14197/* confdefs.h. */ 14198_ACEOF 14199cat confdefs.h >>conftest.$ac_ext 14200cat >>conftest.$ac_ext <<_ACEOF 14201/* end confdefs.h. */ 14202#include <alloca.h> 14203int 14204main () 14205{ 14206char *p = (char *) alloca (2 * sizeof (int)); 14207 ; 14208 return 0; 14209} 14210_ACEOF 14211rm -f conftest.$ac_objext conftest$ac_exeext 14212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14213 (eval $ac_link) 2>conftest.er1 14214 ac_status=$? 14215 grep -v '^ *+' conftest.er1 >conftest.err 14216 rm -f conftest.er1 14217 cat conftest.err >&5 14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14219 (exit $ac_status); } && 14220 { ac_try='test -z "$ac_c_werror_flag" 14221 || test ! -s conftest.err' 14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14223 (eval $ac_try) 2>&5 14224 ac_status=$? 14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14226 (exit $ac_status); }; } && 14227 { ac_try='test -s conftest$ac_exeext' 14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14229 (eval $ac_try) 2>&5 14230 ac_status=$? 14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14232 (exit $ac_status); }; }; then 14233 ac_cv_working_alloca_h=yes 14234else 14235 echo "$as_me: failed program was:" >&5 14236sed 's/^/| /' conftest.$ac_ext >&5 14237 14238ac_cv_working_alloca_h=no 14239fi 14240rm -f conftest.err conftest.$ac_objext \ 14241 conftest$ac_exeext conftest.$ac_ext 14242fi 14243echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 14244echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 14245if test $ac_cv_working_alloca_h = yes; then 14246 14247cat >>confdefs.h <<\_ACEOF 14248#define HAVE_ALLOCA_H 1 14249_ACEOF 14250 14251fi 14252 14253echo "$as_me:$LINENO: checking for alloca" >&5 14254echo $ECHO_N "checking for alloca... $ECHO_C" >&6 14255if test "${ac_cv_func_alloca_works+set}" = set; then 14256 echo $ECHO_N "(cached) $ECHO_C" >&6 14257else 14258 cat >conftest.$ac_ext <<_ACEOF 14259/* confdefs.h. */ 14260_ACEOF 14261cat confdefs.h >>conftest.$ac_ext 14262cat >>conftest.$ac_ext <<_ACEOF 14263/* end confdefs.h. */ 14264#ifdef __GNUC__ 14265# define alloca __builtin_alloca 14266#else 14267# ifdef _MSC_VER 14268# include <malloc.h> 14269# define alloca _alloca 14270# else 14271# if HAVE_ALLOCA_H 14272# include <alloca.h> 14273# else 14274# ifdef _AIX 14275 #pragma alloca 14276# else 14277# ifndef alloca /* predefined by HP cc +Olibcalls */ 14278char *alloca (); 14279# endif 14280# endif 14281# endif 14282# endif 14283#endif 14284 14285int 14286main () 14287{ 14288char *p = (char *) alloca (1); 14289 ; 14290 return 0; 14291} 14292_ACEOF 14293rm -f conftest.$ac_objext conftest$ac_exeext 14294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14295 (eval $ac_link) 2>conftest.er1 14296 ac_status=$? 14297 grep -v '^ *+' conftest.er1 >conftest.err 14298 rm -f conftest.er1 14299 cat conftest.err >&5 14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14301 (exit $ac_status); } && 14302 { ac_try='test -z "$ac_c_werror_flag" 14303 || test ! -s conftest.err' 14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14305 (eval $ac_try) 2>&5 14306 ac_status=$? 14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14308 (exit $ac_status); }; } && 14309 { ac_try='test -s conftest$ac_exeext' 14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14311 (eval $ac_try) 2>&5 14312 ac_status=$? 14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14314 (exit $ac_status); }; }; then 14315 ac_cv_func_alloca_works=yes 14316else 14317 echo "$as_me: failed program was:" >&5 14318sed 's/^/| /' conftest.$ac_ext >&5 14319 14320ac_cv_func_alloca_works=no 14321fi 14322rm -f conftest.err conftest.$ac_objext \ 14323 conftest$ac_exeext conftest.$ac_ext 14324fi 14325echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 14326echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 14327 14328if test $ac_cv_func_alloca_works = yes; then 14329 14330cat >>confdefs.h <<\_ACEOF 14331#define HAVE_ALLOCA 1 14332_ACEOF 14333 14334else 14335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 14336# that cause trouble. Some versions do not even contain alloca or 14337# contain a buggy version. If you still want to use their alloca, 14338# use ar to extract alloca.o from them instead of compiling alloca.c. 14339 14340ALLOCA=alloca.$ac_objext 14341 14342cat >>confdefs.h <<\_ACEOF 14343#define C_ALLOCA 1 14344_ACEOF 14345 14346 14347echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 14348echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 14349if test "${ac_cv_os_cray+set}" = set; then 14350 echo $ECHO_N "(cached) $ECHO_C" >&6 14351else 14352 cat >conftest.$ac_ext <<_ACEOF 14353/* confdefs.h. */ 14354_ACEOF 14355cat confdefs.h >>conftest.$ac_ext 14356cat >>conftest.$ac_ext <<_ACEOF 14357/* end confdefs.h. */ 14358#if defined(CRAY) && ! defined(CRAY2) 14359webecray 14360#else 14361wenotbecray 14362#endif 14363 14364_ACEOF 14365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14366 $EGREP "webecray" >/dev/null 2>&1; then 14367 ac_cv_os_cray=yes 14368else 14369 ac_cv_os_cray=no 14370fi 14371rm -f conftest* 14372 14373fi 14374echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 14375echo "${ECHO_T}$ac_cv_os_cray" >&6 14376if test $ac_cv_os_cray = yes; then 14377 for ac_func in _getb67 GETB67 getb67; do 14378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14379echo "$as_me:$LINENO: checking for $ac_func" >&5 14380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14381if eval "test \"\${$as_ac_var+set}\" = set"; then 14382 echo $ECHO_N "(cached) $ECHO_C" >&6 14383else 14384 cat >conftest.$ac_ext <<_ACEOF 14385/* confdefs.h. */ 14386_ACEOF 14387cat confdefs.h >>conftest.$ac_ext 14388cat >>conftest.$ac_ext <<_ACEOF 14389/* end confdefs.h. */ 14390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14391 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14392#define $ac_func innocuous_$ac_func 14393 14394/* System header to define __stub macros and hopefully few prototypes, 14395 which can conflict with char $ac_func (); below. 14396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14397 <limits.h> exists even on freestanding compilers. */ 14398 14399#ifdef __STDC__ 14400# include <limits.h> 14401#else 14402# include <assert.h> 14403#endif 14404 14405#undef $ac_func 14406 14407/* Override any gcc2 internal prototype to avoid an error. */ 14408#ifdef __cplusplus 14409extern "C" 14410{ 14411#endif 14412/* We use char because int might match the return type of a gcc2 14413 builtin and then its argument prototype would still apply. */ 14414char $ac_func (); 14415/* The GNU C library defines this for functions which it implements 14416 to always fail with ENOSYS. Some functions are actually named 14417 something starting with __ and the normal name is an alias. */ 14418#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14419choke me 14420#else 14421char (*f) () = $ac_func; 14422#endif 14423#ifdef __cplusplus 14424} 14425#endif 14426 14427int 14428main () 14429{ 14430return f != $ac_func; 14431 ; 14432 return 0; 14433} 14434_ACEOF 14435rm -f conftest.$ac_objext conftest$ac_exeext 14436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14437 (eval $ac_link) 2>conftest.er1 14438 ac_status=$? 14439 grep -v '^ *+' conftest.er1 >conftest.err 14440 rm -f conftest.er1 14441 cat conftest.err >&5 14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14443 (exit $ac_status); } && 14444 { ac_try='test -z "$ac_c_werror_flag" 14445 || test ! -s conftest.err' 14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14447 (eval $ac_try) 2>&5 14448 ac_status=$? 14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14450 (exit $ac_status); }; } && 14451 { ac_try='test -s conftest$ac_exeext' 14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14453 (eval $ac_try) 2>&5 14454 ac_status=$? 14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14456 (exit $ac_status); }; }; then 14457 eval "$as_ac_var=yes" 14458else 14459 echo "$as_me: failed program was:" >&5 14460sed 's/^/| /' conftest.$ac_ext >&5 14461 14462eval "$as_ac_var=no" 14463fi 14464rm -f conftest.err conftest.$ac_objext \ 14465 conftest$ac_exeext conftest.$ac_ext 14466fi 14467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14468echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14469if test `eval echo '${'$as_ac_var'}'` = yes; then 14470 14471cat >>confdefs.h <<_ACEOF 14472#define CRAY_STACKSEG_END $ac_func 14473_ACEOF 14474 14475 break 14476fi 14477 14478 done 14479fi 14480 14481echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 14482echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 14483if test "${ac_cv_c_stack_direction+set}" = set; then 14484 echo $ECHO_N "(cached) $ECHO_C" >&6 14485else 14486 if test "$cross_compiling" = yes; then 14487 ac_cv_c_stack_direction=0 14488else 14489 cat >conftest.$ac_ext <<_ACEOF 14490/* confdefs.h. */ 14491_ACEOF 14492cat confdefs.h >>conftest.$ac_ext 14493cat >>conftest.$ac_ext <<_ACEOF 14494/* end confdefs.h. */ 14495int 14496find_stack_direction () 14497{ 14498 static char *addr = 0; 14499 auto char dummy; 14500 if (addr == 0) 14501 { 14502 addr = &dummy; 14503 return find_stack_direction (); 14504 } 14505 else 14506 return (&dummy > addr) ? 1 : -1; 14507} 14508 14509int 14510main () 14511{ 14512 exit (find_stack_direction () < 0); 14513} 14514_ACEOF 14515rm -f conftest$ac_exeext 14516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14517 (eval $ac_link) 2>&5 14518 ac_status=$? 14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14522 (eval $ac_try) 2>&5 14523 ac_status=$? 14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14525 (exit $ac_status); }; }; then 14526 ac_cv_c_stack_direction=1 14527else 14528 echo "$as_me: program exited with status $ac_status" >&5 14529echo "$as_me: failed program was:" >&5 14530sed 's/^/| /' conftest.$ac_ext >&5 14531 14532( exit $ac_status ) 14533ac_cv_c_stack_direction=-1 14534fi 14535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14536fi 14537fi 14538echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 14539echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 14540 14541cat >>confdefs.h <<_ACEOF 14542#define STACK_DIRECTION $ac_cv_c_stack_direction 14543_ACEOF 14544 14545 14546fi 14547 14548 14549for ac_header in stdlib.h 14550do 14551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14552if eval "test \"\${$as_ac_Header+set}\" = set"; then 14553 echo "$as_me:$LINENO: checking for $ac_header" >&5 14554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14555if eval "test \"\${$as_ac_Header+set}\" = set"; then 14556 echo $ECHO_N "(cached) $ECHO_C" >&6 14557fi 14558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14560else 14561 # Is the header compilable? 14562echo "$as_me:$LINENO: checking $ac_header usability" >&5 14563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14564cat >conftest.$ac_ext <<_ACEOF 14565/* confdefs.h. */ 14566_ACEOF 14567cat confdefs.h >>conftest.$ac_ext 14568cat >>conftest.$ac_ext <<_ACEOF 14569/* end confdefs.h. */ 14570$ac_includes_default 14571#include <$ac_header> 14572_ACEOF 14573rm -f conftest.$ac_objext 14574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14575 (eval $ac_compile) 2>conftest.er1 14576 ac_status=$? 14577 grep -v '^ *+' conftest.er1 >conftest.err 14578 rm -f conftest.er1 14579 cat conftest.err >&5 14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14581 (exit $ac_status); } && 14582 { ac_try='test -z "$ac_c_werror_flag" 14583 || test ! -s conftest.err' 14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14585 (eval $ac_try) 2>&5 14586 ac_status=$? 14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14588 (exit $ac_status); }; } && 14589 { ac_try='test -s conftest.$ac_objext' 14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14591 (eval $ac_try) 2>&5 14592 ac_status=$? 14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14594 (exit $ac_status); }; }; then 14595 ac_header_compiler=yes 14596else 14597 echo "$as_me: failed program was:" >&5 14598sed 's/^/| /' conftest.$ac_ext >&5 14599 14600ac_header_compiler=no 14601fi 14602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14604echo "${ECHO_T}$ac_header_compiler" >&6 14605 14606# Is the header present? 14607echo "$as_me:$LINENO: checking $ac_header presence" >&5 14608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14609cat >conftest.$ac_ext <<_ACEOF 14610/* confdefs.h. */ 14611_ACEOF 14612cat confdefs.h >>conftest.$ac_ext 14613cat >>conftest.$ac_ext <<_ACEOF 14614/* end confdefs.h. */ 14615#include <$ac_header> 14616_ACEOF 14617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14619 ac_status=$? 14620 grep -v '^ *+' conftest.er1 >conftest.err 14621 rm -f conftest.er1 14622 cat conftest.err >&5 14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14624 (exit $ac_status); } >/dev/null; then 14625 if test -s conftest.err; then 14626 ac_cpp_err=$ac_c_preproc_warn_flag 14627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14628 else 14629 ac_cpp_err= 14630 fi 14631else 14632 ac_cpp_err=yes 14633fi 14634if test -z "$ac_cpp_err"; then 14635 ac_header_preproc=yes 14636else 14637 echo "$as_me: failed program was:" >&5 14638sed 's/^/| /' conftest.$ac_ext >&5 14639 14640 ac_header_preproc=no 14641fi 14642rm -f conftest.err conftest.$ac_ext 14643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14644echo "${ECHO_T}$ac_header_preproc" >&6 14645 14646# So? What about this header? 14647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14648 yes:no: ) 14649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14653 ac_header_preproc=yes 14654 ;; 14655 no:yes:* ) 14656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14663echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14668 ( 14669 cat <<\_ASBOX 14670## ---------------------------- ## 14671## Report this to bboy@bboy.net ## 14672## ---------------------------- ## 14673_ASBOX 14674 ) | 14675 sed "s/^/$as_me: WARNING: /" >&2 14676 ;; 14677esac 14678echo "$as_me:$LINENO: checking for $ac_header" >&5 14679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14680if eval "test \"\${$as_ac_Header+set}\" = set"; then 14681 echo $ECHO_N "(cached) $ECHO_C" >&6 14682else 14683 eval "$as_ac_Header=\$ac_header_preproc" 14684fi 14685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14687 14688fi 14689if test `eval echo '${'$as_ac_Header'}'` = yes; then 14690 cat >>confdefs.h <<_ACEOF 14691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14692_ACEOF 14693 14694fi 14695 14696done 14697 14698echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 14699echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 14700if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 14701 echo $ECHO_N "(cached) $ECHO_C" >&6 14702else 14703 if test "$cross_compiling" = yes; then 14704 ac_cv_func_realloc_0_nonnull=no 14705else 14706 cat >conftest.$ac_ext <<_ACEOF 14707/* confdefs.h. */ 14708_ACEOF 14709cat confdefs.h >>conftest.$ac_ext 14710cat >>conftest.$ac_ext <<_ACEOF 14711/* end confdefs.h. */ 14712#if STDC_HEADERS || HAVE_STDLIB_H 14713# include <stdlib.h> 14714#else 14715char *realloc (); 14716#endif 14717 14718int 14719main () 14720{ 14721exit (realloc (0, 0) ? 0 : 1); 14722 ; 14723 return 0; 14724} 14725_ACEOF 14726rm -f conftest$ac_exeext 14727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14728 (eval $ac_link) 2>&5 14729 ac_status=$? 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14733 (eval $ac_try) 2>&5 14734 ac_status=$? 14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14736 (exit $ac_status); }; }; then 14737 ac_cv_func_realloc_0_nonnull=yes 14738else 14739 echo "$as_me: program exited with status $ac_status" >&5 14740echo "$as_me: failed program was:" >&5 14741sed 's/^/| /' conftest.$ac_ext >&5 14742 14743( exit $ac_status ) 14744ac_cv_func_realloc_0_nonnull=no 14745fi 14746rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14747fi 14748fi 14749echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 14750echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 14751if test $ac_cv_func_realloc_0_nonnull = yes; then 14752 14753cat >>confdefs.h <<\_ACEOF 14754#define HAVE_REALLOC 1 14755_ACEOF 14756 14757else 14758 cat >>confdefs.h <<\_ACEOF 14759#define HAVE_REALLOC 0 14760_ACEOF 14761 14762 case $LIBOBJS in 14763 "realloc.$ac_objext" | \ 14764 *" realloc.$ac_objext" | \ 14765 "realloc.$ac_objext "* | \ 14766 *" realloc.$ac_objext "* ) ;; 14767 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; 14768esac 14769 14770 14771cat >>confdefs.h <<\_ACEOF 14772#define realloc rpl_realloc 14773_ACEOF 14774 14775fi 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785for ac_func in memset getpwuid shutdown inet_ntop inet_pton strsep 14786do 14787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14788echo "$as_me:$LINENO: checking for $ac_func" >&5 14789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14790if eval "test \"\${$as_ac_var+set}\" = set"; then 14791 echo $ECHO_N "(cached) $ECHO_C" >&6 14792else 14793 cat >conftest.$ac_ext <<_ACEOF 14794/* confdefs.h. */ 14795_ACEOF 14796cat confdefs.h >>conftest.$ac_ext 14797cat >>conftest.$ac_ext <<_ACEOF 14798/* end confdefs.h. */ 14799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14800 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14801#define $ac_func innocuous_$ac_func 14802 14803/* System header to define __stub macros and hopefully few prototypes, 14804 which can conflict with char $ac_func (); below. 14805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14806 <limits.h> exists even on freestanding compilers. */ 14807 14808#ifdef __STDC__ 14809# include <limits.h> 14810#else 14811# include <assert.h> 14812#endif 14813 14814#undef $ac_func 14815 14816/* Override any gcc2 internal prototype to avoid an error. */ 14817#ifdef __cplusplus 14818extern "C" 14819{ 14820#endif 14821/* We use char because int might match the return type of a gcc2 14822 builtin and then its argument prototype would still apply. */ 14823char $ac_func (); 14824/* The GNU C library defines this for functions which it implements 14825 to always fail with ENOSYS. Some functions are actually named 14826 something starting with __ and the normal name is an alias. */ 14827#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14828choke me 14829#else 14830char (*f) () = $ac_func; 14831#endif 14832#ifdef __cplusplus 14833} 14834#endif 14835 14836int 14837main () 14838{ 14839return f != $ac_func; 14840 ; 14841 return 0; 14842} 14843_ACEOF 14844rm -f conftest.$ac_objext conftest$ac_exeext 14845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14846 (eval $ac_link) 2>conftest.er1 14847 ac_status=$? 14848 grep -v '^ *+' conftest.er1 >conftest.err 14849 rm -f conftest.er1 14850 cat conftest.err >&5 14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14852 (exit $ac_status); } && 14853 { ac_try='test -z "$ac_c_werror_flag" 14854 || test ! -s conftest.err' 14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14856 (eval $ac_try) 2>&5 14857 ac_status=$? 14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14859 (exit $ac_status); }; } && 14860 { ac_try='test -s conftest$ac_exeext' 14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14862 (eval $ac_try) 2>&5 14863 ac_status=$? 14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14865 (exit $ac_status); }; }; then 14866 eval "$as_ac_var=yes" 14867else 14868 echo "$as_me: failed program was:" >&5 14869sed 's/^/| /' conftest.$ac_ext >&5 14870 14871eval "$as_ac_var=no" 14872fi 14873rm -f conftest.err conftest.$ac_objext \ 14874 conftest$ac_exeext conftest.$ac_ext 14875fi 14876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14878if test `eval echo '${'$as_ac_var'}'` = yes; then 14879 cat >>confdefs.h <<_ACEOF 14880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14881_ACEOF 14882 14883fi 14884done 14885 14886 14887 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 14888echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 14889if test "${ac_cv_lib_socket_socket+set}" = set; then 14890 echo $ECHO_N "(cached) $ECHO_C" >&6 14891else 14892 ac_check_lib_save_LIBS=$LIBS 14893LIBS="-lsocket $LIBS" 14894cat >conftest.$ac_ext <<_ACEOF 14895/* confdefs.h. */ 14896_ACEOF 14897cat confdefs.h >>conftest.$ac_ext 14898cat >>conftest.$ac_ext <<_ACEOF 14899/* end confdefs.h. */ 14900 14901/* Override any gcc2 internal prototype to avoid an error. */ 14902#ifdef __cplusplus 14903extern "C" 14904#endif 14905/* We use char because int might match the return type of a gcc2 14906 builtin and then its argument prototype would still apply. */ 14907char socket (); 14908int 14909main () 14910{ 14911socket (); 14912 ; 14913 return 0; 14914} 14915_ACEOF 14916rm -f conftest.$ac_objext conftest$ac_exeext 14917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14918 (eval $ac_link) 2>conftest.er1 14919 ac_status=$? 14920 grep -v '^ *+' conftest.er1 >conftest.err 14921 rm -f conftest.er1 14922 cat conftest.err >&5 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14924 (exit $ac_status); } && 14925 { ac_try='test -z "$ac_c_werror_flag" 14926 || test ! -s conftest.err' 14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14928 (eval $ac_try) 2>&5 14929 ac_status=$? 14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14931 (exit $ac_status); }; } && 14932 { ac_try='test -s conftest$ac_exeext' 14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14934 (eval $ac_try) 2>&5 14935 ac_status=$? 14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14937 (exit $ac_status); }; }; then 14938 ac_cv_lib_socket_socket=yes 14939else 14940 echo "$as_me: failed program was:" >&5 14941sed 's/^/| /' conftest.$ac_ext >&5 14942 14943ac_cv_lib_socket_socket=no 14944fi 14945rm -f conftest.err conftest.$ac_objext \ 14946 conftest$ac_exeext conftest.$ac_ext 14947LIBS=$ac_check_lib_save_LIBS 14948fi 14949echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 14950echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 14951if test $ac_cv_lib_socket_socket = yes; then 14952 ac_mydns_need_libsocket=yes 14953else 14954 ac_mydns_need_libsocket=no 14955fi 14956 14957 test "$ac_mydns_need_libsocket" = yes && LIBSOCKET="-lsocket" 14958 14959 14960 14961 14962 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 14963echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 14964if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then 14965 echo $ECHO_N "(cached) $ECHO_C" >&6 14966else 14967 ac_check_lib_save_LIBS=$LIBS 14968LIBS="-lnsl $LIBS" 14969cat >conftest.$ac_ext <<_ACEOF 14970/* confdefs.h. */ 14971_ACEOF 14972cat confdefs.h >>conftest.$ac_ext 14973cat >>conftest.$ac_ext <<_ACEOF 14974/* end confdefs.h. */ 14975 14976/* Override any gcc2 internal prototype to avoid an error. */ 14977#ifdef __cplusplus 14978extern "C" 14979#endif 14980/* We use char because int might match the return type of a gcc2 14981 builtin and then its argument prototype would still apply. */ 14982char inet_addr (); 14983int 14984main () 14985{ 14986inet_addr (); 14987 ; 14988 return 0; 14989} 14990_ACEOF 14991rm -f conftest.$ac_objext conftest$ac_exeext 14992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14993 (eval $ac_link) 2>conftest.er1 14994 ac_status=$? 14995 grep -v '^ *+' conftest.er1 >conftest.err 14996 rm -f conftest.er1 14997 cat conftest.err >&5 14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14999 (exit $ac_status); } && 15000 { ac_try='test -z "$ac_c_werror_flag" 15001 || test ! -s conftest.err' 15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15003 (eval $ac_try) 2>&5 15004 ac_status=$? 15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15006 (exit $ac_status); }; } && 15007 { ac_try='test -s conftest$ac_exeext' 15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15009 (eval $ac_try) 2>&5 15010 ac_status=$? 15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15012 (exit $ac_status); }; }; then 15013 ac_cv_lib_nsl_inet_addr=yes 15014else 15015 echo "$as_me: failed program was:" >&5 15016sed 's/^/| /' conftest.$ac_ext >&5 15017 15018ac_cv_lib_nsl_inet_addr=no 15019fi 15020rm -f conftest.err conftest.$ac_objext \ 15021 conftest$ac_exeext conftest.$ac_ext 15022LIBS=$ac_check_lib_save_LIBS 15023fi 15024echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 15025echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 15026if test $ac_cv_lib_nsl_inet_addr = yes; then 15027 ac_mydns_need_libnsl=yes 15028else 15029 ac_mydns_need_libnsl=no 15030fi 15031 15032 test "$ac_mydns_need_libnsl" = yes && LIBNSL="-lnsl" 15033 15034 15035 15036 15037 echo "$as_me:$LINENO: checking for floor in -lm" >&5 15038echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 15039if test "${ac_cv_lib_m_floor+set}" = set; then 15040 echo $ECHO_N "(cached) $ECHO_C" >&6 15041else 15042 ac_check_lib_save_LIBS=$LIBS 15043LIBS="-lm $LIBS" 15044cat >conftest.$ac_ext <<_ACEOF 15045/* confdefs.h. */ 15046_ACEOF 15047cat confdefs.h >>conftest.$ac_ext 15048cat >>conftest.$ac_ext <<_ACEOF 15049/* end confdefs.h. */ 15050 15051/* Override any gcc2 internal prototype to avoid an error. */ 15052#ifdef __cplusplus 15053extern "C" 15054#endif 15055/* We use char because int might match the return type of a gcc2 15056 builtin and then its argument prototype would still apply. */ 15057char floor (); 15058int 15059main () 15060{ 15061floor (); 15062 ; 15063 return 0; 15064} 15065_ACEOF 15066rm -f conftest.$ac_objext conftest$ac_exeext 15067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15068 (eval $ac_link) 2>conftest.er1 15069 ac_status=$? 15070 grep -v '^ *+' conftest.er1 >conftest.err 15071 rm -f conftest.er1 15072 cat conftest.err >&5 15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15074 (exit $ac_status); } && 15075 { ac_try='test -z "$ac_c_werror_flag" 15076 || test ! -s conftest.err' 15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15078 (eval $ac_try) 2>&5 15079 ac_status=$? 15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15081 (exit $ac_status); }; } && 15082 { ac_try='test -s conftest$ac_exeext' 15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15084 (eval $ac_try) 2>&5 15085 ac_status=$? 15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15087 (exit $ac_status); }; }; then 15088 ac_cv_lib_m_floor=yes 15089else 15090 echo "$as_me: failed program was:" >&5 15091sed 's/^/| /' conftest.$ac_ext >&5 15092 15093ac_cv_lib_m_floor=no 15094fi 15095rm -f conftest.err conftest.$ac_objext \ 15096 conftest$ac_exeext conftest.$ac_ext 15097LIBS=$ac_check_lib_save_LIBS 15098fi 15099echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 15100echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 15101if test $ac_cv_lib_m_floor = yes; then 15102 ac_mydns_need_libm=yes 15103else 15104 ac_mydns_need_libm=no 15105fi 15106 15107 test "$ac_mydns_need_libm" = yes && LIBM="-lm" 15108 15109 15110 15111 15112## Declarations 15113echo "$as_me:$LINENO: checking whether strcasecmp is declared" >&5 15114echo $ECHO_N "checking whether strcasecmp is declared... $ECHO_C" >&6 15115if test "${ac_cv_have_decl_strcasecmp+set}" = set; then 15116 echo $ECHO_N "(cached) $ECHO_C" >&6 15117else 15118 cat >conftest.$ac_ext <<_ACEOF 15119/* confdefs.h. */ 15120_ACEOF 15121cat confdefs.h >>conftest.$ac_ext 15122cat >>conftest.$ac_ext <<_ACEOF 15123/* end confdefs.h. */ 15124$ac_includes_default 15125int 15126main () 15127{ 15128#ifndef strcasecmp 15129 char *p = (char *) strcasecmp; 15130#endif 15131 15132 ; 15133 return 0; 15134} 15135_ACEOF 15136rm -f conftest.$ac_objext 15137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15138 (eval $ac_compile) 2>conftest.er1 15139 ac_status=$? 15140 grep -v '^ *+' conftest.er1 >conftest.err 15141 rm -f conftest.er1 15142 cat conftest.err >&5 15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15144 (exit $ac_status); } && 15145 { ac_try='test -z "$ac_c_werror_flag" 15146 || test ! -s conftest.err' 15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15148 (eval $ac_try) 2>&5 15149 ac_status=$? 15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15151 (exit $ac_status); }; } && 15152 { ac_try='test -s conftest.$ac_objext' 15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15154 (eval $ac_try) 2>&5 15155 ac_status=$? 15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15157 (exit $ac_status); }; }; then 15158 ac_cv_have_decl_strcasecmp=yes 15159else 15160 echo "$as_me: failed program was:" >&5 15161sed 's/^/| /' conftest.$ac_ext >&5 15162 15163ac_cv_have_decl_strcasecmp=no 15164fi 15165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15166fi 15167echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcasecmp" >&5 15168echo "${ECHO_T}$ac_cv_have_decl_strcasecmp" >&6 15169if test $ac_cv_have_decl_strcasecmp = yes; then 15170 15171cat >>confdefs.h <<_ACEOF 15172#define HAVE_DECL_STRCASECMP 1 15173_ACEOF 15174 15175 15176else 15177 cat >>confdefs.h <<_ACEOF 15178#define HAVE_DECL_STRCASECMP 0 15179_ACEOF 15180 15181 15182fi 15183echo "$as_me:$LINENO: checking whether strcoll is declared" >&5 15184echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6 15185if test "${ac_cv_have_decl_strcoll+set}" = set; then 15186 echo $ECHO_N "(cached) $ECHO_C" >&6 15187else 15188 cat >conftest.$ac_ext <<_ACEOF 15189/* confdefs.h. */ 15190_ACEOF 15191cat confdefs.h >>conftest.$ac_ext 15192cat >>conftest.$ac_ext <<_ACEOF 15193/* end confdefs.h. */ 15194$ac_includes_default 15195int 15196main () 15197{ 15198#ifndef strcoll 15199 char *p = (char *) strcoll; 15200#endif 15201 15202 ; 15203 return 0; 15204} 15205_ACEOF 15206rm -f conftest.$ac_objext 15207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15208 (eval $ac_compile) 2>conftest.er1 15209 ac_status=$? 15210 grep -v '^ *+' conftest.er1 >conftest.err 15211 rm -f conftest.er1 15212 cat conftest.err >&5 15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15214 (exit $ac_status); } && 15215 { ac_try='test -z "$ac_c_werror_flag" 15216 || test ! -s conftest.err' 15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15218 (eval $ac_try) 2>&5 15219 ac_status=$? 15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15221 (exit $ac_status); }; } && 15222 { ac_try='test -s conftest.$ac_objext' 15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15224 (eval $ac_try) 2>&5 15225 ac_status=$? 15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15227 (exit $ac_status); }; }; then 15228 ac_cv_have_decl_strcoll=yes 15229else 15230 echo "$as_me: failed program was:" >&5 15231sed 's/^/| /' conftest.$ac_ext >&5 15232 15233ac_cv_have_decl_strcoll=no 15234fi 15235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15236fi 15237echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5 15238echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6 15239if test $ac_cv_have_decl_strcoll = yes; then 15240 15241cat >>confdefs.h <<_ACEOF 15242#define HAVE_DECL_STRCOLL 1 15243_ACEOF 15244 15245 15246else 15247 cat >>confdefs.h <<_ACEOF 15248#define HAVE_DECL_STRCOLL 0 15249_ACEOF 15250 15251 15252fi 15253echo "$as_me:$LINENO: checking whether strerror is declared" >&5 15254echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 15255if test "${ac_cv_have_decl_strerror+set}" = set; then 15256 echo $ECHO_N "(cached) $ECHO_C" >&6 15257else 15258 cat >conftest.$ac_ext <<_ACEOF 15259/* confdefs.h. */ 15260_ACEOF 15261cat confdefs.h >>conftest.$ac_ext 15262cat >>conftest.$ac_ext <<_ACEOF 15263/* end confdefs.h. */ 15264$ac_includes_default 15265int 15266main () 15267{ 15268#ifndef strerror 15269 char *p = (char *) strerror; 15270#endif 15271 15272 ; 15273 return 0; 15274} 15275_ACEOF 15276rm -f conftest.$ac_objext 15277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15278 (eval $ac_compile) 2>conftest.er1 15279 ac_status=$? 15280 grep -v '^ *+' conftest.er1 >conftest.err 15281 rm -f conftest.er1 15282 cat conftest.err >&5 15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15284 (exit $ac_status); } && 15285 { ac_try='test -z "$ac_c_werror_flag" 15286 || test ! -s conftest.err' 15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15288 (eval $ac_try) 2>&5 15289 ac_status=$? 15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15291 (exit $ac_status); }; } && 15292 { ac_try='test -s conftest.$ac_objext' 15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15294 (eval $ac_try) 2>&5 15295 ac_status=$? 15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15297 (exit $ac_status); }; }; then 15298 ac_cv_have_decl_strerror=yes 15299else 15300 echo "$as_me: failed program was:" >&5 15301sed 's/^/| /' conftest.$ac_ext >&5 15302 15303ac_cv_have_decl_strerror=no 15304fi 15305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15306fi 15307echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 15308echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 15309if test $ac_cv_have_decl_strerror = yes; then 15310 15311cat >>confdefs.h <<_ACEOF 15312#define HAVE_DECL_STRERROR 1 15313_ACEOF 15314 15315 15316else 15317 cat >>confdefs.h <<_ACEOF 15318#define HAVE_DECL_STRERROR 0 15319_ACEOF 15320 15321 15322fi 15323echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5 15324echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6 15325if test "${ac_cv_have_decl_strncasecmp+set}" = set; then 15326 echo $ECHO_N "(cached) $ECHO_C" >&6 15327else 15328 cat >conftest.$ac_ext <<_ACEOF 15329/* confdefs.h. */ 15330_ACEOF 15331cat confdefs.h >>conftest.$ac_ext 15332cat >>conftest.$ac_ext <<_ACEOF 15333/* end confdefs.h. */ 15334$ac_includes_default 15335int 15336main () 15337{ 15338#ifndef strncasecmp 15339 char *p = (char *) strncasecmp; 15340#endif 15341 15342 ; 15343 return 0; 15344} 15345_ACEOF 15346rm -f conftest.$ac_objext 15347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15348 (eval $ac_compile) 2>conftest.er1 15349 ac_status=$? 15350 grep -v '^ *+' conftest.er1 >conftest.err 15351 rm -f conftest.er1 15352 cat conftest.err >&5 15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15354 (exit $ac_status); } && 15355 { ac_try='test -z "$ac_c_werror_flag" 15356 || test ! -s conftest.err' 15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15358 (eval $ac_try) 2>&5 15359 ac_status=$? 15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15361 (exit $ac_status); }; } && 15362 { ac_try='test -s conftest.$ac_objext' 15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15364 (eval $ac_try) 2>&5 15365 ac_status=$? 15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15367 (exit $ac_status); }; }; then 15368 ac_cv_have_decl_strncasecmp=yes 15369else 15370 echo "$as_me: failed program was:" >&5 15371sed 's/^/| /' conftest.$ac_ext >&5 15372 15373ac_cv_have_decl_strncasecmp=no 15374fi 15375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15376fi 15377echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5 15378echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6 15379if test $ac_cv_have_decl_strncasecmp = yes; then 15380 15381cat >>confdefs.h <<_ACEOF 15382#define HAVE_DECL_STRNCASECMP 1 15383_ACEOF 15384 15385 15386else 15387 cat >>confdefs.h <<_ACEOF 15388#define HAVE_DECL_STRNCASECMP 0 15389_ACEOF 15390 15391 15392fi 15393echo "$as_me:$LINENO: checking whether strsep is declared" >&5 15394echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 15395if test "${ac_cv_have_decl_strsep+set}" = set; then 15396 echo $ECHO_N "(cached) $ECHO_C" >&6 15397else 15398 cat >conftest.$ac_ext <<_ACEOF 15399/* confdefs.h. */ 15400_ACEOF 15401cat confdefs.h >>conftest.$ac_ext 15402cat >>conftest.$ac_ext <<_ACEOF 15403/* end confdefs.h. */ 15404$ac_includes_default 15405int 15406main () 15407{ 15408#ifndef strsep 15409 char *p = (char *) strsep; 15410#endif 15411 15412 ; 15413 return 0; 15414} 15415_ACEOF 15416rm -f conftest.$ac_objext 15417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15418 (eval $ac_compile) 2>conftest.er1 15419 ac_status=$? 15420 grep -v '^ *+' conftest.er1 >conftest.err 15421 rm -f conftest.er1 15422 cat conftest.err >&5 15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15424 (exit $ac_status); } && 15425 { ac_try='test -z "$ac_c_werror_flag" 15426 || test ! -s conftest.err' 15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15428 (eval $ac_try) 2>&5 15429 ac_status=$? 15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15431 (exit $ac_status); }; } && 15432 { ac_try='test -s conftest.$ac_objext' 15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15434 (eval $ac_try) 2>&5 15435 ac_status=$? 15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15437 (exit $ac_status); }; }; then 15438 ac_cv_have_decl_strsep=yes 15439else 15440 echo "$as_me: failed program was:" >&5 15441sed 's/^/| /' conftest.$ac_ext >&5 15442 15443ac_cv_have_decl_strsep=no 15444fi 15445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15446fi 15447echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 15448echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 15449if test $ac_cv_have_decl_strsep = yes; then 15450 15451cat >>confdefs.h <<_ACEOF 15452#define HAVE_DECL_STRSEP 1 15453_ACEOF 15454 15455 15456else 15457 cat >>confdefs.h <<_ACEOF 15458#define HAVE_DECL_STRSEP 0 15459_ACEOF 15460 15461 15462fi 15463 15464 15465 15466 15467## 15468## Package-specific variables 15469## 15470PACKAGE_HOMEPAGE="http://mydns.bboy.net" 15471PACKAGE_COPYRIGHT="Copyright (C) 2002-2005 Don Moore" 15472PACKAGE_AUTHOR="Don Moore <bboy@bboy.net>" 15473 15474 15475## 15476## Some MyDNS-specific checks (see m4/mydns.m4) 15477## 15478 15479 echo "$as_me:$LINENO: checking whether IPv6 is supported" >&5 15480echo $ECHO_N "checking whether IPv6 is supported... $ECHO_C" >&6 15481 cat >conftest.$ac_ext <<_ACEOF 15482/* confdefs.h. */ 15483_ACEOF 15484cat confdefs.h >>conftest.$ac_ext 15485cat >>conftest.$ac_ext <<_ACEOF 15486/* end confdefs.h. */ 15487#include <netinet/in.h> 15488int 15489main () 15490{ 15491struct in6_addr addr; memset(&addr,0,sizeof(struct in6_addr)); 15492 ; 15493 return 0; 15494} 15495_ACEOF 15496rm -f conftest.$ac_objext 15497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15498 (eval $ac_compile) 2>conftest.er1 15499 ac_status=$? 15500 grep -v '^ *+' conftest.er1 >conftest.err 15501 rm -f conftest.er1 15502 cat conftest.err >&5 15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15504 (exit $ac_status); } && 15505 { ac_try='test -z "$ac_c_werror_flag" 15506 || test ! -s conftest.err' 15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15508 (eval $ac_try) 2>&5 15509 ac_status=$? 15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15511 (exit $ac_status); }; } && 15512 { ac_try='test -s conftest.$ac_objext' 15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15514 (eval $ac_try) 2>&5 15515 ac_status=$? 15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15517 (exit $ac_status); }; }; then 15518 15519cat >>confdefs.h <<\_ACEOF 15520#define HAVE_IPV6 1 15521_ACEOF 15522 15523 echo "$as_me:$LINENO: result: yes" >&5 15524echo "${ECHO_T}yes" >&6 15525else 15526 echo "$as_me: failed program was:" >&5 15527sed 's/^/| /' conftest.$ac_ext >&5 15528 15529echo "$as_me:$LINENO: result: no" >&5 15530echo "${ECHO_T}no" >&6 15531fi 15532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15533 15534 # Check IPv6 support 15535 15536 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 15537echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 15538 cat >conftest.$ac_ext <<_ACEOF 15539/* confdefs.h. */ 15540_ACEOF 15541cat confdefs.h >>conftest.$ac_ext 15542cat >>conftest.$ac_ext <<_ACEOF 15543/* end confdefs.h. */ 15544 15545#if HAVE_SYS_TYPES_H 15546# include <sys/types.h> 15547#endif 15548 15549#if HAVE_SYS_SOCKET_H 15550# include <sys/socket.h> 15551#endif 15552 15553int 15554main () 15555{ 15556void *p = &((struct sockaddr *)0L)->sa_len; 15557 ; 15558 return 0; 15559} 15560_ACEOF 15561rm -f conftest.$ac_objext 15562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15563 (eval $ac_compile) 2>conftest.er1 15564 ac_status=$? 15565 grep -v '^ *+' conftest.er1 >conftest.err 15566 rm -f conftest.er1 15567 cat conftest.err >&5 15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15569 (exit $ac_status); } && 15570 { ac_try='test -z "$ac_c_werror_flag" 15571 || test ! -s conftest.err' 15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15573 (eval $ac_try) 2>&5 15574 ac_status=$? 15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15576 (exit $ac_status); }; } && 15577 { ac_try='test -s conftest.$ac_objext' 15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15579 (eval $ac_try) 2>&5 15580 ac_status=$? 15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15582 (exit $ac_status); }; }; then 15583 15584cat >>confdefs.h <<\_ACEOF 15585#define HAVE_SOCKADDR_SA_LEN 1 15586_ACEOF 15587 15588 echo "$as_me:$LINENO: result: yes" >&5 15589echo "${ECHO_T}yes" >&6 15590else 15591 echo "$as_me: failed program was:" >&5 15592sed 's/^/| /' conftest.$ac_ext >&5 15593 15594echo "$as_me:$LINENO: result: no" >&5 15595echo "${ECHO_T}no" >&6 15596fi 15597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15598 15599 # Check for sa_len in struct sockaddr_in 15600 15601 PACKAGE_DATE=`date +"%b %Y"` 15602 PACKAGE_RELEASE_DATE=`date +"%B %d, %Y"` 15603 15604 15605 15606cat >>confdefs.h <<_ACEOF 15607#define PACKAGE_DATE "$PACKAGE_DATE" 15608_ACEOF 15609 15610 15611 15612 15613cat >>confdefs.h <<_ACEOF 15614#define PACKAGE_RELEASE_DATE "$PACKAGE_RELEASE_DATE" 15615_ACEOF 15616 15617 15618 15619 15620cat >>confdefs.h <<_ACEOF 15621#define PACKAGE_HOMEPAGE "$PACKAGE_HOMEPAGE" 15622_ACEOF 15623 15624 15625 15626 15627cat >>confdefs.h <<_ACEOF 15628#define PACKAGE_COPYRIGHT "$PACKAGE_COPYRIGHT" 15629_ACEOF 15630 15631 15632 COPYRIGHT_HOLDER=$PACKAGE_COPYRIGHT 15633 15634 15635 15636 15637cat >>confdefs.h <<_ACEOF 15638#define PACKAGE_AUTHOR "$PACKAGE_AUTHOR" 15639_ACEOF 15640 15641 15642 # Set some package-specific variables 15643 15644 echo "$as_me:$LINENO: checking whether to enable alias patch" >&5 15645echo $ECHO_N "checking whether to enable alias patch... $ECHO_C" >&6 15646 # Check whether --enable-alias or --disable-alias was given. 15647if test "${enable_alias+set}" = set; then 15648 enableval="$enable_alias" 15649 15650 if test "$enableval" = yes 15651 then 15652 15653cat >>confdefs.h <<\_ACEOF 15654#define ALIAS_ENABLED 1 15655_ACEOF 15656 15657 echo "$as_me:$LINENO: result: yes" >&5 15658echo "${ECHO_T}yes" >&6 15659 else 15660 echo "$as_me:$LINENO: result: no" >&5 15661echo "${ECHO_T}no" >&6 15662 fi 15663 15664else 15665 echo "$as_me:$LINENO: result: no" >&5 15666echo "${ECHO_T}no" >&6 15667fi; 15668 15669 # Enable David Phillips aliasing? 15670 15671 echo "$as_me:$LINENO: checking whether to support MySQL" >&5 15672echo $ECHO_N "checking whether to support MySQL... $ECHO_C" >&6 15673 15674# Check whether --with-mysql or --without-mysql was given. 15675if test "${with_mysql+set}" = set; then 15676 withval="$with_mysql" 15677 15678 if test "$withval" = no 15679 then 15680 echo "$as_me:$LINENO: result: no" >&5 15681echo "${ECHO_T}no" >&6 15682 else 15683 echo "$as_me:$LINENO: result: yes" >&5 15684echo "${ECHO_T}yes" >&6 15685 15686 libmysqlclient_dirs="/usr/local/mysql/lib /usr/local/lib/mysql /usr/local/lib /usr/lib/mysql /usr/lib /lib" 15687 15688# Check whether --with-mysql-lib or --without-mysql-lib was given. 15689if test "${with_mysql_lib+set}" = set; then 15690 withval="$with_mysql_lib" 15691 libmysqlclient_dirs="$withval $libmysqlclient_dirs" 15692fi; 15693 libmysqlclient_found=no, libmysqlclient_ok=no 15694 for libmysqlclient_dir in $libmysqlclient_dirs; do 15695 if test "$libmysqlclient_found" != yes; then 15696 as_ac_File=`echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.a" | $as_tr_sh` 15697echo "$as_me:$LINENO: checking for $libmysqlclient_dir/libmysqlclient.a" >&5 15698echo $ECHO_N "checking for $libmysqlclient_dir/libmysqlclient.a... $ECHO_C" >&6 15699if eval "test \"\${$as_ac_File+set}\" = set"; then 15700 echo $ECHO_N "(cached) $ECHO_C" >&6 15701else 15702 test "$cross_compiling" = yes && 15703 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 15704echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 15705 { (exit 1); exit 1; }; } 15706if test -r "$libmysqlclient_dir/libmysqlclient.a"; then 15707 eval "$as_ac_File=yes" 15708else 15709 eval "$as_ac_File=no" 15710fi 15711fi 15712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 15713echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 15714if test `eval echo '${'$as_ac_File'}'` = yes; then 15715 libmysqlclient_found=yes 15716else 15717 libmysqlclient_found=no 15718fi 15719 15720 if test "$libmysqlclient_found" != yes; then 15721 as_ac_File=`echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.so.10" | $as_tr_sh` 15722echo "$as_me:$LINENO: checking for $libmysqlclient_dir/libmysqlclient.so.10" >&5 15723echo $ECHO_N "checking for $libmysqlclient_dir/libmysqlclient.so.10... $ECHO_C" >&6 15724if eval "test \"\${$as_ac_File+set}\" = set"; then 15725 echo $ECHO_N "(cached) $ECHO_C" >&6 15726else 15727 test "$cross_compiling" = yes && 15728 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 15729echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 15730 { (exit 1); exit 1; }; } 15731if test -r "$libmysqlclient_dir/libmysqlclient.so.10"; then 15732 eval "$as_ac_File=yes" 15733else 15734 eval "$as_ac_File=no" 15735fi 15736fi 15737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 15738echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 15739if test `eval echo '${'$as_ac_File'}'` = yes; then 15740 libmysqlclient_found=yes 15741else 15742 libmysqlclient_found=no 15743fi 15744 15745 fi 15746 if test "$libmysqlclient_found" != yes; then 15747 as_ac_File=`echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.so.12" | $as_tr_sh` 15748echo "$as_me:$LINENO: checking for $libmysqlclient_dir/libmysqlclient.so.12" >&5 15749echo $ECHO_N "checking for $libmysqlclient_dir/libmysqlclient.so.12... $ECHO_C" >&6 15750if eval "test \"\${$as_ac_File+set}\" = set"; then 15751 echo $ECHO_N "(cached) $ECHO_C" >&6 15752else 15753 test "$cross_compiling" = yes && 15754 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 15755echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 15756 { (exit 1); exit 1; }; } 15757if test -r "$libmysqlclient_dir/libmysqlclient.so.12"; then 15758 eval "$as_ac_File=yes" 15759else 15760 eval "$as_ac_File=no" 15761fi 15762fi 15763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 15764echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 15765if test `eval echo '${'$as_ac_File'}'` = yes; then 15766 libmysqlclient_found=yes 15767else 15768 libmysqlclient_found=no 15769fi 15770 15771 fi 15772 if test "$libmysqlclient_found" = yes; then 15773 ## libmysqlclient depends on libz 15774 if ! test -n "$LIBZ"; then 15775 15776 ac_zlib_dirs="/lib /usr/lib /usr/local/lib" 15777 15778# Check whether --with-zlib or --without-zlib was given. 15779if test "${with_zlib+set}" = set; then 15780 withval="$with_zlib" 15781 ac_zlib_dirs="$withval $ac_zlib_dirs" 15782fi; 15783 ac_zlib_found=no, ac_zlib_ok=no 15784 for dir in $ac_zlib_dirs 15785 do 15786 if test "$ac_zlib_found" != yes 15787 then 15788 as_ac_File=`echo "ac_cv_file_$dir/libz.a" | $as_tr_sh` 15789echo "$as_me:$LINENO: checking for $dir/libz.a" >&5 15790echo $ECHO_N "checking for $dir/libz.a... $ECHO_C" >&6 15791if eval "test \"\${$as_ac_File+set}\" = set"; then 15792 echo $ECHO_N "(cached) $ECHO_C" >&6 15793else 15794 test "$cross_compiling" = yes && 15795 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 15796echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 15797 { (exit 1); exit 1; }; } 15798if test -r "$dir/libz.a"; then 15799 eval "$as_ac_File=yes" 15800else 15801 eval "$as_ac_File=no" 15802fi 15803fi 15804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 15805echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 15806if test `eval echo '${'$as_ac_File'}'` = yes; then 15807 ac_zlib_found=yes 15808else 15809 ac_zlib_found=no 15810fi 15811 15812 if test "$ac_zlib_found" = yes 15813 then 15814 echo "$as_me:$LINENO: checking for deflate in -lz" >&5 15815echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 15816if test "${ac_cv_lib_z_deflate+set}" = set; then 15817 echo $ECHO_N "(cached) $ECHO_C" >&6 15818else 15819 ac_check_lib_save_LIBS=$LIBS 15820LIBS="-lz $LIBS" 15821cat >conftest.$ac_ext <<_ACEOF 15822/* confdefs.h. */ 15823_ACEOF 15824cat confdefs.h >>conftest.$ac_ext 15825cat >>conftest.$ac_ext <<_ACEOF 15826/* end confdefs.h. */ 15827 15828/* Override any gcc2 internal prototype to avoid an error. */ 15829#ifdef __cplusplus 15830extern "C" 15831#endif 15832/* We use char because int might match the return type of a gcc2 15833 builtin and then its argument prototype would still apply. */ 15834char deflate (); 15835int 15836main () 15837{ 15838deflate (); 15839 ; 15840 return 0; 15841} 15842_ACEOF 15843rm -f conftest.$ac_objext conftest$ac_exeext 15844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15845 (eval $ac_link) 2>conftest.er1 15846 ac_status=$? 15847 grep -v '^ *+' conftest.er1 >conftest.err 15848 rm -f conftest.er1 15849 cat conftest.err >&5 15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15851 (exit $ac_status); } && 15852 { ac_try='test -z "$ac_c_werror_flag" 15853 || test ! -s conftest.err' 15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15855 (eval $ac_try) 2>&5 15856 ac_status=$? 15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15858 (exit $ac_status); }; } && 15859 { ac_try='test -s conftest$ac_exeext' 15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15861 (eval $ac_try) 2>&5 15862 ac_status=$? 15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15864 (exit $ac_status); }; }; then 15865 ac_cv_lib_z_deflate=yes 15866else 15867 echo "$as_me: failed program was:" >&5 15868sed 's/^/| /' conftest.$ac_ext >&5 15869 15870ac_cv_lib_z_deflate=no 15871fi 15872rm -f conftest.err conftest.$ac_objext \ 15873 conftest$ac_exeext conftest.$ac_ext 15874LIBS=$ac_check_lib_save_LIBS 15875fi 15876echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 15877echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 15878if test $ac_cv_lib_z_deflate = yes; then 15879 ac_zlib_ok=yes 15880else 15881 ac_zlib_ok=no 15882fi 15883 15884 if test "$ac_zlib_ok" = yes 15885 then 15886 LIBZ="-L$dir -lz" 15887 fi 15888 fi 15889 fi 15890 done 15891 15892 15893 15894 fi 15895 if ! test -n "$LIBZ"; then 15896 ## No zlib 15897 { { echo "$as_me:$LINENO: error: 15898 15899 ### 15900 ### zlib compression library (libz.a) not found. 15901 ### 15902 ### Please download and install the zlib compression 15903 ### library from the following URL: 15904 ### 15905 ### http://www.gzip.org/zlib/ 15906 ### 15907 ### (Error detail might be available in \`config.log') 15908 ### 15909" >&5 15910echo "$as_me: error: 15911 15912 ### 15913 ### zlib compression library (libz.a) not found. 15914 ### 15915 ### Please download and install the zlib compression 15916 ### library from the following URL: 15917 ### 15918 ### http://www.gzip.org/zlib/ 15919 ### 15920 ### (Error detail might be available in \`config.log') 15921 ### 15922" >&2;} 15923 { (exit 1); exit 1; }; } 15924 fi 15925 LIBMYSQLCLIENT="-L$libmysqlclient_dir -lmysqlclient" 15926 #LIBMYSQLCLIENT="$libmysqlclient_dir/libmysqlclient.a" 15927 libmysqlclient_found=yes 15928 fi 15929 fi 15930 done 15931 15932 15933 15934 15935 ac_mydns_header_dirs="/usr/include /usr/include/mysql /usr/local/include \ 15936 /usr/local/include/mysql /usr/local/mysql/include" 15937 ac_mydns_header_found=no, ac_mydns_header_ok=no 15938 15939# Check whether --with-mysql-include or --without-mysql-include was given. 15940if test "${with_mysql_include+set}" = set; then 15941 withval="$with_mysql_include" 15942 ac_mydns_header_dirs="$withval $ac_mydns_header_dirs" 15943fi; 15944 for dir in $ac_mydns_header_dirs 15945 do 15946 if test "$ac_mydns_header_found" != yes 15947 then 15948 as_ac_File=`echo "ac_cv_file_$dir/mysql.h" | $as_tr_sh` 15949echo "$as_me:$LINENO: checking for $dir/mysql.h" >&5 15950echo $ECHO_N "checking for $dir/mysql.h... $ECHO_C" >&6 15951if eval "test \"\${$as_ac_File+set}\" = set"; then 15952 echo $ECHO_N "(cached) $ECHO_C" >&6 15953else 15954 test "$cross_compiling" = yes && 15955 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 15956echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 15957 { (exit 1); exit 1; }; } 15958if test -r "$dir/mysql.h"; then 15959 eval "$as_ac_File=yes" 15960else 15961 eval "$as_ac_File=no" 15962fi 15963fi 15964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 15965echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 15966if test `eval echo '${'$as_ac_File'}'` = yes; then 15967 ac_mydns_header_found=yes 15968else 15969 ac_mydns_header_found=no 15970fi 15971 15972 test "$ac_mydns_header_found" = yes && MYSQL_INCLUDE="-I$dir" 15973 fi 15974 done 15975 15976 15977 15978 fi 15979 15980else 15981 15982 echo "$as_me:$LINENO: result: yes" >&5 15983echo "${ECHO_T}yes" >&6 15984 15985 libmysqlclient_dirs="/usr/local/mysql/lib /usr/local/lib/mysql /usr/local/lib /usr/lib/mysql /usr/lib /lib" 15986 15987# Check whether --with-mysql-lib or --without-mysql-lib was given. 15988if test "${with_mysql_lib+set}" = set; then 15989 withval="$with_mysql_lib" 15990 libmysqlclient_dirs="$withval $libmysqlclient_dirs" 15991fi; 15992 libmysqlclient_found=no, libmysqlclient_ok=no 15993 for libmysqlclient_dir in $libmysqlclient_dirs; do 15994 if test "$libmysqlclient_found" != yes; then 15995 as_ac_File=`echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.a" | $as_tr_sh` 15996echo "$as_me:$LINENO: checking for $libmysqlclient_dir/libmysqlclient.a" >&5 15997echo $ECHO_N "checking for $libmysqlclient_dir/libmysqlclient.a... $ECHO_C" >&6 15998if eval "test \"\${$as_ac_File+set}\" = set"; then 15999 echo $ECHO_N "(cached) $ECHO_C" >&6 16000else 16001 test "$cross_compiling" = yes && 16002 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16003echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16004 { (exit 1); exit 1; }; } 16005if test -r "$libmysqlclient_dir/libmysqlclient.a"; then 16006 eval "$as_ac_File=yes" 16007else 16008 eval "$as_ac_File=no" 16009fi 16010fi 16011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16012echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16013if test `eval echo '${'$as_ac_File'}'` = yes; then 16014 libmysqlclient_found=yes 16015else 16016 libmysqlclient_found=no 16017fi 16018 16019 if test "$libmysqlclient_found" != yes; then 16020 as_ac_File=`echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.so.10" | $as_tr_sh` 16021echo "$as_me:$LINENO: checking for $libmysqlclient_dir/libmysqlclient.so.10" >&5 16022echo $ECHO_N "checking for $libmysqlclient_dir/libmysqlclient.so.10... $ECHO_C" >&6 16023if eval "test \"\${$as_ac_File+set}\" = set"; then 16024 echo $ECHO_N "(cached) $ECHO_C" >&6 16025else 16026 test "$cross_compiling" = yes && 16027 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16028echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16029 { (exit 1); exit 1; }; } 16030if test -r "$libmysqlclient_dir/libmysqlclient.so.10"; then 16031 eval "$as_ac_File=yes" 16032else 16033 eval "$as_ac_File=no" 16034fi 16035fi 16036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16037echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16038if test `eval echo '${'$as_ac_File'}'` = yes; then 16039 libmysqlclient_found=yes 16040else 16041 libmysqlclient_found=no 16042fi 16043 16044 fi 16045 if test "$libmysqlclient_found" != yes; then 16046 as_ac_File=`echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.so.12" | $as_tr_sh` 16047echo "$as_me:$LINENO: checking for $libmysqlclient_dir/libmysqlclient.so.12" >&5 16048echo $ECHO_N "checking for $libmysqlclient_dir/libmysqlclient.so.12... $ECHO_C" >&6 16049if eval "test \"\${$as_ac_File+set}\" = set"; then 16050 echo $ECHO_N "(cached) $ECHO_C" >&6 16051else 16052 test "$cross_compiling" = yes && 16053 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16054echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16055 { (exit 1); exit 1; }; } 16056if test -r "$libmysqlclient_dir/libmysqlclient.so.12"; then 16057 eval "$as_ac_File=yes" 16058else 16059 eval "$as_ac_File=no" 16060fi 16061fi 16062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16063echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16064if test `eval echo '${'$as_ac_File'}'` = yes; then 16065 libmysqlclient_found=yes 16066else 16067 libmysqlclient_found=no 16068fi 16069 16070 fi 16071 if test "$libmysqlclient_found" = yes; then 16072 ## libmysqlclient depends on libz 16073 if ! test -n "$LIBZ"; then 16074 16075 ac_zlib_dirs="/lib /usr/lib /usr/local/lib" 16076 16077# Check whether --with-zlib or --without-zlib was given. 16078if test "${with_zlib+set}" = set; then 16079 withval="$with_zlib" 16080 ac_zlib_dirs="$withval $ac_zlib_dirs" 16081fi; 16082 ac_zlib_found=no, ac_zlib_ok=no 16083 for dir in $ac_zlib_dirs 16084 do 16085 if test "$ac_zlib_found" != yes 16086 then 16087 as_ac_File=`echo "ac_cv_file_$dir/libz.a" | $as_tr_sh` 16088echo "$as_me:$LINENO: checking for $dir/libz.a" >&5 16089echo $ECHO_N "checking for $dir/libz.a... $ECHO_C" >&6 16090if eval "test \"\${$as_ac_File+set}\" = set"; then 16091 echo $ECHO_N "(cached) $ECHO_C" >&6 16092else 16093 test "$cross_compiling" = yes && 16094 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16095echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16096 { (exit 1); exit 1; }; } 16097if test -r "$dir/libz.a"; then 16098 eval "$as_ac_File=yes" 16099else 16100 eval "$as_ac_File=no" 16101fi 16102fi 16103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16104echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16105if test `eval echo '${'$as_ac_File'}'` = yes; then 16106 ac_zlib_found=yes 16107else 16108 ac_zlib_found=no 16109fi 16110 16111 if test "$ac_zlib_found" = yes 16112 then 16113 echo "$as_me:$LINENO: checking for deflate in -lz" >&5 16114echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 16115if test "${ac_cv_lib_z_deflate+set}" = set; then 16116 echo $ECHO_N "(cached) $ECHO_C" >&6 16117else 16118 ac_check_lib_save_LIBS=$LIBS 16119LIBS="-lz $LIBS" 16120cat >conftest.$ac_ext <<_ACEOF 16121/* confdefs.h. */ 16122_ACEOF 16123cat confdefs.h >>conftest.$ac_ext 16124cat >>conftest.$ac_ext <<_ACEOF 16125/* end confdefs.h. */ 16126 16127/* Override any gcc2 internal prototype to avoid an error. */ 16128#ifdef __cplusplus 16129extern "C" 16130#endif 16131/* We use char because int might match the return type of a gcc2 16132 builtin and then its argument prototype would still apply. */ 16133char deflate (); 16134int 16135main () 16136{ 16137deflate (); 16138 ; 16139 return 0; 16140} 16141_ACEOF 16142rm -f conftest.$ac_objext conftest$ac_exeext 16143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16144 (eval $ac_link) 2>conftest.er1 16145 ac_status=$? 16146 grep -v '^ *+' conftest.er1 >conftest.err 16147 rm -f conftest.er1 16148 cat conftest.err >&5 16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16150 (exit $ac_status); } && 16151 { ac_try='test -z "$ac_c_werror_flag" 16152 || test ! -s conftest.err' 16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16154 (eval $ac_try) 2>&5 16155 ac_status=$? 16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16157 (exit $ac_status); }; } && 16158 { ac_try='test -s conftest$ac_exeext' 16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16160 (eval $ac_try) 2>&5 16161 ac_status=$? 16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16163 (exit $ac_status); }; }; then 16164 ac_cv_lib_z_deflate=yes 16165else 16166 echo "$as_me: failed program was:" >&5 16167sed 's/^/| /' conftest.$ac_ext >&5 16168 16169ac_cv_lib_z_deflate=no 16170fi 16171rm -f conftest.err conftest.$ac_objext \ 16172 conftest$ac_exeext conftest.$ac_ext 16173LIBS=$ac_check_lib_save_LIBS 16174fi 16175echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 16176echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 16177if test $ac_cv_lib_z_deflate = yes; then 16178 ac_zlib_ok=yes 16179else 16180 ac_zlib_ok=no 16181fi 16182 16183 if test "$ac_zlib_ok" = yes 16184 then 16185 LIBZ="-L$dir -lz" 16186 fi 16187 fi 16188 fi 16189 done 16190 16191 16192 16193 fi 16194 if ! test -n "$LIBZ"; then 16195 ## No zlib 16196 { { echo "$as_me:$LINENO: error: 16197 16198 ### 16199 ### zlib compression library (libz.a) not found. 16200 ### 16201 ### Please download and install the zlib compression 16202 ### library from the following URL: 16203 ### 16204 ### http://www.gzip.org/zlib/ 16205 ### 16206 ### (Error detail might be available in \`config.log') 16207 ### 16208" >&5 16209echo "$as_me: error: 16210 16211 ### 16212 ### zlib compression library (libz.a) not found. 16213 ### 16214 ### Please download and install the zlib compression 16215 ### library from the following URL: 16216 ### 16217 ### http://www.gzip.org/zlib/ 16218 ### 16219 ### (Error detail might be available in \`config.log') 16220 ### 16221" >&2;} 16222 { (exit 1); exit 1; }; } 16223 fi 16224 LIBMYSQLCLIENT="-L$libmysqlclient_dir -lmysqlclient" 16225 #LIBMYSQLCLIENT="$libmysqlclient_dir/libmysqlclient.a" 16226 libmysqlclient_found=yes 16227 fi 16228 fi 16229 done 16230 16231 16232 16233 16234 ac_mydns_header_dirs="/usr/include /usr/include/mysql /usr/local/include \ 16235 /usr/local/include/mysql /usr/local/mysql/include" 16236 ac_mydns_header_found=no, ac_mydns_header_ok=no 16237 16238# Check whether --with-mysql-include or --without-mysql-include was given. 16239if test "${with_mysql_include+set}" = set; then 16240 withval="$with_mysql_include" 16241 ac_mydns_header_dirs="$withval $ac_mydns_header_dirs" 16242fi; 16243 for dir in $ac_mydns_header_dirs 16244 do 16245 if test "$ac_mydns_header_found" != yes 16246 then 16247 as_ac_File=`echo "ac_cv_file_$dir/mysql.h" | $as_tr_sh` 16248echo "$as_me:$LINENO: checking for $dir/mysql.h" >&5 16249echo $ECHO_N "checking for $dir/mysql.h... $ECHO_C" >&6 16250if eval "test \"\${$as_ac_File+set}\" = set"; then 16251 echo $ECHO_N "(cached) $ECHO_C" >&6 16252else 16253 test "$cross_compiling" = yes && 16254 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16255echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16256 { (exit 1); exit 1; }; } 16257if test -r "$dir/mysql.h"; then 16258 eval "$as_ac_File=yes" 16259else 16260 eval "$as_ac_File=no" 16261fi 16262fi 16263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16264echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16265if test `eval echo '${'$as_ac_File'}'` = yes; then 16266 ac_mydns_header_found=yes 16267else 16268 ac_mydns_header_found=no 16269fi 16270 16271 test "$ac_mydns_header_found" = yes && MYSQL_INCLUDE="-I$dir" 16272 fi 16273 done 16274 16275 16276 16277 16278 16279fi; 16280 16281 # Check for MySQL support 16282 16283 echo "$as_me:$LINENO: checking whether to support PostgreSQL" >&5 16284echo $ECHO_N "checking whether to support PostgreSQL... $ECHO_C" >&6 16285 16286# Check whether --with-pgsql or --without-pgsql was given. 16287if test "${with_pgsql+set}" = set; then 16288 withval="$with_pgsql" 16289 16290 if test "$withval" = no 16291 then 16292 echo "$as_me:$LINENO: result: no" >&5 16293echo "${ECHO_T}no" >&6 16294 else 16295 echo "$as_me:$LINENO: result: yes" >&5 16296echo "${ECHO_T}yes" >&6 16297 16298 ac_mydns_lib_dirs="/usr/local/pgsql/lib /lib /usr/lib /usr/local/lib" 16299 16300# Check whether --with-pgsql-lib or --without-pgsql-lib was given. 16301if test "${with_pgsql_lib+set}" = set; then 16302 withval="$with_pgsql_lib" 16303 ac_mydns_lib_dirs="$withval $ac_mydns_lib_dirs" 16304fi; 16305 ac_mydns_lib_found=no, ac_mydns_lib_ok=no 16306 ac_mydns_libs="$LDFLAGS" 16307 for dir in $ac_mydns_lib_dirs 16308 do 16309 if test "$ac_mydns_lib_found" != yes 16310 then 16311 as_ac_File=`echo "ac_cv_file_$dir/libpq.a" | $as_tr_sh` 16312echo "$as_me:$LINENO: checking for $dir/libpq.a" >&5 16313echo $ECHO_N "checking for $dir/libpq.a... $ECHO_C" >&6 16314if eval "test \"\${$as_ac_File+set}\" = set"; then 16315 echo $ECHO_N "(cached) $ECHO_C" >&6 16316else 16317 test "$cross_compiling" = yes && 16318 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16319echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16320 { (exit 1); exit 1; }; } 16321if test -r "$dir/libpq.a"; then 16322 eval "$as_ac_File=yes" 16323else 16324 eval "$as_ac_File=no" 16325fi 16326fi 16327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16328echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16329if test `eval echo '${'$as_ac_File'}'` = yes; then 16330 ac_mydns_lib_found=yes 16331else 16332 ac_mydns_lib_found=no 16333fi 16334 16335 if test "$ac_mydns_lib_found" = "yes"; then 16336 LIBPQ="-L$dir -lpq" 16337 16338 fi 16339 fi 16340 done 16341 16342 16343 16344 16345 ac_mydns_header_dirs="/usr/local/pgsql/include /usr/include/postgresql \ 16346 /usr/include /usr/local/include" 16347 ac_mydns_header_found=no, ac_mydns_header_ok=no 16348 16349# Check whether --with-pgsql-include or --without-pgsql-include was given. 16350if test "${with_pgsql_include+set}" = set; then 16351 withval="$with_pgsql_include" 16352 ac_mydns_header_dirs="$withval $ac_mydns_header_dirs" 16353fi; 16354 for dir in $ac_mydns_header_dirs 16355 do 16356 if test "$ac_mydns_header_found" != yes 16357 then 16358 as_ac_File=`echo "ac_cv_file_$dir/libpq-fe.h" | $as_tr_sh` 16359echo "$as_me:$LINENO: checking for $dir/libpq-fe.h" >&5 16360echo $ECHO_N "checking for $dir/libpq-fe.h... $ECHO_C" >&6 16361if eval "test \"\${$as_ac_File+set}\" = set"; then 16362 echo $ECHO_N "(cached) $ECHO_C" >&6 16363else 16364 test "$cross_compiling" = yes && 16365 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16366echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16367 { (exit 1); exit 1; }; } 16368if test -r "$dir/libpq-fe.h"; then 16369 eval "$as_ac_File=yes" 16370else 16371 eval "$as_ac_File=no" 16372fi 16373fi 16374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16375echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16376if test `eval echo '${'$as_ac_File'}'` = yes; then 16377 ac_mydns_header_found=yes 16378else 16379 ac_mydns_header_found=no 16380fi 16381 16382 if test "$ac_mydns_header_found" = yes 16383 then 16384 PQ_INCLUDE="-I$dir" 16385 16386 echo "$as_me:$LINENO: checking for PostgreSQL version number" >&5 16387echo $ECHO_N "checking for PostgreSQL version number... $ECHO_C" >&6 16388 PG_VERSION=`grep "PG_VERSION " /usr/local/pgsql/include/pg_config.h | cut -f3 -d' '` 16389 echo "$as_me:$LINENO: result: $PG_VERSION" >&5 16390echo "${ECHO_T}$PG_VERSION" >&6 16391 16392cat >>confdefs.h <<_ACEOF 16393#define PGSQL_VERSION $PG_VERSION 16394_ACEOF 16395 16396 16397 as_ac_File=`echo "ac_cv_file_$dir/pg_config.h" | $as_tr_sh` 16398echo "$as_me:$LINENO: checking for $dir/pg_config.h" >&5 16399echo $ECHO_N "checking for $dir/pg_config.h... $ECHO_C" >&6 16400if eval "test \"\${$as_ac_File+set}\" = set"; then 16401 echo $ECHO_N "(cached) $ECHO_C" >&6 16402else 16403 test "$cross_compiling" = yes && 16404 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16405echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16406 { (exit 1); exit 1; }; } 16407if test -r "$dir/pg_config.h"; then 16408 eval "$as_ac_File=yes" 16409else 16410 eval "$as_ac_File=no" 16411fi 16412fi 16413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16414echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16415if test `eval echo '${'$as_ac_File'}'` = yes; then 16416 16417cat >>confdefs.h <<\_ACEOF 16418#define HAVE_PGCONFIG 1 16419_ACEOF 16420 16421fi 16422 16423 fi 16424 fi 16425 done 16426 16427 16428 16429 fi 16430 16431else 16432 16433 echo "$as_me:$LINENO: result: yes" >&5 16434echo "${ECHO_T}yes" >&6 16435 16436 ac_mydns_lib_dirs="/usr/local/pgsql/lib /lib /usr/lib /usr/local/lib" 16437 16438# Check whether --with-pgsql-lib or --without-pgsql-lib was given. 16439if test "${with_pgsql_lib+set}" = set; then 16440 withval="$with_pgsql_lib" 16441 ac_mydns_lib_dirs="$withval $ac_mydns_lib_dirs" 16442fi; 16443 ac_mydns_lib_found=no, ac_mydns_lib_ok=no 16444 ac_mydns_libs="$LDFLAGS" 16445 for dir in $ac_mydns_lib_dirs 16446 do 16447 if test "$ac_mydns_lib_found" != yes 16448 then 16449 as_ac_File=`echo "ac_cv_file_$dir/libpq.a" | $as_tr_sh` 16450echo "$as_me:$LINENO: checking for $dir/libpq.a" >&5 16451echo $ECHO_N "checking for $dir/libpq.a... $ECHO_C" >&6 16452if eval "test \"\${$as_ac_File+set}\" = set"; then 16453 echo $ECHO_N "(cached) $ECHO_C" >&6 16454else 16455 test "$cross_compiling" = yes && 16456 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16457echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16458 { (exit 1); exit 1; }; } 16459if test -r "$dir/libpq.a"; then 16460 eval "$as_ac_File=yes" 16461else 16462 eval "$as_ac_File=no" 16463fi 16464fi 16465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16466echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16467if test `eval echo '${'$as_ac_File'}'` = yes; then 16468 ac_mydns_lib_found=yes 16469else 16470 ac_mydns_lib_found=no 16471fi 16472 16473 if test "$ac_mydns_lib_found" = "yes"; then 16474 LIBPQ="-L$dir -lpq" 16475 16476 fi 16477 fi 16478 done 16479 16480 16481 16482 16483 ac_mydns_header_dirs="/usr/local/pgsql/include /usr/include/postgresql \ 16484 /usr/include /usr/local/include" 16485 ac_mydns_header_found=no, ac_mydns_header_ok=no 16486 16487# Check whether --with-pgsql-include or --without-pgsql-include was given. 16488if test "${with_pgsql_include+set}" = set; then 16489 withval="$with_pgsql_include" 16490 ac_mydns_header_dirs="$withval $ac_mydns_header_dirs" 16491fi; 16492 for dir in $ac_mydns_header_dirs 16493 do 16494 if test "$ac_mydns_header_found" != yes 16495 then 16496 as_ac_File=`echo "ac_cv_file_$dir/libpq-fe.h" | $as_tr_sh` 16497echo "$as_me:$LINENO: checking for $dir/libpq-fe.h" >&5 16498echo $ECHO_N "checking for $dir/libpq-fe.h... $ECHO_C" >&6 16499if eval "test \"\${$as_ac_File+set}\" = set"; then 16500 echo $ECHO_N "(cached) $ECHO_C" >&6 16501else 16502 test "$cross_compiling" = yes && 16503 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16504echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16505 { (exit 1); exit 1; }; } 16506if test -r "$dir/libpq-fe.h"; then 16507 eval "$as_ac_File=yes" 16508else 16509 eval "$as_ac_File=no" 16510fi 16511fi 16512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16513echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16514if test `eval echo '${'$as_ac_File'}'` = yes; then 16515 ac_mydns_header_found=yes 16516else 16517 ac_mydns_header_found=no 16518fi 16519 16520 if test "$ac_mydns_header_found" = yes 16521 then 16522 PQ_INCLUDE="-I$dir" 16523 16524 echo "$as_me:$LINENO: checking for PostgreSQL version number" >&5 16525echo $ECHO_N "checking for PostgreSQL version number... $ECHO_C" >&6 16526 PG_VERSION=`grep "PG_VERSION " /usr/local/pgsql/include/pg_config.h | cut -f3 -d' '` 16527 echo "$as_me:$LINENO: result: $PG_VERSION" >&5 16528echo "${ECHO_T}$PG_VERSION" >&6 16529 16530cat >>confdefs.h <<_ACEOF 16531#define PGSQL_VERSION $PG_VERSION 16532_ACEOF 16533 16534 16535 as_ac_File=`echo "ac_cv_file_$dir/pg_config.h" | $as_tr_sh` 16536echo "$as_me:$LINENO: checking for $dir/pg_config.h" >&5 16537echo $ECHO_N "checking for $dir/pg_config.h... $ECHO_C" >&6 16538if eval "test \"\${$as_ac_File+set}\" = set"; then 16539 echo $ECHO_N "(cached) $ECHO_C" >&6 16540else 16541 test "$cross_compiling" = yes && 16542 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16543echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16544 { (exit 1); exit 1; }; } 16545if test -r "$dir/pg_config.h"; then 16546 eval "$as_ac_File=yes" 16547else 16548 eval "$as_ac_File=no" 16549fi 16550fi 16551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16552echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16553if test `eval echo '${'$as_ac_File'}'` = yes; then 16554 16555cat >>confdefs.h <<\_ACEOF 16556#define HAVE_PGCONFIG 1 16557_ACEOF 16558 16559fi 16560 16561 fi 16562 fi 16563 done 16564 16565 16566 16567 16568 16569fi; 16570 16571 # Check for PostgreSQL support 16572 16573 echo "$as_me:$LINENO: checking whether to compile with OpenSSL support" >&5 16574echo $ECHO_N "checking whether to compile with OpenSSL support... $ECHO_C" >&6 16575 16576# Check whether --with-openssl or --without-openssl was given. 16577if test "${with_openssl+set}" = set; then 16578 withval="$with_openssl" 16579 16580 if test "$withval" = "yes"; then 16581 echo "$as_me:$LINENO: result: yes" >&5 16582echo "${ECHO_T}yes" >&6 16583 16584 ac_ssl_lib_dirs="/lib /usr/lib /usr/local/lib /usr/ssl/lib /usr/local/ssl/lib" 16585 16586# Check whether --with-openssl-lib or --without-openssl-lib was given. 16587if test "${with_openssl_lib+set}" = set; then 16588 withval="$with_openssl_lib" 16589 ac_ssl_lib_dirs="$withval $ac_ssl_lib_dirs" 16590fi; 16591 ac_ssl_lib_found=no 16592 ac_mydns_libs="$LDFLAGS" 16593 for dir in $ac_ssl_lib_dirs 16594 do 16595 if test "$ac_ssl_lib_found" != yes 16596 then 16597 as_ac_File=`echo "ac_cv_file_$dir/libssl.a" | $as_tr_sh` 16598echo "$as_me:$LINENO: checking for $dir/libssl.a" >&5 16599echo $ECHO_N "checking for $dir/libssl.a... $ECHO_C" >&6 16600if eval "test \"\${$as_ac_File+set}\" = set"; then 16601 echo $ECHO_N "(cached) $ECHO_C" >&6 16602else 16603 test "$cross_compiling" = yes && 16604 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16605echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16606 { (exit 1); exit 1; }; } 16607if test -r "$dir/libssl.a"; then 16608 eval "$as_ac_File=yes" 16609else 16610 eval "$as_ac_File=no" 16611fi 16612fi 16613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16614echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16615if test `eval echo '${'$as_ac_File'}'` = yes; then 16616 ac_ssl_lib_found=yes 16617else 16618 ac_ssl_lib_found=no 16619fi 16620 16621 if test "$ac_ssl_lib_found" = yes 16622 then 16623 LIBSSL="-L$dir -lssl -lcrypto" 16624 fi 16625 fi 16626 done 16627 if test "$ac_ssl_lib_found" != yes 16628 then 16629 { { echo "$as_me:$LINENO: error: 16630 16631 ### 16632 ### OpenSSL libraries (libssl.a/libcrypto.a) not found! 16633 ### 16634 ### If your OpenSSL libraries are in an unusual location, 16635 ### specify the directory where they are located with: 16636 ### 16637 ### --with-openssl-lib=DIR 16638 ### 16639 ### If you don't have the OpenSSL development files on your 16640 ### system, download and install them from the following URL: 16641 ### 16642 ### http://www.openssl.org/ 16643 ### 16644 ### (Error detail might be available in \`config.log') 16645 ### 16646" >&5 16647echo "$as_me: error: 16648 16649 ### 16650 ### OpenSSL libraries (libssl.a/libcrypto.a) not found! 16651 ### 16652 ### If your OpenSSL libraries are in an unusual location, 16653 ### specify the directory where they are located with: 16654 ### 16655 ### --with-openssl-lib=DIR 16656 ### 16657 ### If you don't have the OpenSSL development files on your 16658 ### system, download and install them from the following URL: 16659 ### 16660 ### http://www.openssl.org/ 16661 ### 16662 ### (Error detail might be available in \`config.log') 16663 ### 16664" >&2;} 16665 { (exit 1); exit 1; }; } 16666 fi 16667 16668 16669 16670 16671 ac_ssl_header_dirs="/usr/include /usr/local/include /usr/include/ssl /usr/ssl/include /usr/local/ssl/include" 16672 ac_ssl_header_found=no, ac_ssl_header_ok=no 16673 16674# Check whether --with-openssl-include or --without-openssl-include was given. 16675if test "${with_openssl_include+set}" = set; then 16676 withval="$with_openssl_include" 16677 ac_ssl_header_dirs="$withval $ac_ssl_header_dirs" 16678fi; 16679 for dir in $ac_ssl_header_dirs 16680 do 16681 if test "$ac_ssl_header_found" != yes 16682 then 16683 as_ac_File=`echo "ac_cv_file_$dir/openssl/ssl.h" | $as_tr_sh` 16684echo "$as_me:$LINENO: checking for $dir/openssl/ssl.h" >&5 16685echo $ECHO_N "checking for $dir/openssl/ssl.h... $ECHO_C" >&6 16686if eval "test \"\${$as_ac_File+set}\" = set"; then 16687 echo $ECHO_N "(cached) $ECHO_C" >&6 16688else 16689 test "$cross_compiling" = yes && 16690 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 16691echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 16692 { (exit 1); exit 1; }; } 16693if test -r "$dir/openssl/ssl.h"; then 16694 eval "$as_ac_File=yes" 16695else 16696 eval "$as_ac_File=no" 16697fi 16698fi 16699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 16700echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 16701if test `eval echo '${'$as_ac_File'}'` = yes; then 16702 ac_ssl_header_found=yes 16703else 16704 ac_ssl_header_found=no 16705fi 16706 16707 test "$ac_ssl_header_found" = yes && SSL_INCLUDE="-I$dir" 16708 fi 16709 done 16710 if test "$ac_ssl_header_found" != yes 16711 then 16712 { { echo "$as_me:$LINENO: error: 16713 16714 ### 16715 ### OpenSSL header file (openssl/ssl.h) not found! 16716 ### 16717 ### If your OpenSSL header files are in an unusual location, 16718 ### specify the directory where they are located with: 16719 ### 16720 ### --with-openssl-include=DIR 16721 ### 16722 ### If you don't have the OpenSSL development files on your 16723 ### system, download and install them from the following URL: 16724 ### 16725 ### http://www.openssl.org/ 16726 ### 16727 ### (Error detail might be available in \`config.log') 16728 ### 16729" >&5 16730echo "$as_me: error: 16731 16732 ### 16733 ### OpenSSL header file (openssl/ssl.h) not found! 16734 ### 16735 ### If your OpenSSL header files are in an unusual location, 16736 ### specify the directory where they are located with: 16737 ### 16738 ### --with-openssl-include=DIR 16739 ### 16740 ### If you don't have the OpenSSL development files on your 16741 ### system, download and install them from the following URL: 16742 ### 16743 ### http://www.openssl.org/ 16744 ### 16745 ### (Error detail might be available in \`config.log') 16746 ### 16747" >&2;} 16748 { (exit 1); exit 1; }; } 16749 16750 fi 16751 16752cat >>confdefs.h <<\_ACEOF 16753#define WITH_SSL 1 16754_ACEOF 16755 16756 16757 16758 16759 else 16760 echo "$as_me:$LINENO: result: no" >&5 16761echo "${ECHO_T}no" >&6 16762 fi 16763 16764else 16765 16766 echo "$as_me:$LINENO: result: no" >&5 16767echo "${ECHO_T}no" >&6 16768 16769 16770fi; 16771 16772 # Check if OpenSSL is desired 16773 16774 echo "$as_me:$LINENO: checking for default config file location" >&5 16775echo $ECHO_N "checking for default config file location... $ECHO_C" >&6 16776 16777# Check whether --with-confdir or --without-confdir was given. 16778if test "${with_confdir+set}" = set; then 16779 withval="$with_confdir" 16780 ac_mydns_conf="$withval/mydns.conf" 16781else 16782 ac_mydns_conf="/etc/mydns.conf" 16783fi; 16784 MYDNS_CONF="$ac_mydns_conf" 16785 16786 16787cat >>confdefs.h <<_ACEOF 16788#define MYDNS_CONF "$MYDNS_CONF" 16789_ACEOF 16790 16791 echo "$as_me:$LINENO: result: $MYDNS_CONF" >&5 16792echo "${ECHO_T}$MYDNS_CONF" >&6 16793 16794 # Set conf file location 16795 16796 echo "$as_me:$LINENO: checking whether to build static binary" >&5 16797echo $ECHO_N "checking whether to build static binary... $ECHO_C" >&6 16798 # Check whether --enable-static-build or --disable-static-build was given. 16799if test "${enable_static_build+set}" = set; then 16800 enableval="$enable_static_build" 16801 16802 if test "$enableval" = yes 16803 then 16804 echo "$as_me:$LINENO: result: yes" >&5 16805echo "${ECHO_T}yes" >&6 16806 LDFLAGS="$LDFLAGS -all-static" 16807 ac_mydns_static_build=yes 16808 16809 16810 ## PostgreSQL client library needs libcrypt if statically compiled 16811 if test -n "$LIBPQ"; then 16812 LIBPQ="$LIBPQ -lcrypt" 16813 fi 16814 16815 else 16816 echo "$as_me:$LINENO: result: no" >&5 16817echo "${ECHO_T}no" >&6 16818 fi 16819 16820else 16821 echo "$as_me:$LINENO: result: no" >&5 16822echo "${ECHO_T}no" >&6 16823fi; 16824 16825 # Build static binary? 16826 16827 echo "$as_me:$LINENO: checking for MySQL support" >&5 16828echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6 16829 if test -n "$LIBMYSQLCLIENT" -a -n "$MYSQL_INCLUDE"; then 16830 echo "$as_me:$LINENO: result: yes" >&5 16831echo "${ECHO_T}yes" >&6 16832 mysql_found=yes 16833 else 16834 echo "$as_me:$LINENO: result: no" >&5 16835echo "${ECHO_T}no" >&6 16836 mysql_found=no 16837 fi 16838 16839 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5 16840echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6 16841 if test -n "$LIBPQ" -a -n "$PQ_INCLUDE"; then 16842 echo "$as_me:$LINENO: result: yes" >&5 16843echo "${ECHO_T}yes" >&6 16844 pgsql_found=yes 16845 else 16846 echo "$as_me:$LINENO: result: no" >&5 16847echo "${ECHO_T}no" >&6 16848 pgsql_found=no 16849 fi 16850 16851 echo "$as_me:$LINENO: checking which database to use" >&5 16852echo $ECHO_N "checking which database to use... $ECHO_C" >&6 16853 16854 ## Defaults for MySQL 16855 USE_DB_NAME="MySQL" 16856 LIBSQL="$LIBMYSQLCLIENT $LIBZ" 16857 SQLINCLUDE="$MYSQL_INCLUDE" 16858 16859 if test "$mysql_found" = yes -a "$pgsql_found" = yes; then 16860 16861cat >>confdefs.h <<\_ACEOF 16862#define USE_MYSQL 1 16863_ACEOF 16864 16865 echo "$as_me:$LINENO: result: MySQL" >&5 16866echo "${ECHO_T}MySQL" >&6 16867 { echo "$as_me:$LINENO: 16868 16869 ### 16870 ### Both MySQL and PostgreSQL found! 16871 ### 16872 ### MySQL used by default. If you want to use 16873 ### PostgreSQL instead, rerun this script with: 16874 ### 16875 ### --without-mysql 16876 ### 16877" >&5 16878echo "$as_me: 16879 16880 ### 16881 ### Both MySQL and PostgreSQL found! 16882 ### 16883 ### MySQL used by default. If you want to use 16884 ### PostgreSQL instead, rerun this script with: 16885 ### 16886 ### --without-mysql 16887 ### 16888" >&6;} 16889 else 16890 if test "$mysql_found" = yes; then 16891 16892cat >>confdefs.h <<\_ACEOF 16893#define USE_MYSQL 1 16894_ACEOF 16895 16896 echo "$as_me:$LINENO: result: MySQL" >&5 16897echo "${ECHO_T}MySQL" >&6 16898 elif test "$pgsql_found" = yes; then 16899 16900cat >>confdefs.h <<\_ACEOF 16901#define USE_PGSQL 1 16902_ACEOF 16903 16904 echo "$as_me:$LINENO: result: PostgreSQL" >&5 16905echo "${ECHO_T}PostgreSQL" >&6 16906 USE_DB_NAME="PostgreSQL" 16907 LIBSQL="$LIBPQ" 16908 SQLINCLUDE="$PQ_INCLUDE" 16909 else 16910 echo "$as_me:$LINENO: result: none" >&5 16911echo "${ECHO_T}none" >&6 16912 { { echo "$as_me:$LINENO: error: No supported database found. Either MySQL or PostgreSQL is required." >&5 16913echo "$as_me: error: No supported database found. Either MySQL or PostgreSQL is required." >&2;} 16914 { (exit 1); exit 1; }; } 16915 fi 16916 fi 16917 16918 if test "$mysql_found" = yes; then 16919 { echo "$as_me:$LINENO: 16920 16921 ### 16922 ### If you have problems compiling with MySQL, specifically 16923 ### a \"libz\" linker error, please read README.mysql for 16924 ### more information. 16925 ### 16926" >&5 16927echo "$as_me: 16928 16929 ### 16930 ### If you have problems compiling with MySQL, specifically 16931 ### a \"libz\" linker error, please read README.mysql for 16932 ### more information. 16933 ### 16934" >&6;} 16935 16936 fi 16937 16938 16939 16940 16941 # Choose between MySQL and PostgreSQL 16942 16943 echo "$as_me:$LINENO: checking whether to enable profiling" >&5 16944echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6 16945 # Check whether --enable-profiling or --disable-profiling was given. 16946if test "${enable_profiling+set}" = set; then 16947 enableval="$enable_profiling" 16948 16949 if test "$enableval" = yes 16950 then 16951 16952cat >>confdefs.h <<\_ACEOF 16953#define PROFILING 1 16954_ACEOF 16955 16956 echo "$as_me:$LINENO: result: yes" >&5 16957echo "${ECHO_T}yes" >&6 16958 CFLAGS="-O -g -pg" 16959 LDFLAGS="$LDFLAGS -pg" 16960 PROFILE_ENABLED=yes 16961 16962 16963 ac_save_CFLAGS=$CFLAGS 16964 CFLAGS="-fno-inline-functions" 16965 echo "$as_me:$LINENO: checking whether $CC accepts -fno-inline-functions" >&5 16966echo $ECHO_N "checking whether $CC accepts -fno-inline-functions... $ECHO_C" >&6 16967 cat >conftest.$ac_ext <<_ACEOF 16968/* confdefs.h. */ 16969_ACEOF 16970cat confdefs.h >>conftest.$ac_ext 16971cat >>conftest.$ac_ext <<_ACEOF 16972/* end confdefs.h. */ 16973 16974int 16975main () 16976{ 16977 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982rm -f conftest.$ac_objext 16983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16984 (eval $ac_compile) 2>conftest.er1 16985 ac_status=$? 16986 grep -v '^ *+' conftest.er1 >conftest.err 16987 rm -f conftest.er1 16988 cat conftest.err >&5 16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16990 (exit $ac_status); } && 16991 { ac_try='test -z "$ac_c_werror_flag" 16992 || test ! -s conftest.err' 16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16994 (eval $ac_try) 2>&5 16995 ac_status=$? 16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16997 (exit $ac_status); }; } && 16998 { ac_try='test -s conftest.$ac_objext' 16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17000 (eval $ac_try) 2>&5 17001 ac_status=$? 17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17003 (exit $ac_status); }; }; then 17004 ac_cv_prog_cc_optok=yes 17005else 17006 echo "$as_me: failed program was:" >&5 17007sed 's/^/| /' conftest.$ac_ext >&5 17008 17009ac_cv_prog_cc_optok=no 17010fi 17011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17012 if test "$ac_cv_prog_cc_optok" = "yes"; then 17013 echo "$as_me:$LINENO: result: yes" >&5 17014echo "${ECHO_T}yes" >&6 17015 CFLAGS="$ac_save_CFLAGS -fno-inline-functions" 17016 else 17017 echo "$as_me:$LINENO: result: no" >&5 17018echo "${ECHO_T}no" >&6 17019 CFLAGS=$ac_save_CFLAGS 17020 fi 17021 17022 17023 17024 ac_save_CFLAGS=$CFLAGS 17025 CFLAGS="-ffast-math" 17026 echo "$as_me:$LINENO: checking whether $CC accepts -ffast-math" >&5 17027echo $ECHO_N "checking whether $CC accepts -ffast-math... $ECHO_C" >&6 17028 cat >conftest.$ac_ext <<_ACEOF 17029/* confdefs.h. */ 17030_ACEOF 17031cat confdefs.h >>conftest.$ac_ext 17032cat >>conftest.$ac_ext <<_ACEOF 17033/* end confdefs.h. */ 17034 17035int 17036main () 17037{ 17038 17039 ; 17040 return 0; 17041} 17042_ACEOF 17043rm -f conftest.$ac_objext 17044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17045 (eval $ac_compile) 2>conftest.er1 17046 ac_status=$? 17047 grep -v '^ *+' conftest.er1 >conftest.err 17048 rm -f conftest.er1 17049 cat conftest.err >&5 17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17051 (exit $ac_status); } && 17052 { ac_try='test -z "$ac_c_werror_flag" 17053 || test ! -s conftest.err' 17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17055 (eval $ac_try) 2>&5 17056 ac_status=$? 17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17058 (exit $ac_status); }; } && 17059 { ac_try='test -s conftest.$ac_objext' 17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17061 (eval $ac_try) 2>&5 17062 ac_status=$? 17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17064 (exit $ac_status); }; }; then 17065 ac_cv_prog_cc_optok=yes 17066else 17067 echo "$as_me: failed program was:" >&5 17068sed 's/^/| /' conftest.$ac_ext >&5 17069 17070ac_cv_prog_cc_optok=no 17071fi 17072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17073 if test "$ac_cv_prog_cc_optok" = "yes"; then 17074 echo "$as_me:$LINENO: result: yes" >&5 17075echo "${ECHO_T}yes" >&6 17076 CFLAGS="$ac_save_CFLAGS -ffast-math" 17077 else 17078 echo "$as_me:$LINENO: result: no" >&5 17079echo "${ECHO_T}no" >&6 17080 CFLAGS=$ac_save_CFLAGS 17081 fi 17082 17083 17084 else 17085 echo "$as_me:$LINENO: result: no" >&5 17086echo "${ECHO_T}no" >&6 17087 fi 17088 17089else 17090 17091 echo "$as_me:$LINENO: result: no" >&5 17092echo "${ECHO_T}no" >&6 17093 17094 17095fi; 17096 17097 # Enable profiling? 17098 17099 echo "$as_me:$LINENO: checking whether to enable debugging" >&5 17100echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 17101 # Check whether --enable-debug or --disable-debug was given. 17102if test "${enable_debug+set}" = set; then 17103 enableval="$enable_debug" 17104 17105 if test "$enableval" = yes 17106 then 17107 CFLAGS="-O -g" 17108 17109cat >>confdefs.h <<\_ACEOF 17110#define DEBUG_ENABLED 1 17111_ACEOF 17112 17113 echo "$as_me:$LINENO: result: yes" >&5 17114echo "${ECHO_T}yes" >&6 17115 17116 ac_save_CFLAGS=$CFLAGS 17117 CFLAGS="-fno-inline" 17118 echo "$as_me:$LINENO: checking whether $CC accepts -fno-inline" >&5 17119echo $ECHO_N "checking whether $CC accepts -fno-inline... $ECHO_C" >&6 17120 cat >conftest.$ac_ext <<_ACEOF 17121/* confdefs.h. */ 17122_ACEOF 17123cat confdefs.h >>conftest.$ac_ext 17124cat >>conftest.$ac_ext <<_ACEOF 17125/* end confdefs.h. */ 17126 17127int 17128main () 17129{ 17130 17131 ; 17132 return 0; 17133} 17134_ACEOF 17135rm -f conftest.$ac_objext 17136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17137 (eval $ac_compile) 2>conftest.er1 17138 ac_status=$? 17139 grep -v '^ *+' conftest.er1 >conftest.err 17140 rm -f conftest.er1 17141 cat conftest.err >&5 17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17143 (exit $ac_status); } && 17144 { ac_try='test -z "$ac_c_werror_flag" 17145 || test ! -s conftest.err' 17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17147 (eval $ac_try) 2>&5 17148 ac_status=$? 17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17150 (exit $ac_status); }; } && 17151 { ac_try='test -s conftest.$ac_objext' 17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17153 (eval $ac_try) 2>&5 17154 ac_status=$? 17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17156 (exit $ac_status); }; }; then 17157 ac_cv_prog_cc_optok=yes 17158else 17159 echo "$as_me: failed program was:" >&5 17160sed 's/^/| /' conftest.$ac_ext >&5 17161 17162ac_cv_prog_cc_optok=no 17163fi 17164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17165 if test "$ac_cv_prog_cc_optok" = "yes"; then 17166 echo "$as_me:$LINENO: result: yes" >&5 17167echo "${ECHO_T}yes" >&6 17168 CFLAGS="$ac_save_CFLAGS -fno-inline" 17169 else 17170 echo "$as_me:$LINENO: result: no" >&5 17171echo "${ECHO_T}no" >&6 17172 CFLAGS=$ac_save_CFLAGS 17173 fi 17174 17175 17176 17177 ac_save_CFLAGS=$CFLAGS 17178 CFLAGS="-ffast-math" 17179 echo "$as_me:$LINENO: checking whether $CC accepts -ffast-math" >&5 17180echo $ECHO_N "checking whether $CC accepts -ffast-math... $ECHO_C" >&6 17181 cat >conftest.$ac_ext <<_ACEOF 17182/* confdefs.h. */ 17183_ACEOF 17184cat confdefs.h >>conftest.$ac_ext 17185cat >>conftest.$ac_ext <<_ACEOF 17186/* end confdefs.h. */ 17187 17188int 17189main () 17190{ 17191 17192 ; 17193 return 0; 17194} 17195_ACEOF 17196rm -f conftest.$ac_objext 17197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17198 (eval $ac_compile) 2>conftest.er1 17199 ac_status=$? 17200 grep -v '^ *+' conftest.er1 >conftest.err 17201 rm -f conftest.er1 17202 cat conftest.err >&5 17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17204 (exit $ac_status); } && 17205 { ac_try='test -z "$ac_c_werror_flag" 17206 || test ! -s conftest.err' 17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17208 (eval $ac_try) 2>&5 17209 ac_status=$? 17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17211 (exit $ac_status); }; } && 17212 { ac_try='test -s conftest.$ac_objext' 17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17214 (eval $ac_try) 2>&5 17215 ac_status=$? 17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17217 (exit $ac_status); }; }; then 17218 ac_cv_prog_cc_optok=yes 17219else 17220 echo "$as_me: failed program was:" >&5 17221sed 's/^/| /' conftest.$ac_ext >&5 17222 17223ac_cv_prog_cc_optok=no 17224fi 17225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17226 if test "$ac_cv_prog_cc_optok" = "yes"; then 17227 echo "$as_me:$LINENO: result: yes" >&5 17228echo "${ECHO_T}yes" >&6 17229 CFLAGS="$ac_save_CFLAGS -ffast-math" 17230 else 17231 echo "$as_me:$LINENO: result: no" >&5 17232echo "${ECHO_T}no" >&6 17233 CFLAGS=$ac_save_CFLAGS 17234 fi 17235 17236 17237 17238 ac_save_CFLAGS=$CFLAGS 17239 CFLAGS="-Wall" 17240 echo "$as_me:$LINENO: checking whether $CC accepts -Wall" >&5 17241echo $ECHO_N "checking whether $CC accepts -Wall... $ECHO_C" >&6 17242 cat >conftest.$ac_ext <<_ACEOF 17243/* confdefs.h. */ 17244_ACEOF 17245cat confdefs.h >>conftest.$ac_ext 17246cat >>conftest.$ac_ext <<_ACEOF 17247/* end confdefs.h. */ 17248 17249int 17250main () 17251{ 17252 17253 ; 17254 return 0; 17255} 17256_ACEOF 17257rm -f conftest.$ac_objext 17258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17259 (eval $ac_compile) 2>conftest.er1 17260 ac_status=$? 17261 grep -v '^ *+' conftest.er1 >conftest.err 17262 rm -f conftest.er1 17263 cat conftest.err >&5 17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17265 (exit $ac_status); } && 17266 { ac_try='test -z "$ac_c_werror_flag" 17267 || test ! -s conftest.err' 17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17269 (eval $ac_try) 2>&5 17270 ac_status=$? 17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17272 (exit $ac_status); }; } && 17273 { ac_try='test -s conftest.$ac_objext' 17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17275 (eval $ac_try) 2>&5 17276 ac_status=$? 17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17278 (exit $ac_status); }; }; then 17279 ac_cv_prog_cc_optok=yes 17280else 17281 echo "$as_me: failed program was:" >&5 17282sed 's/^/| /' conftest.$ac_ext >&5 17283 17284ac_cv_prog_cc_optok=no 17285fi 17286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17287 if test "$ac_cv_prog_cc_optok" = "yes"; then 17288 echo "$as_me:$LINENO: result: yes" >&5 17289echo "${ECHO_T}yes" >&6 17290 CFLAGS="$ac_save_CFLAGS -Wall" 17291 else 17292 echo "$as_me:$LINENO: result: no" >&5 17293echo "${ECHO_T}no" >&6 17294 CFLAGS=$ac_save_CFLAGS 17295 fi 17296 17297 17298 17299 ac_save_CFLAGS=$CFLAGS 17300 CFLAGS="-Wno-unused" 17301 echo "$as_me:$LINENO: checking whether $CC accepts -Wno-unused" >&5 17302echo $ECHO_N "checking whether $CC accepts -Wno-unused... $ECHO_C" >&6 17303 cat >conftest.$ac_ext <<_ACEOF 17304/* confdefs.h. */ 17305_ACEOF 17306cat confdefs.h >>conftest.$ac_ext 17307cat >>conftest.$ac_ext <<_ACEOF 17308/* end confdefs.h. */ 17309 17310int 17311main () 17312{ 17313 17314 ; 17315 return 0; 17316} 17317_ACEOF 17318rm -f conftest.$ac_objext 17319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17320 (eval $ac_compile) 2>conftest.er1 17321 ac_status=$? 17322 grep -v '^ *+' conftest.er1 >conftest.err 17323 rm -f conftest.er1 17324 cat conftest.err >&5 17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17326 (exit $ac_status); } && 17327 { ac_try='test -z "$ac_c_werror_flag" 17328 || test ! -s conftest.err' 17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17330 (eval $ac_try) 2>&5 17331 ac_status=$? 17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17333 (exit $ac_status); }; } && 17334 { ac_try='test -s conftest.$ac_objext' 17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17336 (eval $ac_try) 2>&5 17337 ac_status=$? 17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17339 (exit $ac_status); }; }; then 17340 ac_cv_prog_cc_optok=yes 17341else 17342 echo "$as_me: failed program was:" >&5 17343sed 's/^/| /' conftest.$ac_ext >&5 17344 17345ac_cv_prog_cc_optok=no 17346fi 17347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17348 if test "$ac_cv_prog_cc_optok" = "yes"; then 17349 echo "$as_me:$LINENO: result: yes" >&5 17350echo "${ECHO_T}yes" >&6 17351 CFLAGS="$ac_save_CFLAGS -Wno-unused" 17352 else 17353 echo "$as_me:$LINENO: result: no" >&5 17354echo "${ECHO_T}no" >&6 17355 CFLAGS=$ac_save_CFLAGS 17356 fi 17357 17358 17359 17360 ac_save_CFLAGS=$CFLAGS 17361 CFLAGS="-Werror" 17362 echo "$as_me:$LINENO: checking whether $CC accepts -Werror" >&5 17363echo $ECHO_N "checking whether $CC accepts -Werror... $ECHO_C" >&6 17364 cat >conftest.$ac_ext <<_ACEOF 17365/* confdefs.h. */ 17366_ACEOF 17367cat confdefs.h >>conftest.$ac_ext 17368cat >>conftest.$ac_ext <<_ACEOF 17369/* end confdefs.h. */ 17370 17371int 17372main () 17373{ 17374 17375 ; 17376 return 0; 17377} 17378_ACEOF 17379rm -f conftest.$ac_objext 17380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17381 (eval $ac_compile) 2>conftest.er1 17382 ac_status=$? 17383 grep -v '^ *+' conftest.er1 >conftest.err 17384 rm -f conftest.er1 17385 cat conftest.err >&5 17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17387 (exit $ac_status); } && 17388 { ac_try='test -z "$ac_c_werror_flag" 17389 || test ! -s conftest.err' 17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17391 (eval $ac_try) 2>&5 17392 ac_status=$? 17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17394 (exit $ac_status); }; } && 17395 { ac_try='test -s conftest.$ac_objext' 17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17397 (eval $ac_try) 2>&5 17398 ac_status=$? 17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17400 (exit $ac_status); }; }; then 17401 ac_cv_prog_cc_optok=yes 17402else 17403 echo "$as_me: failed program was:" >&5 17404sed 's/^/| /' conftest.$ac_ext >&5 17405 17406ac_cv_prog_cc_optok=no 17407fi 17408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17409 if test "$ac_cv_prog_cc_optok" = "yes"; then 17410 echo "$as_me:$LINENO: result: yes" >&5 17411echo "${ECHO_T}yes" >&6 17412 CFLAGS="$ac_save_CFLAGS -Werror" 17413 else 17414 echo "$as_me:$LINENO: result: no" >&5 17415echo "${ECHO_T}no" >&6 17416 CFLAGS=$ac_save_CFLAGS 17417 fi 17418 17419 17420 else 17421 echo "$as_me:$LINENO: result: no" >&5 17422echo "${ECHO_T}no" >&6 17423 if test -z "$PROFILE_ENABLED"; then 17424 17425 ac_save_CFLAGS=$CFLAGS 17426 CFLAGS="-fomit-frame-pointer" 17427 echo "$as_me:$LINENO: checking whether $CC accepts -fomit-frame-pointer" >&5 17428echo $ECHO_N "checking whether $CC accepts -fomit-frame-pointer... $ECHO_C" >&6 17429 cat >conftest.$ac_ext <<_ACEOF 17430/* confdefs.h. */ 17431_ACEOF 17432cat confdefs.h >>conftest.$ac_ext 17433cat >>conftest.$ac_ext <<_ACEOF 17434/* end confdefs.h. */ 17435 17436int 17437main () 17438{ 17439 17440 ; 17441 return 0; 17442} 17443_ACEOF 17444rm -f conftest.$ac_objext 17445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17446 (eval $ac_compile) 2>conftest.er1 17447 ac_status=$? 17448 grep -v '^ *+' conftest.er1 >conftest.err 17449 rm -f conftest.er1 17450 cat conftest.err >&5 17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17452 (exit $ac_status); } && 17453 { ac_try='test -z "$ac_c_werror_flag" 17454 || test ! -s conftest.err' 17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17456 (eval $ac_try) 2>&5 17457 ac_status=$? 17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17459 (exit $ac_status); }; } && 17460 { ac_try='test -s conftest.$ac_objext' 17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17462 (eval $ac_try) 2>&5 17463 ac_status=$? 17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17465 (exit $ac_status); }; }; then 17466 ac_cv_prog_cc_optok=yes 17467else 17468 echo "$as_me: failed program was:" >&5 17469sed 's/^/| /' conftest.$ac_ext >&5 17470 17471ac_cv_prog_cc_optok=no 17472fi 17473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17474 if test "$ac_cv_prog_cc_optok" = "yes"; then 17475 echo "$as_me:$LINENO: result: yes" >&5 17476echo "${ECHO_T}yes" >&6 17477 CFLAGS="$ac_save_CFLAGS -fomit-frame-pointer" 17478 else 17479 echo "$as_me:$LINENO: result: no" >&5 17480echo "${ECHO_T}no" >&6 17481 CFLAGS=$ac_save_CFLAGS 17482 fi 17483 17484 17485 17486 ac_save_CFLAGS=$CFLAGS 17487 CFLAGS="-finline-functions" 17488 echo "$as_me:$LINENO: checking whether $CC accepts -finline-functions" >&5 17489echo $ECHO_N "checking whether $CC accepts -finline-functions... $ECHO_C" >&6 17490 cat >conftest.$ac_ext <<_ACEOF 17491/* confdefs.h. */ 17492_ACEOF 17493cat confdefs.h >>conftest.$ac_ext 17494cat >>conftest.$ac_ext <<_ACEOF 17495/* end confdefs.h. */ 17496 17497int 17498main () 17499{ 17500 17501 ; 17502 return 0; 17503} 17504_ACEOF 17505rm -f conftest.$ac_objext 17506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17507 (eval $ac_compile) 2>conftest.er1 17508 ac_status=$? 17509 grep -v '^ *+' conftest.er1 >conftest.err 17510 rm -f conftest.er1 17511 cat conftest.err >&5 17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17513 (exit $ac_status); } && 17514 { ac_try='test -z "$ac_c_werror_flag" 17515 || test ! -s conftest.err' 17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17517 (eval $ac_try) 2>&5 17518 ac_status=$? 17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17520 (exit $ac_status); }; } && 17521 { ac_try='test -s conftest.$ac_objext' 17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17523 (eval $ac_try) 2>&5 17524 ac_status=$? 17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17526 (exit $ac_status); }; }; then 17527 ac_cv_prog_cc_optok=yes 17528else 17529 echo "$as_me: failed program was:" >&5 17530sed 's/^/| /' conftest.$ac_ext >&5 17531 17532ac_cv_prog_cc_optok=no 17533fi 17534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17535 if test "$ac_cv_prog_cc_optok" = "yes"; then 17536 echo "$as_me:$LINENO: result: yes" >&5 17537echo "${ECHO_T}yes" >&6 17538 CFLAGS="$ac_save_CFLAGS -finline-functions" 17539 else 17540 echo "$as_me:$LINENO: result: no" >&5 17541echo "${ECHO_T}no" >&6 17542 CFLAGS=$ac_save_CFLAGS 17543 fi 17544 17545 17546 17547 ac_save_CFLAGS=$CFLAGS 17548 CFLAGS="-ffast-math" 17549 echo "$as_me:$LINENO: checking whether $CC accepts -ffast-math" >&5 17550echo $ECHO_N "checking whether $CC accepts -ffast-math... $ECHO_C" >&6 17551 cat >conftest.$ac_ext <<_ACEOF 17552/* confdefs.h. */ 17553_ACEOF 17554cat confdefs.h >>conftest.$ac_ext 17555cat >>conftest.$ac_ext <<_ACEOF 17556/* end confdefs.h. */ 17557 17558int 17559main () 17560{ 17561 17562 ; 17563 return 0; 17564} 17565_ACEOF 17566rm -f conftest.$ac_objext 17567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17568 (eval $ac_compile) 2>conftest.er1 17569 ac_status=$? 17570 grep -v '^ *+' conftest.er1 >conftest.err 17571 rm -f conftest.er1 17572 cat conftest.err >&5 17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17574 (exit $ac_status); } && 17575 { ac_try='test -z "$ac_c_werror_flag" 17576 || test ! -s conftest.err' 17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17578 (eval $ac_try) 2>&5 17579 ac_status=$? 17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17581 (exit $ac_status); }; } && 17582 { ac_try='test -s conftest.$ac_objext' 17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17584 (eval $ac_try) 2>&5 17585 ac_status=$? 17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17587 (exit $ac_status); }; }; then 17588 ac_cv_prog_cc_optok=yes 17589else 17590 echo "$as_me: failed program was:" >&5 17591sed 's/^/| /' conftest.$ac_ext >&5 17592 17593ac_cv_prog_cc_optok=no 17594fi 17595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17596 if test "$ac_cv_prog_cc_optok" = "yes"; then 17597 echo "$as_me:$LINENO: result: yes" >&5 17598echo "${ECHO_T}yes" >&6 17599 CFLAGS="$ac_save_CFLAGS -ffast-math" 17600 else 17601 echo "$as_me:$LINENO: result: no" >&5 17602echo "${ECHO_T}no" >&6 17603 CFLAGS=$ac_save_CFLAGS 17604 fi 17605 17606 17607 LDFLAGS="$LDFLAGS -static" 17608 fi 17609 fi 17610 17611else 17612 17613 echo "$as_me:$LINENO: result: no" >&5 17614echo "${ECHO_T}no" >&6 17615 if test -z "$PROFILE_ENABLED"; then 17616 17617 ac_save_CFLAGS=$CFLAGS 17618 CFLAGS="-fomit-frame-pointer" 17619 echo "$as_me:$LINENO: checking whether $CC accepts -fomit-frame-pointer" >&5 17620echo $ECHO_N "checking whether $CC accepts -fomit-frame-pointer... $ECHO_C" >&6 17621 cat >conftest.$ac_ext <<_ACEOF 17622/* confdefs.h. */ 17623_ACEOF 17624cat confdefs.h >>conftest.$ac_ext 17625cat >>conftest.$ac_ext <<_ACEOF 17626/* end confdefs.h. */ 17627 17628int 17629main () 17630{ 17631 17632 ; 17633 return 0; 17634} 17635_ACEOF 17636rm -f conftest.$ac_objext 17637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17638 (eval $ac_compile) 2>conftest.er1 17639 ac_status=$? 17640 grep -v '^ *+' conftest.er1 >conftest.err 17641 rm -f conftest.er1 17642 cat conftest.err >&5 17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17644 (exit $ac_status); } && 17645 { ac_try='test -z "$ac_c_werror_flag" 17646 || test ! -s conftest.err' 17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17648 (eval $ac_try) 2>&5 17649 ac_status=$? 17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17651 (exit $ac_status); }; } && 17652 { ac_try='test -s conftest.$ac_objext' 17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17654 (eval $ac_try) 2>&5 17655 ac_status=$? 17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17657 (exit $ac_status); }; }; then 17658 ac_cv_prog_cc_optok=yes 17659else 17660 echo "$as_me: failed program was:" >&5 17661sed 's/^/| /' conftest.$ac_ext >&5 17662 17663ac_cv_prog_cc_optok=no 17664fi 17665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17666 if test "$ac_cv_prog_cc_optok" = "yes"; then 17667 echo "$as_me:$LINENO: result: yes" >&5 17668echo "${ECHO_T}yes" >&6 17669 CFLAGS="$ac_save_CFLAGS -fomit-frame-pointer" 17670 else 17671 echo "$as_me:$LINENO: result: no" >&5 17672echo "${ECHO_T}no" >&6 17673 CFLAGS=$ac_save_CFLAGS 17674 fi 17675 17676 17677 17678 ac_save_CFLAGS=$CFLAGS 17679 CFLAGS="-finline-functions" 17680 echo "$as_me:$LINENO: checking whether $CC accepts -finline-functions" >&5 17681echo $ECHO_N "checking whether $CC accepts -finline-functions... $ECHO_C" >&6 17682 cat >conftest.$ac_ext <<_ACEOF 17683/* confdefs.h. */ 17684_ACEOF 17685cat confdefs.h >>conftest.$ac_ext 17686cat >>conftest.$ac_ext <<_ACEOF 17687/* end confdefs.h. */ 17688 17689int 17690main () 17691{ 17692 17693 ; 17694 return 0; 17695} 17696_ACEOF 17697rm -f conftest.$ac_objext 17698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17699 (eval $ac_compile) 2>conftest.er1 17700 ac_status=$? 17701 grep -v '^ *+' conftest.er1 >conftest.err 17702 rm -f conftest.er1 17703 cat conftest.err >&5 17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17705 (exit $ac_status); } && 17706 { ac_try='test -z "$ac_c_werror_flag" 17707 || test ! -s conftest.err' 17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17709 (eval $ac_try) 2>&5 17710 ac_status=$? 17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17712 (exit $ac_status); }; } && 17713 { ac_try='test -s conftest.$ac_objext' 17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17715 (eval $ac_try) 2>&5 17716 ac_status=$? 17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17718 (exit $ac_status); }; }; then 17719 ac_cv_prog_cc_optok=yes 17720else 17721 echo "$as_me: failed program was:" >&5 17722sed 's/^/| /' conftest.$ac_ext >&5 17723 17724ac_cv_prog_cc_optok=no 17725fi 17726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17727 if test "$ac_cv_prog_cc_optok" = "yes"; then 17728 echo "$as_me:$LINENO: result: yes" >&5 17729echo "${ECHO_T}yes" >&6 17730 CFLAGS="$ac_save_CFLAGS -finline-functions" 17731 else 17732 echo "$as_me:$LINENO: result: no" >&5 17733echo "${ECHO_T}no" >&6 17734 CFLAGS=$ac_save_CFLAGS 17735 fi 17736 17737 17738 17739 ac_save_CFLAGS=$CFLAGS 17740 CFLAGS="-ffast-math" 17741 echo "$as_me:$LINENO: checking whether $CC accepts -ffast-math" >&5 17742echo $ECHO_N "checking whether $CC accepts -ffast-math... $ECHO_C" >&6 17743 cat >conftest.$ac_ext <<_ACEOF 17744/* confdefs.h. */ 17745_ACEOF 17746cat confdefs.h >>conftest.$ac_ext 17747cat >>conftest.$ac_ext <<_ACEOF 17748/* end confdefs.h. */ 17749 17750int 17751main () 17752{ 17753 17754 ; 17755 return 0; 17756} 17757_ACEOF 17758rm -f conftest.$ac_objext 17759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17760 (eval $ac_compile) 2>conftest.er1 17761 ac_status=$? 17762 grep -v '^ *+' conftest.er1 >conftest.err 17763 rm -f conftest.er1 17764 cat conftest.err >&5 17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17766 (exit $ac_status); } && 17767 { ac_try='test -z "$ac_c_werror_flag" 17768 || test ! -s conftest.err' 17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17770 (eval $ac_try) 2>&5 17771 ac_status=$? 17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17773 (exit $ac_status); }; } && 17774 { ac_try='test -s conftest.$ac_objext' 17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17776 (eval $ac_try) 2>&5 17777 ac_status=$? 17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17779 (exit $ac_status); }; }; then 17780 ac_cv_prog_cc_optok=yes 17781else 17782 echo "$as_me: failed program was:" >&5 17783sed 's/^/| /' conftest.$ac_ext >&5 17784 17785ac_cv_prog_cc_optok=no 17786fi 17787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17788 if test "$ac_cv_prog_cc_optok" = "yes"; then 17789 echo "$as_me:$LINENO: result: yes" >&5 17790echo "${ECHO_T}yes" >&6 17791 CFLAGS="$ac_save_CFLAGS -ffast-math" 17792 else 17793 echo "$as_me:$LINENO: result: no" >&5 17794echo "${ECHO_T}no" >&6 17795 CFLAGS=$ac_save_CFLAGS 17796 fi 17797 17798 17799 LDFLAGS="$LDFLAGS -static" 17800 fi 17801 17802 17803fi; 17804 17805 ac_save_CFLAGS=$CFLAGS 17806 CFLAGS="-funsigned-char" 17807 echo "$as_me:$LINENO: checking whether $CC accepts -funsigned-char" >&5 17808echo $ECHO_N "checking whether $CC accepts -funsigned-char... $ECHO_C" >&6 17809 cat >conftest.$ac_ext <<_ACEOF 17810/* confdefs.h. */ 17811_ACEOF 17812cat confdefs.h >>conftest.$ac_ext 17813cat >>conftest.$ac_ext <<_ACEOF 17814/* end confdefs.h. */ 17815 17816int 17817main () 17818{ 17819 17820 ; 17821 return 0; 17822} 17823_ACEOF 17824rm -f conftest.$ac_objext 17825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17826 (eval $ac_compile) 2>conftest.er1 17827 ac_status=$? 17828 grep -v '^ *+' conftest.er1 >conftest.err 17829 rm -f conftest.er1 17830 cat conftest.err >&5 17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17832 (exit $ac_status); } && 17833 { ac_try='test -z "$ac_c_werror_flag" 17834 || test ! -s conftest.err' 17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17836 (eval $ac_try) 2>&5 17837 ac_status=$? 17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17839 (exit $ac_status); }; } && 17840 { ac_try='test -s conftest.$ac_objext' 17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17842 (eval $ac_try) 2>&5 17843 ac_status=$? 17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17845 (exit $ac_status); }; }; then 17846 ac_cv_prog_cc_optok=yes 17847else 17848 echo "$as_me: failed program was:" >&5 17849sed 's/^/| /' conftest.$ac_ext >&5 17850 17851ac_cv_prog_cc_optok=no 17852fi 17853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17854 if test "$ac_cv_prog_cc_optok" = "yes"; then 17855 echo "$as_me:$LINENO: result: yes" >&5 17856echo "${ECHO_T}yes" >&6 17857 CFLAGS="$ac_save_CFLAGS -funsigned-char" 17858 else 17859 echo "$as_me:$LINENO: result: no" >&5 17860echo "${ECHO_T}no" >&6 17861 CFLAGS=$ac_save_CFLAGS 17862 fi 17863 17864 17865 17866 echo "$as_me:$LINENO: checking CFLAGS" >&5 17867echo $ECHO_N "checking CFLAGS... $ECHO_C" >&6 17868 echo "$as_me:$LINENO: result: $CFLAGS" >&5 17869echo "${ECHO_T}$CFLAGS" >&6 17870 17871 # Enable debugging? 17872 17873 echo "$as_me:$LINENO: checking whether to compile with Valgrind-friendly flags" >&5 17874echo $ECHO_N "checking whether to compile with Valgrind-friendly flags... $ECHO_C" >&6 17875 # Check whether --enable-valgrind or --disable-valgrind was given. 17876if test "${enable_valgrind+set}" = set; then 17877 enableval="$enable_valgrind" 17878 17879 if test "$enableval" = yes 17880 then 17881 echo "$as_me:$LINENO: result: yes" >&5 17882echo "${ECHO_T}yes" >&6 17883 CFLAGS="-O -g" 17884 17885 ac_save_CFLAGS=$CFLAGS 17886 CFLAGS="-fno-inline" 17887 echo "$as_me:$LINENO: checking whether $CC accepts -fno-inline" >&5 17888echo $ECHO_N "checking whether $CC accepts -fno-inline... $ECHO_C" >&6 17889 cat >conftest.$ac_ext <<_ACEOF 17890/* confdefs.h. */ 17891_ACEOF 17892cat confdefs.h >>conftest.$ac_ext 17893cat >>conftest.$ac_ext <<_ACEOF 17894/* end confdefs.h. */ 17895 17896int 17897main () 17898{ 17899 17900 ; 17901 return 0; 17902} 17903_ACEOF 17904rm -f conftest.$ac_objext 17905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17906 (eval $ac_compile) 2>conftest.er1 17907 ac_status=$? 17908 grep -v '^ *+' conftest.er1 >conftest.err 17909 rm -f conftest.er1 17910 cat conftest.err >&5 17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17912 (exit $ac_status); } && 17913 { ac_try='test -z "$ac_c_werror_flag" 17914 || test ! -s conftest.err' 17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17916 (eval $ac_try) 2>&5 17917 ac_status=$? 17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17919 (exit $ac_status); }; } && 17920 { ac_try='test -s conftest.$ac_objext' 17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17922 (eval $ac_try) 2>&5 17923 ac_status=$? 17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17925 (exit $ac_status); }; }; then 17926 ac_cv_prog_cc_optok=yes 17927else 17928 echo "$as_me: failed program was:" >&5 17929sed 's/^/| /' conftest.$ac_ext >&5 17930 17931ac_cv_prog_cc_optok=no 17932fi 17933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17934 if test "$ac_cv_prog_cc_optok" = "yes"; then 17935 echo "$as_me:$LINENO: result: yes" >&5 17936echo "${ECHO_T}yes" >&6 17937 CFLAGS="$ac_save_CFLAGS -fno-inline" 17938 else 17939 echo "$as_me:$LINENO: result: no" >&5 17940echo "${ECHO_T}no" >&6 17941 CFLAGS=$ac_save_CFLAGS 17942 fi 17943 17944 17945 17946 ac_save_CFLAGS=$CFLAGS 17947 CFLAGS="-ffast-math" 17948 echo "$as_me:$LINENO: checking whether $CC accepts -ffast-math" >&5 17949echo $ECHO_N "checking whether $CC accepts -ffast-math... $ECHO_C" >&6 17950 cat >conftest.$ac_ext <<_ACEOF 17951/* confdefs.h. */ 17952_ACEOF 17953cat confdefs.h >>conftest.$ac_ext 17954cat >>conftest.$ac_ext <<_ACEOF 17955/* end confdefs.h. */ 17956 17957int 17958main () 17959{ 17960 17961 ; 17962 return 0; 17963} 17964_ACEOF 17965rm -f conftest.$ac_objext 17966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17967 (eval $ac_compile) 2>conftest.er1 17968 ac_status=$? 17969 grep -v '^ *+' conftest.er1 >conftest.err 17970 rm -f conftest.er1 17971 cat conftest.err >&5 17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17973 (exit $ac_status); } && 17974 { ac_try='test -z "$ac_c_werror_flag" 17975 || test ! -s conftest.err' 17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17977 (eval $ac_try) 2>&5 17978 ac_status=$? 17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17980 (exit $ac_status); }; } && 17981 { ac_try='test -s conftest.$ac_objext' 17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17983 (eval $ac_try) 2>&5 17984 ac_status=$? 17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17986 (exit $ac_status); }; }; then 17987 ac_cv_prog_cc_optok=yes 17988else 17989 echo "$as_me: failed program was:" >&5 17990sed 's/^/| /' conftest.$ac_ext >&5 17991 17992ac_cv_prog_cc_optok=no 17993fi 17994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17995 if test "$ac_cv_prog_cc_optok" = "yes"; then 17996 echo "$as_me:$LINENO: result: yes" >&5 17997echo "${ECHO_T}yes" >&6 17998 CFLAGS="$ac_save_CFLAGS -ffast-math" 17999 else 18000 echo "$as_me:$LINENO: result: no" >&5 18001echo "${ECHO_T}no" >&6 18002 CFLAGS=$ac_save_CFLAGS 18003 fi 18004 18005 18006 18007 ac_save_CFLAGS=$CFLAGS 18008 CFLAGS="-funsigned-char" 18009 echo "$as_me:$LINENO: checking whether $CC accepts -funsigned-char" >&5 18010echo $ECHO_N "checking whether $CC accepts -funsigned-char... $ECHO_C" >&6 18011 cat >conftest.$ac_ext <<_ACEOF 18012/* confdefs.h. */ 18013_ACEOF 18014cat confdefs.h >>conftest.$ac_ext 18015cat >>conftest.$ac_ext <<_ACEOF 18016/* end confdefs.h. */ 18017 18018int 18019main () 18020{ 18021 18022 ; 18023 return 0; 18024} 18025_ACEOF 18026rm -f conftest.$ac_objext 18027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18028 (eval $ac_compile) 2>conftest.er1 18029 ac_status=$? 18030 grep -v '^ *+' conftest.er1 >conftest.err 18031 rm -f conftest.er1 18032 cat conftest.err >&5 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18034 (exit $ac_status); } && 18035 { ac_try='test -z "$ac_c_werror_flag" 18036 || test ! -s conftest.err' 18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18038 (eval $ac_try) 2>&5 18039 ac_status=$? 18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18041 (exit $ac_status); }; } && 18042 { ac_try='test -s conftest.$ac_objext' 18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18044 (eval $ac_try) 2>&5 18045 ac_status=$? 18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18047 (exit $ac_status); }; }; then 18048 ac_cv_prog_cc_optok=yes 18049else 18050 echo "$as_me: failed program was:" >&5 18051sed 's/^/| /' conftest.$ac_ext >&5 18052 18053ac_cv_prog_cc_optok=no 18054fi 18055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18056 if test "$ac_cv_prog_cc_optok" = "yes"; then 18057 echo "$as_me:$LINENO: result: yes" >&5 18058echo "${ECHO_T}yes" >&6 18059 CFLAGS="$ac_save_CFLAGS -funsigned-char" 18060 else 18061 echo "$as_me:$LINENO: result: no" >&5 18062echo "${ECHO_T}no" >&6 18063 CFLAGS=$ac_save_CFLAGS 18064 fi 18065 18066 18067 else 18068 echo "$as_me:$LINENO: result: no" >&5 18069echo "${ECHO_T}no" >&6 18070 fi 18071 18072else 18073 18074 echo "$as_me:$LINENO: result: no" >&5 18075echo "${ECHO_T}no" >&6 18076 18077 18078fi; 18079 18080 # Compile with Valgrind-friendly flags? 18081 18082 echo "$as_me:$LINENO: checking whether to compile with strict warning flags" >&5 18083echo $ECHO_N "checking whether to compile with strict warning flags... $ECHO_C" >&6 18084 # Check whether --enable-strict-warnings or --disable-strict-warnings was given. 18085if test "${enable_strict_warnings+set}" = set; then 18086 enableval="$enable_strict_warnings" 18087 18088 if test "$enableval" = yes 18089 then 18090 echo "$as_me:$LINENO: result: yes" >&5 18091echo "${ECHO_T}yes" >&6 18092 CFLAGS="-O -g" 18093 18094 ac_save_CFLAGS=$CFLAGS 18095 CFLAGS="-W" 18096 echo "$as_me:$LINENO: checking whether $CC accepts -W" >&5 18097echo $ECHO_N "checking whether $CC accepts -W... $ECHO_C" >&6 18098 cat >conftest.$ac_ext <<_ACEOF 18099/* confdefs.h. */ 18100_ACEOF 18101cat confdefs.h >>conftest.$ac_ext 18102cat >>conftest.$ac_ext <<_ACEOF 18103/* end confdefs.h. */ 18104 18105int 18106main () 18107{ 18108 18109 ; 18110 return 0; 18111} 18112_ACEOF 18113rm -f conftest.$ac_objext 18114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18115 (eval $ac_compile) 2>conftest.er1 18116 ac_status=$? 18117 grep -v '^ *+' conftest.er1 >conftest.err 18118 rm -f conftest.er1 18119 cat conftest.err >&5 18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18121 (exit $ac_status); } && 18122 { ac_try='test -z "$ac_c_werror_flag" 18123 || test ! -s conftest.err' 18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18125 (eval $ac_try) 2>&5 18126 ac_status=$? 18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18128 (exit $ac_status); }; } && 18129 { ac_try='test -s conftest.$ac_objext' 18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18131 (eval $ac_try) 2>&5 18132 ac_status=$? 18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18134 (exit $ac_status); }; }; then 18135 ac_cv_prog_cc_optok=yes 18136else 18137 echo "$as_me: failed program was:" >&5 18138sed 's/^/| /' conftest.$ac_ext >&5 18139 18140ac_cv_prog_cc_optok=no 18141fi 18142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18143 if test "$ac_cv_prog_cc_optok" = "yes"; then 18144 echo "$as_me:$LINENO: result: yes" >&5 18145echo "${ECHO_T}yes" >&6 18146 CFLAGS="$ac_save_CFLAGS -W" 18147 else 18148 echo "$as_me:$LINENO: result: no" >&5 18149echo "${ECHO_T}no" >&6 18150 CFLAGS=$ac_save_CFLAGS 18151 fi 18152 18153 18154 18155 ac_save_CFLAGS=$CFLAGS 18156 CFLAGS="-Wall" 18157 echo "$as_me:$LINENO: checking whether $CC accepts -Wall" >&5 18158echo $ECHO_N "checking whether $CC accepts -Wall... $ECHO_C" >&6 18159 cat >conftest.$ac_ext <<_ACEOF 18160/* confdefs.h. */ 18161_ACEOF 18162cat confdefs.h >>conftest.$ac_ext 18163cat >>conftest.$ac_ext <<_ACEOF 18164/* end confdefs.h. */ 18165 18166int 18167main () 18168{ 18169 18170 ; 18171 return 0; 18172} 18173_ACEOF 18174rm -f conftest.$ac_objext 18175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18176 (eval $ac_compile) 2>conftest.er1 18177 ac_status=$? 18178 grep -v '^ *+' conftest.er1 >conftest.err 18179 rm -f conftest.er1 18180 cat conftest.err >&5 18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18182 (exit $ac_status); } && 18183 { ac_try='test -z "$ac_c_werror_flag" 18184 || test ! -s conftest.err' 18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18186 (eval $ac_try) 2>&5 18187 ac_status=$? 18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18189 (exit $ac_status); }; } && 18190 { ac_try='test -s conftest.$ac_objext' 18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18192 (eval $ac_try) 2>&5 18193 ac_status=$? 18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18195 (exit $ac_status); }; }; then 18196 ac_cv_prog_cc_optok=yes 18197else 18198 echo "$as_me: failed program was:" >&5 18199sed 's/^/| /' conftest.$ac_ext >&5 18200 18201ac_cv_prog_cc_optok=no 18202fi 18203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18204 if test "$ac_cv_prog_cc_optok" = "yes"; then 18205 echo "$as_me:$LINENO: result: yes" >&5 18206echo "${ECHO_T}yes" >&6 18207 CFLAGS="$ac_save_CFLAGS -Wall" 18208 else 18209 echo "$as_me:$LINENO: result: no" >&5 18210echo "${ECHO_T}no" >&6 18211 CFLAGS=$ac_save_CFLAGS 18212 fi 18213 18214 18215# AC_C_CFLAGS(-Wundef) 18216 18217 ac_save_CFLAGS=$CFLAGS 18218 CFLAGS="-Wendif-labels" 18219 echo "$as_me:$LINENO: checking whether $CC accepts -Wendif-labels" >&5 18220echo $ECHO_N "checking whether $CC accepts -Wendif-labels... $ECHO_C" >&6 18221 cat >conftest.$ac_ext <<_ACEOF 18222/* confdefs.h. */ 18223_ACEOF 18224cat confdefs.h >>conftest.$ac_ext 18225cat >>conftest.$ac_ext <<_ACEOF 18226/* end confdefs.h. */ 18227 18228int 18229main () 18230{ 18231 18232 ; 18233 return 0; 18234} 18235_ACEOF 18236rm -f conftest.$ac_objext 18237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18238 (eval $ac_compile) 2>conftest.er1 18239 ac_status=$? 18240 grep -v '^ *+' conftest.er1 >conftest.err 18241 rm -f conftest.er1 18242 cat conftest.err >&5 18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18244 (exit $ac_status); } && 18245 { ac_try='test -z "$ac_c_werror_flag" 18246 || test ! -s conftest.err' 18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18248 (eval $ac_try) 2>&5 18249 ac_status=$? 18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18251 (exit $ac_status); }; } && 18252 { ac_try='test -s conftest.$ac_objext' 18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18254 (eval $ac_try) 2>&5 18255 ac_status=$? 18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18257 (exit $ac_status); }; }; then 18258 ac_cv_prog_cc_optok=yes 18259else 18260 echo "$as_me: failed program was:" >&5 18261sed 's/^/| /' conftest.$ac_ext >&5 18262 18263ac_cv_prog_cc_optok=no 18264fi 18265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18266 if test "$ac_cv_prog_cc_optok" = "yes"; then 18267 echo "$as_me:$LINENO: result: yes" >&5 18268echo "${ECHO_T}yes" >&6 18269 CFLAGS="$ac_save_CFLAGS -Wendif-labels" 18270 else 18271 echo "$as_me:$LINENO: result: no" >&5 18272echo "${ECHO_T}no" >&6 18273 CFLAGS=$ac_save_CFLAGS 18274 fi 18275 18276 18277 18278 ac_save_CFLAGS=$CFLAGS 18279 CFLAGS="-Wshadow" 18280 echo "$as_me:$LINENO: checking whether $CC accepts -Wshadow" >&5 18281echo $ECHO_N "checking whether $CC accepts -Wshadow... $ECHO_C" >&6 18282 cat >conftest.$ac_ext <<_ACEOF 18283/* confdefs.h. */ 18284_ACEOF 18285cat confdefs.h >>conftest.$ac_ext 18286cat >>conftest.$ac_ext <<_ACEOF 18287/* end confdefs.h. */ 18288 18289int 18290main () 18291{ 18292 18293 ; 18294 return 0; 18295} 18296_ACEOF 18297rm -f conftest.$ac_objext 18298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18299 (eval $ac_compile) 2>conftest.er1 18300 ac_status=$? 18301 grep -v '^ *+' conftest.er1 >conftest.err 18302 rm -f conftest.er1 18303 cat conftest.err >&5 18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18305 (exit $ac_status); } && 18306 { ac_try='test -z "$ac_c_werror_flag" 18307 || test ! -s conftest.err' 18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18309 (eval $ac_try) 2>&5 18310 ac_status=$? 18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18312 (exit $ac_status); }; } && 18313 { ac_try='test -s conftest.$ac_objext' 18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18315 (eval $ac_try) 2>&5 18316 ac_status=$? 18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18318 (exit $ac_status); }; }; then 18319 ac_cv_prog_cc_optok=yes 18320else 18321 echo "$as_me: failed program was:" >&5 18322sed 's/^/| /' conftest.$ac_ext >&5 18323 18324ac_cv_prog_cc_optok=no 18325fi 18326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18327 if test "$ac_cv_prog_cc_optok" = "yes"; then 18328 echo "$as_me:$LINENO: result: yes" >&5 18329echo "${ECHO_T}yes" >&6 18330 CFLAGS="$ac_save_CFLAGS -Wshadow" 18331 else 18332 echo "$as_me:$LINENO: result: no" >&5 18333echo "${ECHO_T}no" >&6 18334 CFLAGS=$ac_save_CFLAGS 18335 fi 18336 18337 18338 18339 ac_save_CFLAGS=$CFLAGS 18340 CFLAGS="-Wpointer-arith" 18341 echo "$as_me:$LINENO: checking whether $CC accepts -Wpointer-arith" >&5 18342echo $ECHO_N "checking whether $CC accepts -Wpointer-arith... $ECHO_C" >&6 18343 cat >conftest.$ac_ext <<_ACEOF 18344/* confdefs.h. */ 18345_ACEOF 18346cat confdefs.h >>conftest.$ac_ext 18347cat >>conftest.$ac_ext <<_ACEOF 18348/* end confdefs.h. */ 18349 18350int 18351main () 18352{ 18353 18354 ; 18355 return 0; 18356} 18357_ACEOF 18358rm -f conftest.$ac_objext 18359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18360 (eval $ac_compile) 2>conftest.er1 18361 ac_status=$? 18362 grep -v '^ *+' conftest.er1 >conftest.err 18363 rm -f conftest.er1 18364 cat conftest.err >&5 18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18366 (exit $ac_status); } && 18367 { ac_try='test -z "$ac_c_werror_flag" 18368 || test ! -s conftest.err' 18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18370 (eval $ac_try) 2>&5 18371 ac_status=$? 18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18373 (exit $ac_status); }; } && 18374 { ac_try='test -s conftest.$ac_objext' 18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18376 (eval $ac_try) 2>&5 18377 ac_status=$? 18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18379 (exit $ac_status); }; }; then 18380 ac_cv_prog_cc_optok=yes 18381else 18382 echo "$as_me: failed program was:" >&5 18383sed 's/^/| /' conftest.$ac_ext >&5 18384 18385ac_cv_prog_cc_optok=no 18386fi 18387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18388 if test "$ac_cv_prog_cc_optok" = "yes"; then 18389 echo "$as_me:$LINENO: result: yes" >&5 18390echo "${ECHO_T}yes" >&6 18391 CFLAGS="$ac_save_CFLAGS -Wpointer-arith" 18392 else 18393 echo "$as_me:$LINENO: result: no" >&5 18394echo "${ECHO_T}no" >&6 18395 CFLAGS=$ac_save_CFLAGS 18396 fi 18397 18398 18399 18400 ac_save_CFLAGS=$CFLAGS 18401 CFLAGS="-Wcast-align" 18402 echo "$as_me:$LINENO: checking whether $CC accepts -Wcast-align" >&5 18403echo $ECHO_N "checking whether $CC accepts -Wcast-align... $ECHO_C" >&6 18404 cat >conftest.$ac_ext <<_ACEOF 18405/* confdefs.h. */ 18406_ACEOF 18407cat confdefs.h >>conftest.$ac_ext 18408cat >>conftest.$ac_ext <<_ACEOF 18409/* end confdefs.h. */ 18410 18411int 18412main () 18413{ 18414 18415 ; 18416 return 0; 18417} 18418_ACEOF 18419rm -f conftest.$ac_objext 18420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18421 (eval $ac_compile) 2>conftest.er1 18422 ac_status=$? 18423 grep -v '^ *+' conftest.er1 >conftest.err 18424 rm -f conftest.er1 18425 cat conftest.err >&5 18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18427 (exit $ac_status); } && 18428 { ac_try='test -z "$ac_c_werror_flag" 18429 || test ! -s conftest.err' 18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18431 (eval $ac_try) 2>&5 18432 ac_status=$? 18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18434 (exit $ac_status); }; } && 18435 { ac_try='test -s conftest.$ac_objext' 18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18437 (eval $ac_try) 2>&5 18438 ac_status=$? 18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18440 (exit $ac_status); }; }; then 18441 ac_cv_prog_cc_optok=yes 18442else 18443 echo "$as_me: failed program was:" >&5 18444sed 's/^/| /' conftest.$ac_ext >&5 18445 18446ac_cv_prog_cc_optok=no 18447fi 18448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18449 if test "$ac_cv_prog_cc_optok" = "yes"; then 18450 echo "$as_me:$LINENO: result: yes" >&5 18451echo "${ECHO_T}yes" >&6 18452 CFLAGS="$ac_save_CFLAGS -Wcast-align" 18453 else 18454 echo "$as_me:$LINENO: result: no" >&5 18455echo "${ECHO_T}no" >&6 18456 CFLAGS=$ac_save_CFLAGS 18457 fi 18458 18459 18460 18461 ac_save_CFLAGS=$CFLAGS 18462 CFLAGS="-Wwrite-strings" 18463 echo "$as_me:$LINENO: checking whether $CC accepts -Wwrite-strings" >&5 18464echo $ECHO_N "checking whether $CC accepts -Wwrite-strings... $ECHO_C" >&6 18465 cat >conftest.$ac_ext <<_ACEOF 18466/* confdefs.h. */ 18467_ACEOF 18468cat confdefs.h >>conftest.$ac_ext 18469cat >>conftest.$ac_ext <<_ACEOF 18470/* end confdefs.h. */ 18471 18472int 18473main () 18474{ 18475 18476 ; 18477 return 0; 18478} 18479_ACEOF 18480rm -f conftest.$ac_objext 18481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18482 (eval $ac_compile) 2>conftest.er1 18483 ac_status=$? 18484 grep -v '^ *+' conftest.er1 >conftest.err 18485 rm -f conftest.er1 18486 cat conftest.err >&5 18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18488 (exit $ac_status); } && 18489 { ac_try='test -z "$ac_c_werror_flag" 18490 || test ! -s conftest.err' 18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18492 (eval $ac_try) 2>&5 18493 ac_status=$? 18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18495 (exit $ac_status); }; } && 18496 { ac_try='test -s conftest.$ac_objext' 18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18498 (eval $ac_try) 2>&5 18499 ac_status=$? 18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18501 (exit $ac_status); }; }; then 18502 ac_cv_prog_cc_optok=yes 18503else 18504 echo "$as_me: failed program was:" >&5 18505sed 's/^/| /' conftest.$ac_ext >&5 18506 18507ac_cv_prog_cc_optok=no 18508fi 18509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18510 if test "$ac_cv_prog_cc_optok" = "yes"; then 18511 echo "$as_me:$LINENO: result: yes" >&5 18512echo "${ECHO_T}yes" >&6 18513 CFLAGS="$ac_save_CFLAGS -Wwrite-strings" 18514 else 18515 echo "$as_me:$LINENO: result: no" >&5 18516echo "${ECHO_T}no" >&6 18517 CFLAGS=$ac_save_CFLAGS 18518 fi 18519 18520 18521 18522 ac_save_CFLAGS=$CFLAGS 18523 CFLAGS="-Wstrict-prototypes" 18524 echo "$as_me:$LINENO: checking whether $CC accepts -Wstrict-prototypes" >&5 18525echo $ECHO_N "checking whether $CC accepts -Wstrict-prototypes... $ECHO_C" >&6 18526 cat >conftest.$ac_ext <<_ACEOF 18527/* confdefs.h. */ 18528_ACEOF 18529cat confdefs.h >>conftest.$ac_ext 18530cat >>conftest.$ac_ext <<_ACEOF 18531/* end confdefs.h. */ 18532 18533int 18534main () 18535{ 18536 18537 ; 18538 return 0; 18539} 18540_ACEOF 18541rm -f conftest.$ac_objext 18542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18543 (eval $ac_compile) 2>conftest.er1 18544 ac_status=$? 18545 grep -v '^ *+' conftest.er1 >conftest.err 18546 rm -f conftest.er1 18547 cat conftest.err >&5 18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18549 (exit $ac_status); } && 18550 { ac_try='test -z "$ac_c_werror_flag" 18551 || test ! -s conftest.err' 18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18553 (eval $ac_try) 2>&5 18554 ac_status=$? 18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18556 (exit $ac_status); }; } && 18557 { ac_try='test -s conftest.$ac_objext' 18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18559 (eval $ac_try) 2>&5 18560 ac_status=$? 18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18562 (exit $ac_status); }; }; then 18563 ac_cv_prog_cc_optok=yes 18564else 18565 echo "$as_me: failed program was:" >&5 18566sed 's/^/| /' conftest.$ac_ext >&5 18567 18568ac_cv_prog_cc_optok=no 18569fi 18570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18571 if test "$ac_cv_prog_cc_optok" = "yes"; then 18572 echo "$as_me:$LINENO: result: yes" >&5 18573echo "${ECHO_T}yes" >&6 18574 CFLAGS="$ac_save_CFLAGS -Wstrict-prototypes" 18575 else 18576 echo "$as_me:$LINENO: result: no" >&5 18577echo "${ECHO_T}no" >&6 18578 CFLAGS=$ac_save_CFLAGS 18579 fi 18580 18581 18582 18583 ac_save_CFLAGS=$CFLAGS 18584 CFLAGS="-Wmissing-prototypes" 18585 echo "$as_me:$LINENO: checking whether $CC accepts -Wmissing-prototypes" >&5 18586echo $ECHO_N "checking whether $CC accepts -Wmissing-prototypes... $ECHO_C" >&6 18587 cat >conftest.$ac_ext <<_ACEOF 18588/* confdefs.h. */ 18589_ACEOF 18590cat confdefs.h >>conftest.$ac_ext 18591cat >>conftest.$ac_ext <<_ACEOF 18592/* end confdefs.h. */ 18593 18594int 18595main () 18596{ 18597 18598 ; 18599 return 0; 18600} 18601_ACEOF 18602rm -f conftest.$ac_objext 18603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18604 (eval $ac_compile) 2>conftest.er1 18605 ac_status=$? 18606 grep -v '^ *+' conftest.er1 >conftest.err 18607 rm -f conftest.er1 18608 cat conftest.err >&5 18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18610 (exit $ac_status); } && 18611 { ac_try='test -z "$ac_c_werror_flag" 18612 || test ! -s conftest.err' 18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18614 (eval $ac_try) 2>&5 18615 ac_status=$? 18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18617 (exit $ac_status); }; } && 18618 { ac_try='test -s conftest.$ac_objext' 18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18620 (eval $ac_try) 2>&5 18621 ac_status=$? 18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18623 (exit $ac_status); }; }; then 18624 ac_cv_prog_cc_optok=yes 18625else 18626 echo "$as_me: failed program was:" >&5 18627sed 's/^/| /' conftest.$ac_ext >&5 18628 18629ac_cv_prog_cc_optok=no 18630fi 18631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18632 if test "$ac_cv_prog_cc_optok" = "yes"; then 18633 echo "$as_me:$LINENO: result: yes" >&5 18634echo "${ECHO_T}yes" >&6 18635 CFLAGS="$ac_save_CFLAGS -Wmissing-prototypes" 18636 else 18637 echo "$as_me:$LINENO: result: no" >&5 18638echo "${ECHO_T}no" >&6 18639 CFLAGS=$ac_save_CFLAGS 18640 fi 18641 18642 18643 18644 ac_save_CFLAGS=$CFLAGS 18645 CFLAGS="-Wnested-externs" 18646 echo "$as_me:$LINENO: checking whether $CC accepts -Wnested-externs" >&5 18647echo $ECHO_N "checking whether $CC accepts -Wnested-externs... $ECHO_C" >&6 18648 cat >conftest.$ac_ext <<_ACEOF 18649/* confdefs.h. */ 18650_ACEOF 18651cat confdefs.h >>conftest.$ac_ext 18652cat >>conftest.$ac_ext <<_ACEOF 18653/* end confdefs.h. */ 18654 18655int 18656main () 18657{ 18658 18659 ; 18660 return 0; 18661} 18662_ACEOF 18663rm -f conftest.$ac_objext 18664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18665 (eval $ac_compile) 2>conftest.er1 18666 ac_status=$? 18667 grep -v '^ *+' conftest.er1 >conftest.err 18668 rm -f conftest.er1 18669 cat conftest.err >&5 18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18671 (exit $ac_status); } && 18672 { ac_try='test -z "$ac_c_werror_flag" 18673 || test ! -s conftest.err' 18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18675 (eval $ac_try) 2>&5 18676 ac_status=$? 18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18678 (exit $ac_status); }; } && 18679 { ac_try='test -s conftest.$ac_objext' 18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18681 (eval $ac_try) 2>&5 18682 ac_status=$? 18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18684 (exit $ac_status); }; }; then 18685 ac_cv_prog_cc_optok=yes 18686else 18687 echo "$as_me: failed program was:" >&5 18688sed 's/^/| /' conftest.$ac_ext >&5 18689 18690ac_cv_prog_cc_optok=no 18691fi 18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18693 if test "$ac_cv_prog_cc_optok" = "yes"; then 18694 echo "$as_me:$LINENO: result: yes" >&5 18695echo "${ECHO_T}yes" >&6 18696 CFLAGS="$ac_save_CFLAGS -Wnested-externs" 18697 else 18698 echo "$as_me:$LINENO: result: no" >&5 18699echo "${ECHO_T}no" >&6 18700 CFLAGS=$ac_save_CFLAGS 18701 fi 18702 18703 18704 18705 ac_save_CFLAGS=$CFLAGS 18706 CFLAGS="-Winline" 18707 echo "$as_me:$LINENO: checking whether $CC accepts -Winline" >&5 18708echo $ECHO_N "checking whether $CC accepts -Winline... $ECHO_C" >&6 18709 cat >conftest.$ac_ext <<_ACEOF 18710/* confdefs.h. */ 18711_ACEOF 18712cat confdefs.h >>conftest.$ac_ext 18713cat >>conftest.$ac_ext <<_ACEOF 18714/* end confdefs.h. */ 18715 18716int 18717main () 18718{ 18719 18720 ; 18721 return 0; 18722} 18723_ACEOF 18724rm -f conftest.$ac_objext 18725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18726 (eval $ac_compile) 2>conftest.er1 18727 ac_status=$? 18728 grep -v '^ *+' conftest.er1 >conftest.err 18729 rm -f conftest.er1 18730 cat conftest.err >&5 18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18732 (exit $ac_status); } && 18733 { ac_try='test -z "$ac_c_werror_flag" 18734 || test ! -s conftest.err' 18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18736 (eval $ac_try) 2>&5 18737 ac_status=$? 18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18739 (exit $ac_status); }; } && 18740 { ac_try='test -s conftest.$ac_objext' 18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18742 (eval $ac_try) 2>&5 18743 ac_status=$? 18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18745 (exit $ac_status); }; }; then 18746 ac_cv_prog_cc_optok=yes 18747else 18748 echo "$as_me: failed program was:" >&5 18749sed 's/^/| /' conftest.$ac_ext >&5 18750 18751ac_cv_prog_cc_optok=no 18752fi 18753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18754 if test "$ac_cv_prog_cc_optok" = "yes"; then 18755 echo "$as_me:$LINENO: result: yes" >&5 18756echo "${ECHO_T}yes" >&6 18757 CFLAGS="$ac_save_CFLAGS -Winline" 18758 else 18759 echo "$as_me:$LINENO: result: no" >&5 18760echo "${ECHO_T}no" >&6 18761 CFLAGS=$ac_save_CFLAGS 18762 fi 18763 18764 18765 18766 ac_save_CFLAGS=$CFLAGS 18767 CFLAGS="-Wdisabled-optimization" 18768 echo "$as_me:$LINENO: checking whether $CC accepts -Wdisabled-optimization" >&5 18769echo $ECHO_N "checking whether $CC accepts -Wdisabled-optimization... $ECHO_C" >&6 18770 cat >conftest.$ac_ext <<_ACEOF 18771/* confdefs.h. */ 18772_ACEOF 18773cat confdefs.h >>conftest.$ac_ext 18774cat >>conftest.$ac_ext <<_ACEOF 18775/* end confdefs.h. */ 18776 18777int 18778main () 18779{ 18780 18781 ; 18782 return 0; 18783} 18784_ACEOF 18785rm -f conftest.$ac_objext 18786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18787 (eval $ac_compile) 2>conftest.er1 18788 ac_status=$? 18789 grep -v '^ *+' conftest.er1 >conftest.err 18790 rm -f conftest.er1 18791 cat conftest.err >&5 18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18793 (exit $ac_status); } && 18794 { ac_try='test -z "$ac_c_werror_flag" 18795 || test ! -s conftest.err' 18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18797 (eval $ac_try) 2>&5 18798 ac_status=$? 18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18800 (exit $ac_status); }; } && 18801 { ac_try='test -s conftest.$ac_objext' 18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18803 (eval $ac_try) 2>&5 18804 ac_status=$? 18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18806 (exit $ac_status); }; }; then 18807 ac_cv_prog_cc_optok=yes 18808else 18809 echo "$as_me: failed program was:" >&5 18810sed 's/^/| /' conftest.$ac_ext >&5 18811 18812ac_cv_prog_cc_optok=no 18813fi 18814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18815 if test "$ac_cv_prog_cc_optok" = "yes"; then 18816 echo "$as_me:$LINENO: result: yes" >&5 18817echo "${ECHO_T}yes" >&6 18818 CFLAGS="$ac_save_CFLAGS -Wdisabled-optimization" 18819 else 18820 echo "$as_me:$LINENO: result: no" >&5 18821echo "${ECHO_T}no" >&6 18822 CFLAGS=$ac_save_CFLAGS 18823 fi 18824 18825 18826# AC_C_CFLAGS(-std=c89) 18827# AC_C_CFLAGS(-pedantic) 18828# AC_C_CFLAGS(-Werror) 18829 18830 ac_save_CFLAGS=$CFLAGS 18831 CFLAGS="-ffast-math" 18832 echo "$as_me:$LINENO: checking whether $CC accepts -ffast-math" >&5 18833echo $ECHO_N "checking whether $CC accepts -ffast-math... $ECHO_C" >&6 18834 cat >conftest.$ac_ext <<_ACEOF 18835/* confdefs.h. */ 18836_ACEOF 18837cat confdefs.h >>conftest.$ac_ext 18838cat >>conftest.$ac_ext <<_ACEOF 18839/* end confdefs.h. */ 18840 18841int 18842main () 18843{ 18844 18845 ; 18846 return 0; 18847} 18848_ACEOF 18849rm -f conftest.$ac_objext 18850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18851 (eval $ac_compile) 2>conftest.er1 18852 ac_status=$? 18853 grep -v '^ *+' conftest.er1 >conftest.err 18854 rm -f conftest.er1 18855 cat conftest.err >&5 18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18857 (exit $ac_status); } && 18858 { ac_try='test -z "$ac_c_werror_flag" 18859 || test ! -s conftest.err' 18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18861 (eval $ac_try) 2>&5 18862 ac_status=$? 18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18864 (exit $ac_status); }; } && 18865 { ac_try='test -s conftest.$ac_objext' 18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18867 (eval $ac_try) 2>&5 18868 ac_status=$? 18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18870 (exit $ac_status); }; }; then 18871 ac_cv_prog_cc_optok=yes 18872else 18873 echo "$as_me: failed program was:" >&5 18874sed 's/^/| /' conftest.$ac_ext >&5 18875 18876ac_cv_prog_cc_optok=no 18877fi 18878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18879 if test "$ac_cv_prog_cc_optok" = "yes"; then 18880 echo "$as_me:$LINENO: result: yes" >&5 18881echo "${ECHO_T}yes" >&6 18882 CFLAGS="$ac_save_CFLAGS -ffast-math" 18883 else 18884 echo "$as_me:$LINENO: result: no" >&5 18885echo "${ECHO_T}no" >&6 18886 CFLAGS=$ac_save_CFLAGS 18887 fi 18888 18889 18890 18891 ac_save_CFLAGS=$CFLAGS 18892 CFLAGS="-funsigned-char" 18893 echo "$as_me:$LINENO: checking whether $CC accepts -funsigned-char" >&5 18894echo $ECHO_N "checking whether $CC accepts -funsigned-char... $ECHO_C" >&6 18895 cat >conftest.$ac_ext <<_ACEOF 18896/* confdefs.h. */ 18897_ACEOF 18898cat confdefs.h >>conftest.$ac_ext 18899cat >>conftest.$ac_ext <<_ACEOF 18900/* end confdefs.h. */ 18901 18902int 18903main () 18904{ 18905 18906 ; 18907 return 0; 18908} 18909_ACEOF 18910rm -f conftest.$ac_objext 18911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18912 (eval $ac_compile) 2>conftest.er1 18913 ac_status=$? 18914 grep -v '^ *+' conftest.er1 >conftest.err 18915 rm -f conftest.er1 18916 cat conftest.err >&5 18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18918 (exit $ac_status); } && 18919 { ac_try='test -z "$ac_c_werror_flag" 18920 || test ! -s conftest.err' 18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18922 (eval $ac_try) 2>&5 18923 ac_status=$? 18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18925 (exit $ac_status); }; } && 18926 { ac_try='test -s conftest.$ac_objext' 18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18928 (eval $ac_try) 2>&5 18929 ac_status=$? 18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18931 (exit $ac_status); }; }; then 18932 ac_cv_prog_cc_optok=yes 18933else 18934 echo "$as_me: failed program was:" >&5 18935sed 's/^/| /' conftest.$ac_ext >&5 18936 18937ac_cv_prog_cc_optok=no 18938fi 18939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18940 if test "$ac_cv_prog_cc_optok" = "yes"; then 18941 echo "$as_me:$LINENO: result: yes" >&5 18942echo "${ECHO_T}yes" >&6 18943 CFLAGS="$ac_save_CFLAGS -funsigned-char" 18944 else 18945 echo "$as_me:$LINENO: result: no" >&5 18946echo "${ECHO_T}no" >&6 18947 CFLAGS=$ac_save_CFLAGS 18948 fi 18949 18950 18951 else 18952 echo "$as_me:$LINENO: result: no" >&5 18953echo "${ECHO_T}no" >&6 18954 fi 18955 18956else 18957 18958 echo "$as_me:$LINENO: result: no" >&5 18959echo "${ECHO_T}no" >&6 18960 18961 18962fi; 18963 18964 # Compile with extra-strict warnings? 18965 18966 echo "$as_me:$LINENO: checking whether to enable alternate column names" >&5 18967echo $ECHO_N "checking whether to enable alternate column names... $ECHO_C" >&6 18968 # Check whether --enable-alt-names or --disable-alt-names was given. 18969if test "${enable_alt_names+set}" = set; then 18970 enableval="$enable_alt_names" 18971 18972 if test "$enableval" = yes 18973 then 18974 18975cat >>confdefs.h <<\_ACEOF 18976#define DN_COLUMN_NAMES 1 18977_ACEOF 18978 18979 echo "$as_me:$LINENO: result: yes" >&5 18980echo "${ECHO_T}yes" >&6 18981 else 18982 echo "$as_me:$LINENO: result: no" >&5 18983echo "${ECHO_T}no" >&6 18984 fi 18985 18986else 18987 echo "$as_me:$LINENO: result: no" >&5 18988echo "${ECHO_T}no" >&6 18989fi; 18990 18991 # Alternate column names for DN 18992 18993 echo "$as_me:$LINENO: checking whether to enable remote server status" >&5 18994echo $ECHO_N "checking whether to enable remote server status... $ECHO_C" >&6 18995 # Check whether --enable-status or --disable-status was given. 18996if test "${enable_status+set}" = set; then 18997 enableval="$enable_status" 18998 18999 if test "$enableval" = yes 19000 then 19001 19002cat >>confdefs.h <<\_ACEOF 19003#define STATUS_ENABLED 1 19004_ACEOF 19005 19006 echo "$as_me:$LINENO: result: yes" >&5 19007echo "${ECHO_T}yes" >&6 19008 else 19009 echo "$as_me:$LINENO: result: no" >&5 19010echo "${ECHO_T}no" >&6 19011 fi 19012 19013else 19014 echo "$as_me:$LINENO: result: no" >&5 19015echo "${ECHO_T}no" >&6 19016fi; 19017 19018 # Enable the STATUS opcode to check server status 19019 19020 echo "$as_me:$LINENO: checking whether to disable date/time in verbose output" >&5 19021echo $ECHO_N "checking whether to disable date/time in verbose output... $ECHO_C" >&6 19022 # Check whether --enable-date-logging or --disable-date-logging was given. 19023if test "${enable_date_logging+set}" = set; then 19024 enableval="$enable_date_logging" 19025 19026 if test "$enableval" = yes 19027 then 19028 echo "$as_me:$LINENO: result: no" >&5 19029echo "${ECHO_T}no" >&6 19030 19031cat >>confdefs.h <<\_ACEOF 19032#define DISABLE_DATE_LOGGING 0 19033_ACEOF 19034 19035 else 19036 echo "$as_me:$LINENO: result: yes" >&5 19037echo "${ECHO_T}yes" >&6 19038 19039cat >>confdefs.h <<\_ACEOF 19040#define DISABLE_DATE_LOGGING 1 19041_ACEOF 19042 19043 fi 19044 19045else 19046 19047 echo "$as_me:$LINENO: result: no" >&5 19048echo "${ECHO_T}no" >&6 19049 19050cat >>confdefs.h <<\_ACEOF 19051#define DISABLE_DATE_LOGGING 0 19052_ACEOF 19053 19054 19055fi; 19056 19057 # Disable date/time in verbose output? 19058 19059 ## @WEBROOT@ def for builds on homepage 19060 WEBROOT="/www/htdocs/mydns" 19061 19062 19063 ## intl include dir 19064 INTLINCLUDE="-I\$(top_srcdir)/intl" 19065 19066 19067 ## Include path and library for lib/ (libmydnsutil) 19068 UTILDIR="\$(top_srcdir)/lib" 19069 UTILINCLUDE="-I$UTILDIR" 19070 LIBUTIL="$UTILDIR/libmydnsutil.a" 19071 19072 19073 19074 19075 ## Include path and library for src/lib/ (libmydns) 19076 MYDNSDIR="\$(top_srcdir)/src/lib" 19077 MYDNSINCLUDE="-I$MYDNSDIR" 19078 LIBMYDNS="$MYDNSDIR/libmydns.a" 19079 19080 19081 19082 19083 ## Documentation directory 19084 DOCDIR="\$(top_srcdir)/doc" 19085 19086 19087 ## "version.sed" 19088 SEDFILE="\$(top_srcdir)/version.sed" 19089 19090 19091 # Set variables containing dirs 19092 19093 ac_config_files="$ac_config_files contrib/Makefile intl/Makefile po/Makefile.in m4/Makefile Makefile lib/Makefile src/Makefile src/lib/Makefile src/mydns/Makefile src/util/Makefile pkg/Makefile doc/Makefile" 19094cat >confcache <<\_ACEOF 19095# This file is a shell script that caches the results of configure 19096# tests run on this system so they can be shared between configure 19097# scripts and configure runs, see configure's option --config-cache. 19098# It is not useful on other systems. If it contains results you don't 19099# want to keep, you may remove or edit it. 19100# 19101# config.status only pays attention to the cache file if you give it 19102# the --recheck option to rerun configure. 19103# 19104# `ac_cv_env_foo' variables (set or unset) will be overridden when 19105# loading this file, other *unset* `ac_cv_foo' will be assigned the 19106# following values. 19107 19108_ACEOF 19109 19110# The following way of writing the cache mishandles newlines in values, 19111# but we know of no workaround that is simple, portable, and efficient. 19112# So, don't put newlines in cache variables' values. 19113# Ultrix sh set writes to stderr and can't be redirected directly, 19114# and sets the high bit in the cache file unless we assign to the vars. 19115{ 19116 (set) 2>&1 | 19117 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19118 *ac_space=\ *) 19119 # `set' does not quote correctly, so add quotes (double-quote 19120 # substitution turns \\\\ into \\, and sed turns \\ into \). 19121 sed -n \ 19122 "s/'/'\\\\''/g; 19123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19124 ;; 19125 *) 19126 # `set' quotes correctly as required by POSIX, so do not add quotes. 19127 sed -n \ 19128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19129 ;; 19130 esac; 19131} | 19132 sed ' 19133 t clear 19134 : clear 19135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19136 t end 19137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19138 : end' >>confcache 19139if diff $cache_file confcache >/dev/null 2>&1; then :; else 19140 if test -w $cache_file; then 19141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19142 cat confcache >$cache_file 19143 else 19144 echo "not updating unwritable cache $cache_file" 19145 fi 19146fi 19147rm -f confcache 19148 19149test "x$prefix" = xNONE && prefix=$ac_default_prefix 19150# Let make expand exec_prefix. 19151test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19152 19153# VPATH may cause trouble with some makes, so we remove $(srcdir), 19154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19155# trailing colons and then remove the whole line if VPATH becomes empty 19156# (actually we leave an empty line to preserve line numbers). 19157if test "x$srcdir" = x.; then 19158 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19159s/:*\$(srcdir):*/:/; 19160s/:*\${srcdir}:*/:/; 19161s/:*@srcdir@:*/:/; 19162s/^\([^=]*=[ ]*\):*/\1/; 19163s/:*$//; 19164s/^[^=]*=[ ]*$//; 19165}' 19166fi 19167 19168DEFS=-DHAVE_CONFIG_H 19169 19170ac_libobjs= 19171ac_ltlibobjs= 19172for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19173 # 1. Remove the extension, and $U if already installed. 19174 ac_i=`echo "$ac_i" | 19175 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19176 # 2. Add them. 19177 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19178 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19179done 19180LIBOBJS=$ac_libobjs 19181 19182LTLIBOBJS=$ac_ltlibobjs 19183 19184 19185if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19186 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19187Usually this means the macro was only invoked conditionally." >&5 19188echo "$as_me: error: conditional \"AMDEP\" was never defined. 19189Usually this means the macro was only invoked conditionally." >&2;} 19190 { (exit 1); exit 1; }; } 19191fi 19192if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19193 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19194Usually this means the macro was only invoked conditionally." >&5 19195echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19196Usually this means the macro was only invoked conditionally." >&2;} 19197 { (exit 1); exit 1; }; } 19198fi 19199 19200: ${CONFIG_STATUS=./config.status} 19201ac_clean_files_save=$ac_clean_files 19202ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19203{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19204echo "$as_me: creating $CONFIG_STATUS" >&6;} 19205cat >$CONFIG_STATUS <<_ACEOF 19206#! $SHELL 19207# Generated by $as_me. 19208# Run this file to recreate the current configuration. 19209# Compiler output produced by configure, useful for debugging 19210# configure, is in config.log if it exists. 19211 19212debug=false 19213ac_cs_recheck=false 19214ac_cs_silent=false 19215SHELL=\${CONFIG_SHELL-$SHELL} 19216_ACEOF 19217 19218cat >>$CONFIG_STATUS <<\_ACEOF 19219## --------------------- ## 19220## M4sh Initialization. ## 19221## --------------------- ## 19222 19223# Be Bourne compatible 19224if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19225 emulate sh 19226 NULLCMD=: 19227 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19228 # is contrary to our usage. Disable this feature. 19229 alias -g '${1+"$@"}'='"$@"' 19230elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19231 set -o posix 19232fi 19233DUALCASE=1; export DUALCASE # for MKS sh 19234 19235# Support unset when possible. 19236if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19237 as_unset=unset 19238else 19239 as_unset=false 19240fi 19241 19242 19243# Work around bugs in pre-3.0 UWIN ksh. 19244$as_unset ENV MAIL MAILPATH 19245PS1='$ ' 19246PS2='> ' 19247PS4='+ ' 19248 19249# NLS nuisances. 19250for as_var in \ 19251 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19252 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19253 LC_TELEPHONE LC_TIME 19254do 19255 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19256 eval $as_var=C; export $as_var 19257 else 19258 $as_unset $as_var 19259 fi 19260done 19261 19262# Required to use basename. 19263if expr a : '\(a\)' >/dev/null 2>&1; then 19264 as_expr=expr 19265else 19266 as_expr=false 19267fi 19268 19269if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19270 as_basename=basename 19271else 19272 as_basename=false 19273fi 19274 19275 19276# Name of the executable. 19277as_me=`$as_basename "$0" || 19278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19279 X"$0" : 'X\(//\)$' \| \ 19280 X"$0" : 'X\(/\)$' \| \ 19281 . : '\(.\)' 2>/dev/null || 19282echo X/"$0" | 19283 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19284 /^X\/\(\/\/\)$/{ s//\1/; q; } 19285 /^X\/\(\/\).*/{ s//\1/; q; } 19286 s/.*/./; q'` 19287 19288 19289# PATH needs CR, and LINENO needs CR and PATH. 19290# Avoid depending upon Character Ranges. 19291as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19292as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19293as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19294as_cr_digits='0123456789' 19295as_cr_alnum=$as_cr_Letters$as_cr_digits 19296 19297# The user is always right. 19298if test "${PATH_SEPARATOR+set}" != set; then 19299 echo "#! /bin/sh" >conf$$.sh 19300 echo "exit 0" >>conf$$.sh 19301 chmod +x conf$$.sh 19302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19303 PATH_SEPARATOR=';' 19304 else 19305 PATH_SEPARATOR=: 19306 fi 19307 rm -f conf$$.sh 19308fi 19309 19310 19311 as_lineno_1=$LINENO 19312 as_lineno_2=$LINENO 19313 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19314 test "x$as_lineno_1" != "x$as_lineno_2" && 19315 test "x$as_lineno_3" = "x$as_lineno_2" || { 19316 # Find who we are. Look in the path if we contain no path at all 19317 # relative or not. 19318 case $0 in 19319 *[\\/]* ) as_myself=$0 ;; 19320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19321for as_dir in $PATH 19322do 19323 IFS=$as_save_IFS 19324 test -z "$as_dir" && as_dir=. 19325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19326done 19327 19328 ;; 19329 esac 19330 # We did not find ourselves, most probably we were run as `sh COMMAND' 19331 # in which case we are not to be found in the path. 19332 if test "x$as_myself" = x; then 19333 as_myself=$0 19334 fi 19335 if test ! -f "$as_myself"; then 19336 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19337echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19338 { (exit 1); exit 1; }; } 19339 fi 19340 case $CONFIG_SHELL in 19341 '') 19342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19343for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19344do 19345 IFS=$as_save_IFS 19346 test -z "$as_dir" && as_dir=. 19347 for as_base in sh bash ksh sh5; do 19348 case $as_dir in 19349 /*) 19350 if ("$as_dir/$as_base" -c ' 19351 as_lineno_1=$LINENO 19352 as_lineno_2=$LINENO 19353 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19354 test "x$as_lineno_1" != "x$as_lineno_2" && 19355 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19356 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19357 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19358 CONFIG_SHELL=$as_dir/$as_base 19359 export CONFIG_SHELL 19360 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19361 fi;; 19362 esac 19363 done 19364done 19365;; 19366 esac 19367 19368 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19369 # uniformly replaced by the line number. The first 'sed' inserts a 19370 # line-number line before each line; the second 'sed' does the real 19371 # work. The second script uses 'N' to pair each line-number line 19372 # with the numbered line, and appends trailing '-' during 19373 # substitution so that $LINENO is not a special case at line end. 19374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19375 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19376 sed '=' <$as_myself | 19377 sed ' 19378 N 19379 s,$,-, 19380 : loop 19381 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19382 t loop 19383 s,-$,, 19384 s,^['$as_cr_digits']*\n,, 19385 ' >$as_me.lineno && 19386 chmod +x $as_me.lineno || 19387 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19388echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19389 { (exit 1); exit 1; }; } 19390 19391 # Don't try to exec as it changes $[0], causing all sort of problems 19392 # (the dirname of $[0] is not the place where we might find the 19393 # original and so on. Autoconf is especially sensible to this). 19394 . ./$as_me.lineno 19395 # Exit status is that of the last command. 19396 exit 19397} 19398 19399 19400case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19401 *c*,-n*) ECHO_N= ECHO_C=' 19402' ECHO_T=' ' ;; 19403 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19404 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19405esac 19406 19407if expr a : '\(a\)' >/dev/null 2>&1; then 19408 as_expr=expr 19409else 19410 as_expr=false 19411fi 19412 19413rm -f conf$$ conf$$.exe conf$$.file 19414echo >conf$$.file 19415if ln -s conf$$.file conf$$ 2>/dev/null; then 19416 # We could just check for DJGPP; but this test a) works b) is more generic 19417 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19418 if test -f conf$$.exe; then 19419 # Don't use ln at all; we don't have any links 19420 as_ln_s='cp -p' 19421 else 19422 as_ln_s='ln -s' 19423 fi 19424elif ln conf$$.file conf$$ 2>/dev/null; then 19425 as_ln_s=ln 19426else 19427 as_ln_s='cp -p' 19428fi 19429rm -f conf$$ conf$$.exe conf$$.file 19430 19431if mkdir -p . 2>/dev/null; then 19432 as_mkdir_p=: 19433else 19434 test -d ./-p && rmdir ./-p 19435 as_mkdir_p=false 19436fi 19437 19438as_executable_p="test -f" 19439 19440# Sed expression to map a string onto a valid CPP name. 19441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19442 19443# Sed expression to map a string onto a valid variable name. 19444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19445 19446 19447# IFS 19448# We need space, tab and new line, in precisely that order. 19449as_nl=' 19450' 19451IFS=" $as_nl" 19452 19453# CDPATH. 19454$as_unset CDPATH 19455 19456exec 6>&1 19457 19458# Open the log real soon, to keep \$[0] and so on meaningful, and to 19459# report actual input values of CONFIG_FILES etc. instead of their 19460# values after options handling. Logging --version etc. is OK. 19461exec 5>>config.log 19462{ 19463 echo 19464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19465## Running $as_me. ## 19466_ASBOX 19467} >&5 19468cat >&5 <<_CSEOF 19469 19470This file was extended by mydns $as_me 1.1.0, which was 19471generated by GNU Autoconf 2.59. Invocation command line was 19472 19473 CONFIG_FILES = $CONFIG_FILES 19474 CONFIG_HEADERS = $CONFIG_HEADERS 19475 CONFIG_LINKS = $CONFIG_LINKS 19476 CONFIG_COMMANDS = $CONFIG_COMMANDS 19477 $ $0 $@ 19478 19479_CSEOF 19480echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19481echo >&5 19482_ACEOF 19483 19484# Files that config.status was made for. 19485if test -n "$ac_config_files"; then 19486 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19487fi 19488 19489if test -n "$ac_config_headers"; then 19490 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19491fi 19492 19493if test -n "$ac_config_links"; then 19494 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19495fi 19496 19497if test -n "$ac_config_commands"; then 19498 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19499fi 19500 19501cat >>$CONFIG_STATUS <<\_ACEOF 19502 19503ac_cs_usage="\ 19504\`$as_me' instantiates files from templates according to the 19505current configuration. 19506 19507Usage: $0 [OPTIONS] [FILE]... 19508 19509 -h, --help print this help, then exit 19510 -V, --version print version number, then exit 19511 -q, --quiet do not print progress messages 19512 -d, --debug don't remove temporary files 19513 --recheck update $as_me by reconfiguring in the same conditions 19514 --file=FILE[:TEMPLATE] 19515 instantiate the configuration file FILE 19516 --header=FILE[:TEMPLATE] 19517 instantiate the configuration header FILE 19518 19519Configuration files: 19520$config_files 19521 19522Configuration headers: 19523$config_headers 19524 19525Configuration commands: 19526$config_commands 19527 19528Report bugs to <bug-autoconf@gnu.org>." 19529_ACEOF 19530 19531cat >>$CONFIG_STATUS <<_ACEOF 19532ac_cs_version="\\ 19533mydns config.status 1.1.0 19534configured by $0, generated by GNU Autoconf 2.59, 19535 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19536 19537Copyright (C) 2003 Free Software Foundation, Inc. 19538This config.status script is free software; the Free Software Foundation 19539gives unlimited permission to copy, distribute and modify it." 19540srcdir=$srcdir 19541INSTALL="$INSTALL" 19542_ACEOF 19543 19544cat >>$CONFIG_STATUS <<\_ACEOF 19545# If no file are specified by the user, then we need to provide default 19546# value. By we need to know if files were specified by the user. 19547ac_need_defaults=: 19548while test $# != 0 19549do 19550 case $1 in 19551 --*=*) 19552 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19553 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19554 ac_shift=: 19555 ;; 19556 -*) 19557 ac_option=$1 19558 ac_optarg=$2 19559 ac_shift=shift 19560 ;; 19561 *) # This is not an option, so the user has probably given explicit 19562 # arguments. 19563 ac_option=$1 19564 ac_need_defaults=false;; 19565 esac 19566 19567 case $ac_option in 19568 # Handling of the options. 19569_ACEOF 19570cat >>$CONFIG_STATUS <<\_ACEOF 19571 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19572 ac_cs_recheck=: ;; 19573 --version | --vers* | -V ) 19574 echo "$ac_cs_version"; exit 0 ;; 19575 --he | --h) 19576 # Conflict between --help and --header 19577 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19578Try \`$0 --help' for more information." >&5 19579echo "$as_me: error: ambiguous option: $1 19580Try \`$0 --help' for more information." >&2;} 19581 { (exit 1); exit 1; }; };; 19582 --help | --hel | -h ) 19583 echo "$ac_cs_usage"; exit 0 ;; 19584 --debug | --d* | -d ) 19585 debug=: ;; 19586 --file | --fil | --fi | --f ) 19587 $ac_shift 19588 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19589 ac_need_defaults=false;; 19590 --header | --heade | --head | --hea ) 19591 $ac_shift 19592 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19593 ac_need_defaults=false;; 19594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19595 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19596 ac_cs_silent=: ;; 19597 19598 # This is an error. 19599 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19600Try \`$0 --help' for more information." >&5 19601echo "$as_me: error: unrecognized option: $1 19602Try \`$0 --help' for more information." >&2;} 19603 { (exit 1); exit 1; }; } ;; 19604 19605 *) ac_config_targets="$ac_config_targets $1" ;; 19606 19607 esac 19608 shift 19609done 19610 19611ac_configure_extra_args= 19612 19613if $ac_cs_silent; then 19614 exec 6>/dev/null 19615 ac_configure_extra_args="$ac_configure_extra_args --silent" 19616fi 19617 19618_ACEOF 19619cat >>$CONFIG_STATUS <<_ACEOF 19620if \$ac_cs_recheck; then 19621 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19622 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19623fi 19624 19625_ACEOF 19626 19627cat >>$CONFIG_STATUS <<_ACEOF 19628# 19629# INIT-COMMANDS section. 19630# 19631 19632AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19633# Capture the value of obsolete ALL_LINGUAS because we need it to compute 19634 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 19635 # from automake. 19636 eval 'ALL_LINGUAS''="$ALL_LINGUAS"' 19637 # Capture the value of LINGUAS because we need it to compute CATALOGS. 19638 LINGUAS="${LINGUAS-%UNSET%}" 19639 19640 19641_ACEOF 19642 19643 19644 19645cat >>$CONFIG_STATUS <<\_ACEOF 19646for ac_config_target in $ac_config_targets 19647do 19648 case "$ac_config_target" in 19649 # Handling of arguments. 19650 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 19651 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 19652 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 19653 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 19654 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19655 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 19656 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19657 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 19658 "src/mydns/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mydns/Makefile" ;; 19659 "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 19660 "pkg/Makefile" ) CONFIG_FILES="$CONFIG_FILES pkg/Makefile" ;; 19661 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19662 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19663 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 19664 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19665 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19666echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19667 { (exit 1); exit 1; }; };; 19668 esac 19669done 19670 19671# If the user did not use the arguments to specify the items to instantiate, 19672# then the envvar interface is used. Set only those that are not. 19673# We use the long form for the default assignment because of an extremely 19674# bizarre bug on SunOS 4.1.3. 19675if $ac_need_defaults; then 19676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19679fi 19680 19681# Have a temporary directory for convenience. Make it in the build tree 19682# simply because there is no reason to put it here, and in addition, 19683# creating and moving files from /tmp can sometimes cause problems. 19684# Create a temporary directory, and hook for its removal unless debugging. 19685$debug || 19686{ 19687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19688 trap '{ (exit 1); exit 1; }' 1 2 13 15 19689} 19690 19691# Create a (secure) tmp directory for tmp files. 19692 19693{ 19694 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 19695 test -n "$tmp" && test -d "$tmp" 19696} || 19697{ 19698 tmp=./confstat$$-$RANDOM 19699 (umask 077 && mkdir $tmp) 19700} || 19701{ 19702 echo "$me: cannot create a temporary directory in ." >&2 19703 { (exit 1); exit 1; } 19704} 19705 19706_ACEOF 19707 19708cat >>$CONFIG_STATUS <<_ACEOF 19709 19710# 19711# CONFIG_FILES section. 19712# 19713 19714# No need to generate the scripts if there are no CONFIG_FILES. 19715# This happens for instance when ./config.status config.h 19716if test -n "\$CONFIG_FILES"; then 19717 # Protect against being on the right side of a sed subst in config.status. 19718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19720s,@SHELL@,$SHELL,;t t 19721s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19722s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19723s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19724s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19725s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19726s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19727s,@exec_prefix@,$exec_prefix,;t t 19728s,@prefix@,$prefix,;t t 19729s,@program_transform_name@,$program_transform_name,;t t 19730s,@bindir@,$bindir,;t t 19731s,@sbindir@,$sbindir,;t t 19732s,@libexecdir@,$libexecdir,;t t 19733s,@datadir@,$datadir,;t t 19734s,@sysconfdir@,$sysconfdir,;t t 19735s,@sharedstatedir@,$sharedstatedir,;t t 19736s,@localstatedir@,$localstatedir,;t t 19737s,@libdir@,$libdir,;t t 19738s,@includedir@,$includedir,;t t 19739s,@oldincludedir@,$oldincludedir,;t t 19740s,@infodir@,$infodir,;t t 19741s,@mandir@,$mandir,;t t 19742s,@build_alias@,$build_alias,;t t 19743s,@host_alias@,$host_alias,;t t 19744s,@target_alias@,$target_alias,;t t 19745s,@DEFS@,$DEFS,;t t 19746s,@ECHO_C@,$ECHO_C,;t t 19747s,@ECHO_N@,$ECHO_N,;t t 19748s,@ECHO_T@,$ECHO_T,;t t 19749s,@LIBS@,$LIBS,;t t 19750s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19751s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19752s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19753s,@CYGPATH_W@,$CYGPATH_W,;t t 19754s,@PACKAGE@,$PACKAGE,;t t 19755s,@VERSION@,$VERSION,;t t 19756s,@ACLOCAL@,$ACLOCAL,;t t 19757s,@AUTOCONF@,$AUTOCONF,;t t 19758s,@AUTOMAKE@,$AUTOMAKE,;t t 19759s,@AUTOHEADER@,$AUTOHEADER,;t t 19760s,@MAKEINFO@,$MAKEINFO,;t t 19761s,@install_sh@,$install_sh,;t t 19762s,@STRIP@,$STRIP,;t t 19763s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 19764s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 19765s,@mkdir_p@,$mkdir_p,;t t 19766s,@AWK@,$AWK,;t t 19767s,@SET_MAKE@,$SET_MAKE,;t t 19768s,@am__leading_dot@,$am__leading_dot,;t t 19769s,@AMTAR@,$AMTAR,;t t 19770s,@am__tar@,$am__tar,;t t 19771s,@am__untar@,$am__untar,;t t 19772s,@CC@,$CC,;t t 19773s,@CFLAGS@,$CFLAGS,;t t 19774s,@LDFLAGS@,$LDFLAGS,;t t 19775s,@CPPFLAGS@,$CPPFLAGS,;t t 19776s,@ac_ct_CC@,$ac_ct_CC,;t t 19777s,@EXEEXT@,$EXEEXT,;t t 19778s,@OBJEXT@,$OBJEXT,;t t 19779s,@DEPDIR@,$DEPDIR,;t t 19780s,@am__include@,$am__include,;t t 19781s,@am__quote@,$am__quote,;t t 19782s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 19783s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 19784s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 19785s,@CCDEPMODE@,$CCDEPMODE,;t t 19786s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 19787s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 19788s,@LN_S@,$LN_S,;t t 19789s,@build@,$build,;t t 19790s,@build_cpu@,$build_cpu,;t t 19791s,@build_vendor@,$build_vendor,;t t 19792s,@build_os@,$build_os,;t t 19793s,@host@,$host,;t t 19794s,@host_cpu@,$host_cpu,;t t 19795s,@host_vendor@,$host_vendor,;t t 19796s,@host_os@,$host_os,;t t 19797s,@ECHO@,$ECHO,;t t 19798s,@RANLIB@,$RANLIB,;t t 19799s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19800s,@CPP@,$CPP,;t t 19801s,@EGREP@,$EGREP,;t t 19802s,@LIBTOOL@,$LIBTOOL,;t t 19803s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 19804s,@MSGFMT@,$MSGFMT,;t t 19805s,@GMSGFMT@,$GMSGFMT,;t t 19806s,@XGETTEXT@,$XGETTEXT,;t t 19807s,@MSGMERGE@,$MSGMERGE,;t t 19808s,@ALLOCA@,$ALLOCA,;t t 19809s,@GLIBC21@,$GLIBC21,;t t 19810s,@LIBICONV@,$LIBICONV,;t t 19811s,@LTLIBICONV@,$LTLIBICONV,;t t 19812s,@INTLBISON@,$INTLBISON,;t t 19813s,@USE_NLS@,$USE_NLS,;t t 19814s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 19815s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 19816s,@CATOBJEXT@,$CATOBJEXT,;t t 19817s,@INTLOBJS@,$INTLOBJS,;t t 19818s,@DATADIRNAME@,$DATADIRNAME,;t t 19819s,@INSTOBJEXT@,$INSTOBJEXT,;t t 19820s,@GENCAT@,$GENCAT,;t t 19821s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 19822s,@INTLLIBS@,$INTLLIBS,;t t 19823s,@LIBINTL@,$LIBINTL,;t t 19824s,@LTLIBINTL@,$LTLIBINTL,;t t 19825s,@POSUB@,$POSUB,;t t 19826s,@LIBOBJS@,$LIBOBJS,;t t 19827s,@LIBSOCKET@,$LIBSOCKET,;t t 19828s,@LIBNSL@,$LIBNSL,;t t 19829s,@LIBM@,$LIBM,;t t 19830s,@PACKAGE_DATE@,$PACKAGE_DATE,;t t 19831s,@PACKAGE_RELEASE_DATE@,$PACKAGE_RELEASE_DATE,;t t 19832s,@PACKAGE_HOMEPAGE@,$PACKAGE_HOMEPAGE,;t t 19833s,@PACKAGE_COPYRIGHT@,$PACKAGE_COPYRIGHT,;t t 19834s,@COPYRIGHT_HOLDER@,$COPYRIGHT_HOLDER,;t t 19835s,@PACKAGE_AUTHOR@,$PACKAGE_AUTHOR,;t t 19836s,@LIBZ@,$LIBZ,;t t 19837s,@LIBMYSQLCLIENT@,$LIBMYSQLCLIENT,;t t 19838s,@MYSQL_INCLUDE@,$MYSQL_INCLUDE,;t t 19839s,@LIBPQ@,$LIBPQ,;t t 19840s,@PQ_INCLUDE@,$PQ_INCLUDE,;t t 19841s,@LIBSSL@,$LIBSSL,;t t 19842s,@SSLINCLUDE@,$SSLINCLUDE,;t t 19843s,@MYDNS_CONF@,$MYDNS_CONF,;t t 19844s,@ac_mydns_static_build@,$ac_mydns_static_build,;t t 19845s,@USE_DB_NAME@,$USE_DB_NAME,;t t 19846s,@LIBSQL@,$LIBSQL,;t t 19847s,@SQLINCLUDE@,$SQLINCLUDE,;t t 19848s,@PROFILE_ENABLED@,$PROFILE_ENABLED,;t t 19849s,@WEBROOT@,$WEBROOT,;t t 19850s,@INTLINCLUDE@,$INTLINCLUDE,;t t 19851s,@UTILDIR@,$UTILDIR,;t t 19852s,@UTILINCLUDE@,$UTILINCLUDE,;t t 19853s,@LIBUTIL@,$LIBUTIL,;t t 19854s,@MYDNSDIR@,$MYDNSDIR,;t t 19855s,@MYDNSINCLUDE@,$MYDNSINCLUDE,;t t 19856s,@LIBMYDNS@,$LIBMYDNS,;t t 19857s,@DOCDIR@,$DOCDIR,;t t 19858s,@SEDFILE@,$SEDFILE,;t t 19859s,@LTLIBOBJS@,$LTLIBOBJS,;t t 19860CEOF 19861 19862_ACEOF 19863 19864 cat >>$CONFIG_STATUS <<\_ACEOF 19865 # Split the substitutions into bite-sized pieces for seds with 19866 # small command number limits, like on Digital OSF/1 and HP-UX. 19867 ac_max_sed_lines=48 19868 ac_sed_frag=1 # Number of current file. 19869 ac_beg=1 # First line for current file. 19870 ac_end=$ac_max_sed_lines # Line after last line for current file. 19871 ac_more_lines=: 19872 ac_sed_cmds= 19873 while $ac_more_lines; do 19874 if test $ac_beg -gt 1; then 19875 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19876 else 19877 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19878 fi 19879 if test ! -s $tmp/subs.frag; then 19880 ac_more_lines=false 19881 else 19882 # The purpose of the label and of the branching condition is to 19883 # speed up the sed processing (if there are no `@' at all, there 19884 # is no need to browse any of the substitutions). 19885 # These are the two extra sed commands mentioned above. 19886 (echo ':t 19887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19888 if test -z "$ac_sed_cmds"; then 19889 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19890 else 19891 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19892 fi 19893 ac_sed_frag=`expr $ac_sed_frag + 1` 19894 ac_beg=$ac_end 19895 ac_end=`expr $ac_end + $ac_max_sed_lines` 19896 fi 19897 done 19898 if test -z "$ac_sed_cmds"; then 19899 ac_sed_cmds=cat 19900 fi 19901fi # test -n "$CONFIG_FILES" 19902 19903_ACEOF 19904cat >>$CONFIG_STATUS <<\_ACEOF 19905for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19907 case $ac_file in 19908 - | *:- | *:-:* ) # input from stdin 19909 cat >$tmp/stdin 19910 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19912 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19914 * ) ac_file_in=$ac_file.in ;; 19915 esac 19916 19917 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19918 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19920 X"$ac_file" : 'X\(//\)[^/]' \| \ 19921 X"$ac_file" : 'X\(//\)$' \| \ 19922 X"$ac_file" : 'X\(/\)' \| \ 19923 . : '\(.\)' 2>/dev/null || 19924echo X"$ac_file" | 19925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19926 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19927 /^X\(\/\/\)$/{ s//\1/; q; } 19928 /^X\(\/\).*/{ s//\1/; q; } 19929 s/.*/./; q'` 19930 { if $as_mkdir_p; then 19931 mkdir -p "$ac_dir" 19932 else 19933 as_dir="$ac_dir" 19934 as_dirs= 19935 while test ! -d "$as_dir"; do 19936 as_dirs="$as_dir $as_dirs" 19937 as_dir=`(dirname "$as_dir") 2>/dev/null || 19938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19939 X"$as_dir" : 'X\(//\)[^/]' \| \ 19940 X"$as_dir" : 'X\(//\)$' \| \ 19941 X"$as_dir" : 'X\(/\)' \| \ 19942 . : '\(.\)' 2>/dev/null || 19943echo X"$as_dir" | 19944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19945 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19946 /^X\(\/\/\)$/{ s//\1/; q; } 19947 /^X\(\/\).*/{ s//\1/; q; } 19948 s/.*/./; q'` 19949 done 19950 test ! -n "$as_dirs" || mkdir $as_dirs 19951 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19952echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19953 { (exit 1); exit 1; }; }; } 19954 19955 ac_builddir=. 19956 19957if test "$ac_dir" != .; then 19958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19959 # A "../" for each directory in $ac_dir_suffix. 19960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19961else 19962 ac_dir_suffix= ac_top_builddir= 19963fi 19964 19965case $srcdir in 19966 .) # No --srcdir option. We are building in place. 19967 ac_srcdir=. 19968 if test -z "$ac_top_builddir"; then 19969 ac_top_srcdir=. 19970 else 19971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19972 fi ;; 19973 [\\/]* | ?:[\\/]* ) # Absolute path. 19974 ac_srcdir=$srcdir$ac_dir_suffix; 19975 ac_top_srcdir=$srcdir ;; 19976 *) # Relative path. 19977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19978 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19979esac 19980 19981# Do not use `cd foo && pwd` to compute absolute paths, because 19982# the directories may not exist. 19983case `pwd` in 19984.) ac_abs_builddir="$ac_dir";; 19985*) 19986 case "$ac_dir" in 19987 .) ac_abs_builddir=`pwd`;; 19988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 19989 *) ac_abs_builddir=`pwd`/"$ac_dir";; 19990 esac;; 19991esac 19992case $ac_abs_builddir in 19993.) ac_abs_top_builddir=${ac_top_builddir}.;; 19994*) 19995 case ${ac_top_builddir}. in 19996 .) ac_abs_top_builddir=$ac_abs_builddir;; 19997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 19998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 19999 esac;; 20000esac 20001case $ac_abs_builddir in 20002.) ac_abs_srcdir=$ac_srcdir;; 20003*) 20004 case $ac_srcdir in 20005 .) ac_abs_srcdir=$ac_abs_builddir;; 20006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20008 esac;; 20009esac 20010case $ac_abs_builddir in 20011.) ac_abs_top_srcdir=$ac_top_srcdir;; 20012*) 20013 case $ac_top_srcdir in 20014 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20017 esac;; 20018esac 20019 20020 20021 case $INSTALL in 20022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20023 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20024 esac 20025 20026 if test x"$ac_file" != x-; then 20027 { echo "$as_me:$LINENO: creating $ac_file" >&5 20028echo "$as_me: creating $ac_file" >&6;} 20029 rm -f "$ac_file" 20030 fi 20031 # Let's still pretend it is `configure' which instantiates (i.e., don't 20032 # use $as_me), people would be surprised to read: 20033 # /* config.h. Generated by config.status. */ 20034 if test x"$ac_file" = x-; then 20035 configure_input= 20036 else 20037 configure_input="$ac_file. " 20038 fi 20039 configure_input=$configure_input"Generated from `echo $ac_file_in | 20040 sed 's,.*/,,'` by configure." 20041 20042 # First look for the input files in the build tree, otherwise in the 20043 # src tree. 20044 ac_file_inputs=`IFS=: 20045 for f in $ac_file_in; do 20046 case $f in 20047 -) echo $tmp/stdin ;; 20048 [\\/$]*) 20049 # Absolute (can't be DOS-style, as IFS=:) 20050 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20051echo "$as_me: error: cannot find input file: $f" >&2;} 20052 { (exit 1); exit 1; }; } 20053 echo "$f";; 20054 *) # Relative 20055 if test -f "$f"; then 20056 # Build tree 20057 echo "$f" 20058 elif test -f "$srcdir/$f"; then 20059 # Source tree 20060 echo "$srcdir/$f" 20061 else 20062 # /dev/null tree 20063 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20064echo "$as_me: error: cannot find input file: $f" >&2;} 20065 { (exit 1); exit 1; }; } 20066 fi;; 20067 esac 20068 done` || { (exit 1); exit 1; } 20069_ACEOF 20070cat >>$CONFIG_STATUS <<_ACEOF 20071 sed "$ac_vpsub 20072$extrasub 20073_ACEOF 20074cat >>$CONFIG_STATUS <<\_ACEOF 20075:t 20076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20077s,@configure_input@,$configure_input,;t t 20078s,@srcdir@,$ac_srcdir,;t t 20079s,@abs_srcdir@,$ac_abs_srcdir,;t t 20080s,@top_srcdir@,$ac_top_srcdir,;t t 20081s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20082s,@builddir@,$ac_builddir,;t t 20083s,@abs_builddir@,$ac_abs_builddir,;t t 20084s,@top_builddir@,$ac_top_builddir,;t t 20085s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20086s,@INSTALL@,$ac_INSTALL,;t t 20087" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20088 rm -f $tmp/stdin 20089 if test x"$ac_file" != x-; then 20090 mv $tmp/out $ac_file 20091 else 20092 cat $tmp/out 20093 rm -f $tmp/out 20094 fi 20095 20096done 20097_ACEOF 20098cat >>$CONFIG_STATUS <<\_ACEOF 20099 20100# 20101# CONFIG_HEADER section. 20102# 20103 20104# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20105# NAME is the cpp macro being defined and VALUE is the value it is being given. 20106# 20107# ac_d sets the value in "#define NAME VALUE" lines. 20108ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20109ac_dB='[ ].*$,\1#\2' 20110ac_dC=' ' 20111ac_dD=',;t' 20112# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20113ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20114ac_uB='$,\1#\2define\3' 20115ac_uC=' ' 20116ac_uD=',;t' 20117 20118for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20120 case $ac_file in 20121 - | *:- | *:-:* ) # input from stdin 20122 cat >$tmp/stdin 20123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20127 * ) ac_file_in=$ac_file.in ;; 20128 esac 20129 20130 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20131echo "$as_me: creating $ac_file" >&6;} 20132 20133 # First look for the input files in the build tree, otherwise in the 20134 # src tree. 20135 ac_file_inputs=`IFS=: 20136 for f in $ac_file_in; do 20137 case $f in 20138 -) echo $tmp/stdin ;; 20139 [\\/$]*) 20140 # Absolute (can't be DOS-style, as IFS=:) 20141 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20142echo "$as_me: error: cannot find input file: $f" >&2;} 20143 { (exit 1); exit 1; }; } 20144 # Do quote $f, to prevent DOS paths from being IFS'd. 20145 echo "$f";; 20146 *) # Relative 20147 if test -f "$f"; then 20148 # Build tree 20149 echo "$f" 20150 elif test -f "$srcdir/$f"; then 20151 # Source tree 20152 echo "$srcdir/$f" 20153 else 20154 # /dev/null tree 20155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20156echo "$as_me: error: cannot find input file: $f" >&2;} 20157 { (exit 1); exit 1; }; } 20158 fi;; 20159 esac 20160 done` || { (exit 1); exit 1; } 20161 # Remove the trailing spaces. 20162 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20163 20164_ACEOF 20165 20166# Transform confdefs.h into two sed scripts, `conftest.defines' and 20167# `conftest.undefs', that substitutes the proper values into 20168# config.h.in to produce config.h. The first handles `#define' 20169# templates, and the second `#undef' templates. 20170# And first: Protect against being on the right side of a sed subst in 20171# config.status. Protect against being in an unquoted here document 20172# in config.status. 20173rm -f conftest.defines conftest.undefs 20174# Using a here document instead of a string reduces the quoting nightmare. 20175# Putting comments in sed scripts is not portable. 20176# 20177# `end' is used to avoid that the second main sed command (meant for 20178# 0-ary CPP macros) applies to n-ary macro definitions. 20179# See the Autoconf documentation for `clear'. 20180cat >confdef2sed.sed <<\_ACEOF 20181s/[\\&,]/\\&/g 20182s,[\\$`],\\&,g 20183t clear 20184: clear 20185s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20186t end 20187s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20188: end 20189_ACEOF 20190# If some macros were called several times there might be several times 20191# the same #defines, which is useless. Nevertheless, we may not want to 20192# sort them, since we want the *last* AC-DEFINE to be honored. 20193uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20194sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20195rm -f confdef2sed.sed 20196 20197# This sed command replaces #undef with comments. This is necessary, for 20198# example, in the case of _POSIX_SOURCE, which is predefined and required 20199# on some systems where configure will not decide to define it. 20200cat >>conftest.undefs <<\_ACEOF 20201s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20202_ACEOF 20203 20204# Break up conftest.defines because some shells have a limit on the size 20205# of here documents, and old seds have small limits too (100 cmds). 20206echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20207echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20208echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20209echo ' :' >>$CONFIG_STATUS 20210rm -f conftest.tail 20211while grep . conftest.defines >/dev/null 20212do 20213 # Write a limited-size here document to $tmp/defines.sed. 20214 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20215 # Speed up: don't consider the non `#define' lines. 20216 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20217 # Work around the forget-to-reset-the-flag bug. 20218 echo 't clr' >>$CONFIG_STATUS 20219 echo ': clr' >>$CONFIG_STATUS 20220 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20221 echo 'CEOF 20222 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20223 rm -f $tmp/in 20224 mv $tmp/out $tmp/in 20225' >>$CONFIG_STATUS 20226 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20227 rm -f conftest.defines 20228 mv conftest.tail conftest.defines 20229done 20230rm -f conftest.defines 20231echo ' fi # grep' >>$CONFIG_STATUS 20232echo >>$CONFIG_STATUS 20233 20234# Break up conftest.undefs because some shells have a limit on the size 20235# of here documents, and old seds have small limits too (100 cmds). 20236echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20237rm -f conftest.tail 20238while grep . conftest.undefs >/dev/null 20239do 20240 # Write a limited-size here document to $tmp/undefs.sed. 20241 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20242 # Speed up: don't consider the non `#undef' 20243 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20244 # Work around the forget-to-reset-the-flag bug. 20245 echo 't clr' >>$CONFIG_STATUS 20246 echo ': clr' >>$CONFIG_STATUS 20247 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20248 echo 'CEOF 20249 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20250 rm -f $tmp/in 20251 mv $tmp/out $tmp/in 20252' >>$CONFIG_STATUS 20253 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20254 rm -f conftest.undefs 20255 mv conftest.tail conftest.undefs 20256done 20257rm -f conftest.undefs 20258 20259cat >>$CONFIG_STATUS <<\_ACEOF 20260 # Let's still pretend it is `configure' which instantiates (i.e., don't 20261 # use $as_me), people would be surprised to read: 20262 # /* config.h. Generated by config.status. */ 20263 if test x"$ac_file" = x-; then 20264 echo "/* Generated by configure. */" >$tmp/config.h 20265 else 20266 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20267 fi 20268 cat $tmp/in >>$tmp/config.h 20269 rm -f $tmp/in 20270 if test x"$ac_file" != x-; then 20271 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20272 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20273echo "$as_me: $ac_file is unchanged" >&6;} 20274 else 20275 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20276$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20277 X"$ac_file" : 'X\(//\)[^/]' \| \ 20278 X"$ac_file" : 'X\(//\)$' \| \ 20279 X"$ac_file" : 'X\(/\)' \| \ 20280 . : '\(.\)' 2>/dev/null || 20281echo X"$ac_file" | 20282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20283 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20284 /^X\(\/\/\)$/{ s//\1/; q; } 20285 /^X\(\/\).*/{ s//\1/; q; } 20286 s/.*/./; q'` 20287 { if $as_mkdir_p; then 20288 mkdir -p "$ac_dir" 20289 else 20290 as_dir="$ac_dir" 20291 as_dirs= 20292 while test ! -d "$as_dir"; do 20293 as_dirs="$as_dir $as_dirs" 20294 as_dir=`(dirname "$as_dir") 2>/dev/null || 20295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20296 X"$as_dir" : 'X\(//\)[^/]' \| \ 20297 X"$as_dir" : 'X\(//\)$' \| \ 20298 X"$as_dir" : 'X\(/\)' \| \ 20299 . : '\(.\)' 2>/dev/null || 20300echo X"$as_dir" | 20301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20302 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20303 /^X\(\/\/\)$/{ s//\1/; q; } 20304 /^X\(\/\).*/{ s//\1/; q; } 20305 s/.*/./; q'` 20306 done 20307 test ! -n "$as_dirs" || mkdir $as_dirs 20308 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20309echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20310 { (exit 1); exit 1; }; }; } 20311 20312 rm -f $ac_file 20313 mv $tmp/config.h $ac_file 20314 fi 20315 else 20316 cat $tmp/config.h 20317 rm -f $tmp/config.h 20318 fi 20319# Compute $ac_file's index in $config_headers. 20320_am_stamp_count=1 20321for _am_header in $config_headers :; do 20322 case $_am_header in 20323 $ac_file | $ac_file:* ) 20324 break ;; 20325 * ) 20326 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20327 esac 20328done 20329echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 20330$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20331 X$ac_file : 'X\(//\)[^/]' \| \ 20332 X$ac_file : 'X\(//\)$' \| \ 20333 X$ac_file : 'X\(/\)' \| \ 20334 . : '\(.\)' 2>/dev/null || 20335echo X$ac_file | 20336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20337 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20338 /^X\(\/\/\)$/{ s//\1/; q; } 20339 /^X\(\/\).*/{ s//\1/; q; } 20340 s/.*/./; q'`/stamp-h$_am_stamp_count 20341done 20342_ACEOF 20343cat >>$CONFIG_STATUS <<\_ACEOF 20344 20345# 20346# CONFIG_COMMANDS section. 20347# 20348for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20349 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20350 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20351 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20352$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20353 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20354 X"$ac_dest" : 'X\(//\)$' \| \ 20355 X"$ac_dest" : 'X\(/\)' \| \ 20356 . : '\(.\)' 2>/dev/null || 20357echo X"$ac_dest" | 20358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20359 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20360 /^X\(\/\/\)$/{ s//\1/; q; } 20361 /^X\(\/\).*/{ s//\1/; q; } 20362 s/.*/./; q'` 20363 { if $as_mkdir_p; then 20364 mkdir -p "$ac_dir" 20365 else 20366 as_dir="$ac_dir" 20367 as_dirs= 20368 while test ! -d "$as_dir"; do 20369 as_dirs="$as_dir $as_dirs" 20370 as_dir=`(dirname "$as_dir") 2>/dev/null || 20371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20372 X"$as_dir" : 'X\(//\)[^/]' \| \ 20373 X"$as_dir" : 'X\(//\)$' \| \ 20374 X"$as_dir" : 'X\(/\)' \| \ 20375 . : '\(.\)' 2>/dev/null || 20376echo X"$as_dir" | 20377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20378 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20379 /^X\(\/\/\)$/{ s//\1/; q; } 20380 /^X\(\/\).*/{ s//\1/; q; } 20381 s/.*/./; q'` 20382 done 20383 test ! -n "$as_dirs" || mkdir $as_dirs 20384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20385echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20386 { (exit 1); exit 1; }; }; } 20387 20388 ac_builddir=. 20389 20390if test "$ac_dir" != .; then 20391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20392 # A "../" for each directory in $ac_dir_suffix. 20393 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20394else 20395 ac_dir_suffix= ac_top_builddir= 20396fi 20397 20398case $srcdir in 20399 .) # No --srcdir option. We are building in place. 20400 ac_srcdir=. 20401 if test -z "$ac_top_builddir"; then 20402 ac_top_srcdir=. 20403 else 20404 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20405 fi ;; 20406 [\\/]* | ?:[\\/]* ) # Absolute path. 20407 ac_srcdir=$srcdir$ac_dir_suffix; 20408 ac_top_srcdir=$srcdir ;; 20409 *) # Relative path. 20410 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20411 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20412esac 20413 20414# Do not use `cd foo && pwd` to compute absolute paths, because 20415# the directories may not exist. 20416case `pwd` in 20417.) ac_abs_builddir="$ac_dir";; 20418*) 20419 case "$ac_dir" in 20420 .) ac_abs_builddir=`pwd`;; 20421 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20422 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20423 esac;; 20424esac 20425case $ac_abs_builddir in 20426.) ac_abs_top_builddir=${ac_top_builddir}.;; 20427*) 20428 case ${ac_top_builddir}. in 20429 .) ac_abs_top_builddir=$ac_abs_builddir;; 20430 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20431 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20432 esac;; 20433esac 20434case $ac_abs_builddir in 20435.) ac_abs_srcdir=$ac_srcdir;; 20436*) 20437 case $ac_srcdir in 20438 .) ac_abs_srcdir=$ac_abs_builddir;; 20439 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20440 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20441 esac;; 20442esac 20443case $ac_abs_builddir in 20444.) ac_abs_top_srcdir=$ac_top_srcdir;; 20445*) 20446 case $ac_top_srcdir in 20447 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20448 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20449 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20450 esac;; 20451esac 20452 20453 20454 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20455echo "$as_me: executing $ac_dest commands" >&6;} 20456 case $ac_dest in 20457 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20458 # Strip MF so we end up with the name of the file. 20459 mf=`echo "$mf" | sed -e 's/:.*$//'` 20460 # Check whether this is an Automake generated Makefile or not. 20461 # We used to match only the files named `Makefile.in', but 20462 # some people rename them; so instead we look at the file content. 20463 # Grep'ing the first line is not enough: some people post-process 20464 # each Makefile.in and add a new line on top of each file to say so. 20465 # So let's grep whole file. 20466 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20467 dirpart=`(dirname "$mf") 2>/dev/null || 20468$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20469 X"$mf" : 'X\(//\)[^/]' \| \ 20470 X"$mf" : 'X\(//\)$' \| \ 20471 X"$mf" : 'X\(/\)' \| \ 20472 . : '\(.\)' 2>/dev/null || 20473echo X"$mf" | 20474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20475 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20476 /^X\(\/\/\)$/{ s//\1/; q; } 20477 /^X\(\/\).*/{ s//\1/; q; } 20478 s/.*/./; q'` 20479 else 20480 continue 20481 fi 20482 # Extract the definition of DEPDIR, am__include, and am__quote 20483 # from the Makefile without running `make'. 20484 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20485 test -z "$DEPDIR" && continue 20486 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20487 test -z "am__include" && continue 20488 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20489 # When using ansi2knr, U may be empty or an underscore; expand it 20490 U=`sed -n 's/^U = //p' < "$mf"` 20491 # Find all dependency output files, they are included files with 20492 # $(DEPDIR) in their names. We invoke sed twice because it is the 20493 # simplest approach to changing $(DEPDIR) to its actual value in the 20494 # expansion. 20495 for file in `sed -n " 20496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20498 # Make sure the directory exists. 20499 test -f "$dirpart/$file" && continue 20500 fdir=`(dirname "$file") 2>/dev/null || 20501$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20502 X"$file" : 'X\(//\)[^/]' \| \ 20503 X"$file" : 'X\(//\)$' \| \ 20504 X"$file" : 'X\(/\)' \| \ 20505 . : '\(.\)' 2>/dev/null || 20506echo X"$file" | 20507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20508 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20509 /^X\(\/\/\)$/{ s//\1/; q; } 20510 /^X\(\/\).*/{ s//\1/; q; } 20511 s/.*/./; q'` 20512 { if $as_mkdir_p; then 20513 mkdir -p $dirpart/$fdir 20514 else 20515 as_dir=$dirpart/$fdir 20516 as_dirs= 20517 while test ! -d "$as_dir"; do 20518 as_dirs="$as_dir $as_dirs" 20519 as_dir=`(dirname "$as_dir") 2>/dev/null || 20520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20521 X"$as_dir" : 'X\(//\)[^/]' \| \ 20522 X"$as_dir" : 'X\(//\)$' \| \ 20523 X"$as_dir" : 'X\(/\)' \| \ 20524 . : '\(.\)' 2>/dev/null || 20525echo X"$as_dir" | 20526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20527 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20528 /^X\(\/\/\)$/{ s//\1/; q; } 20529 /^X\(\/\).*/{ s//\1/; q; } 20530 s/.*/./; q'` 20531 done 20532 test ! -n "$as_dirs" || mkdir $as_dirs 20533 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 20534echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 20535 { (exit 1); exit 1; }; }; } 20536 20537 # echo "creating $dirpart/$file" 20538 echo '# dummy' > "$dirpart/$file" 20539 done 20540done 20541 ;; 20542 default-1 ) 20543 for ac_file in $CONFIG_FILES; do 20544 # Support "outfile[:infile[:infile...]]" 20545 case "$ac_file" in 20546 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 20547 esac 20548 # PO directories have a Makefile.in generated from Makefile.in.in. 20549 case "$ac_file" in */Makefile.in) 20550 # Adjust a relative srcdir. 20551 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 20552 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 20553 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 20554 # In autoconf-2.13 it is called $ac_given_srcdir. 20555 # In autoconf-2.50 it is called $srcdir. 20556 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 20557 case "$ac_given_srcdir" in 20558 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 20559 /*) top_srcdir="$ac_given_srcdir" ;; 20560 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 20561 esac 20562 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 20563 rm -f "$ac_dir/POTFILES" 20564 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 20565 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 20566 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 20567 # on $ac_dir but don't depend on user-specified configuration 20568 # parameters. 20569 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 20570 # The LINGUAS file contains the set of available languages. 20571 if test -n "$ALL_LINGUAS"; then 20572 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 20573 fi 20574 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 20575 # Hide the ALL_LINGUAS assigment from automake. 20576 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 20577 fi 20578 case "$ac_given_srcdir" in 20579 .) srcdirpre= ;; 20580 *) srcdirpre='$(srcdir)/' ;; 20581 esac 20582 POFILES= 20583 GMOFILES= 20584 UPDATEPOFILES= 20585 DUMMYPOFILES= 20586 for lang in $ALL_LINGUAS; do 20587 POFILES="$POFILES $srcdirpre$lang.po" 20588 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 20589 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 20590 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 20591 done 20592 # CATALOGS depends on both $ac_dir and the user's LINGUAS 20593 # environment variable. 20594 INST_LINGUAS= 20595 if test -n "$ALL_LINGUAS"; then 20596 for presentlang in $ALL_LINGUAS; do 20597 useit=no 20598 if test "%UNSET%" != "$LINGUAS"; then 20599 desiredlanguages="$LINGUAS" 20600 else 20601 desiredlanguages="$ALL_LINGUAS" 20602 fi 20603 for desiredlang in $desiredlanguages; do 20604 # Use the presentlang catalog if desiredlang is 20605 # a. equal to presentlang, or 20606 # b. a variant of presentlang (because in this case, 20607 # presentlang can be used as a fallback for messages 20608 # which are not translated in the desiredlang catalog). 20609 case "$desiredlang" in 20610 "$presentlang"*) useit=yes;; 20611 esac 20612 done 20613 if test $useit = yes; then 20614 INST_LINGUAS="$INST_LINGUAS $presentlang" 20615 fi 20616 done 20617 fi 20618 CATALOGS= 20619 if test -n "$INST_LINGUAS"; then 20620 for lang in $INST_LINGUAS; do 20621 CATALOGS="$CATALOGS $lang.gmo" 20622 done 20623 fi 20624 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 20625 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 20626 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 20627 if test -f "$f"; then 20628 case "$f" in 20629 *.orig | *.bak | *~) ;; 20630 *) cat "$f" >> "$ac_dir/Makefile" ;; 20631 esac 20632 fi 20633 done 20634 fi 20635 ;; 20636 esac 20637 done ;; 20638 esac 20639done 20640_ACEOF 20641 20642cat >>$CONFIG_STATUS <<\_ACEOF 20643 20644{ (exit 0); exit 0; } 20645_ACEOF 20646chmod +x $CONFIG_STATUS 20647ac_clean_files=$ac_clean_files_save 20648 20649 20650# configure is writing to config.log, and then calls config.status. 20651# config.status does its own redirection, appending to config.log. 20652# Unfortunately, on DOS this fails, as config.log is still kept open 20653# by configure, so config.status won't be able to write to it; its 20654# output is simply discarded. So we exec the FD to /dev/null, 20655# effectively closing config.log, so it can be properly (re)opened and 20656# appended to by config.status. When coming back to configure, we 20657# need to make the FD available again. 20658if test "$no_create" != yes; then 20659 ac_cs_success=: 20660 ac_config_status_args= 20661 test "$silent" = yes && 20662 ac_config_status_args="$ac_config_status_args --quiet" 20663 exec 5>/dev/null 20664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20665 exec 5>>config.log 20666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20667 # would make configure fail if this is the last instruction. 20668 $ac_cs_success || { (exit 1); exit 1; } 20669fi 20670 20671 20672echo 20673echo " ###" 20674echo " ### MyDNS $PACKAGE_VERSION configured. Using $USE_DB_NAME database." 20675echo " ###" 20676echo " ### Type \"make\" to build, then \"make install\" to install." 20677echo " ###" 20678echo 20679 20680## vi:set ts=3: 20681