1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.12 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 --without-gcc don't use gcc" 16ac_help="$ac_help 17 --with-pcap=TYPE use packet capture TYPE" 18ac_help="$ac_help 19 --without-flex don't use flex" 20ac_help="$ac_help 21 --without-bison don't use bison" 22 23# Initialize some variables set by options. 24# The variables have the same names as the options, with 25# dashes changed to underlines. 26build=NONE 27cache_file=./config.cache 28exec_prefix=NONE 29host=NONE 30no_create= 31nonopt=NONE 32no_recursion= 33prefix=NONE 34program_prefix=NONE 35program_suffix=NONE 36program_transform_name=s,x,x, 37silent= 38site= 39srcdir= 40target=NONE 41verbose= 42x_includes=NONE 43x_libraries=NONE 44bindir='${exec_prefix}/bin' 45sbindir='${exec_prefix}/sbin' 46libexecdir='${exec_prefix}/libexec' 47datadir='${prefix}/share' 48sysconfdir='${prefix}/etc' 49sharedstatedir='${prefix}/com' 50localstatedir='${prefix}/var' 51libdir='${exec_prefix}/lib' 52includedir='${prefix}/include' 53oldincludedir='/usr/include' 54infodir='${prefix}/info' 55mandir='${prefix}/man' 56 57# Initialize some other variables. 58subdirs= 59MFLAGS= MAKEFLAGS= 60# Maximum number of lines to put in a shell here document. 61ac_max_here_lines=12 62 63ac_prev= 64for ac_option 65do 66 67 # If the previous option needs an argument, assign it. 68 if test -n "$ac_prev"; then 69 eval "$ac_prev=\$ac_option" 70 ac_prev= 71 continue 72 fi 73 74 case "$ac_option" in 75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 76 *) ac_optarg= ;; 77 esac 78 79 # Accept the important Cygnus configure options, so we can diagnose typos. 80 81 case "$ac_option" in 82 83 -bindir | --bindir | --bindi | --bind | --bin | --bi) 84 ac_prev=bindir ;; 85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 86 bindir="$ac_optarg" ;; 87 88 -build | --build | --buil | --bui | --bu) 89 ac_prev=build ;; 90 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 91 build="$ac_optarg" ;; 92 93 -cache-file | --cache-file | --cache-fil | --cache-fi \ 94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 95 ac_prev=cache_file ;; 96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 98 cache_file="$ac_optarg" ;; 99 100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 101 ac_prev=datadir ;; 102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 103 | --da=*) 104 datadir="$ac_optarg" ;; 105 106 -disable-* | --disable-*) 107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 108 # Reject names that are not valid shell variable names. 109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 111 fi 112 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 113 eval "enable_${ac_feature}=no" ;; 114 115 -enable-* | --enable-*) 116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 117 # Reject names that are not valid shell variable names. 118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 120 fi 121 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 122 case "$ac_option" in 123 *=*) ;; 124 *) ac_optarg=yes ;; 125 esac 126 eval "enable_${ac_feature}='$ac_optarg'" ;; 127 128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 130 | --exec | --exe | --ex) 131 ac_prev=exec_prefix ;; 132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 134 | --exec=* | --exe=* | --ex=*) 135 exec_prefix="$ac_optarg" ;; 136 137 -gas | --gas | --ga | --g) 138 # Obsolete; use --with-gas. 139 with_gas=yes ;; 140 141 -help | --help | --hel | --he) 142 # Omit some internal or obsolete options to make the list less imposing. 143 # This message is too long to be a string in the A/UX 3.1 sh. 144 cat << EOF 145Usage: configure [options] [host] 146Options: [defaults in brackets after descriptions] 147Configuration: 148 --cache-file=FILE cache test results in FILE 149 --help print this message 150 --no-create do not create output files 151 --quiet, --silent do not print \`checking...' messages 152 --version print the version of autoconf that created configure 153Directory and file names: 154 --prefix=PREFIX install architecture-independent files in PREFIX 155 [$ac_default_prefix] 156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 157 [same as prefix] 158 --bindir=DIR user executables in DIR [EPREFIX/bin] 159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 161 --datadir=DIR read-only architecture-independent data in DIR 162 [PREFIX/share] 163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 164 --sharedstatedir=DIR modifiable architecture-independent data in DIR 165 [PREFIX/com] 166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 167 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 168 --includedir=DIR C header files in DIR [PREFIX/include] 169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 170 --infodir=DIR info documentation in DIR [PREFIX/info] 171 --mandir=DIR man documentation in DIR [PREFIX/man] 172 --srcdir=DIR find the sources in DIR [configure dir or ..] 173 --program-prefix=PREFIX prepend PREFIX to installed program names 174 --program-suffix=SUFFIX append SUFFIX to installed program names 175 --program-transform-name=PROGRAM 176 run sed PROGRAM on installed program names 177EOF 178 cat << EOF 179Host type: 180 --build=BUILD configure for building on BUILD [BUILD=HOST] 181 --host=HOST configure for HOST [guessed] 182 --target=TARGET configure for TARGET [TARGET=HOST] 183Features and packages: 184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 188 --x-includes=DIR X include files are in DIR 189 --x-libraries=DIR X library files are in DIR 190EOF 191 if test -n "$ac_help"; then 192 echo "--enable and --with options recognized:$ac_help" 193 fi 194 exit 0 ;; 195 196 -host | --host | --hos | --ho) 197 ac_prev=host ;; 198 -host=* | --host=* | --hos=* | --ho=*) 199 host="$ac_optarg" ;; 200 201 -includedir | --includedir | --includedi | --included | --include \ 202 | --includ | --inclu | --incl | --inc) 203 ac_prev=includedir ;; 204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 205 | --includ=* | --inclu=* | --incl=* | --inc=*) 206 includedir="$ac_optarg" ;; 207 208 -infodir | --infodir | --infodi | --infod | --info | --inf) 209 ac_prev=infodir ;; 210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 211 infodir="$ac_optarg" ;; 212 213 -libdir | --libdir | --libdi | --libd) 214 ac_prev=libdir ;; 215 -libdir=* | --libdir=* | --libdi=* | --libd=*) 216 libdir="$ac_optarg" ;; 217 218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 219 | --libexe | --libex | --libe) 220 ac_prev=libexecdir ;; 221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 222 | --libexe=* | --libex=* | --libe=*) 223 libexecdir="$ac_optarg" ;; 224 225 -localstatedir | --localstatedir | --localstatedi | --localstated \ 226 | --localstate | --localstat | --localsta | --localst \ 227 | --locals | --local | --loca | --loc | --lo) 228 ac_prev=localstatedir ;; 229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 232 localstatedir="$ac_optarg" ;; 233 234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 235 ac_prev=mandir ;; 236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 237 mandir="$ac_optarg" ;; 238 239 -nfp | --nfp | --nf) 240 # Obsolete; use --without-fp. 241 with_fp=no ;; 242 243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 244 | --no-cr | --no-c) 245 no_create=yes ;; 246 247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 249 no_recursion=yes ;; 250 251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 253 | --oldin | --oldi | --old | --ol | --o) 254 ac_prev=oldincludedir ;; 255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 258 oldincludedir="$ac_optarg" ;; 259 260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 261 ac_prev=prefix ;; 262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 263 prefix="$ac_optarg" ;; 264 265 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 266 | --program-pre | --program-pr | --program-p) 267 ac_prev=program_prefix ;; 268 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 270 program_prefix="$ac_optarg" ;; 271 272 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 273 | --program-suf | --program-su | --program-s) 274 ac_prev=program_suffix ;; 275 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 277 program_suffix="$ac_optarg" ;; 278 279 -program-transform-name | --program-transform-name \ 280 | --program-transform-nam | --program-transform-na \ 281 | --program-transform-n | --program-transform- \ 282 | --program-transform | --program-transfor \ 283 | --program-transfo | --program-transf \ 284 | --program-trans | --program-tran \ 285 | --progr-tra | --program-tr | --program-t) 286 ac_prev=program_transform_name ;; 287 -program-transform-name=* | --program-transform-name=* \ 288 | --program-transform-nam=* | --program-transform-na=* \ 289 | --program-transform-n=* | --program-transform-=* \ 290 | --program-transform=* | --program-transfor=* \ 291 | --program-transfo=* | --program-transf=* \ 292 | --program-trans=* | --program-tran=* \ 293 | --progr-tra=* | --program-tr=* | --program-t=*) 294 program_transform_name="$ac_optarg" ;; 295 296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 297 | -silent | --silent | --silen | --sile | --sil) 298 silent=yes ;; 299 300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 301 ac_prev=sbindir ;; 302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 303 | --sbi=* | --sb=*) 304 sbindir="$ac_optarg" ;; 305 306 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 308 | --sharedst | --shareds | --shared | --share | --shar \ 309 | --sha | --sh) 310 ac_prev=sharedstatedir ;; 311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 314 | --sha=* | --sh=*) 315 sharedstatedir="$ac_optarg" ;; 316 317 -site | --site | --sit) 318 ac_prev=site ;; 319 -site=* | --site=* | --sit=*) 320 site="$ac_optarg" ;; 321 322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 323 ac_prev=srcdir ;; 324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 325 srcdir="$ac_optarg" ;; 326 327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 328 | --syscon | --sysco | --sysc | --sys | --sy) 329 ac_prev=sysconfdir ;; 330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 332 sysconfdir="$ac_optarg" ;; 333 334 -target | --target | --targe | --targ | --tar | --ta | --t) 335 ac_prev=target ;; 336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 337 target="$ac_optarg" ;; 338 339 -v | -verbose | --verbose | --verbos | --verbo | --verb) 340 verbose=yes ;; 341 342 -version | --version | --versio | --versi | --vers) 343 echo "configure generated by autoconf version 2.12" 344 exit 0 ;; 345 346 -with-* | --with-*) 347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 348 # Reject names that are not valid shell variable names. 349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 351 fi 352 ac_package=`echo $ac_package| sed 's/-/_/g'` 353 case "$ac_option" in 354 *=*) ;; 355 *) ac_optarg=yes ;; 356 esac 357 eval "with_${ac_package}='$ac_optarg'" ;; 358 359 -without-* | --without-*) 360 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 361 # Reject names that are not valid shell variable names. 362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 364 fi 365 ac_package=`echo $ac_package| sed 's/-/_/g'` 366 eval "with_${ac_package}=no" ;; 367 368 --x) 369 # Obsolete; use --with-x. 370 with_x=yes ;; 371 372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 373 | --x-incl | --x-inc | --x-in | --x-i) 374 ac_prev=x_includes ;; 375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 377 x_includes="$ac_optarg" ;; 378 379 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 381 ac_prev=x_libraries ;; 382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 384 x_libraries="$ac_optarg" ;; 385 386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 387 ;; 388 389 *) 390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 391 echo "configure: warning: $ac_option: invalid host type" 1>&2 392 fi 393 if test "x$nonopt" != xNONE; then 394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 395 fi 396 nonopt="$ac_option" 397 ;; 398 399 esac 400done 401 402if test -n "$ac_prev"; then 403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 404fi 405 406trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 407 408# File descriptor usage: 409# 0 standard input 410# 1 file creation 411# 2 errors and warnings 412# 3 some systems may open it to /dev/tty 413# 4 used on the Kubota Titan 414# 6 checking for... messages and results 415# 5 compiler messages saved in config.log 416if test "$silent" = yes; then 417 exec 6>/dev/null 418else 419 exec 6>&1 420fi 421exec 5>./config.log 422 423echo "\ 424This file contains any messages produced by compilers while 425running configure, to aid debugging if configure makes a mistake. 426" 1>&5 427 428# Strip out --no-create and --no-recursion so they do not pile up. 429# Also quote any args containing shell metacharacters. 430ac_configure_args= 431for ac_arg 432do 433 case "$ac_arg" in 434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 435 | --no-cr | --no-c) ;; 436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 439 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 440 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 441 esac 442done 443 444# NLS nuisances. 445# Only set these to C if already set. These must not be set unconditionally 446# because not all systems understand e.g. LANG=C (notably SCO). 447# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 448# Non-C LC_CTYPE values break the ctype check. 449if test "${LANG+set}" = set; then LANG=C; export LANG; fi 450if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 451if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 452if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 453 454# confdefs.h avoids OS command line length limits that DEFS can exceed. 455rm -rf conftest* confdefs.h 456# AIX cpp loses on an empty file, so make sure it contains at least a newline. 457echo > confdefs.h 458 459# A filename unique to this package, relative to the directory that 460# configure is in, which we can look for to find out if srcdir is correct. 461ac_unique_file=pcap.c 462 463# Find the source files, if location was not specified. 464if test -z "$srcdir"; then 465 ac_srcdir_defaulted=yes 466 # Try the directory containing this script, then its parent. 467 ac_prog=$0 468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 470 srcdir=$ac_confdir 471 if test ! -r $srcdir/$ac_unique_file; then 472 srcdir=.. 473 fi 474else 475 ac_srcdir_defaulted=no 476fi 477if test ! -r $srcdir/$ac_unique_file; then 478 if test "$ac_srcdir_defaulted" = yes; then 479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 480 else 481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 482 fi 483fi 484srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 485 486# Prefer explicitly selected file to automatically selected ones. 487if test -z "$CONFIG_SITE"; then 488 if test "x$prefix" != xNONE; then 489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 490 else 491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 492 fi 493fi 494for ac_site_file in $CONFIG_SITE; do 495 if test -r "$ac_site_file"; then 496 echo "loading site script $ac_site_file" 497 . "$ac_site_file" 498 fi 499done 500 501if test -r "$cache_file"; then 502 echo "loading cache $cache_file" 503 . $cache_file 504else 505 echo "creating cache $cache_file" 506 > $cache_file 507fi 508 509ac_ext=c 510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 511ac_cpp='$CPP $CPPFLAGS' 512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 513ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 514cross_compiling=$ac_cv_prog_cc_cross 515 516if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 519 ac_n= ac_c=' 520' ac_t=' ' 521 else 522 ac_n=-n ac_c= ac_t= 523 fi 524else 525 ac_n= ac_c='\c' ac_t= 526fi 527 528 529 530ac_aux_dir= 531for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 532 if test -f $ac_dir/install-sh; then 533 ac_aux_dir=$ac_dir 534 ac_install_sh="$ac_aux_dir/install-sh -c" 535 break 536 elif test -f $ac_dir/install.sh; then 537 ac_aux_dir=$ac_dir 538 ac_install_sh="$ac_aux_dir/install.sh -c" 539 break 540 fi 541done 542if test -z "$ac_aux_dir"; then 543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 544fi 545ac_config_guess=$ac_aux_dir/config.guess 546ac_config_sub=$ac_aux_dir/config.sub 547ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 548 549 550# Do some error checking and defaulting for the host and target type. 551# The inputs are: 552# configure --host=HOST --target=TARGET --build=BUILD NONOPT 553# 554# The rules are: 555# 1. You are not allowed to specify --host, --target, and nonopt at the 556# same time. 557# 2. Host defaults to nonopt. 558# 3. If nonopt is not specified, then host defaults to the current host, 559# as determined by config.guess. 560# 4. Target and build default to nonopt. 561# 5. If nonopt is not specified, then target and build default to host. 562 563# The aliases save the names the user supplied, while $host etc. 564# will get canonicalized. 565case $host---$target---$nonopt in 566NONE---*---* | *---NONE---* | *---*---NONE) ;; 567*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 568esac 569 570 571# Make sure we can run config.sub. 572if $ac_config_sub sun4 >/dev/null 2>&1; then : 573else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 574fi 575 576echo $ac_n "checking host system type""... $ac_c" 1>&6 577echo "configure:578: checking host system type" >&5 578 579host_alias=$host 580case "$host_alias" in 581NONE) 582 case $nonopt in 583 NONE) 584 if host_alias=`$ac_config_guess`; then : 585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 586 fi ;; 587 *) host_alias=$nonopt ;; 588 esac ;; 589esac 590 591host=`$ac_config_sub $host_alias` 592host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 593host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 594host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 595echo "$ac_t""$host" 1>&6 596 597echo $ac_n "checking target system type""... $ac_c" 1>&6 598echo "configure:599: checking target system type" >&5 599 600target_alias=$target 601case "$target_alias" in 602NONE) 603 case $nonopt in 604 NONE) target_alias=$host_alias ;; 605 *) target_alias=$nonopt ;; 606 esac ;; 607esac 608 609target=`$ac_config_sub $target_alias` 610target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 611target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 612target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 613echo "$ac_t""$target" 1>&6 614 615echo $ac_n "checking build system type""... $ac_c" 1>&6 616echo "configure:617: checking build system type" >&5 617 618build_alias=$build 619case "$build_alias" in 620NONE) 621 case $nonopt in 622 NONE) build_alias=$host_alias ;; 623 *) build_alias=$nonopt ;; 624 esac ;; 625esac 626 627build=`$ac_config_sub $build_alias` 628build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 629build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 630build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 631echo "$ac_t""$build" 1>&6 632 633test "$host_alias" != "$target_alias" && 634 test "$program_prefix$program_suffix$program_transform_name" = \ 635 NONENONEs,x,x, && 636 program_prefix=${target_alias}- 637 638 639umask 002 640 641if test -z "$PWD" ; then 642 PWD=`pwd` 643fi 644 645 646 647 648 649 # Check whether --with-gcc or --without-gcc was given. 650if test "${with_gcc+set}" = set; then 651 withval="$with_gcc" 652 : 653fi 654 655 V_CCOPT="-O" 656 V_INCLS="" 657 if test "${srcdir}" != "." ; then 658 V_INCLS="-I\$\(srcdir\)" 659 fi 660 if test "${CFLAGS+set}" = set; then 661 LBL_CFLAGS="$CFLAGS" 662 fi 663 if test -z "$CC" ; then 664 case "$target_os" in 665 666 bsdi*) 667 # Extract the first word of "shlicc2", so it can be a program name with args. 668set dummy shlicc2; ac_word=$2 669echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 670echo "configure:671: checking for $ac_word" >&5 671if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then 672 echo $ac_n "(cached) $ac_c" 1>&6 673else 674 if test -n "$SHLICC2"; then 675 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 676else 677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 678 for ac_dir in $PATH; do 679 test -z "$ac_dir" && ac_dir=. 680 if test -f $ac_dir/$ac_word; then 681 ac_cv_prog_SHLICC2="yes" 682 break 683 fi 684 done 685 IFS="$ac_save_ifs" 686 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 687fi 688fi 689SHLICC2="$ac_cv_prog_SHLICC2" 690if test -n "$SHLICC2"; then 691 echo "$ac_t""$SHLICC2" 1>&6 692else 693 echo "$ac_t""no" 1>&6 694fi 695 696 if test $SHLICC2 = yes ; then 697 CC=shlicc2 698 export CC 699 fi 700 ;; 701 esac 702 fi 703 if test -z "$CC" -a "$with_gcc" = no ; then 704 CC=cc 705 export CC 706 fi 707 # Extract the first word of "gcc", so it can be a program name with args. 708set dummy gcc; ac_word=$2 709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 710echo "configure:711: checking for $ac_word" >&5 711if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 712 echo $ac_n "(cached) $ac_c" 1>&6 713else 714 if test -n "$CC"; then 715 ac_cv_prog_CC="$CC" # Let the user override the test. 716else 717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 718 for ac_dir in $PATH; do 719 test -z "$ac_dir" && ac_dir=. 720 if test -f $ac_dir/$ac_word; then 721 ac_cv_prog_CC="gcc" 722 break 723 fi 724 done 725 IFS="$ac_save_ifs" 726fi 727fi 728CC="$ac_cv_prog_CC" 729if test -n "$CC"; then 730 echo "$ac_t""$CC" 1>&6 731else 732 echo "$ac_t""no" 1>&6 733fi 734 735if test -z "$CC"; then 736 # Extract the first word of "cc", so it can be a program name with args. 737set dummy cc; ac_word=$2 738echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 739echo "configure:740: checking for $ac_word" >&5 740if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 741 echo $ac_n "(cached) $ac_c" 1>&6 742else 743 if test -n "$CC"; then 744 ac_cv_prog_CC="$CC" # Let the user override the test. 745else 746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 747 ac_prog_rejected=no 748 for ac_dir in $PATH; do 749 test -z "$ac_dir" && ac_dir=. 750 if test -f $ac_dir/$ac_word; then 751 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 752 ac_prog_rejected=yes 753 continue 754 fi 755 ac_cv_prog_CC="cc" 756 break 757 fi 758 done 759 IFS="$ac_save_ifs" 760if test $ac_prog_rejected = yes; then 761 # We found a bogon in the path, so make sure we never use it. 762 set dummy $ac_cv_prog_CC 763 shift 764 if test $# -gt 0; then 765 # We chose a different compiler from the bogus one. 766 # However, it has the same basename, so the bogon will be chosen 767 # first if we set CC to just the basename; use the full file name. 768 shift 769 set dummy "$ac_dir/$ac_word" "$@" 770 shift 771 ac_cv_prog_CC="$@" 772 fi 773fi 774fi 775fi 776CC="$ac_cv_prog_CC" 777if test -n "$CC"; then 778 echo "$ac_t""$CC" 1>&6 779else 780 echo "$ac_t""no" 1>&6 781fi 782 783 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 784fi 785 786echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 787echo "configure:788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 788 789ac_ext=c 790# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 791ac_cpp='$CPP $CPPFLAGS' 792ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 793ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 794cross_compiling=$ac_cv_prog_cc_cross 795 796cat > conftest.$ac_ext <<EOF 797#line 798 "configure" 798#include "confdefs.h" 799main(){return(0);} 800EOF 801if { (eval echo configure:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 802 ac_cv_prog_cc_works=yes 803 # If we can't run a trivial program, we are probably using a cross compiler. 804 if (./conftest; exit) 2>/dev/null; then 805 ac_cv_prog_cc_cross=no 806 else 807 ac_cv_prog_cc_cross=yes 808 fi 809else 810 echo "configure: failed program was:" >&5 811 cat conftest.$ac_ext >&5 812 ac_cv_prog_cc_works=no 813fi 814rm -fr conftest* 815 816echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 817if test $ac_cv_prog_cc_works = no; then 818 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 819fi 820echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 821echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 822echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 823cross_compiling=$ac_cv_prog_cc_cross 824 825echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 826echo "configure:827: checking whether we are using GNU C" >&5 827if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 828 echo $ac_n "(cached) $ac_c" 1>&6 829else 830 cat > conftest.c <<EOF 831#ifdef __GNUC__ 832 yes; 833#endif 834EOF 835if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 836 ac_cv_prog_gcc=yes 837else 838 ac_cv_prog_gcc=no 839fi 840fi 841 842echo "$ac_t""$ac_cv_prog_gcc" 1>&6 843 844if test $ac_cv_prog_gcc = yes; then 845 GCC=yes 846 ac_test_CFLAGS="${CFLAGS+set}" 847 ac_save_CFLAGS="$CFLAGS" 848 CFLAGS= 849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 850echo "configure:851: checking whether ${CC-cc} accepts -g" >&5 851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 852 echo $ac_n "(cached) $ac_c" 1>&6 853else 854 echo 'void f(){}' > conftest.c 855if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 856 ac_cv_prog_cc_g=yes 857else 858 ac_cv_prog_cc_g=no 859fi 860rm -f conftest* 861 862fi 863 864echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 865 if test "$ac_test_CFLAGS" = set; then 866 CFLAGS="$ac_save_CFLAGS" 867 elif test $ac_cv_prog_cc_g = yes; then 868 CFLAGS="-g -O2" 869 else 870 CFLAGS="-O2" 871 fi 872else 873 GCC= 874 test "${CFLAGS+set}" = set || CFLAGS="-g" 875fi 876 877 if test "$GCC" = yes ; then 878 if test "$SHLICC2" = yes ; then 879 ac_cv_lbl_gcc_vers=2 880 V_CCOPT="-O2" 881 else 882 echo $ac_n "checking gcc version""... $ac_c" 1>&6 883echo "configure:884: checking gcc version" >&5 884 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then 885 echo $ac_n "(cached) $ac_c" 1>&6 886else 887 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 888 sed -e '/^gcc version /!d' \ 889 -e 's/^gcc version //' \ 890 -e 's/ .*//' -e 's/^[^0-9]*//' \ 891 -e 's/\..*//'` 892fi 893 894 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6 895 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 896 V_CCOPT="-O2" 897 fi 898 fi 899 else 900 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6 901echo "configure:902: checking that $CC handles ansi prototypes" >&5 902 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then 903 echo $ac_n "(cached) $ac_c" 1>&6 904else 905 cat > conftest.$ac_ext <<EOF 906#line 907 "configure" 907#include "confdefs.h" 908#include <sys/types.h> 909int main() { 910int frob(int, char *) 911; return 0; } 912EOF 913if { (eval echo configure:914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 914 rm -rf conftest* 915 ac_cv_lbl_cc_ansi_prototypes=yes 916else 917 echo "configure: failed program was:" >&5 918 cat conftest.$ac_ext >&5 919 rm -rf conftest* 920 ac_cv_lbl_cc_ansi_prototypes=no 921fi 922rm -f conftest* 923fi 924 925 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6 926 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 927 case "$target_os" in 928 929 hpux*) 930 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6 931echo "configure:932: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 932 savedcflags="$CFLAGS" 933 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 934 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then 935 echo $ac_n "(cached) $ac_c" 1>&6 936else 937 cat > conftest.$ac_ext <<EOF 938#line 939 "configure" 939#include "confdefs.h" 940#include <sys/types.h> 941int main() { 942int frob(int, char *) 943; return 0; } 944EOF 945if { (eval echo configure:946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 946 rm -rf conftest* 947 ac_cv_lbl_cc_hpux_cc_aa=yes 948else 949 echo "configure: failed program was:" >&5 950 cat conftest.$ac_ext >&5 951 rm -rf conftest* 952 ac_cv_lbl_cc_hpux_cc_aa=no 953fi 954rm -f conftest* 955fi 956 957 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6 958 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 959 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 960 fi 961 CFLAGS="$savedcflags" 962 V_CCOPT="-Aa $V_CCOPT" 963 cat >> confdefs.h <<\EOF 964#define _HPUX_SOURCE 1 965EOF 966 967 ;; 968 969 *) 970 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 971 ;; 972 esac 973 fi 974 V_INCLS="$V_INCLS -I/usr/local/include" 975 LDFLAGS="$LDFLAGS -L/usr/local/lib" 976 977 case "$target_os" in 978 979 irix*) 980 V_CCOPT="$V_CCOPT -xansi -signed -g3" 981 ;; 982 983 osf*) 984 V_CCOPT="$V_CCOPT -std1 -g3" 985 ;; 986 987 ultrix*) 988 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6 989echo "configure:990: checking that Ultrix $CC hacks const in prototypes" >&5 990 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then 991 echo $ac_n "(cached) $ac_c" 1>&6 992else 993 cat > conftest.$ac_ext <<EOF 994#line 995 "configure" 995#include "confdefs.h" 996#include <sys/types.h> 997int main() { 998struct a { int b; }; 999 void c(const struct a *) 1000; return 0; } 1001EOF 1002if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1003 rm -rf conftest* 1004 ac_cv_lbl_cc_const_proto=yes 1005else 1006 echo "configure: failed program was:" >&5 1007 cat conftest.$ac_ext >&5 1008 rm -rf conftest* 1009 ac_cv_lbl_cc_const_proto=no 1010fi 1011rm -f conftest* 1012fi 1013 1014 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6 1015 if test $ac_cv_lbl_cc_const_proto = no ; then 1016 cat >> confdefs.h <<\EOF 1017#define const 1018EOF 1019 1020 fi 1021 ;; 1022 esac 1023 fi 1024 1025 1026echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1027echo "configure:1028: checking how to run the C preprocessor" >&5 1028# On Suns, sometimes $CPP names a directory. 1029if test -n "$CPP" && test -d "$CPP"; then 1030 CPP= 1031fi 1032if test -z "$CPP"; then 1033if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1034 echo $ac_n "(cached) $ac_c" 1>&6 1035else 1036 # This must be in double quotes, not single quotes, because CPP may get 1037 # substituted into the Makefile and "${CC-cc}" will confuse make. 1038 CPP="${CC-cc} -E" 1039 # On the NeXT, cc -E runs the code through the compiler's parser, 1040 # not just through cpp. 1041 cat > conftest.$ac_ext <<EOF 1042#line 1043 "configure" 1043#include "confdefs.h" 1044#include <assert.h> 1045Syntax Error 1046EOF 1047ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1048{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1049ac_err=`grep -v '^ *+' conftest.out` 1050if test -z "$ac_err"; then 1051 : 1052else 1053 echo "$ac_err" >&5 1054 echo "configure: failed program was:" >&5 1055 cat conftest.$ac_ext >&5 1056 rm -rf conftest* 1057 CPP="${CC-cc} -E -traditional-cpp" 1058 cat > conftest.$ac_ext <<EOF 1059#line 1060 "configure" 1060#include "confdefs.h" 1061#include <assert.h> 1062Syntax Error 1063EOF 1064ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1065{ (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1066ac_err=`grep -v '^ *+' conftest.out` 1067if test -z "$ac_err"; then 1068 : 1069else 1070 echo "$ac_err" >&5 1071 echo "configure: failed program was:" >&5 1072 cat conftest.$ac_ext >&5 1073 rm -rf conftest* 1074 CPP=/lib/cpp 1075fi 1076rm -f conftest* 1077fi 1078rm -f conftest* 1079 ac_cv_prog_CPP="$CPP" 1080fi 1081 CPP="$ac_cv_prog_CPP" 1082else 1083 ac_cv_prog_CPP="$CPP" 1084fi 1085echo "$ac_t""$CPP" 1>&6 1086 1087for ac_hdr in malloc.h sys/ioccom.h sys/sockio.h 1088do 1089ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1090echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1091echo "configure:1092: checking for $ac_hdr" >&5 1092if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1093 echo $ac_n "(cached) $ac_c" 1>&6 1094else 1095 cat > conftest.$ac_ext <<EOF 1096#line 1097 "configure" 1097#include "confdefs.h" 1098#include <$ac_hdr> 1099EOF 1100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1101{ (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1102ac_err=`grep -v '^ *+' conftest.out` 1103if test -z "$ac_err"; then 1104 rm -rf conftest* 1105 eval "ac_cv_header_$ac_safe=yes" 1106else 1107 echo "$ac_err" >&5 1108 echo "configure: failed program was:" >&5 1109 cat conftest.$ac_ext >&5 1110 rm -rf conftest* 1111 eval "ac_cv_header_$ac_safe=no" 1112fi 1113rm -f conftest* 1114fi 1115if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1116 echo "$ac_t""yes" 1>&6 1117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1118 cat >> confdefs.h <<EOF 1119#define $ac_tr_hdr 1 1120EOF 1121 1122else 1123 echo "$ac_t""no" 1>&6 1124fi 1125done 1126 1127 1128if test "$GCC" = yes ; then 1129 echo $ac_n "checking for ANSI ioctl definitions""... $ac_c" 1>&6 1130echo "configure:1131: checking for ANSI ioctl definitions" >&5 1131 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_fixincludes'+set}'`\" = set"; then 1132 echo $ac_n "(cached) $ac_c" 1>&6 1133else 1134 cat > conftest.$ac_ext <<EOF 1135#line 1136 "configure" 1136#include "confdefs.h" 1137/* 1138 * This generates a "duplicate case value" when fixincludes 1139 * has not be run. 1140 */ 1141# include <sys/types.h> 1142# include <sys/time.h> 1143# include <sys/ioctl.h> 1144# ifdef HAVE_SYS_IOCCOM_H 1145# include <sys/ioccom.h> 1146# endif 1147int main() { 1148switch (0) { 1149 case _IO('A', 1):; 1150 case _IO('B', 1):; 1151 } 1152; return 0; } 1153EOF 1154if { (eval echo configure:1155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1155 rm -rf conftest* 1156 ac_cv_lbl_gcc_fixincludes=yes 1157else 1158 echo "configure: failed program was:" >&5 1159 cat conftest.$ac_ext >&5 1160 rm -rf conftest* 1161 ac_cv_lbl_gcc_fixincludes=no 1162fi 1163rm -f conftest* 1164fi 1165 1166 echo "$ac_t""$ac_cv_lbl_gcc_fixincludes" 1>&6 1167 if test $ac_cv_lbl_gcc_fixincludes = no ; then 1168 # Don't cache failure 1169 unset ac_cv_lbl_gcc_fixincludes 1170 { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; } 1171 fi 1172 fi 1173 1174for ac_func in ether_hostton strerror 1175do 1176echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1177echo "configure:1178: checking for $ac_func" >&5 1178if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1179 echo $ac_n "(cached) $ac_c" 1>&6 1180else 1181 cat > conftest.$ac_ext <<EOF 1182#line 1183 "configure" 1183#include "confdefs.h" 1184/* System header to define __stub macros and hopefully few prototypes, 1185 which can conflict with char $ac_func(); below. */ 1186#include <assert.h> 1187/* Override any gcc2 internal prototype to avoid an error. */ 1188/* We use char because int might match the return type of a gcc2 1189 builtin and then its argument prototype would still apply. */ 1190char $ac_func(); 1191 1192int main() { 1193 1194/* The GNU C library defines this for functions which it implements 1195 to always fail with ENOSYS. Some functions are actually named 1196 something starting with __ and the normal name is an alias. */ 1197#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1198choke me 1199#else 1200$ac_func(); 1201#endif 1202 1203; return 0; } 1204EOF 1205if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1206 rm -rf conftest* 1207 eval "ac_cv_func_$ac_func=yes" 1208else 1209 echo "configure: failed program was:" >&5 1210 cat conftest.$ac_ext >&5 1211 rm -rf conftest* 1212 eval "ac_cv_func_$ac_func=no" 1213fi 1214rm -f conftest* 1215fi 1216 1217if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1218 echo "$ac_t""yes" 1>&6 1219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1220 cat >> confdefs.h <<EOF 1221#define $ac_tr_func 1 1222EOF 1223 1224else 1225 echo "$ac_t""no" 1>&6 1226fi 1227done 1228 1229 1230# Check whether --with-pcap or --without-pcap was given. 1231if test "${with_pcap+set}" = set; then 1232 withval="$with_pcap" 1233 : 1234fi 1235 1236echo $ac_n "checking packet capture type""... $ac_c" 1>&6 1237echo "configure:1238: checking packet capture type" >&5 1238if test ! -z "$with_pcap" ; then 1239 V_PCAP="$withval" 1240elif test -r /dev/bpf0 ; then 1241 V_PCAP=bpf 1242elif test -r /usr/include/net/pfilt.h ; then 1243 V_PCAP=pf 1244elif test -r /dev/enet ; then 1245 V_PCAP=enet 1246elif test -r /dev/nit ; then 1247 V_PCAP=snit 1248elif test -r /usr/include/sys/net/nit.h ; then 1249 V_PCAP=nit 1250elif test -r /usr/include/net/raw.h ; then 1251 V_PCAP=snoop 1252elif test -r /usr/include/sys/dlpi.h ; then 1253 V_PCAP=dlpi 1254elif test -r /usr/include/linux/socket.h ; then 1255 V_PCAP=linux 1256elif test -c /dev/bpf0 ; then # check again in case not readable 1257 V_PCAP=bpf 1258elif test -c /dev/enet ; then # check again in case not readable 1259 V_PCAP=enet 1260elif test -c /dev/nit ; then # check again in case not readable 1261 V_PCAP=snit 1262else 1263 V_PCAP=null 1264fi 1265echo "$ac_t""$V_PCAP" 1>&6 1266 1267case "$V_PCAP" in 1268 1269dlpi) 1270 for ac_hdr in sys/bufmod.h sys/dlpi_ext.h 1271do 1272ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1273echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1274echo "configure:1275: checking for $ac_hdr" >&5 1275if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1276 echo $ac_n "(cached) $ac_c" 1>&6 1277else 1278 cat > conftest.$ac_ext <<EOF 1279#line 1280 "configure" 1280#include "confdefs.h" 1281#include <$ac_hdr> 1282EOF 1283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1284{ (eval echo configure:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1285ac_err=`grep -v '^ *+' conftest.out` 1286if test -z "$ac_err"; then 1287 rm -rf conftest* 1288 eval "ac_cv_header_$ac_safe=yes" 1289else 1290 echo "$ac_err" >&5 1291 echo "configure: failed program was:" >&5 1292 cat conftest.$ac_ext >&5 1293 rm -rf conftest* 1294 eval "ac_cv_header_$ac_safe=no" 1295fi 1296rm -f conftest* 1297fi 1298if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1299 echo "$ac_t""yes" 1>&6 1300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1301 cat >> confdefs.h <<EOF 1302#define $ac_tr_hdr 1 1303EOF 1304 1305else 1306 echo "$ac_t""no" 1>&6 1307fi 1308done 1309 1310 echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6 1311echo "configure:1312: checking for /dev/dlpi device" >&5 1312 if test -c /dev/dlpi ; then 1313 echo "$ac_t""yes" 1>&6 1314 cat >> confdefs.h <<\EOF 1315#define HAVE_DEV_DLPI 1 1316EOF 1317 1318 else 1319 echo "$ac_t""no" 1>&6 1320 dir="/dev/dlpi" 1321 echo $ac_n "checking for $dir directory""... $ac_c" 1>&6 1322echo "configure:1323: checking for $dir directory" >&5 1323 if test -d $dir ; then 1324 echo "$ac_t""yes" 1>&6 1325 cat >> confdefs.h <<EOF 1326#define PCAP_DEV_PREFIX "$dir" 1327EOF 1328 1329 else 1330 echo "$ac_t""no" 1>&6 1331 fi 1332 fi 1333 ;; 1334 1335linux) 1336 for ac_hdr in net/if_arp.h 1337do 1338ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1339echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1340echo "configure:1341: checking for $ac_hdr" >&5 1341if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1342 echo $ac_n "(cached) $ac_c" 1>&6 1343else 1344 cat > conftest.$ac_ext <<EOF 1345#line 1346 "configure" 1346#include "confdefs.h" 1347#include <$ac_hdr> 1348EOF 1349ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1350{ (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1351ac_err=`grep -v '^ *+' conftest.out` 1352if test -z "$ac_err"; then 1353 rm -rf conftest* 1354 eval "ac_cv_header_$ac_safe=yes" 1355else 1356 echo "$ac_err" >&5 1357 echo "configure: failed program was:" >&5 1358 cat conftest.$ac_ext >&5 1359 rm -rf conftest* 1360 eval "ac_cv_header_$ac_safe=no" 1361fi 1362rm -f conftest* 1363fi 1364if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1365 echo "$ac_t""yes" 1>&6 1366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1367 cat >> confdefs.h <<EOF 1368#define $ac_tr_hdr 1 1369EOF 1370 1371else 1372 echo "$ac_t""no" 1>&6 1373fi 1374done 1375 1376 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6 1377echo "configure:1378: checking Linux kernel version" >&5 1378 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then 1379 echo $ac_n "(cached) $ac_c" 1>&6 1380else 1381 ac_cv_linux_vers=`uname -r 2>&1 | \ 1382 sed -n -e '$s/.* //' -e '$s/\..*//p'` 1383fi 1384 1385 echo "$ac_t""$ac_cv_linux_vers" 1>&6 1386 if test $ac_cv_linux_vers -lt 2 ; then 1387 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; } 1388 fi 1389 ;; 1390 1391null) 1392 echo "configure: warning: cannot determine packet capture interface" 1>&2 1393 echo "configure: warning: (see the INSTALL doc for more info)" 1>&2 1394 ;; 1395 1396esac 1397 1398# Check whether --with-flex or --without-flex was given. 1399if test "${with_flex+set}" = set; then 1400 withval="$with_flex" 1401 : 1402fi 1403 1404 # Check whether --with-bison or --without-bison was given. 1405if test "${with_bison+set}" = set; then 1406 withval="$with_bison" 1407 : 1408fi 1409 1410 if test "$with_flex" = no ; then 1411 V_LEX=lex 1412 else 1413 for ac_prog in flex 1414do 1415# Extract the first word of "$ac_prog", so it can be a program name with args. 1416set dummy $ac_prog; ac_word=$2 1417echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1418echo "configure:1419: checking for $ac_word" >&5 1419if eval "test \"`echo '$''{'ac_cv_prog_V_LEX'+set}'`\" = set"; then 1420 echo $ac_n "(cached) $ac_c" 1>&6 1421else 1422 if test -n "$V_LEX"; then 1423 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test. 1424else 1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1426 for ac_dir in $PATH; do 1427 test -z "$ac_dir" && ac_dir=. 1428 if test -f $ac_dir/$ac_word; then 1429 ac_cv_prog_V_LEX="$ac_prog" 1430 break 1431 fi 1432 done 1433 IFS="$ac_save_ifs" 1434fi 1435fi 1436V_LEX="$ac_cv_prog_V_LEX" 1437if test -n "$V_LEX"; then 1438 echo "$ac_t""$V_LEX" 1>&6 1439else 1440 echo "$ac_t""no" 1>&6 1441fi 1442 1443test -n "$V_LEX" && break 1444done 1445test -n "$V_LEX" || V_LEX="lex" 1446 1447 fi 1448 if test "$V_LEX" = flex ; then 1449 # The -V flag was added in 2.4 1450 echo $ac_n "checking for flex 2.4 or higher""... $ac_c" 1>&6 1451echo "configure:1452: checking for flex 2.4 or higher" >&5 1452 if eval "test \"`echo '$''{'ac_cv_lbl_flex_v24'+set}'`\" = set"; then 1453 echo $ac_n "(cached) $ac_c" 1>&6 1454else 1455 if flex -V >/dev/null 2>&1; then 1456 ac_cv_lbl_flex_v24=yes 1457 else 1458 ac_cv_lbl_flex_v24=no 1459 fi 1460fi 1461 1462 echo "$ac_t""$ac_cv_lbl_flex_v24" 1>&6 1463 if test $ac_cv_lbl_flex_v24 = no ; then 1464 s="2.4 or higher required" 1465 echo "configure: warning: ignoring obsolete flex executable ($s)" 1>&2 1466 V_LEX=lex 1467 fi 1468 fi 1469 if test "$with_bison" = no ; then 1470 V_YACC=yacc 1471 else 1472 for ac_prog in bison 1473do 1474# Extract the first word of "$ac_prog", so it can be a program name with args. 1475set dummy $ac_prog; ac_word=$2 1476echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1477echo "configure:1478: checking for $ac_word" >&5 1478if eval "test \"`echo '$''{'ac_cv_prog_V_YACC'+set}'`\" = set"; then 1479 echo $ac_n "(cached) $ac_c" 1>&6 1480else 1481 if test -n "$V_YACC"; then 1482 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test. 1483else 1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1485 for ac_dir in $PATH; do 1486 test -z "$ac_dir" && ac_dir=. 1487 if test -f $ac_dir/$ac_word; then 1488 ac_cv_prog_V_YACC="$ac_prog" 1489 break 1490 fi 1491 done 1492 IFS="$ac_save_ifs" 1493fi 1494fi 1495V_YACC="$ac_cv_prog_V_YACC" 1496if test -n "$V_YACC"; then 1497 echo "$ac_t""$V_YACC" 1>&6 1498else 1499 echo "$ac_t""no" 1>&6 1500fi 1501 1502test -n "$V_YACC" && break 1503done 1504test -n "$V_YACC" || V_YACC="yacc" 1505 1506 fi 1507 if test "$V_YACC" = bison ; then 1508 V_YACC="$V_YACC -y" 1509 fi 1510 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then 1511 echo "configure: warning: don't have both flex and bison; reverting to lex/yacc" 1>&2 1512 V_LEX=lex 1513 V_YACC=yacc 1514 fi 1515 if test "$V_LEX" = flex -a -n "pcap_" ; then 1516 V_LEX="$V_LEX -Ppcap_" 1517 V_YACC="$V_YACC -p pcap_" 1518 fi 1519 1520case "$target_os" in 1521 1522aix*) 1523 cat >> confdefs.h <<\EOF 1524#define _SUN 1 1525EOF 1526 1527 ;; 1528 1529hpux9*) 1530 cat >> confdefs.h <<\EOF 1531#define HAVE_HPUX9 1 1532EOF 1533 1534 ;; 1535 1536hpux10.0*) 1537 ;; 1538 1539hpux10.1*) 1540 ;; 1541 1542hpux*) 1543 cat >> confdefs.h <<\EOF 1544#define HAVE_HPUX10_20 1 1545EOF 1546 1547 ;; 1548 1549sinix*) 1550 echo $ac_n "checking if SINIX compiler defines sinix""... $ac_c" 1>&6 1551echo "configure:1552: checking if SINIX compiler defines sinix" >&5 1552 if eval "test \"`echo '$''{'ac_cv_cc_sinix_defined'+set}'`\" = set"; then 1553 echo $ac_n "(cached) $ac_c" 1>&6 1554else 1555 cat > conftest.$ac_ext <<EOF 1556#line 1557 "configure" 1557#include "confdefs.h" 1558 1559int main() { 1560int i = sinix; 1561; return 0; } 1562EOF 1563if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1564 rm -rf conftest* 1565 ac_cv_cc_sinix_defined=yes 1566else 1567 echo "configure: failed program was:" >&5 1568 cat conftest.$ac_ext >&5 1569 rm -rf conftest* 1570 ac_cv_cc_sinix_defined=no 1571fi 1572rm -f conftest* 1573fi 1574 1575 echo "$ac_t""$ac_cv_cc_sinix_defined" 1>&6 1576 if test $ac_cv_cc_sinix_defined = no ; then 1577 cat >> confdefs.h <<\EOF 1578#define sinix 1 1579EOF 1580 1581 fi 1582 ;; 1583 1584solaris*) 1585 cat >> confdefs.h <<\EOF 1586#define HAVE_SOLARIS 1 1587EOF 1588 1589 ;; 1590 1591linux*) 1592 V_INCLS="$V_INCLS -Ilinux-include" 1593 ;; 1594esac 1595 1596for ac_prog in ranlib 1597do 1598# Extract the first word of "$ac_prog", so it can be a program name with args. 1599set dummy $ac_prog; ac_word=$2 1600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1601echo "configure:1602: checking for $ac_word" >&5 1602if eval "test \"`echo '$''{'ac_cv_prog_V_RANLIB'+set}'`\" = set"; then 1603 echo $ac_n "(cached) $ac_c" 1>&6 1604else 1605 if test -n "$V_RANLIB"; then 1606 ac_cv_prog_V_RANLIB="$V_RANLIB" # Let the user override the test. 1607else 1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1609 for ac_dir in $PATH; do 1610 test -z "$ac_dir" && ac_dir=. 1611 if test -f $ac_dir/$ac_word; then 1612 ac_cv_prog_V_RANLIB="$ac_prog" 1613 break 1614 fi 1615 done 1616 IFS="$ac_save_ifs" 1617fi 1618fi 1619V_RANLIB="$ac_cv_prog_V_RANLIB" 1620if test -n "$V_RANLIB"; then 1621 echo "$ac_t""$V_RANLIB" 1>&6 1622else 1623 echo "$ac_t""no" 1>&6 1624fi 1625 1626test -n "$V_RANLIB" && break 1627done 1628test -n "$V_RANLIB" || V_RANLIB="@true" 1629 1630 1631rm -f os-proto.h 1632 if test "${LBL_CFLAGS+set}" = set; then 1633 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 1634 fi 1635 if test -f .devel ; then 1636 if test "$GCC" = yes ; then 1637 if test "${LBL_CFLAGS+set}" != set; then 1638 if test "$ac_cv_prog_cc_g" = yes ; then 1639 V_CCOPT="-g $V_CCOPT" 1640 fi 1641 V_CCOPT="$V_CCOPT -Wall" 1642 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 1643 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 1644 fi 1645 fi 1646 else 1647 case "$target_os" in 1648 1649 irix6*) 1650 V_CCOPT="$V_CCOPT -n32" 1651 ;; 1652 1653 *) 1654 ;; 1655 esac 1656 fi 1657 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 1658 name="lbl/os-$os.h" 1659 if test -f $name ; then 1660 ln -s $name os-proto.h 1661 cat >> confdefs.h <<\EOF 1662#define HAVE_OS_PROTO_H 1 1663EOF 1664 1665 else 1666 echo "configure: warning: can't find $name" 1>&2 1667 fi 1668 fi 1669 1670echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6 1671echo "configure:1672: checking if sockaddr struct has sa_len member" >&5 1672 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then 1673 echo $ac_n "(cached) $ac_c" 1>&6 1674else 1675 cat > conftest.$ac_ext <<EOF 1676#line 1677 "configure" 1677#include "confdefs.h" 1678 1679# include <sys/types.h> 1680# include <sys/socket.h> 1681int main() { 1682u_int i = sizeof(((struct sockaddr *)0)->sa_len) 1683; return 0; } 1684EOF 1685if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1686 rm -rf conftest* 1687 ac_cv_lbl_sockaddr_has_sa_len=yes 1688else 1689 echo "configure: failed program was:" >&5 1690 cat conftest.$ac_ext >&5 1691 rm -rf conftest* 1692 ac_cv_lbl_sockaddr_has_sa_len=no 1693fi 1694rm -f conftest* 1695fi 1696 1697 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6 1698 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 1699 cat >> confdefs.h <<\EOF 1700#define HAVE_SOCKADDR_SA_LEN 1 1701EOF 1702 1703 fi 1704 1705echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6 1706echo "configure:1707: checking if unaligned accesses fail" >&5 1707 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then 1708 echo $ac_n "(cached) $ac_c" 1>&6 1709else 1710 case "$target_cpu" in 1711 1712 alpha|hp*|mips|sparc) 1713 ac_cv_lbl_unaligned_fail=yes 1714 ;; 1715 1716 *) 1717 cat >conftest.c <<EOF 1718# include <sys/types.h> 1719# include <sys/wait.h> 1720# include <stdio.h> 1721 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 1722 main() { 1723 unsigned int i; 1724 pid_t pid; 1725 int status; 1726 /* avoid "core dumped" message */ 1727 pid = fork(); 1728 if (pid < 0) 1729 exit(2); 1730 if (pid > 0) { 1731 /* parent */ 1732 pid = waitpid(pid, &status, 0); 1733 if (pid < 0) 1734 exit(3); 1735 exit(!WIFEXITED(status)); 1736 } 1737 /* child */ 1738 i = *(unsigned int *)&a[1]; 1739 printf("%d\n", i); 1740 exit(0); 1741 } 1742EOF 1743 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 1744 conftest.c $LIBS >/dev/null 2>&1 1745 if test ! -x conftest ; then 1746 ac_cv_lbl_unaligned_fail=yes 1747 else 1748 ./conftest >conftest.out 1749 if test ! -s conftest.out ; then 1750 ac_cv_lbl_unaligned_fail=yes 1751 else 1752 ac_cv_lbl_unaligned_fail=no 1753 fi 1754 fi 1755 rm -f conftest* core core.conftest 1756 ;; 1757 esac 1758fi 1759 1760 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6 1761 if test $ac_cv_lbl_unaligned_fail = yes ; then 1762 cat >> confdefs.h <<\EOF 1763#define LBL_ALIGN 1 1764EOF 1765 1766 fi 1767 1768if test "${srcdir}" = "." ; then 1769 srcdirprefix="" 1770else 1771 srcdirprefix="./" 1772fi 1773 1774if test -r ${srcdirprefix}lbl/gnuc.h ; then 1775 rm -f gnuc.h 1776 ln -s ${srcdirprefix}lbl/gnuc.h gnuc.h 1777fi 1778 1779rm -f bpf_filter.c 1780ln -s ${srcdirprefix}bpf/net/bpf_filter.c bpf_filter.c 1781rm -f net 1782ln -s ${srcdirprefix}bpf/net net 1783 1784 1785 1786 1787 1788 1789 1790 1791# Find a good install program. We prefer a C program (faster), 1792# so one script is as good as another. But avoid the broken or 1793# incompatible versions: 1794# SysV /etc/install, /usr/sbin/install 1795# SunOS /usr/etc/install 1796# IRIX /sbin/install 1797# AIX /bin/install 1798# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1799# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1800# ./install, which can be erroneously created by make from ./install.sh. 1801echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1802echo "configure:1803: checking for a BSD compatible install" >&5 1803if test -z "$INSTALL"; then 1804if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1805 echo $ac_n "(cached) $ac_c" 1>&6 1806else 1807 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 1808 for ac_dir in $PATH; do 1809 # Account for people who put trailing slashes in PATH elements. 1810 case "$ac_dir/" in 1811 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1812 *) 1813 # OSF1 and SCO ODT 3.0 have their own names for install. 1814 for ac_prog in ginstall installbsd scoinst install; do 1815 if test -f $ac_dir/$ac_prog; then 1816 if test $ac_prog = install && 1817 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1818 # AIX install. It has an incompatible calling convention. 1819 # OSF/1 installbsd also uses dspmsg, but is usable. 1820 : 1821 else 1822 ac_cv_path_install="$ac_dir/$ac_prog -c" 1823 break 2 1824 fi 1825 fi 1826 done 1827 ;; 1828 esac 1829 done 1830 IFS="$ac_save_IFS" 1831 1832fi 1833 if test "${ac_cv_path_install+set}" = set; then 1834 INSTALL="$ac_cv_path_install" 1835 else 1836 # As a last resort, use the slow shell script. We don't cache a 1837 # path for INSTALL within a source directory, because that will 1838 # break other packages using the cache if that directory is 1839 # removed, or if the path is relative. 1840 INSTALL="$ac_install_sh" 1841 fi 1842fi 1843echo "$ac_t""$INSTALL" 1>&6 1844 1845# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1846# It thinks the first close brace ends the variable substitution. 1847test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1848 1849test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1850 1851 1852trap '' 1 2 15 1853cat > confcache <<\EOF 1854# This file is a shell script that caches the results of configure 1855# tests run on this system so they can be shared between configure 1856# scripts and configure runs. It is not useful on other systems. 1857# If it contains results you don't want to keep, you may remove or edit it. 1858# 1859# By default, configure uses ./config.cache as the cache file, 1860# creating it if it does not exist already. You can give configure 1861# the --cache-file=FILE option to use a different cache file; that is 1862# what configure does when it calls configure scripts in 1863# subdirectories, so they share the cache. 1864# Giving --cache-file=/dev/null disables caching, for debugging configure. 1865# config.status only pays attention to the cache file if you give it the 1866# --recheck option to rerun configure. 1867# 1868EOF 1869# The following way of writing the cache mishandles newlines in values, 1870# but we know of no workaround that is simple, portable, and efficient. 1871# So, don't put newlines in cache variables' values. 1872# Ultrix sh set writes to stderr and can't be redirected directly, 1873# and sets the high bit in the cache file unless we assign to the vars. 1874(set) 2>&1 | 1875 case `(ac_space=' '; set) 2>&1` in 1876 *ac_space=\ *) 1877 # `set' does not quote correctly, so add quotes (double-quote substitution 1878 # turns \\\\ into \\, and sed turns \\ into \). 1879 sed -n \ 1880 -e "s/'/'\\\\''/g" \ 1881 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1882 ;; 1883 *) 1884 # `set' quotes correctly as required by POSIX, so do not add quotes. 1885 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1886 ;; 1887 esac >> confcache 1888if cmp -s $cache_file confcache; then 1889 : 1890else 1891 if test -w $cache_file; then 1892 echo "updating cache $cache_file" 1893 cat confcache > $cache_file 1894 else 1895 echo "not updating unwritable cache $cache_file" 1896 fi 1897fi 1898rm -f confcache 1899 1900trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1901 1902test "x$prefix" = xNONE && prefix=$ac_default_prefix 1903# Let make expand exec_prefix. 1904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1905 1906# Any assignment to VPATH causes Sun make to only execute 1907# the first set of double-colon rules, so remove it if not needed. 1908# If there is a colon in the path, we need to keep it. 1909if test "x$srcdir" = x.; then 1910 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1911fi 1912 1913trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1914 1915# Transform confdefs.h into DEFS. 1916# Protect against shell expansion while executing Makefile rules. 1917# Protect against Makefile macro expansion. 1918cat > conftest.defs <<\EOF 1919s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 1920s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1921s%\[%\\&%g 1922s%\]%\\&%g 1923s%\$%$$%g 1924EOF 1925DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1926rm -f conftest.defs 1927 1928 1929# Without the "./", some shells look in PATH for config.status. 1930: ${CONFIG_STATUS=./config.status} 1931 1932echo creating $CONFIG_STATUS 1933rm -f $CONFIG_STATUS 1934cat > $CONFIG_STATUS <<EOF 1935#! /bin/sh 1936# Generated automatically by configure. 1937# Run this file to recreate the current configuration. 1938# This directory was configured as follows, 1939# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1940# 1941# $0 $ac_configure_args 1942# 1943# Compiler output produced by configure, useful for debugging 1944# configure, is in ./config.log if it exists. 1945 1946ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1947for ac_option 1948do 1949 case "\$ac_option" in 1950 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1951 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1952 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1953 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1954 echo "$CONFIG_STATUS generated by autoconf version 2.12" 1955 exit 0 ;; 1956 -help | --help | --hel | --he | --h) 1957 echo "\$ac_cs_usage"; exit 0 ;; 1958 *) echo "\$ac_cs_usage"; exit 1 ;; 1959 esac 1960done 1961 1962ac_given_srcdir=$srcdir 1963ac_given_INSTALL="$INSTALL" 1964 1965trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1966EOF 1967cat >> $CONFIG_STATUS <<EOF 1968 1969# Protect against being on the right side of a sed subst in config.status. 1970sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1971 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1972$ac_vpsub 1973$extrasub 1974s%@CFLAGS@%$CFLAGS%g 1975s%@CPPFLAGS@%$CPPFLAGS%g 1976s%@CXXFLAGS@%$CXXFLAGS%g 1977s%@DEFS@%$DEFS%g 1978s%@LDFLAGS@%$LDFLAGS%g 1979s%@LIBS@%$LIBS%g 1980s%@exec_prefix@%$exec_prefix%g 1981s%@prefix@%$prefix%g 1982s%@program_transform_name@%$program_transform_name%g 1983s%@bindir@%$bindir%g 1984s%@sbindir@%$sbindir%g 1985s%@libexecdir@%$libexecdir%g 1986s%@datadir@%$datadir%g 1987s%@sysconfdir@%$sysconfdir%g 1988s%@sharedstatedir@%$sharedstatedir%g 1989s%@localstatedir@%$localstatedir%g 1990s%@libdir@%$libdir%g 1991s%@includedir@%$includedir%g 1992s%@oldincludedir@%$oldincludedir%g 1993s%@infodir@%$infodir%g 1994s%@mandir@%$mandir%g 1995s%@host@%$host%g 1996s%@host_alias@%$host_alias%g 1997s%@host_cpu@%$host_cpu%g 1998s%@host_vendor@%$host_vendor%g 1999s%@host_os@%$host_os%g 2000s%@target@%$target%g 2001s%@target_alias@%$target_alias%g 2002s%@target_cpu@%$target_cpu%g 2003s%@target_vendor@%$target_vendor%g 2004s%@target_os@%$target_os%g 2005s%@build@%$build%g 2006s%@build_alias@%$build_alias%g 2007s%@build_cpu@%$build_cpu%g 2008s%@build_vendor@%$build_vendor%g 2009s%@build_os@%$build_os%g 2010s%@SHLICC2@%$SHLICC2%g 2011s%@CC@%$CC%g 2012s%@CPP@%$CPP%g 2013s%@V_LEX@%$V_LEX%g 2014s%@V_YACC@%$V_YACC%g 2015s%@V_RANLIB@%$V_RANLIB%g 2016s%@V_CCOPT@%$V_CCOPT%g 2017s%@V_INCLS@%$V_INCLS%g 2018s%@V_PCAP@%$V_PCAP%g 2019s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2020s%@INSTALL_DATA@%$INSTALL_DATA%g 2021 2022CEOF 2023EOF 2024 2025cat >> $CONFIG_STATUS <<\EOF 2026 2027# Split the substitutions into bite-sized pieces for seds with 2028# small command number limits, like on Digital OSF/1 and HP-UX. 2029ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2030ac_file=1 # Number of current file. 2031ac_beg=1 # First line for current file. 2032ac_end=$ac_max_sed_cmds # Line after last line for current file. 2033ac_more_lines=: 2034ac_sed_cmds="" 2035while $ac_more_lines; do 2036 if test $ac_beg -gt 1; then 2037 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2038 else 2039 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2040 fi 2041 if test ! -s conftest.s$ac_file; then 2042 ac_more_lines=false 2043 rm -f conftest.s$ac_file 2044 else 2045 if test -z "$ac_sed_cmds"; then 2046 ac_sed_cmds="sed -f conftest.s$ac_file" 2047 else 2048 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2049 fi 2050 ac_file=`expr $ac_file + 1` 2051 ac_beg=$ac_end 2052 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2053 fi 2054done 2055if test -z "$ac_sed_cmds"; then 2056 ac_sed_cmds=cat 2057fi 2058EOF 2059 2060cat >> $CONFIG_STATUS <<EOF 2061 2062CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2063EOF 2064cat >> $CONFIG_STATUS <<\EOF 2065for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2067 case "$ac_file" in 2068 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2069 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2070 *) ac_file_in="${ac_file}.in" ;; 2071 esac 2072 2073 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2074 2075 # Remove last slash and all that follows it. Not all systems have dirname. 2076 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2077 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2078 # The file is in a subdirectory. 2079 test ! -d "$ac_dir" && mkdir "$ac_dir" 2080 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2081 # A "../" for each directory in $ac_dir_suffix. 2082 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2083 else 2084 ac_dir_suffix= ac_dots= 2085 fi 2086 2087 case "$ac_given_srcdir" in 2088 .) srcdir=. 2089 if test -z "$ac_dots"; then top_srcdir=. 2090 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2091 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2092 *) # Relative path. 2093 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2094 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2095 esac 2096 2097 case "$ac_given_INSTALL" in 2098 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2099 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2100 esac 2101 2102 echo creating "$ac_file" 2103 rm -f "$ac_file" 2104 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2105 case "$ac_file" in 2106 *Makefile*) ac_comsub="1i\\ 2107# $configure_input" ;; 2108 *) ac_comsub= ;; 2109 esac 2110 2111 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2112 sed -e "$ac_comsub 2113s%@configure_input@%$configure_input%g 2114s%@srcdir@%$srcdir%g 2115s%@top_srcdir@%$top_srcdir%g 2116s%@INSTALL@%$INSTALL%g 2117" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2118fi; done 2119rm -f conftest.s* 2120 2121EOF 2122cat >> $CONFIG_STATUS <<EOF 2123 2124EOF 2125cat >> $CONFIG_STATUS <<\EOF 2126 2127exit 0 2128EOF 2129chmod +x $CONFIG_STATUS 2130rm -fr confdefs* $ac_clean_files 2131test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2132 2133 2134if test -f .devel ; then 2135 make depend 2136fi 2137exit 0 2138