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 --with-x use the X Window System" 16 17# Initialize some variables set by options. 18# The variables have the same names as the options, with 19# dashes changed to underlines. 20build=NONE 21cache_file=./config.cache 22exec_prefix=NONE 23host=NONE 24no_create= 25nonopt=NONE 26no_recursion= 27prefix=NONE 28program_prefix=NONE 29program_suffix=NONE 30program_transform_name=s,x,x, 31silent= 32site= 33srcdir= 34target=NONE 35verbose= 36x_includes=NONE 37x_libraries=NONE 38bindir='${exec_prefix}/bin' 39sbindir='${exec_prefix}/sbin' 40libexecdir='${exec_prefix}/libexec' 41datadir='${prefix}/share' 42sysconfdir='${prefix}/etc' 43sharedstatedir='${prefix}/com' 44localstatedir='${prefix}/var' 45libdir='${exec_prefix}/lib' 46includedir='${prefix}/include' 47oldincludedir='/usr/include' 48infodir='${prefix}/info' 49mandir='${prefix}/man' 50 51# Initialize some other variables. 52subdirs= 53MFLAGS= MAKEFLAGS= 54SHELL=${CONFIG_SHELL-/bin/sh} 55# Maximum number of lines to put in a shell here document. 56ac_max_here_lines=12 57 58ac_prev= 59for ac_option 60do 61 62 # If the previous option needs an argument, assign it. 63 if test -n "$ac_prev"; then 64 eval "$ac_prev=\$ac_option" 65 ac_prev= 66 continue 67 fi 68 69 case "$ac_option" in 70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 71 *) ac_optarg= ;; 72 esac 73 74 # Accept the important Cygnus configure options, so we can diagnose typos. 75 76 case "$ac_option" in 77 78 -bindir | --bindir | --bindi | --bind | --bin | --bi) 79 ac_prev=bindir ;; 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 81 bindir="$ac_optarg" ;; 82 83 -build | --build | --buil | --bui | --bu) 84 ac_prev=build ;; 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86 build="$ac_optarg" ;; 87 88 -cache-file | --cache-file | --cache-fil | --cache-fi \ 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 90 ac_prev=cache_file ;; 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 93 cache_file="$ac_optarg" ;; 94 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 96 ac_prev=datadir ;; 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 98 | --da=*) 99 datadir="$ac_optarg" ;; 100 101 -disable-* | --disable-*) 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 103 # Reject names that are not valid shell variable names. 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 106 fi 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 108 eval "enable_${ac_feature}=no" ;; 109 110 -enable-* | --enable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 case "$ac_option" in 118 *=*) ;; 119 *) ac_optarg=yes ;; 120 esac 121 eval "enable_${ac_feature}='$ac_optarg'" ;; 122 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 125 | --exec | --exe | --ex) 126 ac_prev=exec_prefix ;; 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 129 | --exec=* | --exe=* | --ex=*) 130 exec_prefix="$ac_optarg" ;; 131 132 -gas | --gas | --ga | --g) 133 # Obsolete; use --with-gas. 134 with_gas=yes ;; 135 136 -help | --help | --hel | --he) 137 # Omit some internal or obsolete options to make the list less imposing. 138 # This message is too long to be a string in the A/UX 3.1 sh. 139 cat << EOF 140Usage: configure [options] [host] 141Options: [defaults in brackets after descriptions] 142Configuration: 143 --cache-file=FILE cache test results in FILE 144 --help print this message 145 --no-create do not create output files 146 --quiet, --silent do not print \`checking...' messages 147 --version print the version of autoconf that created configure 148Directory and file names: 149 --prefix=PREFIX install architecture-independent files in PREFIX 150 [$ac_default_prefix] 151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 152 [same as prefix] 153 --bindir=DIR user executables in DIR [EPREFIX/bin] 154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 156 --datadir=DIR read-only architecture-independent data in DIR 157 [PREFIX/share] 158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 159 --sharedstatedir=DIR modifiable architecture-independent data in DIR 160 [PREFIX/com] 161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 162 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 163 --includedir=DIR C header files in DIR [PREFIX/include] 164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 165 --infodir=DIR info documentation in DIR [PREFIX/info] 166 --mandir=DIR man documentation in DIR [PREFIX/man] 167 --srcdir=DIR find the sources in DIR [configure dir or ..] 168 --program-prefix=PREFIX prepend PREFIX to installed program names 169 --program-suffix=SUFFIX append SUFFIX to installed program names 170 --program-transform-name=PROGRAM 171 run sed PROGRAM on installed program names 172EOF 173 cat << EOF 174Host type: 175 --build=BUILD configure for building on BUILD [BUILD=HOST] 176 --host=HOST configure for HOST [guessed] 177 --target=TARGET configure for TARGET [TARGET=HOST] 178Features and packages: 179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 183 --x-includes=DIR X include files are in DIR 184 --x-libraries=DIR X library files are in DIR 185EOF 186 if test -n "$ac_help"; then 187 echo "--enable and --with options recognized:$ac_help" 188 fi 189 exit 0 ;; 190 191 -host | --host | --hos | --ho) 192 ac_prev=host ;; 193 -host=* | --host=* | --hos=* | --ho=*) 194 host="$ac_optarg" ;; 195 196 -includedir | --includedir | --includedi | --included | --include \ 197 | --includ | --inclu | --incl | --inc) 198 ac_prev=includedir ;; 199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 200 | --includ=* | --inclu=* | --incl=* | --inc=*) 201 includedir="$ac_optarg" ;; 202 203 -infodir | --infodir | --infodi | --infod | --info | --inf) 204 ac_prev=infodir ;; 205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 206 infodir="$ac_optarg" ;; 207 208 -libdir | --libdir | --libdi | --libd) 209 ac_prev=libdir ;; 210 -libdir=* | --libdir=* | --libdi=* | --libd=*) 211 libdir="$ac_optarg" ;; 212 213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 214 | --libexe | --libex | --libe) 215 ac_prev=libexecdir ;; 216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 217 | --libexe=* | --libex=* | --libe=*) 218 libexecdir="$ac_optarg" ;; 219 220 -localstatedir | --localstatedir | --localstatedi | --localstated \ 221 | --localstate | --localstat | --localsta | --localst \ 222 | --locals | --local | --loca | --loc | --lo) 223 ac_prev=localstatedir ;; 224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 227 localstatedir="$ac_optarg" ;; 228 229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 230 ac_prev=mandir ;; 231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 232 mandir="$ac_optarg" ;; 233 234 -nfp | --nfp | --nf) 235 # Obsolete; use --without-fp. 236 with_fp=no ;; 237 238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 239 | --no-cr | --no-c) 240 no_create=yes ;; 241 242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 244 no_recursion=yes ;; 245 246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 248 | --oldin | --oldi | --old | --ol | --o) 249 ac_prev=oldincludedir ;; 250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 253 oldincludedir="$ac_optarg" ;; 254 255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 256 ac_prev=prefix ;; 257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 258 prefix="$ac_optarg" ;; 259 260 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 261 | --program-pre | --program-pr | --program-p) 262 ac_prev=program_prefix ;; 263 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 265 program_prefix="$ac_optarg" ;; 266 267 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 268 | --program-suf | --program-su | --program-s) 269 ac_prev=program_suffix ;; 270 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 272 program_suffix="$ac_optarg" ;; 273 274 -program-transform-name | --program-transform-name \ 275 | --program-transform-nam | --program-transform-na \ 276 | --program-transform-n | --program-transform- \ 277 | --program-transform | --program-transfor \ 278 | --program-transfo | --program-transf \ 279 | --program-trans | --program-tran \ 280 | --progr-tra | --program-tr | --program-t) 281 ac_prev=program_transform_name ;; 282 -program-transform-name=* | --program-transform-name=* \ 283 | --program-transform-nam=* | --program-transform-na=* \ 284 | --program-transform-n=* | --program-transform-=* \ 285 | --program-transform=* | --program-transfor=* \ 286 | --program-transfo=* | --program-transf=* \ 287 | --program-trans=* | --program-tran=* \ 288 | --progr-tra=* | --program-tr=* | --program-t=*) 289 program_transform_name="$ac_optarg" ;; 290 291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 292 | -silent | --silent | --silen | --sile | --sil) 293 silent=yes ;; 294 295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 296 ac_prev=sbindir ;; 297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 298 | --sbi=* | --sb=*) 299 sbindir="$ac_optarg" ;; 300 301 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 303 | --sharedst | --shareds | --shared | --share | --shar \ 304 | --sha | --sh) 305 ac_prev=sharedstatedir ;; 306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 309 | --sha=* | --sh=*) 310 sharedstatedir="$ac_optarg" ;; 311 312 -site | --site | --sit) 313 ac_prev=site ;; 314 -site=* | --site=* | --sit=*) 315 site="$ac_optarg" ;; 316 317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 318 ac_prev=srcdir ;; 319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 320 srcdir="$ac_optarg" ;; 321 322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 323 | --syscon | --sysco | --sysc | --sys | --sy) 324 ac_prev=sysconfdir ;; 325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 327 sysconfdir="$ac_optarg" ;; 328 329 -target | --target | --targe | --targ | --tar | --ta | --t) 330 ac_prev=target ;; 331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 332 target="$ac_optarg" ;; 333 334 -v | -verbose | --verbose | --verbos | --verbo | --verb) 335 verbose=yes ;; 336 337 -version | --version | --versio | --versi | --vers) 338 echo "configure generated by autoconf version 2.13" 339 exit 0 ;; 340 341 -with-* | --with-*) 342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 343 # Reject names that are not valid shell variable names. 344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 346 fi 347 ac_package=`echo $ac_package| sed 's/-/_/g'` 348 case "$ac_option" in 349 *=*) ;; 350 *) ac_optarg=yes ;; 351 esac 352 eval "with_${ac_package}='$ac_optarg'" ;; 353 354 -without-* | --without-*) 355 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 eval "with_${ac_package}=no" ;; 362 363 --x) 364 # Obsolete; use --with-x. 365 with_x=yes ;; 366 367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 368 | --x-incl | --x-inc | --x-in | --x-i) 369 ac_prev=x_includes ;; 370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 372 x_includes="$ac_optarg" ;; 373 374 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 376 ac_prev=x_libraries ;; 377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 379 x_libraries="$ac_optarg" ;; 380 381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 382 ;; 383 384 *) 385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 386 echo "configure: warning: $ac_option: invalid host type" 1>&2 387 fi 388 if test "x$nonopt" != xNONE; then 389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 390 fi 391 nonopt="$ac_option" 392 ;; 393 394 esac 395done 396 397if test -n "$ac_prev"; then 398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 399fi 400 401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 402 403# File descriptor usage: 404# 0 standard input 405# 1 file creation 406# 2 errors and warnings 407# 3 some systems may open it to /dev/tty 408# 4 used on the Kubota Titan 409# 6 checking for... messages and results 410# 5 compiler messages saved in config.log 411if test "$silent" = yes; then 412 exec 6>/dev/null 413else 414 exec 6>&1 415fi 416exec 5>./config.log 417 418echo "\ 419This file contains any messages produced by compilers while 420running configure, to aid debugging if configure makes a mistake. 421" 1>&5 422 423# Strip out --no-create and --no-recursion so they do not pile up. 424# Also quote any args containing shell metacharacters. 425ac_configure_args= 426for ac_arg 427do 428 case "$ac_arg" in 429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 430 | --no-cr | --no-c) ;; 431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 434 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 435 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 436 esac 437done 438 439# NLS nuisances. 440# Only set these to C if already set. These must not be set unconditionally 441# because not all systems understand e.g. LANG=C (notably SCO). 442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 443# Non-C LC_CTYPE values break the ctype check. 444if test "${LANG+set}" = set; then LANG=C; export LANG; fi 445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 447if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 448 449# confdefs.h avoids OS command line length limits that DEFS can exceed. 450rm -rf conftest* confdefs.h 451# AIX cpp loses on an empty file, so make sure it contains at least a newline. 452echo > confdefs.h 453 454# A filename unique to this package, relative to the directory that 455# configure is in, which we can look for to find out if srcdir is correct. 456ac_unique_file=fkiss.c 457 458# Find the source files, if location was not specified. 459if test -z "$srcdir"; then 460 ac_srcdir_defaulted=yes 461 # Try the directory containing this script, then its parent. 462 ac_prog=$0 463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 465 srcdir=$ac_confdir 466 if test ! -r $srcdir/$ac_unique_file; then 467 srcdir=.. 468 fi 469else 470 ac_srcdir_defaulted=no 471fi 472if test ! -r $srcdir/$ac_unique_file; then 473 if test "$ac_srcdir_defaulted" = yes; then 474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 475 else 476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 477 fi 478fi 479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 480 481# Prefer explicitly selected file to automatically selected ones. 482if test -z "$CONFIG_SITE"; then 483 if test "x$prefix" != xNONE; then 484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 485 else 486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 487 fi 488fi 489for ac_site_file in $CONFIG_SITE; do 490 if test -r "$ac_site_file"; then 491 echo "loading site script $ac_site_file" 492 . "$ac_site_file" 493 fi 494done 495 496if test -r "$cache_file"; then 497 echo "loading cache $cache_file" 498 . $cache_file 499else 500 echo "creating cache $cache_file" 501 > $cache_file 502fi 503 504ac_ext=c 505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 506ac_cpp='$CPP $CPPFLAGS' 507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 509cross_compiling=$ac_cv_prog_cc_cross 510 511ac_exeext= 512ac_objext=o 513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 516 ac_n= ac_c=' 517' ac_t=' ' 518 else 519 ac_n=-n ac_c= ac_t= 520 fi 521else 522 ac_n= ac_c='\c' ac_t= 523fi 524 525 526ac_aux_dir= 527for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 528 if test -f $ac_dir/install-sh; then 529 ac_aux_dir=$ac_dir 530 ac_install_sh="$ac_aux_dir/install-sh -c" 531 break 532 elif test -f $ac_dir/install.sh; then 533 ac_aux_dir=$ac_dir 534 ac_install_sh="$ac_aux_dir/install.sh -c" 535 break 536 fi 537done 538if test -z "$ac_aux_dir"; then 539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 540fi 541ac_config_guess=$ac_aux_dir/config.guess 542ac_config_sub=$ac_aux_dir/config.sub 543ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 544 545# Find a good install program. We prefer a C program (faster), 546# so one script is as good as another. But avoid the broken or 547# incompatible versions: 548# SysV /etc/install, /usr/sbin/install 549# SunOS /usr/etc/install 550# IRIX /sbin/install 551# AIX /bin/install 552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 553# AFS /usr/afsws/bin/install, which mishandles nonexistent args 554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 555# ./install, which can be erroneously created by make from ./install.sh. 556echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 557echo "configure:558: checking for a BSD compatible install" >&5 558if test -z "$INSTALL"; then 559if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 560 echo $ac_n "(cached) $ac_c" 1>&6 561else 562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 563 for ac_dir in $PATH; do 564 # Account for people who put trailing slashes in PATH elements. 565 case "$ac_dir/" in 566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 567 *) 568 # OSF1 and SCO ODT 3.0 have their own names for install. 569 # Don't use installbsd from OSF since it installs stuff as root 570 # by default. 571 for ac_prog in ginstall scoinst install; do 572 if test -f $ac_dir/$ac_prog; then 573 if test $ac_prog = install && 574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 575 # AIX install. It has an incompatible calling convention. 576 : 577 else 578 ac_cv_path_install="$ac_dir/$ac_prog -c" 579 break 2 580 fi 581 fi 582 done 583 ;; 584 esac 585 done 586 IFS="$ac_save_IFS" 587 588fi 589 if test "${ac_cv_path_install+set}" = set; then 590 INSTALL="$ac_cv_path_install" 591 else 592 # As a last resort, use the slow shell script. We don't cache a 593 # path for INSTALL within a source directory, because that will 594 # break other packages using the cache if that directory is 595 # removed, or if the path is relative. 596 INSTALL="$ac_install_sh" 597 fi 598fi 599echo "$ac_t""$INSTALL" 1>&6 600 601# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 602# It thinks the first close brace ends the variable substitution. 603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 604 605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 606 607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 608 609echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 610echo "configure:611: checking whether build environment is sane" >&5 611# Just in case 612sleep 1 613echo timestamp > conftestfile 614# Do `set' in a subshell so we don't clobber the current shell's 615# arguments. Must try -L first in case configure is actually a 616# symlink; some systems play weird games with the mod time of symlinks 617# (eg FreeBSD returns the mod time of the symlink's containing 618# directory). 619if ( 620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 621 if test "$*" = "X"; then 622 # -L didn't work. 623 set X `ls -t $srcdir/configure conftestfile` 624 fi 625 if test "$*" != "X $srcdir/configure conftestfile" \ 626 && test "$*" != "X conftestfile $srcdir/configure"; then 627 628 # If neither matched, then we have a broken ls. This can happen 629 # if, for instance, CONFIG_SHELL is bash and it inherits a 630 # broken ls alias from the environment. This has actually 631 # happened. Such a system could not be considered "sane". 632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 633alias in your environment" 1>&2; exit 1; } 634 fi 635 636 test "$2" = conftestfile 637 ) 638then 639 # Ok. 640 : 641else 642 { echo "configure: error: newly created file is older than distributed files! 643Check your system clock" 1>&2; exit 1; } 644fi 645rm -f conftest* 646echo "$ac_t""yes" 1>&6 647if test "$program_transform_name" = s,x,x,; then 648 program_transform_name= 649else 650 # Double any \ or $. echo might interpret backslashes. 651 cat <<\EOF_SED > conftestsed 652s,\\,\\\\,g; s,\$,$$,g 653EOF_SED 654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 655 rm -f conftestsed 656fi 657test "$program_prefix" != NONE && 658 program_transform_name="s,^,${program_prefix},; $program_transform_name" 659# Use a double $ so make ignores it. 660test "$program_suffix" != NONE && 661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 662 663# sed with no file args requires a program. 664test "$program_transform_name" = "" && program_transform_name="s,x,x," 665 666echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 667echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5 668set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 669if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 670 echo $ac_n "(cached) $ac_c" 1>&6 671else 672 cat > conftestmake <<\EOF 673all: 674 @echo 'ac_maketemp="${MAKE}"' 675EOF 676# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 677eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 678if test -n "$ac_maketemp"; then 679 eval ac_cv_prog_make_${ac_make}_set=yes 680else 681 eval ac_cv_prog_make_${ac_make}_set=no 682fi 683rm -f conftestmake 684fi 685if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 686 echo "$ac_t""yes" 1>&6 687 SET_MAKE= 688else 689 echo "$ac_t""no" 1>&6 690 SET_MAKE="MAKE=${MAKE-make}" 691fi 692 693 694PACKAGE=fkiss 695 696VERSION=0.33a 697 698if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 700fi 701 702 703 704missing_dir=`cd $ac_aux_dir && pwd` 705echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 706echo "configure:707: checking for working aclocal" >&5 707# Run test in a subshell; some versions of sh will print an error if 708# an executable is not found, even if stderr is redirected. 709# Redirect stdin to placate older versions of autoconf. Sigh. 710if (aclocal --version) < /dev/null > /dev/null 2>&1; then 711 ACLOCAL=aclocal 712 echo "$ac_t""found" 1>&6 713else 714 ACLOCAL="$missing_dir/missing aclocal" 715 echo "$ac_t""missing" 1>&6 716fi 717 718echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 719echo "configure:720: checking for working autoconf" >&5 720# Run test in a subshell; some versions of sh will print an error if 721# an executable is not found, even if stderr is redirected. 722# Redirect stdin to placate older versions of autoconf. Sigh. 723if (autoconf --version) < /dev/null > /dev/null 2>&1; then 724 AUTOCONF=autoconf 725 echo "$ac_t""found" 1>&6 726else 727 AUTOCONF="$missing_dir/missing autoconf" 728 echo "$ac_t""missing" 1>&6 729fi 730 731echo $ac_n "checking for working automake""... $ac_c" 1>&6 732echo "configure:733: checking for working automake" >&5 733# Run test in a subshell; some versions of sh will print an error if 734# an executable is not found, even if stderr is redirected. 735# Redirect stdin to placate older versions of autoconf. Sigh. 736if (automake --version) < /dev/null > /dev/null 2>&1; then 737 AUTOMAKE=automake 738 echo "$ac_t""found" 1>&6 739else 740 AUTOMAKE="$missing_dir/missing automake" 741 echo "$ac_t""missing" 1>&6 742fi 743 744echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 745echo "configure:746: checking for working autoheader" >&5 746# Run test in a subshell; some versions of sh will print an error if 747# an executable is not found, even if stderr is redirected. 748# Redirect stdin to placate older versions of autoconf. Sigh. 749if (autoheader --version) < /dev/null > /dev/null 2>&1; then 750 AUTOHEADER=autoheader 751 echo "$ac_t""found" 1>&6 752else 753 AUTOHEADER="$missing_dir/missing autoheader" 754 echo "$ac_t""missing" 1>&6 755fi 756 757echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 758echo "configure:759: checking for working makeinfo" >&5 759# Run test in a subshell; some versions of sh will print an error if 760# an executable is not found, even if stderr is redirected. 761# Redirect stdin to placate older versions of autoconf. Sigh. 762if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 763 MAKEINFO=makeinfo 764 echo "$ac_t""found" 1>&6 765else 766 MAKEINFO="$missing_dir/missing makeinfo" 767 echo "$ac_t""missing" 1>&6 768fi 769 770 771 772 773 774 775for ac_prog in gawk mawk nawk awk 776do 777# Extract the first word of "$ac_prog", so it can be a program name with args. 778set dummy $ac_prog; ac_word=$2 779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 780echo "configure:781: checking for $ac_word" >&5 781if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 782 echo $ac_n "(cached) $ac_c" 1>&6 783else 784 if test -n "$AWK"; then 785 ac_cv_prog_AWK="$AWK" # Let the user override the test. 786else 787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 788 ac_dummy="$PATH" 789 for ac_dir in $ac_dummy; do 790 test -z "$ac_dir" && ac_dir=. 791 if test -f $ac_dir/$ac_word; then 792 ac_cv_prog_AWK="$ac_prog" 793 break 794 fi 795 done 796 IFS="$ac_save_ifs" 797fi 798fi 799AWK="$ac_cv_prog_AWK" 800if test -n "$AWK"; then 801 echo "$ac_t""$AWK" 1>&6 802else 803 echo "$ac_t""no" 1>&6 804fi 805 806test -n "$AWK" && break 807done 808 809# Extract the first word of "gcc", so it can be a program name with args. 810set dummy gcc; ac_word=$2 811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 812echo "configure:813: checking for $ac_word" >&5 813if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 814 echo $ac_n "(cached) $ac_c" 1>&6 815else 816 if test -n "$CC"; then 817 ac_cv_prog_CC="$CC" # Let the user override the test. 818else 819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 820 ac_dummy="$PATH" 821 for ac_dir in $ac_dummy; do 822 test -z "$ac_dir" && ac_dir=. 823 if test -f $ac_dir/$ac_word; then 824 ac_cv_prog_CC="gcc" 825 break 826 fi 827 done 828 IFS="$ac_save_ifs" 829fi 830fi 831CC="$ac_cv_prog_CC" 832if test -n "$CC"; then 833 echo "$ac_t""$CC" 1>&6 834else 835 echo "$ac_t""no" 1>&6 836fi 837 838if test -z "$CC"; then 839 # Extract the first word of "cc", so it can be a program name with args. 840set dummy cc; ac_word=$2 841echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 842echo "configure:843: checking for $ac_word" >&5 843if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 844 echo $ac_n "(cached) $ac_c" 1>&6 845else 846 if test -n "$CC"; then 847 ac_cv_prog_CC="$CC" # Let the user override the test. 848else 849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 850 ac_prog_rejected=no 851 ac_dummy="$PATH" 852 for ac_dir in $ac_dummy; do 853 test -z "$ac_dir" && ac_dir=. 854 if test -f $ac_dir/$ac_word; then 855 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 856 ac_prog_rejected=yes 857 continue 858 fi 859 ac_cv_prog_CC="cc" 860 break 861 fi 862 done 863 IFS="$ac_save_ifs" 864if test $ac_prog_rejected = yes; then 865 # We found a bogon in the path, so make sure we never use it. 866 set dummy $ac_cv_prog_CC 867 shift 868 if test $# -gt 0; then 869 # We chose a different compiler from the bogus one. 870 # However, it has the same basename, so the bogon will be chosen 871 # first if we set CC to just the basename; use the full file name. 872 shift 873 set dummy "$ac_dir/$ac_word" "$@" 874 shift 875 ac_cv_prog_CC="$@" 876 fi 877fi 878fi 879fi 880CC="$ac_cv_prog_CC" 881if test -n "$CC"; then 882 echo "$ac_t""$CC" 1>&6 883else 884 echo "$ac_t""no" 1>&6 885fi 886 887 if test -z "$CC"; then 888 case "`uname -s`" in 889 *win32* | *WIN32*) 890 # Extract the first word of "cl", so it can be a program name with args. 891set dummy cl; ac_word=$2 892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 893echo "configure:894: checking for $ac_word" >&5 894if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 895 echo $ac_n "(cached) $ac_c" 1>&6 896else 897 if test -n "$CC"; then 898 ac_cv_prog_CC="$CC" # Let the user override the test. 899else 900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 901 ac_dummy="$PATH" 902 for ac_dir in $ac_dummy; do 903 test -z "$ac_dir" && ac_dir=. 904 if test -f $ac_dir/$ac_word; then 905 ac_cv_prog_CC="cl" 906 break 907 fi 908 done 909 IFS="$ac_save_ifs" 910fi 911fi 912CC="$ac_cv_prog_CC" 913if test -n "$CC"; then 914 echo "$ac_t""$CC" 1>&6 915else 916 echo "$ac_t""no" 1>&6 917fi 918 ;; 919 esac 920 fi 921 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 922fi 923 924echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 925echo "configure:926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 926 927ac_ext=c 928# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 929ac_cpp='$CPP $CPPFLAGS' 930ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 931ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 932cross_compiling=$ac_cv_prog_cc_cross 933 934cat > conftest.$ac_ext << EOF 935 936#line 937 "configure" 937#include "confdefs.h" 938 939main(){return(0);} 940EOF 941if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 942 ac_cv_prog_cc_works=yes 943 # If we can't run a trivial program, we are probably using a cross compiler. 944 if (./conftest; exit) 2>/dev/null; then 945 ac_cv_prog_cc_cross=no 946 else 947 ac_cv_prog_cc_cross=yes 948 fi 949else 950 echo "configure: failed program was:" >&5 951 cat conftest.$ac_ext >&5 952 ac_cv_prog_cc_works=no 953fi 954rm -fr conftest* 955ac_ext=c 956# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 957ac_cpp='$CPP $CPPFLAGS' 958ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 959ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 960cross_compiling=$ac_cv_prog_cc_cross 961 962echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 963if test $ac_cv_prog_cc_works = no; then 964 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 965fi 966echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 967echo "configure:968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 968echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 969cross_compiling=$ac_cv_prog_cc_cross 970 971echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 972echo "configure:973: checking whether we are using GNU C" >&5 973if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 974 echo $ac_n "(cached) $ac_c" 1>&6 975else 976 cat > conftest.c <<EOF 977#ifdef __GNUC__ 978 yes; 979#endif 980EOF 981if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 982 ac_cv_prog_gcc=yes 983else 984 ac_cv_prog_gcc=no 985fi 986fi 987 988echo "$ac_t""$ac_cv_prog_gcc" 1>&6 989 990if test $ac_cv_prog_gcc = yes; then 991 GCC=yes 992else 993 GCC= 994fi 995 996ac_test_CFLAGS="${CFLAGS+set}" 997ac_save_CFLAGS="$CFLAGS" 998CFLAGS= 999echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1000echo "configure:1001: checking whether ${CC-cc} accepts -g" >&5 1001if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1002 echo $ac_n "(cached) $ac_c" 1>&6 1003else 1004 echo 'void f(){}' > conftest.c 1005if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1006 ac_cv_prog_cc_g=yes 1007else 1008 ac_cv_prog_cc_g=no 1009fi 1010rm -f conftest* 1011 1012fi 1013 1014echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1015if test "$ac_test_CFLAGS" = set; then 1016 CFLAGS="$ac_save_CFLAGS" 1017elif test $ac_cv_prog_cc_g = yes; then 1018 if test "$GCC" = yes; then 1019 CFLAGS="-g -O2" 1020 else 1021 CFLAGS="-g" 1022 fi 1023else 1024 if test "$GCC" = yes; then 1025 CFLAGS="-O2" 1026 else 1027 CFLAGS= 1028 fi 1029fi 1030 1031 1032echo $ac_n "checking for esd_open_sound in -lesd""... $ac_c" 1>&6 1033echo "configure:1034: checking for esd_open_sound in -lesd" >&5 1034ac_lib_var=`echo esd'_'esd_open_sound | sed 'y%./+-%__p_%'` 1035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1036 echo $ac_n "(cached) $ac_c" 1>&6 1037else 1038 ac_save_LIBS="$LIBS" 1039LIBS="-lesd $LIBS" 1040cat > conftest.$ac_ext <<EOF 1041#line 1042 "configure" 1042#include "confdefs.h" 1043/* Override any gcc2 internal prototype to avoid an error. */ 1044/* We use char because int might match the return type of a gcc2 1045 builtin and then its argument prototype would still apply. */ 1046char esd_open_sound(); 1047 1048int main() { 1049esd_open_sound() 1050; return 0; } 1051EOF 1052if { (eval echo configure:1053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1053 rm -rf conftest* 1054 eval "ac_cv_lib_$ac_lib_var=yes" 1055else 1056 echo "configure: failed program was:" >&5 1057 cat conftest.$ac_ext >&5 1058 rm -rf conftest* 1059 eval "ac_cv_lib_$ac_lib_var=no" 1060fi 1061rm -f conftest* 1062LIBS="$ac_save_LIBS" 1063 1064fi 1065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1066 echo "$ac_t""yes" 1>&6 1067 ac_tr_lib=HAVE_LIB`echo esd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1069 cat >> confdefs.h <<EOF 1070#define $ac_tr_lib 1 1071EOF 1072 1073 LIBS="-lesd $LIBS" 1074 1075else 1076 echo "$ac_t""no" 1>&6 1077fi 1078 1079 1080ac_header_dirent=no 1081for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1082do 1083ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1084echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1085echo "configure:1086: checking for $ac_hdr that defines DIR" >&5 1086if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1087 echo $ac_n "(cached) $ac_c" 1>&6 1088else 1089 cat > conftest.$ac_ext <<EOF 1090#line 1091 "configure" 1091#include "confdefs.h" 1092#include <sys/types.h> 1093#include <$ac_hdr> 1094int main() { 1095DIR *dirp = 0; 1096; return 0; } 1097EOF 1098if { (eval echo configure:1099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1099 rm -rf conftest* 1100 eval "ac_cv_header_dirent_$ac_safe=yes" 1101else 1102 echo "configure: failed program was:" >&5 1103 cat conftest.$ac_ext >&5 1104 rm -rf conftest* 1105 eval "ac_cv_header_dirent_$ac_safe=no" 1106fi 1107rm -f conftest* 1108fi 1109if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1110 echo "$ac_t""yes" 1>&6 1111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1112 cat >> confdefs.h <<EOF 1113#define $ac_tr_hdr 1 1114EOF 1115 ac_header_dirent=$ac_hdr; break 1116else 1117 echo "$ac_t""no" 1>&6 1118fi 1119done 1120# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1121if test $ac_header_dirent = dirent.h; then 1122echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1123echo "configure:1124: checking for opendir in -ldir" >&5 1124ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1125if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1126 echo $ac_n "(cached) $ac_c" 1>&6 1127else 1128 ac_save_LIBS="$LIBS" 1129LIBS="-ldir $LIBS" 1130cat > conftest.$ac_ext <<EOF 1131#line 1132 "configure" 1132#include "confdefs.h" 1133/* Override any gcc2 internal prototype to avoid an error. */ 1134/* We use char because int might match the return type of a gcc2 1135 builtin and then its argument prototype would still apply. */ 1136char opendir(); 1137 1138int main() { 1139opendir() 1140; return 0; } 1141EOF 1142if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1143 rm -rf conftest* 1144 eval "ac_cv_lib_$ac_lib_var=yes" 1145else 1146 echo "configure: failed program was:" >&5 1147 cat conftest.$ac_ext >&5 1148 rm -rf conftest* 1149 eval "ac_cv_lib_$ac_lib_var=no" 1150fi 1151rm -f conftest* 1152LIBS="$ac_save_LIBS" 1153 1154fi 1155if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1156 echo "$ac_t""yes" 1>&6 1157 LIBS="$LIBS -ldir" 1158else 1159 echo "$ac_t""no" 1>&6 1160fi 1161 1162else 1163echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1164echo "configure:1165: checking for opendir in -lx" >&5 1165ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1166if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1167 echo $ac_n "(cached) $ac_c" 1>&6 1168else 1169 ac_save_LIBS="$LIBS" 1170LIBS="-lx $LIBS" 1171cat > conftest.$ac_ext <<EOF 1172#line 1173 "configure" 1173#include "confdefs.h" 1174/* Override any gcc2 internal prototype to avoid an error. */ 1175/* We use char because int might match the return type of a gcc2 1176 builtin and then its argument prototype would still apply. */ 1177char opendir(); 1178 1179int main() { 1180opendir() 1181; return 0; } 1182EOF 1183if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1184 rm -rf conftest* 1185 eval "ac_cv_lib_$ac_lib_var=yes" 1186else 1187 echo "configure: failed program was:" >&5 1188 cat conftest.$ac_ext >&5 1189 rm -rf conftest* 1190 eval "ac_cv_lib_$ac_lib_var=no" 1191fi 1192rm -f conftest* 1193LIBS="$ac_save_LIBS" 1194 1195fi 1196if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1197 echo "$ac_t""yes" 1>&6 1198 LIBS="$LIBS -lx" 1199else 1200 echo "$ac_t""no" 1>&6 1201fi 1202 1203fi 1204 1205echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1206echo "configure:1207: checking how to run the C preprocessor" >&5 1207# On Suns, sometimes $CPP names a directory. 1208if test -n "$CPP" && test -d "$CPP"; then 1209 CPP= 1210fi 1211if test -z "$CPP"; then 1212if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1213 echo $ac_n "(cached) $ac_c" 1>&6 1214else 1215 # This must be in double quotes, not single quotes, because CPP may get 1216 # substituted into the Makefile and "${CC-cc}" will confuse make. 1217 CPP="${CC-cc} -E" 1218 # On the NeXT, cc -E runs the code through the compiler's parser, 1219 # not just through cpp. 1220 cat > conftest.$ac_ext <<EOF 1221#line 1222 "configure" 1222#include "confdefs.h" 1223#include <assert.h> 1224Syntax Error 1225EOF 1226ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1227{ (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1228ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1229if test -z "$ac_err"; then 1230 : 1231else 1232 echo "$ac_err" >&5 1233 echo "configure: failed program was:" >&5 1234 cat conftest.$ac_ext >&5 1235 rm -rf conftest* 1236 CPP="${CC-cc} -E -traditional-cpp" 1237 cat > conftest.$ac_ext <<EOF 1238#line 1239 "configure" 1239#include "confdefs.h" 1240#include <assert.h> 1241Syntax Error 1242EOF 1243ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1244{ (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1245ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1246if test -z "$ac_err"; then 1247 : 1248else 1249 echo "$ac_err" >&5 1250 echo "configure: failed program was:" >&5 1251 cat conftest.$ac_ext >&5 1252 rm -rf conftest* 1253 CPP="${CC-cc} -nologo -E" 1254 cat > conftest.$ac_ext <<EOF 1255#line 1256 "configure" 1256#include "confdefs.h" 1257#include <assert.h> 1258Syntax Error 1259EOF 1260ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1261{ (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1262ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1263if test -z "$ac_err"; then 1264 : 1265else 1266 echo "$ac_err" >&5 1267 echo "configure: failed program was:" >&5 1268 cat conftest.$ac_ext >&5 1269 rm -rf conftest* 1270 CPP=/lib/cpp 1271fi 1272rm -f conftest* 1273fi 1274rm -f conftest* 1275fi 1276rm -f conftest* 1277 ac_cv_prog_CPP="$CPP" 1278fi 1279 CPP="$ac_cv_prog_CPP" 1280else 1281 ac_cv_prog_CPP="$CPP" 1282fi 1283echo "$ac_t""$CPP" 1>&6 1284 1285echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1286echo "configure:1287: checking for ANSI C header files" >&5 1287if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1288 echo $ac_n "(cached) $ac_c" 1>&6 1289else 1290 cat > conftest.$ac_ext <<EOF 1291#line 1292 "configure" 1292#include "confdefs.h" 1293#include <stdlib.h> 1294#include <stdarg.h> 1295#include <string.h> 1296#include <float.h> 1297EOF 1298ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1299{ (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1300ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1301if test -z "$ac_err"; then 1302 rm -rf conftest* 1303 ac_cv_header_stdc=yes 1304else 1305 echo "$ac_err" >&5 1306 echo "configure: failed program was:" >&5 1307 cat conftest.$ac_ext >&5 1308 rm -rf conftest* 1309 ac_cv_header_stdc=no 1310fi 1311rm -f conftest* 1312 1313if test $ac_cv_header_stdc = yes; then 1314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1315cat > conftest.$ac_ext <<EOF 1316#line 1317 "configure" 1317#include "confdefs.h" 1318#include <string.h> 1319EOF 1320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1321 egrep "memchr" >/dev/null 2>&1; then 1322 : 1323else 1324 rm -rf conftest* 1325 ac_cv_header_stdc=no 1326fi 1327rm -f conftest* 1328 1329fi 1330 1331if test $ac_cv_header_stdc = yes; then 1332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1333cat > conftest.$ac_ext <<EOF 1334#line 1335 "configure" 1335#include "confdefs.h" 1336#include <stdlib.h> 1337EOF 1338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1339 egrep "free" >/dev/null 2>&1; then 1340 : 1341else 1342 rm -rf conftest* 1343 ac_cv_header_stdc=no 1344fi 1345rm -f conftest* 1346 1347fi 1348 1349if test $ac_cv_header_stdc = yes; then 1350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1351if test "$cross_compiling" = yes; then 1352 : 1353else 1354 cat > conftest.$ac_ext <<EOF 1355#line 1356 "configure" 1356#include "confdefs.h" 1357#include <ctype.h> 1358#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1359#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1361int main () { int i; for (i = 0; i < 256; i++) 1362if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1363exit (0); } 1364 1365EOF 1366if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1367then 1368 : 1369else 1370 echo "configure: failed program was:" >&5 1371 cat conftest.$ac_ext >&5 1372 rm -fr conftest* 1373 ac_cv_header_stdc=no 1374fi 1375rm -fr conftest* 1376fi 1377 1378fi 1379fi 1380 1381echo "$ac_t""$ac_cv_header_stdc" 1>&6 1382if test $ac_cv_header_stdc = yes; then 1383 cat >> confdefs.h <<\EOF 1384#define STDC_HEADERS 1 1385EOF 1386 1387fi 1388 1389echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1390echo "configure:1391: checking for sys/wait.h that is POSIX.1 compatible" >&5 1391if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1392 echo $ac_n "(cached) $ac_c" 1>&6 1393else 1394 cat > conftest.$ac_ext <<EOF 1395#line 1396 "configure" 1396#include "confdefs.h" 1397#include <sys/types.h> 1398#include <sys/wait.h> 1399#ifndef WEXITSTATUS 1400#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 1401#endif 1402#ifndef WIFEXITED 1403#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1404#endif 1405int main() { 1406int s; 1407wait (&s); 1408s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 1409; return 0; } 1410EOF 1411if { (eval echo configure:1412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1412 rm -rf conftest* 1413 ac_cv_header_sys_wait_h=yes 1414else 1415 echo "configure: failed program was:" >&5 1416 cat conftest.$ac_ext >&5 1417 rm -rf conftest* 1418 ac_cv_header_sys_wait_h=no 1419fi 1420rm -f conftest* 1421fi 1422 1423echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 1424if test $ac_cv_header_sys_wait_h = yes; then 1425 cat >> confdefs.h <<\EOF 1426#define HAVE_SYS_WAIT_H 1 1427EOF 1428 1429fi 1430 1431 1432for ac_hdr in fcntl.h strings.h sys/ioctl.h unistd.h\ 1433 sys/stat.h stat.h signal.h esd.h 1434do 1435ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1436echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1437echo "configure:1438: checking for $ac_hdr" >&5 1438if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1439 echo $ac_n "(cached) $ac_c" 1>&6 1440else 1441 cat > conftest.$ac_ext <<EOF 1442#line 1443 "configure" 1443#include "confdefs.h" 1444#include <$ac_hdr> 1445EOF 1446ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1447{ (eval echo configure:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1448ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1449if test -z "$ac_err"; then 1450 rm -rf conftest* 1451 eval "ac_cv_header_$ac_safe=yes" 1452else 1453 echo "$ac_err" >&5 1454 echo "configure: failed program was:" >&5 1455 cat conftest.$ac_ext >&5 1456 rm -rf conftest* 1457 eval "ac_cv_header_$ac_safe=no" 1458fi 1459rm -f conftest* 1460fi 1461if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1462 echo "$ac_t""yes" 1>&6 1463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1464 cat >> confdefs.h <<EOF 1465#define $ac_tr_hdr 1 1466EOF 1467 1468else 1469 echo "$ac_t""no" 1>&6 1470fi 1471done 1472 1473 1474# If we find X, set shell vars x_includes and x_libraries to the 1475# paths, otherwise set no_x=yes. 1476# Uses ac_ vars as temps to allow command line to override cache and checks. 1477# --without-x overrides everything else, but does not touch the cache. 1478echo $ac_n "checking for X""... $ac_c" 1>&6 1479echo "configure:1480: checking for X" >&5 1480 1481# Check whether --with-x or --without-x was given. 1482if test "${with_x+set}" = set; then 1483 withval="$with_x" 1484 : 1485fi 1486 1487# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 1488if test "x$with_x" = xno; then 1489 # The user explicitly disabled X. 1490 have_x=disabled 1491else 1492 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 1493 # Both variables are already set. 1494 have_x=yes 1495 else 1496if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 1497 echo $ac_n "(cached) $ac_c" 1>&6 1498else 1499 # One or both of the vars are not set, and there is no cached value. 1500ac_x_includes=NO ac_x_libraries=NO 1501rm -fr conftestdir 1502if mkdir conftestdir; then 1503 cd conftestdir 1504 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 1505 cat > Imakefile <<'EOF' 1506acfindx: 1507 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 1508EOF 1509 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 1510 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1511 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 1512 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 1513 for ac_extension in a so sl; do 1514 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 1515 test -f $ac_im_libdir/libX11.$ac_extension; then 1516 ac_im_usrlibdir=$ac_im_libdir; break 1517 fi 1518 done 1519 # Screen out bogus values from the imake configuration. They are 1520 # bogus both because they are the default anyway, and because 1521 # using them would break gcc on systems where it needs fixed includes. 1522 case "$ac_im_incroot" in 1523 /usr/include) ;; 1524 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 1525 esac 1526 case "$ac_im_usrlibdir" in 1527 /usr/lib | /lib) ;; 1528 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 1529 esac 1530 fi 1531 cd .. 1532 rm -fr conftestdir 1533fi 1534 1535if test "$ac_x_includes" = NO; then 1536 # Guess where to find include files, by looking for this one X11 .h file. 1537 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 1538 1539 # First, try using that file with no special directory specified. 1540cat > conftest.$ac_ext <<EOF 1541#line 1542 "configure" 1542#include "confdefs.h" 1543#include <$x_direct_test_include> 1544EOF 1545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1546{ (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1548if test -z "$ac_err"; then 1549 rm -rf conftest* 1550 # We can compile using X headers with no special include directory. 1551ac_x_includes= 1552else 1553 echo "$ac_err" >&5 1554 echo "configure: failed program was:" >&5 1555 cat conftest.$ac_ext >&5 1556 rm -rf conftest* 1557 # Look for the header file in a standard set of common directories. 1558# Check X11 before X11Rn because it is often a symlink to the current release. 1559 for ac_dir in \ 1560 /usr/X11/include \ 1561 /usr/X11R6/include \ 1562 /usr/X11R5/include \ 1563 /usr/X11R4/include \ 1564 \ 1565 /usr/include/X11 \ 1566 /usr/include/X11R6 \ 1567 /usr/include/X11R5 \ 1568 /usr/include/X11R4 \ 1569 \ 1570 /usr/local/X11/include \ 1571 /usr/local/X11R6/include \ 1572 /usr/local/X11R5/include \ 1573 /usr/local/X11R4/include \ 1574 \ 1575 /usr/local/include/X11 \ 1576 /usr/local/include/X11R6 \ 1577 /usr/local/include/X11R5 \ 1578 /usr/local/include/X11R4 \ 1579 \ 1580 /usr/X386/include \ 1581 /usr/x386/include \ 1582 /usr/XFree86/include/X11 \ 1583 \ 1584 /usr/include \ 1585 /usr/local/include \ 1586 /usr/unsupported/include \ 1587 /usr/athena/include \ 1588 /usr/local/x11r5/include \ 1589 /usr/lpp/Xamples/include \ 1590 \ 1591 /usr/openwin/include \ 1592 /usr/openwin/share/include \ 1593 ; \ 1594 do 1595 if test -r "$ac_dir/$x_direct_test_include"; then 1596 ac_x_includes=$ac_dir 1597 break 1598 fi 1599 done 1600fi 1601rm -f conftest* 1602fi # $ac_x_includes = NO 1603 1604if test "$ac_x_libraries" = NO; then 1605 # Check for the libraries. 1606 1607 test -z "$x_direct_test_library" && x_direct_test_library=Xt 1608 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 1609 1610 # See if we find them without any special options. 1611 # Don't add to $LIBS permanently. 1612 ac_save_LIBS="$LIBS" 1613 LIBS="-l$x_direct_test_library $LIBS" 1614cat > conftest.$ac_ext <<EOF 1615#line 1616 "configure" 1616#include "confdefs.h" 1617 1618int main() { 1619${x_direct_test_function}() 1620; return 0; } 1621EOF 1622if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1623 rm -rf conftest* 1624 LIBS="$ac_save_LIBS" 1625# We can link X programs with no special library path. 1626ac_x_libraries= 1627else 1628 echo "configure: failed program was:" >&5 1629 cat conftest.$ac_ext >&5 1630 rm -rf conftest* 1631 LIBS="$ac_save_LIBS" 1632# First see if replacing the include by lib works. 1633# Check X11 before X11Rn because it is often a symlink to the current release. 1634for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 1635 /usr/X11/lib \ 1636 /usr/X11R6/lib \ 1637 /usr/X11R5/lib \ 1638 /usr/X11R4/lib \ 1639 \ 1640 /usr/lib/X11 \ 1641 /usr/lib/X11R6 \ 1642 /usr/lib/X11R5 \ 1643 /usr/lib/X11R4 \ 1644 \ 1645 /usr/local/X11/lib \ 1646 /usr/local/X11R6/lib \ 1647 /usr/local/X11R5/lib \ 1648 /usr/local/X11R4/lib \ 1649 \ 1650 /usr/local/lib/X11 \ 1651 /usr/local/lib/X11R6 \ 1652 /usr/local/lib/X11R5 \ 1653 /usr/local/lib/X11R4 \ 1654 \ 1655 /usr/X386/lib \ 1656 /usr/x386/lib \ 1657 /usr/XFree86/lib/X11 \ 1658 \ 1659 /usr/lib \ 1660 /usr/local/lib \ 1661 /usr/unsupported/lib \ 1662 /usr/athena/lib \ 1663 /usr/local/x11r5/lib \ 1664 /usr/lpp/Xamples/lib \ 1665 /lib/usr/lib/X11 \ 1666 \ 1667 /usr/openwin/lib \ 1668 /usr/openwin/share/lib \ 1669 ; \ 1670do 1671 for ac_extension in a so sl; do 1672 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 1673 ac_x_libraries=$ac_dir 1674 break 2 1675 fi 1676 done 1677done 1678fi 1679rm -f conftest* 1680fi # $ac_x_libraries = NO 1681 1682if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 1683 # Didn't find X anywhere. Cache the known absence of X. 1684 ac_cv_have_x="have_x=no" 1685else 1686 # Record where we found X for the cache. 1687 ac_cv_have_x="have_x=yes \ 1688 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 1689fi 1690fi 1691 fi 1692 eval "$ac_cv_have_x" 1693fi # $with_x != no 1694 1695if test "$have_x" != yes; then 1696 echo "$ac_t""$have_x" 1>&6 1697 no_x=yes 1698else 1699 # If each of the values was on the command line, it overrides each guess. 1700 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 1701 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 1702 # Update the cache value to reflect the command line values. 1703 ac_cv_have_x="have_x=yes \ 1704 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 1705 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 1706fi 1707 1708if test "$no_x" = yes; then 1709 # Not all programs may use this symbol, but it does not hurt to define it. 1710 cat >> confdefs.h <<\EOF 1711#define X_DISPLAY_MISSING 1 1712EOF 1713 1714 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 1715else 1716 if test -n "$x_includes"; then 1717 X_CFLAGS="$X_CFLAGS -I$x_includes" 1718 fi 1719 1720 # It would also be nice to do this for all -L options, not just this one. 1721 if test -n "$x_libraries"; then 1722 X_LIBS="$X_LIBS -L$x_libraries" 1723 # For Solaris; some versions of Sun CC require a space after -R and 1724 # others require no space. Words are not sufficient . . . . 1725 case "`(uname -sr) 2>/dev/null`" in 1726 "SunOS 5"*) 1727 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 1728echo "configure:1729: checking whether -R must be followed by a space" >&5 1729 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 1730 cat > conftest.$ac_ext <<EOF 1731#line 1732 "configure" 1732#include "confdefs.h" 1733 1734int main() { 1735 1736; return 0; } 1737EOF 1738if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1739 rm -rf conftest* 1740 ac_R_nospace=yes 1741else 1742 echo "configure: failed program was:" >&5 1743 cat conftest.$ac_ext >&5 1744 rm -rf conftest* 1745 ac_R_nospace=no 1746fi 1747rm -f conftest* 1748 if test $ac_R_nospace = yes; then 1749 echo "$ac_t""no" 1>&6 1750 X_LIBS="$X_LIBS -R$x_libraries" 1751 else 1752 LIBS="$ac_xsave_LIBS -R $x_libraries" 1753 cat > conftest.$ac_ext <<EOF 1754#line 1755 "configure" 1755#include "confdefs.h" 1756 1757int main() { 1758 1759; return 0; } 1760EOF 1761if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1762 rm -rf conftest* 1763 ac_R_space=yes 1764else 1765 echo "configure: failed program was:" >&5 1766 cat conftest.$ac_ext >&5 1767 rm -rf conftest* 1768 ac_R_space=no 1769fi 1770rm -f conftest* 1771 if test $ac_R_space = yes; then 1772 echo "$ac_t""yes" 1>&6 1773 X_LIBS="$X_LIBS -R $x_libraries" 1774 else 1775 echo "$ac_t""neither works" 1>&6 1776 fi 1777 fi 1778 LIBS="$ac_xsave_LIBS" 1779 esac 1780 fi 1781 1782 # Check for system-dependent libraries X programs must link with. 1783 # Do this before checking for the system-independent R6 libraries 1784 # (-lICE), since we may need -lsocket or whatever for X linking. 1785 1786 if test "$ISC" = yes; then 1787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 1788 else 1789 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1790 # libraries were built with DECnet support. And karl@cs.umb.edu says 1791 # the Alpha needs dnet_stub (dnet does not exist). 1792 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 1793echo "configure:1794: checking for dnet_ntoa in -ldnet" >&5 1794ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1796 echo $ac_n "(cached) $ac_c" 1>&6 1797else 1798 ac_save_LIBS="$LIBS" 1799LIBS="-ldnet $LIBS" 1800cat > conftest.$ac_ext <<EOF 1801#line 1802 "configure" 1802#include "confdefs.h" 1803/* Override any gcc2 internal prototype to avoid an error. */ 1804/* We use char because int might match the return type of a gcc2 1805 builtin and then its argument prototype would still apply. */ 1806char dnet_ntoa(); 1807 1808int main() { 1809dnet_ntoa() 1810; return 0; } 1811EOF 1812if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1813 rm -rf conftest* 1814 eval "ac_cv_lib_$ac_lib_var=yes" 1815else 1816 echo "configure: failed program was:" >&5 1817 cat conftest.$ac_ext >&5 1818 rm -rf conftest* 1819 eval "ac_cv_lib_$ac_lib_var=no" 1820fi 1821rm -f conftest* 1822LIBS="$ac_save_LIBS" 1823 1824fi 1825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1826 echo "$ac_t""yes" 1>&6 1827 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 1828else 1829 echo "$ac_t""no" 1>&6 1830fi 1831 1832 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 1833 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 1834echo "configure:1835: checking for dnet_ntoa in -ldnet_stub" >&5 1835ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1836if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1837 echo $ac_n "(cached) $ac_c" 1>&6 1838else 1839 ac_save_LIBS="$LIBS" 1840LIBS="-ldnet_stub $LIBS" 1841cat > conftest.$ac_ext <<EOF 1842#line 1843 "configure" 1843#include "confdefs.h" 1844/* Override any gcc2 internal prototype to avoid an error. */ 1845/* We use char because int might match the return type of a gcc2 1846 builtin and then its argument prototype would still apply. */ 1847char dnet_ntoa(); 1848 1849int main() { 1850dnet_ntoa() 1851; return 0; } 1852EOF 1853if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1854 rm -rf conftest* 1855 eval "ac_cv_lib_$ac_lib_var=yes" 1856else 1857 echo "configure: failed program was:" >&5 1858 cat conftest.$ac_ext >&5 1859 rm -rf conftest* 1860 eval "ac_cv_lib_$ac_lib_var=no" 1861fi 1862rm -f conftest* 1863LIBS="$ac_save_LIBS" 1864 1865fi 1866if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1867 echo "$ac_t""yes" 1>&6 1868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 1869else 1870 echo "$ac_t""no" 1>&6 1871fi 1872 1873 fi 1874 1875 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 1876 # to get the SysV transport functions. 1877 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 1878 # needs -lnsl. 1879 # The nsl library prevents programs from opening the X display 1880 # on Irix 5.2, according to dickey@clark.net. 1881 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1882echo "configure:1883: checking for gethostbyname" >&5 1883if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1884 echo $ac_n "(cached) $ac_c" 1>&6 1885else 1886 cat > conftest.$ac_ext <<EOF 1887#line 1888 "configure" 1888#include "confdefs.h" 1889/* System header to define __stub macros and hopefully few prototypes, 1890 which can conflict with char gethostbyname(); below. */ 1891#include <assert.h> 1892/* Override any gcc2 internal prototype to avoid an error. */ 1893/* We use char because int might match the return type of a gcc2 1894 builtin and then its argument prototype would still apply. */ 1895char gethostbyname(); 1896 1897int main() { 1898 1899/* The GNU C library defines this for functions which it implements 1900 to always fail with ENOSYS. Some functions are actually named 1901 something starting with __ and the normal name is an alias. */ 1902#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1903choke me 1904#else 1905gethostbyname(); 1906#endif 1907 1908; return 0; } 1909EOF 1910if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1911 rm -rf conftest* 1912 eval "ac_cv_func_gethostbyname=yes" 1913else 1914 echo "configure: failed program was:" >&5 1915 cat conftest.$ac_ext >&5 1916 rm -rf conftest* 1917 eval "ac_cv_func_gethostbyname=no" 1918fi 1919rm -f conftest* 1920fi 1921 1922if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1923 echo "$ac_t""yes" 1>&6 1924 : 1925else 1926 echo "$ac_t""no" 1>&6 1927fi 1928 1929 if test $ac_cv_func_gethostbyname = no; then 1930 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1931echo "configure:1932: checking for gethostbyname in -lnsl" >&5 1932ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1933if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1934 echo $ac_n "(cached) $ac_c" 1>&6 1935else 1936 ac_save_LIBS="$LIBS" 1937LIBS="-lnsl $LIBS" 1938cat > conftest.$ac_ext <<EOF 1939#line 1940 "configure" 1940#include "confdefs.h" 1941/* Override any gcc2 internal prototype to avoid an error. */ 1942/* We use char because int might match the return type of a gcc2 1943 builtin and then its argument prototype would still apply. */ 1944char gethostbyname(); 1945 1946int main() { 1947gethostbyname() 1948; return 0; } 1949EOF 1950if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1951 rm -rf conftest* 1952 eval "ac_cv_lib_$ac_lib_var=yes" 1953else 1954 echo "configure: failed program was:" >&5 1955 cat conftest.$ac_ext >&5 1956 rm -rf conftest* 1957 eval "ac_cv_lib_$ac_lib_var=no" 1958fi 1959rm -f conftest* 1960LIBS="$ac_save_LIBS" 1961 1962fi 1963if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1964 echo "$ac_t""yes" 1>&6 1965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 1966else 1967 echo "$ac_t""no" 1>&6 1968fi 1969 1970 fi 1971 1972 # lieder@skyler.mavd.honeywell.com says without -lsocket, 1973 # socket/setsockopt and other routines are undefined under SCO ODT 1974 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 1975 # on later versions), says simon@lia.di.epfl.ch: it contains 1976 # gethostby* variants that don't use the nameserver (or something). 1977 # -lsocket must be given before -lnsl if both are needed. 1978 # We assume that if connect needs -lnsl, so does gethostbyname. 1979 echo $ac_n "checking for connect""... $ac_c" 1>&6 1980echo "configure:1981: checking for connect" >&5 1981if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 1982 echo $ac_n "(cached) $ac_c" 1>&6 1983else 1984 cat > conftest.$ac_ext <<EOF 1985#line 1986 "configure" 1986#include "confdefs.h" 1987/* System header to define __stub macros and hopefully few prototypes, 1988 which can conflict with char connect(); below. */ 1989#include <assert.h> 1990/* Override any gcc2 internal prototype to avoid an error. */ 1991/* We use char because int might match the return type of a gcc2 1992 builtin and then its argument prototype would still apply. */ 1993char connect(); 1994 1995int main() { 1996 1997/* The GNU C library defines this for functions which it implements 1998 to always fail with ENOSYS. Some functions are actually named 1999 something starting with __ and the normal name is an alias. */ 2000#if defined (__stub_connect) || defined (__stub___connect) 2001choke me 2002#else 2003connect(); 2004#endif 2005 2006; return 0; } 2007EOF 2008if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2009 rm -rf conftest* 2010 eval "ac_cv_func_connect=yes" 2011else 2012 echo "configure: failed program was:" >&5 2013 cat conftest.$ac_ext >&5 2014 rm -rf conftest* 2015 eval "ac_cv_func_connect=no" 2016fi 2017rm -f conftest* 2018fi 2019 2020if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 2021 echo "$ac_t""yes" 1>&6 2022 : 2023else 2024 echo "$ac_t""no" 1>&6 2025fi 2026 2027 if test $ac_cv_func_connect = no; then 2028 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 2029echo "configure:2030: checking for connect in -lsocket" >&5 2030ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 2031if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2032 echo $ac_n "(cached) $ac_c" 1>&6 2033else 2034 ac_save_LIBS="$LIBS" 2035LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 2036cat > conftest.$ac_ext <<EOF 2037#line 2038 "configure" 2038#include "confdefs.h" 2039/* Override any gcc2 internal prototype to avoid an error. */ 2040/* We use char because int might match the return type of a gcc2 2041 builtin and then its argument prototype would still apply. */ 2042char connect(); 2043 2044int main() { 2045connect() 2046; return 0; } 2047EOF 2048if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2049 rm -rf conftest* 2050 eval "ac_cv_lib_$ac_lib_var=yes" 2051else 2052 echo "configure: failed program was:" >&5 2053 cat conftest.$ac_ext >&5 2054 rm -rf conftest* 2055 eval "ac_cv_lib_$ac_lib_var=no" 2056fi 2057rm -f conftest* 2058LIBS="$ac_save_LIBS" 2059 2060fi 2061if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2062 echo "$ac_t""yes" 1>&6 2063 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 2064else 2065 echo "$ac_t""no" 1>&6 2066fi 2067 2068 fi 2069 2070 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 2071 echo $ac_n "checking for remove""... $ac_c" 1>&6 2072echo "configure:2073: checking for remove" >&5 2073if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 2074 echo $ac_n "(cached) $ac_c" 1>&6 2075else 2076 cat > conftest.$ac_ext <<EOF 2077#line 2078 "configure" 2078#include "confdefs.h" 2079/* System header to define __stub macros and hopefully few prototypes, 2080 which can conflict with char remove(); below. */ 2081#include <assert.h> 2082/* Override any gcc2 internal prototype to avoid an error. */ 2083/* We use char because int might match the return type of a gcc2 2084 builtin and then its argument prototype would still apply. */ 2085char remove(); 2086 2087int main() { 2088 2089/* The GNU C library defines this for functions which it implements 2090 to always fail with ENOSYS. Some functions are actually named 2091 something starting with __ and the normal name is an alias. */ 2092#if defined (__stub_remove) || defined (__stub___remove) 2093choke me 2094#else 2095remove(); 2096#endif 2097 2098; return 0; } 2099EOF 2100if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2101 rm -rf conftest* 2102 eval "ac_cv_func_remove=yes" 2103else 2104 echo "configure: failed program was:" >&5 2105 cat conftest.$ac_ext >&5 2106 rm -rf conftest* 2107 eval "ac_cv_func_remove=no" 2108fi 2109rm -f conftest* 2110fi 2111 2112if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 2113 echo "$ac_t""yes" 1>&6 2114 : 2115else 2116 echo "$ac_t""no" 1>&6 2117fi 2118 2119 if test $ac_cv_func_remove = no; then 2120 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 2121echo "configure:2122: checking for remove in -lposix" >&5 2122ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 2123if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2124 echo $ac_n "(cached) $ac_c" 1>&6 2125else 2126 ac_save_LIBS="$LIBS" 2127LIBS="-lposix $LIBS" 2128cat > conftest.$ac_ext <<EOF 2129#line 2130 "configure" 2130#include "confdefs.h" 2131/* Override any gcc2 internal prototype to avoid an error. */ 2132/* We use char because int might match the return type of a gcc2 2133 builtin and then its argument prototype would still apply. */ 2134char remove(); 2135 2136int main() { 2137remove() 2138; return 0; } 2139EOF 2140if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2141 rm -rf conftest* 2142 eval "ac_cv_lib_$ac_lib_var=yes" 2143else 2144 echo "configure: failed program was:" >&5 2145 cat conftest.$ac_ext >&5 2146 rm -rf conftest* 2147 eval "ac_cv_lib_$ac_lib_var=no" 2148fi 2149rm -f conftest* 2150LIBS="$ac_save_LIBS" 2151 2152fi 2153if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2154 echo "$ac_t""yes" 1>&6 2155 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 2156else 2157 echo "$ac_t""no" 1>&6 2158fi 2159 2160 fi 2161 2162 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 2163 echo $ac_n "checking for shmat""... $ac_c" 1>&6 2164echo "configure:2165: checking for shmat" >&5 2165if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 2166 echo $ac_n "(cached) $ac_c" 1>&6 2167else 2168 cat > conftest.$ac_ext <<EOF 2169#line 2170 "configure" 2170#include "confdefs.h" 2171/* System header to define __stub macros and hopefully few prototypes, 2172 which can conflict with char shmat(); below. */ 2173#include <assert.h> 2174/* Override any gcc2 internal prototype to avoid an error. */ 2175/* We use char because int might match the return type of a gcc2 2176 builtin and then its argument prototype would still apply. */ 2177char shmat(); 2178 2179int main() { 2180 2181/* The GNU C library defines this for functions which it implements 2182 to always fail with ENOSYS. Some functions are actually named 2183 something starting with __ and the normal name is an alias. */ 2184#if defined (__stub_shmat) || defined (__stub___shmat) 2185choke me 2186#else 2187shmat(); 2188#endif 2189 2190; return 0; } 2191EOF 2192if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2193 rm -rf conftest* 2194 eval "ac_cv_func_shmat=yes" 2195else 2196 echo "configure: failed program was:" >&5 2197 cat conftest.$ac_ext >&5 2198 rm -rf conftest* 2199 eval "ac_cv_func_shmat=no" 2200fi 2201rm -f conftest* 2202fi 2203 2204if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 2205 echo "$ac_t""yes" 1>&6 2206 : 2207else 2208 echo "$ac_t""no" 1>&6 2209fi 2210 2211 if test $ac_cv_func_shmat = no; then 2212 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 2213echo "configure:2214: checking for shmat in -lipc" >&5 2214ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 2215if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2216 echo $ac_n "(cached) $ac_c" 1>&6 2217else 2218 ac_save_LIBS="$LIBS" 2219LIBS="-lipc $LIBS" 2220cat > conftest.$ac_ext <<EOF 2221#line 2222 "configure" 2222#include "confdefs.h" 2223/* Override any gcc2 internal prototype to avoid an error. */ 2224/* We use char because int might match the return type of a gcc2 2225 builtin and then its argument prototype would still apply. */ 2226char shmat(); 2227 2228int main() { 2229shmat() 2230; return 0; } 2231EOF 2232if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2233 rm -rf conftest* 2234 eval "ac_cv_lib_$ac_lib_var=yes" 2235else 2236 echo "configure: failed program was:" >&5 2237 cat conftest.$ac_ext >&5 2238 rm -rf conftest* 2239 eval "ac_cv_lib_$ac_lib_var=no" 2240fi 2241rm -f conftest* 2242LIBS="$ac_save_LIBS" 2243 2244fi 2245if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2246 echo "$ac_t""yes" 1>&6 2247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 2248else 2249 echo "$ac_t""no" 1>&6 2250fi 2251 2252 fi 2253 fi 2254 2255 # Check for libraries that X11R6 Xt/Xaw programs need. 2256 ac_save_LDFLAGS="$LDFLAGS" 2257 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 2258 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 2259 # check for ICE first), but we must link in the order -lSM -lICE or 2260 # we get undefined symbols. So assume we have SM if we have ICE. 2261 # These have to be linked with before -lX11, unlike the other 2262 # libraries we check for below, so use a different variable. 2263 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 2264 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 2265echo "configure:2266: checking for IceConnectionNumber in -lICE" >&5 2266ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 2267if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2268 echo $ac_n "(cached) $ac_c" 1>&6 2269else 2270 ac_save_LIBS="$LIBS" 2271LIBS="-lICE $X_EXTRA_LIBS $LIBS" 2272cat > conftest.$ac_ext <<EOF 2273#line 2274 "configure" 2274#include "confdefs.h" 2275/* Override any gcc2 internal prototype to avoid an error. */ 2276/* We use char because int might match the return type of a gcc2 2277 builtin and then its argument prototype would still apply. */ 2278char IceConnectionNumber(); 2279 2280int main() { 2281IceConnectionNumber() 2282; return 0; } 2283EOF 2284if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2285 rm -rf conftest* 2286 eval "ac_cv_lib_$ac_lib_var=yes" 2287else 2288 echo "configure: failed program was:" >&5 2289 cat conftest.$ac_ext >&5 2290 rm -rf conftest* 2291 eval "ac_cv_lib_$ac_lib_var=no" 2292fi 2293rm -f conftest* 2294LIBS="$ac_save_LIBS" 2295 2296fi 2297if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2298 echo "$ac_t""yes" 1>&6 2299 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 2300else 2301 echo "$ac_t""no" 1>&6 2302fi 2303 2304 LDFLAGS="$ac_save_LDFLAGS" 2305 2306fi 2307 2308 2309 2310 2311 2312echo $ac_n "checking for working const""... $ac_c" 1>&6 2313echo "configure:2314: checking for working const" >&5 2314if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2315 echo $ac_n "(cached) $ac_c" 1>&6 2316else 2317 cat > conftest.$ac_ext <<EOF 2318#line 2319 "configure" 2319#include "confdefs.h" 2320 2321int main() { 2322 2323/* Ultrix mips cc rejects this. */ 2324typedef int charset[2]; const charset x; 2325/* SunOS 4.1.1 cc rejects this. */ 2326char const *const *ccp; 2327char **p; 2328/* NEC SVR4.0.2 mips cc rejects this. */ 2329struct point {int x, y;}; 2330static struct point const zero = {0,0}; 2331/* AIX XL C 1.02.0.0 rejects this. 2332 It does not let you subtract one const X* pointer from another in an arm 2333 of an if-expression whose if-part is not a constant expression */ 2334const char *g = "string"; 2335ccp = &g + (g ? g-g : 0); 2336/* HPUX 7.0 cc rejects these. */ 2337++ccp; 2338p = (char**) ccp; 2339ccp = (char const *const *) p; 2340{ /* SCO 3.2v4 cc rejects this. */ 2341 char *t; 2342 char const *s = 0 ? (char *) 0 : (char const *) 0; 2343 2344 *t++ = 0; 2345} 2346{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2347 int x[] = {25, 17}; 2348 const int *foo = &x[0]; 2349 ++foo; 2350} 2351{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2352 typedef const int *iptr; 2353 iptr p = 0; 2354 ++p; 2355} 2356{ /* AIX XL C 1.02.0.0 rejects this saying 2357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2358 struct s { int j; const int *ap[3]; }; 2359 struct s *b; b->j = 5; 2360} 2361{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2362 const int foo = 10; 2363} 2364 2365; return 0; } 2366EOF 2367if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2368 rm -rf conftest* 2369 ac_cv_c_const=yes 2370else 2371 echo "configure: failed program was:" >&5 2372 cat conftest.$ac_ext >&5 2373 rm -rf conftest* 2374 ac_cv_c_const=no 2375fi 2376rm -f conftest* 2377fi 2378 2379echo "$ac_t""$ac_cv_c_const" 1>&6 2380if test $ac_cv_c_const = no; then 2381 cat >> confdefs.h <<\EOF 2382#define const 2383EOF 2384 2385fi 2386 2387echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2388echo "configure:2389: checking whether struct tm is in sys/time.h or time.h" >&5 2389if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2390 echo $ac_n "(cached) $ac_c" 1>&6 2391else 2392 cat > conftest.$ac_ext <<EOF 2393#line 2394 "configure" 2394#include "confdefs.h" 2395#include <sys/types.h> 2396#include <time.h> 2397int main() { 2398struct tm *tp; tp->tm_sec; 2399; return 0; } 2400EOF 2401if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2402 rm -rf conftest* 2403 ac_cv_struct_tm=time.h 2404else 2405 echo "configure: failed program was:" >&5 2406 cat conftest.$ac_ext >&5 2407 rm -rf conftest* 2408 ac_cv_struct_tm=sys/time.h 2409fi 2410rm -f conftest* 2411fi 2412 2413echo "$ac_t""$ac_cv_struct_tm" 1>&6 2414if test $ac_cv_struct_tm = sys/time.h; then 2415 cat >> confdefs.h <<\EOF 2416#define TM_IN_SYS_TIME 1 2417EOF 2418 2419fi 2420 2421 2422if test $ac_cv_prog_gcc = yes; then 2423 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2424echo "configure:2425: checking whether ${CC-cc} needs -traditional" >&5 2425if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2426 echo $ac_n "(cached) $ac_c" 1>&6 2427else 2428 ac_pattern="Autoconf.*'x'" 2429 cat > conftest.$ac_ext <<EOF 2430#line 2431 "configure" 2431#include "confdefs.h" 2432#include <sgtty.h> 2433Autoconf TIOCGETP 2434EOF 2435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2436 egrep "$ac_pattern" >/dev/null 2>&1; then 2437 rm -rf conftest* 2438 ac_cv_prog_gcc_traditional=yes 2439else 2440 rm -rf conftest* 2441 ac_cv_prog_gcc_traditional=no 2442fi 2443rm -f conftest* 2444 2445 2446 if test $ac_cv_prog_gcc_traditional = no; then 2447 cat > conftest.$ac_ext <<EOF 2448#line 2449 "configure" 2449#include "confdefs.h" 2450#include <termio.h> 2451Autoconf TCGETA 2452EOF 2453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2454 egrep "$ac_pattern" >/dev/null 2>&1; then 2455 rm -rf conftest* 2456 ac_cv_prog_gcc_traditional=yes 2457fi 2458rm -f conftest* 2459 2460 fi 2461fi 2462 2463echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 2464 if test $ac_cv_prog_gcc_traditional = yes; then 2465 CC="$CC -traditional" 2466 fi 2467fi 2468 2469echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2470echo "configure:2471: checking return type of signal handlers" >&5 2471if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2472 echo $ac_n "(cached) $ac_c" 1>&6 2473else 2474 cat > conftest.$ac_ext <<EOF 2475#line 2476 "configure" 2476#include "confdefs.h" 2477#include <sys/types.h> 2478#include <signal.h> 2479#ifdef signal 2480#undef signal 2481#endif 2482#ifdef __cplusplus 2483extern "C" void (*signal (int, void (*)(int)))(int); 2484#else 2485void (*signal ()) (); 2486#endif 2487 2488int main() { 2489int i; 2490; return 0; } 2491EOF 2492if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2493 rm -rf conftest* 2494 ac_cv_type_signal=void 2495else 2496 echo "configure: failed program was:" >&5 2497 cat conftest.$ac_ext >&5 2498 rm -rf conftest* 2499 ac_cv_type_signal=int 2500fi 2501rm -f conftest* 2502fi 2503 2504echo "$ac_t""$ac_cv_type_signal" 1>&6 2505cat >> confdefs.h <<EOF 2506#define RETSIGTYPE $ac_cv_type_signal 2507EOF 2508 2509 2510echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2511echo "configure:2512: checking for vprintf" >&5 2512if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2513 echo $ac_n "(cached) $ac_c" 1>&6 2514else 2515 cat > conftest.$ac_ext <<EOF 2516#line 2517 "configure" 2517#include "confdefs.h" 2518/* System header to define __stub macros and hopefully few prototypes, 2519 which can conflict with char vprintf(); below. */ 2520#include <assert.h> 2521/* Override any gcc2 internal prototype to avoid an error. */ 2522/* We use char because int might match the return type of a gcc2 2523 builtin and then its argument prototype would still apply. */ 2524char vprintf(); 2525 2526int main() { 2527 2528/* The GNU C library defines this for functions which it implements 2529 to always fail with ENOSYS. Some functions are actually named 2530 something starting with __ and the normal name is an alias. */ 2531#if defined (__stub_vprintf) || defined (__stub___vprintf) 2532choke me 2533#else 2534vprintf(); 2535#endif 2536 2537; return 0; } 2538EOF 2539if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2540 rm -rf conftest* 2541 eval "ac_cv_func_vprintf=yes" 2542else 2543 echo "configure: failed program was:" >&5 2544 cat conftest.$ac_ext >&5 2545 rm -rf conftest* 2546 eval "ac_cv_func_vprintf=no" 2547fi 2548rm -f conftest* 2549fi 2550 2551if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2552 echo "$ac_t""yes" 1>&6 2553 cat >> confdefs.h <<\EOF 2554#define HAVE_VPRINTF 1 2555EOF 2556 2557else 2558 echo "$ac_t""no" 1>&6 2559fi 2560 2561if test "$ac_cv_func_vprintf" != yes; then 2562echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2563echo "configure:2564: checking for _doprnt" >&5 2564if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2565 echo $ac_n "(cached) $ac_c" 1>&6 2566else 2567 cat > conftest.$ac_ext <<EOF 2568#line 2569 "configure" 2569#include "confdefs.h" 2570/* System header to define __stub macros and hopefully few prototypes, 2571 which can conflict with char _doprnt(); below. */ 2572#include <assert.h> 2573/* Override any gcc2 internal prototype to avoid an error. */ 2574/* We use char because int might match the return type of a gcc2 2575 builtin and then its argument prototype would still apply. */ 2576char _doprnt(); 2577 2578int main() { 2579 2580/* The GNU C library defines this for functions which it implements 2581 to always fail with ENOSYS. Some functions are actually named 2582 something starting with __ and the normal name is an alias. */ 2583#if defined (__stub__doprnt) || defined (__stub____doprnt) 2584choke me 2585#else 2586_doprnt(); 2587#endif 2588 2589; return 0; } 2590EOF 2591if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2592 rm -rf conftest* 2593 eval "ac_cv_func__doprnt=yes" 2594else 2595 echo "configure: failed program was:" >&5 2596 cat conftest.$ac_ext >&5 2597 rm -rf conftest* 2598 eval "ac_cv_func__doprnt=no" 2599fi 2600rm -f conftest* 2601fi 2602 2603if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2604 echo "$ac_t""yes" 1>&6 2605 cat >> confdefs.h <<\EOF 2606#define HAVE_DOPRNT 1 2607EOF 2608 2609else 2610 echo "$ac_t""no" 1>&6 2611fi 2612 2613fi 2614 2615for ac_func in index rindex bcopy bcmp bzero strdup\ 2616 usleep gettimeofday strtol uname\ 2617 opendir closedir readdir 2618do 2619echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2620echo "configure:2621: checking for $ac_func" >&5 2621if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2622 echo $ac_n "(cached) $ac_c" 1>&6 2623else 2624 cat > conftest.$ac_ext <<EOF 2625#line 2626 "configure" 2626#include "confdefs.h" 2627/* System header to define __stub macros and hopefully few prototypes, 2628 which can conflict with char $ac_func(); below. */ 2629#include <assert.h> 2630/* Override any gcc2 internal prototype to avoid an error. */ 2631/* We use char because int might match the return type of a gcc2 2632 builtin and then its argument prototype would still apply. */ 2633char $ac_func(); 2634 2635int main() { 2636 2637/* The GNU C library defines this for functions which it implements 2638 to always fail with ENOSYS. Some functions are actually named 2639 something starting with __ and the normal name is an alias. */ 2640#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2641choke me 2642#else 2643$ac_func(); 2644#endif 2645 2646; return 0; } 2647EOF 2648if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2649 rm -rf conftest* 2650 eval "ac_cv_func_$ac_func=yes" 2651else 2652 echo "configure: failed program was:" >&5 2653 cat conftest.$ac_ext >&5 2654 rm -rf conftest* 2655 eval "ac_cv_func_$ac_func=no" 2656fi 2657rm -f conftest* 2658fi 2659 2660if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2661 echo "$ac_t""yes" 1>&6 2662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2663 cat >> confdefs.h <<EOF 2664#define $ac_tr_func 1 2665EOF 2666 2667else 2668 echo "$ac_t""no" 1>&6 2669fi 2670done 2671 2672 2673trap '' 1 2 15 2674cat > confcache <<\EOF 2675# This file is a shell script that caches the results of configure 2676# tests run on this system so they can be shared between configure 2677# scripts and configure runs. It is not useful on other systems. 2678# If it contains results you don't want to keep, you may remove or edit it. 2679# 2680# By default, configure uses ./config.cache as the cache file, 2681# creating it if it does not exist already. You can give configure 2682# the --cache-file=FILE option to use a different cache file; that is 2683# what configure does when it calls configure scripts in 2684# subdirectories, so they share the cache. 2685# Giving --cache-file=/dev/null disables caching, for debugging configure. 2686# config.status only pays attention to the cache file if you give it the 2687# --recheck option to rerun configure. 2688# 2689EOF 2690# The following way of writing the cache mishandles newlines in values, 2691# but we know of no workaround that is simple, portable, and efficient. 2692# So, don't put newlines in cache variables' values. 2693# Ultrix sh set writes to stderr and can't be redirected directly, 2694# and sets the high bit in the cache file unless we assign to the vars. 2695(set) 2>&1 | 2696 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2697 *ac_space=\ *) 2698 # `set' does not quote correctly, so add quotes (double-quote substitution 2699 # turns \\\\ into \\, and sed turns \\ into \). 2700 sed -n \ 2701 -e "s/'/'\\\\''/g" \ 2702 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2703 ;; 2704 *) 2705 # `set' quotes correctly as required by POSIX, so do not add quotes. 2706 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2707 ;; 2708 esac >> confcache 2709if cmp -s $cache_file confcache; then 2710 : 2711else 2712 if test -w $cache_file; then 2713 echo "updating cache $cache_file" 2714 cat confcache > $cache_file 2715 else 2716 echo "not updating unwritable cache $cache_file" 2717 fi 2718fi 2719rm -f confcache 2720 2721trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2722 2723test "x$prefix" = xNONE && prefix=$ac_default_prefix 2724# Let make expand exec_prefix. 2725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2726 2727# Any assignment to VPATH causes Sun make to only execute 2728# the first set of double-colon rules, so remove it if not needed. 2729# If there is a colon in the path, we need to keep it. 2730if test "x$srcdir" = x.; then 2731 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2732fi 2733 2734trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2735 2736DEFS=-DHAVE_CONFIG_H 2737 2738# Without the "./", some shells look in PATH for config.status. 2739: ${CONFIG_STATUS=./config.status} 2740 2741echo creating $CONFIG_STATUS 2742rm -f $CONFIG_STATUS 2743cat > $CONFIG_STATUS <<EOF 2744#! /bin/sh 2745# Generated automatically by configure. 2746# Run this file to recreate the current configuration. 2747# This directory was configured as follows, 2748# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2749# 2750# $0 $ac_configure_args 2751# 2752# Compiler output produced by configure, useful for debugging 2753# configure, is in ./config.log if it exists. 2754 2755ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2756for ac_option 2757do 2758 case "\$ac_option" in 2759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2760 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2761 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2762 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2763 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2764 exit 0 ;; 2765 -help | --help | --hel | --he | --h) 2766 echo "\$ac_cs_usage"; exit 0 ;; 2767 *) echo "\$ac_cs_usage"; exit 1 ;; 2768 esac 2769done 2770 2771ac_given_srcdir=$srcdir 2772ac_given_INSTALL="$INSTALL" 2773 2774trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2775EOF 2776cat >> $CONFIG_STATUS <<EOF 2777 2778# Protect against being on the right side of a sed subst in config.status. 2779sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2780 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2781$ac_vpsub 2782$extrasub 2783s%@SHELL@%$SHELL%g 2784s%@CFLAGS@%$CFLAGS%g 2785s%@CPPFLAGS@%$CPPFLAGS%g 2786s%@CXXFLAGS@%$CXXFLAGS%g 2787s%@FFLAGS@%$FFLAGS%g 2788s%@DEFS@%$DEFS%g 2789s%@LDFLAGS@%$LDFLAGS%g 2790s%@LIBS@%$LIBS%g 2791s%@exec_prefix@%$exec_prefix%g 2792s%@prefix@%$prefix%g 2793s%@program_transform_name@%$program_transform_name%g 2794s%@bindir@%$bindir%g 2795s%@sbindir@%$sbindir%g 2796s%@libexecdir@%$libexecdir%g 2797s%@datadir@%$datadir%g 2798s%@sysconfdir@%$sysconfdir%g 2799s%@sharedstatedir@%$sharedstatedir%g 2800s%@localstatedir@%$localstatedir%g 2801s%@libdir@%$libdir%g 2802s%@includedir@%$includedir%g 2803s%@oldincludedir@%$oldincludedir%g 2804s%@infodir@%$infodir%g 2805s%@mandir@%$mandir%g 2806s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2807s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2808s%@INSTALL_DATA@%$INSTALL_DATA%g 2809s%@PACKAGE@%$PACKAGE%g 2810s%@VERSION@%$VERSION%g 2811s%@ACLOCAL@%$ACLOCAL%g 2812s%@AUTOCONF@%$AUTOCONF%g 2813s%@AUTOMAKE@%$AUTOMAKE%g 2814s%@AUTOHEADER@%$AUTOHEADER%g 2815s%@MAKEINFO@%$MAKEINFO%g 2816s%@SET_MAKE@%$SET_MAKE%g 2817s%@AWK@%$AWK%g 2818s%@CC@%$CC%g 2819s%@CPP@%$CPP%g 2820s%@X_CFLAGS@%$X_CFLAGS%g 2821s%@X_PRE_LIBS@%$X_PRE_LIBS%g 2822s%@X_LIBS@%$X_LIBS%g 2823s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 2824s%@x_includes@%$x_includes%g 2825s%@x_libraries@%$x_libraries%g 2826 2827CEOF 2828EOF 2829 2830cat >> $CONFIG_STATUS <<\EOF 2831 2832# Split the substitutions into bite-sized pieces for seds with 2833# small command number limits, like on Digital OSF/1 and HP-UX. 2834ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2835ac_file=1 # Number of current file. 2836ac_beg=1 # First line for current file. 2837ac_end=$ac_max_sed_cmds # Line after last line for current file. 2838ac_more_lines=: 2839ac_sed_cmds="" 2840while $ac_more_lines; do 2841 if test $ac_beg -gt 1; then 2842 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2843 else 2844 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2845 fi 2846 if test ! -s conftest.s$ac_file; then 2847 ac_more_lines=false 2848 rm -f conftest.s$ac_file 2849 else 2850 if test -z "$ac_sed_cmds"; then 2851 ac_sed_cmds="sed -f conftest.s$ac_file" 2852 else 2853 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2854 fi 2855 ac_file=`expr $ac_file + 1` 2856 ac_beg=$ac_end 2857 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2858 fi 2859done 2860if test -z "$ac_sed_cmds"; then 2861 ac_sed_cmds=cat 2862fi 2863EOF 2864 2865cat >> $CONFIG_STATUS <<EOF 2866 2867CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2868EOF 2869cat >> $CONFIG_STATUS <<\EOF 2870for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2872 case "$ac_file" in 2873 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2874 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2875 *) ac_file_in="${ac_file}.in" ;; 2876 esac 2877 2878 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2879 2880 # Remove last slash and all that follows it. Not all systems have dirname. 2881 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2882 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2883 # The file is in a subdirectory. 2884 test ! -d "$ac_dir" && mkdir "$ac_dir" 2885 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2886 # A "../" for each directory in $ac_dir_suffix. 2887 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2888 else 2889 ac_dir_suffix= ac_dots= 2890 fi 2891 2892 case "$ac_given_srcdir" in 2893 .) srcdir=. 2894 if test -z "$ac_dots"; then top_srcdir=. 2895 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2896 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2897 *) # Relative path. 2898 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2899 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2900 esac 2901 2902 case "$ac_given_INSTALL" in 2903 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2904 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2905 esac 2906 2907 echo creating "$ac_file" 2908 rm -f "$ac_file" 2909 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2910 case "$ac_file" in 2911 *Makefile*) ac_comsub="1i\\ 2912# $configure_input" ;; 2913 *) ac_comsub= ;; 2914 esac 2915 2916 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2917 sed -e "$ac_comsub 2918s%@configure_input@%$configure_input%g 2919s%@srcdir@%$srcdir%g 2920s%@top_srcdir@%$top_srcdir%g 2921s%@INSTALL@%$INSTALL%g 2922" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2923fi; done 2924rm -f conftest.s* 2925 2926# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2927# NAME is the cpp macro being defined and VALUE is the value it is being given. 2928# 2929# ac_d sets the value in "#define NAME VALUE" lines. 2930ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2931ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2932ac_dC='\3' 2933ac_dD='%g' 2934# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2935ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2936ac_uB='\([ ]\)%\1#\2define\3' 2937ac_uC=' ' 2938ac_uD='\4%g' 2939# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2940ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2941ac_eB='$%\1#\2define\3' 2942ac_eC=' ' 2943ac_eD='%g' 2944 2945if test "${CONFIG_HEADERS+set}" != set; then 2946EOF 2947cat >> $CONFIG_STATUS <<EOF 2948 CONFIG_HEADERS="config.h" 2949EOF 2950cat >> $CONFIG_STATUS <<\EOF 2951fi 2952for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2953 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2954 case "$ac_file" in 2955 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2956 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2957 *) ac_file_in="${ac_file}.in" ;; 2958 esac 2959 2960 echo creating $ac_file 2961 2962 rm -f conftest.frag conftest.in conftest.out 2963 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2964 cat $ac_file_inputs > conftest.in 2965 2966EOF 2967 2968# Transform confdefs.h into a sed script conftest.vals that substitutes 2969# the proper values into config.h.in to produce config.h. And first: 2970# Protect against being on the right side of a sed subst in config.status. 2971# Protect against being in an unquoted here document in config.status. 2972rm -f conftest.vals 2973cat > conftest.hdr <<\EOF 2974s/[\\&%]/\\&/g 2975s%[\\$`]%\\&%g 2976s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2977s%ac_d%ac_u%gp 2978s%ac_u%ac_e%gp 2979EOF 2980sed -n -f conftest.hdr confdefs.h > conftest.vals 2981rm -f conftest.hdr 2982 2983# This sed command replaces #undef with comments. This is necessary, for 2984# example, in the case of _POSIX_SOURCE, which is predefined and required 2985# on some systems where configure will not decide to define it. 2986cat >> conftest.vals <<\EOF 2987s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2988EOF 2989 2990# Break up conftest.vals because some shells have a limit on 2991# the size of here documents, and old seds have small limits too. 2992 2993rm -f conftest.tail 2994while : 2995do 2996 ac_lines=`grep -c . conftest.vals` 2997 # grep -c gives empty output for an empty file on some AIX systems. 2998 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2999 # Write a limited-size here document to conftest.frag. 3000 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3001 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 3002 echo 'CEOF 3003 sed -f conftest.frag conftest.in > conftest.out 3004 rm -f conftest.in 3005 mv conftest.out conftest.in 3006' >> $CONFIG_STATUS 3007 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 3008 rm -f conftest.vals 3009 mv conftest.tail conftest.vals 3010done 3011rm -f conftest.vals 3012 3013cat >> $CONFIG_STATUS <<\EOF 3014 rm -f conftest.frag conftest.h 3015 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3016 cat conftest.in >> conftest.h 3017 rm -f conftest.in 3018 if cmp -s $ac_file conftest.h 2>/dev/null; then 3019 echo "$ac_file is unchanged" 3020 rm -f conftest.h 3021 else 3022 # Remove last slash and all that follows it. Not all systems have dirname. 3023 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3024 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3025 # The file is in a subdirectory. 3026 test ! -d "$ac_dir" && mkdir "$ac_dir" 3027 fi 3028 rm -f $ac_file 3029 mv conftest.h $ac_file 3030 fi 3031fi; done 3032 3033EOF 3034cat >> $CONFIG_STATUS <<EOF 3035 3036 3037EOF 3038cat >> $CONFIG_STATUS <<\EOF 3039test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3040 3041exit 0 3042EOF 3043chmod +x $CONFIG_STATUS 3044rm -fr confdefs* $ac_clean_files 3045test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3046 3047