1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# Support unset when possible. 25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 as_mkdir_p=false 222fi 223 224as_executable_p="test -f" 225 226# Sed expression to map a string onto a valid CPP name. 227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229# Sed expression to map a string onto a valid variable name. 230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233# IFS 234# We need space, tab and new line, in precisely that order. 235as_nl=' 236' 237IFS=" $as_nl" 238 239# CDPATH. 240$as_unset CDPATH 241 242 243# Name of the host. 244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# so uname gets run too. 246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247 248exec 6>&1 249 250# 251# Initializations. 252# 253ac_default_prefix=/usr/local 254ac_config_libobj_dir=. 255cross_compiling=no 256subdirs= 257MFLAGS= 258MAKEFLAGS= 259SHELL=${CONFIG_SHELL-/bin/sh} 260 261# Maximum number of lines to put in a shell here document. 262# This variable seems obsolete. It should probably be removed, and 263# only ac_max_sed_lines should be used. 264: ${ac_max_here_lines=38} 265 266# Identity of this package. 267PACKAGE_NAME= 268PACKAGE_TARNAME= 269PACKAGE_VERSION= 270PACKAGE_STRING= 271PACKAGE_BUGREPORT= 272 273ac_unique_file="main.c" 274ac_default_prefix=/usr/local 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_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 GTKOBJS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE CPP EGREP PKG_CONFIG GTK_CFLAGS GTK_LIBS LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833_ACEOF 834fi 835 836if test -n "$ac_init_help"; then 837 838 cat <<\_ACEOF 839 840Optional Packages: 841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 843 --with-libnet-prefix=DIR 844 search for libnet in DIR/include and DIR/lib 845 846Some influential environment variables: 847 CC C compiler command 848 CFLAGS C compiler flags 849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 850 nonstandard directory <lib dir> 851 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 852 headers in a nonstandard directory <include dir> 853 CPP C preprocessor 854 855Use these variables to override the choices made by `configure' or to help 856it to find libraries and programs with nonstandard names/locations. 857 858_ACEOF 859fi 860 861if test "$ac_init_help" = "recursive"; then 862 # If there are subdirs, report their specific --help. 863 ac_popdir=`pwd` 864 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 865 test -d $ac_dir || continue 866 ac_builddir=. 867 868if test "$ac_dir" != .; then 869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 870 # A "../" for each directory in $ac_dir_suffix. 871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 872else 873 ac_dir_suffix= ac_top_builddir= 874fi 875 876case $srcdir in 877 .) # No --srcdir option. We are building in place. 878 ac_srcdir=. 879 if test -z "$ac_top_builddir"; then 880 ac_top_srcdir=. 881 else 882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 883 fi ;; 884 [\\/]* | ?:[\\/]* ) # Absolute path. 885 ac_srcdir=$srcdir$ac_dir_suffix; 886 ac_top_srcdir=$srcdir ;; 887 *) # Relative path. 888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 889 ac_top_srcdir=$ac_top_builddir$srcdir ;; 890esac 891# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 892# absolute. 893ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 894ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 895ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 896ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 897 898 cd $ac_dir 899 # Check for guested configure; otherwise get Cygnus style configure. 900 if test -f $ac_srcdir/configure.gnu; then 901 echo 902 $SHELL $ac_srcdir/configure.gnu --help=recursive 903 elif test -f $ac_srcdir/configure; then 904 echo 905 $SHELL $ac_srcdir/configure --help=recursive 906 elif test -f $ac_srcdir/configure.ac || 907 test -f $ac_srcdir/configure.in; then 908 echo 909 $ac_configure --help 910 else 911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 912 fi 913 cd $ac_popdir 914 done 915fi 916 917test -n "$ac_init_help" && exit 0 918if $ac_init_version; then 919 cat <<\_ACEOF 920 921Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 922Free Software Foundation, Inc. 923This configure script is free software; the Free Software Foundation 924gives unlimited permission to copy, distribute and modify it. 925_ACEOF 926 exit 0 927fi 928exec 5>config.log 929cat >&5 <<_ACEOF 930This file contains any messages produced by compilers while 931running configure, to aid debugging if configure makes a mistake. 932 933It was created by $as_me, which was 934generated by GNU Autoconf 2.57. Invocation command line was 935 936 $ $0 $@ 937 938_ACEOF 939{ 940cat <<_ASUNAME 941## --------- ## 942## Platform. ## 943## --------- ## 944 945hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 946uname -m = `(uname -m) 2>/dev/null || echo unknown` 947uname -r = `(uname -r) 2>/dev/null || echo unknown` 948uname -s = `(uname -s) 2>/dev/null || echo unknown` 949uname -v = `(uname -v) 2>/dev/null || echo unknown` 950 951/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 952/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 953 954/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 955/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 956/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 957hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 958/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 959/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 960/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 961 962_ASUNAME 963 964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 965for as_dir in $PATH 966do 967 IFS=$as_save_IFS 968 test -z "$as_dir" && as_dir=. 969 echo "PATH: $as_dir" 970done 971 972} >&5 973 974cat >&5 <<_ACEOF 975 976 977## ----------- ## 978## Core tests. ## 979## ----------- ## 980 981_ACEOF 982 983 984# Keep a trace of the command line. 985# Strip out --no-create and --no-recursion so they do not pile up. 986# Strip out --silent because we don't want to record it for future runs. 987# Also quote any args containing shell meta-characters. 988# Make two passes to allow for proper duplicate-argument suppression. 989ac_configure_args= 990ac_configure_args0= 991ac_configure_args1= 992ac_sep= 993ac_must_keep_next=false 994for ac_pass in 1 2 995do 996 for ac_arg 997 do 998 case $ac_arg in 999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1001 | -silent | --silent | --silen | --sile | --sil) 1002 continue ;; 1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1004 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1005 esac 1006 case $ac_pass in 1007 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1008 2) 1009 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1010 if test $ac_must_keep_next = true; then 1011 ac_must_keep_next=false # Got value, back to normal. 1012 else 1013 case $ac_arg in 1014 *=* | --config-cache | -C | -disable-* | --disable-* \ 1015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1017 | -with-* | --with-* | -without-* | --without-* | --x) 1018 case "$ac_configure_args0 " in 1019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1020 esac 1021 ;; 1022 -* ) ac_must_keep_next=true ;; 1023 esac 1024 fi 1025 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1026 # Get rid of the leading space. 1027 ac_sep=" " 1028 ;; 1029 esac 1030 done 1031done 1032$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1033$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1034 1035# When interrupted or exit'd, cleanup temporary files, and complete 1036# config.log. We remove comments because anyway the quotes in there 1037# would cause problems or look ugly. 1038# WARNING: Be sure not to use single quotes in there, as some shells, 1039# such as our DU 5.0 friend, will then `close' the trap. 1040trap 'exit_status=$? 1041 # Save into config.log some information that might help in debugging. 1042 { 1043 echo 1044 1045 cat <<\_ASBOX 1046## ---------------- ## 1047## Cache variables. ## 1048## ---------------- ## 1049_ASBOX 1050 echo 1051 # The following way of writing the cache mishandles newlines in values, 1052{ 1053 (set) 2>&1 | 1054 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1055 *ac_space=\ *) 1056 sed -n \ 1057 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1059 ;; 1060 *) 1061 sed -n \ 1062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1063 ;; 1064 esac; 1065} 1066 echo 1067 1068 cat <<\_ASBOX 1069## ----------------- ## 1070## Output variables. ## 1071## ----------------- ## 1072_ASBOX 1073 echo 1074 for ac_var in $ac_subst_vars 1075 do 1076 eval ac_val=$`echo $ac_var` 1077 echo "$ac_var='"'"'$ac_val'"'"'" 1078 done | sort 1079 echo 1080 1081 if test -n "$ac_subst_files"; then 1082 cat <<\_ASBOX 1083## ------------- ## 1084## Output files. ## 1085## ------------- ## 1086_ASBOX 1087 echo 1088 for ac_var in $ac_subst_files 1089 do 1090 eval ac_val=$`echo $ac_var` 1091 echo "$ac_var='"'"'$ac_val'"'"'" 1092 done | sort 1093 echo 1094 fi 1095 1096 if test -s confdefs.h; then 1097 cat <<\_ASBOX 1098## ----------- ## 1099## confdefs.h. ## 1100## ----------- ## 1101_ASBOX 1102 echo 1103 sed "/^$/d" confdefs.h | sort 1104 echo 1105 fi 1106 test "$ac_signal" != 0 && 1107 echo "$as_me: caught signal $ac_signal" 1108 echo "$as_me: exit $exit_status" 1109 } >&5 1110 rm -f core core.* *.core && 1111 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1112 exit $exit_status 1113 ' 0 1114for ac_signal in 1 2 13 15; do 1115 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1116done 1117ac_signal=0 1118 1119# confdefs.h avoids OS command line length limits that DEFS can exceed. 1120rm -rf conftest* confdefs.h 1121# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1122echo >confdefs.h 1123 1124# Predefined preprocessor variables. 1125 1126cat >>confdefs.h <<_ACEOF 1127#define PACKAGE_NAME "$PACKAGE_NAME" 1128_ACEOF 1129 1130 1131cat >>confdefs.h <<_ACEOF 1132#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1133_ACEOF 1134 1135 1136cat >>confdefs.h <<_ACEOF 1137#define PACKAGE_VERSION "$PACKAGE_VERSION" 1138_ACEOF 1139 1140 1141cat >>confdefs.h <<_ACEOF 1142#define PACKAGE_STRING "$PACKAGE_STRING" 1143_ACEOF 1144 1145 1146cat >>confdefs.h <<_ACEOF 1147#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1148_ACEOF 1149 1150 1151# Let the site file select an alternate cache file if it wants to. 1152# Prefer explicitly selected file to automatically selected ones. 1153if test -z "$CONFIG_SITE"; then 1154 if test "x$prefix" != xNONE; then 1155 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1156 else 1157 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1158 fi 1159fi 1160for ac_site_file in $CONFIG_SITE; do 1161 if test -r "$ac_site_file"; then 1162 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1163echo "$as_me: loading site script $ac_site_file" >&6;} 1164 sed 's/^/| /' "$ac_site_file" >&5 1165 . "$ac_site_file" 1166 fi 1167done 1168 1169if test -r "$cache_file"; then 1170 # Some versions of bash will fail to source /dev/null (special 1171 # files actually), so we avoid doing that. 1172 if test -f "$cache_file"; then 1173 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1174echo "$as_me: loading cache $cache_file" >&6;} 1175 case $cache_file in 1176 [\\/]* | ?:[\\/]* ) . $cache_file;; 1177 *) . ./$cache_file;; 1178 esac 1179 fi 1180else 1181 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1182echo "$as_me: creating cache $cache_file" >&6;} 1183 >$cache_file 1184fi 1185 1186# Check that the precious variables saved in the cache have kept the same 1187# value. 1188ac_cache_corrupted=false 1189for ac_var in `(set) 2>&1 | 1190 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1191 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1192 eval ac_new_set=\$ac_env_${ac_var}_set 1193 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1194 eval ac_new_val="\$ac_env_${ac_var}_value" 1195 case $ac_old_set,$ac_new_set in 1196 set,) 1197 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1198echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1199 ac_cache_corrupted=: ;; 1200 ,set) 1201 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1202echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1203 ac_cache_corrupted=: ;; 1204 ,);; 1205 *) 1206 if test "x$ac_old_val" != "x$ac_new_val"; then 1207 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1208echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1209 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1210echo "$as_me: former value: $ac_old_val" >&2;} 1211 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1212echo "$as_me: current value: $ac_new_val" >&2;} 1213 ac_cache_corrupted=: 1214 fi;; 1215 esac 1216 # Pass precious variables to config.status. 1217 if test "$ac_new_set" = set; then 1218 case $ac_new_val in 1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1220 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1221 *) ac_arg=$ac_var=$ac_new_val ;; 1222 esac 1223 case " $ac_configure_args " in 1224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1225 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1226 esac 1227 fi 1228done 1229if $ac_cache_corrupted; then 1230 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1231echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1232 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1233echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1234 { (exit 1); exit 1; }; } 1235fi 1236 1237ac_ext=c 1238ac_cpp='$CPP $CPPFLAGS' 1239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1241ac_compiler_gnu=$ac_cv_c_compiler_gnu 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 ac_config_headers="$ac_config_headers config.h" 1262 1263 1264# Print a banner 1265echo -e "\nPlease wait, i'm going to configure Gspoof (have you read README?)\n" 1266 1267######### 1268# Subst # 1269######### 1270 1271 1272 1273################ 1274# Setup prefix # 1275################ 1276 1277 1278if test "$prefix" = "NONE"; then 1279 prefix="/usr/local" 1280 fi 1281 1282 1283####################### 1284# Checks for compiler # 1285####################### 1286 1287ac_ext=c 1288ac_cpp='$CPP $CPPFLAGS' 1289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1291ac_compiler_gnu=$ac_cv_c_compiler_gnu 1292if test -n "$ac_tool_prefix"; then 1293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1294set dummy ${ac_tool_prefix}gcc; ac_word=$2 1295echo "$as_me:$LINENO: checking for $ac_word" >&5 1296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1297if test "${ac_cv_prog_CC+set}" = set; then 1298 echo $ECHO_N "(cached) $ECHO_C" >&6 1299else 1300 if test -n "$CC"; then 1301 ac_cv_prog_CC="$CC" # Let the user override the test. 1302else 1303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1304for as_dir in $PATH 1305do 1306 IFS=$as_save_IFS 1307 test -z "$as_dir" && as_dir=. 1308 for ac_exec_ext in '' $ac_executable_extensions; do 1309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1310 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1312 break 2 1313 fi 1314done 1315done 1316 1317fi 1318fi 1319CC=$ac_cv_prog_CC 1320if test -n "$CC"; then 1321 echo "$as_me:$LINENO: result: $CC" >&5 1322echo "${ECHO_T}$CC" >&6 1323else 1324 echo "$as_me:$LINENO: result: no" >&5 1325echo "${ECHO_T}no" >&6 1326fi 1327 1328fi 1329if test -z "$ac_cv_prog_CC"; then 1330 ac_ct_CC=$CC 1331 # Extract the first word of "gcc", so it can be a program name with args. 1332set dummy gcc; ac_word=$2 1333echo "$as_me:$LINENO: checking for $ac_word" >&5 1334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1335if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1336 echo $ECHO_N "(cached) $ECHO_C" >&6 1337else 1338 if test -n "$ac_ct_CC"; then 1339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1340else 1341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1342for as_dir in $PATH 1343do 1344 IFS=$as_save_IFS 1345 test -z "$as_dir" && as_dir=. 1346 for ac_exec_ext in '' $ac_executable_extensions; do 1347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1348 ac_cv_prog_ac_ct_CC="gcc" 1349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1350 break 2 1351 fi 1352done 1353done 1354 1355fi 1356fi 1357ac_ct_CC=$ac_cv_prog_ac_ct_CC 1358if test -n "$ac_ct_CC"; then 1359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1360echo "${ECHO_T}$ac_ct_CC" >&6 1361else 1362 echo "$as_me:$LINENO: result: no" >&5 1363echo "${ECHO_T}no" >&6 1364fi 1365 1366 CC=$ac_ct_CC 1367else 1368 CC="$ac_cv_prog_CC" 1369fi 1370 1371if test -z "$CC"; then 1372 if test -n "$ac_tool_prefix"; then 1373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1374set dummy ${ac_tool_prefix}cc; ac_word=$2 1375echo "$as_me:$LINENO: checking for $ac_word" >&5 1376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1377if test "${ac_cv_prog_CC+set}" = set; then 1378 echo $ECHO_N "(cached) $ECHO_C" >&6 1379else 1380 if test -n "$CC"; then 1381 ac_cv_prog_CC="$CC" # Let the user override the test. 1382else 1383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1384for as_dir in $PATH 1385do 1386 IFS=$as_save_IFS 1387 test -z "$as_dir" && as_dir=. 1388 for ac_exec_ext in '' $ac_executable_extensions; do 1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1390 ac_cv_prog_CC="${ac_tool_prefix}cc" 1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1392 break 2 1393 fi 1394done 1395done 1396 1397fi 1398fi 1399CC=$ac_cv_prog_CC 1400if test -n "$CC"; then 1401 echo "$as_me:$LINENO: result: $CC" >&5 1402echo "${ECHO_T}$CC" >&6 1403else 1404 echo "$as_me:$LINENO: result: no" >&5 1405echo "${ECHO_T}no" >&6 1406fi 1407 1408fi 1409if test -z "$ac_cv_prog_CC"; then 1410 ac_ct_CC=$CC 1411 # Extract the first word of "cc", so it can be a program name with args. 1412set dummy cc; ac_word=$2 1413echo "$as_me:$LINENO: checking for $ac_word" >&5 1414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1415if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1416 echo $ECHO_N "(cached) $ECHO_C" >&6 1417else 1418 if test -n "$ac_ct_CC"; then 1419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1420else 1421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1422for as_dir in $PATH 1423do 1424 IFS=$as_save_IFS 1425 test -z "$as_dir" && as_dir=. 1426 for ac_exec_ext in '' $ac_executable_extensions; do 1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1428 ac_cv_prog_ac_ct_CC="cc" 1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1430 break 2 1431 fi 1432done 1433done 1434 1435fi 1436fi 1437ac_ct_CC=$ac_cv_prog_ac_ct_CC 1438if test -n "$ac_ct_CC"; then 1439 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1440echo "${ECHO_T}$ac_ct_CC" >&6 1441else 1442 echo "$as_me:$LINENO: result: no" >&5 1443echo "${ECHO_T}no" >&6 1444fi 1445 1446 CC=$ac_ct_CC 1447else 1448 CC="$ac_cv_prog_CC" 1449fi 1450 1451fi 1452if test -z "$CC"; then 1453 # Extract the first word of "cc", so it can be a program name with args. 1454set dummy cc; ac_word=$2 1455echo "$as_me:$LINENO: checking for $ac_word" >&5 1456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1457if test "${ac_cv_prog_CC+set}" = set; then 1458 echo $ECHO_N "(cached) $ECHO_C" >&6 1459else 1460 if test -n "$CC"; then 1461 ac_cv_prog_CC="$CC" # Let the user override the test. 1462else 1463 ac_prog_rejected=no 1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1465for as_dir in $PATH 1466do 1467 IFS=$as_save_IFS 1468 test -z "$as_dir" && as_dir=. 1469 for ac_exec_ext in '' $ac_executable_extensions; do 1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1472 ac_prog_rejected=yes 1473 continue 1474 fi 1475 ac_cv_prog_CC="cc" 1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1477 break 2 1478 fi 1479done 1480done 1481 1482if test $ac_prog_rejected = yes; then 1483 # We found a bogon in the path, so make sure we never use it. 1484 set dummy $ac_cv_prog_CC 1485 shift 1486 if test $# != 0; then 1487 # We chose a different compiler from the bogus one. 1488 # However, it has the same basename, so the bogon will be chosen 1489 # first if we set CC to just the basename; use the full file name. 1490 shift 1491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1492 fi 1493fi 1494fi 1495fi 1496CC=$ac_cv_prog_CC 1497if test -n "$CC"; then 1498 echo "$as_me:$LINENO: result: $CC" >&5 1499echo "${ECHO_T}$CC" >&6 1500else 1501 echo "$as_me:$LINENO: result: no" >&5 1502echo "${ECHO_T}no" >&6 1503fi 1504 1505fi 1506if test -z "$CC"; then 1507 if test -n "$ac_tool_prefix"; then 1508 for ac_prog in cl 1509 do 1510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1512echo "$as_me:$LINENO: checking for $ac_word" >&5 1513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1514if test "${ac_cv_prog_CC+set}" = set; then 1515 echo $ECHO_N "(cached) $ECHO_C" >&6 1516else 1517 if test -n "$CC"; then 1518 ac_cv_prog_CC="$CC" # Let the user override the test. 1519else 1520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1521for as_dir in $PATH 1522do 1523 IFS=$as_save_IFS 1524 test -z "$as_dir" && as_dir=. 1525 for ac_exec_ext in '' $ac_executable_extensions; do 1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1529 break 2 1530 fi 1531done 1532done 1533 1534fi 1535fi 1536CC=$ac_cv_prog_CC 1537if test -n "$CC"; then 1538 echo "$as_me:$LINENO: result: $CC" >&5 1539echo "${ECHO_T}$CC" >&6 1540else 1541 echo "$as_me:$LINENO: result: no" >&5 1542echo "${ECHO_T}no" >&6 1543fi 1544 1545 test -n "$CC" && break 1546 done 1547fi 1548if test -z "$CC"; then 1549 ac_ct_CC=$CC 1550 for ac_prog in cl 1551do 1552 # Extract the first word of "$ac_prog", so it can be a program name with args. 1553set dummy $ac_prog; ac_word=$2 1554echo "$as_me:$LINENO: checking for $ac_word" >&5 1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1557 echo $ECHO_N "(cached) $ECHO_C" >&6 1558else 1559 if test -n "$ac_ct_CC"; then 1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1561else 1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1563for as_dir in $PATH 1564do 1565 IFS=$as_save_IFS 1566 test -z "$as_dir" && as_dir=. 1567 for ac_exec_ext in '' $ac_executable_extensions; do 1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1569 ac_cv_prog_ac_ct_CC="$ac_prog" 1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1571 break 2 1572 fi 1573done 1574done 1575 1576fi 1577fi 1578ac_ct_CC=$ac_cv_prog_ac_ct_CC 1579if test -n "$ac_ct_CC"; then 1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1581echo "${ECHO_T}$ac_ct_CC" >&6 1582else 1583 echo "$as_me:$LINENO: result: no" >&5 1584echo "${ECHO_T}no" >&6 1585fi 1586 1587 test -n "$ac_ct_CC" && break 1588done 1589 1590 CC=$ac_ct_CC 1591fi 1592 1593fi 1594 1595 1596test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1597See \`config.log' for more details." >&5 1598echo "$as_me: error: no acceptable C compiler found in \$PATH 1599See \`config.log' for more details." >&2;} 1600 { (exit 1); exit 1; }; } 1601 1602# Provide some information about the compiler. 1603echo "$as_me:$LINENO:" \ 1604 "checking for C compiler version" >&5 1605ac_compiler=`set X $ac_compile; echo $2` 1606{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1607 (eval $ac_compiler --version </dev/null >&5) 2>&5 1608 ac_status=$? 1609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1610 (exit $ac_status); } 1611{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1612 (eval $ac_compiler -v </dev/null >&5) 2>&5 1613 ac_status=$? 1614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1615 (exit $ac_status); } 1616{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1617 (eval $ac_compiler -V </dev/null >&5) 2>&5 1618 ac_status=$? 1619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1620 (exit $ac_status); } 1621 1622cat >conftest.$ac_ext <<_ACEOF 1623#line $LINENO "configure" 1624/* confdefs.h. */ 1625_ACEOF 1626cat confdefs.h >>conftest.$ac_ext 1627cat >>conftest.$ac_ext <<_ACEOF 1628/* end confdefs.h. */ 1629 1630int 1631main () 1632{ 1633 1634 ; 1635 return 0; 1636} 1637_ACEOF 1638ac_clean_files_save=$ac_clean_files 1639ac_clean_files="$ac_clean_files a.out a.exe b.out" 1640# Try to create an executable without -o first, disregard a.out. 1641# It will help us diagnose broken compilers, and finding out an intuition 1642# of exeext. 1643echo "$as_me:$LINENO: checking for C compiler default output" >&5 1644echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1645ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1646if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1647 (eval $ac_link_default) 2>&5 1648 ac_status=$? 1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1650 (exit $ac_status); }; then 1651 # Find the output, starting from the most likely. This scheme is 1652# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1653# resort. 1654 1655# Be careful to initialize this variable, since it used to be cached. 1656# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1657ac_cv_exeext= 1658# b.out is created by i960 compilers. 1659for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1660do 1661 test -f "$ac_file" || continue 1662 case $ac_file in 1663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1664 ;; 1665 conftest.$ac_ext ) 1666 # This is the source file. 1667 ;; 1668 [ab].out ) 1669 # We found the default executable, but exeext='' is most 1670 # certainly right. 1671 break;; 1672 *.* ) 1673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1674 # FIXME: I believe we export ac_cv_exeext for Libtool, 1675 # but it would be cool to find out if it's true. Does anybody 1676 # maintain Libtool? --akim. 1677 export ac_cv_exeext 1678 break;; 1679 * ) 1680 break;; 1681 esac 1682done 1683else 1684 echo "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1688See \`config.log' for more details." >&5 1689echo "$as_me: error: C compiler cannot create executables 1690See \`config.log' for more details." >&2;} 1691 { (exit 77); exit 77; }; } 1692fi 1693 1694ac_exeext=$ac_cv_exeext 1695echo "$as_me:$LINENO: result: $ac_file" >&5 1696echo "${ECHO_T}$ac_file" >&6 1697 1698# Check the compiler produces executables we can run. If not, either 1699# the compiler is broken, or we cross compile. 1700echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1701echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1702# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1703# If not cross compiling, check that we can run a simple program. 1704if test "$cross_compiling" != yes; then 1705 if { ac_try='./$ac_file' 1706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1707 (eval $ac_try) 2>&5 1708 ac_status=$? 1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1710 (exit $ac_status); }; }; then 1711 cross_compiling=no 1712 else 1713 if test "$cross_compiling" = maybe; then 1714 cross_compiling=yes 1715 else 1716 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1717If you meant to cross compile, use \`--host'. 1718See \`config.log' for more details." >&5 1719echo "$as_me: error: cannot run C compiled programs. 1720If you meant to cross compile, use \`--host'. 1721See \`config.log' for more details." >&2;} 1722 { (exit 1); exit 1; }; } 1723 fi 1724 fi 1725fi 1726echo "$as_me:$LINENO: result: yes" >&5 1727echo "${ECHO_T}yes" >&6 1728 1729rm -f a.out a.exe conftest$ac_cv_exeext b.out 1730ac_clean_files=$ac_clean_files_save 1731# Check the compiler produces executables we can run. If not, either 1732# the compiler is broken, or we cross compile. 1733echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1734echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1735echo "$as_me:$LINENO: result: $cross_compiling" >&5 1736echo "${ECHO_T}$cross_compiling" >&6 1737 1738echo "$as_me:$LINENO: checking for suffix of executables" >&5 1739echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1741 (eval $ac_link) 2>&5 1742 ac_status=$? 1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1744 (exit $ac_status); }; then 1745 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1746# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1747# work properly (i.e., refer to `conftest.exe'), while it won't with 1748# `rm'. 1749for ac_file in conftest.exe conftest conftest.*; do 1750 test -f "$ac_file" || continue 1751 case $ac_file in 1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1754 export ac_cv_exeext 1755 break;; 1756 * ) break;; 1757 esac 1758done 1759else 1760 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1761See \`config.log' for more details." >&5 1762echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1763See \`config.log' for more details." >&2;} 1764 { (exit 1); exit 1; }; } 1765fi 1766 1767rm -f conftest$ac_cv_exeext 1768echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1769echo "${ECHO_T}$ac_cv_exeext" >&6 1770 1771rm -f conftest.$ac_ext 1772EXEEXT=$ac_cv_exeext 1773ac_exeext=$EXEEXT 1774echo "$as_me:$LINENO: checking for suffix of object files" >&5 1775echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1776if test "${ac_cv_objext+set}" = set; then 1777 echo $ECHO_N "(cached) $ECHO_C" >&6 1778else 1779 cat >conftest.$ac_ext <<_ACEOF 1780#line $LINENO "configure" 1781/* confdefs.h. */ 1782_ACEOF 1783cat confdefs.h >>conftest.$ac_ext 1784cat >>conftest.$ac_ext <<_ACEOF 1785/* end confdefs.h. */ 1786 1787int 1788main () 1789{ 1790 1791 ; 1792 return 0; 1793} 1794_ACEOF 1795rm -f conftest.o conftest.obj 1796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1797 (eval $ac_compile) 2>&5 1798 ac_status=$? 1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1800 (exit $ac_status); }; then 1801 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1802 case $ac_file in 1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1805 break;; 1806 esac 1807done 1808else 1809 echo "$as_me: failed program was:" >&5 1810sed 's/^/| /' conftest.$ac_ext >&5 1811 1812{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1813See \`config.log' for more details." >&5 1814echo "$as_me: error: cannot compute suffix of object files: cannot compile 1815See \`config.log' for more details." >&2;} 1816 { (exit 1); exit 1; }; } 1817fi 1818 1819rm -f conftest.$ac_cv_objext conftest.$ac_ext 1820fi 1821echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1822echo "${ECHO_T}$ac_cv_objext" >&6 1823OBJEXT=$ac_cv_objext 1824ac_objext=$OBJEXT 1825echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1826echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1827if test "${ac_cv_c_compiler_gnu+set}" = set; then 1828 echo $ECHO_N "(cached) $ECHO_C" >&6 1829else 1830 cat >conftest.$ac_ext <<_ACEOF 1831#line $LINENO "configure" 1832/* confdefs.h. */ 1833_ACEOF 1834cat confdefs.h >>conftest.$ac_ext 1835cat >>conftest.$ac_ext <<_ACEOF 1836/* end confdefs.h. */ 1837 1838int 1839main () 1840{ 1841#ifndef __GNUC__ 1842 choke me 1843#endif 1844 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849rm -f conftest.$ac_objext 1850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1851 (eval $ac_compile) 2>&5 1852 ac_status=$? 1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1854 (exit $ac_status); } && 1855 { ac_try='test -s conftest.$ac_objext' 1856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1857 (eval $ac_try) 2>&5 1858 ac_status=$? 1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1860 (exit $ac_status); }; }; then 1861 ac_compiler_gnu=yes 1862else 1863 echo "$as_me: failed program was:" >&5 1864sed 's/^/| /' conftest.$ac_ext >&5 1865 1866ac_compiler_gnu=no 1867fi 1868rm -f conftest.$ac_objext conftest.$ac_ext 1869ac_cv_c_compiler_gnu=$ac_compiler_gnu 1870 1871fi 1872echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1873echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1874GCC=`test $ac_compiler_gnu = yes && echo yes` 1875ac_test_CFLAGS=${CFLAGS+set} 1876ac_save_CFLAGS=$CFLAGS 1877CFLAGS="-g" 1878echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1879echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1880if test "${ac_cv_prog_cc_g+set}" = set; then 1881 echo $ECHO_N "(cached) $ECHO_C" >&6 1882else 1883 cat >conftest.$ac_ext <<_ACEOF 1884#line $LINENO "configure" 1885/* confdefs.h. */ 1886_ACEOF 1887cat confdefs.h >>conftest.$ac_ext 1888cat >>conftest.$ac_ext <<_ACEOF 1889/* end confdefs.h. */ 1890 1891int 1892main () 1893{ 1894 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899rm -f conftest.$ac_objext 1900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1901 (eval $ac_compile) 2>&5 1902 ac_status=$? 1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1904 (exit $ac_status); } && 1905 { ac_try='test -s conftest.$ac_objext' 1906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1907 (eval $ac_try) 2>&5 1908 ac_status=$? 1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1910 (exit $ac_status); }; }; then 1911 ac_cv_prog_cc_g=yes 1912else 1913 echo "$as_me: failed program was:" >&5 1914sed 's/^/| /' conftest.$ac_ext >&5 1915 1916ac_cv_prog_cc_g=no 1917fi 1918rm -f conftest.$ac_objext conftest.$ac_ext 1919fi 1920echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1921echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1922if test "$ac_test_CFLAGS" = set; then 1923 CFLAGS=$ac_save_CFLAGS 1924elif test $ac_cv_prog_cc_g = yes; then 1925 if test "$GCC" = yes; then 1926 CFLAGS="-g -O2" 1927 else 1928 CFLAGS="-g" 1929 fi 1930else 1931 if test "$GCC" = yes; then 1932 CFLAGS="-O2" 1933 else 1934 CFLAGS= 1935 fi 1936fi 1937echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1938echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1939if test "${ac_cv_prog_cc_stdc+set}" = set; then 1940 echo $ECHO_N "(cached) $ECHO_C" >&6 1941else 1942 ac_cv_prog_cc_stdc=no 1943ac_save_CC=$CC 1944cat >conftest.$ac_ext <<_ACEOF 1945#line $LINENO "configure" 1946/* confdefs.h. */ 1947_ACEOF 1948cat confdefs.h >>conftest.$ac_ext 1949cat >>conftest.$ac_ext <<_ACEOF 1950/* end confdefs.h. */ 1951#include <stdarg.h> 1952#include <stdio.h> 1953#include <sys/types.h> 1954#include <sys/stat.h> 1955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1956struct buf { int x; }; 1957FILE * (*rcsopen) (struct buf *, struct stat *, int); 1958static char *e (p, i) 1959 char **p; 1960 int i; 1961{ 1962 return p[i]; 1963} 1964static char *f (char * (*g) (char **, int), char **p, ...) 1965{ 1966 char *s; 1967 va_list v; 1968 va_start (v,p); 1969 s = g (p, va_arg (v,int)); 1970 va_end (v); 1971 return s; 1972} 1973int test (int i, double x); 1974struct s1 {int (*f) (int a);}; 1975struct s2 {int (*f) (double a);}; 1976int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1977int argc; 1978char **argv; 1979int 1980main () 1981{ 1982return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987# Don't try gcc -ansi; that turns off useful extensions and 1988# breaks some systems' header files. 1989# AIX -qlanglvl=ansi 1990# Ultrix and OSF/1 -std1 1991# HP-UX 10.20 and later -Ae 1992# HP-UX older versions -Aa -D_HPUX_SOURCE 1993# SVR4 -Xc -D__EXTENSIONS__ 1994for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1995do 1996 CC="$ac_save_CC $ac_arg" 1997 rm -f conftest.$ac_objext 1998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1999 (eval $ac_compile) 2>&5 2000 ac_status=$? 2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2002 (exit $ac_status); } && 2003 { ac_try='test -s conftest.$ac_objext' 2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2005 (eval $ac_try) 2>&5 2006 ac_status=$? 2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2008 (exit $ac_status); }; }; then 2009 ac_cv_prog_cc_stdc=$ac_arg 2010break 2011else 2012 echo "$as_me: failed program was:" >&5 2013sed 's/^/| /' conftest.$ac_ext >&5 2014 2015fi 2016rm -f conftest.$ac_objext 2017done 2018rm -f conftest.$ac_ext conftest.$ac_objext 2019CC=$ac_save_CC 2020 2021fi 2022 2023case "x$ac_cv_prog_cc_stdc" in 2024 x|xno) 2025 echo "$as_me:$LINENO: result: none needed" >&5 2026echo "${ECHO_T}none needed" >&6 ;; 2027 *) 2028 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2029echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2030 CC="$CC $ac_cv_prog_cc_stdc" ;; 2031esac 2032 2033# Some people use a C++ compiler to compile C. Since we use `exit', 2034# in C++ we need to declare it. In case someone uses the same compiler 2035# for both compiling C and C++ we need to have the C++ compiler decide 2036# the declaration of exit, since it's the most demanding environment. 2037cat >conftest.$ac_ext <<_ACEOF 2038#ifndef __cplusplus 2039 choke me 2040#endif 2041_ACEOF 2042rm -f conftest.$ac_objext 2043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2044 (eval $ac_compile) 2>&5 2045 ac_status=$? 2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2047 (exit $ac_status); } && 2048 { ac_try='test -s conftest.$ac_objext' 2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2050 (eval $ac_try) 2>&5 2051 ac_status=$? 2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2053 (exit $ac_status); }; }; then 2054 for ac_declaration in \ 2055 ''\ 2056 '#include <stdlib.h>' \ 2057 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2058 'extern "C" void std::exit (int); using std::exit;' \ 2059 'extern "C" void exit (int) throw ();' \ 2060 'extern "C" void exit (int);' \ 2061 'void exit (int);' 2062do 2063 cat >conftest.$ac_ext <<_ACEOF 2064#line $LINENO "configure" 2065/* confdefs.h. */ 2066_ACEOF 2067cat confdefs.h >>conftest.$ac_ext 2068cat >>conftest.$ac_ext <<_ACEOF 2069/* end confdefs.h. */ 2070#include <stdlib.h> 2071$ac_declaration 2072int 2073main () 2074{ 2075exit (42); 2076 ; 2077 return 0; 2078} 2079_ACEOF 2080rm -f conftest.$ac_objext 2081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2082 (eval $ac_compile) 2>&5 2083 ac_status=$? 2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2085 (exit $ac_status); } && 2086 { ac_try='test -s conftest.$ac_objext' 2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2088 (eval $ac_try) 2>&5 2089 ac_status=$? 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2091 (exit $ac_status); }; }; then 2092 : 2093else 2094 echo "$as_me: failed program was:" >&5 2095sed 's/^/| /' conftest.$ac_ext >&5 2096 2097continue 2098fi 2099rm -f conftest.$ac_objext conftest.$ac_ext 2100 cat >conftest.$ac_ext <<_ACEOF 2101#line $LINENO "configure" 2102/* confdefs.h. */ 2103_ACEOF 2104cat confdefs.h >>conftest.$ac_ext 2105cat >>conftest.$ac_ext <<_ACEOF 2106/* end confdefs.h. */ 2107$ac_declaration 2108int 2109main () 2110{ 2111exit (42); 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116rm -f conftest.$ac_objext 2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2118 (eval $ac_compile) 2>&5 2119 ac_status=$? 2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2121 (exit $ac_status); } && 2122 { ac_try='test -s conftest.$ac_objext' 2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2124 (eval $ac_try) 2>&5 2125 ac_status=$? 2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2127 (exit $ac_status); }; }; then 2128 break 2129else 2130 echo "$as_me: failed program was:" >&5 2131sed 's/^/| /' conftest.$ac_ext >&5 2132 2133fi 2134rm -f conftest.$ac_objext conftest.$ac_ext 2135done 2136rm -f conftest* 2137if test -n "$ac_declaration"; then 2138 echo '#ifdef __cplusplus' >>confdefs.h 2139 echo $ac_declaration >>confdefs.h 2140 echo '#endif' >>confdefs.h 2141fi 2142 2143else 2144 echo "$as_me: failed program was:" >&5 2145sed 's/^/| /' conftest.$ac_ext >&5 2146 2147fi 2148rm -f conftest.$ac_objext conftest.$ac_ext 2149ac_ext=c 2150ac_cpp='$CPP $CPPFLAGS' 2151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2153ac_compiler_gnu=$ac_cv_c_compiler_gnu 2154 2155echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2156echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2157set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2158if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 cat >conftest.make <<\_ACEOF 2162all: 2163 @echo 'ac_maketemp="$(MAKE)"' 2164_ACEOF 2165# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2166eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2167if test -n "$ac_maketemp"; then 2168 eval ac_cv_prog_make_${ac_make}_set=yes 2169else 2170 eval ac_cv_prog_make_${ac_make}_set=no 2171fi 2172rm -f conftest.make 2173fi 2174if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2175 echo "$as_me:$LINENO: result: yes" >&5 2176echo "${ECHO_T}yes" >&6 2177 SET_MAKE= 2178else 2179 echo "$as_me:$LINENO: result: no" >&5 2180echo "${ECHO_T}no" >&6 2181 SET_MAKE="MAKE=${MAKE-make}" 2182fi 2183 2184 2185ac_ext=c 2186ac_cpp='$CPP $CPPFLAGS' 2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2189ac_compiler_gnu=$ac_cv_c_compiler_gnu 2190echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2191echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2192# On Suns, sometimes $CPP names a directory. 2193if test -n "$CPP" && test -d "$CPP"; then 2194 CPP= 2195fi 2196if test -z "$CPP"; then 2197 if test "${ac_cv_prog_CPP+set}" = set; then 2198 echo $ECHO_N "(cached) $ECHO_C" >&6 2199else 2200 # Double quotes because CPP needs to be expanded 2201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2202 do 2203 ac_preproc_ok=false 2204for ac_c_preproc_warn_flag in '' yes 2205do 2206 # Use a header file that comes with gcc, so configuring glibc 2207 # with a fresh cross-compiler works. 2208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2209 # <limits.h> exists even on freestanding compilers. 2210 # On the NeXT, cc -E runs the code through the compiler's parser, 2211 # not just through cpp. "Syntax error" is here to catch this case. 2212 cat >conftest.$ac_ext <<_ACEOF 2213#line $LINENO "configure" 2214/* confdefs.h. */ 2215_ACEOF 2216cat confdefs.h >>conftest.$ac_ext 2217cat >>conftest.$ac_ext <<_ACEOF 2218/* end confdefs.h. */ 2219#ifdef __STDC__ 2220# include <limits.h> 2221#else 2222# include <assert.h> 2223#endif 2224 Syntax error 2225_ACEOF 2226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2228 ac_status=$? 2229 grep -v '^ *+' conftest.er1 >conftest.err 2230 rm -f conftest.er1 2231 cat conftest.err >&5 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2233 (exit $ac_status); } >/dev/null; then 2234 if test -s conftest.err; then 2235 ac_cpp_err=$ac_c_preproc_warn_flag 2236 else 2237 ac_cpp_err= 2238 fi 2239else 2240 ac_cpp_err=yes 2241fi 2242if test -z "$ac_cpp_err"; then 2243 : 2244else 2245 echo "$as_me: failed program was:" >&5 2246sed 's/^/| /' conftest.$ac_ext >&5 2247 2248 # Broken: fails on valid input. 2249continue 2250fi 2251rm -f conftest.err conftest.$ac_ext 2252 2253 # OK, works on sane cases. Now check whether non-existent headers 2254 # can be detected and how. 2255 cat >conftest.$ac_ext <<_ACEOF 2256#line $LINENO "configure" 2257/* confdefs.h. */ 2258_ACEOF 2259cat confdefs.h >>conftest.$ac_ext 2260cat >>conftest.$ac_ext <<_ACEOF 2261/* end confdefs.h. */ 2262#include <ac_nonexistent.h> 2263_ACEOF 2264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2266 ac_status=$? 2267 grep -v '^ *+' conftest.er1 >conftest.err 2268 rm -f conftest.er1 2269 cat conftest.err >&5 2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2271 (exit $ac_status); } >/dev/null; then 2272 if test -s conftest.err; then 2273 ac_cpp_err=$ac_c_preproc_warn_flag 2274 else 2275 ac_cpp_err= 2276 fi 2277else 2278 ac_cpp_err=yes 2279fi 2280if test -z "$ac_cpp_err"; then 2281 # Broken: success on invalid input. 2282continue 2283else 2284 echo "$as_me: failed program was:" >&5 2285sed 's/^/| /' conftest.$ac_ext >&5 2286 2287 # Passes both tests. 2288ac_preproc_ok=: 2289break 2290fi 2291rm -f conftest.err conftest.$ac_ext 2292 2293done 2294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2295rm -f conftest.err conftest.$ac_ext 2296if $ac_preproc_ok; then 2297 break 2298fi 2299 2300 done 2301 ac_cv_prog_CPP=$CPP 2302 2303fi 2304 CPP=$ac_cv_prog_CPP 2305else 2306 ac_cv_prog_CPP=$CPP 2307fi 2308echo "$as_me:$LINENO: result: $CPP" >&5 2309echo "${ECHO_T}$CPP" >&6 2310ac_preproc_ok=false 2311for ac_c_preproc_warn_flag in '' yes 2312do 2313 # Use a header file that comes with gcc, so configuring glibc 2314 # with a fresh cross-compiler works. 2315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2316 # <limits.h> exists even on freestanding compilers. 2317 # On the NeXT, cc -E runs the code through the compiler's parser, 2318 # not just through cpp. "Syntax error" is here to catch this case. 2319 cat >conftest.$ac_ext <<_ACEOF 2320#line $LINENO "configure" 2321/* confdefs.h. */ 2322_ACEOF 2323cat confdefs.h >>conftest.$ac_ext 2324cat >>conftest.$ac_ext <<_ACEOF 2325/* end confdefs.h. */ 2326#ifdef __STDC__ 2327# include <limits.h> 2328#else 2329# include <assert.h> 2330#endif 2331 Syntax error 2332_ACEOF 2333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2335 ac_status=$? 2336 grep -v '^ *+' conftest.er1 >conftest.err 2337 rm -f conftest.er1 2338 cat conftest.err >&5 2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2340 (exit $ac_status); } >/dev/null; then 2341 if test -s conftest.err; then 2342 ac_cpp_err=$ac_c_preproc_warn_flag 2343 else 2344 ac_cpp_err= 2345 fi 2346else 2347 ac_cpp_err=yes 2348fi 2349if test -z "$ac_cpp_err"; then 2350 : 2351else 2352 echo "$as_me: failed program was:" >&5 2353sed 's/^/| /' conftest.$ac_ext >&5 2354 2355 # Broken: fails on valid input. 2356continue 2357fi 2358rm -f conftest.err conftest.$ac_ext 2359 2360 # OK, works on sane cases. Now check whether non-existent headers 2361 # can be detected and how. 2362 cat >conftest.$ac_ext <<_ACEOF 2363#line $LINENO "configure" 2364/* confdefs.h. */ 2365_ACEOF 2366cat confdefs.h >>conftest.$ac_ext 2367cat >>conftest.$ac_ext <<_ACEOF 2368/* end confdefs.h. */ 2369#include <ac_nonexistent.h> 2370_ACEOF 2371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2373 ac_status=$? 2374 grep -v '^ *+' conftest.er1 >conftest.err 2375 rm -f conftest.er1 2376 cat conftest.err >&5 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); } >/dev/null; then 2379 if test -s conftest.err; then 2380 ac_cpp_err=$ac_c_preproc_warn_flag 2381 else 2382 ac_cpp_err= 2383 fi 2384else 2385 ac_cpp_err=yes 2386fi 2387if test -z "$ac_cpp_err"; then 2388 # Broken: success on invalid input. 2389continue 2390else 2391 echo "$as_me: failed program was:" >&5 2392sed 's/^/| /' conftest.$ac_ext >&5 2393 2394 # Passes both tests. 2395ac_preproc_ok=: 2396break 2397fi 2398rm -f conftest.err conftest.$ac_ext 2399 2400done 2401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2402rm -f conftest.err conftest.$ac_ext 2403if $ac_preproc_ok; then 2404 : 2405else 2406 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2407See \`config.log' for more details." >&5 2408echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2409See \`config.log' for more details." >&2;} 2410 { (exit 1); exit 1; }; } 2411fi 2412 2413ac_ext=c 2414ac_cpp='$CPP $CPPFLAGS' 2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2417ac_compiler_gnu=$ac_cv_c_compiler_gnu 2418 2419 2420echo "$as_me:$LINENO: checking for egrep" >&5 2421echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2422if test "${ac_cv_prog_egrep+set}" = set; then 2423 echo $ECHO_N "(cached) $ECHO_C" >&6 2424else 2425 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2426 then ac_cv_prog_egrep='grep -E' 2427 else ac_cv_prog_egrep='egrep' 2428 fi 2429fi 2430echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2431echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2432 EGREP=$ac_cv_prog_egrep 2433 2434 2435if test $ac_cv_c_compiler_gnu = yes; then 2436 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 2437echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2438if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2439 echo $ECHO_N "(cached) $ECHO_C" >&6 2440else 2441 ac_pattern="Autoconf.*'x'" 2442 cat >conftest.$ac_ext <<_ACEOF 2443#line $LINENO "configure" 2444/* confdefs.h. */ 2445_ACEOF 2446cat confdefs.h >>conftest.$ac_ext 2447cat >>conftest.$ac_ext <<_ACEOF 2448/* end confdefs.h. */ 2449#include <sgtty.h> 2450Autoconf TIOCGETP 2451_ACEOF 2452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2453 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2454 ac_cv_prog_gcc_traditional=yes 2455else 2456 ac_cv_prog_gcc_traditional=no 2457fi 2458rm -f conftest* 2459 2460 2461 if test $ac_cv_prog_gcc_traditional = no; then 2462 cat >conftest.$ac_ext <<_ACEOF 2463#line $LINENO "configure" 2464/* confdefs.h. */ 2465_ACEOF 2466cat confdefs.h >>conftest.$ac_ext 2467cat >>conftest.$ac_ext <<_ACEOF 2468/* end confdefs.h. */ 2469#include <termio.h> 2470Autoconf TCGETA 2471_ACEOF 2472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2473 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2474 ac_cv_prog_gcc_traditional=yes 2475fi 2476rm -f conftest* 2477 2478 fi 2479fi 2480echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 2481echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2482 if test $ac_cv_prog_gcc_traditional = yes; then 2483 CC="$CC -traditional" 2484 fi 2485fi 2486 2487 2488######################### 2489# Checks for libraries. # 2490######################### 2491 2492# 2493# -- libnet -- 2494# 2495 2496 2497# Check whether --with-libnet-prefix or --without-libnet-prefix was given. 2498if test "${with_libnet_prefix+set}" = set; then 2499 withval="$with_libnet_prefix" 2500 LIBNET_PREFIX=$withval 2501else 2502 LIBNET_PREFIX=/usr 2503fi; 2504 2505as_ac_File=`echo "ac_cv_file_$LIBNET_PREFIX/lib/libnet.a" | $as_tr_sh` 2506echo "$as_me:$LINENO: checking for $LIBNET_PREFIX/lib/libnet.a" >&5 2507echo $ECHO_N "checking for $LIBNET_PREFIX/lib/libnet.a... $ECHO_C" >&6 2508if eval "test \"\${$as_ac_File+set}\" = set"; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510else 2511 test "$cross_compiling" = yes && 2512 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 2513echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 2514 { (exit 1); exit 1; }; } 2515if test -r "$LIBNET_PREFIX/lib/libnet.a"; then 2516 eval "$as_ac_File=yes" 2517else 2518 eval "$as_ac_File=no" 2519fi 2520fi 2521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 2522echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 2523if test `eval echo '${'$as_ac_File'}'` = yes; then 2524 LDFLAGS="-L$LIBNET_PREFIX/lib" 2525 CPPFLAGS="-I$LIBNET_PREFIX/include" 2526else 2527 { { echo "$as_me:$LINENO: error: 2528Libnet-1.1.1 Packet Shaping Library is required! 2529Verify to have installed it and pass --with-libnet-prefix to configure. 2530Or download it from http://www.packetfactory.net/libnet " >&5 2531echo "$as_me: error: 2532Libnet-1.1.1 Packet Shaping Library is required! 2533Verify to have installed it and pass --with-libnet-prefix to configure. 2534Or download it from http://www.packetfactory.net/libnet " >&2;} 2535 { (exit 1); exit 1; }; } 2536fi 2537 2538 2539 2540echo "$as_me:$LINENO: checking for libnet_name2addr4 in -lnet" >&5 2541echo $ECHO_N "checking for libnet_name2addr4 in -lnet... $ECHO_C" >&6 2542if test "${ac_cv_lib_net_libnet_name2addr4+set}" = set; then 2543 echo $ECHO_N "(cached) $ECHO_C" >&6 2544else 2545 ac_check_lib_save_LIBS=$LIBS 2546LIBS="-lnet $LIBS" 2547cat >conftest.$ac_ext <<_ACEOF 2548#line $LINENO "configure" 2549/* confdefs.h. */ 2550_ACEOF 2551cat confdefs.h >>conftest.$ac_ext 2552cat >>conftest.$ac_ext <<_ACEOF 2553/* end confdefs.h. */ 2554 2555/* Override any gcc2 internal prototype to avoid an error. */ 2556#ifdef __cplusplus 2557extern "C" 2558#endif 2559/* We use char because int might match the return type of a gcc2 2560 builtin and then its argument prototype would still apply. */ 2561char libnet_name2addr4 (); 2562int 2563main () 2564{ 2565libnet_name2addr4 (); 2566 ; 2567 return 0; 2568} 2569_ACEOF 2570rm -f conftest.$ac_objext conftest$ac_exeext 2571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2572 (eval $ac_link) 2>&5 2573 ac_status=$? 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } && 2576 { ac_try='test -s conftest$ac_exeext' 2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2578 (eval $ac_try) 2>&5 2579 ac_status=$? 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); }; }; then 2582 ac_cv_lib_net_libnet_name2addr4=yes 2583else 2584 echo "$as_me: failed program was:" >&5 2585sed 's/^/| /' conftest.$ac_ext >&5 2586 2587ac_cv_lib_net_libnet_name2addr4=no 2588fi 2589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2590LIBS=$ac_check_lib_save_LIBS 2591fi 2592echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_name2addr4" >&5 2593echo "${ECHO_T}$ac_cv_lib_net_libnet_name2addr4" >&6 2594if test $ac_cv_lib_net_libnet_name2addr4 = yes; then 2595 cat >>confdefs.h <<_ACEOF 2596#define HAVE_LIBNET 1 2597_ACEOF 2598 2599 LIBS="-lnet $LIBS" 2600 2601else 2602 { { echo "$as_me:$LINENO: error: 2603Libnet-1.1.1 Packet Shaping Library not found! It's required. 2604Download it from http://www.packetfactory.net/libnet and install. " >&5 2605echo "$as_me: error: 2606Libnet-1.1.1 Packet Shaping Library not found! It's required. 2607Download it from http://www.packetfactory.net/libnet and install. " >&2;} 2608 { (exit 1); exit 1; }; } 2609fi 2610 2611 2612# 2613# -- gtk+ support -- 2614# 2615 2616ENABLE_GTK=no 2617 2618 2619 2620 2621 2622 succeeded=no 2623 2624 if test -z "$PKG_CONFIG"; then 2625 # Extract the first word of "pkg-config", so it can be a program name with args. 2626set dummy pkg-config; ac_word=$2 2627echo "$as_me:$LINENO: checking for $ac_word" >&5 2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2629if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 2630 echo $ECHO_N "(cached) $ECHO_C" >&6 2631else 2632 case $PKG_CONFIG in 2633 [\\/]* | ?:[\\/]*) 2634 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 2635 ;; 2636 *) 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_exec_ext in '' $ac_executable_extensions; do 2643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2644 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2646 break 2 2647 fi 2648done 2649done 2650 2651 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 2652 ;; 2653esac 2654fi 2655PKG_CONFIG=$ac_cv_path_PKG_CONFIG 2656 2657if test -n "$PKG_CONFIG"; then 2658 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 2659echo "${ECHO_T}$PKG_CONFIG" >&6 2660else 2661 echo "$as_me:$LINENO: result: no" >&5 2662echo "${ECHO_T}no" >&6 2663fi 2664 2665 fi 2666 2667 if test "$PKG_CONFIG" = "no" ; then 2668 echo "*** The pkg-config script could not be found. Make sure it is" 2669 echo "*** in your path, or set the PKG_CONFIG environment variable" 2670 echo "*** to the full path to pkg-config." 2671 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 2672 else 2673 PKG_CONFIG_MIN_VERSION=0.9.0 2674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 2675 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0" >&5 2676echo $ECHO_N "checking for gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0... $ECHO_C" >&6 2677 2678 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0" ; then 2679 echo "$as_me:$LINENO: result: yes" >&5 2680echo "${ECHO_T}yes" >&6 2681 succeeded=yes 2682 2683 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 2684echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 2685 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0"` 2686 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 2687echo "${ECHO_T}$GTK_CFLAGS" >&6 2688 2689 echo "$as_me:$LINENO: checking GTK_LIBS" >&5 2690echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 2691 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0"` 2692 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 2693echo "${ECHO_T}$GTK_LIBS" >&6 2694 else 2695 GTK_CFLAGS="" 2696 GTK_LIBS="" 2697 ## If we have a custom action on failure, don't print errors, but 2698 ## do set a variable so people can do so. 2699 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0"` 2700 2701 fi 2702 2703 2704 2705 else 2706 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 2707 echo "*** See http://www.freedesktop.org/software/pkgconfig" 2708 fi 2709 fi 2710 2711 if test $succeeded = yes; then 2712 2713 cat >>confdefs.h <<\_ACEOF 2714#define HAVE_GTK 1 2715_ACEOF 2716 2717 ENABLE_GTK=yes 2718 GTKOBJS="interface.o callbacks.o gfuncts.o support.o gtk.o" 2719 2720 else 2721 2722 { echo "$as_me:$LINENO: WARNING: 2723Library requirements (gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0) not met; 2724consider adjusting the PKG_CONFIG_PATH environment variable if your libraries 2725are in a nonstandard prefix so pkg-config can find them. 2726Perhaps you want visit www.gtk.org and download them. 2727 2728*** Compiling without GTK+ interface support." >&5 2729echo "$as_me: WARNING: 2730Library requirements (gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0) not met; 2731consider adjusting the PKG_CONFIG_PATH environment variable if your libraries 2732are in a nonstandard prefix so pkg-config can find them. 2733Perhaps you want visit www.gtk.org and download them. 2734 2735*** Compiling without GTK+ interface support." >&2;} 2736 2737 fi 2738 2739 2740 2741############################################## 2742# Checks for headers and common libs/headers # 2743############################################## 2744 2745echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2746echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2747if test "${ac_cv_header_stdc+set}" = set; then 2748 echo $ECHO_N "(cached) $ECHO_C" >&6 2749else 2750 cat >conftest.$ac_ext <<_ACEOF 2751#line $LINENO "configure" 2752/* confdefs.h. */ 2753_ACEOF 2754cat confdefs.h >>conftest.$ac_ext 2755cat >>conftest.$ac_ext <<_ACEOF 2756/* end confdefs.h. */ 2757#include <stdlib.h> 2758#include <stdarg.h> 2759#include <string.h> 2760#include <float.h> 2761 2762int 2763main () 2764{ 2765 2766 ; 2767 return 0; 2768} 2769_ACEOF 2770rm -f conftest.$ac_objext 2771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2772 (eval $ac_compile) 2>&5 2773 ac_status=$? 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); } && 2776 { ac_try='test -s conftest.$ac_objext' 2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2778 (eval $ac_try) 2>&5 2779 ac_status=$? 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); }; }; then 2782 ac_cv_header_stdc=yes 2783else 2784 echo "$as_me: failed program was:" >&5 2785sed 's/^/| /' conftest.$ac_ext >&5 2786 2787ac_cv_header_stdc=no 2788fi 2789rm -f conftest.$ac_objext conftest.$ac_ext 2790 2791if test $ac_cv_header_stdc = yes; then 2792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2793 cat >conftest.$ac_ext <<_ACEOF 2794#line $LINENO "configure" 2795/* confdefs.h. */ 2796_ACEOF 2797cat confdefs.h >>conftest.$ac_ext 2798cat >>conftest.$ac_ext <<_ACEOF 2799/* end confdefs.h. */ 2800#include <string.h> 2801 2802_ACEOF 2803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2804 $EGREP "memchr" >/dev/null 2>&1; then 2805 : 2806else 2807 ac_cv_header_stdc=no 2808fi 2809rm -f conftest* 2810 2811fi 2812 2813if test $ac_cv_header_stdc = yes; then 2814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2815 cat >conftest.$ac_ext <<_ACEOF 2816#line $LINENO "configure" 2817/* confdefs.h. */ 2818_ACEOF 2819cat confdefs.h >>conftest.$ac_ext 2820cat >>conftest.$ac_ext <<_ACEOF 2821/* end confdefs.h. */ 2822#include <stdlib.h> 2823 2824_ACEOF 2825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2826 $EGREP "free" >/dev/null 2>&1; then 2827 : 2828else 2829 ac_cv_header_stdc=no 2830fi 2831rm -f conftest* 2832 2833fi 2834 2835if test $ac_cv_header_stdc = yes; then 2836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2837 if test "$cross_compiling" = yes; then 2838 : 2839else 2840 cat >conftest.$ac_ext <<_ACEOF 2841#line $LINENO "configure" 2842/* confdefs.h. */ 2843_ACEOF 2844cat confdefs.h >>conftest.$ac_ext 2845cat >>conftest.$ac_ext <<_ACEOF 2846/* end confdefs.h. */ 2847#include <ctype.h> 2848#if ((' ' & 0x0FF) == 0x020) 2849# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2850# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2851#else 2852# define ISLOWER(c) \ 2853 (('a' <= (c) && (c) <= 'i') \ 2854 || ('j' <= (c) && (c) <= 'r') \ 2855 || ('s' <= (c) && (c) <= 'z')) 2856# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2857#endif 2858 2859#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2860int 2861main () 2862{ 2863 int i; 2864 for (i = 0; i < 256; i++) 2865 if (XOR (islower (i), ISLOWER (i)) 2866 || toupper (i) != TOUPPER (i)) 2867 exit(2); 2868 exit (0); 2869} 2870_ACEOF 2871rm -f conftest$ac_exeext 2872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2873 (eval $ac_link) 2>&5 2874 ac_status=$? 2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2878 (eval $ac_try) 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; }; then 2882 : 2883else 2884 echo "$as_me: program exited with status $ac_status" >&5 2885echo "$as_me: failed program was:" >&5 2886sed 's/^/| /' conftest.$ac_ext >&5 2887 2888( exit $ac_status ) 2889ac_cv_header_stdc=no 2890fi 2891rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2892fi 2893fi 2894fi 2895echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2896echo "${ECHO_T}$ac_cv_header_stdc" >&6 2897if test $ac_cv_header_stdc = yes; then 2898 2899cat >>confdefs.h <<\_ACEOF 2900#define STDC_HEADERS 1 2901_ACEOF 2902 2903fi 2904 2905 2906# Checks for typedefs, structures, and compiler characteristics. 2907echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 2908echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2909if test "${ac_cv_c_const+set}" = set; then 2910 echo $ECHO_N "(cached) $ECHO_C" >&6 2911else 2912 cat >conftest.$ac_ext <<_ACEOF 2913#line $LINENO "configure" 2914/* confdefs.h. */ 2915_ACEOF 2916cat confdefs.h >>conftest.$ac_ext 2917cat >>conftest.$ac_ext <<_ACEOF 2918/* end confdefs.h. */ 2919 2920int 2921main () 2922{ 2923/* FIXME: Include the comments suggested by Paul. */ 2924#ifndef __cplusplus 2925 /* Ultrix mips cc rejects this. */ 2926 typedef int charset[2]; 2927 const charset x; 2928 /* SunOS 4.1.1 cc rejects this. */ 2929 char const *const *ccp; 2930 char **p; 2931 /* NEC SVR4.0.2 mips cc rejects this. */ 2932 struct point {int x, y;}; 2933 static struct point const zero = {0,0}; 2934 /* AIX XL C 1.02.0.0 rejects this. 2935 It does not let you subtract one const X* pointer from another in 2936 an arm of an if-expression whose if-part is not a constant 2937 expression */ 2938 const char *g = "string"; 2939 ccp = &g + (g ? g-g : 0); 2940 /* HPUX 7.0 cc rejects these. */ 2941 ++ccp; 2942 p = (char**) ccp; 2943 ccp = (char const *const *) p; 2944 { /* SCO 3.2v4 cc rejects this. */ 2945 char *t; 2946 char const *s = 0 ? (char *) 0 : (char const *) 0; 2947 2948 *t++ = 0; 2949 } 2950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2951 int x[] = {25, 17}; 2952 const int *foo = &x[0]; 2953 ++foo; 2954 } 2955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2956 typedef const int *iptr; 2957 iptr p = 0; 2958 ++p; 2959 } 2960 { /* AIX XL C 1.02.0.0 rejects this saying 2961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2962 struct s { int j; const int *ap[3]; }; 2963 struct s *b; b->j = 5; 2964 } 2965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2966 const int foo = 10; 2967 } 2968#endif 2969 2970 ; 2971 return 0; 2972} 2973_ACEOF 2974rm -f conftest.$ac_objext 2975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2976 (eval $ac_compile) 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); } && 2980 { ac_try='test -s conftest.$ac_objext' 2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2982 (eval $ac_try) 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; }; then 2986 ac_cv_c_const=yes 2987else 2988 echo "$as_me: failed program was:" >&5 2989sed 's/^/| /' conftest.$ac_ext >&5 2990 2991ac_cv_c_const=no 2992fi 2993rm -f conftest.$ac_objext conftest.$ac_ext 2994fi 2995echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 2996echo "${ECHO_T}$ac_cv_c_const" >&6 2997if test $ac_cv_c_const = no; then 2998 2999cat >>confdefs.h <<\_ACEOF 3000#define const 3001_ACEOF 3002 3003fi 3004 3005echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3006echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3007if test "${ac_cv_header_time+set}" = set; then 3008 echo $ECHO_N "(cached) $ECHO_C" >&6 3009else 3010 cat >conftest.$ac_ext <<_ACEOF 3011#line $LINENO "configure" 3012/* confdefs.h. */ 3013_ACEOF 3014cat confdefs.h >>conftest.$ac_ext 3015cat >>conftest.$ac_ext <<_ACEOF 3016/* end confdefs.h. */ 3017#include <sys/types.h> 3018#include <sys/time.h> 3019#include <time.h> 3020 3021int 3022main () 3023{ 3024if ((struct tm *) 0) 3025return 0; 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030rm -f conftest.$ac_objext 3031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3032 (eval $ac_compile) 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); } && 3036 { ac_try='test -s conftest.$ac_objext' 3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3038 (eval $ac_try) 2>&5 3039 ac_status=$? 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); }; }; then 3042 ac_cv_header_time=yes 3043else 3044 echo "$as_me: failed program was:" >&5 3045sed 's/^/| /' conftest.$ac_ext >&5 3046 3047ac_cv_header_time=no 3048fi 3049rm -f conftest.$ac_objext conftest.$ac_ext 3050fi 3051echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3052echo "${ECHO_T}$ac_cv_header_time" >&6 3053if test $ac_cv_header_time = yes; then 3054 3055cat >>confdefs.h <<\_ACEOF 3056#define TIME_WITH_SYS_TIME 1 3057_ACEOF 3058 3059fi 3060 3061echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 3062echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 3063if test "${ac_cv_struct_tm+set}" = set; then 3064 echo $ECHO_N "(cached) $ECHO_C" >&6 3065else 3066 cat >conftest.$ac_ext <<_ACEOF 3067#line $LINENO "configure" 3068/* confdefs.h. */ 3069_ACEOF 3070cat confdefs.h >>conftest.$ac_ext 3071cat >>conftest.$ac_ext <<_ACEOF 3072/* end confdefs.h. */ 3073#include <sys/types.h> 3074#include <time.h> 3075 3076int 3077main () 3078{ 3079struct tm *tp; tp->tm_sec; 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.$ac_objext 3085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3086 (eval $ac_compile) 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } && 3090 { ac_try='test -s conftest.$ac_objext' 3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3092 (eval $ac_try) 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; }; then 3096 ac_cv_struct_tm=time.h 3097else 3098 echo "$as_me: failed program was:" >&5 3099sed 's/^/| /' conftest.$ac_ext >&5 3100 3101ac_cv_struct_tm=sys/time.h 3102fi 3103rm -f conftest.$ac_objext conftest.$ac_ext 3104fi 3105echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 3106echo "${ECHO_T}$ac_cv_struct_tm" >&6 3107if test $ac_cv_struct_tm = sys/time.h; then 3108 3109cat >>confdefs.h <<\_ACEOF 3110#define TM_IN_SYS_TIME 1 3111_ACEOF 3112 3113fi 3114 3115 3116# Checks for library functions. 3117# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3128 inttypes.h stdint.h unistd.h 3129do 3130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3131echo "$as_me:$LINENO: checking for $ac_header" >&5 3132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3133if eval "test \"\${$as_ac_Header+set}\" = set"; then 3134 echo $ECHO_N "(cached) $ECHO_C" >&6 3135else 3136 cat >conftest.$ac_ext <<_ACEOF 3137#line $LINENO "configure" 3138/* confdefs.h. */ 3139_ACEOF 3140cat confdefs.h >>conftest.$ac_ext 3141cat >>conftest.$ac_ext <<_ACEOF 3142/* end confdefs.h. */ 3143$ac_includes_default 3144 3145#include <$ac_header> 3146_ACEOF 3147rm -f conftest.$ac_objext 3148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3149 (eval $ac_compile) 2>&5 3150 ac_status=$? 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); } && 3153 { ac_try='test -s conftest.$ac_objext' 3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3155 (eval $ac_try) 2>&5 3156 ac_status=$? 3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); }; }; then 3159 eval "$as_ac_Header=yes" 3160else 3161 echo "$as_me: failed program was:" >&5 3162sed 's/^/| /' conftest.$ac_ext >&5 3163 3164eval "$as_ac_Header=no" 3165fi 3166rm -f conftest.$ac_objext conftest.$ac_ext 3167fi 3168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3170if test `eval echo '${'$as_ac_Header'}'` = yes; then 3171 cat >>confdefs.h <<_ACEOF 3172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3173_ACEOF 3174 3175fi 3176 3177done 3178 3179 3180 3181for ac_header in stdlib.h 3182do 3183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3184if eval "test \"\${$as_ac_Header+set}\" = set"; then 3185 echo "$as_me:$LINENO: checking for $ac_header" >&5 3186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3187if eval "test \"\${$as_ac_Header+set}\" = set"; then 3188 echo $ECHO_N "(cached) $ECHO_C" >&6 3189fi 3190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3192else 3193 # Is the header compilable? 3194echo "$as_me:$LINENO: checking $ac_header usability" >&5 3195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3196cat >conftest.$ac_ext <<_ACEOF 3197#line $LINENO "configure" 3198/* confdefs.h. */ 3199_ACEOF 3200cat confdefs.h >>conftest.$ac_ext 3201cat >>conftest.$ac_ext <<_ACEOF 3202/* end confdefs.h. */ 3203$ac_includes_default 3204#include <$ac_header> 3205_ACEOF 3206rm -f conftest.$ac_objext 3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3208 (eval $ac_compile) 2>&5 3209 ac_status=$? 3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3211 (exit $ac_status); } && 3212 { ac_try='test -s conftest.$ac_objext' 3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3214 (eval $ac_try) 2>&5 3215 ac_status=$? 3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3217 (exit $ac_status); }; }; then 3218 ac_header_compiler=yes 3219else 3220 echo "$as_me: failed program was:" >&5 3221sed 's/^/| /' conftest.$ac_ext >&5 3222 3223ac_header_compiler=no 3224fi 3225rm -f conftest.$ac_objext conftest.$ac_ext 3226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3227echo "${ECHO_T}$ac_header_compiler" >&6 3228 3229# Is the header present? 3230echo "$as_me:$LINENO: checking $ac_header presence" >&5 3231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3232cat >conftest.$ac_ext <<_ACEOF 3233#line $LINENO "configure" 3234/* confdefs.h. */ 3235_ACEOF 3236cat confdefs.h >>conftest.$ac_ext 3237cat >>conftest.$ac_ext <<_ACEOF 3238/* end confdefs.h. */ 3239#include <$ac_header> 3240_ACEOF 3241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3243 ac_status=$? 3244 grep -v '^ *+' conftest.er1 >conftest.err 3245 rm -f conftest.er1 3246 cat conftest.err >&5 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); } >/dev/null; then 3249 if test -s conftest.err; then 3250 ac_cpp_err=$ac_c_preproc_warn_flag 3251 else 3252 ac_cpp_err= 3253 fi 3254else 3255 ac_cpp_err=yes 3256fi 3257if test -z "$ac_cpp_err"; then 3258 ac_header_preproc=yes 3259else 3260 echo "$as_me: failed program was:" >&5 3261sed 's/^/| /' conftest.$ac_ext >&5 3262 3263 ac_header_preproc=no 3264fi 3265rm -f conftest.err conftest.$ac_ext 3266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3267echo "${ECHO_T}$ac_header_preproc" >&6 3268 3269# So? What about this header? 3270case $ac_header_compiler:$ac_header_preproc in 3271 yes:no ) 3272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3276 ( 3277 cat <<\_ASBOX 3278## ------------------------------------ ## 3279## Report this to bug-autoconf@gnu.org. ## 3280## ------------------------------------ ## 3281_ASBOX 3282 ) | 3283 sed "s/^/$as_me: WARNING: /" >&2 3284 ;; 3285 no:yes ) 3286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3292 ( 3293 cat <<\_ASBOX 3294## ------------------------------------ ## 3295## Report this to bug-autoconf@gnu.org. ## 3296## ------------------------------------ ## 3297_ASBOX 3298 ) | 3299 sed "s/^/$as_me: WARNING: /" >&2 3300 ;; 3301esac 3302echo "$as_me:$LINENO: checking for $ac_header" >&5 3303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3304if eval "test \"\${$as_ac_Header+set}\" = set"; then 3305 echo $ECHO_N "(cached) $ECHO_C" >&6 3306else 3307 eval "$as_ac_Header=$ac_header_preproc" 3308fi 3309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3311 3312fi 3313if test `eval echo '${'$as_ac_Header'}'` = yes; then 3314 cat >>confdefs.h <<_ACEOF 3315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3316_ACEOF 3317 3318fi 3319 3320done 3321 3322echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 3323echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 3324if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 3325 echo $ECHO_N "(cached) $ECHO_C" >&6 3326else 3327 if test "$cross_compiling" = yes; then 3328 ac_cv_func_malloc_0_nonnull=no 3329else 3330 cat >conftest.$ac_ext <<_ACEOF 3331#line $LINENO "configure" 3332/* confdefs.h. */ 3333_ACEOF 3334cat confdefs.h >>conftest.$ac_ext 3335cat >>conftest.$ac_ext <<_ACEOF 3336/* end confdefs.h. */ 3337#if STDC_HEADERS || HAVE_STDLIB_H 3338# include <stdlib.h> 3339#else 3340char *malloc (); 3341#endif 3342 3343int 3344main () 3345{ 3346exit (malloc (0) ? 0 : 1); 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351rm -f conftest$ac_exeext 3352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3353 (eval $ac_link) 2>&5 3354 ac_status=$? 3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3358 (eval $ac_try) 2>&5 3359 ac_status=$? 3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3361 (exit $ac_status); }; }; then 3362 ac_cv_func_malloc_0_nonnull=yes 3363else 3364 echo "$as_me: program exited with status $ac_status" >&5 3365echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368( exit $ac_status ) 3369ac_cv_func_malloc_0_nonnull=no 3370fi 3371rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3372fi 3373fi 3374echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 3375echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 3376if test $ac_cv_func_malloc_0_nonnull = yes; then 3377 3378cat >>confdefs.h <<\_ACEOF 3379#define HAVE_MALLOC 1 3380_ACEOF 3381 3382else 3383 cat >>confdefs.h <<\_ACEOF 3384#define HAVE_MALLOC 0 3385_ACEOF 3386 3387 LIBOBJS="$LIBOBJS malloc.$ac_objext" 3388 3389cat >>confdefs.h <<\_ACEOF 3390#define malloc rpl_malloc 3391_ACEOF 3392 3393fi 3394 3395 3396 3397echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3398echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 3399if test "${ac_cv_type_signal+set}" = set; then 3400 echo $ECHO_N "(cached) $ECHO_C" >&6 3401else 3402 cat >conftest.$ac_ext <<_ACEOF 3403#line $LINENO "configure" 3404/* confdefs.h. */ 3405_ACEOF 3406cat confdefs.h >>conftest.$ac_ext 3407cat >>conftest.$ac_ext <<_ACEOF 3408/* end confdefs.h. */ 3409#include <sys/types.h> 3410#include <signal.h> 3411#ifdef signal 3412# undef signal 3413#endif 3414#ifdef __cplusplus 3415extern "C" void (*signal (int, void (*)(int)))(int); 3416#else 3417void (*signal ()) (); 3418#endif 3419 3420int 3421main () 3422{ 3423int i; 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428rm -f conftest.$ac_objext 3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3430 (eval $ac_compile) 2>&5 3431 ac_status=$? 3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3433 (exit $ac_status); } && 3434 { ac_try='test -s conftest.$ac_objext' 3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3436 (eval $ac_try) 2>&5 3437 ac_status=$? 3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3439 (exit $ac_status); }; }; then 3440 ac_cv_type_signal=void 3441else 3442 echo "$as_me: failed program was:" >&5 3443sed 's/^/| /' conftest.$ac_ext >&5 3444 3445ac_cv_type_signal=int 3446fi 3447rm -f conftest.$ac_objext conftest.$ac_ext 3448fi 3449echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 3450echo "${ECHO_T}$ac_cv_type_signal" >&6 3451 3452cat >>confdefs.h <<_ACEOF 3453#define RETSIGTYPE $ac_cv_type_signal 3454_ACEOF 3455 3456 3457 3458for ac_func in vprintf 3459do 3460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3461echo "$as_me:$LINENO: checking for $ac_func" >&5 3462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3463if eval "test \"\${$as_ac_var+set}\" = set"; then 3464 echo $ECHO_N "(cached) $ECHO_C" >&6 3465else 3466 cat >conftest.$ac_ext <<_ACEOF 3467#line $LINENO "configure" 3468/* confdefs.h. */ 3469_ACEOF 3470cat confdefs.h >>conftest.$ac_ext 3471cat >>conftest.$ac_ext <<_ACEOF 3472/* end confdefs.h. */ 3473/* System header to define __stub macros and hopefully few prototypes, 3474 which can conflict with char $ac_func (); below. 3475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3476 <limits.h> exists even on freestanding compilers. */ 3477#ifdef __STDC__ 3478# include <limits.h> 3479#else 3480# include <assert.h> 3481#endif 3482/* Override any gcc2 internal prototype to avoid an error. */ 3483#ifdef __cplusplus 3484extern "C" 3485{ 3486#endif 3487/* We use char because int might match the return type of a gcc2 3488 builtin and then its argument prototype would still apply. */ 3489char $ac_func (); 3490/* The GNU C library defines this for functions which it implements 3491 to always fail with ENOSYS. Some functions are actually named 3492 something starting with __ and the normal name is an alias. */ 3493#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3494choke me 3495#else 3496char (*f) () = $ac_func; 3497#endif 3498#ifdef __cplusplus 3499} 3500#endif 3501 3502int 3503main () 3504{ 3505return f != $ac_func; 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510rm -f conftest.$ac_objext conftest$ac_exeext 3511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3512 (eval $ac_link) 2>&5 3513 ac_status=$? 3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3515 (exit $ac_status); } && 3516 { ac_try='test -s conftest$ac_exeext' 3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3518 (eval $ac_try) 2>&5 3519 ac_status=$? 3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); }; }; then 3522 eval "$as_ac_var=yes" 3523else 3524 echo "$as_me: failed program was:" >&5 3525sed 's/^/| /' conftest.$ac_ext >&5 3526 3527eval "$as_ac_var=no" 3528fi 3529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3530fi 3531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3533if test `eval echo '${'$as_ac_var'}'` = yes; then 3534 cat >>confdefs.h <<_ACEOF 3535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3536_ACEOF 3537 3538echo "$as_me:$LINENO: checking for _doprnt" >&5 3539echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 3540if test "${ac_cv_func__doprnt+set}" = set; then 3541 echo $ECHO_N "(cached) $ECHO_C" >&6 3542else 3543 cat >conftest.$ac_ext <<_ACEOF 3544#line $LINENO "configure" 3545/* confdefs.h. */ 3546_ACEOF 3547cat confdefs.h >>conftest.$ac_ext 3548cat >>conftest.$ac_ext <<_ACEOF 3549/* end confdefs.h. */ 3550/* System header to define __stub macros and hopefully few prototypes, 3551 which can conflict with char _doprnt (); below. 3552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3553 <limits.h> exists even on freestanding compilers. */ 3554#ifdef __STDC__ 3555# include <limits.h> 3556#else 3557# include <assert.h> 3558#endif 3559/* Override any gcc2 internal prototype to avoid an error. */ 3560#ifdef __cplusplus 3561extern "C" 3562{ 3563#endif 3564/* We use char because int might match the return type of a gcc2 3565 builtin and then its argument prototype would still apply. */ 3566char _doprnt (); 3567/* The GNU C library defines this for functions which it implements 3568 to always fail with ENOSYS. Some functions are actually named 3569 something starting with __ and the normal name is an alias. */ 3570#if defined (__stub__doprnt) || defined (__stub____doprnt) 3571choke me 3572#else 3573char (*f) () = _doprnt; 3574#endif 3575#ifdef __cplusplus 3576} 3577#endif 3578 3579int 3580main () 3581{ 3582return f != _doprnt; 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587rm -f conftest.$ac_objext conftest$ac_exeext 3588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3589 (eval $ac_link) 2>&5 3590 ac_status=$? 3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3592 (exit $ac_status); } && 3593 { ac_try='test -s conftest$ac_exeext' 3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3595 (eval $ac_try) 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); }; }; then 3599 ac_cv_func__doprnt=yes 3600else 3601 echo "$as_me: failed program was:" >&5 3602sed 's/^/| /' conftest.$ac_ext >&5 3603 3604ac_cv_func__doprnt=no 3605fi 3606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3607fi 3608echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 3609echo "${ECHO_T}$ac_cv_func__doprnt" >&6 3610if test $ac_cv_func__doprnt = yes; then 3611 3612cat >>confdefs.h <<\_ACEOF 3613#define HAVE_DOPRNT 1 3614_ACEOF 3615 3616fi 3617 3618fi 3619done 3620 3621 3622 3623 3624################## 3625# Write Makefile # 3626################## 3627 3628 ac_config_files="$ac_config_files Makefile" 3629cat >confcache <<\_ACEOF 3630# This file is a shell script that caches the results of configure 3631# tests run on this system so they can be shared between configure 3632# scripts and configure runs, see configure's option --config-cache. 3633# It is not useful on other systems. If it contains results you don't 3634# want to keep, you may remove or edit it. 3635# 3636# config.status only pays attention to the cache file if you give it 3637# the --recheck option to rerun configure. 3638# 3639# `ac_cv_env_foo' variables (set or unset) will be overridden when 3640# loading this file, other *unset* `ac_cv_foo' will be assigned the 3641# following values. 3642 3643_ACEOF 3644 3645# The following way of writing the cache mishandles newlines in values, 3646# but we know of no workaround that is simple, portable, and efficient. 3647# So, don't put newlines in cache variables' values. 3648# Ultrix sh set writes to stderr and can't be redirected directly, 3649# and sets the high bit in the cache file unless we assign to the vars. 3650{ 3651 (set) 2>&1 | 3652 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3653 *ac_space=\ *) 3654 # `set' does not quote correctly, so add quotes (double-quote 3655 # substitution turns \\\\ into \\, and sed turns \\ into \). 3656 sed -n \ 3657 "s/'/'\\\\''/g; 3658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3659 ;; 3660 *) 3661 # `set' quotes correctly as required by POSIX, so do not add quotes. 3662 sed -n \ 3663 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3664 ;; 3665 esac; 3666} | 3667 sed ' 3668 t clear 3669 : clear 3670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3671 t end 3672 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3673 : end' >>confcache 3674if diff $cache_file confcache >/dev/null 2>&1; then :; else 3675 if test -w $cache_file; then 3676 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3677 cat confcache >$cache_file 3678 else 3679 echo "not updating unwritable cache $cache_file" 3680 fi 3681fi 3682rm -f confcache 3683 3684test "x$prefix" = xNONE && prefix=$ac_default_prefix 3685# Let make expand exec_prefix. 3686test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3687 3688# VPATH may cause trouble with some makes, so we remove $(srcdir), 3689# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3690# trailing colons and then remove the whole line if VPATH becomes empty 3691# (actually we leave an empty line to preserve line numbers). 3692if test "x$srcdir" = x.; then 3693 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3694s/:*\$(srcdir):*/:/; 3695s/:*\${srcdir}:*/:/; 3696s/:*@srcdir@:*/:/; 3697s/^\([^=]*=[ ]*\):*/\1/; 3698s/:*$//; 3699s/^[^=]*=[ ]*$//; 3700}' 3701fi 3702 3703DEFS=-DHAVE_CONFIG_H 3704 3705ac_libobjs= 3706ac_ltlibobjs= 3707for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3708 # 1. Remove the extension, and $U if already installed. 3709 ac_i=`echo "$ac_i" | 3710 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3711 # 2. Add them. 3712 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3713 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 3714done 3715LIBOBJS=$ac_libobjs 3716 3717LTLIBOBJS=$ac_ltlibobjs 3718 3719 3720 3721: ${CONFIG_STATUS=./config.status} 3722ac_clean_files_save=$ac_clean_files 3723ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3724{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3725echo "$as_me: creating $CONFIG_STATUS" >&6;} 3726cat >$CONFIG_STATUS <<_ACEOF 3727#! $SHELL 3728# Generated by $as_me. 3729# Run this file to recreate the current configuration. 3730# Compiler output produced by configure, useful for debugging 3731# configure, is in config.log if it exists. 3732 3733debug=false 3734ac_cs_recheck=false 3735ac_cs_silent=false 3736SHELL=\${CONFIG_SHELL-$SHELL} 3737_ACEOF 3738 3739cat >>$CONFIG_STATUS <<\_ACEOF 3740## --------------------- ## 3741## M4sh Initialization. ## 3742## --------------------- ## 3743 3744# Be Bourne compatible 3745if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3746 emulate sh 3747 NULLCMD=: 3748 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3749 # is contrary to our usage. Disable this feature. 3750 alias -g '${1+"$@"}'='"$@"' 3751elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3752 set -o posix 3753fi 3754 3755# Support unset when possible. 3756if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 3757 as_unset=unset 3758else 3759 as_unset=false 3760fi 3761 3762 3763# Work around bugs in pre-3.0 UWIN ksh. 3764$as_unset ENV MAIL MAILPATH 3765PS1='$ ' 3766PS2='> ' 3767PS4='+ ' 3768 3769# NLS nuisances. 3770for as_var in \ 3771 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3772 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3773 LC_TELEPHONE LC_TIME 3774do 3775 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 3776 eval $as_var=C; export $as_var 3777 else 3778 $as_unset $as_var 3779 fi 3780done 3781 3782# Required to use basename. 3783if expr a : '\(a\)' >/dev/null 2>&1; then 3784 as_expr=expr 3785else 3786 as_expr=false 3787fi 3788 3789if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 3790 as_basename=basename 3791else 3792 as_basename=false 3793fi 3794 3795 3796# Name of the executable. 3797as_me=`$as_basename "$0" || 3798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3799 X"$0" : 'X\(//\)$' \| \ 3800 X"$0" : 'X\(/\)$' \| \ 3801 . : '\(.\)' 2>/dev/null || 3802echo X/"$0" | 3803 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3804 /^X\/\(\/\/\)$/{ s//\1/; q; } 3805 /^X\/\(\/\).*/{ s//\1/; q; } 3806 s/.*/./; q'` 3807 3808 3809# PATH needs CR, and LINENO needs CR and PATH. 3810# Avoid depending upon Character Ranges. 3811as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3812as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3813as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3814as_cr_digits='0123456789' 3815as_cr_alnum=$as_cr_Letters$as_cr_digits 3816 3817# The user is always right. 3818if test "${PATH_SEPARATOR+set}" != set; then 3819 echo "#! /bin/sh" >conf$$.sh 3820 echo "exit 0" >>conf$$.sh 3821 chmod +x conf$$.sh 3822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3823 PATH_SEPARATOR=';' 3824 else 3825 PATH_SEPARATOR=: 3826 fi 3827 rm -f conf$$.sh 3828fi 3829 3830 3831 as_lineno_1=$LINENO 3832 as_lineno_2=$LINENO 3833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3834 test "x$as_lineno_1" != "x$as_lineno_2" && 3835 test "x$as_lineno_3" = "x$as_lineno_2" || { 3836 # Find who we are. Look in the path if we contain no path at all 3837 # relative or not. 3838 case $0 in 3839 *[\\/]* ) as_myself=$0 ;; 3840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841for as_dir in $PATH 3842do 3843 IFS=$as_save_IFS 3844 test -z "$as_dir" && as_dir=. 3845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3846done 3847 3848 ;; 3849 esac 3850 # We did not find ourselves, most probably we were run as `sh COMMAND' 3851 # in which case we are not to be found in the path. 3852 if test "x$as_myself" = x; then 3853 as_myself=$0 3854 fi 3855 if test ! -f "$as_myself"; then 3856 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3857echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3858 { (exit 1); exit 1; }; } 3859 fi 3860 case $CONFIG_SHELL in 3861 '') 3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3863for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3864do 3865 IFS=$as_save_IFS 3866 test -z "$as_dir" && as_dir=. 3867 for as_base in sh bash ksh sh5; do 3868 case $as_dir in 3869 /*) 3870 if ("$as_dir/$as_base" -c ' 3871 as_lineno_1=$LINENO 3872 as_lineno_2=$LINENO 3873 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3874 test "x$as_lineno_1" != "x$as_lineno_2" && 3875 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3876 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3877 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3878 CONFIG_SHELL=$as_dir/$as_base 3879 export CONFIG_SHELL 3880 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3881 fi;; 3882 esac 3883 done 3884done 3885;; 3886 esac 3887 3888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3889 # uniformly replaced by the line number. The first 'sed' inserts a 3890 # line-number line before each line; the second 'sed' does the real 3891 # work. The second script uses 'N' to pair each line-number line 3892 # with the numbered line, and appends trailing '-' during 3893 # substitution so that $LINENO is not a special case at line end. 3894 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3895 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3896 sed '=' <$as_myself | 3897 sed ' 3898 N 3899 s,$,-, 3900 : loop 3901 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3902 t loop 3903 s,-$,, 3904 s,^['$as_cr_digits']*\n,, 3905 ' >$as_me.lineno && 3906 chmod +x $as_me.lineno || 3907 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3908echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3909 { (exit 1); exit 1; }; } 3910 3911 # Don't try to exec as it changes $[0], causing all sort of problems 3912 # (the dirname of $[0] is not the place where we might find the 3913 # original and so on. Autoconf is especially sensible to this). 3914 . ./$as_me.lineno 3915 # Exit status is that of the last command. 3916 exit 3917} 3918 3919 3920case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3921 *c*,-n*) ECHO_N= ECHO_C=' 3922' ECHO_T=' ' ;; 3923 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3924 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3925esac 3926 3927if expr a : '\(a\)' >/dev/null 2>&1; then 3928 as_expr=expr 3929else 3930 as_expr=false 3931fi 3932 3933rm -f conf$$ conf$$.exe conf$$.file 3934echo >conf$$.file 3935if ln -s conf$$.file conf$$ 2>/dev/null; then 3936 # We could just check for DJGPP; but this test a) works b) is more generic 3937 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3938 if test -f conf$$.exe; then 3939 # Don't use ln at all; we don't have any links 3940 as_ln_s='cp -p' 3941 else 3942 as_ln_s='ln -s' 3943 fi 3944elif ln conf$$.file conf$$ 2>/dev/null; then 3945 as_ln_s=ln 3946else 3947 as_ln_s='cp -p' 3948fi 3949rm -f conf$$ conf$$.exe conf$$.file 3950 3951if mkdir -p . 2>/dev/null; then 3952 as_mkdir_p=: 3953else 3954 as_mkdir_p=false 3955fi 3956 3957as_executable_p="test -f" 3958 3959# Sed expression to map a string onto a valid CPP name. 3960as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 3961 3962# Sed expression to map a string onto a valid variable name. 3963as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 3964 3965 3966# IFS 3967# We need space, tab and new line, in precisely that order. 3968as_nl=' 3969' 3970IFS=" $as_nl" 3971 3972# CDPATH. 3973$as_unset CDPATH 3974 3975exec 6>&1 3976 3977# Open the log real soon, to keep \$[0] and so on meaningful, and to 3978# report actual input values of CONFIG_FILES etc. instead of their 3979# values after options handling. Logging --version etc. is OK. 3980exec 5>>config.log 3981{ 3982 echo 3983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3984## Running $as_me. ## 3985_ASBOX 3986} >&5 3987cat >&5 <<_CSEOF 3988 3989This file was extended by $as_me, which was 3990generated by GNU Autoconf 2.57. Invocation command line was 3991 3992 CONFIG_FILES = $CONFIG_FILES 3993 CONFIG_HEADERS = $CONFIG_HEADERS 3994 CONFIG_LINKS = $CONFIG_LINKS 3995 CONFIG_COMMANDS = $CONFIG_COMMANDS 3996 $ $0 $@ 3997 3998_CSEOF 3999echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4000echo >&5 4001_ACEOF 4002 4003# Files that config.status was made for. 4004if test -n "$ac_config_files"; then 4005 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4006fi 4007 4008if test -n "$ac_config_headers"; then 4009 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4010fi 4011 4012if test -n "$ac_config_links"; then 4013 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4014fi 4015 4016if test -n "$ac_config_commands"; then 4017 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4018fi 4019 4020cat >>$CONFIG_STATUS <<\_ACEOF 4021 4022ac_cs_usage="\ 4023\`$as_me' instantiates files from templates according to the 4024current configuration. 4025 4026Usage: $0 [OPTIONS] [FILE]... 4027 4028 -h, --help print this help, then exit 4029 -V, --version print version number, then exit 4030 -q, --quiet do not print progress messages 4031 -d, --debug don't remove temporary files 4032 --recheck update $as_me by reconfiguring in the same conditions 4033 --file=FILE[:TEMPLATE] 4034 instantiate the configuration file FILE 4035 --header=FILE[:TEMPLATE] 4036 instantiate the configuration header FILE 4037 4038Configuration files: 4039$config_files 4040 4041Configuration headers: 4042$config_headers 4043 4044Report bugs to <bug-autoconf@gnu.org>." 4045_ACEOF 4046 4047cat >>$CONFIG_STATUS <<_ACEOF 4048ac_cs_version="\\ 4049config.status 4050configured by $0, generated by GNU Autoconf 2.57, 4051 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4052 4053Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4054Free Software Foundation, Inc. 4055This config.status script is free software; the Free Software Foundation 4056gives unlimited permission to copy, distribute and modify it." 4057srcdir=$srcdir 4058_ACEOF 4059 4060cat >>$CONFIG_STATUS <<\_ACEOF 4061# If no file are specified by the user, then we need to provide default 4062# value. By we need to know if files were specified by the user. 4063ac_need_defaults=: 4064while test $# != 0 4065do 4066 case $1 in 4067 --*=*) 4068 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4069 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4070 ac_shift=: 4071 ;; 4072 -*) 4073 ac_option=$1 4074 ac_optarg=$2 4075 ac_shift=shift 4076 ;; 4077 *) # This is not an option, so the user has probably given explicit 4078 # arguments. 4079 ac_option=$1 4080 ac_need_defaults=false;; 4081 esac 4082 4083 case $ac_option in 4084 # Handling of the options. 4085_ACEOF 4086cat >>$CONFIG_STATUS <<\_ACEOF 4087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4088 ac_cs_recheck=: ;; 4089 --version | --vers* | -V ) 4090 echo "$ac_cs_version"; exit 0 ;; 4091 --he | --h) 4092 # Conflict between --help and --header 4093 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4094Try \`$0 --help' for more information." >&5 4095echo "$as_me: error: ambiguous option: $1 4096Try \`$0 --help' for more information." >&2;} 4097 { (exit 1); exit 1; }; };; 4098 --help | --hel | -h ) 4099 echo "$ac_cs_usage"; exit 0 ;; 4100 --debug | --d* | -d ) 4101 debug=: ;; 4102 --file | --fil | --fi | --f ) 4103 $ac_shift 4104 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4105 ac_need_defaults=false;; 4106 --header | --heade | --head | --hea ) 4107 $ac_shift 4108 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4109 ac_need_defaults=false;; 4110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4111 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4112 ac_cs_silent=: ;; 4113 4114 # This is an error. 4115 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4116Try \`$0 --help' for more information." >&5 4117echo "$as_me: error: unrecognized option: $1 4118Try \`$0 --help' for more information." >&2;} 4119 { (exit 1); exit 1; }; } ;; 4120 4121 *) ac_config_targets="$ac_config_targets $1" ;; 4122 4123 esac 4124 shift 4125done 4126 4127ac_configure_extra_args= 4128 4129if $ac_cs_silent; then 4130 exec 6>/dev/null 4131 ac_configure_extra_args="$ac_configure_extra_args --silent" 4132fi 4133 4134_ACEOF 4135cat >>$CONFIG_STATUS <<_ACEOF 4136if \$ac_cs_recheck; then 4137 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4138 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4139fi 4140 4141_ACEOF 4142 4143 4144 4145 4146 4147cat >>$CONFIG_STATUS <<\_ACEOF 4148for ac_config_target in $ac_config_targets 4149do 4150 case "$ac_config_target" in 4151 # Handling of arguments. 4152 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4153 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 4154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4155echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4156 { (exit 1); exit 1; }; };; 4157 esac 4158done 4159 4160# If the user did not use the arguments to specify the items to instantiate, 4161# then the envvar interface is used. Set only those that are not. 4162# We use the long form for the default assignment because of an extremely 4163# bizarre bug on SunOS 4.1.3. 4164if $ac_need_defaults; then 4165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4167fi 4168 4169# Have a temporary directory for convenience. Make it in the build tree 4170# simply because there is no reason to put it here, and in addition, 4171# creating and moving files from /tmp can sometimes cause problems. 4172# Create a temporary directory, and hook for its removal unless debugging. 4173$debug || 4174{ 4175 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4176 trap '{ (exit 1); exit 1; }' 1 2 13 15 4177} 4178 4179# Create a (secure) tmp directory for tmp files. 4180 4181{ 4182 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 4183 test -n "$tmp" && test -d "$tmp" 4184} || 4185{ 4186 tmp=./confstat$$-$RANDOM 4187 (umask 077 && mkdir $tmp) 4188} || 4189{ 4190 echo "$me: cannot create a temporary directory in ." >&2 4191 { (exit 1); exit 1; } 4192} 4193 4194_ACEOF 4195 4196cat >>$CONFIG_STATUS <<_ACEOF 4197 4198# 4199# CONFIG_FILES section. 4200# 4201 4202# No need to generate the scripts if there are no CONFIG_FILES. 4203# This happens for instance when ./config.status config.h 4204if test -n "\$CONFIG_FILES"; then 4205 # Protect against being on the right side of a sed subst in config.status. 4206 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4207 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4208s,@SHELL@,$SHELL,;t t 4209s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4210s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4211s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4212s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4213s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4214s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4215s,@exec_prefix@,$exec_prefix,;t t 4216s,@prefix@,$prefix,;t t 4217s,@program_transform_name@,$program_transform_name,;t t 4218s,@bindir@,$bindir,;t t 4219s,@sbindir@,$sbindir,;t t 4220s,@libexecdir@,$libexecdir,;t t 4221s,@datadir@,$datadir,;t t 4222s,@sysconfdir@,$sysconfdir,;t t 4223s,@sharedstatedir@,$sharedstatedir,;t t 4224s,@localstatedir@,$localstatedir,;t t 4225s,@libdir@,$libdir,;t t 4226s,@includedir@,$includedir,;t t 4227s,@oldincludedir@,$oldincludedir,;t t 4228s,@infodir@,$infodir,;t t 4229s,@mandir@,$mandir,;t t 4230s,@build_alias@,$build_alias,;t t 4231s,@host_alias@,$host_alias,;t t 4232s,@target_alias@,$target_alias,;t t 4233s,@DEFS@,$DEFS,;t t 4234s,@ECHO_C@,$ECHO_C,;t t 4235s,@ECHO_N@,$ECHO_N,;t t 4236s,@ECHO_T@,$ECHO_T,;t t 4237s,@LIBS@,$LIBS,;t t 4238s,@GTKOBJS@,$GTKOBJS,;t t 4239s,@CC@,$CC,;t t 4240s,@CFLAGS@,$CFLAGS,;t t 4241s,@LDFLAGS@,$LDFLAGS,;t t 4242s,@CPPFLAGS@,$CPPFLAGS,;t t 4243s,@ac_ct_CC@,$ac_ct_CC,;t t 4244s,@EXEEXT@,$EXEEXT,;t t 4245s,@OBJEXT@,$OBJEXT,;t t 4246s,@SET_MAKE@,$SET_MAKE,;t t 4247s,@CPP@,$CPP,;t t 4248s,@EGREP@,$EGREP,;t t 4249s,@PKG_CONFIG@,$PKG_CONFIG,;t t 4250s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 4251s,@GTK_LIBS@,$GTK_LIBS,;t t 4252s,@LIBOBJS@,$LIBOBJS,;t t 4253s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4254CEOF 4255 4256_ACEOF 4257 4258 cat >>$CONFIG_STATUS <<\_ACEOF 4259 # Split the substitutions into bite-sized pieces for seds with 4260 # small command number limits, like on Digital OSF/1 and HP-UX. 4261 ac_max_sed_lines=48 4262 ac_sed_frag=1 # Number of current file. 4263 ac_beg=1 # First line for current file. 4264 ac_end=$ac_max_sed_lines # Line after last line for current file. 4265 ac_more_lines=: 4266 ac_sed_cmds= 4267 while $ac_more_lines; do 4268 if test $ac_beg -gt 1; then 4269 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4270 else 4271 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4272 fi 4273 if test ! -s $tmp/subs.frag; then 4274 ac_more_lines=false 4275 else 4276 # The purpose of the label and of the branching condition is to 4277 # speed up the sed processing (if there are no `@' at all, there 4278 # is no need to browse any of the substitutions). 4279 # These are the two extra sed commands mentioned above. 4280 (echo ':t 4281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4282 if test -z "$ac_sed_cmds"; then 4283 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4284 else 4285 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4286 fi 4287 ac_sed_frag=`expr $ac_sed_frag + 1` 4288 ac_beg=$ac_end 4289 ac_end=`expr $ac_end + $ac_max_sed_lines` 4290 fi 4291 done 4292 if test -z "$ac_sed_cmds"; then 4293 ac_sed_cmds=cat 4294 fi 4295fi # test -n "$CONFIG_FILES" 4296 4297_ACEOF 4298cat >>$CONFIG_STATUS <<\_ACEOF 4299for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4301 case $ac_file in 4302 - | *:- | *:-:* ) # input from stdin 4303 cat >$tmp/stdin 4304 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4306 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4308 * ) ac_file_in=$ac_file.in ;; 4309 esac 4310 4311 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4312 ac_dir=`(dirname "$ac_file") 2>/dev/null || 4313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4314 X"$ac_file" : 'X\(//\)[^/]' \| \ 4315 X"$ac_file" : 'X\(//\)$' \| \ 4316 X"$ac_file" : 'X\(/\)' \| \ 4317 . : '\(.\)' 2>/dev/null || 4318echo X"$ac_file" | 4319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4320 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4321 /^X\(\/\/\)$/{ s//\1/; q; } 4322 /^X\(\/\).*/{ s//\1/; q; } 4323 s/.*/./; q'` 4324 { if $as_mkdir_p; then 4325 mkdir -p "$ac_dir" 4326 else 4327 as_dir="$ac_dir" 4328 as_dirs= 4329 while test ! -d "$as_dir"; do 4330 as_dirs="$as_dir $as_dirs" 4331 as_dir=`(dirname "$as_dir") 2>/dev/null || 4332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4333 X"$as_dir" : 'X\(//\)[^/]' \| \ 4334 X"$as_dir" : 'X\(//\)$' \| \ 4335 X"$as_dir" : 'X\(/\)' \| \ 4336 . : '\(.\)' 2>/dev/null || 4337echo X"$as_dir" | 4338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4339 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4340 /^X\(\/\/\)$/{ s//\1/; q; } 4341 /^X\(\/\).*/{ s//\1/; q; } 4342 s/.*/./; q'` 4343 done 4344 test ! -n "$as_dirs" || mkdir $as_dirs 4345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4346echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4347 { (exit 1); exit 1; }; }; } 4348 4349 ac_builddir=. 4350 4351if test "$ac_dir" != .; then 4352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4353 # A "../" for each directory in $ac_dir_suffix. 4354 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 4355else 4356 ac_dir_suffix= ac_top_builddir= 4357fi 4358 4359case $srcdir in 4360 .) # No --srcdir option. We are building in place. 4361 ac_srcdir=. 4362 if test -z "$ac_top_builddir"; then 4363 ac_top_srcdir=. 4364 else 4365 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 4366 fi ;; 4367 [\\/]* | ?:[\\/]* ) # Absolute path. 4368 ac_srcdir=$srcdir$ac_dir_suffix; 4369 ac_top_srcdir=$srcdir ;; 4370 *) # Relative path. 4371 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 4372 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4373esac 4374# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 4375# absolute. 4376ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 4377ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 4378ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 4379ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 4380 4381 4382 4383 if test x"$ac_file" != x-; then 4384 { echo "$as_me:$LINENO: creating $ac_file" >&5 4385echo "$as_me: creating $ac_file" >&6;} 4386 rm -f "$ac_file" 4387 fi 4388 # Let's still pretend it is `configure' which instantiates (i.e., don't 4389 # use $as_me), people would be surprised to read: 4390 # /* config.h. Generated by config.status. */ 4391 if test x"$ac_file" = x-; then 4392 configure_input= 4393 else 4394 configure_input="$ac_file. " 4395 fi 4396 configure_input=$configure_input"Generated from `echo $ac_file_in | 4397 sed 's,.*/,,'` by configure." 4398 4399 # First look for the input files in the build tree, otherwise in the 4400 # src tree. 4401 ac_file_inputs=`IFS=: 4402 for f in $ac_file_in; do 4403 case $f in 4404 -) echo $tmp/stdin ;; 4405 [\\/$]*) 4406 # Absolute (can't be DOS-style, as IFS=:) 4407 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4408echo "$as_me: error: cannot find input file: $f" >&2;} 4409 { (exit 1); exit 1; }; } 4410 echo $f;; 4411 *) # Relative 4412 if test -f "$f"; then 4413 # Build tree 4414 echo $f 4415 elif test -f "$srcdir/$f"; then 4416 # Source tree 4417 echo $srcdir/$f 4418 else 4419 # /dev/null tree 4420 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4421echo "$as_me: error: cannot find input file: $f" >&2;} 4422 { (exit 1); exit 1; }; } 4423 fi;; 4424 esac 4425 done` || { (exit 1); exit 1; } 4426_ACEOF 4427cat >>$CONFIG_STATUS <<_ACEOF 4428 sed "$ac_vpsub 4429$extrasub 4430_ACEOF 4431cat >>$CONFIG_STATUS <<\_ACEOF 4432:t 4433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4434s,@configure_input@,$configure_input,;t t 4435s,@srcdir@,$ac_srcdir,;t t 4436s,@abs_srcdir@,$ac_abs_srcdir,;t t 4437s,@top_srcdir@,$ac_top_srcdir,;t t 4438s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 4439s,@builddir@,$ac_builddir,;t t 4440s,@abs_builddir@,$ac_abs_builddir,;t t 4441s,@top_builddir@,$ac_top_builddir,;t t 4442s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 4443" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 4444 rm -f $tmp/stdin 4445 if test x"$ac_file" != x-; then 4446 mv $tmp/out $ac_file 4447 else 4448 cat $tmp/out 4449 rm -f $tmp/out 4450 fi 4451 4452done 4453_ACEOF 4454cat >>$CONFIG_STATUS <<\_ACEOF 4455 4456# 4457# CONFIG_HEADER section. 4458# 4459 4460# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4461# NAME is the cpp macro being defined and VALUE is the value it is being given. 4462# 4463# ac_d sets the value in "#define NAME VALUE" lines. 4464ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4465ac_dB='[ ].*$,\1#\2' 4466ac_dC=' ' 4467ac_dD=',;t' 4468# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4469ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4470ac_uB='$,\1#\2define\3' 4471ac_uC=' ' 4472ac_uD=',;t' 4473 4474for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 4475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4476 case $ac_file in 4477 - | *:- | *:-:* ) # input from stdin 4478 cat >$tmp/stdin 4479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4483 * ) ac_file_in=$ac_file.in ;; 4484 esac 4485 4486 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 4487echo "$as_me: creating $ac_file" >&6;} 4488 4489 # First look for the input files in the build tree, otherwise in the 4490 # src tree. 4491 ac_file_inputs=`IFS=: 4492 for f in $ac_file_in; do 4493 case $f in 4494 -) echo $tmp/stdin ;; 4495 [\\/$]*) 4496 # Absolute (can't be DOS-style, as IFS=:) 4497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4498echo "$as_me: error: cannot find input file: $f" >&2;} 4499 { (exit 1); exit 1; }; } 4500 echo $f;; 4501 *) # Relative 4502 if test -f "$f"; then 4503 # Build tree 4504 echo $f 4505 elif test -f "$srcdir/$f"; then 4506 # Source tree 4507 echo $srcdir/$f 4508 else 4509 # /dev/null tree 4510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4511echo "$as_me: error: cannot find input file: $f" >&2;} 4512 { (exit 1); exit 1; }; } 4513 fi;; 4514 esac 4515 done` || { (exit 1); exit 1; } 4516 # Remove the trailing spaces. 4517 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 4518 4519_ACEOF 4520 4521# Transform confdefs.h into two sed scripts, `conftest.defines' and 4522# `conftest.undefs', that substitutes the proper values into 4523# config.h.in to produce config.h. The first handles `#define' 4524# templates, and the second `#undef' templates. 4525# And first: Protect against being on the right side of a sed subst in 4526# config.status. Protect against being in an unquoted here document 4527# in config.status. 4528rm -f conftest.defines conftest.undefs 4529# Using a here document instead of a string reduces the quoting nightmare. 4530# Putting comments in sed scripts is not portable. 4531# 4532# `end' is used to avoid that the second main sed command (meant for 4533# 0-ary CPP macros) applies to n-ary macro definitions. 4534# See the Autoconf documentation for `clear'. 4535cat >confdef2sed.sed <<\_ACEOF 4536s/[\\&,]/\\&/g 4537s,[\\$`],\\&,g 4538t clear 4539: clear 4540s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 4541t end 4542s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 4543: end 4544_ACEOF 4545# If some macros were called several times there might be several times 4546# the same #defines, which is useless. Nevertheless, we may not want to 4547# sort them, since we want the *last* AC-DEFINE to be honored. 4548uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 4549sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 4550rm -f confdef2sed.sed 4551 4552# This sed command replaces #undef with comments. This is necessary, for 4553# example, in the case of _POSIX_SOURCE, which is predefined and required 4554# on some systems where configure will not decide to define it. 4555cat >>conftest.undefs <<\_ACEOF 4556s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 4557_ACEOF 4558 4559# Break up conftest.defines because some shells have a limit on the size 4560# of here documents, and old seds have small limits too (100 cmds). 4561echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 4562echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 4563echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 4564echo ' :' >>$CONFIG_STATUS 4565rm -f conftest.tail 4566while grep . conftest.defines >/dev/null 4567do 4568 # Write a limited-size here document to $tmp/defines.sed. 4569 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 4570 # Speed up: don't consider the non `#define' lines. 4571 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 4572 # Work around the forget-to-reset-the-flag bug. 4573 echo 't clr' >>$CONFIG_STATUS 4574 echo ': clr' >>$CONFIG_STATUS 4575 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 4576 echo 'CEOF 4577 sed -f $tmp/defines.sed $tmp/in >$tmp/out 4578 rm -f $tmp/in 4579 mv $tmp/out $tmp/in 4580' >>$CONFIG_STATUS 4581 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 4582 rm -f conftest.defines 4583 mv conftest.tail conftest.defines 4584done 4585rm -f conftest.defines 4586echo ' fi # grep' >>$CONFIG_STATUS 4587echo >>$CONFIG_STATUS 4588 4589# Break up conftest.undefs because some shells have a limit on the size 4590# of here documents, and old seds have small limits too (100 cmds). 4591echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 4592rm -f conftest.tail 4593while grep . conftest.undefs >/dev/null 4594do 4595 # Write a limited-size here document to $tmp/undefs.sed. 4596 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 4597 # Speed up: don't consider the non `#undef' 4598 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 4599 # Work around the forget-to-reset-the-flag bug. 4600 echo 't clr' >>$CONFIG_STATUS 4601 echo ': clr' >>$CONFIG_STATUS 4602 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 4603 echo 'CEOF 4604 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 4605 rm -f $tmp/in 4606 mv $tmp/out $tmp/in 4607' >>$CONFIG_STATUS 4608 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 4609 rm -f conftest.undefs 4610 mv conftest.tail conftest.undefs 4611done 4612rm -f conftest.undefs 4613 4614cat >>$CONFIG_STATUS <<\_ACEOF 4615 # Let's still pretend it is `configure' which instantiates (i.e., don't 4616 # use $as_me), people would be surprised to read: 4617 # /* config.h. Generated by config.status. */ 4618 if test x"$ac_file" = x-; then 4619 echo "/* Generated by configure. */" >$tmp/config.h 4620 else 4621 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 4622 fi 4623 cat $tmp/in >>$tmp/config.h 4624 rm -f $tmp/in 4625 if test x"$ac_file" != x-; then 4626 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 4627 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 4628echo "$as_me: $ac_file is unchanged" >&6;} 4629 else 4630 ac_dir=`(dirname "$ac_file") 2>/dev/null || 4631$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4632 X"$ac_file" : 'X\(//\)[^/]' \| \ 4633 X"$ac_file" : 'X\(//\)$' \| \ 4634 X"$ac_file" : 'X\(/\)' \| \ 4635 . : '\(.\)' 2>/dev/null || 4636echo X"$ac_file" | 4637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4638 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4639 /^X\(\/\/\)$/{ s//\1/; q; } 4640 /^X\(\/\).*/{ s//\1/; q; } 4641 s/.*/./; q'` 4642 { if $as_mkdir_p; then 4643 mkdir -p "$ac_dir" 4644 else 4645 as_dir="$ac_dir" 4646 as_dirs= 4647 while test ! -d "$as_dir"; do 4648 as_dirs="$as_dir $as_dirs" 4649 as_dir=`(dirname "$as_dir") 2>/dev/null || 4650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4651 X"$as_dir" : 'X\(//\)[^/]' \| \ 4652 X"$as_dir" : 'X\(//\)$' \| \ 4653 X"$as_dir" : 'X\(/\)' \| \ 4654 . : '\(.\)' 2>/dev/null || 4655echo X"$as_dir" | 4656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4657 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4658 /^X\(\/\/\)$/{ s//\1/; q; } 4659 /^X\(\/\).*/{ s//\1/; q; } 4660 s/.*/./; q'` 4661 done 4662 test ! -n "$as_dirs" || mkdir $as_dirs 4663 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4664echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4665 { (exit 1); exit 1; }; }; } 4666 4667 rm -f $ac_file 4668 mv $tmp/config.h $ac_file 4669 fi 4670 else 4671 cat $tmp/config.h 4672 rm -f $tmp/config.h 4673 fi 4674done 4675_ACEOF 4676 4677cat >>$CONFIG_STATUS <<\_ACEOF 4678 4679{ (exit 0); exit 0; } 4680_ACEOF 4681chmod +x $CONFIG_STATUS 4682ac_clean_files=$ac_clean_files_save 4683 4684 4685# configure is writing to config.log, and then calls config.status. 4686# config.status does its own redirection, appending to config.log. 4687# Unfortunately, on DOS this fails, as config.log is still kept open 4688# by configure, so config.status won't be able to write to it; its 4689# output is simply discarded. So we exec the FD to /dev/null, 4690# effectively closing config.log, so it can be properly (re)opened and 4691# appended to by config.status. When coming back to configure, we 4692# need to make the FD available again. 4693if test "$no_create" != yes; then 4694 ac_cs_success=: 4695 ac_config_status_args= 4696 test "$silent" = yes && 4697 ac_config_status_args="$ac_config_status_args --quiet" 4698 exec 5>/dev/null 4699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4700 exec 5>>config.log 4701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4702 # would make configure fail if this is the last instruction. 4703 $ac_cs_success || { (exit 1); exit 1; } 4704fi 4705 4706 4707 4708################# 4709# Print results # 4710################# 4711 4712echo 4713echo "Ok. I have done with configuration." 4714echo 4715echo "Results are:" 4716echo 4717echo "PLATFORM ...... : `uname -mp`" 4718echo "O.S. .......... : `uname -rs` (`uname -n`)" 4719echo "COMPILER ...... : ${CC}" 4720echo "CFLAGS ........ : ${CFLAGS}" 4721echo "CPPFLAGS ...... : ${GTK_CFLAGS} ${CPPFLAGS}" 4722echo "LDFLAGS ....... : ${LDFLAGS}" 4723echo "LIBS .......... : ${LIBS} ${GTK_LIBS}" 4724echo "PREFIX ........ : ${prefix}" 4725echo "GTK+ SUPPORT .. : ${ENABLE_GTK}" 4726echo 4727echo "Type 'make' to compile ('make help' for details)." 4728echo 4729