1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --enable-debug Enable debugging code" 16ac_help="$ac_help 17 --with-x10port=PATH Specify the serial port for the x10 module" 18 19# Initialize some variables set by options. 20# The variables have the same names as the options, with 21# dashes changed to underlines. 22build=NONE 23cache_file=./config.cache 24exec_prefix=NONE 25host=NONE 26no_create= 27nonopt=NONE 28no_recursion= 29prefix=NONE 30program_prefix=NONE 31program_suffix=NONE 32program_transform_name=s,x,x, 33silent= 34site= 35srcdir= 36target=NONE 37verbose= 38x_includes=NONE 39x_libraries=NONE 40bindir='${exec_prefix}/bin' 41sbindir='${exec_prefix}/sbin' 42libexecdir='${exec_prefix}/libexec' 43datadir='${prefix}/share' 44sysconfdir='${prefix}/etc' 45sharedstatedir='${prefix}/com' 46localstatedir='${prefix}/var' 47libdir='${exec_prefix}/lib' 48includedir='${prefix}/include' 49oldincludedir='/usr/include' 50infodir='${prefix}/info' 51mandir='${prefix}/man' 52 53# Initialize some other variables. 54subdirs= 55MFLAGS= MAKEFLAGS= 56SHELL=${CONFIG_SHELL-/bin/sh} 57# Maximum number of lines to put in a shell here document. 58ac_max_here_lines=12 59 60ac_prev= 61for ac_option 62do 63 64 # If the previous option needs an argument, assign it. 65 if test -n "$ac_prev"; then 66 eval "$ac_prev=\$ac_option" 67 ac_prev= 68 continue 69 fi 70 71 case "$ac_option" in 72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 73 *) ac_optarg= ;; 74 esac 75 76 # Accept the important Cygnus configure options, so we can diagnose typos. 77 78 case "$ac_option" in 79 80 -bindir | --bindir | --bindi | --bind | --bin | --bi) 81 ac_prev=bindir ;; 82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 83 bindir="$ac_optarg" ;; 84 85 -build | --build | --buil | --bui | --bu) 86 ac_prev=build ;; 87 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 88 build="$ac_optarg" ;; 89 90 -cache-file | --cache-file | --cache-fil | --cache-fi \ 91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 92 ac_prev=cache_file ;; 93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 95 cache_file="$ac_optarg" ;; 96 97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 98 ac_prev=datadir ;; 99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 100 | --da=*) 101 datadir="$ac_optarg" ;; 102 103 -disable-* | --disable-*) 104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 105 # Reject names that are not valid shell variable names. 106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 108 fi 109 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 110 eval "enable_${ac_feature}=no" ;; 111 112 -enable-* | --enable-*) 113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 114 # Reject names that are not valid shell variable names. 115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 117 fi 118 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 119 case "$ac_option" in 120 *=*) ;; 121 *) ac_optarg=yes ;; 122 esac 123 eval "enable_${ac_feature}='$ac_optarg'" ;; 124 125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 127 | --exec | --exe | --ex) 128 ac_prev=exec_prefix ;; 129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 131 | --exec=* | --exe=* | --ex=*) 132 exec_prefix="$ac_optarg" ;; 133 134 -gas | --gas | --ga | --g) 135 # Obsolete; use --with-gas. 136 with_gas=yes ;; 137 138 -help | --help | --hel | --he) 139 # Omit some internal or obsolete options to make the list less imposing. 140 # This message is too long to be a string in the A/UX 3.1 sh. 141 cat << EOF 142Usage: configure [options] [host] 143Options: [defaults in brackets after descriptions] 144Configuration: 145 --cache-file=FILE cache test results in FILE 146 --help print this message 147 --no-create do not create output files 148 --quiet, --silent do not print \`checking...' messages 149 --version print the version of autoconf that created configure 150Directory and file names: 151 --prefix=PREFIX install architecture-independent files in PREFIX 152 [$ac_default_prefix] 153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 154 [same as prefix] 155 --bindir=DIR user executables in DIR [EPREFIX/bin] 156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 158 --datadir=DIR read-only architecture-independent data in DIR 159 [PREFIX/share] 160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 161 --sharedstatedir=DIR modifiable architecture-independent data in DIR 162 [PREFIX/com] 163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 164 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 165 --includedir=DIR C header files in DIR [PREFIX/include] 166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 167 --infodir=DIR info documentation in DIR [PREFIX/info] 168 --mandir=DIR man documentation in DIR [PREFIX/man] 169 --srcdir=DIR find the sources in DIR [configure dir or ..] 170 --program-prefix=PREFIX prepend PREFIX to installed program names 171 --program-suffix=SUFFIX append SUFFIX to installed program names 172 --program-transform-name=PROGRAM 173 run sed PROGRAM on installed program names 174EOF 175 cat << EOF 176Host type: 177 --build=BUILD configure for building on BUILD [BUILD=HOST] 178 --host=HOST configure for HOST [guessed] 179 --target=TARGET configure for TARGET [TARGET=HOST] 180Features and packages: 181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 185 --x-includes=DIR X include files are in DIR 186 --x-libraries=DIR X library files are in DIR 187EOF 188 if test -n "$ac_help"; then 189 echo "--enable and --with options recognized:$ac_help" 190 fi 191 exit 0 ;; 192 193 -host | --host | --hos | --ho) 194 ac_prev=host ;; 195 -host=* | --host=* | --hos=* | --ho=*) 196 host="$ac_optarg" ;; 197 198 -includedir | --includedir | --includedi | --included | --include \ 199 | --includ | --inclu | --incl | --inc) 200 ac_prev=includedir ;; 201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 202 | --includ=* | --inclu=* | --incl=* | --inc=*) 203 includedir="$ac_optarg" ;; 204 205 -infodir | --infodir | --infodi | --infod | --info | --inf) 206 ac_prev=infodir ;; 207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 208 infodir="$ac_optarg" ;; 209 210 -libdir | --libdir | --libdi | --libd) 211 ac_prev=libdir ;; 212 -libdir=* | --libdir=* | --libdi=* | --libd=*) 213 libdir="$ac_optarg" ;; 214 215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 216 | --libexe | --libex | --libe) 217 ac_prev=libexecdir ;; 218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 219 | --libexe=* | --libex=* | --libe=*) 220 libexecdir="$ac_optarg" ;; 221 222 -localstatedir | --localstatedir | --localstatedi | --localstated \ 223 | --localstate | --localstat | --localsta | --localst \ 224 | --locals | --local | --loca | --loc | --lo) 225 ac_prev=localstatedir ;; 226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 229 localstatedir="$ac_optarg" ;; 230 231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 232 ac_prev=mandir ;; 233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 234 mandir="$ac_optarg" ;; 235 236 -nfp | --nfp | --nf) 237 # Obsolete; use --without-fp. 238 with_fp=no ;; 239 240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 241 | --no-cr | --no-c) 242 no_create=yes ;; 243 244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 246 no_recursion=yes ;; 247 248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 250 | --oldin | --oldi | --old | --ol | --o) 251 ac_prev=oldincludedir ;; 252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 255 oldincludedir="$ac_optarg" ;; 256 257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 258 ac_prev=prefix ;; 259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 260 prefix="$ac_optarg" ;; 261 262 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 263 | --program-pre | --program-pr | --program-p) 264 ac_prev=program_prefix ;; 265 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 267 program_prefix="$ac_optarg" ;; 268 269 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 270 | --program-suf | --program-su | --program-s) 271 ac_prev=program_suffix ;; 272 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 274 program_suffix="$ac_optarg" ;; 275 276 -program-transform-name | --program-transform-name \ 277 | --program-transform-nam | --program-transform-na \ 278 | --program-transform-n | --program-transform- \ 279 | --program-transform | --program-transfor \ 280 | --program-transfo | --program-transf \ 281 | --program-trans | --program-tran \ 282 | --progr-tra | --program-tr | --program-t) 283 ac_prev=program_transform_name ;; 284 -program-transform-name=* | --program-transform-name=* \ 285 | --program-transform-nam=* | --program-transform-na=* \ 286 | --program-transform-n=* | --program-transform-=* \ 287 | --program-transform=* | --program-transfor=* \ 288 | --program-transfo=* | --program-transf=* \ 289 | --program-trans=* | --program-tran=* \ 290 | --progr-tra=* | --program-tr=* | --program-t=*) 291 program_transform_name="$ac_optarg" ;; 292 293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 294 | -silent | --silent | --silen | --sile | --sil) 295 silent=yes ;; 296 297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 298 ac_prev=sbindir ;; 299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 300 | --sbi=* | --sb=*) 301 sbindir="$ac_optarg" ;; 302 303 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 305 | --sharedst | --shareds | --shared | --share | --shar \ 306 | --sha | --sh) 307 ac_prev=sharedstatedir ;; 308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 311 | --sha=* | --sh=*) 312 sharedstatedir="$ac_optarg" ;; 313 314 -site | --site | --sit) 315 ac_prev=site ;; 316 -site=* | --site=* | --sit=*) 317 site="$ac_optarg" ;; 318 319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 320 ac_prev=srcdir ;; 321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 322 srcdir="$ac_optarg" ;; 323 324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 325 | --syscon | --sysco | --sysc | --sys | --sy) 326 ac_prev=sysconfdir ;; 327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 329 sysconfdir="$ac_optarg" ;; 330 331 -target | --target | --targe | --targ | --tar | --ta | --t) 332 ac_prev=target ;; 333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 334 target="$ac_optarg" ;; 335 336 -v | -verbose | --verbose | --verbos | --verbo | --verb) 337 verbose=yes ;; 338 339 -version | --version | --versio | --versi | --vers) 340 echo "configure generated by autoconf version 2.13" 341 exit 0 ;; 342 343 -with-* | --with-*) 344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 345 # Reject names that are not valid shell variable names. 346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 348 fi 349 ac_package=`echo $ac_package| sed 's/-/_/g'` 350 case "$ac_option" in 351 *=*) ;; 352 *) ac_optarg=yes ;; 353 esac 354 eval "with_${ac_package}='$ac_optarg'" ;; 355 356 -without-* | --without-*) 357 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 358 # Reject names that are not valid shell variable names. 359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 361 fi 362 ac_package=`echo $ac_package| sed 's/-/_/g'` 363 eval "with_${ac_package}=no" ;; 364 365 --x) 366 # Obsolete; use --with-x. 367 with_x=yes ;; 368 369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 370 | --x-incl | --x-inc | --x-in | --x-i) 371 ac_prev=x_includes ;; 372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 374 x_includes="$ac_optarg" ;; 375 376 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 378 ac_prev=x_libraries ;; 379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 381 x_libraries="$ac_optarg" ;; 382 383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 384 ;; 385 386 *) 387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 388 echo "configure: warning: $ac_option: invalid host type" 1>&2 389 fi 390 if test "x$nonopt" != xNONE; then 391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 392 fi 393 nonopt="$ac_option" 394 ;; 395 396 esac 397done 398 399if test -n "$ac_prev"; then 400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 401fi 402 403trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 404 405# File descriptor usage: 406# 0 standard input 407# 1 file creation 408# 2 errors and warnings 409# 3 some systems may open it to /dev/tty 410# 4 used on the Kubota Titan 411# 6 checking for... messages and results 412# 5 compiler messages saved in config.log 413if test "$silent" = yes; then 414 exec 6>/dev/null 415else 416 exec 6>&1 417fi 418exec 5>./config.log 419 420echo "\ 421This file contains any messages produced by compilers while 422running configure, to aid debugging if configure makes a mistake. 423" 1>&5 424 425# Strip out --no-create and --no-recursion so they do not pile up. 426# Also quote any args containing shell metacharacters. 427ac_configure_args= 428for ac_arg 429do 430 case "$ac_arg" in 431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 432 | --no-cr | --no-c) ;; 433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 436 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 437 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 438 esac 439done 440 441# NLS nuisances. 442# Only set these to C if already set. These must not be set unconditionally 443# because not all systems understand e.g. LANG=C (notably SCO). 444# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 445# Non-C LC_CTYPE values break the ctype check. 446if test "${LANG+set}" = set; then LANG=C; export LANG; fi 447if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 448if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 449if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 450 451# confdefs.h avoids OS command line length limits that DEFS can exceed. 452rm -rf conftest* confdefs.h 453# AIX cpp loses on an empty file, so make sure it contains at least a newline. 454echo > confdefs.h 455 456# A filename unique to this package, relative to the directory that 457# configure is in, which we can look for to find out if srcdir is correct. 458ac_unique_file=br_cmd.h 459 460# Find the source files, if location was not specified. 461if test -z "$srcdir"; then 462 ac_srcdir_defaulted=yes 463 # Try the directory containing this script, then its parent. 464 ac_prog=$0 465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 467 srcdir=$ac_confdir 468 if test ! -r $srcdir/$ac_unique_file; then 469 srcdir=.. 470 fi 471else 472 ac_srcdir_defaulted=no 473fi 474if test ! -r $srcdir/$ac_unique_file; then 475 if test "$ac_srcdir_defaulted" = yes; then 476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 477 else 478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 479 fi 480fi 481srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 482 483# Prefer explicitly selected file to automatically selected ones. 484if test -z "$CONFIG_SITE"; then 485 if test "x$prefix" != xNONE; then 486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 487 else 488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 489 fi 490fi 491for ac_site_file in $CONFIG_SITE; do 492 if test -r "$ac_site_file"; then 493 echo "loading site script $ac_site_file" 494 . "$ac_site_file" 495 fi 496done 497 498if test -r "$cache_file"; then 499 echo "loading cache $cache_file" 500 . $cache_file 501else 502 echo "creating cache $cache_file" 503 > $cache_file 504fi 505 506ac_ext=c 507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 508ac_cpp='$CPP $CPPFLAGS' 509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 511cross_compiling=$ac_cv_prog_cc_cross 512 513ac_exeext= 514ac_objext=o 515if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 518 ac_n= ac_c=' 519' ac_t=' ' 520 else 521 ac_n=-n ac_c= ac_t= 522 fi 523else 524 ac_n= ac_c='\c' ac_t= 525fi 526 527 528 529# Extract the first word of "gcc", so it can be a program name with args. 530set dummy gcc; ac_word=$2 531echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 532echo "configure:533: checking for $ac_word" >&5 533if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 534 echo $ac_n "(cached) $ac_c" 1>&6 535else 536 if test -n "$CC"; then 537 ac_cv_prog_CC="$CC" # Let the user override the test. 538else 539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 540 ac_dummy="$PATH" 541 for ac_dir in $ac_dummy; do 542 test -z "$ac_dir" && ac_dir=. 543 if test -f $ac_dir/$ac_word; then 544 ac_cv_prog_CC="gcc" 545 break 546 fi 547 done 548 IFS="$ac_save_ifs" 549fi 550fi 551CC="$ac_cv_prog_CC" 552if test -n "$CC"; then 553 echo "$ac_t""$CC" 1>&6 554else 555 echo "$ac_t""no" 1>&6 556fi 557 558if test -z "$CC"; then 559 # Extract the first word of "cc", so it can be a program name with args. 560set dummy cc; ac_word=$2 561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 562echo "configure:563: checking for $ac_word" >&5 563if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 564 echo $ac_n "(cached) $ac_c" 1>&6 565else 566 if test -n "$CC"; then 567 ac_cv_prog_CC="$CC" # Let the user override the test. 568else 569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 570 ac_prog_rejected=no 571 ac_dummy="$PATH" 572 for ac_dir in $ac_dummy; do 573 test -z "$ac_dir" && ac_dir=. 574 if test -f $ac_dir/$ac_word; then 575 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 576 ac_prog_rejected=yes 577 continue 578 fi 579 ac_cv_prog_CC="cc" 580 break 581 fi 582 done 583 IFS="$ac_save_ifs" 584if test $ac_prog_rejected = yes; then 585 # We found a bogon in the path, so make sure we never use it. 586 set dummy $ac_cv_prog_CC 587 shift 588 if test $# -gt 0; then 589 # We chose a different compiler from the bogus one. 590 # However, it has the same basename, so the bogon will be chosen 591 # first if we set CC to just the basename; use the full file name. 592 shift 593 set dummy "$ac_dir/$ac_word" "$@" 594 shift 595 ac_cv_prog_CC="$@" 596 fi 597fi 598fi 599fi 600CC="$ac_cv_prog_CC" 601if test -n "$CC"; then 602 echo "$ac_t""$CC" 1>&6 603else 604 echo "$ac_t""no" 1>&6 605fi 606 607 if test -z "$CC"; then 608 case "`uname -s`" in 609 *win32* | *WIN32*) 610 # Extract the first word of "cl", so it can be a program name with args. 611set dummy cl; ac_word=$2 612echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 613echo "configure:614: checking for $ac_word" >&5 614if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 615 echo $ac_n "(cached) $ac_c" 1>&6 616else 617 if test -n "$CC"; then 618 ac_cv_prog_CC="$CC" # Let the user override the test. 619else 620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 621 ac_dummy="$PATH" 622 for ac_dir in $ac_dummy; do 623 test -z "$ac_dir" && ac_dir=. 624 if test -f $ac_dir/$ac_word; then 625 ac_cv_prog_CC="cl" 626 break 627 fi 628 done 629 IFS="$ac_save_ifs" 630fi 631fi 632CC="$ac_cv_prog_CC" 633if test -n "$CC"; then 634 echo "$ac_t""$CC" 1>&6 635else 636 echo "$ac_t""no" 1>&6 637fi 638 ;; 639 esac 640 fi 641 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 642fi 643 644echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 645echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 646 647ac_ext=c 648# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 649ac_cpp='$CPP $CPPFLAGS' 650ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 651ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 652cross_compiling=$ac_cv_prog_cc_cross 653 654cat > conftest.$ac_ext << EOF 655 656#line 657 "configure" 657#include "confdefs.h" 658 659main(){return(0);} 660EOF 661if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 662 ac_cv_prog_cc_works=yes 663 # If we can't run a trivial program, we are probably using a cross compiler. 664 if (./conftest; exit) 2>/dev/null; then 665 ac_cv_prog_cc_cross=no 666 else 667 ac_cv_prog_cc_cross=yes 668 fi 669else 670 echo "configure: failed program was:" >&5 671 cat conftest.$ac_ext >&5 672 ac_cv_prog_cc_works=no 673fi 674rm -fr conftest* 675ac_ext=c 676# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 677ac_cpp='$CPP $CPPFLAGS' 678ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 679ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 680cross_compiling=$ac_cv_prog_cc_cross 681 682echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 683if test $ac_cv_prog_cc_works = no; then 684 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 685fi 686echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 687echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 688echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 689cross_compiling=$ac_cv_prog_cc_cross 690 691echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 692echo "configure:693: checking whether we are using GNU C" >&5 693if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 694 echo $ac_n "(cached) $ac_c" 1>&6 695else 696 cat > conftest.c <<EOF 697#ifdef __GNUC__ 698 yes; 699#endif 700EOF 701if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 702 ac_cv_prog_gcc=yes 703else 704 ac_cv_prog_gcc=no 705fi 706fi 707 708echo "$ac_t""$ac_cv_prog_gcc" 1>&6 709 710if test $ac_cv_prog_gcc = yes; then 711 GCC=yes 712else 713 GCC= 714fi 715 716ac_test_CFLAGS="${CFLAGS+set}" 717ac_save_CFLAGS="$CFLAGS" 718CFLAGS= 719echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 720echo "configure:721: checking whether ${CC-cc} accepts -g" >&5 721if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 722 echo $ac_n "(cached) $ac_c" 1>&6 723else 724 echo 'void f(){}' > conftest.c 725if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 726 ac_cv_prog_cc_g=yes 727else 728 ac_cv_prog_cc_g=no 729fi 730rm -f conftest* 731 732fi 733 734echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 735if test "$ac_test_CFLAGS" = set; then 736 CFLAGS="$ac_save_CFLAGS" 737elif test $ac_cv_prog_cc_g = yes; then 738 if test "$GCC" = yes; then 739 CFLAGS="-g -O2" 740 else 741 CFLAGS="-g" 742 fi 743else 744 if test "$GCC" = yes; then 745 CFLAGS="-O2" 746 else 747 CFLAGS= 748 fi 749fi 750 751echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 752echo "configure:753: checking how to run the C preprocessor" >&5 753# On Suns, sometimes $CPP names a directory. 754if test -n "$CPP" && test -d "$CPP"; then 755 CPP= 756fi 757if test -z "$CPP"; then 758if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 759 echo $ac_n "(cached) $ac_c" 1>&6 760else 761 # This must be in double quotes, not single quotes, because CPP may get 762 # substituted into the Makefile and "${CC-cc}" will confuse make. 763 CPP="${CC-cc} -E" 764 # On the NeXT, cc -E runs the code through the compiler's parser, 765 # not just through cpp. 766 cat > conftest.$ac_ext <<EOF 767#line 768 "configure" 768#include "confdefs.h" 769#include <assert.h> 770Syntax Error 771EOF 772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 773{ (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 775if test -z "$ac_err"; then 776 : 777else 778 echo "$ac_err" >&5 779 echo "configure: failed program was:" >&5 780 cat conftest.$ac_ext >&5 781 rm -rf conftest* 782 CPP="${CC-cc} -E -traditional-cpp" 783 cat > conftest.$ac_ext <<EOF 784#line 785 "configure" 785#include "confdefs.h" 786#include <assert.h> 787Syntax Error 788EOF 789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 790{ (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 791ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 792if test -z "$ac_err"; then 793 : 794else 795 echo "$ac_err" >&5 796 echo "configure: failed program was:" >&5 797 cat conftest.$ac_ext >&5 798 rm -rf conftest* 799 CPP="${CC-cc} -nologo -E" 800 cat > conftest.$ac_ext <<EOF 801#line 802 "configure" 802#include "confdefs.h" 803#include <assert.h> 804Syntax Error 805EOF 806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 807{ (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 809if test -z "$ac_err"; then 810 : 811else 812 echo "$ac_err" >&5 813 echo "configure: failed program was:" >&5 814 cat conftest.$ac_ext >&5 815 rm -rf conftest* 816 CPP=/lib/cpp 817fi 818rm -f conftest* 819fi 820rm -f conftest* 821fi 822rm -f conftest* 823 ac_cv_prog_CPP="$CPP" 824fi 825 CPP="$ac_cv_prog_CPP" 826else 827 ac_cv_prog_CPP="$CPP" 828fi 829echo "$ac_t""$CPP" 1>&6 830 831ac_aux_dir= 832for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 833 if test -f $ac_dir/install-sh; then 834 ac_aux_dir=$ac_dir 835 ac_install_sh="$ac_aux_dir/install-sh -c" 836 break 837 elif test -f $ac_dir/install.sh; then 838 ac_aux_dir=$ac_dir 839 ac_install_sh="$ac_aux_dir/install.sh -c" 840 break 841 fi 842done 843if test -z "$ac_aux_dir"; then 844 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 845fi 846ac_config_guess=$ac_aux_dir/config.guess 847ac_config_sub=$ac_aux_dir/config.sub 848ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 849 850# Find a good install program. We prefer a C program (faster), 851# so one script is as good as another. But avoid the broken or 852# incompatible versions: 853# SysV /etc/install, /usr/sbin/install 854# SunOS /usr/etc/install 855# IRIX /sbin/install 856# AIX /bin/install 857# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 858# AFS /usr/afsws/bin/install, which mishandles nonexistent args 859# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 860# ./install, which can be erroneously created by make from ./install.sh. 861echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 862echo "configure:863: checking for a BSD compatible install" >&5 863if test -z "$INSTALL"; then 864if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 865 echo $ac_n "(cached) $ac_c" 1>&6 866else 867 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 868 for ac_dir in $PATH; do 869 # Account for people who put trailing slashes in PATH elements. 870 case "$ac_dir/" in 871 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 872 *) 873 # OSF1 and SCO ODT 3.0 have their own names for install. 874 # Don't use installbsd from OSF since it installs stuff as root 875 # by default. 876 for ac_prog in ginstall scoinst install; do 877 if test -f $ac_dir/$ac_prog; then 878 if test $ac_prog = install && 879 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 880 # AIX install. It has an incompatible calling convention. 881 : 882 else 883 ac_cv_path_install="$ac_dir/$ac_prog -c" 884 break 2 885 fi 886 fi 887 done 888 ;; 889 esac 890 done 891 IFS="$ac_save_IFS" 892 893fi 894 if test "${ac_cv_path_install+set}" = set; then 895 INSTALL="$ac_cv_path_install" 896 else 897 # As a last resort, use the slow shell script. We don't cache a 898 # path for INSTALL within a source directory, because that will 899 # break other packages using the cache if that directory is 900 # removed, or if the path is relative. 901 INSTALL="$ac_install_sh" 902 fi 903fi 904echo "$ac_t""$INSTALL" 1>&6 905 906# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 907# It thinks the first close brace ends the variable substitution. 908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 909 910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 911 912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 913 914 915 916 917 918 919 920for ac_hdr in features.h errno.h sys/termios.h termios.h 921do 922ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 923echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 924echo "configure:925: checking for $ac_hdr" >&5 925if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 926 echo $ac_n "(cached) $ac_c" 1>&6 927else 928 cat > conftest.$ac_ext <<EOF 929#line 930 "configure" 930#include "confdefs.h" 931#include <$ac_hdr> 932EOF 933ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 934{ (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 935ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 936if test -z "$ac_err"; then 937 rm -rf conftest* 938 eval "ac_cv_header_$ac_safe=yes" 939else 940 echo "$ac_err" >&5 941 echo "configure: failed program was:" >&5 942 cat conftest.$ac_ext >&5 943 rm -rf conftest* 944 eval "ac_cv_header_$ac_safe=no" 945fi 946rm -f conftest* 947fi 948if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 949 echo "$ac_t""yes" 1>&6 950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 951 cat >> confdefs.h <<EOF 952#define $ac_tr_hdr 1 953EOF 954 955else 956 echo "$ac_t""no" 1>&6 957fi 958done 959 960 961 962# Check whether --enable-debug or --disable-debug was given. 963if test "${enable_debug+set}" = set; then 964 enableval="$enable_debug" 965 cat >> confdefs.h <<\EOF 966#define DEBUG 1 967EOF 968 969fi 970 971 972 973 974 975# Check whether --with-x10port or --without-x10port was given. 976if test "${with_x10port+set}" = set; then 977 withval="$with_x10port" 978 979case "$withval" in 980 *) X10PORT="$withval" ;; 981esac 982else 983 984X10PORT="auto" 985 986fi 987 988 989if test "$X10PORT" = "auto" 990then 991 echo "guessing x10 port" 992 for port in /dev/ttyS0 /dev/cua0 /dev/cuaa0 /dev/tty00 /dev/ttya 993 do 994 if test -c $port 995 then 996 X10PORT=$port; 997 break 998 fi 999 done 1000fi 1001echo "using $X10PORT for x10 port" 1002 1003 1004cat > conftest.$ac_ext <<EOF 1005#line 1006 "configure" 1006#include "confdefs.h" 1007#include <getopt.h> 1008EOF 1009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1010 egrep "getopt_long" >/dev/null 2>&1; then 1011 rm -rf conftest* 1012 cat >> confdefs.h <<\EOF 1013#define HAVE_GETOPT_LONG 1 1014EOF 1015 1016fi 1017rm -f conftest* 1018 1019 1020 1021cat > conftest.$ac_ext <<EOF 1022#line 1023 "configure" 1023#include "confdefs.h" 1024#include <unistd.h> 1025EOF 1026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1027 egrep "issetugid" >/dev/null 2>&1; then 1028 rm -rf conftest* 1029 cat >> confdefs.h <<\EOF 1030#define HAVE_ISSETUGID 1 1031EOF 1032 1033fi 1034rm -f conftest* 1035 1036 1037 1038trap '' 1 2 15 1039cat > confcache <<\EOF 1040# This file is a shell script that caches the results of configure 1041# tests run on this system so they can be shared between configure 1042# scripts and configure runs. It is not useful on other systems. 1043# If it contains results you don't want to keep, you may remove or edit it. 1044# 1045# By default, configure uses ./config.cache as the cache file, 1046# creating it if it does not exist already. You can give configure 1047# the --cache-file=FILE option to use a different cache file; that is 1048# what configure does when it calls configure scripts in 1049# subdirectories, so they share the cache. 1050# Giving --cache-file=/dev/null disables caching, for debugging configure. 1051# config.status only pays attention to the cache file if you give it the 1052# --recheck option to rerun configure. 1053# 1054EOF 1055# The following way of writing the cache mishandles newlines in values, 1056# but we know of no workaround that is simple, portable, and efficient. 1057# So, don't put newlines in cache variables' values. 1058# Ultrix sh set writes to stderr and can't be redirected directly, 1059# and sets the high bit in the cache file unless we assign to the vars. 1060(set) 2>&1 | 1061 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1062 *ac_space=\ *) 1063 # `set' does not quote correctly, so add quotes (double-quote substitution 1064 # turns \\\\ into \\, and sed turns \\ into \). 1065 sed -n \ 1066 -e "s/'/'\\\\''/g" \ 1067 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1068 ;; 1069 *) 1070 # `set' quotes correctly as required by POSIX, so do not add quotes. 1071 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1072 ;; 1073 esac >> confcache 1074if cmp -s $cache_file confcache; then 1075 : 1076else 1077 if test -w $cache_file; then 1078 echo "updating cache $cache_file" 1079 cat confcache > $cache_file 1080 else 1081 echo "not updating unwritable cache $cache_file" 1082 fi 1083fi 1084rm -f confcache 1085 1086trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1087 1088test "x$prefix" = xNONE && prefix=$ac_default_prefix 1089# Let make expand exec_prefix. 1090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1091 1092# Any assignment to VPATH causes Sun make to only execute 1093# the first set of double-colon rules, so remove it if not needed. 1094# If there is a colon in the path, we need to keep it. 1095if test "x$srcdir" = x.; then 1096 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1097fi 1098 1099trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1100 1101DEFS=-DHAVE_CONFIG_H 1102 1103# Without the "./", some shells look in PATH for config.status. 1104: ${CONFIG_STATUS=./config.status} 1105 1106echo creating $CONFIG_STATUS 1107rm -f $CONFIG_STATUS 1108cat > $CONFIG_STATUS <<EOF 1109#! /bin/sh 1110# Generated automatically by configure. 1111# Run this file to recreate the current configuration. 1112# This directory was configured as follows, 1113# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1114# 1115# $0 $ac_configure_args 1116# 1117# Compiler output produced by configure, useful for debugging 1118# configure, is in ./config.log if it exists. 1119 1120ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1121for ac_option 1122do 1123 case "\$ac_option" in 1124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1125 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1126 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1127 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1128 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1129 exit 0 ;; 1130 -help | --help | --hel | --he | --h) 1131 echo "\$ac_cs_usage"; exit 0 ;; 1132 *) echo "\$ac_cs_usage"; exit 1 ;; 1133 esac 1134done 1135 1136ac_given_srcdir=$srcdir 1137ac_given_INSTALL="$INSTALL" 1138 1139trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1140EOF 1141cat >> $CONFIG_STATUS <<EOF 1142 1143# Protect against being on the right side of a sed subst in config.status. 1144sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1145 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1146$ac_vpsub 1147$extrasub 1148s%@SHELL@%$SHELL%g 1149s%@CFLAGS@%$CFLAGS%g 1150s%@CPPFLAGS@%$CPPFLAGS%g 1151s%@CXXFLAGS@%$CXXFLAGS%g 1152s%@FFLAGS@%$FFLAGS%g 1153s%@DEFS@%$DEFS%g 1154s%@LDFLAGS@%$LDFLAGS%g 1155s%@LIBS@%$LIBS%g 1156s%@exec_prefix@%$exec_prefix%g 1157s%@prefix@%$prefix%g 1158s%@program_transform_name@%$program_transform_name%g 1159s%@bindir@%$bindir%g 1160s%@sbindir@%$sbindir%g 1161s%@libexecdir@%$libexecdir%g 1162s%@datadir@%$datadir%g 1163s%@sysconfdir@%$sysconfdir%g 1164s%@sharedstatedir@%$sharedstatedir%g 1165s%@localstatedir@%$localstatedir%g 1166s%@libdir@%$libdir%g 1167s%@includedir@%$includedir%g 1168s%@oldincludedir@%$oldincludedir%g 1169s%@infodir@%$infodir%g 1170s%@mandir@%$mandir%g 1171s%@CC@%$CC%g 1172s%@CPP@%$CPP%g 1173s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1174s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 1175s%@INSTALL_DATA@%$INSTALL_DATA%g 1176s%@X10PORT@%$X10PORT%g 1177 1178CEOF 1179EOF 1180 1181cat >> $CONFIG_STATUS <<\EOF 1182 1183# Split the substitutions into bite-sized pieces for seds with 1184# small command number limits, like on Digital OSF/1 and HP-UX. 1185ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1186ac_file=1 # Number of current file. 1187ac_beg=1 # First line for current file. 1188ac_end=$ac_max_sed_cmds # Line after last line for current file. 1189ac_more_lines=: 1190ac_sed_cmds="" 1191while $ac_more_lines; do 1192 if test $ac_beg -gt 1; then 1193 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1194 else 1195 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1196 fi 1197 if test ! -s conftest.s$ac_file; then 1198 ac_more_lines=false 1199 rm -f conftest.s$ac_file 1200 else 1201 if test -z "$ac_sed_cmds"; then 1202 ac_sed_cmds="sed -f conftest.s$ac_file" 1203 else 1204 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1205 fi 1206 ac_file=`expr $ac_file + 1` 1207 ac_beg=$ac_end 1208 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1209 fi 1210done 1211if test -z "$ac_sed_cmds"; then 1212 ac_sed_cmds=cat 1213fi 1214EOF 1215 1216cat >> $CONFIG_STATUS <<EOF 1217 1218CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1219EOF 1220cat >> $CONFIG_STATUS <<\EOF 1221for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1223 case "$ac_file" in 1224 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1225 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1226 *) ac_file_in="${ac_file}.in" ;; 1227 esac 1228 1229 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1230 1231 # Remove last slash and all that follows it. Not all systems have dirname. 1232 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1233 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1234 # The file is in a subdirectory. 1235 test ! -d "$ac_dir" && mkdir "$ac_dir" 1236 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1237 # A "../" for each directory in $ac_dir_suffix. 1238 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1239 else 1240 ac_dir_suffix= ac_dots= 1241 fi 1242 1243 case "$ac_given_srcdir" in 1244 .) srcdir=. 1245 if test -z "$ac_dots"; then top_srcdir=. 1246 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1247 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1248 *) # Relative path. 1249 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1250 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1251 esac 1252 1253 case "$ac_given_INSTALL" in 1254 [/$]*) INSTALL="$ac_given_INSTALL" ;; 1255 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1256 esac 1257 1258 echo creating "$ac_file" 1259 rm -f "$ac_file" 1260 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1261 case "$ac_file" in 1262 *Makefile*) ac_comsub="1i\\ 1263# $configure_input" ;; 1264 *) ac_comsub= ;; 1265 esac 1266 1267 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1268 sed -e "$ac_comsub 1269s%@configure_input@%$configure_input%g 1270s%@srcdir@%$srcdir%g 1271s%@top_srcdir@%$top_srcdir%g 1272s%@INSTALL@%$INSTALL%g 1273" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1274fi; done 1275rm -f conftest.s* 1276 1277# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1278# NAME is the cpp macro being defined and VALUE is the value it is being given. 1279# 1280# ac_d sets the value in "#define NAME VALUE" lines. 1281ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1282ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1283ac_dC='\3' 1284ac_dD='%g' 1285# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1286ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1287ac_uB='\([ ]\)%\1#\2define\3' 1288ac_uC=' ' 1289ac_uD='\4%g' 1290# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1291ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1292ac_eB='$%\1#\2define\3' 1293ac_eC=' ' 1294ac_eD='%g' 1295 1296if test "${CONFIG_HEADERS+set}" != set; then 1297EOF 1298cat >> $CONFIG_STATUS <<EOF 1299 CONFIG_HEADERS="config.h" 1300EOF 1301cat >> $CONFIG_STATUS <<\EOF 1302fi 1303for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1305 case "$ac_file" in 1306 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1307 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1308 *) ac_file_in="${ac_file}.in" ;; 1309 esac 1310 1311 echo creating $ac_file 1312 1313 rm -f conftest.frag conftest.in conftest.out 1314 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1315 cat $ac_file_inputs > conftest.in 1316 1317EOF 1318 1319# Transform confdefs.h into a sed script conftest.vals that substitutes 1320# the proper values into config.h.in to produce config.h. And first: 1321# Protect against being on the right side of a sed subst in config.status. 1322# Protect against being in an unquoted here document in config.status. 1323rm -f conftest.vals 1324cat > conftest.hdr <<\EOF 1325s/[\\&%]/\\&/g 1326s%[\\$`]%\\&%g 1327s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1328s%ac_d%ac_u%gp 1329s%ac_u%ac_e%gp 1330EOF 1331sed -n -f conftest.hdr confdefs.h > conftest.vals 1332rm -f conftest.hdr 1333 1334# This sed command replaces #undef with comments. This is necessary, for 1335# example, in the case of _POSIX_SOURCE, which is predefined and required 1336# on some systems where configure will not decide to define it. 1337cat >> conftest.vals <<\EOF 1338s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1339EOF 1340 1341# Break up conftest.vals because some shells have a limit on 1342# the size of here documents, and old seds have small limits too. 1343 1344rm -f conftest.tail 1345while : 1346do 1347 ac_lines=`grep -c . conftest.vals` 1348 # grep -c gives empty output for an empty file on some AIX systems. 1349 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1350 # Write a limited-size here document to conftest.frag. 1351 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1352 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1353 echo 'CEOF 1354 sed -f conftest.frag conftest.in > conftest.out 1355 rm -f conftest.in 1356 mv conftest.out conftest.in 1357' >> $CONFIG_STATUS 1358 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1359 rm -f conftest.vals 1360 mv conftest.tail conftest.vals 1361done 1362rm -f conftest.vals 1363 1364cat >> $CONFIG_STATUS <<\EOF 1365 rm -f conftest.frag conftest.h 1366 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1367 cat conftest.in >> conftest.h 1368 rm -f conftest.in 1369 if cmp -s $ac_file conftest.h 2>/dev/null; then 1370 echo "$ac_file is unchanged" 1371 rm -f conftest.h 1372 else 1373 # Remove last slash and all that follows it. Not all systems have dirname. 1374 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1375 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1376 # The file is in a subdirectory. 1377 test ! -d "$ac_dir" && mkdir "$ac_dir" 1378 fi 1379 rm -f $ac_file 1380 mv conftest.h $ac_file 1381 fi 1382fi; done 1383 1384EOF 1385cat >> $CONFIG_STATUS <<EOF 1386 1387EOF 1388cat >> $CONFIG_STATUS <<\EOF 1389 1390exit 0 1391EOF 1392chmod +x $CONFIG_STATUS 1393rm -fr confdefs* $ac_clean_files 1394test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1395 1396