1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --enable-debug build a debug version" 16ac_help="$ac_help 17 --enable-debugrm build with a memory allocation recorder" 18ac_help="$ac_help 19 --enable-yydebug build a yydebug version" 20ac_help="$ac_help 21 --enable-pedant pedantic compiler options" 22ac_help="$ac_help 23 --enable-adminport enable admin port (INSECURE!)" 24ac_help="$ac_help 25 --enable-rc5 enable RC5 encryption (patented)" 26ac_help="$ac_help 27 --enable-idea enable IDEA encryption (patented)" 28ac_help="$ac_help 29 --enable-gssapi enable GSS-API authentication" 30ac_help="$ac_help 31 --enable-stats enable statistics logging function" 32ac_help="$ac_help 33 --enable-samode-unspec enable to use unspecified a mode of SA" 34ac_help="$ac_help 35 --with-efence=DIR specify ElectricFence directory" 36ac_help="$ac_help 37 --with-gc=DIR specify Bohem GC directory (experimental)" 38ac_help="$ac_help 39 --with-dmalloc=DIR specify Dmalloc directory" 40ac_help="$ac_help 41 --enable-ipv6 Enable ipv6 (with ipv4) support 42 --disable-ipv6 Disable ipv6 support" 43ac_help="$ac_help 44 --with-ssleay=DIR specify SSLeay directory" 45ac_help="$ac_help 46 --with-libpfkey=DIR specify libpfkey.a dir" 47ac_help="$ac_help 48 --with-lwres=DIR specify liblwres path (like /usr/pkg)" 49ac_help="$ac_help 50 --with-pkgversion=VERSION specify package version" 51 52# Initialize some variables set by options. 53# The variables have the same names as the options, with 54# dashes changed to underlines. 55build=NONE 56cache_file=./config.cache 57exec_prefix=NONE 58host=NONE 59no_create= 60nonopt=NONE 61no_recursion= 62prefix=NONE 63program_prefix=NONE 64program_suffix=NONE 65program_transform_name=s,x,x, 66silent= 67site= 68srcdir= 69target=NONE 70verbose= 71x_includes=NONE 72x_libraries=NONE 73bindir='${exec_prefix}/bin' 74sbindir='${exec_prefix}/sbin' 75libexecdir='${exec_prefix}/libexec' 76datadir='${prefix}/share' 77sysconfdir='${prefix}/etc' 78sharedstatedir='${prefix}/com' 79localstatedir='${prefix}/var' 80libdir='${exec_prefix}/lib' 81includedir='${prefix}/include' 82oldincludedir='/usr/include' 83infodir='${prefix}/info' 84mandir='${prefix}/man' 85 86# Initialize some other variables. 87subdirs= 88MFLAGS= MAKEFLAGS= 89SHELL=${CONFIG_SHELL-/bin/sh} 90# Maximum number of lines to put in a shell here document. 91ac_max_here_lines=12 92 93ac_prev= 94for ac_option 95do 96 97 # If the previous option needs an argument, assign it. 98 if test -n "$ac_prev"; then 99 eval "$ac_prev=\$ac_option" 100 ac_prev= 101 continue 102 fi 103 104 case "$ac_option" in 105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 106 *) ac_optarg= ;; 107 esac 108 109 # Accept the important Cygnus configure options, so we can diagnose typos. 110 111 case "$ac_option" in 112 113 -bindir | --bindir | --bindi | --bind | --bin | --bi) 114 ac_prev=bindir ;; 115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 116 bindir="$ac_optarg" ;; 117 118 -build | --build | --buil | --bui | --bu) 119 ac_prev=build ;; 120 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 121 build="$ac_optarg" ;; 122 123 -cache-file | --cache-file | --cache-fil | --cache-fi \ 124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 125 ac_prev=cache_file ;; 126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 128 cache_file="$ac_optarg" ;; 129 130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 131 ac_prev=datadir ;; 132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 133 | --da=*) 134 datadir="$ac_optarg" ;; 135 136 -disable-* | --disable-*) 137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 138 # Reject names that are not valid shell variable names. 139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 141 fi 142 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 143 eval "enable_${ac_feature}=no" ;; 144 145 -enable-* | --enable-*) 146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 147 # Reject names that are not valid shell variable names. 148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 150 fi 151 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 152 case "$ac_option" in 153 *=*) ;; 154 *) ac_optarg=yes ;; 155 esac 156 eval "enable_${ac_feature}='$ac_optarg'" ;; 157 158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 160 | --exec | --exe | --ex) 161 ac_prev=exec_prefix ;; 162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 164 | --exec=* | --exe=* | --ex=*) 165 exec_prefix="$ac_optarg" ;; 166 167 -gas | --gas | --ga | --g) 168 # Obsolete; use --with-gas. 169 with_gas=yes ;; 170 171 -help | --help | --hel | --he) 172 # Omit some internal or obsolete options to make the list less imposing. 173 # This message is too long to be a string in the A/UX 3.1 sh. 174 cat << EOF 175Usage: configure [options] [host] 176Options: [defaults in brackets after descriptions] 177Configuration: 178 --cache-file=FILE cache test results in FILE 179 --help print this message 180 --no-create do not create output files 181 --quiet, --silent do not print \`checking...' messages 182 --version print the version of autoconf that created configure 183Directory and file names: 184 --prefix=PREFIX install architecture-independent files in PREFIX 185 [$ac_default_prefix] 186 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 187 [same as prefix] 188 --bindir=DIR user executables in DIR [EPREFIX/bin] 189 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 190 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 191 --datadir=DIR read-only architecture-independent data in DIR 192 [PREFIX/share] 193 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 194 --sharedstatedir=DIR modifiable architecture-independent data in DIR 195 [PREFIX/com] 196 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 197 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 198 --includedir=DIR C header files in DIR [PREFIX/include] 199 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 200 --infodir=DIR info documentation in DIR [PREFIX/info] 201 --mandir=DIR man documentation in DIR [PREFIX/man] 202 --srcdir=DIR find the sources in DIR [configure dir or ..] 203 --program-prefix=PREFIX prepend PREFIX to installed program names 204 --program-suffix=SUFFIX append SUFFIX to installed program names 205 --program-transform-name=PROGRAM 206 run sed PROGRAM on installed program names 207EOF 208 cat << EOF 209Host type: 210 --build=BUILD configure for building on BUILD [BUILD=HOST] 211 --host=HOST configure for HOST [guessed] 212 --target=TARGET configure for TARGET [TARGET=HOST] 213Features and packages: 214 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 215 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 216 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 217 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 218 --x-includes=DIR X include files are in DIR 219 --x-libraries=DIR X library files are in DIR 220EOF 221 if test -n "$ac_help"; then 222 echo "--enable and --with options recognized:$ac_help" 223 fi 224 exit 0 ;; 225 226 -host | --host | --hos | --ho) 227 ac_prev=host ;; 228 -host=* | --host=* | --hos=* | --ho=*) 229 host="$ac_optarg" ;; 230 231 -includedir | --includedir | --includedi | --included | --include \ 232 | --includ | --inclu | --incl | --inc) 233 ac_prev=includedir ;; 234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 235 | --includ=* | --inclu=* | --incl=* | --inc=*) 236 includedir="$ac_optarg" ;; 237 238 -infodir | --infodir | --infodi | --infod | --info | --inf) 239 ac_prev=infodir ;; 240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 241 infodir="$ac_optarg" ;; 242 243 -libdir | --libdir | --libdi | --libd) 244 ac_prev=libdir ;; 245 -libdir=* | --libdir=* | --libdi=* | --libd=*) 246 libdir="$ac_optarg" ;; 247 248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 249 | --libexe | --libex | --libe) 250 ac_prev=libexecdir ;; 251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 252 | --libexe=* | --libex=* | --libe=*) 253 libexecdir="$ac_optarg" ;; 254 255 -localstatedir | --localstatedir | --localstatedi | --localstated \ 256 | --localstate | --localstat | --localsta | --localst \ 257 | --locals | --local | --loca | --loc | --lo) 258 ac_prev=localstatedir ;; 259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 260 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 261 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 262 localstatedir="$ac_optarg" ;; 263 264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 265 ac_prev=mandir ;; 266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 267 mandir="$ac_optarg" ;; 268 269 -nfp | --nfp | --nf) 270 # Obsolete; use --without-fp. 271 with_fp=no ;; 272 273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 274 | --no-cr | --no-c) 275 no_create=yes ;; 276 277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 279 no_recursion=yes ;; 280 281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 283 | --oldin | --oldi | --old | --ol | --o) 284 ac_prev=oldincludedir ;; 285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 288 oldincludedir="$ac_optarg" ;; 289 290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 291 ac_prev=prefix ;; 292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 293 prefix="$ac_optarg" ;; 294 295 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 296 | --program-pre | --program-pr | --program-p) 297 ac_prev=program_prefix ;; 298 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 300 program_prefix="$ac_optarg" ;; 301 302 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 303 | --program-suf | --program-su | --program-s) 304 ac_prev=program_suffix ;; 305 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 307 program_suffix="$ac_optarg" ;; 308 309 -program-transform-name | --program-transform-name \ 310 | --program-transform-nam | --program-transform-na \ 311 | --program-transform-n | --program-transform- \ 312 | --program-transform | --program-transfor \ 313 | --program-transfo | --program-transf \ 314 | --program-trans | --program-tran \ 315 | --progr-tra | --program-tr | --program-t) 316 ac_prev=program_transform_name ;; 317 -program-transform-name=* | --program-transform-name=* \ 318 | --program-transform-nam=* | --program-transform-na=* \ 319 | --program-transform-n=* | --program-transform-=* \ 320 | --program-transform=* | --program-transfor=* \ 321 | --program-transfo=* | --program-transf=* \ 322 | --program-trans=* | --program-tran=* \ 323 | --progr-tra=* | --program-tr=* | --program-t=*) 324 program_transform_name="$ac_optarg" ;; 325 326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 327 | -silent | --silent | --silen | --sile | --sil) 328 silent=yes ;; 329 330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 331 ac_prev=sbindir ;; 332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 333 | --sbi=* | --sb=*) 334 sbindir="$ac_optarg" ;; 335 336 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 338 | --sharedst | --shareds | --shared | --share | --shar \ 339 | --sha | --sh) 340 ac_prev=sharedstatedir ;; 341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 344 | --sha=* | --sh=*) 345 sharedstatedir="$ac_optarg" ;; 346 347 -site | --site | --sit) 348 ac_prev=site ;; 349 -site=* | --site=* | --sit=*) 350 site="$ac_optarg" ;; 351 352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 353 ac_prev=srcdir ;; 354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 355 srcdir="$ac_optarg" ;; 356 357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 358 | --syscon | --sysco | --sysc | --sys | --sy) 359 ac_prev=sysconfdir ;; 360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 362 sysconfdir="$ac_optarg" ;; 363 364 -target | --target | --targe | --targ | --tar | --ta | --t) 365 ac_prev=target ;; 366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 367 target="$ac_optarg" ;; 368 369 -v | -verbose | --verbose | --verbos | --verbo | --verb) 370 verbose=yes ;; 371 372 -version | --version | --versio | --versi | --vers) 373 echo "configure generated by autoconf version 2.13" 374 exit 0 ;; 375 376 -with-* | --with-*) 377 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 378 # Reject names that are not valid shell variable names. 379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 381 fi 382 ac_package=`echo $ac_package| sed 's/-/_/g'` 383 case "$ac_option" in 384 *=*) ;; 385 *) ac_optarg=yes ;; 386 esac 387 eval "with_${ac_package}='$ac_optarg'" ;; 388 389 -without-* | --without-*) 390 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 391 # Reject names that are not valid shell variable names. 392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 394 fi 395 ac_package=`echo $ac_package| sed 's/-/_/g'` 396 eval "with_${ac_package}=no" ;; 397 398 --x) 399 # Obsolete; use --with-x. 400 with_x=yes ;; 401 402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 403 | --x-incl | --x-inc | --x-in | --x-i) 404 ac_prev=x_includes ;; 405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 407 x_includes="$ac_optarg" ;; 408 409 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 411 ac_prev=x_libraries ;; 412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 414 x_libraries="$ac_optarg" ;; 415 416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 417 ;; 418 419 *) 420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 421 echo "configure: warning: $ac_option: invalid host type" 1>&2 422 fi 423 if test "x$nonopt" != xNONE; then 424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 425 fi 426 nonopt="$ac_option" 427 ;; 428 429 esac 430done 431 432if test -n "$ac_prev"; then 433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 434fi 435 436trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 437 438# File descriptor usage: 439# 0 standard input 440# 1 file creation 441# 2 errors and warnings 442# 3 some systems may open it to /dev/tty 443# 4 used on the Kubota Titan 444# 6 checking for... messages and results 445# 5 compiler messages saved in config.log 446if test "$silent" = yes; then 447 exec 6>/dev/null 448else 449 exec 6>&1 450fi 451exec 5>./config.log 452 453echo "\ 454This file contains any messages produced by compilers while 455running configure, to aid debugging if configure makes a mistake. 456" 1>&5 457 458# Strip out --no-create and --no-recursion so they do not pile up. 459# Also quote any args containing shell metacharacters. 460ac_configure_args= 461for ac_arg 462do 463 case "$ac_arg" in 464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 465 | --no-cr | --no-c) ;; 466 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 467 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 469 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 470 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 471 esac 472done 473 474# NLS nuisances. 475# Only set these to C if already set. These must not be set unconditionally 476# because not all systems understand e.g. LANG=C (notably SCO). 477# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 478# Non-C LC_CTYPE values break the ctype check. 479if test "${LANG+set}" = set; then LANG=C; export LANG; fi 480if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 481if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 482if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 483 484# confdefs.h avoids OS command line length limits that DEFS can exceed. 485rm -rf conftest* confdefs.h 486# AIX cpp loses on an empty file, so make sure it contains at least a newline. 487echo > confdefs.h 488 489# A filename unique to this package, relative to the directory that 490# configure is in, which we can look for to find out if srcdir is correct. 491ac_unique_file=admin.c 492 493# Find the source files, if location was not specified. 494if test -z "$srcdir"; then 495 ac_srcdir_defaulted=yes 496 # Try the directory containing this script, then its parent. 497 ac_prog=$0 498 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 500 srcdir=$ac_confdir 501 if test ! -r $srcdir/$ac_unique_file; then 502 srcdir=.. 503 fi 504else 505 ac_srcdir_defaulted=no 506fi 507if test ! -r $srcdir/$ac_unique_file; then 508 if test "$ac_srcdir_defaulted" = yes; then 509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 510 else 511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 512 fi 513fi 514srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 515 516# Prefer explicitly selected file to automatically selected ones. 517if test -z "$CONFIG_SITE"; then 518 if test "x$prefix" != xNONE; then 519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 520 else 521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 522 fi 523fi 524for ac_site_file in $CONFIG_SITE; do 525 if test -r "$ac_site_file"; then 526 echo "loading site script $ac_site_file" 527 . "$ac_site_file" 528 fi 529done 530 531if test -r "$cache_file"; then 532 echo "loading cache $cache_file" 533 . $cache_file 534else 535 echo "creating cache $cache_file" 536 > $cache_file 537fi 538 539ac_ext=c 540# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 541ac_cpp='$CPP $CPPFLAGS' 542ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 543ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 544cross_compiling=$ac_cv_prog_cc_cross 545 546ac_exeext= 547ac_objext=o 548if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 549 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 550 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 551 ac_n= ac_c=' 552' ac_t=' ' 553 else 554 ac_n=-n ac_c= ac_t= 555 fi 556else 557 ac_n= ac_c='\c' ac_t= 558fi 559 560 561 562# Extract the first word of "gcc", so it can be a program name with args. 563set dummy gcc; ac_word=$2 564echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 565echo "configure:566: checking for $ac_word" >&5 566if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 567 echo $ac_n "(cached) $ac_c" 1>&6 568else 569 if test -n "$CC"; then 570 ac_cv_prog_CC="$CC" # Let the user override the test. 571else 572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 573 ac_dummy="$PATH" 574 for ac_dir in $ac_dummy; do 575 test -z "$ac_dir" && ac_dir=. 576 if test -f $ac_dir/$ac_word; then 577 ac_cv_prog_CC="gcc" 578 break 579 fi 580 done 581 IFS="$ac_save_ifs" 582fi 583fi 584CC="$ac_cv_prog_CC" 585if test -n "$CC"; then 586 echo "$ac_t""$CC" 1>&6 587else 588 echo "$ac_t""no" 1>&6 589fi 590 591if test -z "$CC"; then 592 # Extract the first word of "cc", so it can be a program name with args. 593set dummy cc; ac_word=$2 594echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 595echo "configure:596: checking for $ac_word" >&5 596if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 597 echo $ac_n "(cached) $ac_c" 1>&6 598else 599 if test -n "$CC"; then 600 ac_cv_prog_CC="$CC" # Let the user override the test. 601else 602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 603 ac_prog_rejected=no 604 ac_dummy="$PATH" 605 for ac_dir in $ac_dummy; do 606 test -z "$ac_dir" && ac_dir=. 607 if test -f $ac_dir/$ac_word; then 608 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 609 ac_prog_rejected=yes 610 continue 611 fi 612 ac_cv_prog_CC="cc" 613 break 614 fi 615 done 616 IFS="$ac_save_ifs" 617if test $ac_prog_rejected = yes; then 618 # We found a bogon in the path, so make sure we never use it. 619 set dummy $ac_cv_prog_CC 620 shift 621 if test $# -gt 0; then 622 # We chose a different compiler from the bogus one. 623 # However, it has the same basename, so the bogon will be chosen 624 # first if we set CC to just the basename; use the full file name. 625 shift 626 set dummy "$ac_dir/$ac_word" "$@" 627 shift 628 ac_cv_prog_CC="$@" 629 fi 630fi 631fi 632fi 633CC="$ac_cv_prog_CC" 634if test -n "$CC"; then 635 echo "$ac_t""$CC" 1>&6 636else 637 echo "$ac_t""no" 1>&6 638fi 639 640 if test -z "$CC"; then 641 case "`uname -s`" in 642 *win32* | *WIN32*) 643 # Extract the first word of "cl", so it can be a program name with args. 644set dummy cl; ac_word=$2 645echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 646echo "configure:647: checking for $ac_word" >&5 647if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 648 echo $ac_n "(cached) $ac_c" 1>&6 649else 650 if test -n "$CC"; then 651 ac_cv_prog_CC="$CC" # Let the user override the test. 652else 653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 654 ac_dummy="$PATH" 655 for ac_dir in $ac_dummy; do 656 test -z "$ac_dir" && ac_dir=. 657 if test -f $ac_dir/$ac_word; then 658 ac_cv_prog_CC="cl" 659 break 660 fi 661 done 662 IFS="$ac_save_ifs" 663fi 664fi 665CC="$ac_cv_prog_CC" 666if test -n "$CC"; then 667 echo "$ac_t""$CC" 1>&6 668else 669 echo "$ac_t""no" 1>&6 670fi 671 ;; 672 esac 673 fi 674 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 675fi 676 677echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 678echo "configure:679: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 679 680ac_ext=c 681# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 682ac_cpp='$CPP $CPPFLAGS' 683ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 684ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 685cross_compiling=$ac_cv_prog_cc_cross 686 687cat > conftest.$ac_ext << EOF 688 689#line 690 "configure" 690#include "confdefs.h" 691 692main(){return(0);} 693EOF 694if { (eval echo configure:695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 695 ac_cv_prog_cc_works=yes 696 # If we can't run a trivial program, we are probably using a cross compiler. 697 if (./conftest; exit) 2>/dev/null; then 698 ac_cv_prog_cc_cross=no 699 else 700 ac_cv_prog_cc_cross=yes 701 fi 702else 703 echo "configure: failed program was:" >&5 704 cat conftest.$ac_ext >&5 705 ac_cv_prog_cc_works=no 706fi 707rm -fr conftest* 708ac_ext=c 709# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 710ac_cpp='$CPP $CPPFLAGS' 711ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 712ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 713cross_compiling=$ac_cv_prog_cc_cross 714 715echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 716if test $ac_cv_prog_cc_works = no; then 717 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 718fi 719echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 720echo "configure:721: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 721echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 722cross_compiling=$ac_cv_prog_cc_cross 723 724echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 725echo "configure:726: checking whether we are using GNU C" >&5 726if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 727 echo $ac_n "(cached) $ac_c" 1>&6 728else 729 cat > conftest.c <<EOF 730#ifdef __GNUC__ 731 yes; 732#endif 733EOF 734if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 735 ac_cv_prog_gcc=yes 736else 737 ac_cv_prog_gcc=no 738fi 739fi 740 741echo "$ac_t""$ac_cv_prog_gcc" 1>&6 742 743if test $ac_cv_prog_gcc = yes; then 744 GCC=yes 745else 746 GCC= 747fi 748 749ac_test_CFLAGS="${CFLAGS+set}" 750ac_save_CFLAGS="$CFLAGS" 751CFLAGS= 752echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 753echo "configure:754: checking whether ${CC-cc} accepts -g" >&5 754if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 755 echo $ac_n "(cached) $ac_c" 1>&6 756else 757 echo 'void f(){}' > conftest.c 758if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 759 ac_cv_prog_cc_g=yes 760else 761 ac_cv_prog_cc_g=no 762fi 763rm -f conftest* 764 765fi 766 767echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 768if test "$ac_test_CFLAGS" = set; then 769 CFLAGS="$ac_save_CFLAGS" 770elif test $ac_cv_prog_cc_g = yes; then 771 if test "$GCC" = yes; then 772 CFLAGS="-g -O2" 773 else 774 CFLAGS="-g" 775 fi 776else 777 if test "$GCC" = yes; then 778 CFLAGS="-O2" 779 else 780 CFLAGS= 781 fi 782fi 783 784echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 785echo "configure:786: checking how to run the C preprocessor" >&5 786# On Suns, sometimes $CPP names a directory. 787if test -n "$CPP" && test -d "$CPP"; then 788 CPP= 789fi 790if test -z "$CPP"; then 791if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 792 echo $ac_n "(cached) $ac_c" 1>&6 793else 794 # This must be in double quotes, not single quotes, because CPP may get 795 # substituted into the Makefile and "${CC-cc}" will confuse make. 796 CPP="${CC-cc} -E" 797 # On the NeXT, cc -E runs the code through the compiler's parser, 798 # not just through cpp. 799 cat > conftest.$ac_ext <<EOF 800#line 801 "configure" 801#include "confdefs.h" 802#include <assert.h> 803Syntax Error 804EOF 805ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 806{ (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 807ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 808if test -z "$ac_err"; then 809 : 810else 811 echo "$ac_err" >&5 812 echo "configure: failed program was:" >&5 813 cat conftest.$ac_ext >&5 814 rm -rf conftest* 815 CPP="${CC-cc} -E -traditional-cpp" 816 cat > conftest.$ac_ext <<EOF 817#line 818 "configure" 818#include "confdefs.h" 819#include <assert.h> 820Syntax Error 821EOF 822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 823{ (eval echo configure:824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 825if test -z "$ac_err"; then 826 : 827else 828 echo "$ac_err" >&5 829 echo "configure: failed program was:" >&5 830 cat conftest.$ac_ext >&5 831 rm -rf conftest* 832 CPP="${CC-cc} -nologo -E" 833 cat > conftest.$ac_ext <<EOF 834#line 835 "configure" 835#include "confdefs.h" 836#include <assert.h> 837Syntax Error 838EOF 839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 840{ (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 842if test -z "$ac_err"; then 843 : 844else 845 echo "$ac_err" >&5 846 echo "configure: failed program was:" >&5 847 cat conftest.$ac_ext >&5 848 rm -rf conftest* 849 CPP=/lib/cpp 850fi 851rm -f conftest* 852fi 853rm -f conftest* 854fi 855rm -f conftest* 856 ac_cv_prog_CPP="$CPP" 857fi 858 CPP="$ac_cv_prog_CPP" 859else 860 ac_cv_prog_CPP="$CPP" 861fi 862echo "$ac_t""$CPP" 1>&6 863 864# Extract the first word of "flex", so it can be a program name with args. 865set dummy flex; ac_word=$2 866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 867echo "configure:868: checking for $ac_word" >&5 868if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 869 echo $ac_n "(cached) $ac_c" 1>&6 870else 871 if test -n "$LEX"; then 872 ac_cv_prog_LEX="$LEX" # Let the user override the test. 873else 874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 875 ac_dummy="$PATH" 876 for ac_dir in $ac_dummy; do 877 test -z "$ac_dir" && ac_dir=. 878 if test -f $ac_dir/$ac_word; then 879 ac_cv_prog_LEX="flex" 880 break 881 fi 882 done 883 IFS="$ac_save_ifs" 884 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 885fi 886fi 887LEX="$ac_cv_prog_LEX" 888if test -n "$LEX"; then 889 echo "$ac_t""$LEX" 1>&6 890else 891 echo "$ac_t""no" 1>&6 892fi 893 894if test -z "$LEXLIB" 895then 896 case "$LEX" in 897 flex*) ac_lib=fl ;; 898 *) ac_lib=l ;; 899 esac 900 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 901echo "configure:902: checking for yywrap in -l$ac_lib" >&5 902ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 904 echo $ac_n "(cached) $ac_c" 1>&6 905else 906 ac_save_LIBS="$LIBS" 907LIBS="-l$ac_lib $LIBS" 908cat > conftest.$ac_ext <<EOF 909#line 910 "configure" 910#include "confdefs.h" 911/* Override any gcc2 internal prototype to avoid an error. */ 912/* We use char because int might match the return type of a gcc2 913 builtin and then its argument prototype would still apply. */ 914char yywrap(); 915 916int main() { 917yywrap() 918; return 0; } 919EOF 920if { (eval echo configure:921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 921 rm -rf conftest* 922 eval "ac_cv_lib_$ac_lib_var=yes" 923else 924 echo "configure: failed program was:" >&5 925 cat conftest.$ac_ext >&5 926 rm -rf conftest* 927 eval "ac_cv_lib_$ac_lib_var=no" 928fi 929rm -f conftest* 930LIBS="$ac_save_LIBS" 931 932fi 933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 934 echo "$ac_t""yes" 1>&6 935 LEXLIB="-l$ac_lib" 936else 937 echo "$ac_t""no" 1>&6 938fi 939 940fi 941 942ac_aux_dir= 943for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 944 if test -f $ac_dir/install-sh; then 945 ac_aux_dir=$ac_dir 946 ac_install_sh="$ac_aux_dir/install-sh -c" 947 break 948 elif test -f $ac_dir/install.sh; then 949 ac_aux_dir=$ac_dir 950 ac_install_sh="$ac_aux_dir/install.sh -c" 951 break 952 fi 953done 954if test -z "$ac_aux_dir"; then 955 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 956fi 957ac_config_guess=$ac_aux_dir/config.guess 958ac_config_sub=$ac_aux_dir/config.sub 959ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 960 961# Find a good install program. We prefer a C program (faster), 962# so one script is as good as another. But avoid the broken or 963# incompatible versions: 964# SysV /etc/install, /usr/sbin/install 965# SunOS /usr/etc/install 966# IRIX /sbin/install 967# AIX /bin/install 968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 969# AFS /usr/afsws/bin/install, which mishandles nonexistent args 970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 971# ./install, which can be erroneously created by make from ./install.sh. 972echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 973echo "configure:974: checking for a BSD compatible install" >&5 974if test -z "$INSTALL"; then 975if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977else 978 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 979 for ac_dir in $PATH; do 980 # Account for people who put trailing slashes in PATH elements. 981 case "$ac_dir/" in 982 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 983 *) 984 # OSF1 and SCO ODT 3.0 have their own names for install. 985 # Don't use installbsd from OSF since it installs stuff as root 986 # by default. 987 for ac_prog in ginstall scoinst install; do 988 if test -f $ac_dir/$ac_prog; then 989 if test $ac_prog = install && 990 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 991 # AIX install. It has an incompatible calling convention. 992 : 993 else 994 ac_cv_path_install="$ac_dir/$ac_prog -c" 995 break 2 996 fi 997 fi 998 done 999 ;; 1000 esac 1001 done 1002 IFS="$ac_save_IFS" 1003 1004fi 1005 if test "${ac_cv_path_install+set}" = set; then 1006 INSTALL="$ac_cv_path_install" 1007 else 1008 # As a last resort, use the slow shell script. We don't cache a 1009 # path for INSTALL within a source directory, because that will 1010 # break other packages using the cache if that directory is 1011 # removed, or if the path is relative. 1012 INSTALL="$ac_install_sh" 1013 fi 1014fi 1015echo "$ac_t""$INSTALL" 1>&6 1016 1017# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1018# It thinks the first close brace ends the variable substitution. 1019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1020 1021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1022 1023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1024 1025echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1026echo "configure:1027: checking whether ${MAKE-make} sets \${MAKE}" >&5 1027set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1028if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1029 echo $ac_n "(cached) $ac_c" 1>&6 1030else 1031 cat > conftestmake <<\EOF 1032all: 1033 @echo 'ac_maketemp="${MAKE}"' 1034EOF 1035# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1036eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1037if test -n "$ac_maketemp"; then 1038 eval ac_cv_prog_make_${ac_make}_set=yes 1039else 1040 eval ac_cv_prog_make_${ac_make}_set=no 1041fi 1042rm -f conftestmake 1043fi 1044if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1045 echo "$ac_t""yes" 1>&6 1046 SET_MAKE= 1047else 1048 echo "$ac_t""no" 1>&6 1049 SET_MAKE="MAKE=${MAKE-make}" 1050fi 1051 1052 1053 1054# Make sure we can run config.sub. 1055if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 1056else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 1057fi 1058 1059echo $ac_n "checking host system type""... $ac_c" 1>&6 1060echo "configure:1061: checking host system type" >&5 1061 1062host_alias=$host 1063case "$host_alias" in 1064NONE) 1065 case $nonopt in 1066 NONE) 1067 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 1068 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 1069 fi ;; 1070 *) host_alias=$nonopt ;; 1071 esac ;; 1072esac 1073 1074host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 1075host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1076host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1077host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1078echo "$ac_t""$host" 1>&6 1079 1080case $host in 1081*netbsd*) 1082 CFLAGS="-Wl,-R/usr/pkg/lib $CFLAGS" ;; 1083esac 1084 1085 1086OPTFLAG="-O -DYIPS_DEBUG" 1087echo $ac_n "checking if --enable-debug option is specified""... $ac_c" 1>&6 1088echo "configure:1089: checking if --enable-debug option is specified" >&5 1089# Check whether --enable-debug or --disable-debug was given. 1090if test "${enable_debug+set}" = set; then 1091 enableval="$enable_debug" 1092 OPTFLAG="-g $OPTFLAG"; enable_debug=yes 1093else 1094 enable_debug=no 1095fi 1096 1097echo "$ac_t""$enable_debug" 1>&6 1098 1099 1100echo $ac_n "checking if --enable-debugrm option is specified""... $ac_c" 1>&6 1101echo "configure:1102: checking if --enable-debugrm option is specified" >&5 1102# Check whether --enable-debugrm or --disable-debugrm was given. 1103if test "${enable_debugrm+set}" = set; then 1104 enableval="$enable_debugrm" 1105 OPTFLAG="-DDEBUG_RECORD_MALLOCATION $OPTFLAG"; enable_debugrm=yes 1106else 1107 enable_debugrm=no 1108fi 1109 1110if test "$enable_debugrm" != "no"; then 1111 DEBUGRMOBJS="debugrm.o" 1112fi 1113echo "$ac_t""$enable_debugrm" 1>&6 1114 1115echo $ac_n "checking if --enable-yydebug option is specified""... $ac_c" 1>&6 1116echo "configure:1117: checking if --enable-yydebug option is specified" >&5 1117# Check whether --enable-yydebug or --disable-yydebug was given. 1118if test "${enable_yydebug+set}" = set; then 1119 enableval="$enable_yydebug" 1120 cat >> confdefs.h <<\EOF 1121#define YYDEBUG 1 1122EOF 1123 1124 enable_yydebug=yes 1125else 1126 enable_yydebug=no 1127fi 1128 1129echo "$ac_t""$enable_yydebug" 1>&6 1130 1131OPTFLAG="-Wall -Wmissing-prototypes -Wmissing-declarations $OPTFLAG" 1132echo $ac_n "checking if --enable-pedant option is specified""... $ac_c" 1>&6 1133echo "configure:1134: checking if --enable-pedant option is specified" >&5 1134# Check whether --enable-pedant or --disable-pedant was given. 1135if test "${enable_pedant+set}" = set; then 1136 enableval="$enable_pedant" 1137 OPTFLAG="-Werror $OPTFLAG"; enable_pedant=yes 1138else 1139 enable_pedant=no 1140fi 1141 1142echo "$ac_t""$enable_pedant" 1>&6 1143 1144echo $ac_n "checking if --enable-adminport option is specified""... $ac_c" 1>&6 1145echo "configure:1146: checking if --enable-adminport option is specified" >&5 1146# Check whether --enable-adminport or --disable-adminport was given. 1147if test "${enable_adminport+set}" = set; then 1148 enableval="$enable_adminport" 1149 : 1150else 1151 enable_adminport=no 1152fi 1153 1154if test $enable_adminport = "yes"; then 1155 cat >> confdefs.h <<\EOF 1156#define ENABLE_ADMINPORT 1 1157EOF 1158 1159fi 1160echo "$ac_t""$enable_adminport" 1>&6 1161 1162echo $ac_n "checking if --enable-rc5 option is specified""... $ac_c" 1>&6 1163echo "configure:1164: checking if --enable-rc5 option is specified" >&5 1164# Check whether --enable-rc5 or --disable-rc5 was given. 1165if test "${enable_rc5+set}" = set; then 1166 enableval="$enable_rc5" 1167 : 1168else 1169 enable_rc5=no 1170fi 1171 1172echo "$ac_t""$enable_rc5" 1>&6 1173 1174echo $ac_n "checking if --enable-idea option is specified""... $ac_c" 1>&6 1175echo "configure:1176: checking if --enable-idea option is specified" >&5 1176# Check whether --enable-idea or --disable-idea was given. 1177if test "${enable_idea+set}" = set; then 1178 enableval="$enable_idea" 1179 : 1180else 1181 enable_idea=no 1182fi 1183 1184echo "$ac_t""$enable_idea" 1>&6 1185 1186echo $ac_n "checking if --enable-gssapi option is specified""... $ac_c" 1>&6 1187echo "configure:1188: checking if --enable-gssapi option is specified" >&5 1188# Check whether --enable-rc5 or --disable-rc5 was given. 1189if test "${enable_rc5+set}" = set; then 1190 enableval="$enable_rc5" 1191 : 1192else 1193 enable_gssapi=no 1194fi 1195 1196if test "x$enable_gssapi" = "xyes"; then 1197 cat >> confdefs.h <<\EOF 1198#define HAVE_GSSAPI 1 1199EOF 1200 1201fi 1202echo "$ac_t""$enable_gssapi" 1>&6 1203 1204echo $ac_n "checking if --enable-stats option is specified""... $ac_c" 1>&6 1205echo "configure:1206: checking if --enable-stats option is specified" >&5 1206# Check whether --enable-stats or --disable-stats was given. 1207if test "${enable_stats+set}" = set; then 1208 enableval="$enable_stats" 1209 : 1210else 1211 enable_stats=no 1212fi 1213 1214if test "x$enable_stats" = "xyes"; then 1215 cat >> confdefs.h <<\EOF 1216#define ENABLE_STATS 1 1217EOF 1218 1219fi 1220echo "$ac_t""$enable_stats" 1>&6 1221 1222echo $ac_n "checking if --enable-samode-unspec option is specified""... $ac_c" 1>&6 1223echo "configure:1224: checking if --enable-samode-unspec option is specified" >&5 1224# Check whether --enable-samode-unspec or --disable-samode-unspec was given. 1225if test "${enable_samode_unspec+set}" = set; then 1226 enableval="$enable_samode_unspec" 1227 : 1228else 1229 enable_samode_unspec=no 1230fi 1231 1232if test "x$enable_samode_unspec" = "xyes"; then 1233 cat >> confdefs.h <<\EOF 1234#define ENABLE_SAMODE_UNSPECIFIED 1 1235EOF 1236 1237fi 1238echo "$ac_t""$enable_samode_unspec" 1>&6 1239 1240efence_dir= 1241echo $ac_n "checking if --with-efence option is specified""... $ac_c" 1>&6 1242echo "configure:1243: checking if --with-efence option is specified" >&5 1243# Check whether --with-efence or --without-efence was given. 1244if test "${with_efence+set}" = set; then 1245 withval="$with_efence" 1246 efence_dir=$withval 1247else 1248 efence_dir=no 1249fi 1250 1251echo "$ac_t""${efence_dir}" 1>&6 1252if test "$efence_dir" != "no"; then 1253 if test "x$efence_dir" = "x"; then 1254 1255echo $ac_n "checking for efence containing EF_Print""... $ac_c" 1>&6 1256echo "configure:1257: checking for efence containing EF_Print" >&5 1257if eval "test \"`echo '$''{'ac_cv_search_EF_Print'+set}'`\" = set"; then 1258 echo $ac_n "(cached) $ac_c" 1>&6 1259else 1260 ac_func_search_save_LIBS="$LIBS" 1261ac_cv_search_EF_Print="no" 1262cat > conftest.$ac_ext <<EOF 1263#line 1264 "configure" 1264#include "confdefs.h" 1265/* Override any gcc2 internal prototype to avoid an error. */ 1266/* We use char because int might match the return type of a gcc2 1267 builtin and then its argument prototype would still apply. */ 1268char EF_Print(); 1269 1270int main() { 1271EF_Print() 1272; return 0; } 1273EOF 1274if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1275 rm -rf conftest* 1276 ac_cv_search_EF_Print="none required" 1277else 1278 echo "configure: failed program was:" >&5 1279 cat conftest.$ac_ext >&5 1280 rm -rf conftest* 1281 LIBS="-lefence $LIBS" 1282 cat > conftest.$ac_ext <<EOF 1283#line 1284 "configure" 1284#include "confdefs.h" 1285/* Override any gcc2 internal prototype to avoid an error. */ 1286/* We use char because int might match the return type of a gcc2 1287 builtin and then its argument prototype would still apply. */ 1288char EF_Print(); 1289 1290int main() { 1291EF_Print() 1292; return 0; } 1293EOF 1294if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1295 rm -rf conftest* 1296 ac_cv_search_EF_Print="-lefence" 1297else 1298 echo "configure: failed program was:" >&5 1299 cat conftest.$ac_ext >&5 1300fi 1301rm -f conftest* 1302fi 1303rm -f conftest* 1304LIBS="$ac_func_search_save_LIBS" 1305test "$ac_cv_search_EF_Print" = "no" && for i in ''; do 1306LIBS="-L$i -lefence $ac_func_search_save_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 EF_Print(); 1314 1315int main() { 1316EF_Print() 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 ac_cv_search_EF_Print="-L$i -lefence" 1322break 1323else 1324 echo "configure: failed program was:" >&5 1325 cat conftest.$ac_ext >&5 1326fi 1327rm -f conftest* 1328done 1329LIBS="$ac_func_search_save_LIBS" 1330fi 1331 1332echo "$ac_t""$ac_cv_search_EF_Print" 1>&6 1333if test "$ac_cv_search_EF_Print" != "no"; then 1334 test "$ac_cv_search_EF_Print" = "none required" || LIBS="$ac_cv_search_EF_Print $LIBS" 1335 1336else : 1337 1338fi 1339 else 1340 1341echo $ac_n "checking for efence containing EF_Print""... $ac_c" 1>&6 1342echo "configure:1343: checking for efence containing EF_Print" >&5 1343if eval "test \"`echo '$''{'ac_cv_search_EF_Print'+set}'`\" = set"; then 1344 echo $ac_n "(cached) $ac_c" 1>&6 1345else 1346 ac_func_search_save_LIBS="$LIBS" 1347ac_cv_search_EF_Print="no" 1348cat > conftest.$ac_ext <<EOF 1349#line 1350 "configure" 1350#include "confdefs.h" 1351/* Override any gcc2 internal prototype to avoid an error. */ 1352/* We use char because int might match the return type of a gcc2 1353 builtin and then its argument prototype would still apply. */ 1354char EF_Print(); 1355 1356int main() { 1357EF_Print() 1358; return 0; } 1359EOF 1360if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1361 rm -rf conftest* 1362 ac_cv_search_EF_Print="none required" 1363else 1364 echo "configure: failed program was:" >&5 1365 cat conftest.$ac_ext >&5 1366 rm -rf conftest* 1367 LIBS="-lefence $LIBS" 1368 cat > conftest.$ac_ext <<EOF 1369#line 1370 "configure" 1370#include "confdefs.h" 1371/* Override any gcc2 internal prototype to avoid an error. */ 1372/* We use char because int might match the return type of a gcc2 1373 builtin and then its argument prototype would still apply. */ 1374char EF_Print(); 1375 1376int main() { 1377EF_Print() 1378; return 0; } 1379EOF 1380if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1381 rm -rf conftest* 1382 ac_cv_search_EF_Print="-lefence" 1383else 1384 echo "configure: failed program was:" >&5 1385 cat conftest.$ac_ext >&5 1386fi 1387rm -f conftest* 1388fi 1389rm -f conftest* 1390LIBS="$ac_func_search_save_LIBS" 1391test "$ac_cv_search_EF_Print" = "no" && for i in $efence_dir; do 1392LIBS="-L$i -lefence $ac_func_search_save_LIBS" 1393cat > conftest.$ac_ext <<EOF 1394#line 1395 "configure" 1395#include "confdefs.h" 1396/* Override any gcc2 internal prototype to avoid an error. */ 1397/* We use char because int might match the return type of a gcc2 1398 builtin and then its argument prototype would still apply. */ 1399char EF_Print(); 1400 1401int main() { 1402EF_Print() 1403; return 0; } 1404EOF 1405if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1406 rm -rf conftest* 1407 ac_cv_search_EF_Print="-L$i -lefence" 1408break 1409else 1410 echo "configure: failed program was:" >&5 1411 cat conftest.$ac_ext >&5 1412fi 1413rm -f conftest* 1414done 1415LIBS="$ac_func_search_save_LIBS" 1416fi 1417 1418echo "$ac_t""$ac_cv_search_EF_Print" 1>&6 1419if test "$ac_cv_search_EF_Print" != "no"; then 1420 test "$ac_cv_search_EF_Print" = "none required" || LIBS="$ac_cv_search_EF_Print $LIBS" 1421 1422else : 1423 1424fi 1425 fi 1426fi 1427 1428gc_dir= 1429echo $ac_n "checking if --with-gc option is specified""... $ac_c" 1>&6 1430echo "configure:1431: checking if --with-gc option is specified" >&5 1431# Check whether --with-gc or --without-gc was given. 1432if test "${with_gc+set}" = set; then 1433 withval="$with_gc" 1434 gc_dir=$withval 1435else 1436 gc_dir=no 1437fi 1438 1439echo "$ac_t""${gc_dir}" 1>&6 1440if test "$gc_dir" != "no"; then 1441 cat >> confdefs.h <<\EOF 1442#define GC 1 1443EOF 1444 1445 if test "x$gc_dir" = "x"; then 1446 1447echo $ac_n "checking for leak containing GC_malloc""... $ac_c" 1>&6 1448echo "configure:1449: checking for leak containing GC_malloc" >&5 1449if eval "test \"`echo '$''{'ac_cv_search_GC_malloc'+set}'`\" = set"; then 1450 echo $ac_n "(cached) $ac_c" 1>&6 1451else 1452 ac_func_search_save_LIBS="$LIBS" 1453ac_cv_search_GC_malloc="no" 1454cat > conftest.$ac_ext <<EOF 1455#line 1456 "configure" 1456#include "confdefs.h" 1457/* Override any gcc2 internal prototype to avoid an error. */ 1458/* We use char because int might match the return type of a gcc2 1459 builtin and then its argument prototype would still apply. */ 1460char GC_malloc(); 1461 1462int main() { 1463GC_malloc() 1464; return 0; } 1465EOF 1466if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1467 rm -rf conftest* 1468 ac_cv_search_GC_malloc="none required" 1469else 1470 echo "configure: failed program was:" >&5 1471 cat conftest.$ac_ext >&5 1472 rm -rf conftest* 1473 LIBS="-lleak $LIBS" 1474 cat > conftest.$ac_ext <<EOF 1475#line 1476 "configure" 1476#include "confdefs.h" 1477/* Override any gcc2 internal prototype to avoid an error. */ 1478/* We use char because int might match the return type of a gcc2 1479 builtin and then its argument prototype would still apply. */ 1480char GC_malloc(); 1481 1482int main() { 1483GC_malloc() 1484; return 0; } 1485EOF 1486if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1487 rm -rf conftest* 1488 ac_cv_search_GC_malloc="-lleak" 1489else 1490 echo "configure: failed program was:" >&5 1491 cat conftest.$ac_ext >&5 1492fi 1493rm -f conftest* 1494fi 1495rm -f conftest* 1496LIBS="$ac_func_search_save_LIBS" 1497test "$ac_cv_search_GC_malloc" = "no" && for i in ''; do 1498LIBS="-L$i -lleak $ac_func_search_save_LIBS" 1499cat > conftest.$ac_ext <<EOF 1500#line 1501 "configure" 1501#include "confdefs.h" 1502/* Override any gcc2 internal prototype to avoid an error. */ 1503/* We use char because int might match the return type of a gcc2 1504 builtin and then its argument prototype would still apply. */ 1505char GC_malloc(); 1506 1507int main() { 1508GC_malloc() 1509; return 0; } 1510EOF 1511if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1512 rm -rf conftest* 1513 ac_cv_search_GC_malloc="-L$i -lleak" 1514break 1515else 1516 echo "configure: failed program was:" >&5 1517 cat conftest.$ac_ext >&5 1518fi 1519rm -f conftest* 1520done 1521LIBS="$ac_func_search_save_LIBS" 1522fi 1523 1524echo "$ac_t""$ac_cv_search_GC_malloc" 1>&6 1525if test "$ac_cv_search_GC_malloc" != "no"; then 1526 test "$ac_cv_search_GC_malloc" = "none required" || LIBS="$ac_cv_search_GC_malloc $LIBS" 1527 1528else : 1529 1530fi 1531 else 1532 1533echo $ac_n "checking for leak containing GC_malloc""... $ac_c" 1>&6 1534echo "configure:1535: checking for leak containing GC_malloc" >&5 1535if eval "test \"`echo '$''{'ac_cv_search_GC_malloc'+set}'`\" = set"; then 1536 echo $ac_n "(cached) $ac_c" 1>&6 1537else 1538 ac_func_search_save_LIBS="$LIBS" 1539ac_cv_search_GC_malloc="no" 1540cat > conftest.$ac_ext <<EOF 1541#line 1542 "configure" 1542#include "confdefs.h" 1543/* Override any gcc2 internal prototype to avoid an error. */ 1544/* We use char because int might match the return type of a gcc2 1545 builtin and then its argument prototype would still apply. */ 1546char GC_malloc(); 1547 1548int main() { 1549GC_malloc() 1550; return 0; } 1551EOF 1552if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1553 rm -rf conftest* 1554 ac_cv_search_GC_malloc="none required" 1555else 1556 echo "configure: failed program was:" >&5 1557 cat conftest.$ac_ext >&5 1558 rm -rf conftest* 1559 LIBS="-lleak $LIBS" 1560 cat > conftest.$ac_ext <<EOF 1561#line 1562 "configure" 1562#include "confdefs.h" 1563/* Override any gcc2 internal prototype to avoid an error. */ 1564/* We use char because int might match the return type of a gcc2 1565 builtin and then its argument prototype would still apply. */ 1566char GC_malloc(); 1567 1568int main() { 1569GC_malloc() 1570; return 0; } 1571EOF 1572if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1573 rm -rf conftest* 1574 ac_cv_search_GC_malloc="-lleak" 1575else 1576 echo "configure: failed program was:" >&5 1577 cat conftest.$ac_ext >&5 1578fi 1579rm -f conftest* 1580fi 1581rm -f conftest* 1582LIBS="$ac_func_search_save_LIBS" 1583test "$ac_cv_search_GC_malloc" = "no" && for i in $gc_dir; do 1584LIBS="-L$i -lleak $ac_func_search_save_LIBS" 1585cat > conftest.$ac_ext <<EOF 1586#line 1587 "configure" 1587#include "confdefs.h" 1588/* Override any gcc2 internal prototype to avoid an error. */ 1589/* We use char because int might match the return type of a gcc2 1590 builtin and then its argument prototype would still apply. */ 1591char GC_malloc(); 1592 1593int main() { 1594GC_malloc() 1595; return 0; } 1596EOF 1597if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1598 rm -rf conftest* 1599 ac_cv_search_GC_malloc="-L$i -lleak" 1600break 1601else 1602 echo "configure: failed program was:" >&5 1603 cat conftest.$ac_ext >&5 1604fi 1605rm -f conftest* 1606done 1607LIBS="$ac_func_search_save_LIBS" 1608fi 1609 1610echo "$ac_t""$ac_cv_search_GC_malloc" 1>&6 1611if test "$ac_cv_search_GC_malloc" != "no"; then 1612 test "$ac_cv_search_GC_malloc" = "none required" || LIBS="$ac_cv_search_GC_malloc $LIBS" 1613 1614else : 1615 1616fi 1617 fi 1618fi 1619 1620dmalloc_dir= 1621echo $ac_n "checking if --with-dmalloc option is specified""... $ac_c" 1>&6 1622echo "configure:1623: checking if --with-dmalloc option is specified" >&5 1623# Check whether --with-dmalloc or --without-dmalloc was given. 1624if test "${with_dmalloc+set}" = set; then 1625 withval="$with_dmalloc" 1626 dmalloc_dir=$withval 1627else 1628 dmalloc_dir=no 1629fi 1630 1631echo "$ac_t""${dmalloc_dir}" 1>&6 1632if test "$dmalloc_dir" != "no"; then 1633 cat >> confdefs.h <<\EOF 1634#define DMALLOC 1 1635EOF 1636 1637 if test "x$dmalloc_dir" = "x"; then 1638 1639echo $ac_n "checking for dmalloc containing dmalloc_log_unfreed""... $ac_c" 1>&6 1640echo "configure:1641: checking for dmalloc containing dmalloc_log_unfreed" >&5 1641if eval "test \"`echo '$''{'ac_cv_search_dmalloc_log_unfreed'+set}'`\" = set"; then 1642 echo $ac_n "(cached) $ac_c" 1>&6 1643else 1644 ac_func_search_save_LIBS="$LIBS" 1645ac_cv_search_dmalloc_log_unfreed="no" 1646cat > conftest.$ac_ext <<EOF 1647#line 1648 "configure" 1648#include "confdefs.h" 1649/* Override any gcc2 internal prototype to avoid an error. */ 1650/* We use char because int might match the return type of a gcc2 1651 builtin and then its argument prototype would still apply. */ 1652char dmalloc_log_unfreed(); 1653 1654int main() { 1655dmalloc_log_unfreed() 1656; return 0; } 1657EOF 1658if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1659 rm -rf conftest* 1660 ac_cv_search_dmalloc_log_unfreed="none required" 1661else 1662 echo "configure: failed program was:" >&5 1663 cat conftest.$ac_ext >&5 1664 rm -rf conftest* 1665 LIBS="-ldmalloc $LIBS" 1666 cat > conftest.$ac_ext <<EOF 1667#line 1668 "configure" 1668#include "confdefs.h" 1669/* Override any gcc2 internal prototype to avoid an error. */ 1670/* We use char because int might match the return type of a gcc2 1671 builtin and then its argument prototype would still apply. */ 1672char dmalloc_log_unfreed(); 1673 1674int main() { 1675dmalloc_log_unfreed() 1676; return 0; } 1677EOF 1678if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1679 rm -rf conftest* 1680 ac_cv_search_dmalloc_log_unfreed="-ldmalloc" 1681else 1682 echo "configure: failed program was:" >&5 1683 cat conftest.$ac_ext >&5 1684fi 1685rm -f conftest* 1686fi 1687rm -f conftest* 1688LIBS="$ac_func_search_save_LIBS" 1689test "$ac_cv_search_dmalloc_log_unfreed" = "no" && for i in ''; do 1690LIBS="-L$i -ldmalloc $ac_func_search_save_LIBS" 1691cat > conftest.$ac_ext <<EOF 1692#line 1693 "configure" 1693#include "confdefs.h" 1694/* Override any gcc2 internal prototype to avoid an error. */ 1695/* We use char because int might match the return type of a gcc2 1696 builtin and then its argument prototype would still apply. */ 1697char dmalloc_log_unfreed(); 1698 1699int main() { 1700dmalloc_log_unfreed() 1701; return 0; } 1702EOF 1703if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1704 rm -rf conftest* 1705 ac_cv_search_dmalloc_log_unfreed="-L$i -ldmalloc" 1706break 1707else 1708 echo "configure: failed program was:" >&5 1709 cat conftest.$ac_ext >&5 1710fi 1711rm -f conftest* 1712done 1713LIBS="$ac_func_search_save_LIBS" 1714fi 1715 1716echo "$ac_t""$ac_cv_search_dmalloc_log_unfreed" 1>&6 1717if test "$ac_cv_search_dmalloc_log_unfreed" != "no"; then 1718 test "$ac_cv_search_dmalloc_log_unfreed" = "none required" || LIBS="$ac_cv_search_dmalloc_log_unfreed $LIBS" 1719 1720else : 1721 1722fi 1723 else 1724 1725echo $ac_n "checking for dmalloc containing dmalloc_log_unfreed""... $ac_c" 1>&6 1726echo "configure:1727: checking for dmalloc containing dmalloc_log_unfreed" >&5 1727if eval "test \"`echo '$''{'ac_cv_search_dmalloc_log_unfreed'+set}'`\" = set"; then 1728 echo $ac_n "(cached) $ac_c" 1>&6 1729else 1730 ac_func_search_save_LIBS="$LIBS" 1731ac_cv_search_dmalloc_log_unfreed="no" 1732cat > conftest.$ac_ext <<EOF 1733#line 1734 "configure" 1734#include "confdefs.h" 1735/* Override any gcc2 internal prototype to avoid an error. */ 1736/* We use char because int might match the return type of a gcc2 1737 builtin and then its argument prototype would still apply. */ 1738char dmalloc_log_unfreed(); 1739 1740int main() { 1741dmalloc_log_unfreed() 1742; return 0; } 1743EOF 1744if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1745 rm -rf conftest* 1746 ac_cv_search_dmalloc_log_unfreed="none required" 1747else 1748 echo "configure: failed program was:" >&5 1749 cat conftest.$ac_ext >&5 1750 rm -rf conftest* 1751 LIBS="-ldmalloc $LIBS" 1752 cat > conftest.$ac_ext <<EOF 1753#line 1754 "configure" 1754#include "confdefs.h" 1755/* Override any gcc2 internal prototype to avoid an error. */ 1756/* We use char because int might match the return type of a gcc2 1757 builtin and then its argument prototype would still apply. */ 1758char dmalloc_log_unfreed(); 1759 1760int main() { 1761dmalloc_log_unfreed() 1762; return 0; } 1763EOF 1764if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1765 rm -rf conftest* 1766 ac_cv_search_dmalloc_log_unfreed="-ldmalloc" 1767else 1768 echo "configure: failed program was:" >&5 1769 cat conftest.$ac_ext >&5 1770fi 1771rm -f conftest* 1772fi 1773rm -f conftest* 1774LIBS="$ac_func_search_save_LIBS" 1775test "$ac_cv_search_dmalloc_log_unfreed" = "no" && for i in $dmalloc_dir; do 1776LIBS="-L$i -ldmalloc $ac_func_search_save_LIBS" 1777cat > conftest.$ac_ext <<EOF 1778#line 1779 "configure" 1779#include "confdefs.h" 1780/* Override any gcc2 internal prototype to avoid an error. */ 1781/* We use char because int might match the return type of a gcc2 1782 builtin and then its argument prototype would still apply. */ 1783char dmalloc_log_unfreed(); 1784 1785int main() { 1786dmalloc_log_unfreed() 1787; return 0; } 1788EOF 1789if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1790 rm -rf conftest* 1791 ac_cv_search_dmalloc_log_unfreed="-L$i -ldmalloc" 1792break 1793else 1794 echo "configure: failed program was:" >&5 1795 cat conftest.$ac_ext >&5 1796fi 1797rm -f conftest* 1798done 1799LIBS="$ac_func_search_save_LIBS" 1800fi 1801 1802echo "$ac_t""$ac_cv_search_dmalloc_log_unfreed" 1>&6 1803if test "$ac_cv_search_dmalloc_log_unfreed" != "no"; then 1804 test "$ac_cv_search_dmalloc_log_unfreed" = "none required" || LIBS="$ac_cv_search_dmalloc_log_unfreed $LIBS" 1805 1806else : 1807 1808fi 1809 fi 1810fi 1811 1812echo $ac_n "checking if you have KAME tcpdump in $srcdir/../tcpdump""... $ac_c" 1>&6 1813echo "configure:1814: checking if you have KAME tcpdump in $srcdir/../tcpdump" >&5 1814if test -f "$srcdir/../tcpdump/print-isakmp.c"; then 1815 LIBOBJS="$LIBOBJS print-isakmp.o" 1816 cat >> confdefs.h <<\EOF 1817#define HAVE_PRINT_ISAKMP_C 1 1818EOF 1819 1820 echo "$ac_t""yes" 1>&6 1821else 1822 echo "$ac_t""no" 1>&6 1823fi 1824 1825echo $ac_n "checking if __FUNCTION__ is available""... $ac_c" 1>&6 1826echo "configure:1827: checking if __FUNCTION__ is available" >&5 1827cat > conftest.$ac_ext <<EOF 1828#line 1829 "configure" 1829#include "confdefs.h" 1830#include <stdio.h> 1831 1832int main() { 1833char *x = __FUNCTION__; 1834; return 0; } 1835EOF 1836if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1837 rm -rf conftest* 1838 cat >> confdefs.h <<\EOF 1839#define HAVE_FUNCTION_MACRO 1 1840EOF 1841 1842 echo "$ac_t""yes" 1>&6 1843else 1844 echo "configure: failed program was:" >&5 1845 cat conftest.$ac_ext >&5 1846 rm -rf conftest* 1847 echo "$ac_t""no" 1>&6 1848fi 1849rm -f conftest* 1850 1851echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 1852echo "configure:1853: checking whether to enable ipv6" >&5 1853# Check whether --enable-ipv6 or --disable-ipv6 was given. 1854if test "${enable_ipv6+set}" = set; then 1855 enableval="$enable_ipv6" 1856 case "$enableval" in 1857 no) 1858 echo "$ac_t""no" 1>&6 1859 ipv6=no 1860 ;; 1861 *) echo "$ac_t""yes" 1>&6 1862 cat >> confdefs.h <<\EOF 1863#define INET6 1 1864EOF 1865 1866 ipv6=yes 1867 ;; 1868 esac 1869else 1870 if test "$cross_compiling" = yes; then 1871 echo "$ac_t""no" 1>&6 1872 ipv6=no 1873 1874else 1875 cat > conftest.$ac_ext <<EOF 1876#line 1877 "configure" 1877#include "confdefs.h" 1878 /* AF_INET6 avalable check */ 1879#include <sys/types.h> 1880#include <sys/socket.h> 1881main() 1882{ 1883 exit(0); 1884 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 1885 exit(1); 1886 else 1887 exit(0); 1888} 1889 1890EOF 1891if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1892then 1893 echo "$ac_t""yes" 1>&6 1894 cat >> confdefs.h <<\EOF 1895#define ENABLE_IPV6 1 1896EOF 1897 1898 ipv6=yes 1899else 1900 echo "configure: failed program was:" >&5 1901 cat conftest.$ac_ext >&5 1902 rm -fr conftest* 1903 echo "$ac_t""no" 1>&6 1904 ipv6=no 1905fi 1906rm -fr conftest* 1907fi 1908 1909fi 1910 1911 1912ipv6type=unknown 1913ipv6lib=none 1914ipv6libdir=none 1915 1916if test "$ipv6" = "yes"; then 1917 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 1918echo "configure:1919: checking ipv6 stack type" >&5 1919 for i in inria kame linux toshiba v6d zeta; do 1920 ipv6trylibc=no 1921 case $i in 1922 inria) 1923 cat > conftest.$ac_ext <<EOF 1924#line 1925 "configure" 1925#include "confdefs.h" 1926dnl 1927#include <netinet/in.h> 1928#ifdef IPV6_INRIA_VERSION 1929yes 1930#endif 1931EOF 1932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1933 egrep "yes" >/dev/null 2>&1; then 1934 rm -rf conftest* 1935 ipv6type=$i; 1936 ipv6lib=inet6; 1937 ipv6libdir=/usr/lib; 1938 ipv6trylibc=yes 1939 CPPFLAGS="-DINET6 $CPPFLAGS" 1940fi 1941rm -f conftest* 1942 1943 ;; 1944 kame) 1945 cat > conftest.$ac_ext <<EOF 1946#line 1947 "configure" 1947#include "confdefs.h" 1948dnl 1949#include <netinet/in.h> 1950#ifdef __KAME__ 1951yes 1952#endif 1953EOF 1954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1955 egrep "yes" >/dev/null 2>&1; then 1956 rm -rf conftest* 1957 ipv6type=$i; 1958 ipv6lib=inet6; 1959 ipv6libdir=/usr/local/v6/lib; 1960 ipv6trylibc=yes 1961 CPPFLAGS="-DINET6 $CPPFLAGS" 1962fi 1963rm -f conftest* 1964 1965 ;; 1966 linux) 1967 if test -d /usr/inet6; then 1968 ipv6type=$i 1969 ipv6lib=inet6 1970 ipv6libdir=/usr/inet6/lib 1971 CPPFLAGS="-DINET6 -I/usr/inet6/include $CPPFLAGS" 1972 else 1973 ipv6type=$i 1974 ipv6trylibc=yes 1975 LIBS="$LIBS -lresolv" 1976 CPPFLAGS="-DINET6 -DIPV6_INRIA_VERSION -I../include-glibc -include ../include-glibc/glibc-bugs.h $CPPFLAGS" 1977 fi 1978 ;; 1979 toshiba) 1980 cat > conftest.$ac_ext <<EOF 1981#line 1977 "configure" 1982#include "confdefs.h" 1983dnl 1984#include <sys/param.h> 1985#ifdef _TOSHIBA_INET6 1986yes 1987#endif 1988EOF 1989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1990 egrep "yes" >/dev/null 2>&1; then 1991 rm -rf conftest* 1992 ipv6type=$i; 1993 ipv6lib=inet6; 1994 ipv6libdir=/usr/local/v6/lib; 1995 CPPFLAGS="-DINET6 $CPPFLAGS" 1996fi 1997rm -f conftest* 1998 1999 ;; 2000 v6d) 2001 cat > conftest.$ac_ext <<EOF 2002#line 1998 "configure" 2003#include "confdefs.h" 2004dnl 2005#include </usr/local/v6/include/sys/v6config.h> 2006#ifdef __V6D__ 2007yes 2008#endif 2009EOF 2010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2011 egrep "yes" >/dev/null 2>&1; then 2012 rm -rf conftest* 2013 ipv6type=$i; 2014 ipv6lib=v6; 2015 ipv6libdir=/usr/local/v6/lib; 2016 CPPFLAGS="-I/usr/local/v6/include $CPPFLAGS" 2017fi 2018rm -f conftest* 2019 2020 ;; 2021 zeta) 2022 cat > conftest.$ac_ext <<EOF 2023#line 2019 "configure" 2024#include "confdefs.h" 2025dnl 2026#include <sys/param.h> 2027#ifdef _ZETA_MINAMI_INET6 2028yes 2029#endif 2030EOF 2031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2032 egrep "yes" >/dev/null 2>&1; then 2033 rm -rf conftest* 2034 ipv6type=$i; 2035 ipv6lib=inet6; 2036 ipv6libdir=/usr/local/v6/lib; 2037 CPPFLAGS="-DINET6 $CPPFLAGS" 2038fi 2039rm -f conftest* 2040 2041 ;; 2042 esac 2043 if test "$ipv6type" != "unknown"; then 2044 break 2045 fi 2046 done 2047 echo "$ac_t""$ipv6type" 1>&6 2048fi 2049 2050if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 2051 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 2052 echo "using lib$ipv6lib for getaddrinfo" 2053 LIBS="$LIBS -L$ipv6libdir -l$ipv6lib" 2054 else 2055 if test "$ipv6trylibc" = "yes"; then 2056 echo 'using libc for getaddrinfo' 2057 else 2058 echo "Fatal: no $ipv6lib library found. " 2059 echo "cannot continue. You need to fetch lib$ipv6lib.a " 2060 echo "from appropriate ipv6 kit and compile beforehand." 2061 exit 1 2062 fi 2063 fi 2064fi 2065 2066if test "$ipv6" = "yes"; then 2067 echo $ac_n "checking for advanced API support""... $ac_c" 1>&6 2068echo "configure:2064: checking for advanced API support" >&5 2069 if eval "test \"`echo '$''{'racoon_cv_advapi'+set}'`\" = set"; then 2070 echo $ac_n "(cached) $ac_c" 1>&6 2071else 2072 cat > conftest.$ac_ext <<EOF 2073#line 2069 "configure" 2074#include "confdefs.h" 2075#ifndef INET6 2076#define INET6 2077#endif 2078#include <sys/types.h> 2079#include <netinet/in.h> 2080int main() { 2081struct in6_pktinfo a; 2082; return 0; } 2083EOF 2084if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2085 rm -rf conftest* 2086 racoon_cv_advapi="yes" 2087else 2088 echo "configure: failed program was:" >&5 2089 cat conftest.$ac_ext >&5 2090 rm -rf conftest* 2091 racoon_cv_advapi="no" 2092fi 2093rm -f conftest* 2094fi 2095 2096 echo "$ac_t""$racoon_cv_advapi" 1>&6 2097 if test "$racoon_cv_advapi" = yes; then 2098 cat >> confdefs.h <<\EOF 2099#define ADVAPI 1 2100EOF 2101 2102 fi 2103fi 2104 2105echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 2106echo "configure:2102: checking getaddrinfo bug" >&5 2107if test "$cross_compiling" = yes; then 2108 echo "$ac_t""buggy" 1>&6 2109buggygetaddrinfo=yes 2110else 2111 cat > conftest.$ac_ext <<EOF 2112#line 2108 "configure" 2113#include "confdefs.h" 2114 2115#include <sys/types.h> 2116#include <sys/socket.h> 2117#include <netdb.h> 2118#include <string.h> 2119#include <netinet/in.h> 2120 2121main() 2122{ 2123 int passive, gaierr, inet4 = 0, inet6 = 0; 2124 struct addrinfo hints, *ai, *aitop; 2125 char straddr[INET6_ADDRSTRLEN], strport[16]; 2126 2127 for (passive = 0; passive <= 1; passive++) { 2128 memset(&hints, 0, sizeof(hints)); 2129 hints.ai_family = AF_UNSPEC; 2130 hints.ai_flags = passive ? AI_PASSIVE : 0; 2131 hints.ai_socktype = SOCK_STREAM; 2132 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 2133 (void)gai_strerror(gaierr); 2134 goto bad; 2135 } 2136 for (ai = aitop; ai; ai = ai->ai_next) { 2137 if (ai->ai_addr == NULL || 2138 ai->ai_addrlen == 0 || 2139 getnameinfo(ai->ai_addr, ai->ai_addrlen, 2140 straddr, sizeof(straddr), strport, sizeof(strport), 2141 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 2142 goto bad; 2143 } 2144 switch (ai->ai_family) { 2145 case AF_INET: 2146 if (strcmp(strport, "54321") != 0) { 2147 goto bad; 2148 } 2149 if (passive) { 2150 if (strcmp(straddr, "0.0.0.0") != 0) { 2151 goto bad; 2152 } 2153 } else { 2154 if (strcmp(straddr, "127.0.0.1") != 0) { 2155 goto bad; 2156 } 2157 } 2158 inet4++; 2159 break; 2160 case AF_INET6: 2161 if (strcmp(strport, "54321") != 0) { 2162 goto bad; 2163 } 2164 if (passive) { 2165 if (strcmp(straddr, "::") != 0) { 2166 goto bad; 2167 } 2168 } else { 2169 if (strcmp(straddr, "::1") != 0) { 2170 goto bad; 2171 } 2172 } 2173 inet6++; 2174 break; 2175 case AF_UNSPEC: 2176 goto bad; 2177 break; 2178 default: 2179 /* another family support? */ 2180 break; 2181 } 2182 } 2183 } 2184 2185 if (!(inet4 == 0 || inet4 == 2)) 2186 goto bad; 2187 if (!(inet6 == 0 || inet6 == 2)) 2188 goto bad; 2189 2190 if (aitop) 2191 freeaddrinfo(aitop); 2192 exit(0); 2193 2194 bad: 2195 if (aitop) 2196 freeaddrinfo(aitop); 2197 exit(1); 2198} 2199 2200EOF 2201if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2202then 2203 echo "$ac_t""good" 1>&6 2204buggygetaddrinfo=no 2205else 2206 echo "configure: failed program was:" >&5 2207 cat conftest.$ac_ext >&5 2208 rm -fr conftest* 2209 echo "$ac_t""buggy" 1>&6 2210buggygetaddrinfo=yes 2211fi 2212rm -fr conftest* 2213fi 2214 2215 2216if test "$buggygetaddrinfo" = "yes"; then 2217 if test "$ipv6" = "yes"; then 2218 echo 'Fatal: You must get working getaddrinfo() function.' 2219 echo ' or you can specify "--disable-ipv6"'. 2220 exit 1 2221 else 2222 CPPFLAGS="$CPPFLAGS -I./missing" 2223 fi 2224fi 2225for ac_func in getaddrinfo getnameinfo 2226do 2227echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2228echo "configure:2224: checking for $ac_func" >&5 2229if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2230 echo $ac_n "(cached) $ac_c" 1>&6 2231else 2232 cat > conftest.$ac_ext <<EOF 2233#line 2229 "configure" 2234#include "confdefs.h" 2235/* System header to define __stub macros and hopefully few prototypes, 2236 which can conflict with char $ac_func(); below. */ 2237#include <assert.h> 2238/* Override any gcc2 internal prototype to avoid an error. */ 2239/* We use char because int might match the return type of a gcc2 2240 builtin and then its argument prototype would still apply. */ 2241char $ac_func(); 2242 2243int main() { 2244 2245/* The GNU C library defines this for functions which it implements 2246 to always fail with ENOSYS. Some functions are actually named 2247 something starting with __ and the normal name is an alias. */ 2248#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2249choke me 2250#else 2251$ac_func(); 2252#endif 2253 2254; return 0; } 2255EOF 2256if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2257 rm -rf conftest* 2258 eval "ac_cv_func_$ac_func=yes" 2259else 2260 echo "configure: failed program was:" >&5 2261 cat conftest.$ac_ext >&5 2262 rm -rf conftest* 2263 eval "ac_cv_func_$ac_func=no" 2264fi 2265rm -f conftest* 2266fi 2267 2268if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2269 echo "$ac_t""yes" 1>&6 2270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2271 cat >> confdefs.h <<EOF 2272#define $ac_tr_func 1 2273EOF 2274 2275else 2276 echo "$ac_t""no" 1>&6 2277LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2278fi 2279done 2280 2281 2282 2283echo $ac_n "checking if --with-ssleay option is specified""... $ac_c" 1>&6 2284echo "configure:2280: checking if --with-ssleay option is specified" >&5 2285# Check whether --with-ssleay or --without-ssleay was given. 2286if test "${with_ssleay+set}" = set; then 2287 withval="$with_ssleay" 2288 crypto_dir=$withval 2289fi 2290 2291echo "$ac_t""${crypto_dir-"default"}" 1>&6 2292 2293 2294if test "x$crypto_dir" = "x"; then 2295 case $host_os in 2296 netbsd*) crypto_dir="/usr/pkg";; 2297 freebsd*) 2298 if test -d /usr/local/ssl; then 2299 crypto_dir="/usr/local/ssl" 2300 else 2301 crypto_dir="/usr/local" 2302 fi 2303 ;; 2304 esac 2305else 2306 LIBS="$LIBS -L${crypto_dir}/lib" 2307 CFLAGS="-I${crypto_dir}/include $CFLAGS" 2308fi 2309if test "x$krb5_incdir" = "x"; then 2310 case $host_os in 2311 netbsd*) krb5_incdir="/usr/include/krb5";; 2312 esac 2313fi 2314if test "x$krb5_libs" = "x"; then 2315 case $host_os in 2316 netbsd*) krb5_libs="-lgssapi -lkrb5 -lcom_err -lroken -lasn1";; 2317 esac 2318fi 2319if test "$enable_gssapi" = "yes"; then 2320 LIBS="$LIBS $krb5_libs" 2321 CPPFLAGS="-I$krb5_incdir $CPPFLAGS" 2322fi 2323 2324echo $ac_n "checking for crypto containing CAST_cfb64_encrypt""... $ac_c" 1>&6 2325echo "configure:2321: checking for crypto containing CAST_cfb64_encrypt" >&5 2326if eval "test \"`echo '$''{'ac_cv_search_CAST_cfb64_encrypt'+set}'`\" = set"; then 2327 echo $ac_n "(cached) $ac_c" 1>&6 2328else 2329 ac_func_search_save_LIBS="$LIBS" 2330ac_cv_search_CAST_cfb64_encrypt="no" 2331cat > conftest.$ac_ext <<EOF 2332#line 2328 "configure" 2333#include "confdefs.h" 2334/* Override any gcc2 internal prototype to avoid an error. */ 2335/* We use char because int might match the return type of a gcc2 2336 builtin and then its argument prototype would still apply. */ 2337char CAST_cfb64_encrypt(); 2338 2339int main() { 2340CAST_cfb64_encrypt() 2341; return 0; } 2342EOF 2343if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2344 rm -rf conftest* 2345 ac_cv_search_CAST_cfb64_encrypt="none required" 2346else 2347 echo "configure: failed program was:" >&5 2348 cat conftest.$ac_ext >&5 2349 rm -rf conftest* 2350 LIBS="-lcrypto $LIBS" 2351 cat > conftest.$ac_ext <<EOF 2352#line 2348 "configure" 2353#include "confdefs.h" 2354/* Override any gcc2 internal prototype to avoid an error. */ 2355/* We use char because int might match the return type of a gcc2 2356 builtin and then its argument prototype would still apply. */ 2357char CAST_cfb64_encrypt(); 2358 2359int main() { 2360CAST_cfb64_encrypt() 2361; return 0; } 2362EOF 2363if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2364 rm -rf conftest* 2365 ac_cv_search_CAST_cfb64_encrypt="-lcrypto" 2366else 2367 echo "configure: failed program was:" >&5 2368 cat conftest.$ac_ext >&5 2369fi 2370rm -f conftest* 2371fi 2372rm -f conftest* 2373LIBS="$ac_func_search_save_LIBS" 2374test "$ac_cv_search_CAST_cfb64_encrypt" = "no" && for i in ${crypto_dir}/lib; do 2375LIBS="-L$i -lcrypto $ac_func_search_save_LIBS" 2376cat > conftest.$ac_ext <<EOF 2377#line 2373 "configure" 2378#include "confdefs.h" 2379/* Override any gcc2 internal prototype to avoid an error. */ 2380/* We use char because int might match the return type of a gcc2 2381 builtin and then its argument prototype would still apply. */ 2382char CAST_cfb64_encrypt(); 2383 2384int main() { 2385CAST_cfb64_encrypt() 2386; return 0; } 2387EOF 2388if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2389 rm -rf conftest* 2390 ac_cv_search_CAST_cfb64_encrypt="-L$i -lcrypto" 2391break 2392else 2393 echo "configure: failed program was:" >&5 2394 cat conftest.$ac_ext >&5 2395fi 2396rm -f conftest* 2397done 2398LIBS="$ac_func_search_save_LIBS" 2399fi 2400 2401echo "$ac_t""$ac_cv_search_CAST_cfb64_encrypt" 1>&6 2402if test "$ac_cv_search_CAST_cfb64_encrypt" != "no"; then 2403 test "$ac_cv_search_CAST_cfb64_encrypt" = "none required" || LIBS="$ac_cv_search_CAST_cfb64_encrypt $LIBS" 2404 2405else : 2406 2407fi 2408cat > conftest.$ac_ext <<EOF 2409#line 2405 "configure" 2410#include "confdefs.h" 2411#include <sys/types.h> 2412#include <stdio.h> 2413#include <openssl/bn.h> 2414#include <openssl/dh.h> 2415#include <openssl/md5.h> 2416#include <openssl/sha.h> 2417#include <openssl/des.h> 2418int main() { 2419 2420; return 0; } 2421EOF 2422if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2423 : 2424else 2425 echo "configure: failed program was:" >&5 2426 cat conftest.$ac_ext >&5 2427 rm -rf conftest* 2428 openssl_compile_failed=yes 2429fi 2430rm -f conftest* 2431 2432if test "x$openssl_compile_failed" = "xyes"; then 2433 echo 2434 echo "Fatal: crypto library and headers not found." 2435 echo Specify proper directory by using --with-ssleay. 2436 if test `uname -s` = FreeBSD; then 2437 echo Use ports/security/SSLeay to install SSLeay, or visit 2438 elif test `uname -s` = NetBSD; then 2439 echo Use pkgsrc/security/SSLeay to install SSLeay, or visit 2440 else 2441 echo -n "Visit " 2442 fi 2443 echo ftp://psych.psy.uq.oz.au/pub/Crypto/SSL/, or visit 2444 echo http://www.openssl.org/ 2445 exit 1 2446fi 2447 2448echo $ac_n "checking openssl version""... $ac_c" 1>&6 2449echo "configure:2445: checking openssl version" >&5 2450cat > conftest.$ac_ext <<EOF 2451#line 2447 "configure" 2452#include "confdefs.h" 2453#include <openssl/opensslv.h> 2454#if OPENSSL_VERSION_NUMBER >= 0x00904100L 2455yes 2456#endif 2457EOF 2458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2459 egrep "yes" >/dev/null 2>&1; then 2460 rm -rf conftest* 2461 echo "$ac_t""ok" 1>&6 2462else 2463 rm -rf conftest* 2464 echo "$ac_t""too old" 1>&6 2465 echo 2466 echo "FATAL: OpenSSL version must be 0.9.4 or higher." 2467 exit 1 2468fi 2469rm -f conftest* 2470 2471 2472echo $ac_n "checking for ssl_ok in -lssl""... $ac_c" 1>&6 2473echo "configure:2469: checking for ssl_ok in -lssl" >&5 2474ac_lib_var=`echo ssl'_'ssl_ok | sed 'y%./+-%__p_%'` 2475if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2476 echo $ac_n "(cached) $ac_c" 1>&6 2477else 2478 ac_save_LIBS="$LIBS" 2479LIBS="-lssl -lcrypto $LIBS" 2480cat > conftest.$ac_ext <<EOF 2481#line 2477 "configure" 2482#include "confdefs.h" 2483/* Override any gcc2 internal prototype to avoid an error. */ 2484/* We use char because int might match the return type of a gcc2 2485 builtin and then its argument prototype would still apply. */ 2486char ssl_ok(); 2487 2488int main() { 2489ssl_ok() 2490; return 0; } 2491EOF 2492if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2493 rm -rf conftest* 2494 eval "ac_cv_lib_$ac_lib_var=yes" 2495else 2496 echo "configure: failed program was:" >&5 2497 cat conftest.$ac_ext >&5 2498 rm -rf conftest* 2499 eval "ac_cv_lib_$ac_lib_var=no" 2500fi 2501rm -f conftest* 2502LIBS="$ac_save_LIBS" 2503 2504fi 2505if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2506 echo "$ac_t""yes" 1>&6 2507 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2508 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2509 cat >> confdefs.h <<EOF 2510#define $ac_tr_lib 1 2511EOF 2512 2513 LIBS="-lssl $LIBS" 2514 2515else 2516 echo "$ac_t""no" 1>&6 2517fi 2518 2519 2520echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 2521echo "configure:2517: checking for des_cbc_encrypt in -lcrypto" >&5 2522ac_lib_var=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 2523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2524 echo $ac_n "(cached) $ac_c" 1>&6 2525else 2526 ac_save_LIBS="$LIBS" 2527LIBS="-lcrypto $LIBS" 2528cat > conftest.$ac_ext <<EOF 2529#line 2525 "configure" 2530#include "confdefs.h" 2531/* Override any gcc2 internal prototype to avoid an error. */ 2532/* We use char because int might match the return type of a gcc2 2533 builtin and then its argument prototype would still apply. */ 2534char des_cbc_encrypt(); 2535 2536int main() { 2537des_cbc_encrypt() 2538; return 0; } 2539EOF 2540if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2541 rm -rf conftest* 2542 eval "ac_cv_lib_$ac_lib_var=yes" 2543else 2544 echo "configure: failed program was:" >&5 2545 cat conftest.$ac_ext >&5 2546 rm -rf conftest* 2547 eval "ac_cv_lib_$ac_lib_var=no" 2548fi 2549rm -f conftest* 2550LIBS="$ac_save_LIBS" 2551 2552fi 2553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2554 echo "$ac_t""yes" 1>&6 2555 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2557 cat >> confdefs.h <<EOF 2558#define $ac_tr_lib 1 2559EOF 2560 2561 LIBS="-lcrypto $LIBS" 2562 2563else 2564 echo "$ac_t""no" 1>&6 2565fi 2566 2567echo $ac_n "checking for yywrap in -ll""... $ac_c" 1>&6 2568echo "configure:2564: checking for yywrap in -ll" >&5 2569ac_lib_var=`echo l'_'yywrap | sed 'y%./+-%__p_%'` 2570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2571 echo $ac_n "(cached) $ac_c" 1>&6 2572else 2573 ac_save_LIBS="$LIBS" 2574LIBS="-ll $LIBS" 2575cat > conftest.$ac_ext <<EOF 2576#line 2572 "configure" 2577#include "confdefs.h" 2578/* Override any gcc2 internal prototype to avoid an error. */ 2579/* We use char because int might match the return type of a gcc2 2580 builtin and then its argument prototype would still apply. */ 2581char yywrap(); 2582 2583int main() { 2584yywrap() 2585; return 0; } 2586EOF 2587if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2588 rm -rf conftest* 2589 eval "ac_cv_lib_$ac_lib_var=yes" 2590else 2591 echo "configure: failed program was:" >&5 2592 cat conftest.$ac_ext >&5 2593 rm -rf conftest* 2594 eval "ac_cv_lib_$ac_lib_var=no" 2595fi 2596rm -f conftest* 2597LIBS="$ac_save_LIBS" 2598 2599fi 2600if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2601 echo "$ac_t""yes" 1>&6 2602 ac_tr_lib=HAVE_LIB`echo l | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2604 cat >> confdefs.h <<EOF 2605#define $ac_tr_lib 1 2606EOF 2607 2608 LIBS="-ll $LIBS" 2609 2610else 2611 echo "$ac_t""no" 1>&6 2612fi 2613 2614echo $ac_n "checking for yyerror in -ly""... $ac_c" 1>&6 2615echo "configure:2611: checking for yyerror in -ly" >&5 2616ac_lib_var=`echo y'_'yyerror | sed 'y%./+-%__p_%'` 2617if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2618 echo $ac_n "(cached) $ac_c" 1>&6 2619else 2620 ac_save_LIBS="$LIBS" 2621LIBS="-ly $LIBS" 2622cat > conftest.$ac_ext <<EOF 2623#line 2619 "configure" 2624#include "confdefs.h" 2625/* Override any gcc2 internal prototype to avoid an error. */ 2626/* We use char because int might match the return type of a gcc2 2627 builtin and then its argument prototype would still apply. */ 2628char yyerror(); 2629 2630int main() { 2631yyerror() 2632; return 0; } 2633EOF 2634if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2635 rm -rf conftest* 2636 eval "ac_cv_lib_$ac_lib_var=yes" 2637else 2638 echo "configure: failed program was:" >&5 2639 cat conftest.$ac_ext >&5 2640 rm -rf conftest* 2641 eval "ac_cv_lib_$ac_lib_var=no" 2642fi 2643rm -f conftest* 2644LIBS="$ac_save_LIBS" 2645 2646fi 2647if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2648 echo "$ac_t""yes" 1>&6 2649 ac_tr_lib=HAVE_LIB`echo y | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2650 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2651 cat >> confdefs.h <<EOF 2652#define $ac_tr_lib 1 2653EOF 2654 2655 LIBS="-ly $LIBS" 2656 2657else 2658 echo "$ac_t""no" 1>&6 2659fi 2660 2661 2662echo $ac_n "checking for PF_KEYv2 support""... $ac_c" 1>&6 2663echo "configure:2659: checking for PF_KEYv2 support" >&5 2664if eval "test \"`echo '$''{'ac_cv_pfkey'+set}'`\" = set"; then 2665 echo $ac_n "(cached) $ac_c" 1>&6 2666else 2667 cat > conftest.$ac_ext <<EOF 2668#line 2664 "configure" 2669#include "confdefs.h" 2670 2671#include <sys/types.h> 2672#include <sys/socket.h> 2673#include <net/pfkeyv2.h> 2674int main() { 2675int x = PF_KEY, y = PF_KEY_V2; 2676; return 0; } 2677EOF 2678if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2679 rm -rf conftest* 2680 ac_cv_pfkey="yes" 2681else 2682 echo "configure: failed program was:" >&5 2683 cat conftest.$ac_ext >&5 2684 rm -rf conftest* 2685 ac_cv_pfkey="no" 2686fi 2687rm -f conftest* 2688fi 2689 2690echo "$ac_t""$ac_cv_pfkey" 1>&6 2691if test "$ac_cv_pfkey" = yes; then 2692 OPTFLAG="-DHAVE_PFKEYV2 $OPTFLAG" 2693fi 2694 2695if test "$ac_cv_pfkey" = "yes"; then 2696 echo $ac_n "checking for old KAME PF_KEYv2 header file""... $ac_c" 1>&6 2697echo "configure:2693: checking for old KAME PF_KEYv2 header file" >&5 2698 cat > conftest.$ac_ext <<EOF 2699#line 2695 "configure" 2700#include "confdefs.h" 2701 2702#include <sys/types.h> 2703#include <sys/socket.h> 2704#include <net/pfkeyv2.h> 2705int main() { 2706struct sadb_msg m; m.sadb_msg_reserved2 = 0; 2707; return 0; } 2708EOF 2709if { (eval echo configure:2705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2710 rm -rf conftest* 2711 echo "$ac_t""old" 1>&6 2712 echo "FATAL: obsolete KAME PF_KEYv2 declaration (non-PF_KEY sadb_msg)" 2713 exit 1 2714else 2715 echo "configure: failed program was:" >&5 2716 cat conftest.$ac_ext >&5 2717fi 2718rm -f conftest* 2719 cat > conftest.$ac_ext <<EOF 2720#line 2716 "configure" 2721#include "confdefs.h" 2722 2723#include <sys/types.h> 2724#include <sys/socket.h> 2725#include <net/pfkeyv2.h> 2726int main() { 2727struct sadb_x_policy m; m.sadb_x_policy_id = 0; 2728; return 0; } 2729EOF 2730if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2731 : 2732else 2733 echo "configure: failed program was:" >&5 2734 cat conftest.$ac_ext >&5 2735 rm -rf conftest* 2736 echo "$ac_t""old" 1>&6 2737 echo "FATAL: obsolete KAME PF_KEYv2 declaration (no sadb_x_policy_id)" 2738 exit 1 2739fi 2740rm -f conftest* 2741 cat > conftest.$ac_ext <<EOF 2742#line 2738 "configure" 2743#include "confdefs.h" 2744 2745#include <sys/types.h> 2746#include <sys/socket.h> 2747#include <net/pfkeyv2.h> 2748int main() { 2749struct sadb_x_sa2 m; 2750; return 0; } 2751EOF 2752if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2753 : 2754else 2755 echo "configure: failed program was:" >&5 2756 cat conftest.$ac_ext >&5 2757 rm -rf conftest* 2758 echo "$ac_t""old" 1>&6 2759 echo "FATAL: obsolete KAME PF_KEYv2 declaration (no sadb_x_sa2)" 2760 exit 1 2761fi 2762rm -f conftest* 2763 echo "$ac_t""fine" 1>&6 2764fi 2765 2766ipsectype=unknown 2767ipseclib=none 2768ipseclibdir=none 2769echo $ac_n "checking ipsec library path""... $ac_c" 1>&6 2770echo "configure:2766: checking ipsec library path" >&5 2771for i in kame linux; do 2772 ipsectrylibc=no 2773 case $i in 2774 inria) 2775 cat > conftest.$ac_ext <<EOF 2776#line 2772 "configure" 2777#include "confdefs.h" 2778dnl 2779#include <netinet/in.h> 2780#ifdef IPV6_INRIA_VERSION 2781yes 2782#endif 2783EOF 2784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2785 egrep "yes" >/dev/null 2>&1; then 2786 rm -rf conftest* 2787 ipsectype=$i; 2788 ipseclib=ipsec; 2789 ipseclibdir=/usr/lib 2790fi 2791rm -f conftest* 2792 2793 ;; 2794 kame) 2795 cat > conftest.$ac_ext <<EOF 2796#line 2792 "configure" 2797#include "confdefs.h" 2798dnl 2799#include <netinet/in.h> 2800#ifdef __KAME__ 2801yes 2802#endif 2803EOF 2804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2805 egrep "yes" >/dev/null 2>&1; then 2806 rm -rf conftest* 2807 ipsectype=$i; 2808 ipseclib=ipsec; 2809 ipseclibdir=/usr/local/v6/lib 2810fi 2811rm -f conftest* 2812 2813 ;; 2814 linux) 2815 ipseclib=ipsec; 2816 ipseclibdir=../libipsec 2817 ipsectype=linux 2818 ;; 2819 esac 2820 if test "$ipsectype" != "unknown"; then 2821 break 2822 fi 2823done 2824echo "$ac_t""$ipseclibdir" 1>&6 2825 2826if test "$ipseclib" != "none"; then 2827 if test "$ipseclibdir" != "none"; then 2828 2829echo $ac_n "checking for $ipseclib containing ipsec_strerror""... $ac_c" 1>&6 2830echo "configure:2821: checking for $ipseclib containing ipsec_strerror" >&5 2831if eval "test \"`echo '$''{'ac_cv_search_ipsec_strerror'+set}'`\" = set"; then 2832 echo $ac_n "(cached) $ac_c" 1>&6 2833else 2834 ac_func_search_save_LIBS="$LIBS" 2835ac_cv_search_ipsec_strerror="no" 2836cat > conftest.$ac_ext <<EOF 2837#line 2828 "configure" 2838#include "confdefs.h" 2839/* Override any gcc2 internal prototype to avoid an error. */ 2840/* We use char because int might match the return type of a gcc2 2841 builtin and then its argument prototype would still apply. */ 2842char ipsec_strerror(); 2843 2844int main() { 2845ipsec_strerror() 2846; return 0; } 2847EOF 2848if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2849 rm -rf conftest* 2850 ac_cv_search_ipsec_strerror="none required" 2851else 2852 echo "configure: failed program was:" >&5 2853 cat conftest.$ac_ext >&5 2854 rm -rf conftest* 2855 LIBS="-l$ipseclib $LIBS" 2856 cat > conftest.$ac_ext <<EOF 2857#line 2848 "configure" 2858#include "confdefs.h" 2859/* Override any gcc2 internal prototype to avoid an error. */ 2860/* We use char because int might match the return type of a gcc2 2861 builtin and then its argument prototype would still apply. */ 2862char ipsec_strerror(); 2863 2864int main() { 2865ipsec_strerror() 2866; return 0; } 2867EOF 2868if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2869 rm -rf conftest* 2870 ac_cv_search_ipsec_strerror="-l$ipseclib" 2871else 2872 echo "configure: failed program was:" >&5 2873 cat conftest.$ac_ext >&5 2874fi 2875rm -f conftest* 2876fi 2877rm -f conftest* 2878LIBS="$ac_func_search_save_LIBS" 2879test "$ac_cv_search_ipsec_strerror" = "no" && for i in $ipseclibdir; do 2880LIBS="-L$i -l$ipseclib $ac_func_search_save_LIBS" 2881cat > conftest.$ac_ext <<EOF 2882#line 2873 "configure" 2883#include "confdefs.h" 2884/* Override any gcc2 internal prototype to avoid an error. */ 2885/* We use char because int might match the return type of a gcc2 2886 builtin and then its argument prototype would still apply. */ 2887char ipsec_strerror(); 2888 2889int main() { 2890ipsec_strerror() 2891; return 0; } 2892EOF 2893if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2894 rm -rf conftest* 2895 ac_cv_search_ipsec_strerror="-L$i -l$ipseclib" 2896break 2897else 2898 echo "configure: failed program was:" >&5 2899 cat conftest.$ac_ext >&5 2900fi 2901rm -f conftest* 2902done 2903LIBS="$ac_func_search_save_LIBS" 2904fi 2905 2906echo "$ac_t""$ac_cv_search_ipsec_strerror" 1>&6 2907if test "$ac_cv_search_ipsec_strerror" != "no"; then 2908 test "$ac_cv_search_ipsec_strerror" = "none required" || LIBS="$ac_cv_search_ipsec_strerror $LIBS" 2909 2910else : 2911 2912fi 2913 else 2914 2915echo $ac_n "checking for $ipseclib containing ipsec_strerror""... $ac_c" 1>&6 2916echo "configure:2907: checking for $ipseclib containing ipsec_strerror" >&5 2917if eval "test \"`echo '$''{'ac_cv_search_ipsec_strerror'+set}'`\" = set"; then 2918 echo $ac_n "(cached) $ac_c" 1>&6 2919else 2920 ac_func_search_save_LIBS="$LIBS" 2921ac_cv_search_ipsec_strerror="no" 2922cat > conftest.$ac_ext <<EOF 2923#line 2914 "configure" 2924#include "confdefs.h" 2925/* Override any gcc2 internal prototype to avoid an error. */ 2926/* We use char because int might match the return type of a gcc2 2927 builtin and then its argument prototype would still apply. */ 2928char ipsec_strerror(); 2929 2930int main() { 2931ipsec_strerror() 2932; return 0; } 2933EOF 2934if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2935 rm -rf conftest* 2936 ac_cv_search_ipsec_strerror="none required" 2937else 2938 echo "configure: failed program was:" >&5 2939 cat conftest.$ac_ext >&5 2940 rm -rf conftest* 2941 LIBS="-l$ipseclib $LIBS" 2942 cat > conftest.$ac_ext <<EOF 2943#line 2934 "configure" 2944#include "confdefs.h" 2945/* Override any gcc2 internal prototype to avoid an error. */ 2946/* We use char because int might match the return type of a gcc2 2947 builtin and then its argument prototype would still apply. */ 2948char ipsec_strerror(); 2949 2950int main() { 2951ipsec_strerror() 2952; return 0; } 2953EOF 2954if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2955 rm -rf conftest* 2956 ac_cv_search_ipsec_strerror="-l$ipseclib" 2957else 2958 echo "configure: failed program was:" >&5 2959 cat conftest.$ac_ext >&5 2960fi 2961rm -f conftest* 2962fi 2963rm -f conftest* 2964LIBS="$ac_func_search_save_LIBS" 2965test "$ac_cv_search_ipsec_strerror" = "no" && for i in ''; do 2966LIBS="-L$i -l$ipseclib $ac_func_search_save_LIBS" 2967cat > conftest.$ac_ext <<EOF 2968#line 2959 "configure" 2969#include "confdefs.h" 2970/* Override any gcc2 internal prototype to avoid an error. */ 2971/* We use char because int might match the return type of a gcc2 2972 builtin and then its argument prototype would still apply. */ 2973char ipsec_strerror(); 2974 2975int main() { 2976ipsec_strerror() 2977; return 0; } 2978EOF 2979if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2980 rm -rf conftest* 2981 ac_cv_search_ipsec_strerror="-L$i -l$ipseclib" 2982break 2983else 2984 echo "configure: failed program was:" >&5 2985 cat conftest.$ac_ext >&5 2986fi 2987rm -f conftest* 2988done 2989LIBS="$ac_func_search_save_LIBS" 2990fi 2991 2992echo "$ac_t""$ac_cv_search_ipsec_strerror" 1>&6 2993if test "$ac_cv_search_ipsec_strerror" != "no"; then 2994 test "$ac_cv_search_ipsec_strerror" = "none required" || LIBS="$ac_cv_search_ipsec_strerror $LIBS" 2995 2996else : 2997 2998fi 2999 fi 3000fi 3001 3002echo $ac_n "checking if --with-libpfkey option is specified""... $ac_c" 1>&6 3003echo "configure:2994: checking if --with-libpfkey option is specified" >&5 3004# Check whether --with-libpfkey or --without-libpfkey was given. 3005if test "${with_libpfkey+set}" = set; then 3006 withval="$with_libpfkey" 3007 libpfkey_dir=$withval 3008else 3009 libpfkey_dir=no 3010fi 3011 3012echo "$ac_t""${libpfkey_dir}" 1>&6 3013if test "$libpfkey_dir" != "no"; then 3014 if test "x$libpfkey_dir" = "x"; then 3015 3016echo $ac_n "checking for pfkey containing pfkey_send_spdsetidx""... $ac_c" 1>&6 3017echo "configure:3008: checking for pfkey containing pfkey_send_spdsetidx" >&5 3018if eval "test \"`echo '$''{'ac_cv_search_pfkey_send_spdsetidx'+set}'`\" = set"; then 3019 echo $ac_n "(cached) $ac_c" 1>&6 3020else 3021 ac_func_search_save_LIBS="$LIBS" 3022ac_cv_search_pfkey_send_spdsetidx="no" 3023cat > conftest.$ac_ext <<EOF 3024#line 3015 "configure" 3025#include "confdefs.h" 3026/* Override any gcc2 internal prototype to avoid an error. */ 3027/* We use char because int might match the return type of a gcc2 3028 builtin and then its argument prototype would still apply. */ 3029char pfkey_send_spdsetidx(); 3030 3031int main() { 3032pfkey_send_spdsetidx() 3033; return 0; } 3034EOF 3035if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3036 rm -rf conftest* 3037 ac_cv_search_pfkey_send_spdsetidx="none required" 3038else 3039 echo "configure: failed program was:" >&5 3040 cat conftest.$ac_ext >&5 3041 rm -rf conftest* 3042 LIBS="-lpfkey $LIBS" 3043 cat > conftest.$ac_ext <<EOF 3044#line 3035 "configure" 3045#include "confdefs.h" 3046/* Override any gcc2 internal prototype to avoid an error. */ 3047/* We use char because int might match the return type of a gcc2 3048 builtin and then its argument prototype would still apply. */ 3049char pfkey_send_spdsetidx(); 3050 3051int main() { 3052pfkey_send_spdsetidx() 3053; return 0; } 3054EOF 3055if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3056 rm -rf conftest* 3057 ac_cv_search_pfkey_send_spdsetidx="-lpfkey" 3058else 3059 echo "configure: failed program was:" >&5 3060 cat conftest.$ac_ext >&5 3061fi 3062rm -f conftest* 3063fi 3064rm -f conftest* 3065LIBS="$ac_func_search_save_LIBS" 3066test "$ac_cv_search_pfkey_send_spdsetidx" = "no" && for i in ''; do 3067LIBS="-L$i -lpfkey $ac_func_search_save_LIBS" 3068cat > conftest.$ac_ext <<EOF 3069#line 3060 "configure" 3070#include "confdefs.h" 3071/* Override any gcc2 internal prototype to avoid an error. */ 3072/* We use char because int might match the return type of a gcc2 3073 builtin and then its argument prototype would still apply. */ 3074char pfkey_send_spdsetidx(); 3075 3076int main() { 3077pfkey_send_spdsetidx() 3078; return 0; } 3079EOF 3080if { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3081 rm -rf conftest* 3082 ac_cv_search_pfkey_send_spdsetidx="-L$i -lpfkey" 3083break 3084else 3085 echo "configure: failed program was:" >&5 3086 cat conftest.$ac_ext >&5 3087fi 3088rm -f conftest* 3089done 3090LIBS="$ac_func_search_save_LIBS" 3091fi 3092 3093echo "$ac_t""$ac_cv_search_pfkey_send_spdsetidx" 1>&6 3094if test "$ac_cv_search_pfkey_send_spdsetidx" != "no"; then 3095 test "$ac_cv_search_pfkey_send_spdsetidx" = "none required" || LIBS="$ac_cv_search_pfkey_send_spdsetidx $LIBS" 3096 3097else : 3098 3099fi 3100 else 3101 3102echo $ac_n "checking for pfkey containing pfkey_send_spdsetidx""... $ac_c" 1>&6 3103echo "configure:3094: checking for pfkey containing pfkey_send_spdsetidx" >&5 3104if eval "test \"`echo '$''{'ac_cv_search_pfkey_send_spdsetidx'+set}'`\" = set"; then 3105 echo $ac_n "(cached) $ac_c" 1>&6 3106else 3107 ac_func_search_save_LIBS="$LIBS" 3108ac_cv_search_pfkey_send_spdsetidx="no" 3109cat > conftest.$ac_ext <<EOF 3110#line 3101 "configure" 3111#include "confdefs.h" 3112/* Override any gcc2 internal prototype to avoid an error. */ 3113/* We use char because int might match the return type of a gcc2 3114 builtin and then its argument prototype would still apply. */ 3115char pfkey_send_spdsetidx(); 3116 3117int main() { 3118pfkey_send_spdsetidx() 3119; return 0; } 3120EOF 3121if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3122 rm -rf conftest* 3123 ac_cv_search_pfkey_send_spdsetidx="none required" 3124else 3125 echo "configure: failed program was:" >&5 3126 cat conftest.$ac_ext >&5 3127 rm -rf conftest* 3128 LIBS="-lpfkey $LIBS" 3129 cat > conftest.$ac_ext <<EOF 3130#line 3121 "configure" 3131#include "confdefs.h" 3132/* Override any gcc2 internal prototype to avoid an error. */ 3133/* We use char because int might match the return type of a gcc2 3134 builtin and then its argument prototype would still apply. */ 3135char pfkey_send_spdsetidx(); 3136 3137int main() { 3138pfkey_send_spdsetidx() 3139; return 0; } 3140EOF 3141if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3142 rm -rf conftest* 3143 ac_cv_search_pfkey_send_spdsetidx="-lpfkey" 3144else 3145 echo "configure: failed program was:" >&5 3146 cat conftest.$ac_ext >&5 3147fi 3148rm -f conftest* 3149fi 3150rm -f conftest* 3151LIBS="$ac_func_search_save_LIBS" 3152test "$ac_cv_search_pfkey_send_spdsetidx" = "no" && for i in $libpfkey_dir; do 3153LIBS="-L$i -lpfkey $ac_func_search_save_LIBS" 3154cat > conftest.$ac_ext <<EOF 3155#line 3146 "configure" 3156#include "confdefs.h" 3157/* Override any gcc2 internal prototype to avoid an error. */ 3158/* We use char because int might match the return type of a gcc2 3159 builtin and then its argument prototype would still apply. */ 3160char pfkey_send_spdsetidx(); 3161 3162int main() { 3163pfkey_send_spdsetidx() 3164; return 0; } 3165EOF 3166if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3167 rm -rf conftest* 3168 ac_cv_search_pfkey_send_spdsetidx="-L$i -lpfkey" 3169break 3170else 3171 echo "configure: failed program was:" >&5 3172 cat conftest.$ac_ext >&5 3173fi 3174rm -f conftest* 3175done 3176LIBS="$ac_func_search_save_LIBS" 3177fi 3178 3179echo "$ac_t""$ac_cv_search_pfkey_send_spdsetidx" 1>&6 3180if test "$ac_cv_search_pfkey_send_spdsetidx" != "no"; then 3181 test "$ac_cv_search_pfkey_send_spdsetidx" = "none required" || LIBS="$ac_cv_search_pfkey_send_spdsetidx $LIBS" 3182 3183else : 3184 3185fi 3186 fi 3187fi 3188 3189echo $ac_n "checking if --with-liblwres option is specified""... $ac_c" 1>&6 3190echo "configure:3181: checking if --with-liblwres option is specified" >&5 3191# Check whether --with-liblwres or --without-liblwres was given. 3192if test "${with_liblwres+set}" = set; then 3193 withval="$with_liblwres" 3194 liblwres_dir=$withval 3195else 3196 liblwres_dir=no 3197fi 3198 3199echo "$ac_t""${liblwres_dir}" 1>&6 3200if test "$liblwres_dir" != "no"; then 3201 if test -d "$liblwres_dir/lib" -a -d "$liblwres_dir/lib"; then 3202 if test "x$liblwres_dir" = "x"; then 3203 3204echo $ac_n "checking for lwres containing lwres_getrrsetbyname""... $ac_c" 1>&6 3205echo "configure:3196: checking for lwres containing lwres_getrrsetbyname" >&5 3206if eval "test \"`echo '$''{'ac_cv_search_lwres_getrrsetbyname'+set}'`\" = set"; then 3207 echo $ac_n "(cached) $ac_c" 1>&6 3208else 3209 ac_func_search_save_LIBS="$LIBS" 3210ac_cv_search_lwres_getrrsetbyname="no" 3211cat > conftest.$ac_ext <<EOF 3212#line 3203 "configure" 3213#include "confdefs.h" 3214/* Override any gcc2 internal prototype to avoid an error. */ 3215/* We use char because int might match the return type of a gcc2 3216 builtin and then its argument prototype would still apply. */ 3217char lwres_getrrsetbyname(); 3218 3219int main() { 3220lwres_getrrsetbyname() 3221; return 0; } 3222EOF 3223if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3224 rm -rf conftest* 3225 ac_cv_search_lwres_getrrsetbyname="none required" 3226else 3227 echo "configure: failed program was:" >&5 3228 cat conftest.$ac_ext >&5 3229 rm -rf conftest* 3230 LIBS="-llwres $LIBS" 3231 cat > conftest.$ac_ext <<EOF 3232#line 3223 "configure" 3233#include "confdefs.h" 3234/* Override any gcc2 internal prototype to avoid an error. */ 3235/* We use char because int might match the return type of a gcc2 3236 builtin and then its argument prototype would still apply. */ 3237char lwres_getrrsetbyname(); 3238 3239int main() { 3240lwres_getrrsetbyname() 3241; return 0; } 3242EOF 3243if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3244 rm -rf conftest* 3245 ac_cv_search_lwres_getrrsetbyname="-llwres" 3246else 3247 echo "configure: failed program was:" >&5 3248 cat conftest.$ac_ext >&5 3249fi 3250rm -f conftest* 3251fi 3252rm -f conftest* 3253LIBS="$ac_func_search_save_LIBS" 3254test "$ac_cv_search_lwres_getrrsetbyname" = "no" && for i in ''; do 3255LIBS="-L$i -llwres $ac_func_search_save_LIBS" 3256cat > conftest.$ac_ext <<EOF 3257#line 3248 "configure" 3258#include "confdefs.h" 3259/* Override any gcc2 internal prototype to avoid an error. */ 3260/* We use char because int might match the return type of a gcc2 3261 builtin and then its argument prototype would still apply. */ 3262char lwres_getrrsetbyname(); 3263 3264int main() { 3265lwres_getrrsetbyname() 3266; return 0; } 3267EOF 3268if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3269 rm -rf conftest* 3270 ac_cv_search_lwres_getrrsetbyname="-L$i -llwres" 3271break 3272else 3273 echo "configure: failed program was:" >&5 3274 cat conftest.$ac_ext >&5 3275fi 3276rm -f conftest* 3277done 3278LIBS="$ac_func_search_save_LIBS" 3279fi 3280 3281echo "$ac_t""$ac_cv_search_lwres_getrrsetbyname" 1>&6 3282if test "$ac_cv_search_lwres_getrrsetbyname" != "no"; then 3283 test "$ac_cv_search_lwres_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_lwres_getrrsetbyname $LIBS" 3284 3285else : 3286 3287fi 3288 else 3289 3290echo $ac_n "checking for lwres containing lwres_getrrsetbyname""... $ac_c" 1>&6 3291echo "configure:3282: checking for lwres containing lwres_getrrsetbyname" >&5 3292if eval "test \"`echo '$''{'ac_cv_search_lwres_getrrsetbyname'+set}'`\" = set"; then 3293 echo $ac_n "(cached) $ac_c" 1>&6 3294else 3295 ac_func_search_save_LIBS="$LIBS" 3296ac_cv_search_lwres_getrrsetbyname="no" 3297cat > conftest.$ac_ext <<EOF 3298#line 3289 "configure" 3299#include "confdefs.h" 3300/* Override any gcc2 internal prototype to avoid an error. */ 3301/* We use char because int might match the return type of a gcc2 3302 builtin and then its argument prototype would still apply. */ 3303char lwres_getrrsetbyname(); 3304 3305int main() { 3306lwres_getrrsetbyname() 3307; return 0; } 3308EOF 3309if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3310 rm -rf conftest* 3311 ac_cv_search_lwres_getrrsetbyname="none required" 3312else 3313 echo "configure: failed program was:" >&5 3314 cat conftest.$ac_ext >&5 3315 rm -rf conftest* 3316 LIBS="-llwres $LIBS" 3317 cat > conftest.$ac_ext <<EOF 3318#line 3309 "configure" 3319#include "confdefs.h" 3320/* Override any gcc2 internal prototype to avoid an error. */ 3321/* We use char because int might match the return type of a gcc2 3322 builtin and then its argument prototype would still apply. */ 3323char lwres_getrrsetbyname(); 3324 3325int main() { 3326lwres_getrrsetbyname() 3327; return 0; } 3328EOF 3329if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3330 rm -rf conftest* 3331 ac_cv_search_lwres_getrrsetbyname="-llwres" 3332else 3333 echo "configure: failed program was:" >&5 3334 cat conftest.$ac_ext >&5 3335fi 3336rm -f conftest* 3337fi 3338rm -f conftest* 3339LIBS="$ac_func_search_save_LIBS" 3340test "$ac_cv_search_lwres_getrrsetbyname" = "no" && for i in "$liblwres_dir/lib"; do 3341LIBS="-L$i -llwres $ac_func_search_save_LIBS" 3342cat > conftest.$ac_ext <<EOF 3343#line 3334 "configure" 3344#include "confdefs.h" 3345/* Override any gcc2 internal prototype to avoid an error. */ 3346/* We use char because int might match the return type of a gcc2 3347 builtin and then its argument prototype would still apply. */ 3348char lwres_getrrsetbyname(); 3349 3350int main() { 3351lwres_getrrsetbyname() 3352; return 0; } 3353EOF 3354if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3355 rm -rf conftest* 3356 ac_cv_search_lwres_getrrsetbyname="-L$i -llwres" 3357break 3358else 3359 echo "configure: failed program was:" >&5 3360 cat conftest.$ac_ext >&5 3361fi 3362rm -f conftest* 3363done 3364LIBS="$ac_func_search_save_LIBS" 3365fi 3366 3367echo "$ac_t""$ac_cv_search_lwres_getrrsetbyname" 1>&6 3368if test "$ac_cv_search_lwres_getrrsetbyname" != "no"; then 3369 test "$ac_cv_search_lwres_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_lwres_getrrsetbyname $LIBS" 3370 3371else : 3372 3373fi 3374 fi 3375 CFLAGS="$CFLAGS -I$liblwres_dir/include" 3376 for ac_func in lwres_getrrsetbyname 3377do 3378echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3379echo "configure:3370: checking for $ac_func" >&5 3380if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3381 echo $ac_n "(cached) $ac_c" 1>&6 3382else 3383 cat > conftest.$ac_ext <<EOF 3384#line 3375 "configure" 3385#include "confdefs.h" 3386/* System header to define __stub macros and hopefully few prototypes, 3387 which can conflict with char $ac_func(); below. */ 3388#include <assert.h> 3389/* Override any gcc2 internal prototype to avoid an error. */ 3390/* We use char because int might match the return type of a gcc2 3391 builtin and then its argument prototype would still apply. */ 3392char $ac_func(); 3393 3394int main() { 3395 3396/* The GNU C library defines this for functions which it implements 3397 to always fail with ENOSYS. Some functions are actually named 3398 something starting with __ and the normal name is an alias. */ 3399#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3400choke me 3401#else 3402$ac_func(); 3403#endif 3404 3405; return 0; } 3406EOF 3407if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3408 rm -rf conftest* 3409 eval "ac_cv_func_$ac_func=yes" 3410else 3411 echo "configure: failed program was:" >&5 3412 cat conftest.$ac_ext >&5 3413 rm -rf conftest* 3414 eval "ac_cv_func_$ac_func=no" 3415fi 3416rm -f conftest* 3417fi 3418 3419if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3420 echo "$ac_t""yes" 1>&6 3421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3422 cat >> confdefs.h <<EOF 3423#define $ac_tr_func 1 3424EOF 3425 3426else 3427 echo "$ac_t""no" 1>&6 3428fi 3429done 3430 3431 else 3432 echo "FATAL: $liblwres_dir/lib or $liblwres_dir/include not found" 3433 exit 1 3434 fi 3435fi 3436for ac_func in getrrsetbyname 3437do 3438echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3439echo "configure:3430: checking for $ac_func" >&5 3440if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3441 echo $ac_n "(cached) $ac_c" 1>&6 3442else 3443 cat > conftest.$ac_ext <<EOF 3444#line 3435 "configure" 3445#include "confdefs.h" 3446/* System header to define __stub macros and hopefully few prototypes, 3447 which can conflict with char $ac_func(); below. */ 3448#include <assert.h> 3449/* Override any gcc2 internal prototype to avoid an error. */ 3450/* We use char because int might match the return type of a gcc2 3451 builtin and then its argument prototype would still apply. */ 3452char $ac_func(); 3453 3454int main() { 3455 3456/* The GNU C library defines this for functions which it implements 3457 to always fail with ENOSYS. Some functions are actually named 3458 something starting with __ and the normal name is an alias. */ 3459#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3460choke me 3461#else 3462$ac_func(); 3463#endif 3464 3465; return 0; } 3466EOF 3467if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3468 rm -rf conftest* 3469 eval "ac_cv_func_$ac_func=yes" 3470else 3471 echo "configure: failed program was:" >&5 3472 cat conftest.$ac_ext >&5 3473 rm -rf conftest* 3474 eval "ac_cv_func_$ac_func=no" 3475fi 3476rm -f conftest* 3477fi 3478 3479if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3480 echo "$ac_t""yes" 1>&6 3481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3482 cat >> confdefs.h <<EOF 3483#define $ac_tr_func 1 3484EOF 3485 3486else 3487 echo "$ac_t""no" 1>&6 3488fi 3489done 3490 3491 3492echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3493echo "configure:3484: checking for ANSI C header files" >&5 3494if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 3495 echo $ac_n "(cached) $ac_c" 1>&6 3496else 3497 cat > conftest.$ac_ext <<EOF 3498#line 3489 "configure" 3499#include "confdefs.h" 3500#include <stdlib.h> 3501#include <stdarg.h> 3502#include <string.h> 3503#include <float.h> 3504EOF 3505ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3506{ (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3507ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3508if test -z "$ac_err"; then 3509 rm -rf conftest* 3510 ac_cv_header_stdc=yes 3511else 3512 echo "$ac_err" >&5 3513 echo "configure: failed program was:" >&5 3514 cat conftest.$ac_ext >&5 3515 rm -rf conftest* 3516 ac_cv_header_stdc=no 3517fi 3518rm -f conftest* 3519 3520if test $ac_cv_header_stdc = yes; then 3521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3522cat > conftest.$ac_ext <<EOF 3523#line 3514 "configure" 3524#include "confdefs.h" 3525#include <string.h> 3526EOF 3527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3528 egrep "memchr" >/dev/null 2>&1; then 3529 : 3530else 3531 rm -rf conftest* 3532 ac_cv_header_stdc=no 3533fi 3534rm -f conftest* 3535 3536fi 3537 3538if test $ac_cv_header_stdc = yes; then 3539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3540cat > conftest.$ac_ext <<EOF 3541#line 3532 "configure" 3542#include "confdefs.h" 3543#include <stdlib.h> 3544EOF 3545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3546 egrep "free" >/dev/null 2>&1; then 3547 : 3548else 3549 rm -rf conftest* 3550 ac_cv_header_stdc=no 3551fi 3552rm -f conftest* 3553 3554fi 3555 3556if test $ac_cv_header_stdc = yes; then 3557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3558if test "$cross_compiling" = yes; then 3559 : 3560else 3561 cat > conftest.$ac_ext <<EOF 3562#line 3553 "configure" 3563#include "confdefs.h" 3564#include <ctype.h> 3565#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3566#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3568int main () { int i; for (i = 0; i < 256; i++) 3569if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3570exit (0); } 3571 3572EOF 3573if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3574then 3575 : 3576else 3577 echo "configure: failed program was:" >&5 3578 cat conftest.$ac_ext >&5 3579 rm -fr conftest* 3580 ac_cv_header_stdc=no 3581fi 3582rm -fr conftest* 3583fi 3584 3585fi 3586fi 3587 3588echo "$ac_t""$ac_cv_header_stdc" 1>&6 3589if test $ac_cv_header_stdc = yes; then 3590 cat >> confdefs.h <<\EOF 3591#define STDC_HEADERS 1 3592EOF 3593 3594fi 3595 3596echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3597echo "configure:3588: checking for sys/wait.h that is POSIX.1 compatible" >&5 3598if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 3599 echo $ac_n "(cached) $ac_c" 1>&6 3600else 3601 cat > conftest.$ac_ext <<EOF 3602#line 3593 "configure" 3603#include "confdefs.h" 3604#include <sys/types.h> 3605#include <sys/wait.h> 3606#ifndef WEXITSTATUS 3607#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3608#endif 3609#ifndef WIFEXITED 3610#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 3611#endif 3612int main() { 3613int s; 3614wait (&s); 3615s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3616; return 0; } 3617EOF 3618if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3619 rm -rf conftest* 3620 ac_cv_header_sys_wait_h=yes 3621else 3622 echo "configure: failed program was:" >&5 3623 cat conftest.$ac_ext >&5 3624 rm -rf conftest* 3625 ac_cv_header_sys_wait_h=no 3626fi 3627rm -f conftest* 3628fi 3629 3630echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 3631if test $ac_cv_header_sys_wait_h = yes; then 3632 cat >> confdefs.h <<\EOF 3633#define HAVE_SYS_WAIT_H 1 3634EOF 3635 3636fi 3637 3638for ac_hdr in limits.h sys/time.h unistd.h stdarg.h varargs.h 3639do 3640ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3641echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3642echo "configure:3633: checking for $ac_hdr" >&5 3643if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3644 echo $ac_n "(cached) $ac_c" 1>&6 3645else 3646 cat > conftest.$ac_ext <<EOF 3647#line 3638 "configure" 3648#include "confdefs.h" 3649#include <$ac_hdr> 3650EOF 3651ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3652{ (eval echo configure:3643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3653ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3654if test -z "$ac_err"; then 3655 rm -rf conftest* 3656 eval "ac_cv_header_$ac_safe=yes" 3657else 3658 echo "$ac_err" >&5 3659 echo "configure: failed program was:" >&5 3660 cat conftest.$ac_ext >&5 3661 rm -rf conftest* 3662 eval "ac_cv_header_$ac_safe=no" 3663fi 3664rm -f conftest* 3665fi 3666if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3667 echo "$ac_t""yes" 1>&6 3668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3669 cat >> confdefs.h <<EOF 3670#define $ac_tr_hdr 1 3671EOF 3672 3673else 3674 echo "$ac_t""no" 1>&6 3675fi 3676done 3677 3678signing=yes 3679if test "$enable_rc5" = "yes"; then 3680 rc5header=openssl/rc5.h 3681else 3682 rc5header= 3683fi 3684if test "$enable_idea" = "yes"; then 3685 ideaheader=openssl/idea.h 3686else 3687 ideaheader= 3688fi 3689for ac_hdr in $ideaheader $rc5header openssl/rsa.h openssl/pem.h openssl/evp.h openssl/x509.h 3690do 3691ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3692echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3693echo "configure:3684: checking for $ac_hdr" >&5 3694if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3695 echo $ac_n "(cached) $ac_c" 1>&6 3696else 3697 cat > conftest.$ac_ext <<EOF 3698#line 3689 "configure" 3699#include "confdefs.h" 3700#include <$ac_hdr> 3701EOF 3702ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3703{ (eval echo configure:3694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3704ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3705if test -z "$ac_err"; then 3706 rm -rf conftest* 3707 eval "ac_cv_header_$ac_safe=yes" 3708else 3709 echo "$ac_err" >&5 3710 echo "configure: failed program was:" >&5 3711 cat conftest.$ac_ext >&5 3712 rm -rf conftest* 3713 eval "ac_cv_header_$ac_safe=no" 3714fi 3715rm -f conftest* 3716fi 3717if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3718 echo "$ac_t""yes" 1>&6 3719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3720 cat >> confdefs.h <<EOF 3721#define $ac_tr_hdr 1 3722EOF 3723 3724else 3725 echo "$ac_t""no" 1>&6 3726nosymbol=`echo $ac_hdr | sed -e 's/.h$//' -e 's/^openssl.//' -e 's/^/NO_/' | tr 'a-z' 'A-Z'` 3727 CPPFLAGS="$CPPFLAGS -D$nosymbol=1" 3728 signing=no 3729fi 3730done 3731 3732if test $signing = "yes"; then 3733 cat >> confdefs.h <<\EOF 3734#define HAVE_SIGNING_C 1 3735EOF 3736 3737fi 3738for ac_hdr in openssl/cversion.h openssl/opensslv.h 3739do 3740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3742echo "configure:3733: checking for $ac_hdr" >&5 3743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3744 echo $ac_n "(cached) $ac_c" 1>&6 3745else 3746 cat > conftest.$ac_ext <<EOF 3747#line 3738 "configure" 3748#include "confdefs.h" 3749#include <$ac_hdr> 3750EOF 3751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3752{ (eval echo configure:3743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3754if test -z "$ac_err"; then 3755 rm -rf conftest* 3756 eval "ac_cv_header_$ac_safe=yes" 3757else 3758 echo "$ac_err" >&5 3759 echo "configure: failed program was:" >&5 3760 cat conftest.$ac_ext >&5 3761 rm -rf conftest* 3762 eval "ac_cv_header_$ac_safe=no" 3763fi 3764rm -f conftest* 3765fi 3766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3767 echo "$ac_t""yes" 1>&6 3768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3769 cat >> confdefs.h <<EOF 3770#define $ac_tr_hdr 1 3771EOF 3772 3773else 3774 echo "$ac_t""no" 1>&6 3775fi 3776done 3777 3778 3779 3780ac_safe=`echo "openssl/rijndael.h" | sed 'y%./+-%__p_%'` 3781echo $ac_n "checking for openssl/rijndael.h""... $ac_c" 1>&6 3782echo "configure:3773: checking for openssl/rijndael.h" >&5 3783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3784 echo $ac_n "(cached) $ac_c" 1>&6 3785else 3786 cat > conftest.$ac_ext <<EOF 3787#line 3778 "configure" 3788#include "confdefs.h" 3789#include <openssl/rijndael.h> 3790EOF 3791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3792{ (eval echo configure:3783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3794if test -z "$ac_err"; then 3795 rm -rf conftest* 3796 eval "ac_cv_header_$ac_safe=yes" 3797else 3798 echo "$ac_err" >&5 3799 echo "configure: failed program was:" >&5 3800 cat conftest.$ac_ext >&5 3801 rm -rf conftest* 3802 eval "ac_cv_header_$ac_safe=no" 3803fi 3804rm -f conftest* 3805fi 3806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3807 echo "$ac_t""yes" 1>&6 3808 : 3809else 3810 echo "$ac_t""no" 1>&6 3811 3812 CPPFLAGS="$CPPFLAGS -I./missing" 3813 CRYPTOBJS="$CRYPTOBJS rijndael-api-fst.o rijndael-alg-fst.o" 3814 3815fi 3816 3817 3818 3819ac_safe=`echo "openssl/sha2.h" | sed 'y%./+-%__p_%'` 3820echo $ac_n "checking for openssl/sha2.h""... $ac_c" 1>&6 3821echo "configure:3812: checking for openssl/sha2.h" >&5 3822if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3823 echo $ac_n "(cached) $ac_c" 1>&6 3824else 3825 cat > conftest.$ac_ext <<EOF 3826#line 3817 "configure" 3827#include "confdefs.h" 3828#include <openssl/sha2.h> 3829EOF 3830ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3831{ (eval echo configure:3822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3832ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3833if test -z "$ac_err"; then 3834 rm -rf conftest* 3835 eval "ac_cv_header_$ac_safe=yes" 3836else 3837 echo "$ac_err" >&5 3838 echo "configure: failed program was:" >&5 3839 cat conftest.$ac_ext >&5 3840 rm -rf conftest* 3841 eval "ac_cv_header_$ac_safe=no" 3842fi 3843rm -f conftest* 3844fi 3845if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3846 echo "$ac_t""yes" 1>&6 3847 : 3848else 3849 echo "$ac_t""no" 1>&6 3850 3851 CPPFLAGS="$CPPFLAGS -I./missing" 3852 CRYPTOBJS="$CRYPTOBJS sha2.o" 3853 3854fi 3855 3856 3857echo $ac_n "checking for working const""... $ac_c" 1>&6 3858echo "configure:3849: checking for working const" >&5 3859if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3860 echo $ac_n "(cached) $ac_c" 1>&6 3861else 3862 cat > conftest.$ac_ext <<EOF 3863#line 3854 "configure" 3864#include "confdefs.h" 3865 3866int main() { 3867 3868/* Ultrix mips cc rejects this. */ 3869typedef int charset[2]; const charset x; 3870/* SunOS 4.1.1 cc rejects this. */ 3871char const *const *ccp; 3872char **p; 3873/* NEC SVR4.0.2 mips cc rejects this. */ 3874struct point {int x, y;}; 3875static struct point const zero = {0,0}; 3876/* AIX XL C 1.02.0.0 rejects this. 3877 It does not let you subtract one const X* pointer from another in an arm 3878 of an if-expression whose if-part is not a constant expression */ 3879const char *g = "string"; 3880ccp = &g + (g ? g-g : 0); 3881/* HPUX 7.0 cc rejects these. */ 3882++ccp; 3883p = (char**) ccp; 3884ccp = (char const *const *) p; 3885{ /* SCO 3.2v4 cc rejects this. */ 3886 char *t; 3887 char const *s = 0 ? (char *) 0 : (char const *) 0; 3888 3889 *t++ = 0; 3890} 3891{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3892 int x[] = {25, 17}; 3893 const int *foo = &x[0]; 3894 ++foo; 3895} 3896{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3897 typedef const int *iptr; 3898 iptr p = 0; 3899 ++p; 3900} 3901{ /* AIX XL C 1.02.0.0 rejects this saying 3902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3903 struct s { int j; const int *ap[3]; }; 3904 struct s *b; b->j = 5; 3905} 3906{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3907 const int foo = 10; 3908} 3909 3910; return 0; } 3911EOF 3912if { (eval echo configure:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3913 rm -rf conftest* 3914 ac_cv_c_const=yes 3915else 3916 echo "configure: failed program was:" >&5 3917 cat conftest.$ac_ext >&5 3918 rm -rf conftest* 3919 ac_cv_c_const=no 3920fi 3921rm -f conftest* 3922fi 3923 3924echo "$ac_t""$ac_cv_c_const" 1>&6 3925if test $ac_cv_c_const = no; then 3926 cat >> confdefs.h <<\EOF 3927#define const 3928EOF 3929 3930fi 3931 3932echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3933echo "configure:3924: checking for pid_t" >&5 3934if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 3935 echo $ac_n "(cached) $ac_c" 1>&6 3936else 3937 cat > conftest.$ac_ext <<EOF 3938#line 3929 "configure" 3939#include "confdefs.h" 3940#include <sys/types.h> 3941#if STDC_HEADERS 3942#include <stdlib.h> 3943#include <stddef.h> 3944#endif 3945EOF 3946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3947 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3948 rm -rf conftest* 3949 ac_cv_type_pid_t=yes 3950else 3951 rm -rf conftest* 3952 ac_cv_type_pid_t=no 3953fi 3954rm -f conftest* 3955 3956fi 3957echo "$ac_t""$ac_cv_type_pid_t" 1>&6 3958if test $ac_cv_type_pid_t = no; then 3959 cat >> confdefs.h <<\EOF 3960#define pid_t int 3961EOF 3962 3963fi 3964 3965echo $ac_n "checking for size_t""... $ac_c" 1>&6 3966echo "configure:3957: checking for size_t" >&5 3967if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 3968 echo $ac_n "(cached) $ac_c" 1>&6 3969else 3970 cat > conftest.$ac_ext <<EOF 3971#line 3962 "configure" 3972#include "confdefs.h" 3973#include <sys/types.h> 3974#if STDC_HEADERS 3975#include <stdlib.h> 3976#include <stddef.h> 3977#endif 3978EOF 3979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3980 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3981 rm -rf conftest* 3982 ac_cv_type_size_t=yes 3983else 3984 rm -rf conftest* 3985 ac_cv_type_size_t=no 3986fi 3987rm -f conftest* 3988 3989fi 3990echo "$ac_t""$ac_cv_type_size_t" 1>&6 3991if test $ac_cv_type_size_t = no; then 3992 cat >> confdefs.h <<\EOF 3993#define size_t unsigned 3994EOF 3995 3996fi 3997 3998echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3999echo "configure:3990: checking whether time.h and sys/time.h may both be included" >&5 4000if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 4001 echo $ac_n "(cached) $ac_c" 1>&6 4002else 4003 cat > conftest.$ac_ext <<EOF 4004#line 3995 "configure" 4005#include "confdefs.h" 4006#include <sys/types.h> 4007#include <sys/time.h> 4008#include <time.h> 4009int main() { 4010struct tm *tp; 4011; return 0; } 4012EOF 4013if { (eval echo configure:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4014 rm -rf conftest* 4015 ac_cv_header_time=yes 4016else 4017 echo "configure: failed program was:" >&5 4018 cat conftest.$ac_ext >&5 4019 rm -rf conftest* 4020 ac_cv_header_time=no 4021fi 4022rm -f conftest* 4023fi 4024 4025echo "$ac_t""$ac_cv_header_time" 1>&6 4026if test $ac_cv_header_time = yes; then 4027 cat >> confdefs.h <<\EOF 4028#define TIME_WITH_SYS_TIME 1 4029EOF 4030 4031fi 4032 4033echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4034echo "configure:4025: checking whether struct tm is in sys/time.h or time.h" >&5 4035if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 4036 echo $ac_n "(cached) $ac_c" 1>&6 4037else 4038 cat > conftest.$ac_ext <<EOF 4039#line 4030 "configure" 4040#include "confdefs.h" 4041#include <sys/types.h> 4042#include <time.h> 4043int main() { 4044struct tm *tp; tp->tm_sec; 4045; return 0; } 4046EOF 4047if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4048 rm -rf conftest* 4049 ac_cv_struct_tm=time.h 4050else 4051 echo "configure: failed program was:" >&5 4052 cat conftest.$ac_ext >&5 4053 rm -rf conftest* 4054 ac_cv_struct_tm=sys/time.h 4055fi 4056rm -f conftest* 4057fi 4058 4059echo "$ac_t""$ac_cv_struct_tm" 1>&6 4060if test $ac_cv_struct_tm = sys/time.h; then 4061 cat >> confdefs.h <<\EOF 4062#define TM_IN_SYS_TIME 1 4063EOF 4064 4065fi 4066 4067 4068echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 4069echo "configure:4060: checking for 8-bit clean memcmp" >&5 4070if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then 4071 echo $ac_n "(cached) $ac_c" 1>&6 4072else 4073 if test "$cross_compiling" = yes; then 4074 ac_cv_func_memcmp_clean=no 4075else 4076 cat > conftest.$ac_ext <<EOF 4077#line 4068 "configure" 4078#include "confdefs.h" 4079 4080main() 4081{ 4082 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 4083 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); 4084} 4085 4086EOF 4087if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4088then 4089 ac_cv_func_memcmp_clean=yes 4090else 4091 echo "configure: failed program was:" >&5 4092 cat conftest.$ac_ext >&5 4093 rm -fr conftest* 4094 ac_cv_func_memcmp_clean=no 4095fi 4096rm -fr conftest* 4097fi 4098 4099fi 4100 4101echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 4102test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" 4103 4104echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 4105echo "configure:4096: checking return type of signal handlers" >&5 4106if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 4107 echo $ac_n "(cached) $ac_c" 1>&6 4108else 4109 cat > conftest.$ac_ext <<EOF 4110#line 4101 "configure" 4111#include "confdefs.h" 4112#include <sys/types.h> 4113#include <signal.h> 4114#ifdef signal 4115#undef signal 4116#endif 4117#ifdef __cplusplus 4118extern "C" void (*signal (int, void (*)(int)))(int); 4119#else 4120void (*signal ()) (); 4121#endif 4122 4123int main() { 4124int i; 4125; return 0; } 4126EOF 4127if { (eval echo configure:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4128 rm -rf conftest* 4129 ac_cv_type_signal=void 4130else 4131 echo "configure: failed program was:" >&5 4132 cat conftest.$ac_ext >&5 4133 rm -rf conftest* 4134 ac_cv_type_signal=int 4135fi 4136rm -f conftest* 4137fi 4138 4139echo "$ac_t""$ac_cv_type_signal" 1>&6 4140cat >> confdefs.h <<EOF 4141#define RETSIGTYPE $ac_cv_type_signal 4142EOF 4143 4144 4145echo $ac_n "checking for vprintf""... $ac_c" 1>&6 4146echo "configure:4137: checking for vprintf" >&5 4147if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 4148 echo $ac_n "(cached) $ac_c" 1>&6 4149else 4150 cat > conftest.$ac_ext <<EOF 4151#line 4142 "configure" 4152#include "confdefs.h" 4153/* System header to define __stub macros and hopefully few prototypes, 4154 which can conflict with char vprintf(); below. */ 4155#include <assert.h> 4156/* Override any gcc2 internal prototype to avoid an error. */ 4157/* We use char because int might match the return type of a gcc2 4158 builtin and then its argument prototype would still apply. */ 4159char vprintf(); 4160 4161int main() { 4162 4163/* The GNU C library defines this for functions which it implements 4164 to always fail with ENOSYS. Some functions are actually named 4165 something starting with __ and the normal name is an alias. */ 4166#if defined (__stub_vprintf) || defined (__stub___vprintf) 4167choke me 4168#else 4169vprintf(); 4170#endif 4171 4172; return 0; } 4173EOF 4174if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4175 rm -rf conftest* 4176 eval "ac_cv_func_vprintf=yes" 4177else 4178 echo "configure: failed program was:" >&5 4179 cat conftest.$ac_ext >&5 4180 rm -rf conftest* 4181 eval "ac_cv_func_vprintf=no" 4182fi 4183rm -f conftest* 4184fi 4185 4186if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 4187 echo "$ac_t""yes" 1>&6 4188 cat >> confdefs.h <<\EOF 4189#define HAVE_VPRINTF 1 4190EOF 4191 4192else 4193 echo "$ac_t""no" 1>&6 4194fi 4195 4196if test "$ac_cv_func_vprintf" != yes; then 4197echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 4198echo "configure:4189: checking for _doprnt" >&5 4199if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 4200 echo $ac_n "(cached) $ac_c" 1>&6 4201else 4202 cat > conftest.$ac_ext <<EOF 4203#line 4194 "configure" 4204#include "confdefs.h" 4205/* System header to define __stub macros and hopefully few prototypes, 4206 which can conflict with char _doprnt(); below. */ 4207#include <assert.h> 4208/* Override any gcc2 internal prototype to avoid an error. */ 4209/* We use char because int might match the return type of a gcc2 4210 builtin and then its argument prototype would still apply. */ 4211char _doprnt(); 4212 4213int main() { 4214 4215/* The GNU C library defines this for functions which it implements 4216 to always fail with ENOSYS. Some functions are actually named 4217 something starting with __ and the normal name is an alias. */ 4218#if defined (__stub__doprnt) || defined (__stub____doprnt) 4219choke me 4220#else 4221_doprnt(); 4222#endif 4223 4224; return 0; } 4225EOF 4226if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4227 rm -rf conftest* 4228 eval "ac_cv_func__doprnt=yes" 4229else 4230 echo "configure: failed program was:" >&5 4231 cat conftest.$ac_ext >&5 4232 rm -rf conftest* 4233 eval "ac_cv_func__doprnt=no" 4234fi 4235rm -f conftest* 4236fi 4237 4238if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 4239 echo "$ac_t""yes" 1>&6 4240 cat >> confdefs.h <<\EOF 4241#define HAVE_DOPRNT 1 4242EOF 4243 4244else 4245 echo "$ac_t""no" 1>&6 4246fi 4247 4248fi 4249 4250for ac_func in gettimeofday select socket strerror strtol strtoul 4251do 4252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4253echo "configure:4244: checking for $ac_func" >&5 4254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4255 echo $ac_n "(cached) $ac_c" 1>&6 4256else 4257 cat > conftest.$ac_ext <<EOF 4258#line 4249 "configure" 4259#include "confdefs.h" 4260/* System header to define __stub macros and hopefully few prototypes, 4261 which can conflict with char $ac_func(); below. */ 4262#include <assert.h> 4263/* Override any gcc2 internal prototype to avoid an error. */ 4264/* We use char because int might match the return type of a gcc2 4265 builtin and then its argument prototype would still apply. */ 4266char $ac_func(); 4267 4268int main() { 4269 4270/* The GNU C library defines this for functions which it implements 4271 to always fail with ENOSYS. Some functions are actually named 4272 something starting with __ and the normal name is an alias. */ 4273#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4274choke me 4275#else 4276$ac_func(); 4277#endif 4278 4279; return 0; } 4280EOF 4281if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4282 rm -rf conftest* 4283 eval "ac_cv_func_$ac_func=yes" 4284else 4285 echo "configure: failed program was:" >&5 4286 cat conftest.$ac_ext >&5 4287 rm -rf conftest* 4288 eval "ac_cv_func_$ac_func=no" 4289fi 4290rm -f conftest* 4291fi 4292 4293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4294 echo "$ac_t""yes" 1>&6 4295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4296 cat >> confdefs.h <<EOF 4297#define $ac_tr_func 1 4298EOF 4299 4300else 4301 echo "$ac_t""no" 1>&6 4302fi 4303done 4304 4305for ac_func in strdup 4306do 4307echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4308echo "configure:4299: checking for $ac_func" >&5 4309if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4310 echo $ac_n "(cached) $ac_c" 1>&6 4311else 4312 cat > conftest.$ac_ext <<EOF 4313#line 4304 "configure" 4314#include "confdefs.h" 4315/* System header to define __stub macros and hopefully few prototypes, 4316 which can conflict with char $ac_func(); below. */ 4317#include <assert.h> 4318/* Override any gcc2 internal prototype to avoid an error. */ 4319/* We use char because int might match the return type of a gcc2 4320 builtin and then its argument prototype would still apply. */ 4321char $ac_func(); 4322 4323int main() { 4324 4325/* The GNU C library defines this for functions which it implements 4326 to always fail with ENOSYS. Some functions are actually named 4327 something starting with __ and the normal name is an alias. */ 4328#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4329choke me 4330#else 4331$ac_func(); 4332#endif 4333 4334; return 0; } 4335EOF 4336if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4337 rm -rf conftest* 4338 eval "ac_cv_func_$ac_func=yes" 4339else 4340 echo "configure: failed program was:" >&5 4341 cat conftest.$ac_ext >&5 4342 rm -rf conftest* 4343 eval "ac_cv_func_$ac_func=no" 4344fi 4345rm -f conftest* 4346fi 4347 4348if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4349 echo "$ac_t""yes" 1>&6 4350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4351 cat >> confdefs.h <<EOF 4352#define $ac_tr_func 1 4353EOF 4354 4355else 4356 echo "$ac_t""no" 1>&6 4357LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 4358fi 4359done 4360 4361 4362 4363if test "x$prefix" = xNONE; then 4364 sysconfdir_x=`echo $sysconfdir | sed -e 's,${prefix},'"$ac_default_prefix,"` 4365else 4366 sysconfdir_x=`echo $sysconfdir | sed -e 's,${prefix},'"$prefix,"` 4367 4368fi 4369 4370 4371for ac_func in getifaddrs 4372do 4373echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4374echo "configure:4365: checking for $ac_func" >&5 4375if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4376 echo $ac_n "(cached) $ac_c" 1>&6 4377else 4378 cat > conftest.$ac_ext <<EOF 4379#line 4370 "configure" 4380#include "confdefs.h" 4381/* System header to define __stub macros and hopefully few prototypes, 4382 which can conflict with char $ac_func(); below. */ 4383#include <assert.h> 4384/* Override any gcc2 internal prototype to avoid an error. */ 4385/* We use char because int might match the return type of a gcc2 4386 builtin and then its argument prototype would still apply. */ 4387char $ac_func(); 4388 4389int main() { 4390 4391/* The GNU C library defines this for functions which it implements 4392 to always fail with ENOSYS. Some functions are actually named 4393 something starting with __ and the normal name is an alias. */ 4394#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4395choke me 4396#else 4397$ac_func(); 4398#endif 4399 4400; return 0; } 4401EOF 4402if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4403 rm -rf conftest* 4404 eval "ac_cv_func_$ac_func=yes" 4405else 4406 echo "configure: failed program was:" >&5 4407 cat conftest.$ac_ext >&5 4408 rm -rf conftest* 4409 eval "ac_cv_func_$ac_func=no" 4410fi 4411rm -f conftest* 4412fi 4413 4414if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4415 echo "$ac_t""yes" 1>&6 4416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4417 cat >> confdefs.h <<EOF 4418#define $ac_tr_func 1 4419EOF 4420 4421else 4422 echo "$ac_t""no" 1>&6 4423fi 4424done 4425 4426 4427echo $ac_n "checking if --with-pkgversion option is specified""... $ac_c" 1>&6 4428echo "configure:4419: checking if --with-pkgversion option is specified" >&5 4429# Check whether --with-pkgversion or --without-pkgversion was given. 4430if test "${with_pkgversion+set}" = set; then 4431 withval="$with_pkgversion" 4432 echo "$ac_t""$withval" 1>&6 4433 CPPFLAGS="$CPPFLAGS -DRACOON_PKG_VERSION=\"\\\"$withval\\\"\"" 4434else 4435 echo "$ac_t""no" 1>&6 4436 pkgversion=no 4437fi 4438 4439 4440trap '' 1 2 15 4441cat > confcache <<\EOF 4442# This file is a shell script that caches the results of configure 4443# tests run on this system so they can be shared between configure 4444# scripts and configure runs. It is not useful on other systems. 4445# If it contains results you don't want to keep, you may remove or edit it. 4446# 4447# By default, configure uses ./config.cache as the cache file, 4448# creating it if it does not exist already. You can give configure 4449# the --cache-file=FILE option to use a different cache file; that is 4450# what configure does when it calls configure scripts in 4451# subdirectories, so they share the cache. 4452# Giving --cache-file=/dev/null disables caching, for debugging configure. 4453# config.status only pays attention to the cache file if you give it the 4454# --recheck option to rerun configure. 4455# 4456EOF 4457# The following way of writing the cache mishandles newlines in values, 4458# but we know of no workaround that is simple, portable, and efficient. 4459# So, don't put newlines in cache variables' values. 4460# Ultrix sh set writes to stderr and can't be redirected directly, 4461# and sets the high bit in the cache file unless we assign to the vars. 4462(set) 2>&1 | 4463 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4464 *ac_space=\ *) 4465 # `set' does not quote correctly, so add quotes (double-quote substitution 4466 # turns \\\\ into \\, and sed turns \\ into \). 4467 sed -n \ 4468 -e "s/'/'\\\\''/g" \ 4469 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4470 ;; 4471 *) 4472 # `set' quotes correctly as required by POSIX, so do not add quotes. 4473 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4474 ;; 4475 esac >> confcache 4476if cmp -s $cache_file confcache; then 4477 : 4478else 4479 if test -w $cache_file; then 4480 echo "updating cache $cache_file" 4481 cat confcache > $cache_file 4482 else 4483 echo "not updating unwritable cache $cache_file" 4484 fi 4485fi 4486rm -f confcache 4487 4488trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4489 4490test "x$prefix" = xNONE && prefix=$ac_default_prefix 4491# Let make expand exec_prefix. 4492test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4493 4494# Any assignment to VPATH causes Sun make to only execute 4495# the first set of double-colon rules, so remove it if not needed. 4496# If there is a colon in the path, we need to keep it. 4497if test "x$srcdir" = x.; then 4498 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4499fi 4500 4501trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4502 4503# Transform confdefs.h into DEFS. 4504# Protect against shell expansion while executing Makefile rules. 4505# Protect against Makefile macro expansion. 4506cat > conftest.defs <<\EOF 4507s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 4508s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 4509s%\[%\\&%g 4510s%\]%\\&%g 4511s%\$%$$%g 4512EOF 4513DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 4514rm -f conftest.defs 4515 4516 4517# Without the "./", some shells look in PATH for config.status. 4518: ${CONFIG_STATUS=./config.status} 4519 4520echo creating $CONFIG_STATUS 4521rm -f $CONFIG_STATUS 4522cat > $CONFIG_STATUS <<EOF 4523#! /bin/sh 4524# Generated automatically by configure. 4525# Run this file to recreate the current configuration. 4526# This directory was configured as follows, 4527# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4528# 4529# $0 $ac_configure_args 4530# 4531# Compiler output produced by configure, useful for debugging 4532# configure, is in ./config.log if it exists. 4533 4534ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4535for ac_option 4536do 4537 case "\$ac_option" in 4538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4539 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4540 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4541 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4542 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4543 exit 0 ;; 4544 -help | --help | --hel | --he | --h) 4545 echo "\$ac_cs_usage"; exit 0 ;; 4546 *) echo "\$ac_cs_usage"; exit 1 ;; 4547 esac 4548done 4549 4550ac_given_srcdir=$srcdir 4551ac_given_INSTALL="$INSTALL" 4552 4553trap 'rm -fr `echo "Makefile samples/psk.txt samples/racoon.conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4554EOF 4555cat >> $CONFIG_STATUS <<EOF 4556 4557# Protect against being on the right side of a sed subst in config.status. 4558sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4559 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4560$ac_vpsub 4561$extrasub 4562s%@SHELL@%$SHELL%g 4563s%@CFLAGS@%$CFLAGS%g 4564s%@CPPFLAGS@%$CPPFLAGS%g 4565s%@CXXFLAGS@%$CXXFLAGS%g 4566s%@FFLAGS@%$FFLAGS%g 4567s%@DEFS@%$DEFS%g 4568s%@LDFLAGS@%$LDFLAGS%g 4569s%@LIBS@%$LIBS%g 4570s%@exec_prefix@%$exec_prefix%g 4571s%@prefix@%$prefix%g 4572s%@program_transform_name@%$program_transform_name%g 4573s%@bindir@%$bindir%g 4574s%@sbindir@%$sbindir%g 4575s%@libexecdir@%$libexecdir%g 4576s%@datadir@%$datadir%g 4577s%@sysconfdir@%$sysconfdir%g 4578s%@sharedstatedir@%$sharedstatedir%g 4579s%@localstatedir@%$localstatedir%g 4580s%@libdir@%$libdir%g 4581s%@includedir@%$includedir%g 4582s%@oldincludedir@%$oldincludedir%g 4583s%@infodir@%$infodir%g 4584s%@mandir@%$mandir%g 4585s%@CC@%$CC%g 4586s%@CPP@%$CPP%g 4587s%@LEX@%$LEX%g 4588s%@LEXLIB@%$LEXLIB%g 4589s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4590s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4591s%@INSTALL_DATA@%$INSTALL_DATA%g 4592s%@SET_MAKE@%$SET_MAKE%g 4593s%@host@%$host%g 4594s%@host_alias@%$host_alias%g 4595s%@host_cpu@%$host_cpu%g 4596s%@host_vendor@%$host_vendor%g 4597s%@host_os@%$host_os%g 4598s%@OPTFLAG@%$OPTFLAG%g 4599s%@DEBUGRMOBJS@%$DEBUGRMOBJS%g 4600s%@LIBOBJS@%$LIBOBJS%g 4601s%@CRYPTOBJS@%$CRYPTOBJS%g 4602s%@sysconfdir_x@%$sysconfdir_x%g 4603 4604CEOF 4605EOF 4606 4607cat >> $CONFIG_STATUS <<\EOF 4608 4609# Split the substitutions into bite-sized pieces for seds with 4610# small command number limits, like on Digital OSF/1 and HP-UX. 4611ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4612ac_file=1 # Number of current file. 4613ac_beg=1 # First line for current file. 4614ac_end=$ac_max_sed_cmds # Line after last line for current file. 4615ac_more_lines=: 4616ac_sed_cmds="" 4617while $ac_more_lines; do 4618 if test $ac_beg -gt 1; then 4619 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4620 else 4621 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4622 fi 4623 if test ! -s conftest.s$ac_file; then 4624 ac_more_lines=false 4625 rm -f conftest.s$ac_file 4626 else 4627 if test -z "$ac_sed_cmds"; then 4628 ac_sed_cmds="sed -f conftest.s$ac_file" 4629 else 4630 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4631 fi 4632 ac_file=`expr $ac_file + 1` 4633 ac_beg=$ac_end 4634 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4635 fi 4636done 4637if test -z "$ac_sed_cmds"; then 4638 ac_sed_cmds=cat 4639fi 4640EOF 4641 4642cat >> $CONFIG_STATUS <<EOF 4643 4644CONFIG_FILES=\${CONFIG_FILES-"Makefile samples/psk.txt samples/racoon.conf"} 4645EOF 4646cat >> $CONFIG_STATUS <<\EOF 4647for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4649 case "$ac_file" in 4650 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4651 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4652 *) ac_file_in="${ac_file}.in" ;; 4653 esac 4654 4655 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4656 4657 # Remove last slash and all that follows it. Not all systems have dirname. 4658 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4659 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4660 # The file is in a subdirectory. 4661 test ! -d "$ac_dir" && mkdir "$ac_dir" 4662 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4663 # A "../" for each directory in $ac_dir_suffix. 4664 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4665 else 4666 ac_dir_suffix= ac_dots= 4667 fi 4668 4669 case "$ac_given_srcdir" in 4670 .) srcdir=. 4671 if test -z "$ac_dots"; then top_srcdir=. 4672 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4673 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4674 *) # Relative path. 4675 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4676 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4677 esac 4678 4679 case "$ac_given_INSTALL" in 4680 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4681 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4682 esac 4683 4684 echo creating "$ac_file" 4685 rm -f "$ac_file" 4686 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4687 case "$ac_file" in 4688 *Makefile*) ac_comsub="1i\\ 4689# $configure_input" ;; 4690 *) ac_comsub= ;; 4691 esac 4692 4693 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4694 sed -e "$ac_comsub 4695s%@configure_input@%$configure_input%g 4696s%@srcdir@%$srcdir%g 4697s%@top_srcdir@%$top_srcdir%g 4698s%@INSTALL@%$INSTALL%g 4699" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4700fi; done 4701rm -f conftest.s* 4702 4703EOF 4704cat >> $CONFIG_STATUS <<EOF 4705 4706EOF 4707cat >> $CONFIG_STATUS <<\EOF 4708 4709exit 0 4710EOF 4711chmod +x $CONFIG_STATUS 4712rm -fr confdefs* $ac_clean_files 4713test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4714 4715