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= 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 526 527 528test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 529 530# Extract the first word of "gcc", so it can be a program name with args. 531set dummy gcc; ac_word=$2 532echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 533echo "configure:534: checking for $ac_word" >&5 534if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 535 echo $ac_n "(cached) $ac_c" 1>&6 536else 537 if test -n "$CC"; then 538 ac_cv_prog_CC="$CC" # Let the user override the test. 539else 540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 541 ac_dummy="$PATH" 542 for ac_dir in $ac_dummy; do 543 test -z "$ac_dir" && ac_dir=. 544 if test -f $ac_dir/$ac_word; then 545 ac_cv_prog_CC="gcc" 546 break 547 fi 548 done 549 IFS="$ac_save_ifs" 550fi 551fi 552CC="$ac_cv_prog_CC" 553if test -n "$CC"; then 554 echo "$ac_t""$CC" 1>&6 555else 556 echo "$ac_t""no" 1>&6 557fi 558 559if test -z "$CC"; then 560 # Extract the first word of "cc", so it can be a program name with args. 561set dummy cc; ac_word=$2 562echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 563echo "configure:564: checking for $ac_word" >&5 564if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 565 echo $ac_n "(cached) $ac_c" 1>&6 566else 567 if test -n "$CC"; then 568 ac_cv_prog_CC="$CC" # Let the user override the test. 569else 570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 571 ac_prog_rejected=no 572 ac_dummy="$PATH" 573 for ac_dir in $ac_dummy; do 574 test -z "$ac_dir" && ac_dir=. 575 if test -f $ac_dir/$ac_word; then 576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 577 ac_prog_rejected=yes 578 continue 579 fi 580 ac_cv_prog_CC="cc" 581 break 582 fi 583 done 584 IFS="$ac_save_ifs" 585if test $ac_prog_rejected = yes; then 586 # We found a bogon in the path, so make sure we never use it. 587 set dummy $ac_cv_prog_CC 588 shift 589 if test $# -gt 0; then 590 # We chose a different compiler from the bogus one. 591 # However, it has the same basename, so the bogon will be chosen 592 # first if we set CC to just the basename; use the full file name. 593 shift 594 set dummy "$ac_dir/$ac_word" "$@" 595 shift 596 ac_cv_prog_CC="$@" 597 fi 598fi 599fi 600fi 601CC="$ac_cv_prog_CC" 602if test -n "$CC"; then 603 echo "$ac_t""$CC" 1>&6 604else 605 echo "$ac_t""no" 1>&6 606fi 607 608 if test -z "$CC"; then 609 case "`uname -s`" in 610 *win32* | *WIN32*) 611 # Extract the first word of "cl", so it can be a program name with args. 612set dummy cl; ac_word=$2 613echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 614echo "configure:615: checking for $ac_word" >&5 615if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 616 echo $ac_n "(cached) $ac_c" 1>&6 617else 618 if test -n "$CC"; then 619 ac_cv_prog_CC="$CC" # Let the user override the test. 620else 621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 622 ac_dummy="$PATH" 623 for ac_dir in $ac_dummy; do 624 test -z "$ac_dir" && ac_dir=. 625 if test -f $ac_dir/$ac_word; then 626 ac_cv_prog_CC="cl" 627 break 628 fi 629 done 630 IFS="$ac_save_ifs" 631fi 632fi 633CC="$ac_cv_prog_CC" 634if test -n "$CC"; then 635 echo "$ac_t""$CC" 1>&6 636else 637 echo "$ac_t""no" 1>&6 638fi 639 ;; 640 esac 641 fi 642 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 643fi 644 645echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 646echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 647 648ac_ext=c 649# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 650ac_cpp='$CPP $CPPFLAGS' 651ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 652ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 653cross_compiling=$ac_cv_prog_cc_cross 654 655cat > conftest.$ac_ext << EOF 656 657#line 658 "configure" 658#include "confdefs.h" 659 660main(){return(0);} 661EOF 662if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 663 ac_cv_prog_cc_works=yes 664 # If we can't run a trivial program, we are probably using a cross compiler. 665 if (./conftest; exit) 2>/dev/null; then 666 ac_cv_prog_cc_cross=no 667 else 668 ac_cv_prog_cc_cross=yes 669 fi 670else 671 echo "configure: failed program was:" >&5 672 cat conftest.$ac_ext >&5 673 ac_cv_prog_cc_works=no 674fi 675rm -fr conftest* 676ac_ext=c 677# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 678ac_cpp='$CPP $CPPFLAGS' 679ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 680ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 681cross_compiling=$ac_cv_prog_cc_cross 682 683echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 684if test $ac_cv_prog_cc_works = no; then 685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 686fi 687echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 688echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 689echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 690cross_compiling=$ac_cv_prog_cc_cross 691 692echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 693echo "configure:694: checking whether we are using GNU C" >&5 694if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 695 echo $ac_n "(cached) $ac_c" 1>&6 696else 697 cat > conftest.c <<EOF 698#ifdef __GNUC__ 699 yes; 700#endif 701EOF 702if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 703 ac_cv_prog_gcc=yes 704else 705 ac_cv_prog_gcc=no 706fi 707fi 708 709echo "$ac_t""$ac_cv_prog_gcc" 1>&6 710 711if test $ac_cv_prog_gcc = yes; then 712 GCC=yes 713else 714 GCC= 715fi 716 717ac_test_CFLAGS="${CFLAGS+set}" 718ac_save_CFLAGS="$CFLAGS" 719CFLAGS= 720echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 721echo "configure:722: checking whether ${CC-cc} accepts -g" >&5 722if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 723 echo $ac_n "(cached) $ac_c" 1>&6 724else 725 echo 'void f(){}' > conftest.c 726if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 727 ac_cv_prog_cc_g=yes 728else 729 ac_cv_prog_cc_g=no 730fi 731rm -f conftest* 732 733fi 734 735echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 736if test "$ac_test_CFLAGS" = set; then 737 CFLAGS="$ac_save_CFLAGS" 738elif test $ac_cv_prog_cc_g = yes; then 739 if test "$GCC" = yes; then 740 CFLAGS="-g -O2" 741 else 742 CFLAGS="-g" 743 fi 744else 745 if test "$GCC" = yes; then 746 CFLAGS="-O2" 747 else 748 CFLAGS= 749 fi 750fi 751 752echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 753echo "configure:754: checking for POSIXized ISC" >&5 754if test -d /etc/conf/kconfig.d && 755 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 756then 757 echo "$ac_t""yes" 1>&6 758 ISC=yes # If later tests want to check for ISC. 759 cat >> confdefs.h <<\EOF 760#define _POSIX_SOURCE 1 761EOF 762 763 if test "$GCC" = yes; then 764 CC="$CC -posix" 765 else 766 CC="$CC -Xp" 767 fi 768else 769 echo "$ac_t""no" 1>&6 770 ISC= 771fi 772 773# Extract the first word of "ar", so it can be a program name with args. 774set dummy ar; ac_word=$2 775echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 776echo "configure:777: checking for $ac_word" >&5 777if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 778 echo $ac_n "(cached) $ac_c" 1>&6 779else 780 if test -n "$AR"; then 781 ac_cv_prog_AR="$AR" # Let the user override the test. 782else 783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 784 ac_dummy="$PATH" 785 for ac_dir in $ac_dummy; do 786 test -z "$ac_dir" && ac_dir=. 787 if test -f $ac_dir/$ac_word; then 788 ac_cv_prog_AR="ar" 789 break 790 fi 791 done 792 IFS="$ac_save_ifs" 793 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 794fi 795fi 796AR="$ac_cv_prog_AR" 797if test -n "$AR"; then 798 echo "$ac_t""$AR" 1>&6 799else 800 echo "$ac_t""no" 1>&6 801fi 802 803# Extract the first word of "ranlib", so it can be a program name with args. 804set dummy ranlib; ac_word=$2 805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 806echo "configure:807: checking for $ac_word" >&5 807if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 808 echo $ac_n "(cached) $ac_c" 1>&6 809else 810 if test -n "$RANLIB"; then 811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 812else 813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 814 ac_dummy="$PATH" 815 for ac_dir in $ac_dummy; do 816 test -z "$ac_dir" && ac_dir=. 817 if test -f $ac_dir/$ac_word; then 818 ac_cv_prog_RANLIB="ranlib" 819 break 820 fi 821 done 822 IFS="$ac_save_ifs" 823 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 824fi 825fi 826RANLIB="$ac_cv_prog_RANLIB" 827if test -n "$RANLIB"; then 828 echo "$ac_t""$RANLIB" 1>&6 829else 830 echo "$ac_t""no" 1>&6 831fi 832 833 834echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 835echo "configure:836: checking how to run the C preprocessor" >&5 836# On Suns, sometimes $CPP names a directory. 837if test -n "$CPP" && test -d "$CPP"; then 838 CPP= 839fi 840if test -z "$CPP"; then 841if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 842 echo $ac_n "(cached) $ac_c" 1>&6 843else 844 # This must be in double quotes, not single quotes, because CPP may get 845 # substituted into the Makefile and "${CC-cc}" will confuse make. 846 CPP="${CC-cc} -E" 847 # On the NeXT, cc -E runs the code through the compiler's parser, 848 # not just through cpp. 849 cat > conftest.$ac_ext <<EOF 850#line 851 "configure" 851#include "confdefs.h" 852#include <assert.h> 853Syntax Error 854EOF 855ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 856{ (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 857ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 858if test -z "$ac_err"; then 859 : 860else 861 echo "$ac_err" >&5 862 echo "configure: failed program was:" >&5 863 cat conftest.$ac_ext >&5 864 rm -rf conftest* 865 CPP="${CC-cc} -E -traditional-cpp" 866 cat > conftest.$ac_ext <<EOF 867#line 868 "configure" 868#include "confdefs.h" 869#include <assert.h> 870Syntax Error 871EOF 872ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 873{ (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 874ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 875if test -z "$ac_err"; then 876 : 877else 878 echo "$ac_err" >&5 879 echo "configure: failed program was:" >&5 880 cat conftest.$ac_ext >&5 881 rm -rf conftest* 882 CPP="${CC-cc} -nologo -E" 883 cat > conftest.$ac_ext <<EOF 884#line 885 "configure" 885#include "confdefs.h" 886#include <assert.h> 887Syntax Error 888EOF 889ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 890{ (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 891ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 892if test -z "$ac_err"; then 893 : 894else 895 echo "$ac_err" >&5 896 echo "configure: failed program was:" >&5 897 cat conftest.$ac_ext >&5 898 rm -rf conftest* 899 CPP=/lib/cpp 900fi 901rm -f conftest* 902fi 903rm -f conftest* 904fi 905rm -f conftest* 906 ac_cv_prog_CPP="$CPP" 907fi 908 CPP="$ac_cv_prog_CPP" 909else 910 ac_cv_prog_CPP="$CPP" 911fi 912echo "$ac_t""$CPP" 1>&6 913 914echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 915echo "configure:916: checking for ANSI C header files" >&5 916if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 917 echo $ac_n "(cached) $ac_c" 1>&6 918else 919 cat > conftest.$ac_ext <<EOF 920#line 921 "configure" 921#include "confdefs.h" 922#include <stdlib.h> 923#include <stdarg.h> 924#include <string.h> 925#include <float.h> 926EOF 927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 928{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 930if test -z "$ac_err"; then 931 rm -rf conftest* 932 ac_cv_header_stdc=yes 933else 934 echo "$ac_err" >&5 935 echo "configure: failed program was:" >&5 936 cat conftest.$ac_ext >&5 937 rm -rf conftest* 938 ac_cv_header_stdc=no 939fi 940rm -f conftest* 941 942if test $ac_cv_header_stdc = yes; then 943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 944cat > conftest.$ac_ext <<EOF 945#line 946 "configure" 946#include "confdefs.h" 947#include <string.h> 948EOF 949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 950 egrep "memchr" >/dev/null 2>&1; then 951 : 952else 953 rm -rf conftest* 954 ac_cv_header_stdc=no 955fi 956rm -f conftest* 957 958fi 959 960if test $ac_cv_header_stdc = yes; then 961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 962cat > conftest.$ac_ext <<EOF 963#line 964 "configure" 964#include "confdefs.h" 965#include <stdlib.h> 966EOF 967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 968 egrep "free" >/dev/null 2>&1; then 969 : 970else 971 rm -rf conftest* 972 ac_cv_header_stdc=no 973fi 974rm -f conftest* 975 976fi 977 978if test $ac_cv_header_stdc = yes; then 979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 980if test "$cross_compiling" = yes; then 981 : 982else 983 cat > conftest.$ac_ext <<EOF 984#line 985 "configure" 985#include "confdefs.h" 986#include <ctype.h> 987#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 988#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 989#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 990int main () { int i; for (i = 0; i < 256; i++) 991if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 992exit (0); } 993 994EOF 995if { (eval echo configure:996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 996then 997 : 998else 999 echo "configure: failed program was:" >&5 1000 cat conftest.$ac_ext >&5 1001 rm -fr conftest* 1002 ac_cv_header_stdc=no 1003fi 1004rm -fr conftest* 1005fi 1006 1007fi 1008fi 1009 1010echo "$ac_t""$ac_cv_header_stdc" 1>&6 1011if test $ac_cv_header_stdc = yes; then 1012 cat >> confdefs.h <<\EOF 1013#define STDC_HEADERS 1 1014EOF 1015 1016fi 1017 1018 1019# If we find X, set shell vars x_includes and x_libraries to the 1020# paths, otherwise set no_x=yes. 1021# Uses ac_ vars as temps to allow command line to override cache and checks. 1022# --without-x overrides everything else, but does not touch the cache. 1023echo $ac_n "checking for X""... $ac_c" 1>&6 1024echo "configure:1025: checking for X" >&5 1025 1026# Check whether --with-x or --without-x was given. 1027if test "${with_x+set}" = set; then 1028 withval="$with_x" 1029 : 1030fi 1031 1032# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 1033if test "x$with_x" = xno; then 1034 # The user explicitly disabled X. 1035 have_x=disabled 1036else 1037 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 1038 # Both variables are already set. 1039 have_x=yes 1040 else 1041if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 1042 echo $ac_n "(cached) $ac_c" 1>&6 1043else 1044 # One or both of the vars are not set, and there is no cached value. 1045ac_x_includes=NO ac_x_libraries=NO 1046rm -fr conftestdir 1047if mkdir conftestdir; then 1048 cd conftestdir 1049 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 1050 cat > Imakefile <<'EOF' 1051acfindx: 1052 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 1053EOF 1054 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 1055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1056 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 1057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 1058 for ac_extension in a so sl; do 1059 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 1060 test -f $ac_im_libdir/libX11.$ac_extension; then 1061 ac_im_usrlibdir=$ac_im_libdir; break 1062 fi 1063 done 1064 # Screen out bogus values from the imake configuration. They are 1065 # bogus both because they are the default anyway, and because 1066 # using them would break gcc on systems where it needs fixed includes. 1067 case "$ac_im_incroot" in 1068 /usr/include) ;; 1069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 1070 esac 1071 case "$ac_im_usrlibdir" in 1072 /usr/lib | /lib) ;; 1073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 1074 esac 1075 fi 1076 cd .. 1077 rm -fr conftestdir 1078fi 1079 1080if test "$ac_x_includes" = NO; then 1081 # Guess where to find include files, by looking for this one X11 .h file. 1082 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 1083 1084 # First, try using that file with no special directory specified. 1085cat > conftest.$ac_ext <<EOF 1086#line 1087 "configure" 1087#include "confdefs.h" 1088#include <$x_direct_test_include> 1089EOF 1090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1091{ (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1093if test -z "$ac_err"; then 1094 rm -rf conftest* 1095 # We can compile using X headers with no special include directory. 1096ac_x_includes= 1097else 1098 echo "$ac_err" >&5 1099 echo "configure: failed program was:" >&5 1100 cat conftest.$ac_ext >&5 1101 rm -rf conftest* 1102 # Look for the header file in a standard set of common directories. 1103# Check X11 before X11Rn because it is often a symlink to the current release. 1104 for ac_dir in \ 1105 /usr/X11/include \ 1106 /usr/X11R6/include \ 1107 /usr/X11R5/include \ 1108 /usr/X11R4/include \ 1109 \ 1110 /usr/include/X11 \ 1111 /usr/include/X11R6 \ 1112 /usr/include/X11R5 \ 1113 /usr/include/X11R4 \ 1114 \ 1115 /usr/local/X11/include \ 1116 /usr/local/X11R6/include \ 1117 /usr/local/X11R5/include \ 1118 /usr/local/X11R4/include \ 1119 \ 1120 /usr/local/include/X11 \ 1121 /usr/local/include/X11R6 \ 1122 /usr/local/include/X11R5 \ 1123 /usr/local/include/X11R4 \ 1124 \ 1125 /usr/X386/include \ 1126 /usr/x386/include \ 1127 /usr/XFree86/include/X11 \ 1128 \ 1129 /usr/include \ 1130 /usr/local/include \ 1131 /usr/unsupported/include \ 1132 /usr/athena/include \ 1133 /usr/local/x11r5/include \ 1134 /usr/lpp/Xamples/include \ 1135 \ 1136 /usr/openwin/include \ 1137 /usr/openwin/share/include \ 1138 ; \ 1139 do 1140 if test -r "$ac_dir/$x_direct_test_include"; then 1141 ac_x_includes=$ac_dir 1142 break 1143 fi 1144 done 1145fi 1146rm -f conftest* 1147fi # $ac_x_includes = NO 1148 1149if test "$ac_x_libraries" = NO; then 1150 # Check for the libraries. 1151 1152 test -z "$x_direct_test_library" && x_direct_test_library=Xt 1153 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 1154 1155 # See if we find them without any special options. 1156 # Don't add to $LIBS permanently. 1157 ac_save_LIBS="$LIBS" 1158 LIBS="-l$x_direct_test_library $LIBS" 1159cat > conftest.$ac_ext <<EOF 1160#line 1161 "configure" 1161#include "confdefs.h" 1162 1163int main() { 1164${x_direct_test_function}() 1165; return 0; } 1166EOF 1167if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1168 rm -rf conftest* 1169 LIBS="$ac_save_LIBS" 1170# We can link X programs with no special library path. 1171ac_x_libraries= 1172else 1173 echo "configure: failed program was:" >&5 1174 cat conftest.$ac_ext >&5 1175 rm -rf conftest* 1176 LIBS="$ac_save_LIBS" 1177# First see if replacing the include by lib works. 1178# Check X11 before X11Rn because it is often a symlink to the current release. 1179for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 1180 /usr/X11/lib \ 1181 /usr/X11R6/lib \ 1182 /usr/X11R5/lib \ 1183 /usr/X11R4/lib \ 1184 \ 1185 /usr/lib/X11 \ 1186 /usr/lib/X11R6 \ 1187 /usr/lib/X11R5 \ 1188 /usr/lib/X11R4 \ 1189 \ 1190 /usr/local/X11/lib \ 1191 /usr/local/X11R6/lib \ 1192 /usr/local/X11R5/lib \ 1193 /usr/local/X11R4/lib \ 1194 \ 1195 /usr/local/lib/X11 \ 1196 /usr/local/lib/X11R6 \ 1197 /usr/local/lib/X11R5 \ 1198 /usr/local/lib/X11R4 \ 1199 \ 1200 /usr/X386/lib \ 1201 /usr/x386/lib \ 1202 /usr/XFree86/lib/X11 \ 1203 \ 1204 /usr/lib \ 1205 /usr/local/lib \ 1206 /usr/unsupported/lib \ 1207 /usr/athena/lib \ 1208 /usr/local/x11r5/lib \ 1209 /usr/lpp/Xamples/lib \ 1210 /lib/usr/lib/X11 \ 1211 \ 1212 /usr/openwin/lib \ 1213 /usr/openwin/share/lib \ 1214 ; \ 1215do 1216 for ac_extension in a so sl; do 1217 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 1218 ac_x_libraries=$ac_dir 1219 break 2 1220 fi 1221 done 1222done 1223fi 1224rm -f conftest* 1225fi # $ac_x_libraries = NO 1226 1227if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 1228 # Didn't find X anywhere. Cache the known absence of X. 1229 ac_cv_have_x="have_x=no" 1230else 1231 # Record where we found X for the cache. 1232 ac_cv_have_x="have_x=yes \ 1233 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 1234fi 1235fi 1236 fi 1237 eval "$ac_cv_have_x" 1238fi # $with_x != no 1239 1240if test "$have_x" != yes; then 1241 echo "$ac_t""$have_x" 1>&6 1242 no_x=yes 1243else 1244 # If each of the values was on the command line, it overrides each guess. 1245 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 1246 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 1247 # Update the cache value to reflect the command line values. 1248 ac_cv_have_x="have_x=yes \ 1249 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 1250 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 1251fi 1252 1253if test "$no_x" = yes; then 1254 # Not all programs may use this symbol, but it does not hurt to define it. 1255 cat >> confdefs.h <<\EOF 1256#define X_DISPLAY_MISSING 1 1257EOF 1258 1259 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 1260else 1261 if test -n "$x_includes"; then 1262 X_CFLAGS="$X_CFLAGS -I$x_includes" 1263 fi 1264 1265 # It would also be nice to do this for all -L options, not just this one. 1266 if test -n "$x_libraries"; then 1267 X_LIBS="$X_LIBS -L$x_libraries" 1268 # For Solaris; some versions of Sun CC require a space after -R and 1269 # others require no space. Words are not sufficient . . . . 1270 case "`(uname -sr) 2>/dev/null`" in 1271 "SunOS 5"*) 1272 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 1273echo "configure:1274: checking whether -R must be followed by a space" >&5 1274 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 1275 cat > conftest.$ac_ext <<EOF 1276#line 1277 "configure" 1277#include "confdefs.h" 1278 1279int main() { 1280 1281; return 0; } 1282EOF 1283if { (eval echo configure:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1284 rm -rf conftest* 1285 ac_R_nospace=yes 1286else 1287 echo "configure: failed program was:" >&5 1288 cat conftest.$ac_ext >&5 1289 rm -rf conftest* 1290 ac_R_nospace=no 1291fi 1292rm -f conftest* 1293 if test $ac_R_nospace = yes; then 1294 echo "$ac_t""no" 1>&6 1295 X_LIBS="$X_LIBS -R$x_libraries" 1296 else 1297 LIBS="$ac_xsave_LIBS -R $x_libraries" 1298 cat > conftest.$ac_ext <<EOF 1299#line 1300 "configure" 1300#include "confdefs.h" 1301 1302int main() { 1303 1304; return 0; } 1305EOF 1306if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1307 rm -rf conftest* 1308 ac_R_space=yes 1309else 1310 echo "configure: failed program was:" >&5 1311 cat conftest.$ac_ext >&5 1312 rm -rf conftest* 1313 ac_R_space=no 1314fi 1315rm -f conftest* 1316 if test $ac_R_space = yes; then 1317 echo "$ac_t""yes" 1>&6 1318 X_LIBS="$X_LIBS -R $x_libraries" 1319 else 1320 echo "$ac_t""neither works" 1>&6 1321 fi 1322 fi 1323 LIBS="$ac_xsave_LIBS" 1324 esac 1325 fi 1326 1327 # Check for system-dependent libraries X programs must link with. 1328 # Do this before checking for the system-independent R6 libraries 1329 # (-lICE), since we may need -lsocket or whatever for X linking. 1330 1331 if test "$ISC" = yes; then 1332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 1333 else 1334 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1335 # libraries were built with DECnet support. And karl@cs.umb.edu says 1336 # the Alpha needs dnet_stub (dnet does not exist). 1337 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 1338echo "configure:1339: checking for dnet_ntoa in -ldnet" >&5 1339ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1341 echo $ac_n "(cached) $ac_c" 1>&6 1342else 1343 ac_save_LIBS="$LIBS" 1344LIBS="-ldnet $LIBS" 1345cat > conftest.$ac_ext <<EOF 1346#line 1347 "configure" 1347#include "confdefs.h" 1348/* Override any gcc2 internal prototype to avoid an error. */ 1349/* We use char because int might match the return type of a gcc2 1350 builtin and then its argument prototype would still apply. */ 1351char dnet_ntoa(); 1352 1353int main() { 1354dnet_ntoa() 1355; return 0; } 1356EOF 1357if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1358 rm -rf conftest* 1359 eval "ac_cv_lib_$ac_lib_var=yes" 1360else 1361 echo "configure: failed program was:" >&5 1362 cat conftest.$ac_ext >&5 1363 rm -rf conftest* 1364 eval "ac_cv_lib_$ac_lib_var=no" 1365fi 1366rm -f conftest* 1367LIBS="$ac_save_LIBS" 1368 1369fi 1370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1371 echo "$ac_t""yes" 1>&6 1372 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 1373else 1374 echo "$ac_t""no" 1>&6 1375fi 1376 1377 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 1378 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 1379echo "configure:1380: checking for dnet_ntoa in -ldnet_stub" >&5 1380ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1381if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1382 echo $ac_n "(cached) $ac_c" 1>&6 1383else 1384 ac_save_LIBS="$LIBS" 1385LIBS="-ldnet_stub $LIBS" 1386cat > conftest.$ac_ext <<EOF 1387#line 1388 "configure" 1388#include "confdefs.h" 1389/* Override any gcc2 internal prototype to avoid an error. */ 1390/* We use char because int might match the return type of a gcc2 1391 builtin and then its argument prototype would still apply. */ 1392char dnet_ntoa(); 1393 1394int main() { 1395dnet_ntoa() 1396; return 0; } 1397EOF 1398if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1399 rm -rf conftest* 1400 eval "ac_cv_lib_$ac_lib_var=yes" 1401else 1402 echo "configure: failed program was:" >&5 1403 cat conftest.$ac_ext >&5 1404 rm -rf conftest* 1405 eval "ac_cv_lib_$ac_lib_var=no" 1406fi 1407rm -f conftest* 1408LIBS="$ac_save_LIBS" 1409 1410fi 1411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1412 echo "$ac_t""yes" 1>&6 1413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 1414else 1415 echo "$ac_t""no" 1>&6 1416fi 1417 1418 fi 1419 1420 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 1421 # to get the SysV transport functions. 1422 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 1423 # needs -lnsl. 1424 # The nsl library prevents programs from opening the X display 1425 # on Irix 5.2, according to dickey@clark.net. 1426 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1427echo "configure:1428: checking for gethostbyname" >&5 1428if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1429 echo $ac_n "(cached) $ac_c" 1>&6 1430else 1431 cat > conftest.$ac_ext <<EOF 1432#line 1433 "configure" 1433#include "confdefs.h" 1434/* System header to define __stub macros and hopefully few prototypes, 1435 which can conflict with char gethostbyname(); below. */ 1436#include <assert.h> 1437/* Override any gcc2 internal prototype to avoid an error. */ 1438/* We use char because int might match the return type of a gcc2 1439 builtin and then its argument prototype would still apply. */ 1440char gethostbyname(); 1441 1442int main() { 1443 1444/* The GNU C library defines this for functions which it implements 1445 to always fail with ENOSYS. Some functions are actually named 1446 something starting with __ and the normal name is an alias. */ 1447#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1448choke me 1449#else 1450gethostbyname(); 1451#endif 1452 1453; return 0; } 1454EOF 1455if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1456 rm -rf conftest* 1457 eval "ac_cv_func_gethostbyname=yes" 1458else 1459 echo "configure: failed program was:" >&5 1460 cat conftest.$ac_ext >&5 1461 rm -rf conftest* 1462 eval "ac_cv_func_gethostbyname=no" 1463fi 1464rm -f conftest* 1465fi 1466 1467if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1468 echo "$ac_t""yes" 1>&6 1469 : 1470else 1471 echo "$ac_t""no" 1>&6 1472fi 1473 1474 if test $ac_cv_func_gethostbyname = no; then 1475 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1476echo "configure:1477: checking for gethostbyname in -lnsl" >&5 1477ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1478if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1479 echo $ac_n "(cached) $ac_c" 1>&6 1480else 1481 ac_save_LIBS="$LIBS" 1482LIBS="-lnsl $LIBS" 1483cat > conftest.$ac_ext <<EOF 1484#line 1485 "configure" 1485#include "confdefs.h" 1486/* Override any gcc2 internal prototype to avoid an error. */ 1487/* We use char because int might match the return type of a gcc2 1488 builtin and then its argument prototype would still apply. */ 1489char gethostbyname(); 1490 1491int main() { 1492gethostbyname() 1493; return 0; } 1494EOF 1495if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1496 rm -rf conftest* 1497 eval "ac_cv_lib_$ac_lib_var=yes" 1498else 1499 echo "configure: failed program was:" >&5 1500 cat conftest.$ac_ext >&5 1501 rm -rf conftest* 1502 eval "ac_cv_lib_$ac_lib_var=no" 1503fi 1504rm -f conftest* 1505LIBS="$ac_save_LIBS" 1506 1507fi 1508if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1509 echo "$ac_t""yes" 1>&6 1510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 1511else 1512 echo "$ac_t""no" 1>&6 1513fi 1514 1515 fi 1516 1517 # lieder@skyler.mavd.honeywell.com says without -lsocket, 1518 # socket/setsockopt and other routines are undefined under SCO ODT 1519 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 1520 # on later versions), says simon@lia.di.epfl.ch: it contains 1521 # gethostby* variants that don't use the nameserver (or something). 1522 # -lsocket must be given before -lnsl if both are needed. 1523 # We assume that if connect needs -lnsl, so does gethostbyname. 1524 echo $ac_n "checking for connect""... $ac_c" 1>&6 1525echo "configure:1526: checking for connect" >&5 1526if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 1527 echo $ac_n "(cached) $ac_c" 1>&6 1528else 1529 cat > conftest.$ac_ext <<EOF 1530#line 1531 "configure" 1531#include "confdefs.h" 1532/* System header to define __stub macros and hopefully few prototypes, 1533 which can conflict with char connect(); below. */ 1534#include <assert.h> 1535/* Override any gcc2 internal prototype to avoid an error. */ 1536/* We use char because int might match the return type of a gcc2 1537 builtin and then its argument prototype would still apply. */ 1538char connect(); 1539 1540int main() { 1541 1542/* The GNU C library defines this for functions which it implements 1543 to always fail with ENOSYS. Some functions are actually named 1544 something starting with __ and the normal name is an alias. */ 1545#if defined (__stub_connect) || defined (__stub___connect) 1546choke me 1547#else 1548connect(); 1549#endif 1550 1551; return 0; } 1552EOF 1553if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1554 rm -rf conftest* 1555 eval "ac_cv_func_connect=yes" 1556else 1557 echo "configure: failed program was:" >&5 1558 cat conftest.$ac_ext >&5 1559 rm -rf conftest* 1560 eval "ac_cv_func_connect=no" 1561fi 1562rm -f conftest* 1563fi 1564 1565if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 1566 echo "$ac_t""yes" 1>&6 1567 : 1568else 1569 echo "$ac_t""no" 1>&6 1570fi 1571 1572 if test $ac_cv_func_connect = no; then 1573 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 1574echo "configure:1575: checking for connect in -lsocket" >&5 1575ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 1576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1577 echo $ac_n "(cached) $ac_c" 1>&6 1578else 1579 ac_save_LIBS="$LIBS" 1580LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 1581cat > conftest.$ac_ext <<EOF 1582#line 1583 "configure" 1583#include "confdefs.h" 1584/* Override any gcc2 internal prototype to avoid an error. */ 1585/* We use char because int might match the return type of a gcc2 1586 builtin and then its argument prototype would still apply. */ 1587char connect(); 1588 1589int main() { 1590connect() 1591; return 0; } 1592EOF 1593if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1594 rm -rf conftest* 1595 eval "ac_cv_lib_$ac_lib_var=yes" 1596else 1597 echo "configure: failed program was:" >&5 1598 cat conftest.$ac_ext >&5 1599 rm -rf conftest* 1600 eval "ac_cv_lib_$ac_lib_var=no" 1601fi 1602rm -f conftest* 1603LIBS="$ac_save_LIBS" 1604 1605fi 1606if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1607 echo "$ac_t""yes" 1>&6 1608 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 1609else 1610 echo "$ac_t""no" 1>&6 1611fi 1612 1613 fi 1614 1615 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 1616 echo $ac_n "checking for remove""... $ac_c" 1>&6 1617echo "configure:1618: checking for remove" >&5 1618if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 1619 echo $ac_n "(cached) $ac_c" 1>&6 1620else 1621 cat > conftest.$ac_ext <<EOF 1622#line 1623 "configure" 1623#include "confdefs.h" 1624/* System header to define __stub macros and hopefully few prototypes, 1625 which can conflict with char remove(); below. */ 1626#include <assert.h> 1627/* Override any gcc2 internal prototype to avoid an error. */ 1628/* We use char because int might match the return type of a gcc2 1629 builtin and then its argument prototype would still apply. */ 1630char remove(); 1631 1632int main() { 1633 1634/* The GNU C library defines this for functions which it implements 1635 to always fail with ENOSYS. Some functions are actually named 1636 something starting with __ and the normal name is an alias. */ 1637#if defined (__stub_remove) || defined (__stub___remove) 1638choke me 1639#else 1640remove(); 1641#endif 1642 1643; return 0; } 1644EOF 1645if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1646 rm -rf conftest* 1647 eval "ac_cv_func_remove=yes" 1648else 1649 echo "configure: failed program was:" >&5 1650 cat conftest.$ac_ext >&5 1651 rm -rf conftest* 1652 eval "ac_cv_func_remove=no" 1653fi 1654rm -f conftest* 1655fi 1656 1657if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 1658 echo "$ac_t""yes" 1>&6 1659 : 1660else 1661 echo "$ac_t""no" 1>&6 1662fi 1663 1664 if test $ac_cv_func_remove = no; then 1665 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 1666echo "configure:1667: checking for remove in -lposix" >&5 1667ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 1668if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1669 echo $ac_n "(cached) $ac_c" 1>&6 1670else 1671 ac_save_LIBS="$LIBS" 1672LIBS="-lposix $LIBS" 1673cat > conftest.$ac_ext <<EOF 1674#line 1675 "configure" 1675#include "confdefs.h" 1676/* Override any gcc2 internal prototype to avoid an error. */ 1677/* We use char because int might match the return type of a gcc2 1678 builtin and then its argument prototype would still apply. */ 1679char remove(); 1680 1681int main() { 1682remove() 1683; return 0; } 1684EOF 1685if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1686 rm -rf conftest* 1687 eval "ac_cv_lib_$ac_lib_var=yes" 1688else 1689 echo "configure: failed program was:" >&5 1690 cat conftest.$ac_ext >&5 1691 rm -rf conftest* 1692 eval "ac_cv_lib_$ac_lib_var=no" 1693fi 1694rm -f conftest* 1695LIBS="$ac_save_LIBS" 1696 1697fi 1698if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1699 echo "$ac_t""yes" 1>&6 1700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 1701else 1702 echo "$ac_t""no" 1>&6 1703fi 1704 1705 fi 1706 1707 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 1708 echo $ac_n "checking for shmat""... $ac_c" 1>&6 1709echo "configure:1710: checking for shmat" >&5 1710if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 1711 echo $ac_n "(cached) $ac_c" 1>&6 1712else 1713 cat > conftest.$ac_ext <<EOF 1714#line 1715 "configure" 1715#include "confdefs.h" 1716/* System header to define __stub macros and hopefully few prototypes, 1717 which can conflict with char shmat(); below. */ 1718#include <assert.h> 1719/* Override any gcc2 internal prototype to avoid an error. */ 1720/* We use char because int might match the return type of a gcc2 1721 builtin and then its argument prototype would still apply. */ 1722char shmat(); 1723 1724int main() { 1725 1726/* The GNU C library defines this for functions which it implements 1727 to always fail with ENOSYS. Some functions are actually named 1728 something starting with __ and the normal name is an alias. */ 1729#if defined (__stub_shmat) || defined (__stub___shmat) 1730choke me 1731#else 1732shmat(); 1733#endif 1734 1735; return 0; } 1736EOF 1737if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1738 rm -rf conftest* 1739 eval "ac_cv_func_shmat=yes" 1740else 1741 echo "configure: failed program was:" >&5 1742 cat conftest.$ac_ext >&5 1743 rm -rf conftest* 1744 eval "ac_cv_func_shmat=no" 1745fi 1746rm -f conftest* 1747fi 1748 1749if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 1750 echo "$ac_t""yes" 1>&6 1751 : 1752else 1753 echo "$ac_t""no" 1>&6 1754fi 1755 1756 if test $ac_cv_func_shmat = no; then 1757 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 1758echo "configure:1759: checking for shmat in -lipc" >&5 1759ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 1760if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1761 echo $ac_n "(cached) $ac_c" 1>&6 1762else 1763 ac_save_LIBS="$LIBS" 1764LIBS="-lipc $LIBS" 1765cat > conftest.$ac_ext <<EOF 1766#line 1767 "configure" 1767#include "confdefs.h" 1768/* Override any gcc2 internal prototype to avoid an error. */ 1769/* We use char because int might match the return type of a gcc2 1770 builtin and then its argument prototype would still apply. */ 1771char shmat(); 1772 1773int main() { 1774shmat() 1775; return 0; } 1776EOF 1777if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1778 rm -rf conftest* 1779 eval "ac_cv_lib_$ac_lib_var=yes" 1780else 1781 echo "configure: failed program was:" >&5 1782 cat conftest.$ac_ext >&5 1783 rm -rf conftest* 1784 eval "ac_cv_lib_$ac_lib_var=no" 1785fi 1786rm -f conftest* 1787LIBS="$ac_save_LIBS" 1788 1789fi 1790if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1791 echo "$ac_t""yes" 1>&6 1792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 1793else 1794 echo "$ac_t""no" 1>&6 1795fi 1796 1797 fi 1798 fi 1799 1800 # Check for libraries that X11R6 Xt/Xaw programs need. 1801 ac_save_LDFLAGS="$LDFLAGS" 1802 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 1803 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 1804 # check for ICE first), but we must link in the order -lSM -lICE or 1805 # we get undefined symbols. So assume we have SM if we have ICE. 1806 # These have to be linked with before -lX11, unlike the other 1807 # libraries we check for below, so use a different variable. 1808 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 1809 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 1810echo "configure:1811: checking for IceConnectionNumber in -lICE" >&5 1811ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 1812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1813 echo $ac_n "(cached) $ac_c" 1>&6 1814else 1815 ac_save_LIBS="$LIBS" 1816LIBS="-lICE $X_EXTRA_LIBS $LIBS" 1817cat > conftest.$ac_ext <<EOF 1818#line 1819 "configure" 1819#include "confdefs.h" 1820/* Override any gcc2 internal prototype to avoid an error. */ 1821/* We use char because int might match the return type of a gcc2 1822 builtin and then its argument prototype would still apply. */ 1823char IceConnectionNumber(); 1824 1825int main() { 1826IceConnectionNumber() 1827; return 0; } 1828EOF 1829if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1830 rm -rf conftest* 1831 eval "ac_cv_lib_$ac_lib_var=yes" 1832else 1833 echo "configure: failed program was:" >&5 1834 cat conftest.$ac_ext >&5 1835 rm -rf conftest* 1836 eval "ac_cv_lib_$ac_lib_var=no" 1837fi 1838rm -f conftest* 1839LIBS="$ac_save_LIBS" 1840 1841fi 1842if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1843 echo "$ac_t""yes" 1>&6 1844 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 1845else 1846 echo "$ac_t""no" 1>&6 1847fi 1848 1849 LDFLAGS="$ac_save_LDFLAGS" 1850 1851fi 1852 1853LDFLAGS="$LDFLAGS -L$x_libraries/" 1854CFLAGS="$CFLAGS -I$x_includes/" 1855 1856echo $ac_n "checking for XtVaSetValues in -lXt""... $ac_c" 1>&6 1857echo "configure:1858: checking for XtVaSetValues in -lXt" >&5 1858ac_lib_var=`echo Xt'_'XtVaSetValues | sed 'y%./+-%__p_%'` 1859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1860 echo $ac_n "(cached) $ac_c" 1>&6 1861else 1862 ac_save_LIBS="$LIBS" 1863LIBS="-lXt $LIBS" 1864cat > conftest.$ac_ext <<EOF 1865#line 1866 "configure" 1866#include "confdefs.h" 1867/* Override any gcc2 internal prototype to avoid an error. */ 1868/* We use char because int might match the return type of a gcc2 1869 builtin and then its argument prototype would still apply. */ 1870char XtVaSetValues(); 1871 1872int main() { 1873XtVaSetValues() 1874; return 0; } 1875EOF 1876if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1877 rm -rf conftest* 1878 eval "ac_cv_lib_$ac_lib_var=yes" 1879else 1880 echo "configure: failed program was:" >&5 1881 cat conftest.$ac_ext >&5 1882 rm -rf conftest* 1883 eval "ac_cv_lib_$ac_lib_var=no" 1884fi 1885rm -f conftest* 1886LIBS="$ac_save_LIBS" 1887 1888fi 1889if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1890 echo "$ac_t""yes" 1>&6 1891 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1893 cat >> confdefs.h <<EOF 1894#define $ac_tr_lib 1 1895EOF 1896 1897 LIBS="-lXt $LIBS" 1898 1899else 1900 echo "$ac_t""no" 1>&6 1901fi 1902 1903echo $ac_n "checking for XawPanedGetNumSub in -lXaw""... $ac_c" 1>&6 1904echo "configure:1905: checking for XawPanedGetNumSub in -lXaw" >&5 1905ac_lib_var=`echo Xaw'_'XawPanedGetNumSub | sed 'y%./+-%__p_%'` 1906if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1907 echo $ac_n "(cached) $ac_c" 1>&6 1908else 1909 ac_save_LIBS="$LIBS" 1910LIBS="-lXaw $LIBS" 1911cat > conftest.$ac_ext <<EOF 1912#line 1913 "configure" 1913#include "confdefs.h" 1914/* Override any gcc2 internal prototype to avoid an error. */ 1915/* We use char because int might match the return type of a gcc2 1916 builtin and then its argument prototype would still apply. */ 1917char XawPanedGetNumSub(); 1918 1919int main() { 1920XawPanedGetNumSub() 1921; return 0; } 1922EOF 1923if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1924 rm -rf conftest* 1925 eval "ac_cv_lib_$ac_lib_var=yes" 1926else 1927 echo "configure: failed program was:" >&5 1928 cat conftest.$ac_ext >&5 1929 rm -rf conftest* 1930 eval "ac_cv_lib_$ac_lib_var=no" 1931fi 1932rm -f conftest* 1933LIBS="$ac_save_LIBS" 1934 1935fi 1936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1937 echo "$ac_t""yes" 1>&6 1938 ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1940 cat >> confdefs.h <<EOF 1941#define $ac_tr_lib 1 1942EOF 1943 1944 LIBS="-lXaw $LIBS" 1945 1946else 1947 echo "$ac_t""no" 1>&6 1948fi 1949 1950 1951__cflags=$CFLAGS 1952CFLAGS="$CFLAGS `gtk-config --cflags`" 1953__libs=$LIBS 1954LIBS="$LIBS `gtk-config --libs`" 1955echo $ac_n "checking for gdk_init in -lgdk""... $ac_c" 1>&6 1956echo "configure:1957: checking for gdk_init in -lgdk" >&5 1957ac_lib_var=`echo gdk'_'gdk_init | sed 'y%./+-%__p_%'` 1958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1959 echo $ac_n "(cached) $ac_c" 1>&6 1960else 1961 ac_save_LIBS="$LIBS" 1962LIBS="-lgdk $LIBS" 1963cat > conftest.$ac_ext <<EOF 1964#line 1965 "configure" 1965#include "confdefs.h" 1966/* Override any gcc2 internal prototype to avoid an error. */ 1967/* We use char because int might match the return type of a gcc2 1968 builtin and then its argument prototype would still apply. */ 1969char gdk_init(); 1970 1971int main() { 1972gdk_init() 1973; return 0; } 1974EOF 1975if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1976 rm -rf conftest* 1977 eval "ac_cv_lib_$ac_lib_var=yes" 1978else 1979 echo "configure: failed program was:" >&5 1980 cat conftest.$ac_ext >&5 1981 rm -rf conftest* 1982 eval "ac_cv_lib_$ac_lib_var=no" 1983fi 1984rm -f conftest* 1985LIBS="$ac_save_LIBS" 1986 1987fi 1988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1989 echo "$ac_t""yes" 1>&6 1990 ac_tr_lib=HAVE_LIB`echo gdk | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1992 cat >> confdefs.h <<EOF 1993#define $ac_tr_lib 1 1994EOF 1995 1996 LIBS="-lgdk $LIBS" 1997 1998else 1999 echo "$ac_t""no" 1>&6 2000fi 2001 2002echo $ac_n "checking for gtk_main in -lgtk""... $ac_c" 1>&6 2003echo "configure:2004: checking for gtk_main in -lgtk" >&5 2004ac_lib_var=`echo gtk'_'gtk_main | sed 'y%./+-%__p_%'` 2005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2006 echo $ac_n "(cached) $ac_c" 1>&6 2007else 2008 ac_save_LIBS="$LIBS" 2009LIBS="-lgtk $LIBS" 2010cat > conftest.$ac_ext <<EOF 2011#line 2012 "configure" 2012#include "confdefs.h" 2013/* Override any gcc2 internal prototype to avoid an error. */ 2014/* We use char because int might match the return type of a gcc2 2015 builtin and then its argument prototype would still apply. */ 2016char gtk_main(); 2017 2018int main() { 2019gtk_main() 2020; return 0; } 2021EOF 2022if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2023 rm -rf conftest* 2024 eval "ac_cv_lib_$ac_lib_var=yes" 2025else 2026 echo "configure: failed program was:" >&5 2027 cat conftest.$ac_ext >&5 2028 rm -rf conftest* 2029 eval "ac_cv_lib_$ac_lib_var=no" 2030fi 2031rm -f conftest* 2032LIBS="$ac_save_LIBS" 2033 2034fi 2035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2036 echo "$ac_t""yes" 1>&6 2037 ac_tr_lib=HAVE_LIB`echo gtk | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2039 cat >> confdefs.h <<EOF 2040#define $ac_tr_lib 1 2041EOF 2042 2043 LIBS="-lgtk $LIBS" 2044 2045else 2046 echo "$ac_t""no" 1>&6 2047fi 2048 2049CFLAGS=$__cflags 2050LIBS=$__libs 2051 2052__gtk=`gtk-config --version` 2053case "$__gtk" in 2054 1.2*) 2055 x_progs="xmixer xgmixer" 2056 ;; 2057 *) 2058 x_progs="xmixer" 2059 ;; 2060esac 2061 2062 2063 2064 2065 2066 2067trap '' 1 2 15 2068cat > confcache <<\EOF 2069# This file is a shell script that caches the results of configure 2070# tests run on this system so they can be shared between configure 2071# scripts and configure runs. It is not useful on other systems. 2072# If it contains results you don't want to keep, you may remove or edit it. 2073# 2074# By default, configure uses ./config.cache as the cache file, 2075# creating it if it does not exist already. You can give configure 2076# the --cache-file=FILE option to use a different cache file; that is 2077# what configure does when it calls configure scripts in 2078# subdirectories, so they share the cache. 2079# Giving --cache-file=/dev/null disables caching, for debugging configure. 2080# config.status only pays attention to the cache file if you give it the 2081# --recheck option to rerun configure. 2082# 2083EOF 2084# The following way of writing the cache mishandles newlines in values, 2085# but we know of no workaround that is simple, portable, and efficient. 2086# So, don't put newlines in cache variables' values. 2087# Ultrix sh set writes to stderr and can't be redirected directly, 2088# and sets the high bit in the cache file unless we assign to the vars. 2089(set) 2>&1 | 2090 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2091 *ac_space=\ *) 2092 # `set' does not quote correctly, so add quotes (double-quote substitution 2093 # turns \\\\ into \\, and sed turns \\ into \). 2094 sed -n \ 2095 -e "s/'/'\\\\''/g" \ 2096 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2097 ;; 2098 *) 2099 # `set' quotes correctly as required by POSIX, so do not add quotes. 2100 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2101 ;; 2102 esac >> confcache 2103if cmp -s $cache_file confcache; then 2104 : 2105else 2106 if test -w $cache_file; then 2107 echo "updating cache $cache_file" 2108 cat confcache > $cache_file 2109 else 2110 echo "not updating unwritable cache $cache_file" 2111 fi 2112fi 2113rm -f confcache 2114 2115trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2116 2117test "x$prefix" = xNONE && prefix=$ac_default_prefix 2118# Let make expand exec_prefix. 2119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2120 2121# Any assignment to VPATH causes Sun make to only execute 2122# the first set of double-colon rules, so remove it if not needed. 2123# If there is a colon in the path, we need to keep it. 2124if test "x$srcdir" = x.; then 2125 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2126fi 2127 2128trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2129 2130DEFS=-DHAVE_CONFIG_H 2131 2132# Without the "./", some shells look in PATH for config.status. 2133: ${CONFIG_STATUS=./config.status} 2134 2135echo creating $CONFIG_STATUS 2136rm -f $CONFIG_STATUS 2137cat > $CONFIG_STATUS <<EOF 2138#! /bin/sh 2139# Generated automatically by configure. 2140# Run this file to recreate the current configuration. 2141# This directory was configured as follows, 2142# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2143# 2144# $0 $ac_configure_args 2145# 2146# Compiler output produced by configure, useful for debugging 2147# configure, is in ./config.log if it exists. 2148 2149ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2150for ac_option 2151do 2152 case "\$ac_option" in 2153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2154 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2155 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2156 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2157 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2158 exit 0 ;; 2159 -help | --help | --hel | --he | --h) 2160 echo "\$ac_cs_usage"; exit 0 ;; 2161 *) echo "\$ac_cs_usage"; exit 1 ;; 2162 esac 2163done 2164 2165ac_given_srcdir=$srcdir 2166 2167trap 'rm -fr `echo "Makefile 2168Xw/Makefile 2169 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2170EOF 2171cat >> $CONFIG_STATUS <<EOF 2172 2173# Protect against being on the right side of a sed subst in config.status. 2174sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2175 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2176$ac_vpsub 2177$extrasub 2178s%@SHELL@%$SHELL%g 2179s%@CFLAGS@%$CFLAGS%g 2180s%@CPPFLAGS@%$CPPFLAGS%g 2181s%@CXXFLAGS@%$CXXFLAGS%g 2182s%@FFLAGS@%$FFLAGS%g 2183s%@DEFS@%$DEFS%g 2184s%@LDFLAGS@%$LDFLAGS%g 2185s%@LIBS@%$LIBS%g 2186s%@exec_prefix@%$exec_prefix%g 2187s%@prefix@%$prefix%g 2188s%@program_transform_name@%$program_transform_name%g 2189s%@bindir@%$bindir%g 2190s%@sbindir@%$sbindir%g 2191s%@libexecdir@%$libexecdir%g 2192s%@datadir@%$datadir%g 2193s%@sysconfdir@%$sysconfdir%g 2194s%@sharedstatedir@%$sharedstatedir%g 2195s%@localstatedir@%$localstatedir%g 2196s%@libdir@%$libdir%g 2197s%@includedir@%$includedir%g 2198s%@oldincludedir@%$oldincludedir%g 2199s%@infodir@%$infodir%g 2200s%@mandir@%$mandir%g 2201s%@CC@%$CC%g 2202s%@AR@%$AR%g 2203s%@RANLIB@%$RANLIB%g 2204s%@CPP@%$CPP%g 2205s%@X_CFLAGS@%$X_CFLAGS%g 2206s%@X_PRE_LIBS@%$X_PRE_LIBS%g 2207s%@X_LIBS@%$X_LIBS%g 2208s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 2209s%@x_lib_path@%$x_lib_path%g 2210s%@x_libraries@%$x_libraries%g 2211s%@x_includes@%$x_includes%g 2212s%@x_progs@%$x_progs%g 2213 2214CEOF 2215EOF 2216 2217cat >> $CONFIG_STATUS <<\EOF 2218 2219# Split the substitutions into bite-sized pieces for seds with 2220# small command number limits, like on Digital OSF/1 and HP-UX. 2221ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2222ac_file=1 # Number of current file. 2223ac_beg=1 # First line for current file. 2224ac_end=$ac_max_sed_cmds # Line after last line for current file. 2225ac_more_lines=: 2226ac_sed_cmds="" 2227while $ac_more_lines; do 2228 if test $ac_beg -gt 1; then 2229 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2230 else 2231 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2232 fi 2233 if test ! -s conftest.s$ac_file; then 2234 ac_more_lines=false 2235 rm -f conftest.s$ac_file 2236 else 2237 if test -z "$ac_sed_cmds"; then 2238 ac_sed_cmds="sed -f conftest.s$ac_file" 2239 else 2240 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2241 fi 2242 ac_file=`expr $ac_file + 1` 2243 ac_beg=$ac_end 2244 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2245 fi 2246done 2247if test -z "$ac_sed_cmds"; then 2248 ac_sed_cmds=cat 2249fi 2250EOF 2251 2252cat >> $CONFIG_STATUS <<EOF 2253 2254CONFIG_FILES=\${CONFIG_FILES-"Makefile 2255Xw/Makefile 2256"} 2257EOF 2258cat >> $CONFIG_STATUS <<\EOF 2259for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2261 case "$ac_file" in 2262 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2263 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2264 *) ac_file_in="${ac_file}.in" ;; 2265 esac 2266 2267 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2268 2269 # Remove last slash and all that follows it. Not all systems have dirname. 2270 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2271 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2272 # The file is in a subdirectory. 2273 test ! -d "$ac_dir" && mkdir "$ac_dir" 2274 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2275 # A "../" for each directory in $ac_dir_suffix. 2276 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2277 else 2278 ac_dir_suffix= ac_dots= 2279 fi 2280 2281 case "$ac_given_srcdir" in 2282 .) srcdir=. 2283 if test -z "$ac_dots"; then top_srcdir=. 2284 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2285 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2286 *) # Relative path. 2287 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2288 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2289 esac 2290 2291 2292 echo creating "$ac_file" 2293 rm -f "$ac_file" 2294 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2295 case "$ac_file" in 2296 *Makefile*) ac_comsub="1i\\ 2297# $configure_input" ;; 2298 *) ac_comsub= ;; 2299 esac 2300 2301 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2302 sed -e "$ac_comsub 2303s%@configure_input@%$configure_input%g 2304s%@srcdir@%$srcdir%g 2305s%@top_srcdir@%$top_srcdir%g 2306" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2307fi; done 2308rm -f conftest.s* 2309 2310# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2311# NAME is the cpp macro being defined and VALUE is the value it is being given. 2312# 2313# ac_d sets the value in "#define NAME VALUE" lines. 2314ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2315ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2316ac_dC='\3' 2317ac_dD='%g' 2318# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2319ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2320ac_uB='\([ ]\)%\1#\2define\3' 2321ac_uC=' ' 2322ac_uD='\4%g' 2323# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2324ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2325ac_eB='$%\1#\2define\3' 2326ac_eC=' ' 2327ac_eD='%g' 2328 2329if test "${CONFIG_HEADERS+set}" != set; then 2330EOF 2331cat >> $CONFIG_STATUS <<EOF 2332 CONFIG_HEADERS="config.h" 2333EOF 2334cat >> $CONFIG_STATUS <<\EOF 2335fi 2336for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2338 case "$ac_file" in 2339 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2340 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2341 *) ac_file_in="${ac_file}.in" ;; 2342 esac 2343 2344 echo creating $ac_file 2345 2346 rm -f conftest.frag conftest.in conftest.out 2347 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2348 cat $ac_file_inputs > conftest.in 2349 2350EOF 2351 2352# Transform confdefs.h into a sed script conftest.vals that substitutes 2353# the proper values into config.h.in to produce config.h. And first: 2354# Protect against being on the right side of a sed subst in config.status. 2355# Protect against being in an unquoted here document in config.status. 2356rm -f conftest.vals 2357cat > conftest.hdr <<\EOF 2358s/[\\&%]/\\&/g 2359s%[\\$`]%\\&%g 2360s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2361s%ac_d%ac_u%gp 2362s%ac_u%ac_e%gp 2363EOF 2364sed -n -f conftest.hdr confdefs.h > conftest.vals 2365rm -f conftest.hdr 2366 2367# This sed command replaces #undef with comments. This is necessary, for 2368# example, in the case of _POSIX_SOURCE, which is predefined and required 2369# on some systems where configure will not decide to define it. 2370cat >> conftest.vals <<\EOF 2371s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2372EOF 2373 2374# Break up conftest.vals because some shells have a limit on 2375# the size of here documents, and old seds have small limits too. 2376 2377rm -f conftest.tail 2378while : 2379do 2380 ac_lines=`grep -c . conftest.vals` 2381 # grep -c gives empty output for an empty file on some AIX systems. 2382 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2383 # Write a limited-size here document to conftest.frag. 2384 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2385 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2386 echo 'CEOF 2387 sed -f conftest.frag conftest.in > conftest.out 2388 rm -f conftest.in 2389 mv conftest.out conftest.in 2390' >> $CONFIG_STATUS 2391 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2392 rm -f conftest.vals 2393 mv conftest.tail conftest.vals 2394done 2395rm -f conftest.vals 2396 2397cat >> $CONFIG_STATUS <<\EOF 2398 rm -f conftest.frag conftest.h 2399 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2400 cat conftest.in >> conftest.h 2401 rm -f conftest.in 2402 if cmp -s $ac_file conftest.h 2>/dev/null; then 2403 echo "$ac_file is unchanged" 2404 rm -f conftest.h 2405 else 2406 # Remove last slash and all that follows it. Not all systems have dirname. 2407 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2408 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2409 # The file is in a subdirectory. 2410 test ! -d "$ac_dir" && mkdir "$ac_dir" 2411 fi 2412 rm -f $ac_file 2413 mv conftest.h $ac_file 2414 fi 2415fi; done 2416 2417EOF 2418cat >> $CONFIG_STATUS <<EOF 2419 2420EOF 2421cat >> $CONFIG_STATUS <<\EOF 2422 2423exit 0 2424EOF 2425chmod +x $CONFIG_STATUS 2426rm -fr confdefs* $ac_clean_files 2427test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2428 2429echo "" 2430echo "Programs to compile: $x_progs" 2431echo "" 2432