1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.56 for FULL-PACKAGE-NAME VERSION. 4@%:@ 5@%:@ Report bugs to <BUG-REPORT-ADDRESS>. 6@%:@ 7@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8@%:@ Free Software Foundation, Inc. 9@%:@ This configure script is free software; the Free Software Foundation 10@%:@ gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245# Name of the host. 246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 247# so uname gets run too. 248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250exec 6>&1 251 252# 253# Initializations. 254# 255ac_default_prefix=/usr/local 256ac_config_libobj_dir=. 257cross_compiling=no 258subdirs= 259MFLAGS= 260MAKEFLAGS= 261SHELL=${CONFIG_SHELL-/bin/sh} 262 263# Maximum number of lines to put in a shell here document. 264# This variable seems obsolete. It should probably be removed, and 265# only ac_max_sed_lines should be used. 266: ${ac_max_here_lines=38} 267 268# Identity of this package. 269PACKAGE_NAME='FULL-PACKAGE-NAME' 270PACKAGE_TARNAME='full-package-name' 271PACKAGE_VERSION='VERSION' 272PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' 273PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' 274 275ac_unique_file="src/ai.cpp" 276# Factoring default headers for most tests. 277ac_includes_default="\ 278#include <stdio.h> 279#if HAVE_SYS_TYPES_H 280# include <sys/types.h> 281#endif 282#if HAVE_SYS_STAT_H 283# include <sys/stat.h> 284#endif 285#if STDC_HEADERS 286# include <stdlib.h> 287# include <stddef.h> 288#else 289# if HAVE_STDLIB_H 290# include <stdlib.h> 291# endif 292#endif 293#if HAVE_STRING_H 294# if !STDC_HEADERS && HAVE_MEMORY_H 295# include <memory.h> 296# endif 297# include <string.h> 298#endif 299#if HAVE_STRINGS_H 300# include <strings.h> 301#endif 302#if HAVE_INTTYPES_H 303# include <inttypes.h> 304#else 305# if HAVE_STDINT_H 306# include <stdint.h> 307# endif 308#endif 309#if HAVE_UNISTD_H 310# include <unistd.h> 311#endif" 312 313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIB@&t@OBJS LTLIBOBJS' 314ac_subst_files='' 315 316# Initialize some variables set by options. 317ac_init_help= 318ac_init_version=false 319# The variables have the same names as the options, with 320# dashes changed to underlines. 321cache_file=/dev/null 322exec_prefix=NONE 323no_create= 324no_recursion= 325prefix=NONE 326program_prefix=NONE 327program_suffix=NONE 328program_transform_name=s,x,x, 329silent= 330site= 331srcdir= 332verbose= 333x_includes=NONE 334x_libraries=NONE 335 336# Installation directory options. 337# These are left unexpanded so users can "make install exec_prefix=/foo" 338# and all the variables that are supposed to be based on exec_prefix 339# by default will actually change. 340# Use braces instead of parens because sh, perl, etc. also accept them. 341bindir='${exec_prefix}/bin' 342sbindir='${exec_prefix}/sbin' 343libexecdir='${exec_prefix}/libexec' 344datadir='${prefix}/share' 345sysconfdir='${prefix}/etc' 346sharedstatedir='${prefix}/com' 347localstatedir='${prefix}/var' 348libdir='${exec_prefix}/lib' 349includedir='${prefix}/include' 350oldincludedir='/usr/include' 351infodir='${prefix}/info' 352mandir='${prefix}/man' 353 354ac_prev= 355for ac_option 356do 357 # If the previous option needs an argument, assign it. 358 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option" 360 ac_prev= 361 continue 362 fi 363 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 366 # Accept the important Cygnus configure options, so we can diagnose typos. 367 368 case $ac_option in 369 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 ac_prev=bindir ;; 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 bindir=$ac_optarg ;; 374 375 -build | --build | --buil | --bui | --bu) 376 ac_prev=build_alias ;; 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 build_alias=$ac_optarg ;; 379 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 ac_prev=cache_file ;; 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 389 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 394 datadir=$ac_optarg ;; 395 396 -disable-* | --disable-*) 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 404 405 -enable-* | --enable-*) 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 417 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 | --exec | --exe | --ex) 421 ac_prev=exec_prefix ;; 422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 | --exec=* | --exe=* | --ex=*) 425 exec_prefix=$ac_optarg ;; 426 427 -gas | --gas | --ga | --g) 428 # Obsolete; use --with-gas. 429 with_gas=yes ;; 430 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 437 438 -host | --host | --hos | --ho) 439 ac_prev=host_alias ;; 440 -host=* | --host=* | --hos=* | --ho=*) 441 host_alias=$ac_optarg ;; 442 443 -includedir | --includedir | --includedi | --included | --include \ 444 | --includ | --inclu | --incl | --inc) 445 ac_prev=includedir ;; 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 448 includedir=$ac_optarg ;; 449 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 451 ac_prev=infodir ;; 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 infodir=$ac_optarg ;; 454 455 -libdir | --libdir | --libdi | --libd) 456 ac_prev=libdir ;; 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 libdir=$ac_optarg ;; 459 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 | --libexe | --libex | --libe) 462 ac_prev=libexecdir ;; 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 | --libexe=* | --libex=* | --libe=*) 465 libexecdir=$ac_optarg ;; 466 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 470 ac_prev=localstatedir ;; 471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 localstatedir=$ac_optarg ;; 475 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 ac_prev=mandir ;; 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 mandir=$ac_optarg ;; 480 481 -nfp | --nfp | --nf) 482 # Obsolete; use --without-fp. 483 with_fp=no ;; 484 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 | --no-cr | --no-c | -n) 487 no_create=yes ;; 488 489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 no_recursion=yes ;; 492 493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 | --oldin | --oldi | --old | --ol | --o) 496 ac_prev=oldincludedir ;; 497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 oldincludedir=$ac_optarg ;; 501 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 ac_prev=prefix ;; 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 prefix=$ac_optarg ;; 506 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 | --program-pre | --program-pr | --program-p) 509 ac_prev=program_prefix ;; 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 program_prefix=$ac_optarg ;; 513 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 | --program-suf | --program-su | --program-s) 516 ac_prev=program_suffix ;; 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 program_suffix=$ac_optarg ;; 520 521 -program-transform-name | --program-transform-name \ 522 | --program-transform-nam | --program-transform-na \ 523 | --program-transform-n | --program-transform- \ 524 | --program-transform | --program-transfor \ 525 | --program-transfo | --program-transf \ 526 | --program-trans | --program-tran \ 527 | --progr-tra | --program-tr | --program-t) 528 ac_prev=program_transform_name ;; 529 -program-transform-name=* | --program-transform-name=* \ 530 | --program-transform-nam=* | --program-transform-na=* \ 531 | --program-transform-n=* | --program-transform-=* \ 532 | --program-transform=* | --program-transfor=* \ 533 | --program-transfo=* | --program-transf=* \ 534 | --program-trans=* | --program-tran=* \ 535 | --progr-tra=* | --program-tr=* | --program-t=*) 536 program_transform_name=$ac_optarg ;; 537 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 | -silent | --silent | --silen | --sile | --sil) 540 silent=yes ;; 541 542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 ac_prev=sbindir ;; 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 | --sbi=* | --sb=*) 546 sbindir=$ac_optarg ;; 547 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 | --sharedst | --shareds | --shared | --share | --shar \ 551 | --sha | --sh) 552 ac_prev=sharedstatedir ;; 553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 | --sha=* | --sh=*) 557 sharedstatedir=$ac_optarg ;; 558 559 -site | --site | --sit) 560 ac_prev=site ;; 561 -site=* | --site=* | --sit=*) 562 site=$ac_optarg ;; 563 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 ac_prev=srcdir ;; 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 srcdir=$ac_optarg ;; 568 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 | --syscon | --sysco | --sysc | --sys | --sy) 571 ac_prev=sysconfdir ;; 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 sysconfdir=$ac_optarg ;; 575 576 -target | --target | --targe | --targ | --tar | --ta | --t) 577 ac_prev=target_alias ;; 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 target_alias=$ac_optarg ;; 580 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 verbose=yes ;; 583 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 586 587 -with-* | --with-*) 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 599 600 -without-* | --without-*) 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 608 609 --x) 610 # Obsolete; use --with-x. 611 with_x=yes ;; 612 613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 | --x-incl | --x-inc | --x-in | --x-i) 615 ac_prev=x_includes ;; 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 x_includes=$ac_optarg ;; 619 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 ac_prev=x_libraries ;; 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 630 ;; 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 642 *) 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 ;; 649 650 esac 651done 652 653if test -n "$ac_prev"; then 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657fi 658 659# Be sure to have absolute paths. 660for ac_var in exec_prefix prefix 661do 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 667 esac 668done 669 670# Be sure to have absolute paths. 671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680done 681 682# There might be people who depend on the old broken behavior: `$host' 683# used to hold the argument of --host etc. 684# FIXME: To remove some day. 685build=$build_alias 686host=$host_alias 687target=$target_alias 688 689# FIXME: To remove some day. 690if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698fi 699 700ac_tool_prefix= 701test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703test "$silent" = yes && exec 6>/dev/null 704 705 706# Find the source files, if location was not specified. 707if test -z "$srcdir"; then 708 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 722 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then 724 srcdir=.. 725 fi 726else 727 ac_srcdir_defaulted=no 728fi 729if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737fi 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742ac_env_build_alias_set=${build_alias+set} 743ac_env_build_alias_value=$build_alias 744ac_cv_env_build_alias_set=${build_alias+set} 745ac_cv_env_build_alias_value=$build_alias 746ac_env_host_alias_set=${host_alias+set} 747ac_env_host_alias_value=$host_alias 748ac_cv_env_host_alias_set=${host_alias+set} 749ac_cv_env_host_alias_value=$host_alias 750ac_env_target_alias_set=${target_alias+set} 751ac_env_target_alias_value=$target_alias 752ac_cv_env_target_alias_set=${target_alias+set} 753ac_cv_env_target_alias_value=$target_alias 754ac_env_CXX_set=${CXX+set} 755ac_env_CXX_value=$CXX 756ac_cv_env_CXX_set=${CXX+set} 757ac_cv_env_CXX_value=$CXX 758ac_env_CXXFLAGS_set=${CXXFLAGS+set} 759ac_env_CXXFLAGS_value=$CXXFLAGS 760ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 761ac_cv_env_CXXFLAGS_value=$CXXFLAGS 762ac_env_LDFLAGS_set=${LDFLAGS+set} 763ac_env_LDFLAGS_value=$LDFLAGS 764ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765ac_cv_env_LDFLAGS_value=$LDFLAGS 766ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_env_CPPFLAGS_value=$CPPFLAGS 768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770ac_env_CC_set=${CC+set} 771ac_env_CC_value=$CC 772ac_cv_env_CC_set=${CC+set} 773ac_cv_env_CC_value=$CC 774ac_env_CFLAGS_set=${CFLAGS+set} 775ac_env_CFLAGS_value=$CFLAGS 776ac_cv_env_CFLAGS_set=${CFLAGS+set} 777ac_cv_env_CFLAGS_value=$CFLAGS 778ac_env_CPP_set=${CPP+set} 779ac_env_CPP_value=$CPP 780ac_cv_env_CPP_set=${CPP+set} 781ac_cv_env_CPP_value=$CPP 782 783# 784# Report the --help message. 785# 786if test "$ac_init_help" = "long"; then 787 # Omit some internal or obsolete options to make the list less imposing. 788 # This message is too long to be a string in the A/UX 3.1 sh. 789 cat <<_ACEOF 790\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. 791 792Usage: $0 [OPTION]... [VAR=VALUE]... 793 794To assign environment variables (e.g., CC, CFLAGS...), specify them as 795VAR=VALUE. See below for descriptions of some of the useful variables. 796 797Defaults for the options are specified in brackets. 798 799Configuration: 800 -h, --help display this help and exit 801 --help=short display options specific to this package 802 --help=recursive display the short help of all the included packages 803 -V, --version display version information and exit 804 -q, --quiet, --silent do not print \`checking...' messages 805 --cache-file=FILE cache test results in FILE [disabled] 806 -C, --config-cache alias for \`--cache-file=config.cache' 807 -n, --no-create do not create output files 808 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 809 810_ACEOF 811 812 cat <<_ACEOF 813Installation directories: 814 --prefix=PREFIX install architecture-independent files in PREFIX 815 [$ac_default_prefix] 816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 817 [PREFIX] 818 819By default, \`make install' will install all the files in 820\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 821an installation prefix other than \`$ac_default_prefix' using \`--prefix', 822for instance \`--prefix=\$HOME'. 823 824For better control, use the options below. 825 826Fine tuning of the installation directories: 827 --bindir=DIR user executables [EPREFIX/bin] 828 --sbindir=DIR system admin executables [EPREFIX/sbin] 829 --libexecdir=DIR program executables [EPREFIX/libexec] 830 --datadir=DIR read-only architecture-independent data [PREFIX/share] 831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 833 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 834 --libdir=DIR object code libraries [EPREFIX/lib] 835 --includedir=DIR C header files [PREFIX/include] 836 --oldincludedir=DIR C header files for non-gcc [/usr/include] 837 --infodir=DIR info documentation [PREFIX/info] 838 --mandir=DIR man documentation [PREFIX/man] 839_ACEOF 840 841 cat <<\_ACEOF 842 843Program names: 844 --program-prefix=PREFIX prepend PREFIX to installed program names 845 --program-suffix=SUFFIX append SUFFIX to installed program names 846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 847 848X features: 849 --x-includes=DIR X include files are in DIR 850 --x-libraries=DIR X library files are in DIR 851_ACEOF 852fi 853 854if test -n "$ac_init_help"; then 855 case $ac_init_help in 856 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; 857 esac 858 cat <<\_ACEOF 859 860Optional Features: 861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 863 --disable-dependency-tracking Speeds up one-time builds 864 --enable-dependency-tracking Do not reject slow dependency extractors 865 866Optional Packages: 867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 869 --with-x use the X Window System 870 871Some influential environment variables: 872 CXX C++ compiler command 873 CXXFLAGS C++ compiler flags 874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 875 nonstandard directory <lib dir> 876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 877 headers in a nonstandard directory <include dir> 878 CC C compiler command 879 CFLAGS C compiler flags 880 CPP C preprocessor 881 882Use these variables to override the choices made by `configure' or to help 883it to find libraries and programs with nonstandard names/locations. 884 885Report bugs to <BUG-REPORT-ADDRESS>. 886_ACEOF 887fi 888 889if test "$ac_init_help" = "recursive"; then 890 # If there are subdirs, report their specific --help. 891 ac_popdir=`pwd` 892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 893 test -d $ac_dir || continue 894 ac_builddir=. 895 896if test "$ac_dir" != .; then 897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 898 # A "../" for each directory in $ac_dir_suffix. 899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 900else 901 ac_dir_suffix= ac_top_builddir= 902fi 903 904case $srcdir in 905 .) # No --srcdir option. We are building in place. 906 ac_srcdir=. 907 if test -z "$ac_top_builddir"; then 908 ac_top_srcdir=. 909 else 910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 911 fi ;; 912 [\\/]* | ?:[\\/]* ) # Absolute path. 913 ac_srcdir=$srcdir$ac_dir_suffix; 914 ac_top_srcdir=$srcdir ;; 915 *) # Relative path. 916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 917 ac_top_srcdir=$ac_top_builddir$srcdir ;; 918esac 919# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 920# absolute. 921ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 922ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 923ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 924ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 925 926 cd $ac_dir 927 # Check for guested configure; otherwise get Cygnus style configure. 928 if test -f $ac_srcdir/configure.gnu; then 929 echo 930 $SHELL $ac_srcdir/configure.gnu --help=recursive 931 elif test -f $ac_srcdir/configure; then 932 echo 933 $SHELL $ac_srcdir/configure --help=recursive 934 elif test -f $ac_srcdir/configure.ac || 935 test -f $ac_srcdir/configure.in; then 936 echo 937 $ac_configure --help 938 else 939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 940 fi 941 cd $ac_popdir 942 done 943fi 944 945test -n "$ac_init_help" && exit 0 946if $ac_init_version; then 947 cat <<\_ACEOF 948FULL-PACKAGE-NAME configure VERSION 949generated by GNU Autoconf 2.56 950 951Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 952Free Software Foundation, Inc. 953This configure script is free software; the Free Software Foundation 954gives unlimited permission to copy, distribute and modify it. 955_ACEOF 956 exit 0 957fi 958exec 5>config.log 959cat >&5 <<_ACEOF 960This file contains any messages produced by compilers while 961running configure, to aid debugging if configure makes a mistake. 962 963It was created by FULL-PACKAGE-NAME $as_me VERSION, which was 964generated by GNU Autoconf 2.56. Invocation command line was 965 966 $ $0 $@ 967 968_ACEOF 969{ 970cat <<_ASUNAME 971@%:@@%:@ --------- @%:@@%:@ 972@%:@@%:@ Platform. @%:@@%:@ 973@%:@@%:@ --------- @%:@@%:@ 974 975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 976uname -m = `(uname -m) 2>/dev/null || echo unknown` 977uname -r = `(uname -r) 2>/dev/null || echo unknown` 978uname -s = `(uname -s) 2>/dev/null || echo unknown` 979uname -v = `(uname -v) 2>/dev/null || echo unknown` 980 981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 982/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 983 984/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 985/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 987hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 988/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 989/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 990/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 991 992_ASUNAME 993 994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 995for as_dir in $PATH 996do 997 IFS=$as_save_IFS 998 test -z "$as_dir" && as_dir=. 999 echo "PATH: $as_dir" 1000done 1001 1002} >&5 1003 1004cat >&5 <<_ACEOF 1005 1006 1007@%:@@%:@ ----------- @%:@@%:@ 1008@%:@@%:@ Core tests. @%:@@%:@ 1009@%:@@%:@ ----------- @%:@@%:@ 1010 1011_ACEOF 1012 1013 1014# Keep a trace of the command line. 1015# Strip out --no-create and --no-recursion so they do not pile up. 1016# Strip out --silent because we don't want to record it for future runs. 1017# Also quote any args containing shell meta-characters. 1018# Make two passes to allow for proper duplicate-argument suppression. 1019ac_configure_args= 1020ac_configure_args0= 1021ac_configure_args1= 1022ac_sep= 1023ac_must_keep_next=false 1024for ac_pass in 1 2 1025do 1026 for ac_arg 1027 do 1028 case $ac_arg in 1029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1031 | -silent | --silent | --silen | --sile | --sil) 1032 continue ;; 1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1035 esac 1036 case $ac_pass in 1037 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1038 2) 1039 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1040 if test $ac_must_keep_next = true; then 1041 ac_must_keep_next=false # Got value, back to normal. 1042 else 1043 case $ac_arg in 1044 *=* | --config-cache | -C | -disable-* | --disable-* \ 1045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1047 | -with-* | --with-* | -without-* | --without-* | --x) 1048 case "$ac_configure_args0 " in 1049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1050 esac 1051 ;; 1052 -* ) ac_must_keep_next=true ;; 1053 esac 1054 fi 1055 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1056 # Get rid of the leading space. 1057 ac_sep=" " 1058 ;; 1059 esac 1060 done 1061done 1062$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1063$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1064 1065# When interrupted or exit'd, cleanup temporary files, and complete 1066# config.log. We remove comments because anyway the quotes in there 1067# would cause problems or look ugly. 1068# WARNING: Be sure not to use single quotes in there, as some shells, 1069# such as our DU 5.0 friend, will then `close' the trap. 1070trap 'exit_status=$? 1071 # Save into config.log some information that might help in debugging. 1072 { 1073 echo 1074 1075 cat <<\_ASBOX 1076@%:@@%:@ ---------------- @%:@@%:@ 1077@%:@@%:@ Cache variables. @%:@@%:@ 1078@%:@@%:@ ---------------- @%:@@%:@ 1079_ASBOX 1080 echo 1081 # The following way of writing the cache mishandles newlines in values, 1082{ 1083 (set) 2>&1 | 1084 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1085 *ac_space=\ *) 1086 sed -n \ 1087 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1089 ;; 1090 *) 1091 sed -n \ 1092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1093 ;; 1094 esac; 1095} 1096 echo 1097 1098 cat <<\_ASBOX 1099@%:@@%:@ ----------------- @%:@@%:@ 1100@%:@@%:@ Output variables. @%:@@%:@ 1101@%:@@%:@ ----------------- @%:@@%:@ 1102_ASBOX 1103 echo 1104 for ac_var in $ac_subst_vars 1105 do 1106 eval ac_val=$`echo $ac_var` 1107 echo "$ac_var='"'"'$ac_val'"'"'" 1108 done | sort 1109 echo 1110 1111 if test -n "$ac_subst_files"; then 1112 cat <<\_ASBOX 1113@%:@@%:@ ------------- @%:@@%:@ 1114@%:@@%:@ Output files. @%:@@%:@ 1115@%:@@%:@ ------------- @%:@@%:@ 1116_ASBOX 1117 echo 1118 for ac_var in $ac_subst_files 1119 do 1120 eval ac_val=$`echo $ac_var` 1121 echo "$ac_var='"'"'$ac_val'"'"'" 1122 done | sort 1123 echo 1124 fi 1125 1126 if test -s confdefs.h; then 1127 cat <<\_ASBOX 1128@%:@@%:@ ----------- @%:@@%:@ 1129@%:@@%:@ confdefs.h. @%:@@%:@ 1130@%:@@%:@ ----------- @%:@@%:@ 1131_ASBOX 1132 echo 1133 sed "/^$/d" confdefs.h | sort 1134 echo 1135 fi 1136 test "$ac_signal" != 0 && 1137 echo "$as_me: caught signal $ac_signal" 1138 echo "$as_me: exit $exit_status" 1139 } >&5 1140 rm -f core core.* *.core && 1141 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1142 exit $exit_status 1143 ' 0 1144for ac_signal in 1 2 13 15; do 1145 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1146done 1147ac_signal=0 1148 1149# confdefs.h avoids OS command line length limits that DEFS can exceed. 1150rm -rf conftest* confdefs.h 1151# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1152echo >confdefs.h 1153 1154# Predefined preprocessor variables. 1155 1156cat >>confdefs.h <<_ACEOF 1157@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1158_ACEOF 1159 1160 1161cat >>confdefs.h <<_ACEOF 1162@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1163_ACEOF 1164 1165 1166cat >>confdefs.h <<_ACEOF 1167@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1168_ACEOF 1169 1170 1171cat >>confdefs.h <<_ACEOF 1172@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1173_ACEOF 1174 1175 1176cat >>confdefs.h <<_ACEOF 1177@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1178_ACEOF 1179 1180 1181# Let the site file select an alternate cache file if it wants to. 1182# Prefer explicitly selected file to automatically selected ones. 1183if test -z "$CONFIG_SITE"; then 1184 if test "x$prefix" != xNONE; then 1185 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1186 else 1187 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1188 fi 1189fi 1190for ac_site_file in $CONFIG_SITE; do 1191 if test -r "$ac_site_file"; then 1192 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1193echo "$as_me: loading site script $ac_site_file" >&6;} 1194 sed 's/^/| /' "$ac_site_file" >&5 1195 . "$ac_site_file" 1196 fi 1197done 1198 1199if test -r "$cache_file"; then 1200 # Some versions of bash will fail to source /dev/null (special 1201 # files actually), so we avoid doing that. 1202 if test -f "$cache_file"; then 1203 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1204echo "$as_me: loading cache $cache_file" >&6;} 1205 case $cache_file in 1206 [\\/]* | ?:[\\/]* ) . $cache_file;; 1207 *) . ./$cache_file;; 1208 esac 1209 fi 1210else 1211 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1212echo "$as_me: creating cache $cache_file" >&6;} 1213 >$cache_file 1214fi 1215 1216# Check that the precious variables saved in the cache have kept the same 1217# value. 1218ac_cache_corrupted=false 1219for ac_var in `(set) 2>&1 | 1220 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1221 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1222 eval ac_new_set=\$ac_env_${ac_var}_set 1223 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1224 eval ac_new_val="\$ac_env_${ac_var}_value" 1225 case $ac_old_set,$ac_new_set in 1226 set,) 1227 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1228echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1229 ac_cache_corrupted=: ;; 1230 ,set) 1231 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1232echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1233 ac_cache_corrupted=: ;; 1234 ,);; 1235 *) 1236 if test "x$ac_old_val" != "x$ac_new_val"; then 1237 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1238echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1239 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1240echo "$as_me: former value: $ac_old_val" >&2;} 1241 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1242echo "$as_me: current value: $ac_new_val" >&2;} 1243 ac_cache_corrupted=: 1244 fi;; 1245 esac 1246 # Pass precious variables to config.status. 1247 if test "$ac_new_set" = set; then 1248 case $ac_new_val in 1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1250 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1251 *) ac_arg=$ac_var=$ac_new_val ;; 1252 esac 1253 case " $ac_configure_args " in 1254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1255 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1256 esac 1257 fi 1258done 1259if $ac_cache_corrupted; then 1260 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1261echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1262 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1263echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1264 { (exit 1); exit 1; }; } 1265fi 1266 1267ac_ext=c 1268ac_cpp='$CPP $CPPFLAGS' 1269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1271ac_compiler_gnu=$ac_cv_c_compiler_gnu 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299am__api_version="1.7" 1300ac_aux_dir= 1301for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1302 if test -f $ac_dir/install-sh; then 1303 ac_aux_dir=$ac_dir 1304 ac_install_sh="$ac_aux_dir/install-sh -c" 1305 break 1306 elif test -f $ac_dir/install.sh; then 1307 ac_aux_dir=$ac_dir 1308 ac_install_sh="$ac_aux_dir/install.sh -c" 1309 break 1310 elif test -f $ac_dir/shtool; then 1311 ac_aux_dir=$ac_dir 1312 ac_install_sh="$ac_aux_dir/shtool install -c" 1313 break 1314 fi 1315done 1316if test -z "$ac_aux_dir"; then 1317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1318echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1319 { (exit 1); exit 1; }; } 1320fi 1321ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1322ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1323ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1324 1325# Find a good install program. We prefer a C program (faster), 1326# so one script is as good as another. But avoid the broken or 1327# incompatible versions: 1328# SysV /etc/install, /usr/sbin/install 1329# SunOS /usr/etc/install 1330# IRIX /sbin/install 1331# AIX /bin/install 1332# AmigaOS /C/install, which installs bootblocks on floppy discs 1333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1334# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1336# ./install, which can be erroneously created by make from ./install.sh. 1337echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1338echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1339if test -z "$INSTALL"; then 1340if test "${ac_cv_path_install+set}" = set; then 1341 echo $ECHO_N "(cached) $ECHO_C" >&6 1342else 1343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1344for as_dir in $PATH 1345do 1346 IFS=$as_save_IFS 1347 test -z "$as_dir" && as_dir=. 1348 # Account for people who put trailing slashes in PATH elements. 1349case $as_dir/ in 1350 ./ | .// | /cC/* | \ 1351 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1352 /usr/ucb/* ) ;; 1353 *) 1354 # OSF1 and SCO ODT 3.0 have their own names for install. 1355 # Don't use installbsd from OSF since it installs stuff as root 1356 # by default. 1357 for ac_prog in ginstall scoinst install; do 1358 for ac_exec_ext in '' $ac_executable_extensions; do 1359 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1360 if test $ac_prog = install && 1361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1362 # AIX install. It has an incompatible calling convention. 1363 : 1364 elif test $ac_prog = install && 1365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1366 # program-specific install script used by HP pwplus--don't use. 1367 : 1368 else 1369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1370 break 3 1371 fi 1372 fi 1373 done 1374 done 1375 ;; 1376esac 1377done 1378 1379 1380fi 1381 if test "${ac_cv_path_install+set}" = set; then 1382 INSTALL=$ac_cv_path_install 1383 else 1384 # As a last resort, use the slow shell script. We don't cache a 1385 # path for INSTALL within a source directory, because that will 1386 # break other packages using the cache if that directory is 1387 # removed, or if the path is relative. 1388 INSTALL=$ac_install_sh 1389 fi 1390fi 1391echo "$as_me:$LINENO: result: $INSTALL" >&5 1392echo "${ECHO_T}$INSTALL" >&6 1393 1394# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1395# It thinks the first close brace ends the variable substitution. 1396test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1397 1398test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1399 1400test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1401 1402echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1403echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1404# Just in case 1405sleep 1 1406echo timestamp > conftest.file 1407# Do `set' in a subshell so we don't clobber the current shell's 1408# arguments. Must try -L first in case configure is actually a 1409# symlink; some systems play weird games with the mod time of symlinks 1410# (eg FreeBSD returns the mod time of the symlink's containing 1411# directory). 1412if ( 1413 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1414 if test "$*" = "X"; then 1415 # -L didn't work. 1416 set X `ls -t $srcdir/configure conftest.file` 1417 fi 1418 rm -f conftest.file 1419 if test "$*" != "X $srcdir/configure conftest.file" \ 1420 && test "$*" != "X conftest.file $srcdir/configure"; then 1421 1422 # If neither matched, then we have a broken ls. This can happen 1423 # if, for instance, CONFIG_SHELL is bash and it inherits a 1424 # broken ls alias from the environment. This has actually 1425 # happened. Such a system could not be considered "sane". 1426 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1427alias in your environment" >&5 1428echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1429alias in your environment" >&2;} 1430 { (exit 1); exit 1; }; } 1431 fi 1432 1433 test "$2" = conftest.file 1434 ) 1435then 1436 # Ok. 1437 : 1438else 1439 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1440Check your system clock" >&5 1441echo "$as_me: error: newly created file is older than distributed files! 1442Check your system clock" >&2;} 1443 { (exit 1); exit 1; }; } 1444fi 1445echo "$as_me:$LINENO: result: yes" >&5 1446echo "${ECHO_T}yes" >&6 1447test "$program_prefix" != NONE && 1448 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1449# Use a double $ so make ignores it. 1450test "$program_suffix" != NONE && 1451 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1452# Double any \ or $. echo might interpret backslashes. 1453# By default was `s,x,x', remove it if useless. 1454cat <<\_ACEOF >conftest.sed 1455s/[\\$]/&&/g;s/;s,x,x,$// 1456_ACEOF 1457program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1458rm conftest.sed 1459 1460 1461# expand $ac_aux_dir to an absolute path 1462am_aux_dir=`cd $ac_aux_dir && pwd` 1463 1464test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1465# Use eval to expand $SHELL 1466if eval "$MISSING --run true"; then 1467 am_missing_run="$MISSING --run " 1468else 1469 am_missing_run= 1470 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1471echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1472fi 1473 1474for ac_prog in gawk mawk nawk awk 1475do 1476 # Extract the first word of "$ac_prog", so it can be a program name with args. 1477set dummy $ac_prog; ac_word=$2 1478echo "$as_me:$LINENO: checking for $ac_word" >&5 1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1480if test "${ac_cv_prog_AWK+set}" = set; then 1481 echo $ECHO_N "(cached) $ECHO_C" >&6 1482else 1483 if test -n "$AWK"; then 1484 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1485else 1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1487for as_dir in $PATH 1488do 1489 IFS=$as_save_IFS 1490 test -z "$as_dir" && as_dir=. 1491 for ac_exec_ext in '' $ac_executable_extensions; do 1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1493 ac_cv_prog_AWK="$ac_prog" 1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1495 break 2 1496 fi 1497done 1498done 1499 1500fi 1501fi 1502AWK=$ac_cv_prog_AWK 1503if test -n "$AWK"; then 1504 echo "$as_me:$LINENO: result: $AWK" >&5 1505echo "${ECHO_T}$AWK" >&6 1506else 1507 echo "$as_me:$LINENO: result: no" >&5 1508echo "${ECHO_T}no" >&6 1509fi 1510 1511 test -n "$AWK" && break 1512done 1513 1514echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1515echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1516set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1517if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1518 echo $ECHO_N "(cached) $ECHO_C" >&6 1519else 1520 cat >conftest.make <<\_ACEOF 1521all: 1522 @echo 'ac_maketemp="$(MAKE)"' 1523_ACEOF 1524# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1525eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1526if test -n "$ac_maketemp"; then 1527 eval ac_cv_prog_make_${ac_make}_set=yes 1528else 1529 eval ac_cv_prog_make_${ac_make}_set=no 1530fi 1531rm -f conftest.make 1532fi 1533if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1534 echo "$as_me:$LINENO: result: yes" >&5 1535echo "${ECHO_T}yes" >&6 1536 SET_MAKE= 1537else 1538 echo "$as_me:$LINENO: result: no" >&5 1539echo "${ECHO_T}no" >&6 1540 SET_MAKE="MAKE=${MAKE-make}" 1541fi 1542 1543 # test to see if srcdir already configured 1544if test "`cd $srcdir && pwd`" != "`pwd`" && 1545 test -f $srcdir/config.status; then 1546 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1547echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1548 { (exit 1); exit 1; }; } 1549fi 1550 1551# test whether we have cygpath 1552if test -z "$CYGPATH_W"; then 1553 if (cygpath --version) >/dev/null 2>/dev/null; then 1554 CYGPATH_W='cygpath -w' 1555 else 1556 CYGPATH_W=echo 1557 fi 1558fi 1559 1560 1561# Define the identity of the package. 1562 PACKAGE=blokish 1563 VERSION=.92 1564 1565 1566cat >>confdefs.h <<_ACEOF 1567@%:@define PACKAGE "$PACKAGE" 1568_ACEOF 1569 1570 1571cat >>confdefs.h <<_ACEOF 1572@%:@define VERSION "$VERSION" 1573_ACEOF 1574 1575# Some tools Automake needs. 1576 1577ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1578 1579 1580AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1581 1582 1583AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1584 1585 1586AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1587 1588 1589MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1590 1591 1592AMTAR=${AMTAR-"${am_missing_run}tar"} 1593 1594install_sh=${install_sh-"$am_aux_dir/install-sh"} 1595 1596# Installed binaries are usually stripped using `strip' when the user 1597# run `make install-strip'. However `strip' might not be the right 1598# tool to use in cross-compilation environments, therefore Automake 1599# will honor the `STRIP' environment variable to overrule this program. 1600if test "$cross_compiling" != no; then 1601 if test -n "$ac_tool_prefix"; then 1602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1603set dummy ${ac_tool_prefix}strip; ac_word=$2 1604echo "$as_me:$LINENO: checking for $ac_word" >&5 1605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1606if test "${ac_cv_prog_STRIP+set}" = set; then 1607 echo $ECHO_N "(cached) $ECHO_C" >&6 1608else 1609 if test -n "$STRIP"; then 1610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1611else 1612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1613for as_dir in $PATH 1614do 1615 IFS=$as_save_IFS 1616 test -z "$as_dir" && as_dir=. 1617 for ac_exec_ext in '' $ac_executable_extensions; do 1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1619 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1621 break 2 1622 fi 1623done 1624done 1625 1626fi 1627fi 1628STRIP=$ac_cv_prog_STRIP 1629if test -n "$STRIP"; then 1630 echo "$as_me:$LINENO: result: $STRIP" >&5 1631echo "${ECHO_T}$STRIP" >&6 1632else 1633 echo "$as_me:$LINENO: result: no" >&5 1634echo "${ECHO_T}no" >&6 1635fi 1636 1637fi 1638if test -z "$ac_cv_prog_STRIP"; then 1639 ac_ct_STRIP=$STRIP 1640 # Extract the first word of "strip", so it can be a program name with args. 1641set dummy strip; ac_word=$2 1642echo "$as_me:$LINENO: checking for $ac_word" >&5 1643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1644if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1645 echo $ECHO_N "(cached) $ECHO_C" >&6 1646else 1647 if test -n "$ac_ct_STRIP"; then 1648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1649else 1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1651for as_dir in $PATH 1652do 1653 IFS=$as_save_IFS 1654 test -z "$as_dir" && as_dir=. 1655 for ac_exec_ext in '' $ac_executable_extensions; do 1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1657 ac_cv_prog_ac_ct_STRIP="strip" 1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1659 break 2 1660 fi 1661done 1662done 1663 1664 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1665fi 1666fi 1667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1668if test -n "$ac_ct_STRIP"; then 1669 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1670echo "${ECHO_T}$ac_ct_STRIP" >&6 1671else 1672 echo "$as_me:$LINENO: result: no" >&5 1673echo "${ECHO_T}no" >&6 1674fi 1675 1676 STRIP=$ac_ct_STRIP 1677else 1678 STRIP="$ac_cv_prog_STRIP" 1679fi 1680 1681fi 1682INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1683 1684# We need awk for the "check" target. The system "awk" is bad on 1685# some platforms. 1686 1687 1688 1689 1690 ac_config_headers="$ac_config_headers config.h" 1691 1692 1693# Checks for programs. 1694ac_ext=cc 1695ac_cpp='$CXXCPP $CPPFLAGS' 1696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1699if test -n "$ac_tool_prefix"; then 1700 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1701 do 1702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1703set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1704echo "$as_me:$LINENO: checking for $ac_word" >&5 1705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1706if test "${ac_cv_prog_CXX+set}" = set; then 1707 echo $ECHO_N "(cached) $ECHO_C" >&6 1708else 1709 if test -n "$CXX"; then 1710 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1711else 1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1713for as_dir in $PATH 1714do 1715 IFS=$as_save_IFS 1716 test -z "$as_dir" && as_dir=. 1717 for ac_exec_ext in '' $ac_executable_extensions; do 1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1719 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1721 break 2 1722 fi 1723done 1724done 1725 1726fi 1727fi 1728CXX=$ac_cv_prog_CXX 1729if test -n "$CXX"; then 1730 echo "$as_me:$LINENO: result: $CXX" >&5 1731echo "${ECHO_T}$CXX" >&6 1732else 1733 echo "$as_me:$LINENO: result: no" >&5 1734echo "${ECHO_T}no" >&6 1735fi 1736 1737 test -n "$CXX" && break 1738 done 1739fi 1740if test -z "$CXX"; then 1741 ac_ct_CXX=$CXX 1742 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1743do 1744 # Extract the first word of "$ac_prog", so it can be a program name with args. 1745set dummy $ac_prog; ac_word=$2 1746echo "$as_me:$LINENO: checking for $ac_word" >&5 1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1748if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1749 echo $ECHO_N "(cached) $ECHO_C" >&6 1750else 1751 if test -n "$ac_ct_CXX"; then 1752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1753else 1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1755for as_dir in $PATH 1756do 1757 IFS=$as_save_IFS 1758 test -z "$as_dir" && as_dir=. 1759 for ac_exec_ext in '' $ac_executable_extensions; do 1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1761 ac_cv_prog_ac_ct_CXX="$ac_prog" 1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1763 break 2 1764 fi 1765done 1766done 1767 1768fi 1769fi 1770ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1771if test -n "$ac_ct_CXX"; then 1772 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1773echo "${ECHO_T}$ac_ct_CXX" >&6 1774else 1775 echo "$as_me:$LINENO: result: no" >&5 1776echo "${ECHO_T}no" >&6 1777fi 1778 1779 test -n "$ac_ct_CXX" && break 1780done 1781test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1782 1783 CXX=$ac_ct_CXX 1784fi 1785 1786 1787# Provide some information about the compiler. 1788echo "$as_me:$LINENO:" \ 1789 "checking for C++ compiler version" >&5 1790ac_compiler=`set X $ac_compile; echo $2` 1791{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1792 (eval $ac_compiler --version </dev/null >&5) 2>&5 1793 ac_status=$? 1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1795 (exit $ac_status); } 1796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1797 (eval $ac_compiler -v </dev/null >&5) 2>&5 1798 ac_status=$? 1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1800 (exit $ac_status); } 1801{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1802 (eval $ac_compiler -V </dev/null >&5) 2>&5 1803 ac_status=$? 1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1805 (exit $ac_status); } 1806 1807cat >conftest.$ac_ext <<_ACEOF 1808#line $LINENO "configure" 1809/* confdefs.h. */ 1810_ACEOF 1811cat confdefs.h >>conftest.$ac_ext 1812cat >>conftest.$ac_ext <<_ACEOF 1813/* end confdefs.h. */ 1814 1815int 1816main () 1817{ 1818 1819 ; 1820 return 0; 1821} 1822_ACEOF 1823ac_clean_files_save=$ac_clean_files 1824ac_clean_files="$ac_clean_files a.out a.exe b.out" 1825# Try to create an executable without -o first, disregard a.out. 1826# It will help us diagnose broken compilers, and finding out an intuition 1827# of exeext. 1828echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 1829echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 1830ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1831if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1832 (eval $ac_link_default) 2>&5 1833 ac_status=$? 1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1835 (exit $ac_status); }; then 1836 # Find the output, starting from the most likely. This scheme is 1837# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1838# resort. 1839 1840# Be careful to initialize this variable, since it used to be cached. 1841# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1842ac_cv_exeext= 1843# b.out is created by i960 compilers. 1844for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1845do 1846 test -f "$ac_file" || continue 1847 case $ac_file in 1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1849 ;; 1850 conftest.$ac_ext ) 1851 # This is the source file. 1852 ;; 1853 [ab].out ) 1854 # We found the default executable, but exeext='' is most 1855 # certainly right. 1856 break;; 1857 *.* ) 1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1859 # FIXME: I believe we export ac_cv_exeext for Libtool, 1860 # but it would be cool to find out if it's true. Does anybody 1861 # maintain Libtool? --akim. 1862 export ac_cv_exeext 1863 break;; 1864 * ) 1865 break;; 1866 esac 1867done 1868else 1869 echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1873See \`config.log' for more details." >&5 1874echo "$as_me: error: C++ compiler cannot create executables 1875See \`config.log' for more details." >&2;} 1876 { (exit 77); exit 77; }; } 1877fi 1878 1879ac_exeext=$ac_cv_exeext 1880echo "$as_me:$LINENO: result: $ac_file" >&5 1881echo "${ECHO_T}$ac_file" >&6 1882 1883# Check the compiler produces executables we can run. If not, either 1884# the compiler is broken, or we cross compile. 1885echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1886echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1887# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1888# If not cross compiling, check that we can run a simple program. 1889if test "$cross_compiling" != yes; then 1890 if { ac_try='./$ac_file' 1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1892 (eval $ac_try) 2>&5 1893 ac_status=$? 1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1895 (exit $ac_status); }; }; then 1896 cross_compiling=no 1897 else 1898 if test "$cross_compiling" = maybe; then 1899 cross_compiling=yes 1900 else 1901 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1902If you meant to cross compile, use \`--host'. 1903See \`config.log' for more details." >&5 1904echo "$as_me: error: cannot run C++ compiled programs. 1905If you meant to cross compile, use \`--host'. 1906See \`config.log' for more details." >&2;} 1907 { (exit 1); exit 1; }; } 1908 fi 1909 fi 1910fi 1911echo "$as_me:$LINENO: result: yes" >&5 1912echo "${ECHO_T}yes" >&6 1913 1914rm -f a.out a.exe conftest$ac_cv_exeext b.out 1915ac_clean_files=$ac_clean_files_save 1916# Check the compiler produces executables we can run. If not, either 1917# the compiler is broken, or we cross compile. 1918echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1920echo "$as_me:$LINENO: result: $cross_compiling" >&5 1921echo "${ECHO_T}$cross_compiling" >&6 1922 1923echo "$as_me:$LINENO: checking for suffix of executables" >&5 1924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1926 (eval $ac_link) 2>&5 1927 ac_status=$? 1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1929 (exit $ac_status); }; then 1930 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1932# work properly (i.e., refer to `conftest.exe'), while it won't with 1933# `rm'. 1934for ac_file in conftest.exe conftest conftest.*; do 1935 test -f "$ac_file" || continue 1936 case $ac_file in 1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1939 export ac_cv_exeext 1940 break;; 1941 * ) break;; 1942 esac 1943done 1944else 1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1946See \`config.log' for more details." >&5 1947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1948See \`config.log' for more details." >&2;} 1949 { (exit 1); exit 1; }; } 1950fi 1951 1952rm -f conftest$ac_cv_exeext 1953echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1954echo "${ECHO_T}$ac_cv_exeext" >&6 1955 1956rm -f conftest.$ac_ext 1957EXEEXT=$ac_cv_exeext 1958ac_exeext=$EXEEXT 1959echo "$as_me:$LINENO: checking for suffix of object files" >&5 1960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1961if test "${ac_cv_objext+set}" = set; then 1962 echo $ECHO_N "(cached) $ECHO_C" >&6 1963else 1964 cat >conftest.$ac_ext <<_ACEOF 1965#line $LINENO "configure" 1966/* confdefs.h. */ 1967_ACEOF 1968cat confdefs.h >>conftest.$ac_ext 1969cat >>conftest.$ac_ext <<_ACEOF 1970/* end confdefs.h. */ 1971 1972int 1973main () 1974{ 1975 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980rm -f conftest.o conftest.obj 1981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1982 (eval $ac_compile) 2>&5 1983 ac_status=$? 1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1985 (exit $ac_status); }; then 1986 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1987 case $ac_file in 1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1990 break;; 1991 esac 1992done 1993else 1994 echo "$as_me: failed program was:" >&5 1995sed 's/^/| /' conftest.$ac_ext >&5 1996 1997{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1998See \`config.log' for more details." >&5 1999echo "$as_me: error: cannot compute suffix of object files: cannot compile 2000See \`config.log' for more details." >&2;} 2001 { (exit 1); exit 1; }; } 2002fi 2003 2004rm -f conftest.$ac_cv_objext conftest.$ac_ext 2005fi 2006echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2007echo "${ECHO_T}$ac_cv_objext" >&6 2008OBJEXT=$ac_cv_objext 2009ac_objext=$OBJEXT 2010echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2011echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2012if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2013 echo $ECHO_N "(cached) $ECHO_C" >&6 2014else 2015 cat >conftest.$ac_ext <<_ACEOF 2016#line $LINENO "configure" 2017/* confdefs.h. */ 2018_ACEOF 2019cat confdefs.h >>conftest.$ac_ext 2020cat >>conftest.$ac_ext <<_ACEOF 2021/* end confdefs.h. */ 2022 2023int 2024main () 2025{ 2026#ifndef __GNUC__ 2027 choke me 2028#endif 2029 2030 ; 2031 return 0; 2032} 2033_ACEOF 2034rm -f conftest.$ac_objext 2035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2036 (eval $ac_compile) 2>&5 2037 ac_status=$? 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2039 (exit $ac_status); } && 2040 { ac_try='test -s conftest.$ac_objext' 2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2042 (eval $ac_try) 2>&5 2043 ac_status=$? 2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2045 (exit $ac_status); }; }; then 2046 ac_compiler_gnu=yes 2047else 2048 echo "$as_me: failed program was:" >&5 2049sed 's/^/| /' conftest.$ac_ext >&5 2050 2051ac_compiler_gnu=no 2052fi 2053rm -f conftest.$ac_objext conftest.$ac_ext 2054ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2055 2056fi 2057echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2058echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2059GXX=`test $ac_compiler_gnu = yes && echo yes` 2060ac_test_CXXFLAGS=${CXXFLAGS+set} 2061ac_save_CXXFLAGS=$CXXFLAGS 2062CXXFLAGS="-g" 2063echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2064echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2065if test "${ac_cv_prog_cxx_g+set}" = set; then 2066 echo $ECHO_N "(cached) $ECHO_C" >&6 2067else 2068 cat >conftest.$ac_ext <<_ACEOF 2069#line $LINENO "configure" 2070/* confdefs.h. */ 2071_ACEOF 2072cat confdefs.h >>conftest.$ac_ext 2073cat >>conftest.$ac_ext <<_ACEOF 2074/* end confdefs.h. */ 2075 2076int 2077main () 2078{ 2079 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084rm -f conftest.$ac_objext 2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2086 (eval $ac_compile) 2>&5 2087 ac_status=$? 2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2089 (exit $ac_status); } && 2090 { ac_try='test -s conftest.$ac_objext' 2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2092 (eval $ac_try) 2>&5 2093 ac_status=$? 2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2095 (exit $ac_status); }; }; then 2096 ac_cv_prog_cxx_g=yes 2097else 2098 echo "$as_me: failed program was:" >&5 2099sed 's/^/| /' conftest.$ac_ext >&5 2100 2101ac_cv_prog_cxx_g=no 2102fi 2103rm -f conftest.$ac_objext conftest.$ac_ext 2104fi 2105echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2106echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2107if test "$ac_test_CXXFLAGS" = set; then 2108 CXXFLAGS=$ac_save_CXXFLAGS 2109elif test $ac_cv_prog_cxx_g = yes; then 2110 if test "$GXX" = yes; then 2111 CXXFLAGS="-g -O2" 2112 else 2113 CXXFLAGS="-g" 2114 fi 2115else 2116 if test "$GXX" = yes; then 2117 CXXFLAGS="-O2" 2118 else 2119 CXXFLAGS= 2120 fi 2121fi 2122for ac_declaration in \ 2123 ''\ 2124 '#include <stdlib.h>' \ 2125 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2126 'extern "C" void std::exit (int); using std::exit;' \ 2127 'extern "C" void exit (int) throw ();' \ 2128 'extern "C" void exit (int);' \ 2129 'void exit (int);' 2130do 2131 cat >conftest.$ac_ext <<_ACEOF 2132#line $LINENO "configure" 2133/* confdefs.h. */ 2134_ACEOF 2135cat confdefs.h >>conftest.$ac_ext 2136cat >>conftest.$ac_ext <<_ACEOF 2137/* end confdefs.h. */ 2138@%:@include <stdlib.h> 2139$ac_declaration 2140int 2141main () 2142{ 2143exit (42); 2144 ; 2145 return 0; 2146} 2147_ACEOF 2148rm -f conftest.$ac_objext 2149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2150 (eval $ac_compile) 2>&5 2151 ac_status=$? 2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2153 (exit $ac_status); } && 2154 { ac_try='test -s conftest.$ac_objext' 2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2156 (eval $ac_try) 2>&5 2157 ac_status=$? 2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2159 (exit $ac_status); }; }; then 2160 : 2161else 2162 echo "$as_me: failed program was:" >&5 2163sed 's/^/| /' conftest.$ac_ext >&5 2164 2165continue 2166fi 2167rm -f conftest.$ac_objext conftest.$ac_ext 2168 cat >conftest.$ac_ext <<_ACEOF 2169#line $LINENO "configure" 2170/* confdefs.h. */ 2171_ACEOF 2172cat confdefs.h >>conftest.$ac_ext 2173cat >>conftest.$ac_ext <<_ACEOF 2174/* end confdefs.h. */ 2175$ac_declaration 2176int 2177main () 2178{ 2179exit (42); 2180 ; 2181 return 0; 2182} 2183_ACEOF 2184rm -f conftest.$ac_objext 2185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2186 (eval $ac_compile) 2>&5 2187 ac_status=$? 2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2189 (exit $ac_status); } && 2190 { ac_try='test -s conftest.$ac_objext' 2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2192 (eval $ac_try) 2>&5 2193 ac_status=$? 2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2195 (exit $ac_status); }; }; then 2196 break 2197else 2198 echo "$as_me: failed program was:" >&5 2199sed 's/^/| /' conftest.$ac_ext >&5 2200 2201fi 2202rm -f conftest.$ac_objext conftest.$ac_ext 2203done 2204rm -f conftest* 2205if test -n "$ac_declaration"; then 2206 echo '#ifdef __cplusplus' >>confdefs.h 2207 echo $ac_declaration >>confdefs.h 2208 echo '#endif' >>confdefs.h 2209fi 2210 2211ac_ext=c 2212ac_cpp='$CPP $CPPFLAGS' 2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2215ac_compiler_gnu=$ac_cv_c_compiler_gnu 2216rm -f .deps 2>/dev/null 2217mkdir .deps 2>/dev/null 2218if test -d .deps; then 2219 DEPDIR=.deps 2220else 2221 # MS-DOS does not allow filenames that begin with a dot. 2222 DEPDIR=_deps 2223fi 2224rmdir .deps 2>/dev/null 2225 2226 2227 ac_config_commands="$ac_config_commands depfiles" 2228 2229 2230am_make=${MAKE-make} 2231cat > confinc << 'END' 2232doit: 2233 @echo done 2234END 2235# If we don't find an include directive, just comment out the code. 2236echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2237echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2238am__include="#" 2239am__quote= 2240_am_result=none 2241# First try GNU make style include. 2242echo "include confinc" > confmf 2243# We grep out `Entering directory' and `Leaving directory' 2244# messages which can occur if `w' ends up in MAKEFLAGS. 2245# In particular we don't look at `^make:' because GNU make might 2246# be invoked under some other name (usually "gmake"), in which 2247# case it prints its new name instead of `make'. 2248if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2249 am__include=include 2250 am__quote= 2251 _am_result=GNU 2252fi 2253# Now try BSD make style include. 2254if test "$am__include" = "#"; then 2255 echo '.include "confinc"' > confmf 2256 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2257 am__include=.include 2258 am__quote="\"" 2259 _am_result=BSD 2260 fi 2261fi 2262 2263 2264echo "$as_me:$LINENO: result: $_am_result" >&5 2265echo "${ECHO_T}$_am_result" >&6 2266rm -f confinc confmf 2267 2268# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2269if test "${enable_dependency_tracking+set}" = set; then 2270 enableval="$enable_dependency_tracking" 2271 2272fi; 2273if test "x$enable_dependency_tracking" != xno; then 2274 am_depcomp="$ac_aux_dir/depcomp" 2275 AMDEPBACKSLASH='\' 2276fi 2277 2278 2279if test "x$enable_dependency_tracking" != xno; then 2280 AMDEP_TRUE= 2281 AMDEP_FALSE='#' 2282else 2283 AMDEP_TRUE='#' 2284 AMDEP_FALSE= 2285fi 2286 2287 2288 2289 2290depcc="$CXX" am_compiler_list= 2291 2292echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2293echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2294if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2298 # We make a subdir and do the tests there. Otherwise we can end up 2299 # making bogus files that we don't know about and never remove. For 2300 # instance it was reported that on HP-UX the gcc test will end up 2301 # making a dummy file named `D' -- because `-MD' means `put the output 2302 # in D'. 2303 mkdir conftest.dir 2304 # Copy depcomp to subdir because otherwise we won't find it if we're 2305 # using a relative directory. 2306 cp "$am_depcomp" conftest.dir 2307 cd conftest.dir 2308 2309 am_cv_CXX_dependencies_compiler_type=none 2310 if test "$am_compiler_list" = ""; then 2311 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2312 fi 2313 for depmode in $am_compiler_list; do 2314 # We need to recreate these files for each test, as the compiler may 2315 # overwrite some of them when testing with obscure command lines. 2316 # This happens at least with the AIX C compiler. 2317 echo '#include "conftest.h"' > conftest.c 2318 echo 'int i;' > conftest.h 2319 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2320 2321 case $depmode in 2322 nosideeffect) 2323 # after this tag, mechanisms are not by side-effect, so they'll 2324 # only be used when explicitly requested 2325 if test "x$enable_dependency_tracking" = xyes; then 2326 continue 2327 else 2328 break 2329 fi 2330 ;; 2331 none) break ;; 2332 esac 2333 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2334 # mode. It turns out that the SunPro C++ compiler does not properly 2335 # handle `-M -o', and we need to detect this. 2336 if depmode=$depmode \ 2337 source=conftest.c object=conftest.o \ 2338 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2339 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 && 2340 grep conftest.h conftest.Po > /dev/null 2>&1 && 2341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2342 am_cv_CXX_dependencies_compiler_type=$depmode 2343 break 2344 fi 2345 done 2346 2347 cd .. 2348 rm -rf conftest.dir 2349else 2350 am_cv_CXX_dependencies_compiler_type=none 2351fi 2352 2353fi 2354echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 2355echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2356CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 2357 2358 2359 2360if 2361 test "x$enable_dependency_tracking" != xno \ 2362 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 2363 am__fastdepCXX_TRUE= 2364 am__fastdepCXX_FALSE='#' 2365else 2366 am__fastdepCXX_TRUE='#' 2367 am__fastdepCXX_FALSE= 2368fi 2369 2370 2371ac_ext=c 2372ac_cpp='$CPP $CPPFLAGS' 2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2375ac_compiler_gnu=$ac_cv_c_compiler_gnu 2376if test -n "$ac_tool_prefix"; then 2377 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2378set dummy ${ac_tool_prefix}gcc; ac_word=$2 2379echo "$as_me:$LINENO: checking for $ac_word" >&5 2380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2381if test "${ac_cv_prog_CC+set}" = set; then 2382 echo $ECHO_N "(cached) $ECHO_C" >&6 2383else 2384 if test -n "$CC"; then 2385 ac_cv_prog_CC="$CC" # Let the user override the test. 2386else 2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2388for as_dir in $PATH 2389do 2390 IFS=$as_save_IFS 2391 test -z "$as_dir" && as_dir=. 2392 for ac_exec_ext in '' $ac_executable_extensions; do 2393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2394 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2396 break 2 2397 fi 2398done 2399done 2400 2401fi 2402fi 2403CC=$ac_cv_prog_CC 2404if test -n "$CC"; then 2405 echo "$as_me:$LINENO: result: $CC" >&5 2406echo "${ECHO_T}$CC" >&6 2407else 2408 echo "$as_me:$LINENO: result: no" >&5 2409echo "${ECHO_T}no" >&6 2410fi 2411 2412fi 2413if test -z "$ac_cv_prog_CC"; then 2414 ac_ct_CC=$CC 2415 # Extract the first word of "gcc", so it can be a program name with args. 2416set dummy gcc; ac_word=$2 2417echo "$as_me:$LINENO: checking for $ac_word" >&5 2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421else 2422 if test -n "$ac_ct_CC"; then 2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2424else 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426for as_dir in $PATH 2427do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2432 ac_cv_prog_ac_ct_CC="gcc" 2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2434 break 2 2435 fi 2436done 2437done 2438 2439fi 2440fi 2441ac_ct_CC=$ac_cv_prog_ac_ct_CC 2442if test -n "$ac_ct_CC"; then 2443 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2444echo "${ECHO_T}$ac_ct_CC" >&6 2445else 2446 echo "$as_me:$LINENO: result: no" >&5 2447echo "${ECHO_T}no" >&6 2448fi 2449 2450 CC=$ac_ct_CC 2451else 2452 CC="$ac_cv_prog_CC" 2453fi 2454 2455if test -z "$CC"; then 2456 if test -n "$ac_tool_prefix"; then 2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2458set dummy ${ac_tool_prefix}cc; ac_word=$2 2459echo "$as_me:$LINENO: checking for $ac_word" >&5 2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2461if test "${ac_cv_prog_CC+set}" = set; then 2462 echo $ECHO_N "(cached) $ECHO_C" >&6 2463else 2464 if test -n "$CC"; then 2465 ac_cv_prog_CC="$CC" # Let the user override the test. 2466else 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_exec_ext in '' $ac_executable_extensions; do 2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2474 ac_cv_prog_CC="${ac_tool_prefix}cc" 2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2476 break 2 2477 fi 2478done 2479done 2480 2481fi 2482fi 2483CC=$ac_cv_prog_CC 2484if test -n "$CC"; then 2485 echo "$as_me:$LINENO: result: $CC" >&5 2486echo "${ECHO_T}$CC" >&6 2487else 2488 echo "$as_me:$LINENO: result: no" >&5 2489echo "${ECHO_T}no" >&6 2490fi 2491 2492fi 2493if test -z "$ac_cv_prog_CC"; then 2494 ac_ct_CC=$CC 2495 # Extract the first word of "cc", so it can be a program name with args. 2496set dummy cc; ac_word=$2 2497echo "$as_me:$LINENO: checking for $ac_word" >&5 2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2499if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 if test -n "$ac_ct_CC"; then 2503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2512 ac_cv_prog_ac_ct_CC="cc" 2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517done 2518 2519fi 2520fi 2521ac_ct_CC=$ac_cv_prog_ac_ct_CC 2522if test -n "$ac_ct_CC"; then 2523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2524echo "${ECHO_T}$ac_ct_CC" >&6 2525else 2526 echo "$as_me:$LINENO: result: no" >&5 2527echo "${ECHO_T}no" >&6 2528fi 2529 2530 CC=$ac_ct_CC 2531else 2532 CC="$ac_cv_prog_CC" 2533fi 2534 2535fi 2536if test -z "$CC"; then 2537 # Extract the first word of "cc", so it can be a program name with args. 2538set dummy cc; ac_word=$2 2539echo "$as_me:$LINENO: checking for $ac_word" >&5 2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2541if test "${ac_cv_prog_CC+set}" = set; then 2542 echo $ECHO_N "(cached) $ECHO_C" >&6 2543else 2544 if test -n "$CC"; then 2545 ac_cv_prog_CC="$CC" # Let the user override the test. 2546else 2547 ac_prog_rejected=no 2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2556 ac_prog_rejected=yes 2557 continue 2558 fi 2559 ac_cv_prog_CC="cc" 2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2561 break 2 2562 fi 2563done 2564done 2565 2566if test $ac_prog_rejected = yes; then 2567 # We found a bogon in the path, so make sure we never use it. 2568 set dummy $ac_cv_prog_CC 2569 shift 2570 if test $@%:@ != 0; then 2571 # We chose a different compiler from the bogus one. 2572 # However, it has the same basename, so the bogon will be chosen 2573 # first if we set CC to just the basename; use the full file name. 2574 shift 2575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2576 fi 2577fi 2578fi 2579fi 2580CC=$ac_cv_prog_CC 2581if test -n "$CC"; then 2582 echo "$as_me:$LINENO: result: $CC" >&5 2583echo "${ECHO_T}$CC" >&6 2584else 2585 echo "$as_me:$LINENO: result: no" >&5 2586echo "${ECHO_T}no" >&6 2587fi 2588 2589fi 2590if test -z "$CC"; then 2591 if test -n "$ac_tool_prefix"; then 2592 for ac_prog in cl 2593 do 2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2596echo "$as_me:$LINENO: checking for $ac_word" >&5 2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2598if test "${ac_cv_prog_CC+set}" = set; then 2599 echo $ECHO_N "(cached) $ECHO_C" >&6 2600else 2601 if test -n "$CC"; then 2602 ac_cv_prog_CC="$CC" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616done 2617 2618fi 2619fi 2620CC=$ac_cv_prog_CC 2621if test -n "$CC"; then 2622 echo "$as_me:$LINENO: result: $CC" >&5 2623echo "${ECHO_T}$CC" >&6 2624else 2625 echo "$as_me:$LINENO: result: no" >&5 2626echo "${ECHO_T}no" >&6 2627fi 2628 2629 test -n "$CC" && break 2630 done 2631fi 2632if test -z "$CC"; then 2633 ac_ct_CC=$CC 2634 for ac_prog in cl 2635do 2636 # Extract the first word of "$ac_prog", so it can be a program name with args. 2637set dummy $ac_prog; ac_word=$2 2638echo "$as_me:$LINENO: checking for $ac_word" >&5 2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2641 echo $ECHO_N "(cached) $ECHO_C" >&6 2642else 2643 if test -n "$ac_ct_CC"; then 2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_ac_ct_CC="$ac_prog" 2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658done 2659 2660fi 2661fi 2662ac_ct_CC=$ac_cv_prog_ac_ct_CC 2663if test -n "$ac_ct_CC"; then 2664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2665echo "${ECHO_T}$ac_ct_CC" >&6 2666else 2667 echo "$as_me:$LINENO: result: no" >&5 2668echo "${ECHO_T}no" >&6 2669fi 2670 2671 test -n "$ac_ct_CC" && break 2672done 2673 2674 CC=$ac_ct_CC 2675fi 2676 2677fi 2678 2679 2680test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2681See \`config.log' for more details." >&5 2682echo "$as_me: error: no acceptable C compiler found in \$PATH 2683See \`config.log' for more details." >&2;} 2684 { (exit 1); exit 1; }; } 2685 2686# Provide some information about the compiler. 2687echo "$as_me:$LINENO:" \ 2688 "checking for C compiler version" >&5 2689ac_compiler=`set X $ac_compile; echo $2` 2690{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2691 (eval $ac_compiler --version </dev/null >&5) 2>&5 2692 ac_status=$? 2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2694 (exit $ac_status); } 2695{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2696 (eval $ac_compiler -v </dev/null >&5) 2>&5 2697 ac_status=$? 2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2699 (exit $ac_status); } 2700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2701 (eval $ac_compiler -V </dev/null >&5) 2>&5 2702 ac_status=$? 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); } 2705 2706echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2707echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2708if test "${ac_cv_c_compiler_gnu+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 cat >conftest.$ac_ext <<_ACEOF 2712#line $LINENO "configure" 2713/* confdefs.h. */ 2714_ACEOF 2715cat confdefs.h >>conftest.$ac_ext 2716cat >>conftest.$ac_ext <<_ACEOF 2717/* end confdefs.h. */ 2718 2719int 2720main () 2721{ 2722#ifndef __GNUC__ 2723 choke me 2724#endif 2725 2726 ; 2727 return 0; 2728} 2729_ACEOF 2730rm -f conftest.$ac_objext 2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2732 (eval $ac_compile) 2>&5 2733 ac_status=$? 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); } && 2736 { ac_try='test -s conftest.$ac_objext' 2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2738 (eval $ac_try) 2>&5 2739 ac_status=$? 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741 (exit $ac_status); }; }; then 2742 ac_compiler_gnu=yes 2743else 2744 echo "$as_me: failed program was:" >&5 2745sed 's/^/| /' conftest.$ac_ext >&5 2746 2747ac_compiler_gnu=no 2748fi 2749rm -f conftest.$ac_objext conftest.$ac_ext 2750ac_cv_c_compiler_gnu=$ac_compiler_gnu 2751 2752fi 2753echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2754echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2755GCC=`test $ac_compiler_gnu = yes && echo yes` 2756ac_test_CFLAGS=${CFLAGS+set} 2757ac_save_CFLAGS=$CFLAGS 2758CFLAGS="-g" 2759echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2760echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2761if test "${ac_cv_prog_cc_g+set}" = set; then 2762 echo $ECHO_N "(cached) $ECHO_C" >&6 2763else 2764 cat >conftest.$ac_ext <<_ACEOF 2765#line $LINENO "configure" 2766/* confdefs.h. */ 2767_ACEOF 2768cat confdefs.h >>conftest.$ac_ext 2769cat >>conftest.$ac_ext <<_ACEOF 2770/* end confdefs.h. */ 2771 2772int 2773main () 2774{ 2775 2776 ; 2777 return 0; 2778} 2779_ACEOF 2780rm -f conftest.$ac_objext 2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2782 (eval $ac_compile) 2>&5 2783 ac_status=$? 2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2785 (exit $ac_status); } && 2786 { ac_try='test -s conftest.$ac_objext' 2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2788 (eval $ac_try) 2>&5 2789 ac_status=$? 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2791 (exit $ac_status); }; }; then 2792 ac_cv_prog_cc_g=yes 2793else 2794 echo "$as_me: failed program was:" >&5 2795sed 's/^/| /' conftest.$ac_ext >&5 2796 2797ac_cv_prog_cc_g=no 2798fi 2799rm -f conftest.$ac_objext conftest.$ac_ext 2800fi 2801echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2802echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2803if test "$ac_test_CFLAGS" = set; then 2804 CFLAGS=$ac_save_CFLAGS 2805elif test $ac_cv_prog_cc_g = yes; then 2806 if test "$GCC" = yes; then 2807 CFLAGS="-g -O2" 2808 else 2809 CFLAGS="-g" 2810 fi 2811else 2812 if test "$GCC" = yes; then 2813 CFLAGS="-O2" 2814 else 2815 CFLAGS= 2816 fi 2817fi 2818echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2819echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2820if test "${ac_cv_prog_cc_stdc+set}" = set; then 2821 echo $ECHO_N "(cached) $ECHO_C" >&6 2822else 2823 ac_cv_prog_cc_stdc=no 2824ac_save_CC=$CC 2825cat >conftest.$ac_ext <<_ACEOF 2826#line $LINENO "configure" 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832#include <stdarg.h> 2833#include <stdio.h> 2834#include <sys/types.h> 2835#include <sys/stat.h> 2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2837struct buf { int x; }; 2838FILE * (*rcsopen) (struct buf *, struct stat *, int); 2839static char *e (p, i) 2840 char **p; 2841 int i; 2842{ 2843 return p[i]; 2844} 2845static char *f (char * (*g) (char **, int), char **p, ...) 2846{ 2847 char *s; 2848 va_list v; 2849 va_start (v,p); 2850 s = g (p, va_arg (v,int)); 2851 va_end (v); 2852 return s; 2853} 2854int test (int i, double x); 2855struct s1 {int (*f) (int a);}; 2856struct s2 {int (*f) (double a);}; 2857int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2858int argc; 2859char **argv; 2860int 2861main () 2862{ 2863return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2864 ; 2865 return 0; 2866} 2867_ACEOF 2868# Don't try gcc -ansi; that turns off useful extensions and 2869# breaks some systems' header files. 2870# AIX -qlanglvl=ansi 2871# Ultrix and OSF/1 -std1 2872# HP-UX 10.20 and later -Ae 2873# HP-UX older versions -Aa -D_HPUX_SOURCE 2874# SVR4 -Xc -D__EXTENSIONS__ 2875for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2876do 2877 CC="$ac_save_CC $ac_arg" 2878 rm -f conftest.$ac_objext 2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2880 (eval $ac_compile) 2>&5 2881 ac_status=$? 2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2883 (exit $ac_status); } && 2884 { ac_try='test -s conftest.$ac_objext' 2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2886 (eval $ac_try) 2>&5 2887 ac_status=$? 2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); }; }; then 2890 ac_cv_prog_cc_stdc=$ac_arg 2891break 2892else 2893 echo "$as_me: failed program was:" >&5 2894sed 's/^/| /' conftest.$ac_ext >&5 2895 2896fi 2897rm -f conftest.$ac_objext 2898done 2899rm -f conftest.$ac_ext conftest.$ac_objext 2900CC=$ac_save_CC 2901 2902fi 2903 2904case "x$ac_cv_prog_cc_stdc" in 2905 x|xno) 2906 echo "$as_me:$LINENO: result: none needed" >&5 2907echo "${ECHO_T}none needed" >&6 ;; 2908 *) 2909 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2910echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2911 CC="$CC $ac_cv_prog_cc_stdc" ;; 2912esac 2913 2914# Some people use a C++ compiler to compile C. Since we use `exit', 2915# in C++ we need to declare it. In case someone uses the same compiler 2916# for both compiling C and C++ we need to have the C++ compiler decide 2917# the declaration of exit, since it's the most demanding environment. 2918cat >conftest.$ac_ext <<_ACEOF 2919@%:@ifndef __cplusplus 2920 choke me 2921@%:@endif 2922_ACEOF 2923rm -f conftest.$ac_objext 2924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2925 (eval $ac_compile) 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); } && 2929 { ac_try='test -s conftest.$ac_objext' 2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2931 (eval $ac_try) 2>&5 2932 ac_status=$? 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); }; }; then 2935 for ac_declaration in \ 2936 ''\ 2937 '#include <stdlib.h>' \ 2938 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2939 'extern "C" void std::exit (int); using std::exit;' \ 2940 'extern "C" void exit (int) throw ();' \ 2941 'extern "C" void exit (int);' \ 2942 'void exit (int);' 2943do 2944 cat >conftest.$ac_ext <<_ACEOF 2945#line $LINENO "configure" 2946/* confdefs.h. */ 2947_ACEOF 2948cat confdefs.h >>conftest.$ac_ext 2949cat >>conftest.$ac_ext <<_ACEOF 2950/* end confdefs.h. */ 2951@%:@include <stdlib.h> 2952$ac_declaration 2953int 2954main () 2955{ 2956exit (42); 2957 ; 2958 return 0; 2959} 2960_ACEOF 2961rm -f conftest.$ac_objext 2962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2963 (eval $ac_compile) 2>&5 2964 ac_status=$? 2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); } && 2967 { ac_try='test -s conftest.$ac_objext' 2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2969 (eval $ac_try) 2>&5 2970 ac_status=$? 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); }; }; then 2973 : 2974else 2975 echo "$as_me: failed program was:" >&5 2976sed 's/^/| /' conftest.$ac_ext >&5 2977 2978continue 2979fi 2980rm -f conftest.$ac_objext conftest.$ac_ext 2981 cat >conftest.$ac_ext <<_ACEOF 2982#line $LINENO "configure" 2983/* confdefs.h. */ 2984_ACEOF 2985cat confdefs.h >>conftest.$ac_ext 2986cat >>conftest.$ac_ext <<_ACEOF 2987/* end confdefs.h. */ 2988$ac_declaration 2989int 2990main () 2991{ 2992exit (42); 2993 ; 2994 return 0; 2995} 2996_ACEOF 2997rm -f conftest.$ac_objext 2998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2999 (eval $ac_compile) 2>&5 3000 ac_status=$? 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); } && 3003 { ac_try='test -s conftest.$ac_objext' 3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3005 (eval $ac_try) 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); }; }; then 3009 break 3010else 3011 echo "$as_me: failed program was:" >&5 3012sed 's/^/| /' conftest.$ac_ext >&5 3013 3014fi 3015rm -f conftest.$ac_objext conftest.$ac_ext 3016done 3017rm -f conftest* 3018if test -n "$ac_declaration"; then 3019 echo '#ifdef __cplusplus' >>confdefs.h 3020 echo $ac_declaration >>confdefs.h 3021 echo '#endif' >>confdefs.h 3022fi 3023 3024else 3025 echo "$as_me: failed program was:" >&5 3026sed 's/^/| /' conftest.$ac_ext >&5 3027 3028fi 3029rm -f conftest.$ac_objext conftest.$ac_ext 3030ac_ext=c 3031ac_cpp='$CPP $CPPFLAGS' 3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3034ac_compiler_gnu=$ac_cv_c_compiler_gnu 3035 3036depcc="$CC" am_compiler_list= 3037 3038echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3039echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3040if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3041 echo $ECHO_N "(cached) $ECHO_C" >&6 3042else 3043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3044 # We make a subdir and do the tests there. Otherwise we can end up 3045 # making bogus files that we don't know about and never remove. For 3046 # instance it was reported that on HP-UX the gcc test will end up 3047 # making a dummy file named `D' -- because `-MD' means `put the output 3048 # in D'. 3049 mkdir conftest.dir 3050 # Copy depcomp to subdir because otherwise we won't find it if we're 3051 # using a relative directory. 3052 cp "$am_depcomp" conftest.dir 3053 cd conftest.dir 3054 3055 am_cv_CC_dependencies_compiler_type=none 3056 if test "$am_compiler_list" = ""; then 3057 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3058 fi 3059 for depmode in $am_compiler_list; do 3060 # We need to recreate these files for each test, as the compiler may 3061 # overwrite some of them when testing with obscure command lines. 3062 # This happens at least with the AIX C compiler. 3063 echo '#include "conftest.h"' > conftest.c 3064 echo 'int i;' > conftest.h 3065 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 3066 3067 case $depmode in 3068 nosideeffect) 3069 # after this tag, mechanisms are not by side-effect, so they'll 3070 # only be used when explicitly requested 3071 if test "x$enable_dependency_tracking" = xyes; then 3072 continue 3073 else 3074 break 3075 fi 3076 ;; 3077 none) break ;; 3078 esac 3079 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3080 # mode. It turns out that the SunPro C++ compiler does not properly 3081 # handle `-M -o', and we need to detect this. 3082 if depmode=$depmode \ 3083 source=conftest.c object=conftest.o \ 3084 depfile=conftest.Po tmpdepfile=conftest.TPo \ 3085 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 && 3086 grep conftest.h conftest.Po > /dev/null 2>&1 && 3087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3088 am_cv_CC_dependencies_compiler_type=$depmode 3089 break 3090 fi 3091 done 3092 3093 cd .. 3094 rm -rf conftest.dir 3095else 3096 am_cv_CC_dependencies_compiler_type=none 3097fi 3098 3099fi 3100echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3101echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3102CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3103 3104 3105 3106if 3107 test "x$enable_dependency_tracking" != xno \ 3108 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3109 am__fastdepCC_TRUE= 3110 am__fastdepCC_FALSE='#' 3111else 3112 am__fastdepCC_TRUE='#' 3113 am__fastdepCC_FALSE= 3114fi 3115 3116 3117echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3118echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3119set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 3120if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3121 echo $ECHO_N "(cached) $ECHO_C" >&6 3122else 3123 cat >conftest.make <<\_ACEOF 3124all: 3125 @echo 'ac_maketemp="$(MAKE)"' 3126_ACEOF 3127# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3128eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3129if test -n "$ac_maketemp"; then 3130 eval ac_cv_prog_make_${ac_make}_set=yes 3131else 3132 eval ac_cv_prog_make_${ac_make}_set=no 3133fi 3134rm -f conftest.make 3135fi 3136if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3137 echo "$as_me:$LINENO: result: yes" >&5 3138echo "${ECHO_T}yes" >&6 3139 SET_MAKE= 3140else 3141 echo "$as_me:$LINENO: result: no" >&5 3142echo "${ECHO_T}no" >&6 3143 SET_MAKE="MAKE=${MAKE-make}" 3144fi 3145 3146 3147 3148ac_ext=c 3149ac_cpp='$CPP $CPPFLAGS' 3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3152ac_compiler_gnu=$ac_cv_c_compiler_gnu 3153echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3154echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3155# On Suns, sometimes $CPP names a directory. 3156if test -n "$CPP" && test -d "$CPP"; then 3157 CPP= 3158fi 3159if test -z "$CPP"; then 3160 if test "${ac_cv_prog_CPP+set}" = set; then 3161 echo $ECHO_N "(cached) $ECHO_C" >&6 3162else 3163 # Double quotes because CPP needs to be expanded 3164 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3165 do 3166 ac_preproc_ok=false 3167for ac_c_preproc_warn_flag in '' yes 3168do 3169 # Use a header file that comes with gcc, so configuring glibc 3170 # with a fresh cross-compiler works. 3171 # On the NeXT, cc -E runs the code through the compiler's parser, 3172 # not just through cpp. "Syntax error" is here to catch this case. 3173 cat >conftest.$ac_ext <<_ACEOF 3174#line $LINENO "configure" 3175/* confdefs.h. */ 3176_ACEOF 3177cat confdefs.h >>conftest.$ac_ext 3178cat >>conftest.$ac_ext <<_ACEOF 3179/* end confdefs.h. */ 3180@%:@include <assert.h> 3181 Syntax error 3182_ACEOF 3183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3185 ac_status=$? 3186 grep -v '^ *+' conftest.er1 >conftest.err 3187 rm -f conftest.er1 3188 cat conftest.err >&5 3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3190 (exit $ac_status); } >/dev/null; then 3191 if test -s conftest.err; then 3192 ac_cpp_err=$ac_c_preproc_warn_flag 3193 else 3194 ac_cpp_err= 3195 fi 3196else 3197 ac_cpp_err=yes 3198fi 3199if test -z "$ac_cpp_err"; then 3200 : 3201else 3202 echo "$as_me: failed program was:" >&5 3203sed 's/^/| /' conftest.$ac_ext >&5 3204 3205 # Broken: fails on valid input. 3206continue 3207fi 3208rm -f conftest.err conftest.$ac_ext 3209 3210 # OK, works on sane cases. Now check whether non-existent headers 3211 # can be detected and how. 3212 cat >conftest.$ac_ext <<_ACEOF 3213#line $LINENO "configure" 3214/* confdefs.h. */ 3215_ACEOF 3216cat confdefs.h >>conftest.$ac_ext 3217cat >>conftest.$ac_ext <<_ACEOF 3218/* end confdefs.h. */ 3219@%:@include <ac_nonexistent.h> 3220_ACEOF 3221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3223 ac_status=$? 3224 grep -v '^ *+' conftest.er1 >conftest.err 3225 rm -f conftest.er1 3226 cat conftest.err >&5 3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3228 (exit $ac_status); } >/dev/null; then 3229 if test -s conftest.err; then 3230 ac_cpp_err=$ac_c_preproc_warn_flag 3231 else 3232 ac_cpp_err= 3233 fi 3234else 3235 ac_cpp_err=yes 3236fi 3237if test -z "$ac_cpp_err"; then 3238 # Broken: success on invalid input. 3239continue 3240else 3241 echo "$as_me: failed program was:" >&5 3242sed 's/^/| /' conftest.$ac_ext >&5 3243 3244 # Passes both tests. 3245ac_preproc_ok=: 3246break 3247fi 3248rm -f conftest.err conftest.$ac_ext 3249 3250done 3251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3252rm -f conftest.err conftest.$ac_ext 3253if $ac_preproc_ok; then 3254 break 3255fi 3256 3257 done 3258 ac_cv_prog_CPP=$CPP 3259 3260fi 3261 CPP=$ac_cv_prog_CPP 3262else 3263 ac_cv_prog_CPP=$CPP 3264fi 3265echo "$as_me:$LINENO: result: $CPP" >&5 3266echo "${ECHO_T}$CPP" >&6 3267ac_preproc_ok=false 3268for ac_c_preproc_warn_flag in '' yes 3269do 3270 # Use a header file that comes with gcc, so configuring glibc 3271 # with a fresh cross-compiler works. 3272 # On the NeXT, cc -E runs the code through the compiler's parser, 3273 # not just through cpp. "Syntax error" is here to catch this case. 3274 cat >conftest.$ac_ext <<_ACEOF 3275#line $LINENO "configure" 3276/* confdefs.h. */ 3277_ACEOF 3278cat confdefs.h >>conftest.$ac_ext 3279cat >>conftest.$ac_ext <<_ACEOF 3280/* end confdefs.h. */ 3281@%:@include <assert.h> 3282 Syntax error 3283_ACEOF 3284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } >/dev/null; then 3292 if test -s conftest.err; then 3293 ac_cpp_err=$ac_c_preproc_warn_flag 3294 else 3295 ac_cpp_err= 3296 fi 3297else 3298 ac_cpp_err=yes 3299fi 3300if test -z "$ac_cpp_err"; then 3301 : 3302else 3303 echo "$as_me: failed program was:" >&5 3304sed 's/^/| /' conftest.$ac_ext >&5 3305 3306 # Broken: fails on valid input. 3307continue 3308fi 3309rm -f conftest.err conftest.$ac_ext 3310 3311 # OK, works on sane cases. Now check whether non-existent headers 3312 # can be detected and how. 3313 cat >conftest.$ac_ext <<_ACEOF 3314#line $LINENO "configure" 3315/* confdefs.h. */ 3316_ACEOF 3317cat confdefs.h >>conftest.$ac_ext 3318cat >>conftest.$ac_ext <<_ACEOF 3319/* end confdefs.h. */ 3320@%:@include <ac_nonexistent.h> 3321_ACEOF 3322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3324 ac_status=$? 3325 grep -v '^ *+' conftest.er1 >conftest.err 3326 rm -f conftest.er1 3327 cat conftest.err >&5 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } >/dev/null; then 3330 if test -s conftest.err; then 3331 ac_cpp_err=$ac_c_preproc_warn_flag 3332 else 3333 ac_cpp_err= 3334 fi 3335else 3336 ac_cpp_err=yes 3337fi 3338if test -z "$ac_cpp_err"; then 3339 # Broken: success on invalid input. 3340continue 3341else 3342 echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345 # Passes both tests. 3346ac_preproc_ok=: 3347break 3348fi 3349rm -f conftest.err conftest.$ac_ext 3350 3351done 3352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3353rm -f conftest.err conftest.$ac_ext 3354if $ac_preproc_ok; then 3355 : 3356else 3357 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3358See \`config.log' for more details." >&5 3359echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3360See \`config.log' for more details." >&2;} 3361 { (exit 1); exit 1; }; } 3362fi 3363 3364ac_ext=c 3365ac_cpp='$CPP $CPPFLAGS' 3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3368ac_compiler_gnu=$ac_cv_c_compiler_gnu 3369 3370 3371echo "$as_me:$LINENO: checking for X" >&5 3372echo $ECHO_N "checking for X... $ECHO_C" >&6 3373 3374 3375# Check whether --with-x or --without-x was given. 3376if test "${with_x+set}" = set; then 3377 withval="$with_x" 3378 3379fi; 3380# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3381if test "x$with_x" = xno; then 3382 # The user explicitly disabled X. 3383 have_x=disabled 3384else 3385 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 3386 # Both variables are already set. 3387 have_x=yes 3388 else 3389 if test "${ac_cv_have_x+set}" = set; then 3390 echo $ECHO_N "(cached) $ECHO_C" >&6 3391else 3392 # One or both of the vars are not set, and there is no cached value. 3393ac_x_includes=no ac_x_libraries=no 3394rm -fr conftest.dir 3395if mkdir conftest.dir; then 3396 cd conftest.dir 3397 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 3398 cat >Imakefile <<'_ACEOF' 3399acfindx: 3400 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 3401_ACEOF 3402 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 3403 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3404 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 3405 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3406 for ac_extension in a so sl; do 3407 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 3408 test -f $ac_im_libdir/libX11.$ac_extension; then 3409 ac_im_usrlibdir=$ac_im_libdir; break 3410 fi 3411 done 3412 # Screen out bogus values from the imake configuration. They are 3413 # bogus both because they are the default anyway, and because 3414 # using them would break gcc on systems where it needs fixed includes. 3415 case $ac_im_incroot in 3416 /usr/include) ;; 3417 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3418 esac 3419 case $ac_im_usrlibdir in 3420 /usr/lib | /lib) ;; 3421 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3422 esac 3423 fi 3424 cd .. 3425 rm -fr conftest.dir 3426fi 3427 3428# Standard set of common directories for X headers. 3429# Check X11 before X11Rn because it is often a symlink to the current release. 3430ac_x_header_dirs=' 3431/usr/X11/include 3432/usr/X11R6/include 3433/usr/X11R5/include 3434/usr/X11R4/include 3435 3436/usr/include/X11 3437/usr/include/X11R6 3438/usr/include/X11R5 3439/usr/include/X11R4 3440 3441/usr/local/X11/include 3442/usr/local/X11R6/include 3443/usr/local/X11R5/include 3444/usr/local/X11R4/include 3445 3446/usr/local/include/X11 3447/usr/local/include/X11R6 3448/usr/local/include/X11R5 3449/usr/local/include/X11R4 3450 3451/usr/X386/include 3452/usr/x386/include 3453/usr/XFree86/include/X11 3454 3455/usr/include 3456/usr/local/include 3457/usr/unsupported/include 3458/usr/athena/include 3459/usr/local/x11r5/include 3460/usr/lpp/Xamples/include 3461 3462/usr/openwin/include 3463/usr/openwin/share/include' 3464 3465if test "$ac_x_includes" = no; then 3466 # Guess where to find include files, by looking for Intrinsic.h. 3467 # First, try using that file with no special directory specified. 3468 cat >conftest.$ac_ext <<_ACEOF 3469#line $LINENO "configure" 3470/* confdefs.h. */ 3471_ACEOF 3472cat confdefs.h >>conftest.$ac_ext 3473cat >>conftest.$ac_ext <<_ACEOF 3474/* end confdefs.h. */ 3475@%:@include <X11/Intrinsic.h> 3476_ACEOF 3477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3479 ac_status=$? 3480 grep -v '^ *+' conftest.er1 >conftest.err 3481 rm -f conftest.er1 3482 cat conftest.err >&5 3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); } >/dev/null; then 3485 if test -s conftest.err; then 3486 ac_cpp_err=$ac_c_preproc_warn_flag 3487 else 3488 ac_cpp_err= 3489 fi 3490else 3491 ac_cpp_err=yes 3492fi 3493if test -z "$ac_cpp_err"; then 3494 # We can compile using X headers with no special include directory. 3495ac_x_includes= 3496else 3497 echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 for ac_dir in $ac_x_header_dirs; do 3501 if test -r "$ac_dir/X11/Intrinsic.h"; then 3502 ac_x_includes=$ac_dir 3503 break 3504 fi 3505done 3506fi 3507rm -f conftest.err conftest.$ac_ext 3508fi # $ac_x_includes = no 3509 3510if test "$ac_x_libraries" = no; then 3511 # Check for the libraries. 3512 # See if we find them without any special options. 3513 # Don't add to $LIBS permanently. 3514 ac_save_LIBS=$LIBS 3515 LIBS="-lXt $LIBS" 3516 cat >conftest.$ac_ext <<_ACEOF 3517#line $LINENO "configure" 3518/* confdefs.h. */ 3519_ACEOF 3520cat confdefs.h >>conftest.$ac_ext 3521cat >>conftest.$ac_ext <<_ACEOF 3522/* end confdefs.h. */ 3523@%:@include <X11/Intrinsic.h> 3524int 3525main () 3526{ 3527XtMalloc (0) 3528 ; 3529 return 0; 3530} 3531_ACEOF 3532rm -f conftest.$ac_objext conftest$ac_exeext 3533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3534 (eval $ac_link) 2>&5 3535 ac_status=$? 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); } && 3538 { ac_try='test -s conftest$ac_exeext' 3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3540 (eval $ac_try) 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); }; }; then 3544 LIBS=$ac_save_LIBS 3545# We can link X programs with no special library path. 3546ac_x_libraries= 3547else 3548 echo "$as_me: failed program was:" >&5 3549sed 's/^/| /' conftest.$ac_ext >&5 3550 3551LIBS=$ac_save_LIBS 3552for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3553do 3554 # Don't even attempt the hair of trying to link an X program! 3555 for ac_extension in a so sl; do 3556 if test -r $ac_dir/libXt.$ac_extension; then 3557 ac_x_libraries=$ac_dir 3558 break 2 3559 fi 3560 done 3561done 3562fi 3563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3564fi # $ac_x_libraries = no 3565 3566if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 3567 # Didn't find X anywhere. Cache the known absence of X. 3568 ac_cv_have_x="have_x=no" 3569else 3570 # Record where we found X for the cache. 3571 ac_cv_have_x="have_x=yes \ 3572 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 3573fi 3574fi 3575 3576 fi 3577 eval "$ac_cv_have_x" 3578fi # $with_x != no 3579 3580if test "$have_x" != yes; then 3581 echo "$as_me:$LINENO: result: $have_x" >&5 3582echo "${ECHO_T}$have_x" >&6 3583 no_x=yes 3584else 3585 # If each of the values was on the command line, it overrides each guess. 3586 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3587 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3588 # Update the cache value to reflect the command line values. 3589 ac_cv_have_x="have_x=yes \ 3590 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 3591 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 3592echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 3593fi 3594 3595if test "$no_x" = yes; then 3596 # Not all programs may use this symbol, but it does not hurt to define it. 3597 3598cat >>confdefs.h <<\_ACEOF 3599@%:@define X_DISPLAY_MISSING 1 3600_ACEOF 3601 3602 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 3603else 3604 if test -n "$x_includes"; then 3605 X_CFLAGS="$X_CFLAGS -I$x_includes" 3606 fi 3607 3608 # It would also be nice to do this for all -L options, not just this one. 3609 if test -n "$x_libraries"; then 3610 X_LIBS="$X_LIBS -L$x_libraries" 3611 # For Solaris; some versions of Sun CC require a space after -R and 3612 # others require no space. Words are not sufficient . . . . 3613 case `(uname -sr) 2>/dev/null` in 3614 "SunOS 5"*) 3615 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 3616echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 3617 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 3618 cat >conftest.$ac_ext <<_ACEOF 3619#line $LINENO "configure" 3620/* confdefs.h. */ 3621_ACEOF 3622cat confdefs.h >>conftest.$ac_ext 3623cat >>conftest.$ac_ext <<_ACEOF 3624/* end confdefs.h. */ 3625 3626int 3627main () 3628{ 3629 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634rm -f conftest.$ac_objext conftest$ac_exeext 3635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3636 (eval $ac_link) 2>&5 3637 ac_status=$? 3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3639 (exit $ac_status); } && 3640 { ac_try='test -s conftest$ac_exeext' 3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3642 (eval $ac_try) 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); }; }; then 3646 ac_R_nospace=yes 3647else 3648 echo "$as_me: failed program was:" >&5 3649sed 's/^/| /' conftest.$ac_ext >&5 3650 3651ac_R_nospace=no 3652fi 3653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3654 if test $ac_R_nospace = yes; then 3655 echo "$as_me:$LINENO: result: no" >&5 3656echo "${ECHO_T}no" >&6 3657 X_LIBS="$X_LIBS -R$x_libraries" 3658 else 3659 LIBS="$ac_xsave_LIBS -R $x_libraries" 3660 cat >conftest.$ac_ext <<_ACEOF 3661#line $LINENO "configure" 3662/* confdefs.h. */ 3663_ACEOF 3664cat confdefs.h >>conftest.$ac_ext 3665cat >>conftest.$ac_ext <<_ACEOF 3666/* end confdefs.h. */ 3667 3668int 3669main () 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676rm -f conftest.$ac_objext conftest$ac_exeext 3677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3678 (eval $ac_link) 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); } && 3682 { ac_try='test -s conftest$ac_exeext' 3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3684 (eval $ac_try) 2>&5 3685 ac_status=$? 3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3687 (exit $ac_status); }; }; then 3688 ac_R_space=yes 3689else 3690 echo "$as_me: failed program was:" >&5 3691sed 's/^/| /' conftest.$ac_ext >&5 3692 3693ac_R_space=no 3694fi 3695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3696 if test $ac_R_space = yes; then 3697 echo "$as_me:$LINENO: result: yes" >&5 3698echo "${ECHO_T}yes" >&6 3699 X_LIBS="$X_LIBS -R $x_libraries" 3700 else 3701 echo "$as_me:$LINENO: result: neither works" >&5 3702echo "${ECHO_T}neither works" >&6 3703 fi 3704 fi 3705 LIBS=$ac_xsave_LIBS 3706 esac 3707 fi 3708 3709 # Check for system-dependent libraries X programs must link with. 3710 # Do this before checking for the system-independent R6 libraries 3711 # (-lICE), since we may need -lsocket or whatever for X linking. 3712 3713 if test "$ISC" = yes; then 3714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 3715 else 3716 # Martyn Johnson says this is needed for Ultrix, if the X 3717 # libraries were built with DECnet support. And Karl Berry says 3718 # the Alpha needs dnet_stub (dnet does not exist). 3719 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 3720 cat >conftest.$ac_ext <<_ACEOF 3721#line $LINENO "configure" 3722/* confdefs.h. */ 3723_ACEOF 3724cat confdefs.h >>conftest.$ac_ext 3725cat >>conftest.$ac_ext <<_ACEOF 3726/* end confdefs.h. */ 3727 3728/* Override any gcc2 internal prototype to avoid an error. */ 3729#ifdef __cplusplus 3730extern "C" 3731#endif 3732/* We use char because int might match the return type of a gcc2 3733 builtin and then its argument prototype would still apply. */ 3734char XOpenDisplay (); 3735int 3736main () 3737{ 3738XOpenDisplay (); 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743rm -f conftest.$ac_objext conftest$ac_exeext 3744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3745 (eval $ac_link) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); } && 3749 { ac_try='test -s conftest$ac_exeext' 3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 : 3756else 3757 echo "$as_me: failed program was:" >&5 3758sed 's/^/| /' conftest.$ac_ext >&5 3759 3760echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 3761echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 3762if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 3763 echo $ECHO_N "(cached) $ECHO_C" >&6 3764else 3765 ac_check_lib_save_LIBS=$LIBS 3766LIBS="-ldnet $LIBS" 3767cat >conftest.$ac_ext <<_ACEOF 3768#line $LINENO "configure" 3769/* confdefs.h. */ 3770_ACEOF 3771cat confdefs.h >>conftest.$ac_ext 3772cat >>conftest.$ac_ext <<_ACEOF 3773/* end confdefs.h. */ 3774 3775/* Override any gcc2 internal prototype to avoid an error. */ 3776#ifdef __cplusplus 3777extern "C" 3778#endif 3779/* We use char because int might match the return type of a gcc2 3780 builtin and then its argument prototype would still apply. */ 3781char dnet_ntoa (); 3782int 3783main () 3784{ 3785dnet_ntoa (); 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790rm -f conftest.$ac_objext conftest$ac_exeext 3791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3792 (eval $ac_link) 2>&5 3793 ac_status=$? 3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); } && 3796 { ac_try='test -s conftest$ac_exeext' 3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3798 (eval $ac_try) 2>&5 3799 ac_status=$? 3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3801 (exit $ac_status); }; }; then 3802 ac_cv_lib_dnet_dnet_ntoa=yes 3803else 3804 echo "$as_me: failed program was:" >&5 3805sed 's/^/| /' conftest.$ac_ext >&5 3806 3807ac_cv_lib_dnet_dnet_ntoa=no 3808fi 3809rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3810LIBS=$ac_check_lib_save_LIBS 3811fi 3812echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 3813echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 3814if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 3815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 3816fi 3817 3818 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3819 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 3820echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 3821if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 3822 echo $ECHO_N "(cached) $ECHO_C" >&6 3823else 3824 ac_check_lib_save_LIBS=$LIBS 3825LIBS="-ldnet_stub $LIBS" 3826cat >conftest.$ac_ext <<_ACEOF 3827#line $LINENO "configure" 3828/* confdefs.h. */ 3829_ACEOF 3830cat confdefs.h >>conftest.$ac_ext 3831cat >>conftest.$ac_ext <<_ACEOF 3832/* end confdefs.h. */ 3833 3834/* Override any gcc2 internal prototype to avoid an error. */ 3835#ifdef __cplusplus 3836extern "C" 3837#endif 3838/* We use char because int might match the return type of a gcc2 3839 builtin and then its argument prototype would still apply. */ 3840char dnet_ntoa (); 3841int 3842main () 3843{ 3844dnet_ntoa (); 3845 ; 3846 return 0; 3847} 3848_ACEOF 3849rm -f conftest.$ac_objext conftest$ac_exeext 3850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3851 (eval $ac_link) 2>&5 3852 ac_status=$? 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3854 (exit $ac_status); } && 3855 { ac_try='test -s conftest$ac_exeext' 3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3857 (eval $ac_try) 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); }; }; then 3861 ac_cv_lib_dnet_stub_dnet_ntoa=yes 3862else 3863 echo "$as_me: failed program was:" >&5 3864sed 's/^/| /' conftest.$ac_ext >&5 3865 3866ac_cv_lib_dnet_stub_dnet_ntoa=no 3867fi 3868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3869LIBS=$ac_check_lib_save_LIBS 3870fi 3871echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 3872echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 3873if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 3874 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 3875fi 3876 3877 fi 3878fi 3879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3880 LIBS="$ac_xsave_LIBS" 3881 3882 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 3883 # to get the SysV transport functions. 3884 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 3885 # needs -lnsl. 3886 # The nsl library prevents programs from opening the X display 3887 # on Irix 5.2, according to T.E. Dickey. 3888 # The functions gethostbyname, getservbyname, and inet_addr are 3889 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 3890 echo "$as_me:$LINENO: checking for gethostbyname" >&5 3891echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 3892if test "${ac_cv_func_gethostbyname+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894else 3895 cat >conftest.$ac_ext <<_ACEOF 3896#line $LINENO "configure" 3897/* confdefs.h. */ 3898_ACEOF 3899cat confdefs.h >>conftest.$ac_ext 3900cat >>conftest.$ac_ext <<_ACEOF 3901/* end confdefs.h. */ 3902/* System header to define __stub macros and hopefully few prototypes, 3903 which can conflict with char gethostbyname (); below. */ 3904#include <assert.h> 3905/* Override any gcc2 internal prototype to avoid an error. */ 3906#ifdef __cplusplus 3907extern "C" 3908{ 3909#endif 3910/* We use char because int might match the return type of a gcc2 3911 builtin and then its argument prototype would still apply. */ 3912char gethostbyname (); 3913/* The GNU C library defines this for functions which it implements 3914 to always fail with ENOSYS. Some functions are actually named 3915 something starting with __ and the normal name is an alias. */ 3916#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 3917choke me 3918#else 3919char (*f) () = gethostbyname; 3920#endif 3921#ifdef __cplusplus 3922} 3923#endif 3924 3925int 3926main () 3927{ 3928 3929 ; 3930 return 0; 3931} 3932_ACEOF 3933rm -f conftest.$ac_objext conftest$ac_exeext 3934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3935 (eval $ac_link) 2>&5 3936 ac_status=$? 3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3938 (exit $ac_status); } && 3939 { ac_try='test -s conftest$ac_exeext' 3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3941 (eval $ac_try) 2>&5 3942 ac_status=$? 3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3944 (exit $ac_status); }; }; then 3945 ac_cv_func_gethostbyname=yes 3946else 3947 echo "$as_me: failed program was:" >&5 3948sed 's/^/| /' conftest.$ac_ext >&5 3949 3950ac_cv_func_gethostbyname=no 3951fi 3952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3953fi 3954echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 3955echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 3956 3957 if test $ac_cv_func_gethostbyname = no; then 3958 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3959echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3960if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3961 echo $ECHO_N "(cached) $ECHO_C" >&6 3962else 3963 ac_check_lib_save_LIBS=$LIBS 3964LIBS="-lnsl $LIBS" 3965cat >conftest.$ac_ext <<_ACEOF 3966#line $LINENO "configure" 3967/* confdefs.h. */ 3968_ACEOF 3969cat confdefs.h >>conftest.$ac_ext 3970cat >>conftest.$ac_ext <<_ACEOF 3971/* end confdefs.h. */ 3972 3973/* Override any gcc2 internal prototype to avoid an error. */ 3974#ifdef __cplusplus 3975extern "C" 3976#endif 3977/* We use char because int might match the return type of a gcc2 3978 builtin and then its argument prototype would still apply. */ 3979char gethostbyname (); 3980int 3981main () 3982{ 3983gethostbyname (); 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988rm -f conftest.$ac_objext conftest$ac_exeext 3989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3990 (eval $ac_link) 2>&5 3991 ac_status=$? 3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3993 (exit $ac_status); } && 3994 { ac_try='test -s conftest$ac_exeext' 3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3996 (eval $ac_try) 2>&5 3997 ac_status=$? 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 (exit $ac_status); }; }; then 4000 ac_cv_lib_nsl_gethostbyname=yes 4001else 4002 echo "$as_me: failed program was:" >&5 4003sed 's/^/| /' conftest.$ac_ext >&5 4004 4005ac_cv_lib_nsl_gethostbyname=no 4006fi 4007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4008LIBS=$ac_check_lib_save_LIBS 4009fi 4010echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4011echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4012if test $ac_cv_lib_nsl_gethostbyname = yes; then 4013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 4014fi 4015 4016 if test $ac_cv_lib_nsl_gethostbyname = no; then 4017 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 4018echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 4019if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 4020 echo $ECHO_N "(cached) $ECHO_C" >&6 4021else 4022 ac_check_lib_save_LIBS=$LIBS 4023LIBS="-lbsd $LIBS" 4024cat >conftest.$ac_ext <<_ACEOF 4025#line $LINENO "configure" 4026/* confdefs.h. */ 4027_ACEOF 4028cat confdefs.h >>conftest.$ac_ext 4029cat >>conftest.$ac_ext <<_ACEOF 4030/* end confdefs.h. */ 4031 4032/* Override any gcc2 internal prototype to avoid an error. */ 4033#ifdef __cplusplus 4034extern "C" 4035#endif 4036/* We use char because int might match the return type of a gcc2 4037 builtin and then its argument prototype would still apply. */ 4038char gethostbyname (); 4039int 4040main () 4041{ 4042gethostbyname (); 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047rm -f conftest.$ac_objext conftest$ac_exeext 4048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4049 (eval $ac_link) 2>&5 4050 ac_status=$? 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4052 (exit $ac_status); } && 4053 { ac_try='test -s conftest$ac_exeext' 4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4055 (eval $ac_try) 2>&5 4056 ac_status=$? 4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4058 (exit $ac_status); }; }; then 4059 ac_cv_lib_bsd_gethostbyname=yes 4060else 4061 echo "$as_me: failed program was:" >&5 4062sed 's/^/| /' conftest.$ac_ext >&5 4063 4064ac_cv_lib_bsd_gethostbyname=no 4065fi 4066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4067LIBS=$ac_check_lib_save_LIBS 4068fi 4069echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 4070echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 4071if test $ac_cv_lib_bsd_gethostbyname = yes; then 4072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 4073fi 4074 4075 fi 4076 fi 4077 4078 # lieder@skyler.mavd.honeywell.com says without -lsocket, 4079 # socket/setsockopt and other routines are undefined under SCO ODT 4080 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 4081 # on later versions), says Simon Leinen: it contains gethostby* 4082 # variants that don't use the name server (or something). -lsocket 4083 # must be given before -lnsl if both are needed. We assume that 4084 # if connect needs -lnsl, so does gethostbyname. 4085 echo "$as_me:$LINENO: checking for connect" >&5 4086echo $ECHO_N "checking for connect... $ECHO_C" >&6 4087if test "${ac_cv_func_connect+set}" = set; then 4088 echo $ECHO_N "(cached) $ECHO_C" >&6 4089else 4090 cat >conftest.$ac_ext <<_ACEOF 4091#line $LINENO "configure" 4092/* confdefs.h. */ 4093_ACEOF 4094cat confdefs.h >>conftest.$ac_ext 4095cat >>conftest.$ac_ext <<_ACEOF 4096/* end confdefs.h. */ 4097/* System header to define __stub macros and hopefully few prototypes, 4098 which can conflict with char connect (); below. */ 4099#include <assert.h> 4100/* Override any gcc2 internal prototype to avoid an error. */ 4101#ifdef __cplusplus 4102extern "C" 4103{ 4104#endif 4105/* We use char because int might match the return type of a gcc2 4106 builtin and then its argument prototype would still apply. */ 4107char connect (); 4108/* The GNU C library defines this for functions which it implements 4109 to always fail with ENOSYS. Some functions are actually named 4110 something starting with __ and the normal name is an alias. */ 4111#if defined (__stub_connect) || defined (__stub___connect) 4112choke me 4113#else 4114char (*f) () = connect; 4115#endif 4116#ifdef __cplusplus 4117} 4118#endif 4119 4120int 4121main () 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128rm -f conftest.$ac_objext conftest$ac_exeext 4129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4130 (eval $ac_link) 2>&5 4131 ac_status=$? 4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4133 (exit $ac_status); } && 4134 { ac_try='test -s conftest$ac_exeext' 4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4136 (eval $ac_try) 2>&5 4137 ac_status=$? 4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139 (exit $ac_status); }; }; then 4140 ac_cv_func_connect=yes 4141else 4142 echo "$as_me: failed program was:" >&5 4143sed 's/^/| /' conftest.$ac_ext >&5 4144 4145ac_cv_func_connect=no 4146fi 4147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4148fi 4149echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4150echo "${ECHO_T}$ac_cv_func_connect" >&6 4151 4152 if test $ac_cv_func_connect = no; then 4153 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 4154echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 4155if test "${ac_cv_lib_socket_connect+set}" = set; then 4156 echo $ECHO_N "(cached) $ECHO_C" >&6 4157else 4158 ac_check_lib_save_LIBS=$LIBS 4159LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 4160cat >conftest.$ac_ext <<_ACEOF 4161#line $LINENO "configure" 4162/* confdefs.h. */ 4163_ACEOF 4164cat confdefs.h >>conftest.$ac_ext 4165cat >>conftest.$ac_ext <<_ACEOF 4166/* end confdefs.h. */ 4167 4168/* Override any gcc2 internal prototype to avoid an error. */ 4169#ifdef __cplusplus 4170extern "C" 4171#endif 4172/* We use char because int might match the return type of a gcc2 4173 builtin and then its argument prototype would still apply. */ 4174char connect (); 4175int 4176main () 4177{ 4178connect (); 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183rm -f conftest.$ac_objext conftest$ac_exeext 4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4185 (eval $ac_link) 2>&5 4186 ac_status=$? 4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4188 (exit $ac_status); } && 4189 { ac_try='test -s conftest$ac_exeext' 4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4191 (eval $ac_try) 2>&5 4192 ac_status=$? 4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4194 (exit $ac_status); }; }; then 4195 ac_cv_lib_socket_connect=yes 4196else 4197 echo "$as_me: failed program was:" >&5 4198sed 's/^/| /' conftest.$ac_ext >&5 4199 4200ac_cv_lib_socket_connect=no 4201fi 4202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4203LIBS=$ac_check_lib_save_LIBS 4204fi 4205echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 4206echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 4207if test $ac_cv_lib_socket_connect = yes; then 4208 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 4209fi 4210 4211 fi 4212 4213 # Guillermo Gomez says -lposix is necessary on A/UX. 4214 echo "$as_me:$LINENO: checking for remove" >&5 4215echo $ECHO_N "checking for remove... $ECHO_C" >&6 4216if test "${ac_cv_func_remove+set}" = set; then 4217 echo $ECHO_N "(cached) $ECHO_C" >&6 4218else 4219 cat >conftest.$ac_ext <<_ACEOF 4220#line $LINENO "configure" 4221/* confdefs.h. */ 4222_ACEOF 4223cat confdefs.h >>conftest.$ac_ext 4224cat >>conftest.$ac_ext <<_ACEOF 4225/* end confdefs.h. */ 4226/* System header to define __stub macros and hopefully few prototypes, 4227 which can conflict with char remove (); below. */ 4228#include <assert.h> 4229/* Override any gcc2 internal prototype to avoid an error. */ 4230#ifdef __cplusplus 4231extern "C" 4232{ 4233#endif 4234/* We use char because int might match the return type of a gcc2 4235 builtin and then its argument prototype would still apply. */ 4236char remove (); 4237/* The GNU C library defines this for functions which it implements 4238 to always fail with ENOSYS. Some functions are actually named 4239 something starting with __ and the normal name is an alias. */ 4240#if defined (__stub_remove) || defined (__stub___remove) 4241choke me 4242#else 4243char (*f) () = remove; 4244#endif 4245#ifdef __cplusplus 4246} 4247#endif 4248 4249int 4250main () 4251{ 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257rm -f conftest.$ac_objext conftest$ac_exeext 4258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4259 (eval $ac_link) 2>&5 4260 ac_status=$? 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); } && 4263 { ac_try='test -s conftest$ac_exeext' 4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4265 (eval $ac_try) 2>&5 4266 ac_status=$? 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); }; }; then 4269 ac_cv_func_remove=yes 4270else 4271 echo "$as_me: failed program was:" >&5 4272sed 's/^/| /' conftest.$ac_ext >&5 4273 4274ac_cv_func_remove=no 4275fi 4276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4277fi 4278echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 4279echo "${ECHO_T}$ac_cv_func_remove" >&6 4280 4281 if test $ac_cv_func_remove = no; then 4282 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 4283echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 4284if test "${ac_cv_lib_posix_remove+set}" = set; then 4285 echo $ECHO_N "(cached) $ECHO_C" >&6 4286else 4287 ac_check_lib_save_LIBS=$LIBS 4288LIBS="-lposix $LIBS" 4289cat >conftest.$ac_ext <<_ACEOF 4290#line $LINENO "configure" 4291/* confdefs.h. */ 4292_ACEOF 4293cat confdefs.h >>conftest.$ac_ext 4294cat >>conftest.$ac_ext <<_ACEOF 4295/* end confdefs.h. */ 4296 4297/* Override any gcc2 internal prototype to avoid an error. */ 4298#ifdef __cplusplus 4299extern "C" 4300#endif 4301/* We use char because int might match the return type of a gcc2 4302 builtin and then its argument prototype would still apply. */ 4303char remove (); 4304int 4305main () 4306{ 4307remove (); 4308 ; 4309 return 0; 4310} 4311_ACEOF 4312rm -f conftest.$ac_objext conftest$ac_exeext 4313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4314 (eval $ac_link) 2>&5 4315 ac_status=$? 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); } && 4318 { ac_try='test -s conftest$ac_exeext' 4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4320 (eval $ac_try) 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); }; }; then 4324 ac_cv_lib_posix_remove=yes 4325else 4326 echo "$as_me: failed program was:" >&5 4327sed 's/^/| /' conftest.$ac_ext >&5 4328 4329ac_cv_lib_posix_remove=no 4330fi 4331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4332LIBS=$ac_check_lib_save_LIBS 4333fi 4334echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 4335echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 4336if test $ac_cv_lib_posix_remove = yes; then 4337 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 4338fi 4339 4340 fi 4341 4342 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4343 echo "$as_me:$LINENO: checking for shmat" >&5 4344echo $ECHO_N "checking for shmat... $ECHO_C" >&6 4345if test "${ac_cv_func_shmat+set}" = set; then 4346 echo $ECHO_N "(cached) $ECHO_C" >&6 4347else 4348 cat >conftest.$ac_ext <<_ACEOF 4349#line $LINENO "configure" 4350/* confdefs.h. */ 4351_ACEOF 4352cat confdefs.h >>conftest.$ac_ext 4353cat >>conftest.$ac_ext <<_ACEOF 4354/* end confdefs.h. */ 4355/* System header to define __stub macros and hopefully few prototypes, 4356 which can conflict with char shmat (); below. */ 4357#include <assert.h> 4358/* Override any gcc2 internal prototype to avoid an error. */ 4359#ifdef __cplusplus 4360extern "C" 4361{ 4362#endif 4363/* We use char because int might match the return type of a gcc2 4364 builtin and then its argument prototype would still apply. */ 4365char shmat (); 4366/* The GNU C library defines this for functions which it implements 4367 to always fail with ENOSYS. Some functions are actually named 4368 something starting with __ and the normal name is an alias. */ 4369#if defined (__stub_shmat) || defined (__stub___shmat) 4370choke me 4371#else 4372char (*f) () = shmat; 4373#endif 4374#ifdef __cplusplus 4375} 4376#endif 4377 4378int 4379main () 4380{ 4381 4382 ; 4383 return 0; 4384} 4385_ACEOF 4386rm -f conftest.$ac_objext conftest$ac_exeext 4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4388 (eval $ac_link) 2>&5 4389 ac_status=$? 4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391 (exit $ac_status); } && 4392 { ac_try='test -s conftest$ac_exeext' 4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4394 (eval $ac_try) 2>&5 4395 ac_status=$? 4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4397 (exit $ac_status); }; }; then 4398 ac_cv_func_shmat=yes 4399else 4400 echo "$as_me: failed program was:" >&5 4401sed 's/^/| /' conftest.$ac_ext >&5 4402 4403ac_cv_func_shmat=no 4404fi 4405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4406fi 4407echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 4408echo "${ECHO_T}$ac_cv_func_shmat" >&6 4409 4410 if test $ac_cv_func_shmat = no; then 4411 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 4412echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 4413if test "${ac_cv_lib_ipc_shmat+set}" = set; then 4414 echo $ECHO_N "(cached) $ECHO_C" >&6 4415else 4416 ac_check_lib_save_LIBS=$LIBS 4417LIBS="-lipc $LIBS" 4418cat >conftest.$ac_ext <<_ACEOF 4419#line $LINENO "configure" 4420/* confdefs.h. */ 4421_ACEOF 4422cat confdefs.h >>conftest.$ac_ext 4423cat >>conftest.$ac_ext <<_ACEOF 4424/* end confdefs.h. */ 4425 4426/* Override any gcc2 internal prototype to avoid an error. */ 4427#ifdef __cplusplus 4428extern "C" 4429#endif 4430/* We use char because int might match the return type of a gcc2 4431 builtin and then its argument prototype would still apply. */ 4432char shmat (); 4433int 4434main () 4435{ 4436shmat (); 4437 ; 4438 return 0; 4439} 4440_ACEOF 4441rm -f conftest.$ac_objext conftest$ac_exeext 4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4443 (eval $ac_link) 2>&5 4444 ac_status=$? 4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4446 (exit $ac_status); } && 4447 { ac_try='test -s conftest$ac_exeext' 4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4449 (eval $ac_try) 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); }; }; then 4453 ac_cv_lib_ipc_shmat=yes 4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458ac_cv_lib_ipc_shmat=no 4459fi 4460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4461LIBS=$ac_check_lib_save_LIBS 4462fi 4463echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 4464echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 4465if test $ac_cv_lib_ipc_shmat = yes; then 4466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 4467fi 4468 4469 fi 4470 fi 4471 4472 # Check for libraries that X11R6 Xt/Xaw programs need. 4473 ac_save_LDFLAGS=$LDFLAGS 4474 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 4475 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 4476 # check for ICE first), but we must link in the order -lSM -lICE or 4477 # we get undefined symbols. So assume we have SM if we have ICE. 4478 # These have to be linked with before -lX11, unlike the other 4479 # libraries we check for below, so use a different variable. 4480 # John Interrante, Karl Berry 4481 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 4482echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 4483if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 ac_check_lib_save_LIBS=$LIBS 4487LIBS="-lICE $X_EXTRA_LIBS $LIBS" 4488cat >conftest.$ac_ext <<_ACEOF 4489#line $LINENO "configure" 4490/* confdefs.h. */ 4491_ACEOF 4492cat confdefs.h >>conftest.$ac_ext 4493cat >>conftest.$ac_ext <<_ACEOF 4494/* end confdefs.h. */ 4495 4496/* Override any gcc2 internal prototype to avoid an error. */ 4497#ifdef __cplusplus 4498extern "C" 4499#endif 4500/* We use char because int might match the return type of a gcc2 4501 builtin and then its argument prototype would still apply. */ 4502char IceConnectionNumber (); 4503int 4504main () 4505{ 4506IceConnectionNumber (); 4507 ; 4508 return 0; 4509} 4510_ACEOF 4511rm -f conftest.$ac_objext conftest$ac_exeext 4512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4513 (eval $ac_link) 2>&5 4514 ac_status=$? 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4516 (exit $ac_status); } && 4517 { ac_try='test -s conftest$ac_exeext' 4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4519 (eval $ac_try) 2>&5 4520 ac_status=$? 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); }; }; then 4523 ac_cv_lib_ICE_IceConnectionNumber=yes 4524else 4525 echo "$as_me: failed program was:" >&5 4526sed 's/^/| /' conftest.$ac_ext >&5 4527 4528ac_cv_lib_ICE_IceConnectionNumber=no 4529fi 4530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4531LIBS=$ac_check_lib_save_LIBS 4532fi 4533echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 4534echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 4535if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 4536 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 4537fi 4538 4539 LDFLAGS=$ac_save_LDFLAGS 4540 4541fi 4542 4543 4544# Checks for libraries. 4545 4546echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 4547echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 4548if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then 4549 echo $ECHO_N "(cached) $ECHO_C" >&6 4550else 4551 ac_check_lib_save_LIBS=$LIBS 4552LIBS="-lGL $LIBS" 4553cat >conftest.$ac_ext <<_ACEOF 4554#line $LINENO "configure" 4555/* confdefs.h. */ 4556_ACEOF 4557cat confdefs.h >>conftest.$ac_ext 4558cat >>conftest.$ac_ext <<_ACEOF 4559/* end confdefs.h. */ 4560 4561/* Override any gcc2 internal prototype to avoid an error. */ 4562#ifdef __cplusplus 4563extern "C" 4564#endif 4565/* We use char because int might match the return type of a gcc2 4566 builtin and then its argument prototype would still apply. */ 4567char glLoadIdentity (); 4568int 4569main () 4570{ 4571glLoadIdentity (); 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576rm -f conftest.$ac_objext conftest$ac_exeext 4577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4578 (eval $ac_link) 2>&5 4579 ac_status=$? 4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4581 (exit $ac_status); } && 4582 { ac_try='test -s conftest$ac_exeext' 4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4584 (eval $ac_try) 2>&5 4585 ac_status=$? 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); }; }; then 4588 ac_cv_lib_GL_glLoadIdentity=yes 4589else 4590 echo "$as_me: failed program was:" >&5 4591sed 's/^/| /' conftest.$ac_ext >&5 4592 4593ac_cv_lib_GL_glLoadIdentity=no 4594fi 4595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4596LIBS=$ac_check_lib_save_LIBS 4597fi 4598echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 4599echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 4600if test $ac_cv_lib_GL_glLoadIdentity = yes; then 4601 cat >>confdefs.h <<_ACEOF 4602@%:@define HAVE_LIBGL 1 4603_ACEOF 4604 4605 LIBS="-lGL $LIBS" 4606 4607else 4608 4609echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 4610echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 4611if test "${ac_cv_lib_opengl32_main+set}" = set; then 4612 echo $ECHO_N "(cached) $ECHO_C" >&6 4613else 4614 ac_check_lib_save_LIBS=$LIBS 4615LIBS="-lopengl32 $LIBS" 4616cat >conftest.$ac_ext <<_ACEOF 4617#line $LINENO "configure" 4618/* confdefs.h. */ 4619_ACEOF 4620cat confdefs.h >>conftest.$ac_ext 4621cat >>conftest.$ac_ext <<_ACEOF 4622/* end confdefs.h. */ 4623 4624 4625int 4626main () 4627{ 4628main (); 4629 ; 4630 return 0; 4631} 4632_ACEOF 4633rm -f conftest.$ac_objext conftest$ac_exeext 4634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4635 (eval $ac_link) 2>&5 4636 ac_status=$? 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); } && 4639 { ac_try='test -s conftest$ac_exeext' 4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4641 (eval $ac_try) 2>&5 4642 ac_status=$? 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); }; }; then 4645 ac_cv_lib_opengl32_main=yes 4646else 4647 echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650ac_cv_lib_opengl32_main=no 4651fi 4652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4653LIBS=$ac_check_lib_save_LIBS 4654fi 4655echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 4656echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 4657if test $ac_cv_lib_opengl32_main = yes; then 4658 cat >>confdefs.h <<_ACEOF 4659@%:@define HAVE_LIBOPENGL32 1 4660_ACEOF 4661 4662 LIBS="-lopengl32 $LIBS" 4663 4664else 4665 { { echo "$as_me:$LINENO: error: Not found. Need OpenGL libraries." >&5 4666echo "$as_me: error: Not found. Need OpenGL libraries." >&2;} 4667 { (exit 1); exit 1; }; } 4668fi 4669 4670fi 4671 4672 4673# Checks for header files. 4674 4675# Checks for typedefs, structures, and compiler characteristics. 4676echo "$as_me:$LINENO: checking for egrep" >&5 4677echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4678if test "${ac_cv_prog_egrep+set}" = set; then 4679 echo $ECHO_N "(cached) $ECHO_C" >&6 4680else 4681 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4682 then ac_cv_prog_egrep='grep -E' 4683 else ac_cv_prog_egrep='egrep' 4684 fi 4685fi 4686echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4687echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4688 EGREP=$ac_cv_prog_egrep 4689 4690 4691echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4692echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4693if test "${ac_cv_header_stdc+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 cat >conftest.$ac_ext <<_ACEOF 4697#line $LINENO "configure" 4698/* confdefs.h. */ 4699_ACEOF 4700cat confdefs.h >>conftest.$ac_ext 4701cat >>conftest.$ac_ext <<_ACEOF 4702/* end confdefs.h. */ 4703#include <stdlib.h> 4704#include <stdarg.h> 4705#include <string.h> 4706#include <float.h> 4707 4708int 4709main () 4710{ 4711 4712 ; 4713 return 0; 4714} 4715_ACEOF 4716rm -f conftest.$ac_objext 4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4718 (eval $ac_compile) 2>&5 4719 ac_status=$? 4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4721 (exit $ac_status); } && 4722 { ac_try='test -s conftest.$ac_objext' 4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4724 (eval $ac_try) 2>&5 4725 ac_status=$? 4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727 (exit $ac_status); }; }; then 4728 ac_cv_header_stdc=yes 4729else 4730 echo "$as_me: failed program was:" >&5 4731sed 's/^/| /' conftest.$ac_ext >&5 4732 4733ac_cv_header_stdc=no 4734fi 4735rm -f conftest.$ac_objext conftest.$ac_ext 4736 4737if test $ac_cv_header_stdc = yes; then 4738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4739 cat >conftest.$ac_ext <<_ACEOF 4740#line $LINENO "configure" 4741/* confdefs.h. */ 4742_ACEOF 4743cat confdefs.h >>conftest.$ac_ext 4744cat >>conftest.$ac_ext <<_ACEOF 4745/* end confdefs.h. */ 4746#include <string.h> 4747 4748_ACEOF 4749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4750 $EGREP "memchr" >/dev/null 2>&1; then 4751 : 4752else 4753 ac_cv_header_stdc=no 4754fi 4755rm -f conftest* 4756 4757fi 4758 4759if test $ac_cv_header_stdc = yes; then 4760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4761 cat >conftest.$ac_ext <<_ACEOF 4762#line $LINENO "configure" 4763/* confdefs.h. */ 4764_ACEOF 4765cat confdefs.h >>conftest.$ac_ext 4766cat >>conftest.$ac_ext <<_ACEOF 4767/* end confdefs.h. */ 4768#include <stdlib.h> 4769 4770_ACEOF 4771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4772 $EGREP "free" >/dev/null 2>&1; then 4773 : 4774else 4775 ac_cv_header_stdc=no 4776fi 4777rm -f conftest* 4778 4779fi 4780 4781if test $ac_cv_header_stdc = yes; then 4782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4783 if test "$cross_compiling" = yes; then 4784 : 4785else 4786 cat >conftest.$ac_ext <<_ACEOF 4787#line $LINENO "configure" 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793#include <ctype.h> 4794#if ((' ' & 0x0FF) == 0x020) 4795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4797#else 4798# define ISLOWER(c) \ 4799 (('a' <= (c) && (c) <= 'i') \ 4800 || ('j' <= (c) && (c) <= 'r') \ 4801 || ('s' <= (c) && (c) <= 'z')) 4802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4803#endif 4804 4805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4806int 4807main () 4808{ 4809 int i; 4810 for (i = 0; i < 256; i++) 4811 if (XOR (islower (i), ISLOWER (i)) 4812 || toupper (i) != TOUPPER (i)) 4813 exit(2); 4814 exit (0); 4815} 4816_ACEOF 4817rm -f conftest$ac_exeext 4818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4819 (eval $ac_link) 2>&5 4820 ac_status=$? 4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4824 (eval $ac_try) 2>&5 4825 ac_status=$? 4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4827 (exit $ac_status); }; }; then 4828 : 4829else 4830 echo "$as_me: program exited with status $ac_status" >&5 4831echo "$as_me: failed program was:" >&5 4832sed 's/^/| /' conftest.$ac_ext >&5 4833 4834( exit $ac_status ) 4835ac_cv_header_stdc=no 4836fi 4837rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4838fi 4839fi 4840fi 4841echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4842echo "${ECHO_T}$ac_cv_header_stdc" >&6 4843if test $ac_cv_header_stdc = yes; then 4844 4845cat >>confdefs.h <<\_ACEOF 4846@%:@define STDC_HEADERS 1 4847_ACEOF 4848 4849fi 4850 4851# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4862 inttypes.h stdint.h unistd.h 4863do 4864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4865echo "$as_me:$LINENO: checking for $ac_header" >&5 4866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4867if eval "test \"\${$as_ac_Header+set}\" = set"; then 4868 echo $ECHO_N "(cached) $ECHO_C" >&6 4869else 4870 cat >conftest.$ac_ext <<_ACEOF 4871#line $LINENO "configure" 4872/* confdefs.h. */ 4873_ACEOF 4874cat confdefs.h >>conftest.$ac_ext 4875cat >>conftest.$ac_ext <<_ACEOF 4876/* end confdefs.h. */ 4877$ac_includes_default 4878 4879@%:@include <$ac_header> 4880_ACEOF 4881rm -f conftest.$ac_objext 4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4883 (eval $ac_compile) 2>&5 4884 ac_status=$? 4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4886 (exit $ac_status); } && 4887 { ac_try='test -s conftest.$ac_objext' 4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4889 (eval $ac_try) 2>&5 4890 ac_status=$? 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); }; }; then 4893 eval "$as_ac_Header=yes" 4894else 4895 echo "$as_me: failed program was:" >&5 4896sed 's/^/| /' conftest.$ac_ext >&5 4897 4898eval "$as_ac_Header=no" 4899fi 4900rm -f conftest.$ac_objext conftest.$ac_ext 4901fi 4902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4904if test `eval echo '${'$as_ac_Header'}'` = yes; then 4905 cat >>confdefs.h <<_ACEOF 4906@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4907_ACEOF 4908 4909fi 4910 4911done 4912 4913 4914echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 4915echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 4916if test "${ac_cv_header_stdbool_h+set}" = set; then 4917 echo $ECHO_N "(cached) $ECHO_C" >&6 4918else 4919 cat >conftest.$ac_ext <<_ACEOF 4920#line $LINENO "configure" 4921/* confdefs.h. */ 4922_ACEOF 4923cat confdefs.h >>conftest.$ac_ext 4924cat >>conftest.$ac_ext <<_ACEOF 4925/* end confdefs.h. */ 4926 4927#include <stdbool.h> 4928#ifndef bool 4929# error bool is not defined 4930#endif 4931#ifndef false 4932# error false is not defined 4933#endif 4934#if false 4935# error false is not 0 4936#endif 4937#ifndef true 4938# error true is not defined 4939#endif 4940#if true != 1 4941# error true is not 1 4942#endif 4943#ifndef __bool_true_false_are_defined 4944# error __bool_true_false_are_defined is not defined 4945#endif 4946 4947 struct s { _Bool s: 1; _Bool t; } s; 4948 4949 char a[true == 1 ? 1 : -1]; 4950 char b[false == 0 ? 1 : -1]; 4951 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 4952 char d[(bool) -0.5 == true ? 1 : -1]; 4953 bool e = &s; 4954 char f[(_Bool) -0.0 == false ? 1 : -1]; 4955 char g[true]; 4956 char h[sizeof (_Bool)]; 4957 char i[sizeof s.t]; 4958 4959int 4960main () 4961{ 4962 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967rm -f conftest.$ac_objext 4968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4969 (eval $ac_compile) 2>&5 4970 ac_status=$? 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); } && 4973 { ac_try='test -s conftest.$ac_objext' 4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4975 (eval $ac_try) 2>&5 4976 ac_status=$? 4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978 (exit $ac_status); }; }; then 4979 ac_cv_header_stdbool_h=yes 4980else 4981 echo "$as_me: failed program was:" >&5 4982sed 's/^/| /' conftest.$ac_ext >&5 4983 4984ac_cv_header_stdbool_h=no 4985fi 4986rm -f conftest.$ac_objext conftest.$ac_ext 4987fi 4988echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 4989echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 4990echo "$as_me:$LINENO: checking for _Bool" >&5 4991echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 4992if test "${ac_cv_type__Bool+set}" = set; then 4993 echo $ECHO_N "(cached) $ECHO_C" >&6 4994else 4995 cat >conftest.$ac_ext <<_ACEOF 4996#line $LINENO "configure" 4997/* confdefs.h. */ 4998_ACEOF 4999cat confdefs.h >>conftest.$ac_ext 5000cat >>conftest.$ac_ext <<_ACEOF 5001/* end confdefs.h. */ 5002$ac_includes_default 5003int 5004main () 5005{ 5006if ((_Bool *) 0) 5007 return 0; 5008if (sizeof (_Bool)) 5009 return 0; 5010 ; 5011 return 0; 5012} 5013_ACEOF 5014rm -f conftest.$ac_objext 5015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5016 (eval $ac_compile) 2>&5 5017 ac_status=$? 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); } && 5020 { ac_try='test -s conftest.$ac_objext' 5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5022 (eval $ac_try) 2>&5 5023 ac_status=$? 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); }; }; then 5026 ac_cv_type__Bool=yes 5027else 5028 echo "$as_me: failed program was:" >&5 5029sed 's/^/| /' conftest.$ac_ext >&5 5030 5031ac_cv_type__Bool=no 5032fi 5033rm -f conftest.$ac_objext conftest.$ac_ext 5034fi 5035echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 5036echo "${ECHO_T}$ac_cv_type__Bool" >&6 5037if test $ac_cv_type__Bool = yes; then 5038 5039cat >>confdefs.h <<_ACEOF 5040@%:@define HAVE__BOOL 1 5041_ACEOF 5042 5043 5044fi 5045 5046if test $ac_cv_header_stdbool_h = yes; then 5047 5048cat >>confdefs.h <<\_ACEOF 5049@%:@define HAVE_STDBOOL_H 1 5050_ACEOF 5051 5052fi 5053 5054echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5055echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5056if test "${ac_cv_c_const+set}" = set; then 5057 echo $ECHO_N "(cached) $ECHO_C" >&6 5058else 5059 cat >conftest.$ac_ext <<_ACEOF 5060#line $LINENO "configure" 5061/* confdefs.h. */ 5062_ACEOF 5063cat confdefs.h >>conftest.$ac_ext 5064cat >>conftest.$ac_ext <<_ACEOF 5065/* end confdefs.h. */ 5066 5067int 5068main () 5069{ 5070/* FIXME: Include the comments suggested by Paul. */ 5071#ifndef __cplusplus 5072 /* Ultrix mips cc rejects this. */ 5073 typedef int charset[2]; 5074 const charset x; 5075 /* SunOS 4.1.1 cc rejects this. */ 5076 char const *const *ccp; 5077 char **p; 5078 /* NEC SVR4.0.2 mips cc rejects this. */ 5079 struct point {int x, y;}; 5080 static struct point const zero = {0,0}; 5081 /* AIX XL C 1.02.0.0 rejects this. 5082 It does not let you subtract one const X* pointer from another in 5083 an arm of an if-expression whose if-part is not a constant 5084 expression */ 5085 const char *g = "string"; 5086 ccp = &g + (g ? g-g : 0); 5087 /* HPUX 7.0 cc rejects these. */ 5088 ++ccp; 5089 p = (char**) ccp; 5090 ccp = (char const *const *) p; 5091 { /* SCO 3.2v4 cc rejects this. */ 5092 char *t; 5093 char const *s = 0 ? (char *) 0 : (char const *) 0; 5094 5095 *t++ = 0; 5096 } 5097 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5098 int x[] = {25, 17}; 5099 const int *foo = &x[0]; 5100 ++foo; 5101 } 5102 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5103 typedef const int *iptr; 5104 iptr p = 0; 5105 ++p; 5106 } 5107 { /* AIX XL C 1.02.0.0 rejects this saying 5108 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5109 struct s { int j; const int *ap[3]; }; 5110 struct s *b; b->j = 5; 5111 } 5112 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5113 const int foo = 10; 5114 } 5115#endif 5116 5117 ; 5118 return 0; 5119} 5120_ACEOF 5121rm -f conftest.$ac_objext 5122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5123 (eval $ac_compile) 2>&5 5124 ac_status=$? 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); } && 5127 { ac_try='test -s conftest.$ac_objext' 5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5129 (eval $ac_try) 2>&5 5130 ac_status=$? 5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5132 (exit $ac_status); }; }; then 5133 ac_cv_c_const=yes 5134else 5135 echo "$as_me: failed program was:" >&5 5136sed 's/^/| /' conftest.$ac_ext >&5 5137 5138ac_cv_c_const=no 5139fi 5140rm -f conftest.$ac_objext conftest.$ac_ext 5141fi 5142echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5143echo "${ECHO_T}$ac_cv_c_const" >&6 5144if test $ac_cv_c_const = no; then 5145 5146cat >>confdefs.h <<\_ACEOF 5147@%:@define const 5148_ACEOF 5149 5150fi 5151 5152 5153# Checks for library functions. 5154 5155for ac_func in sqrt 5156do 5157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5158echo "$as_me:$LINENO: checking for $ac_func" >&5 5159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5160if eval "test \"\${$as_ac_var+set}\" = set"; then 5161 echo $ECHO_N "(cached) $ECHO_C" >&6 5162else 5163 cat >conftest.$ac_ext <<_ACEOF 5164#line $LINENO "configure" 5165/* confdefs.h. */ 5166_ACEOF 5167cat confdefs.h >>conftest.$ac_ext 5168cat >>conftest.$ac_ext <<_ACEOF 5169/* end confdefs.h. */ 5170/* System header to define __stub macros and hopefully few prototypes, 5171 which can conflict with char $ac_func (); below. */ 5172#include <assert.h> 5173/* Override any gcc2 internal prototype to avoid an error. */ 5174#ifdef __cplusplus 5175extern "C" 5176{ 5177#endif 5178/* We use char because int might match the return type of a gcc2 5179 builtin and then its argument prototype would still apply. */ 5180char $ac_func (); 5181/* The GNU C library defines this for functions which it implements 5182 to always fail with ENOSYS. Some functions are actually named 5183 something starting with __ and the normal name is an alias. */ 5184#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5185choke me 5186#else 5187char (*f) () = $ac_func; 5188#endif 5189#ifdef __cplusplus 5190} 5191#endif 5192 5193int 5194main () 5195{ 5196 5197 ; 5198 return 0; 5199} 5200_ACEOF 5201rm -f conftest.$ac_objext conftest$ac_exeext 5202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5203 (eval $ac_link) 2>&5 5204 ac_status=$? 5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5206 (exit $ac_status); } && 5207 { ac_try='test -s conftest$ac_exeext' 5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5209 (eval $ac_try) 2>&5 5210 ac_status=$? 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); }; }; then 5213 eval "$as_ac_var=yes" 5214else 5215 echo "$as_me: failed program was:" >&5 5216sed 's/^/| /' conftest.$ac_ext >&5 5217 5218eval "$as_ac_var=no" 5219fi 5220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5221fi 5222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5224if test `eval echo '${'$as_ac_var'}'` = yes; then 5225 cat >>confdefs.h <<_ACEOF 5226@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5227_ACEOF 5228 5229fi 5230done 5231 5232 5233# Check for wxWidgets 5234vers=`wx-config --version | awk 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'` 5235echo "$as_me:$LINENO: checking for wxWidgets 2.6.0 or later" >&5 5236echo $ECHO_N "checking for wxWidgets 2.6.0 or later... $ECHO_C" >&6 5237if test "$vers" -lt 2006000; then 5238 { { echo "$as_me:$LINENO: error: no" >&5 5239echo "$as_me: error: no" >&2;} 5240 { (exit 1); exit 1; }; } 5241else 5242 echo "$as_me:$LINENO: result: yes" >&5 5243echo "${ECHO_T}yes" >&6 5244fi 5245 5246 ac_config_files="$ac_config_files makefile" 5247 5248cat >confcache <<\_ACEOF 5249# This file is a shell script that caches the results of configure 5250# tests run on this system so they can be shared between configure 5251# scripts and configure runs, see configure's option --config-cache. 5252# It is not useful on other systems. If it contains results you don't 5253# want to keep, you may remove or edit it. 5254# 5255# config.status only pays attention to the cache file if you give it 5256# the --recheck option to rerun configure. 5257# 5258# `ac_cv_env_foo' variables (set or unset) will be overridden when 5259# loading this file, other *unset* `ac_cv_foo' will be assigned the 5260# following values. 5261 5262_ACEOF 5263 5264# The following way of writing the cache mishandles newlines in values, 5265# but we know of no workaround that is simple, portable, and efficient. 5266# So, don't put newlines in cache variables' values. 5267# Ultrix sh set writes to stderr and can't be redirected directly, 5268# and sets the high bit in the cache file unless we assign to the vars. 5269{ 5270 (set) 2>&1 | 5271 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5272 *ac_space=\ *) 5273 # `set' does not quote correctly, so add quotes (double-quote 5274 # substitution turns \\\\ into \\, and sed turns \\ into \). 5275 sed -n \ 5276 "s/'/'\\\\''/g; 5277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5278 ;; 5279 *) 5280 # `set' quotes correctly as required by POSIX, so do not add quotes. 5281 sed -n \ 5282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5283 ;; 5284 esac; 5285} | 5286 sed ' 5287 t clear 5288 : clear 5289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5290 t end 5291 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5292 : end' >>confcache 5293if diff $cache_file confcache >/dev/null 2>&1; then :; else 5294 if test -w $cache_file; then 5295 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5296 cat confcache >$cache_file 5297 else 5298 echo "not updating unwritable cache $cache_file" 5299 fi 5300fi 5301rm -f confcache 5302 5303test "x$prefix" = xNONE && prefix=$ac_default_prefix 5304# Let make expand exec_prefix. 5305test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5306 5307# VPATH may cause trouble with some makes, so we remove $(srcdir), 5308# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5309# trailing colons and then remove the whole line if VPATH becomes empty 5310# (actually we leave an empty line to preserve line numbers). 5311if test "x$srcdir" = x.; then 5312 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5313s/:*\$(srcdir):*/:/; 5314s/:*\${srcdir}:*/:/; 5315s/:*@srcdir@:*/:/; 5316s/^\([^=]*=[ ]*\):*/\1/; 5317s/:*$//; 5318s/^[^=]*=[ ]*$//; 5319}' 5320fi 5321 5322DEFS=-DHAVE_CONFIG_H 5323 5324ac_libobjs= 5325ac_ltlibobjs= 5326for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 5327 # 1. Remove the extension, and $U if already installed. 5328 ac_i=`echo "$ac_i" | 5329 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5330 # 2. Add them. 5331 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5332 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5333done 5334LIB@&t@OBJS=$ac_libobjs 5335 5336LTLIBOBJS=$ac_ltlibobjs 5337 5338 5339if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5340 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 5341Usually this means the macro was only invoked conditionally." >&5 5342echo "$as_me: error: conditional \"AMDEP\" was never defined. 5343Usually this means the macro was only invoked conditionally." >&2;} 5344 { (exit 1); exit 1; }; } 5345fi 5346if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 5347 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 5348Usually this means the macro was only invoked conditionally." >&5 5349echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 5350Usually this means the macro was only invoked conditionally." >&2;} 5351 { (exit 1); exit 1; }; } 5352fi 5353if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5354 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 5355Usually this means the macro was only invoked conditionally." >&5 5356echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 5357Usually this means the macro was only invoked conditionally." >&2;} 5358 { (exit 1); exit 1; }; } 5359fi 5360 5361: ${CONFIG_STATUS=./config.status} 5362ac_clean_files_save=$ac_clean_files 5363ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5364{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5365echo "$as_me: creating $CONFIG_STATUS" >&6;} 5366cat >$CONFIG_STATUS <<_ACEOF 5367#! $SHELL 5368# Generated by $as_me. 5369# Run this file to recreate the current configuration. 5370# Compiler output produced by configure, useful for debugging 5371# configure, is in config.log if it exists. 5372 5373debug=false 5374ac_cs_recheck=false 5375ac_cs_silent=false 5376SHELL=\${CONFIG_SHELL-$SHELL} 5377_ACEOF 5378 5379cat >>$CONFIG_STATUS <<\_ACEOF 5380## --------------------- ## 5381## M4sh Initialization. ## 5382## --------------------- ## 5383 5384# Be Bourne compatible 5385if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5386 emulate sh 5387 NULLCMD=: 5388 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5389 # is contrary to our usage. Disable this feature. 5390 alias -g '${1+"$@"}'='"$@"' 5391elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5392 set -o posix 5393fi 5394 5395# Support unset when possible. 5396if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5397 as_unset=unset 5398else 5399 as_unset=false 5400fi 5401 5402 5403# Work around bugs in pre-3.0 UWIN ksh. 5404$as_unset ENV MAIL MAILPATH 5405PS1='$ ' 5406PS2='> ' 5407PS4='+ ' 5408 5409# NLS nuisances. 5410for as_var in \ 5411 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5412 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5413 LC_TELEPHONE LC_TIME 5414do 5415 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 5416 eval $as_var=C; export $as_var 5417 else 5418 $as_unset $as_var 5419 fi 5420done 5421 5422# Required to use basename. 5423if expr a : '\(a\)' >/dev/null 2>&1; then 5424 as_expr=expr 5425else 5426 as_expr=false 5427fi 5428 5429if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5430 as_basename=basename 5431else 5432 as_basename=false 5433fi 5434 5435 5436# Name of the executable. 5437as_me=`$as_basename "$0" || 5438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5439 X"$0" : 'X\(//\)$' \| \ 5440 X"$0" : 'X\(/\)$' \| \ 5441 . : '\(.\)' 2>/dev/null || 5442echo X/"$0" | 5443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5444 /^X\/\(\/\/\)$/{ s//\1/; q; } 5445 /^X\/\(\/\).*/{ s//\1/; q; } 5446 s/.*/./; q'` 5447 5448 5449# PATH needs CR, and LINENO needs CR and PATH. 5450# Avoid depending upon Character Ranges. 5451as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5452as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5453as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5454as_cr_digits='0123456789' 5455as_cr_alnum=$as_cr_Letters$as_cr_digits 5456 5457# The user is always right. 5458if test "${PATH_SEPARATOR+set}" != set; then 5459 echo "#! /bin/sh" >conf$$.sh 5460 echo "exit 0" >>conf$$.sh 5461 chmod +x conf$$.sh 5462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5463 PATH_SEPARATOR=';' 5464 else 5465 PATH_SEPARATOR=: 5466 fi 5467 rm -f conf$$.sh 5468fi 5469 5470 5471 as_lineno_1=$LINENO 5472 as_lineno_2=$LINENO 5473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5474 test "x$as_lineno_1" != "x$as_lineno_2" && 5475 test "x$as_lineno_3" = "x$as_lineno_2" || { 5476 # Find who we are. Look in the path if we contain no path at all 5477 # relative or not. 5478 case $0 in 5479 *[\\/]* ) as_myself=$0 ;; 5480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5481for as_dir in $PATH 5482do 5483 IFS=$as_save_IFS 5484 test -z "$as_dir" && as_dir=. 5485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5486done 5487 5488 ;; 5489 esac 5490 # We did not find ourselves, most probably we were run as `sh COMMAND' 5491 # in which case we are not to be found in the path. 5492 if test "x$as_myself" = x; then 5493 as_myself=$0 5494 fi 5495 if test ! -f "$as_myself"; then 5496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5497echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5498 { (exit 1); exit 1; }; } 5499 fi 5500 case $CONFIG_SHELL in 5501 '') 5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for as_base in sh bash ksh sh5; do 5508 case $as_dir in 5509 /*) 5510 if ("$as_dir/$as_base" -c ' 5511 as_lineno_1=$LINENO 5512 as_lineno_2=$LINENO 5513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5514 test "x$as_lineno_1" != "x$as_lineno_2" && 5515 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5516 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5517 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5518 CONFIG_SHELL=$as_dir/$as_base 5519 export CONFIG_SHELL 5520 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5521 fi;; 5522 esac 5523 done 5524done 5525;; 5526 esac 5527 5528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5529 # uniformly replaced by the line number. The first 'sed' inserts a 5530 # line-number line before each line; the second 'sed' does the real 5531 # work. The second script uses 'N' to pair each line-number line 5532 # with the numbered line, and appends trailing '-' during 5533 # substitution so that $LINENO is not a special case at line end. 5534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5536 sed '=' <$as_myself | 5537 sed ' 5538 N 5539 s,$,-, 5540 : loop 5541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5542 t loop 5543 s,-$,, 5544 s,^['$as_cr_digits']*\n,, 5545 ' >$as_me.lineno && 5546 chmod +x $as_me.lineno || 5547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5548echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5549 { (exit 1); exit 1; }; } 5550 5551 # Don't try to exec as it changes $[0], causing all sort of problems 5552 # (the dirname of $[0] is not the place where we might find the 5553 # original and so on. Autoconf is especially sensible to this). 5554 . ./$as_me.lineno 5555 # Exit status is that of the last command. 5556 exit 5557} 5558 5559 5560case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5561 *c*,-n*) ECHO_N= ECHO_C=' 5562' ECHO_T=' ' ;; 5563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5565esac 5566 5567if expr a : '\(a\)' >/dev/null 2>&1; then 5568 as_expr=expr 5569else 5570 as_expr=false 5571fi 5572 5573rm -f conf$$ conf$$.exe conf$$.file 5574echo >conf$$.file 5575if ln -s conf$$.file conf$$ 2>/dev/null; then 5576 # We could just check for DJGPP; but this test a) works b) is more generic 5577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5578 if test -f conf$$.exe; then 5579 # Don't use ln at all; we don't have any links 5580 as_ln_s='cp -p' 5581 else 5582 as_ln_s='ln -s' 5583 fi 5584elif ln conf$$.file conf$$ 2>/dev/null; then 5585 as_ln_s=ln 5586else 5587 as_ln_s='cp -p' 5588fi 5589rm -f conf$$ conf$$.exe conf$$.file 5590 5591if mkdir -p . 2>/dev/null; then 5592 as_mkdir_p=: 5593else 5594 as_mkdir_p=false 5595fi 5596 5597as_executable_p="test -f" 5598 5599# Sed expression to map a string onto a valid CPP name. 5600as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 5601 5602# Sed expression to map a string onto a valid variable name. 5603as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 5604 5605 5606# IFS 5607# We need space, tab and new line, in precisely that order. 5608as_nl=' 5609' 5610IFS=" $as_nl" 5611 5612# CDPATH. 5613$as_unset CDPATH 5614 5615exec 6>&1 5616 5617# Open the log real soon, to keep \$[0] and so on meaningful, and to 5618# report actual input values of CONFIG_FILES etc. instead of their 5619# values after options handling. Logging --version etc. is OK. 5620exec 5>>config.log 5621{ 5622 echo 5623 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 5624@%:@@%:@ Running $as_me. @%:@@%:@ 5625_ASBOX 5626} >&5 5627cat >&5 <<_CSEOF 5628 5629This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was 5630generated by GNU Autoconf 2.56. Invocation command line was 5631 5632 CONFIG_FILES = $CONFIG_FILES 5633 CONFIG_HEADERS = $CONFIG_HEADERS 5634 CONFIG_LINKS = $CONFIG_LINKS 5635 CONFIG_COMMANDS = $CONFIG_COMMANDS 5636 $ $0 $@ 5637 5638_CSEOF 5639echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5640echo >&5 5641_ACEOF 5642 5643# Files that config.status was made for. 5644if test -n "$ac_config_files"; then 5645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5646fi 5647 5648if test -n "$ac_config_headers"; then 5649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5650fi 5651 5652if test -n "$ac_config_links"; then 5653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5654fi 5655 5656if test -n "$ac_config_commands"; then 5657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5658fi 5659 5660cat >>$CONFIG_STATUS <<\_ACEOF 5661 5662ac_cs_usage="\ 5663\`$as_me' instantiates files from templates according to the 5664current configuration. 5665 5666Usage: $0 [OPTIONS] [FILE]... 5667 5668 -h, --help print this help, then exit 5669 -V, --version print version number, then exit 5670 -q, --quiet do not print progress messages 5671 -d, --debug don't remove temporary files 5672 --recheck update $as_me by reconfiguring in the same conditions 5673 --file=FILE[:TEMPLATE] 5674 instantiate the configuration file FILE 5675 --header=FILE[:TEMPLATE] 5676 instantiate the configuration header FILE 5677 5678Configuration files: 5679$config_files 5680 5681Configuration headers: 5682$config_headers 5683 5684Configuration commands: 5685$config_commands 5686 5687Report bugs to <bug-autoconf@gnu.org>." 5688_ACEOF 5689 5690cat >>$CONFIG_STATUS <<_ACEOF 5691ac_cs_version="\\ 5692FULL-PACKAGE-NAME config.status VERSION 5693configured by $0, generated by GNU Autoconf 2.56, 5694 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5695 5696Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5697Free Software Foundation, Inc. 5698This config.status script is free software; the Free Software Foundation 5699gives unlimited permission to copy, distribute and modify it." 5700srcdir=$srcdir 5701INSTALL="$INSTALL" 5702_ACEOF 5703 5704cat >>$CONFIG_STATUS <<\_ACEOF 5705# If no file are specified by the user, then we need to provide default 5706# value. By we need to know if files were specified by the user. 5707ac_need_defaults=: 5708while test $# != 0 5709do 5710 case $1 in 5711 --*=*) 5712 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5713 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5714 ac_shift=: 5715 ;; 5716 -*) 5717 ac_option=$1 5718 ac_optarg=$2 5719 ac_shift=shift 5720 ;; 5721 *) # This is not an option, so the user has probably given explicit 5722 # arguments. 5723 ac_option=$1 5724 ac_need_defaults=false;; 5725 esac 5726 5727 case $ac_option in 5728 # Handling of the options. 5729_ACEOF 5730cat >>$CONFIG_STATUS <<\_ACEOF 5731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5732 ac_cs_recheck=: ;; 5733 --version | --vers* | -V ) 5734 echo "$ac_cs_version"; exit 0 ;; 5735 --he | --h) 5736 # Conflict between --help and --header 5737 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5738Try \`$0 --help' for more information." >&5 5739echo "$as_me: error: ambiguous option: $1 5740Try \`$0 --help' for more information." >&2;} 5741 { (exit 1); exit 1; }; };; 5742 --help | --hel | -h ) 5743 echo "$ac_cs_usage"; exit 0 ;; 5744 --debug | --d* | -d ) 5745 debug=: ;; 5746 --file | --fil | --fi | --f ) 5747 $ac_shift 5748 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5749 ac_need_defaults=false;; 5750 --header | --heade | --head | --hea ) 5751 $ac_shift 5752 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5753 ac_need_defaults=false;; 5754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5755 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5756 ac_cs_silent=: ;; 5757 5758 # This is an error. 5759 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5760Try \`$0 --help' for more information." >&5 5761echo "$as_me: error: unrecognized option: $1 5762Try \`$0 --help' for more information." >&2;} 5763 { (exit 1); exit 1; }; } ;; 5764 5765 *) ac_config_targets="$ac_config_targets $1" ;; 5766 5767 esac 5768 shift 5769done 5770 5771ac_configure_extra_args= 5772 5773if $ac_cs_silent; then 5774 exec 6>/dev/null 5775 ac_configure_extra_args="$ac_configure_extra_args --silent" 5776fi 5777 5778_ACEOF 5779cat >>$CONFIG_STATUS <<_ACEOF 5780if \$ac_cs_recheck; then 5781 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5782 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5783fi 5784 5785_ACEOF 5786 5787cat >>$CONFIG_STATUS <<_ACEOF 5788# 5789# INIT-COMMANDS section. 5790# 5791 5792AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5793 5794_ACEOF 5795 5796 5797 5798cat >>$CONFIG_STATUS <<\_ACEOF 5799for ac_config_target in $ac_config_targets 5800do 5801 case "$ac_config_target" in 5802 # Handling of arguments. 5803 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 5804 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5805 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5806 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5807echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5808 { (exit 1); exit 1; }; };; 5809 esac 5810done 5811 5812# If the user did not use the arguments to specify the items to instantiate, 5813# then the envvar interface is used. Set only those that are not. 5814# We use the long form for the default assignment because of an extremely 5815# bizarre bug on SunOS 4.1.3. 5816if $ac_need_defaults; then 5817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5820fi 5821 5822# Have a temporary directory for convenience. Make it in the build tree 5823# simply because there is no reason to put it here, and in addition, 5824# creating and moving files from /tmp can sometimes cause problems. 5825# Create a temporary directory, and hook for its removal unless debugging. 5826$debug || 5827{ 5828 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5829 trap '{ (exit 1); exit 1; }' 1 2 13 15 5830} 5831 5832# Create a (secure) tmp directory for tmp files. 5833 5834{ 5835 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5836 test -n "$tmp" && test -d "$tmp" 5837} || 5838{ 5839 tmp=./confstat$$-$RANDOM 5840 (umask 077 && mkdir $tmp) 5841} || 5842{ 5843 echo "$me: cannot create a temporary directory in ." >&2 5844 { (exit 1); exit 1; } 5845} 5846 5847_ACEOF 5848 5849cat >>$CONFIG_STATUS <<_ACEOF 5850 5851# 5852# CONFIG_FILES section. 5853# 5854 5855# No need to generate the scripts if there are no CONFIG_FILES. 5856# This happens for instance when ./config.status config.h 5857if test -n "\$CONFIG_FILES"; then 5858 # Protect against being on the right side of a sed subst in config.status. 5859 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5860 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5861s,@SHELL@,$SHELL,;t t 5862s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5863s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5864s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5865s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5866s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5867s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5868s,@exec_prefix@,$exec_prefix,;t t 5869s,@prefix@,$prefix,;t t 5870s,@program_transform_name@,$program_transform_name,;t t 5871s,@bindir@,$bindir,;t t 5872s,@sbindir@,$sbindir,;t t 5873s,@libexecdir@,$libexecdir,;t t 5874s,@datadir@,$datadir,;t t 5875s,@sysconfdir@,$sysconfdir,;t t 5876s,@sharedstatedir@,$sharedstatedir,;t t 5877s,@localstatedir@,$localstatedir,;t t 5878s,@libdir@,$libdir,;t t 5879s,@includedir@,$includedir,;t t 5880s,@oldincludedir@,$oldincludedir,;t t 5881s,@infodir@,$infodir,;t t 5882s,@mandir@,$mandir,;t t 5883s,@build_alias@,$build_alias,;t t 5884s,@host_alias@,$host_alias,;t t 5885s,@target_alias@,$target_alias,;t t 5886s,@DEFS@,$DEFS,;t t 5887s,@ECHO_C@,$ECHO_C,;t t 5888s,@ECHO_N@,$ECHO_N,;t t 5889s,@ECHO_T@,$ECHO_T,;t t 5890s,@LIBS@,$LIBS,;t t 5891s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5892s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5893s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5894s,@CYGPATH_W@,$CYGPATH_W,;t t 5895s,@PACKAGE@,$PACKAGE,;t t 5896s,@VERSION@,$VERSION,;t t 5897s,@ACLOCAL@,$ACLOCAL,;t t 5898s,@AUTOCONF@,$AUTOCONF,;t t 5899s,@AUTOMAKE@,$AUTOMAKE,;t t 5900s,@AUTOHEADER@,$AUTOHEADER,;t t 5901s,@MAKEINFO@,$MAKEINFO,;t t 5902s,@AMTAR@,$AMTAR,;t t 5903s,@install_sh@,$install_sh,;t t 5904s,@STRIP@,$STRIP,;t t 5905s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 5906s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 5907s,@AWK@,$AWK,;t t 5908s,@SET_MAKE@,$SET_MAKE,;t t 5909s,@CXX@,$CXX,;t t 5910s,@CXXFLAGS@,$CXXFLAGS,;t t 5911s,@LDFLAGS@,$LDFLAGS,;t t 5912s,@CPPFLAGS@,$CPPFLAGS,;t t 5913s,@ac_ct_CXX@,$ac_ct_CXX,;t t 5914s,@EXEEXT@,$EXEEXT,;t t 5915s,@OBJEXT@,$OBJEXT,;t t 5916s,@DEPDIR@,$DEPDIR,;t t 5917s,@am__include@,$am__include,;t t 5918s,@am__quote@,$am__quote,;t t 5919s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 5920s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 5921s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 5922s,@CXXDEPMODE@,$CXXDEPMODE,;t t 5923s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 5924s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 5925s,@CC@,$CC,;t t 5926s,@CFLAGS@,$CFLAGS,;t t 5927s,@ac_ct_CC@,$ac_ct_CC,;t t 5928s,@CCDEPMODE@,$CCDEPMODE,;t t 5929s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 5930s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 5931s,@CPP@,$CPP,;t t 5932s,@X_CFLAGS@,$X_CFLAGS,;t t 5933s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 5934s,@X_LIBS@,$X_LIBS,;t t 5935s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 5936s,@EGREP@,$EGREP,;t t 5937s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t 5938s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5939CEOF 5940 5941_ACEOF 5942 5943 cat >>$CONFIG_STATUS <<\_ACEOF 5944 # Split the substitutions into bite-sized pieces for seds with 5945 # small command number limits, like on Digital OSF/1 and HP-UX. 5946 ac_max_sed_lines=48 5947 ac_sed_frag=1 # Number of current file. 5948 ac_beg=1 # First line for current file. 5949 ac_end=$ac_max_sed_lines # Line after last line for current file. 5950 ac_more_lines=: 5951 ac_sed_cmds= 5952 while $ac_more_lines; do 5953 if test $ac_beg -gt 1; then 5954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5955 else 5956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5957 fi 5958 if test ! -s $tmp/subs.frag; then 5959 ac_more_lines=false 5960 else 5961 # The purpose of the label and of the branching condition is to 5962 # speed up the sed processing (if there are no `@' at all, there 5963 # is no need to browse any of the substitutions). 5964 # These are the two extra sed commands mentioned above. 5965 (echo ':t 5966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5967 if test -z "$ac_sed_cmds"; then 5968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5969 else 5970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5971 fi 5972 ac_sed_frag=`expr $ac_sed_frag + 1` 5973 ac_beg=$ac_end 5974 ac_end=`expr $ac_end + $ac_max_sed_lines` 5975 fi 5976 done 5977 if test -z "$ac_sed_cmds"; then 5978 ac_sed_cmds=cat 5979 fi 5980fi # test -n "$CONFIG_FILES" 5981 5982_ACEOF 5983cat >>$CONFIG_STATUS <<\_ACEOF 5984for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5986 case $ac_file in 5987 - | *:- | *:-:* ) # input from stdin 5988 cat >$tmp/stdin 5989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5993 * ) ac_file_in=$ac_file.in ;; 5994 esac 5995 5996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5997 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5999 X"$ac_file" : 'X\(//\)[^/]' \| \ 6000 X"$ac_file" : 'X\(//\)$' \| \ 6001 X"$ac_file" : 'X\(/\)' \| \ 6002 . : '\(.\)' 2>/dev/null || 6003echo X"$ac_file" | 6004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6005 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6006 /^X\(\/\/\)$/{ s//\1/; q; } 6007 /^X\(\/\).*/{ s//\1/; q; } 6008 s/.*/./; q'` 6009 { if $as_mkdir_p; then 6010 mkdir -p "$ac_dir" 6011 else 6012 as_dir="$ac_dir" 6013 as_dirs= 6014 while test ! -d "$as_dir"; do 6015 as_dirs="$as_dir $as_dirs" 6016 as_dir=`(dirname "$as_dir") 2>/dev/null || 6017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6018 X"$as_dir" : 'X\(//\)[^/]' \| \ 6019 X"$as_dir" : 'X\(//\)$' \| \ 6020 X"$as_dir" : 'X\(/\)' \| \ 6021 . : '\(.\)' 2>/dev/null || 6022echo X"$as_dir" | 6023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6024 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6025 /^X\(\/\/\)$/{ s//\1/; q; } 6026 /^X\(\/\).*/{ s//\1/; q; } 6027 s/.*/./; q'` 6028 done 6029 test ! -n "$as_dirs" || mkdir $as_dirs 6030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6031echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6032 { (exit 1); exit 1; }; }; } 6033 6034 ac_builddir=. 6035 6036if test "$ac_dir" != .; then 6037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6038 # A "../" for each directory in $ac_dir_suffix. 6039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6040else 6041 ac_dir_suffix= ac_top_builddir= 6042fi 6043 6044case $srcdir in 6045 .) # No --srcdir option. We are building in place. 6046 ac_srcdir=. 6047 if test -z "$ac_top_builddir"; then 6048 ac_top_srcdir=. 6049 else 6050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6051 fi ;; 6052 [\\/]* | ?:[\\/]* ) # Absolute path. 6053 ac_srcdir=$srcdir$ac_dir_suffix; 6054 ac_top_srcdir=$srcdir ;; 6055 *) # Relative path. 6056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6057 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6058esac 6059# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 6060# absolute. 6061ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 6062ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 6063ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 6064ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 6065 6066 6067 case $INSTALL in 6068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6069 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 6070 esac 6071 6072 if test x"$ac_file" != x-; then 6073 { echo "$as_me:$LINENO: creating $ac_file" >&5 6074echo "$as_me: creating $ac_file" >&6;} 6075 rm -f "$ac_file" 6076 fi 6077 # Let's still pretend it is `configure' which instantiates (i.e., don't 6078 # use $as_me), people would be surprised to read: 6079 # /* config.h. Generated by config.status. */ 6080 if test x"$ac_file" = x-; then 6081 configure_input= 6082 else 6083 configure_input="$ac_file. " 6084 fi 6085 configure_input=$configure_input"Generated from `echo $ac_file_in | 6086 sed 's,.*/,,'` by configure." 6087 6088 # First look for the input files in the build tree, otherwise in the 6089 # src tree. 6090 ac_file_inputs=`IFS=: 6091 for f in $ac_file_in; do 6092 case $f in 6093 -) echo $tmp/stdin ;; 6094 [\\/$]*) 6095 # Absolute (can't be DOS-style, as IFS=:) 6096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6097echo "$as_me: error: cannot find input file: $f" >&2;} 6098 { (exit 1); exit 1; }; } 6099 echo $f;; 6100 *) # Relative 6101 if test -f "$f"; then 6102 # Build tree 6103 echo $f 6104 elif test -f "$srcdir/$f"; then 6105 # Source tree 6106 echo $srcdir/$f 6107 else 6108 # /dev/null tree 6109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6110echo "$as_me: error: cannot find input file: $f" >&2;} 6111 { (exit 1); exit 1; }; } 6112 fi;; 6113 esac 6114 done` || { (exit 1); exit 1; } 6115_ACEOF 6116cat >>$CONFIG_STATUS <<_ACEOF 6117 sed "$ac_vpsub 6118$extrasub 6119_ACEOF 6120cat >>$CONFIG_STATUS <<\_ACEOF 6121:t 6122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6123s,@configure_input@,$configure_input,;t t 6124s,@srcdir@,$ac_srcdir,;t t 6125s,@abs_srcdir@,$ac_abs_srcdir,;t t 6126s,@top_srcdir@,$ac_top_srcdir,;t t 6127s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 6128s,@builddir@,$ac_builddir,;t t 6129s,@abs_builddir@,$ac_abs_builddir,;t t 6130s,@top_builddir@,$ac_top_builddir,;t t 6131s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 6132s,@INSTALL@,$ac_INSTALL,;t t 6133" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6134 rm -f $tmp/stdin 6135 if test x"$ac_file" != x-; then 6136 mv $tmp/out $ac_file 6137 else 6138 cat $tmp/out 6139 rm -f $tmp/out 6140 fi 6141 6142done 6143_ACEOF 6144cat >>$CONFIG_STATUS <<\_ACEOF 6145 6146# 6147# CONFIG_HEADER section. 6148# 6149 6150# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6151# NAME is the cpp macro being defined and VALUE is the value it is being given. 6152# 6153# ac_d sets the value in "#define NAME VALUE" lines. 6154ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6155ac_dB='[ ].*$,\1#\2' 6156ac_dC=' ' 6157ac_dD=',;t' 6158# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6159ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6160ac_uB='$,\1#\2define\3' 6161ac_uC=' ' 6162ac_uD=',;t' 6163 6164for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 6165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6166 case $ac_file in 6167 - | *:- | *:-:* ) # input from stdin 6168 cat >$tmp/stdin 6169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6173 * ) ac_file_in=$ac_file.in ;; 6174 esac 6175 6176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 6177echo "$as_me: creating $ac_file" >&6;} 6178 6179 # First look for the input files in the build tree, otherwise in the 6180 # src tree. 6181 ac_file_inputs=`IFS=: 6182 for f in $ac_file_in; do 6183 case $f in 6184 -) echo $tmp/stdin ;; 6185 [\\/$]*) 6186 # Absolute (can't be DOS-style, as IFS=:) 6187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6188echo "$as_me: error: cannot find input file: $f" >&2;} 6189 { (exit 1); exit 1; }; } 6190 echo $f;; 6191 *) # Relative 6192 if test -f "$f"; then 6193 # Build tree 6194 echo $f 6195 elif test -f "$srcdir/$f"; then 6196 # Source tree 6197 echo $srcdir/$f 6198 else 6199 # /dev/null tree 6200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6201echo "$as_me: error: cannot find input file: $f" >&2;} 6202 { (exit 1); exit 1; }; } 6203 fi;; 6204 esac 6205 done` || { (exit 1); exit 1; } 6206 # Remove the trailing spaces. 6207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6208 6209_ACEOF 6210 6211# Transform confdefs.h into two sed scripts, `conftest.defines' and 6212# `conftest.undefs', that substitutes the proper values into 6213# config.h.in to produce config.h. The first handles `#define' 6214# templates, and the second `#undef' templates. 6215# And first: Protect against being on the right side of a sed subst in 6216# config.status. Protect against being in an unquoted here document 6217# in config.status. 6218rm -f conftest.defines conftest.undefs 6219# Using a here document instead of a string reduces the quoting nightmare. 6220# Putting comments in sed scripts is not portable. 6221# 6222# `end' is used to avoid that the second main sed command (meant for 6223# 0-ary CPP macros) applies to n-ary macro definitions. 6224# See the Autoconf documentation for `clear'. 6225cat >confdef2sed.sed <<\_ACEOF 6226s/[\\&,]/\\&/g 6227s,[\\$`],\\&,g 6228t clear 6229: clear 6230s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6231t end 6232s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6233: end 6234_ACEOF 6235# If some macros were called several times there might be several times 6236# the same #defines, which is useless. Nevertheless, we may not want to 6237# sort them, since we want the *last* AC-DEFINE to be honored. 6238uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6239sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6240rm -f confdef2sed.sed 6241 6242# This sed command replaces #undef with comments. This is necessary, for 6243# example, in the case of _POSIX_SOURCE, which is predefined and required 6244# on some systems where configure will not decide to define it. 6245cat >>conftest.undefs <<\_ACEOF 6246s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6247_ACEOF 6248 6249# Break up conftest.defines because some shells have a limit on the size 6250# of here documents, and old seds have small limits too (100 cmds). 6251echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6252echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6253echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6254echo ' :' >>$CONFIG_STATUS 6255rm -f conftest.tail 6256while grep . conftest.defines >/dev/null 6257do 6258 # Write a limited-size here document to $tmp/defines.sed. 6259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6260 # Speed up: don't consider the non `#define' lines. 6261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6262 # Work around the forget-to-reset-the-flag bug. 6263 echo 't clr' >>$CONFIG_STATUS 6264 echo ': clr' >>$CONFIG_STATUS 6265 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6266 echo 'CEOF 6267 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6268 rm -f $tmp/in 6269 mv $tmp/out $tmp/in 6270' >>$CONFIG_STATUS 6271 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6272 rm -f conftest.defines 6273 mv conftest.tail conftest.defines 6274done 6275rm -f conftest.defines 6276echo ' fi # grep' >>$CONFIG_STATUS 6277echo >>$CONFIG_STATUS 6278 6279# Break up conftest.undefs because some shells have a limit on the size 6280# of here documents, and old seds have small limits too (100 cmds). 6281echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6282rm -f conftest.tail 6283while grep . conftest.undefs >/dev/null 6284do 6285 # Write a limited-size here document to $tmp/undefs.sed. 6286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6287 # Speed up: don't consider the non `#undef' 6288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6289 # Work around the forget-to-reset-the-flag bug. 6290 echo 't clr' >>$CONFIG_STATUS 6291 echo ': clr' >>$CONFIG_STATUS 6292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6293 echo 'CEOF 6294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6295 rm -f $tmp/in 6296 mv $tmp/out $tmp/in 6297' >>$CONFIG_STATUS 6298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6299 rm -f conftest.undefs 6300 mv conftest.tail conftest.undefs 6301done 6302rm -f conftest.undefs 6303 6304cat >>$CONFIG_STATUS <<\_ACEOF 6305 # Let's still pretend it is `configure' which instantiates (i.e., don't 6306 # use $as_me), people would be surprised to read: 6307 # /* config.h. Generated by config.status. */ 6308 if test x"$ac_file" = x-; then 6309 echo "/* Generated by configure. */" >$tmp/config.h 6310 else 6311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6312 fi 6313 cat $tmp/in >>$tmp/config.h 6314 rm -f $tmp/in 6315 if test x"$ac_file" != x-; then 6316 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 6317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6318echo "$as_me: $ac_file is unchanged" >&6;} 6319 else 6320 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6322 X"$ac_file" : 'X\(//\)[^/]' \| \ 6323 X"$ac_file" : 'X\(//\)$' \| \ 6324 X"$ac_file" : 'X\(/\)' \| \ 6325 . : '\(.\)' 2>/dev/null || 6326echo X"$ac_file" | 6327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6328 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6329 /^X\(\/\/\)$/{ s//\1/; q; } 6330 /^X\(\/\).*/{ s//\1/; q; } 6331 s/.*/./; q'` 6332 { if $as_mkdir_p; then 6333 mkdir -p "$ac_dir" 6334 else 6335 as_dir="$ac_dir" 6336 as_dirs= 6337 while test ! -d "$as_dir"; do 6338 as_dirs="$as_dir $as_dirs" 6339 as_dir=`(dirname "$as_dir") 2>/dev/null || 6340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6341 X"$as_dir" : 'X\(//\)[^/]' \| \ 6342 X"$as_dir" : 'X\(//\)$' \| \ 6343 X"$as_dir" : 'X\(/\)' \| \ 6344 . : '\(.\)' 2>/dev/null || 6345echo X"$as_dir" | 6346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6347 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6348 /^X\(\/\/\)$/{ s//\1/; q; } 6349 /^X\(\/\).*/{ s//\1/; q; } 6350 s/.*/./; q'` 6351 done 6352 test ! -n "$as_dirs" || mkdir $as_dirs 6353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6355 { (exit 1); exit 1; }; }; } 6356 6357 rm -f $ac_file 6358 mv $tmp/config.h $ac_file 6359 fi 6360 else 6361 cat $tmp/config.h 6362 rm -f $tmp/config.h 6363 fi 6364_am_stamp_count=`expr ${_am_stamp_count-0} + 1` 6365echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 6366$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6367 X$ac_file : 'X\(//\)[^/]' \| \ 6368 X$ac_file : 'X\(//\)$' \| \ 6369 X$ac_file : 'X\(/\)' \| \ 6370 . : '\(.\)' 2>/dev/null || 6371echo X$ac_file | 6372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6373 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6374 /^X\(\/\/\)$/{ s//\1/; q; } 6375 /^X\(\/\).*/{ s//\1/; q; } 6376 s/.*/./; q'`/stamp-h$_am_stamp_count 6377done 6378_ACEOF 6379cat >>$CONFIG_STATUS <<\_ACEOF 6380 6381# 6382# CONFIG_COMMANDS section. 6383# 6384for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 6385 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 6386 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 6387 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 6388$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6389 X"$ac_dest" : 'X\(//\)[^/]' \| \ 6390 X"$ac_dest" : 'X\(//\)$' \| \ 6391 X"$ac_dest" : 'X\(/\)' \| \ 6392 . : '\(.\)' 2>/dev/null || 6393echo X"$ac_dest" | 6394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6395 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6396 /^X\(\/\/\)$/{ s//\1/; q; } 6397 /^X\(\/\).*/{ s//\1/; q; } 6398 s/.*/./; q'` 6399 ac_builddir=. 6400 6401if test "$ac_dir" != .; then 6402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6403 # A "../" for each directory in $ac_dir_suffix. 6404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6405else 6406 ac_dir_suffix= ac_top_builddir= 6407fi 6408 6409case $srcdir in 6410 .) # No --srcdir option. We are building in place. 6411 ac_srcdir=. 6412 if test -z "$ac_top_builddir"; then 6413 ac_top_srcdir=. 6414 else 6415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6416 fi ;; 6417 [\\/]* | ?:[\\/]* ) # Absolute path. 6418 ac_srcdir=$srcdir$ac_dir_suffix; 6419 ac_top_srcdir=$srcdir ;; 6420 *) # Relative path. 6421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6422 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6423esac 6424# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 6425# absolute. 6426ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 6427ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 6428ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 6429ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 6430 6431 6432 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 6433echo "$as_me: executing $ac_dest commands" >&6;} 6434 case $ac_dest in 6435 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 6436 # Strip MF so we end up with the name of the file. 6437 mf=`echo "$mf" | sed -e 's/:.*$//'` 6438 # Check whether this is an Automake generated Makefile or not. 6439 # We used to match only the files named `Makefile.in', but 6440 # some people rename them; so instead we look at the file content. 6441 # Grep'ing the first line is not enough: some people post-process 6442 # each Makefile.in and add a new line on top of each file to say so. 6443 # So let's grep whole file. 6444 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6445 dirpart=`(dirname "$mf") 2>/dev/null || 6446$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6447 X"$mf" : 'X\(//\)[^/]' \| \ 6448 X"$mf" : 'X\(//\)$' \| \ 6449 X"$mf" : 'X\(/\)' \| \ 6450 . : '\(.\)' 2>/dev/null || 6451echo X"$mf" | 6452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6453 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6454 /^X\(\/\/\)$/{ s//\1/; q; } 6455 /^X\(\/\).*/{ s//\1/; q; } 6456 s/.*/./; q'` 6457 else 6458 continue 6459 fi 6460 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue 6461 # Extract the definition of DEP_FILES from the Makefile without 6462 # running `make'. 6463 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 6464 test -z "$DEPDIR" && continue 6465 # When using ansi2knr, U may be empty or an underscore; expand it 6466 U=`sed -n -e '/^U = / s///p' < "$mf"` 6467 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 6468 # We invoke sed twice because it is the simplest approach to 6469 # changing $(DEPDIR) to its actual value in the expansion. 6470 for file in `sed -n -e ' 6471 /^DEP_FILES = .*\\\\$/ { 6472 s/^DEP_FILES = // 6473 :loop 6474 s/\\\\$// 6475 p 6476 n 6477 /\\\\$/ b loop 6478 p 6479 } 6480 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 6481 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6482 # Make sure the directory exists. 6483 test -f "$dirpart/$file" && continue 6484 fdir=`(dirname "$file") 2>/dev/null || 6485$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6486 X"$file" : 'X\(//\)[^/]' \| \ 6487 X"$file" : 'X\(//\)$' \| \ 6488 X"$file" : 'X\(/\)' \| \ 6489 . : '\(.\)' 2>/dev/null || 6490echo X"$file" | 6491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6492 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6493 /^X\(\/\/\)$/{ s//\1/; q; } 6494 /^X\(\/\).*/{ s//\1/; q; } 6495 s/.*/./; q'` 6496 { if $as_mkdir_p; then 6497 mkdir -p $dirpart/$fdir 6498 else 6499 as_dir=$dirpart/$fdir 6500 as_dirs= 6501 while test ! -d "$as_dir"; do 6502 as_dirs="$as_dir $as_dirs" 6503 as_dir=`(dirname "$as_dir") 2>/dev/null || 6504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6505 X"$as_dir" : 'X\(//\)[^/]' \| \ 6506 X"$as_dir" : 'X\(//\)$' \| \ 6507 X"$as_dir" : 'X\(/\)' \| \ 6508 . : '\(.\)' 2>/dev/null || 6509echo X"$as_dir" | 6510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6511 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6512 /^X\(\/\/\)$/{ s//\1/; q; } 6513 /^X\(\/\).*/{ s//\1/; q; } 6514 s/.*/./; q'` 6515 done 6516 test ! -n "$as_dirs" || mkdir $as_dirs 6517 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 6518echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 6519 { (exit 1); exit 1; }; }; } 6520 6521 # echo "creating $dirpart/$file" 6522 echo '# dummy' > "$dirpart/$file" 6523 done 6524done 6525 ;; 6526 esac 6527done 6528_ACEOF 6529 6530cat >>$CONFIG_STATUS <<\_ACEOF 6531 6532{ (exit 0); exit 0; } 6533_ACEOF 6534chmod +x $CONFIG_STATUS 6535ac_clean_files=$ac_clean_files_save 6536 6537 6538# configure is writing to config.log, and then calls config.status. 6539# config.status does its own redirection, appending to config.log. 6540# Unfortunately, on DOS this fails, as config.log is still kept open 6541# by configure, so config.status won't be able to write to it; its 6542# output is simply discarded. So we exec the FD to /dev/null, 6543# effectively closing config.log, so it can be properly (re)opened and 6544# appended to by config.status. When coming back to configure, we 6545# need to make the FD available again. 6546if test "$no_create" != yes; then 6547 ac_cs_success=: 6548 ac_config_status_args= 6549 test "$silent" = yes && 6550 ac_config_status_args="$ac_config_status_args --quiet" 6551 exec 5>/dev/null 6552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6553 exec 5>>config.log 6554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6555 # would make configure fail if this is the last instruction. 6556 $ac_cs_success || { (exit 1); exit 1; } 6557fi 6558 6559