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