configure revision 146773
117680Spst#! /bin/sh 2146773Ssam# From configure.in Revision: 1.188 . 3127668Sbms# Guess values for system-dependent variables and create Makefiles. 4127668Sbms# Generated by GNU Autoconf 2.57. 5111726Sfenner# 6127668Sbms# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 7127668Sbms# Free Software Foundation, Inc. 8127668Sbms# This configure script is free software; the Free Software Foundation 9127668Sbms# gives unlimited permission to copy, distribute and modify it. 10127668Sbms## --------------------- ## 11127668Sbms## M4sh Initialization. ## 12127668Sbms## --------------------- ## 1375115Sfenner 14127668Sbms# Be Bourne compatible 15127668Sbmsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16127668Sbms emulate sh 17127668Sbms NULLCMD=: 18127668Sbms # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19127668Sbms # is contrary to our usage. Disable this feature. 20127668Sbms alias -g '${1+"$@"}'='"$@"' 21127668Sbmselif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22127668Sbms set -o posix 23127668Sbmsfi 2475115Sfenner 25127668Sbms# Support unset when possible. 26127668Sbmsif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 27127668Sbms as_unset=unset 28127668Sbmselse 29127668Sbms as_unset=false 30127668Sbmsfi 3175115Sfenner 3275115Sfenner 33127668Sbms# Work around bugs in pre-3.0 UWIN ksh. 34127668Sbms$as_unset ENV MAIL MAILPATH 35127668SbmsPS1='$ ' 36127668SbmsPS2='> ' 37127668SbmsPS4='+ ' 3875115Sfenner 39127668Sbms# NLS nuisances. 40127668Sbmsfor as_var in \ 41127668Sbms LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42127668Sbms LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43127668Sbms LC_TELEPHONE LC_TIME 44127668Sbmsdo 45127668Sbms if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 46127668Sbms eval $as_var=C; export $as_var 47127668Sbms else 48127668Sbms $as_unset $as_var 49127668Sbms fi 50127668Sbmsdone 5175115Sfenner 52127668Sbms# Required to use basename. 53127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then 54127668Sbms as_expr=expr 55127668Sbmselse 56127668Sbms as_expr=false 57127668Sbmsfi 5875115Sfenner 59127668Sbmsif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60127668Sbms as_basename=basename 61127668Sbmselse 62127668Sbms as_basename=false 63127668Sbmsfi 6475115Sfenner 6575115Sfenner 66127668Sbms# Name of the executable. 67127668Sbmsas_me=`$as_basename "$0" || 68127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69127668Sbms X"$0" : 'X\(//\)$' \| \ 70127668Sbms X"$0" : 'X\(/\)$' \| \ 71127668Sbms . : '\(.\)' 2>/dev/null || 72127668Sbmsecho X/"$0" | 73127668Sbms sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74127668Sbms /^X\/\(\/\/\)$/{ s//\1/; q; } 75127668Sbms /^X\/\(\/\).*/{ s//\1/; q; } 76127668Sbms s/.*/./; q'` 7775115Sfenner 7875115Sfenner 79127668Sbms# PATH needs CR, and LINENO needs CR and PATH. 80127668Sbms# Avoid depending upon Character Ranges. 81127668Sbmsas_cr_letters='abcdefghijklmnopqrstuvwxyz' 82127668Sbmsas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83127668Sbmsas_cr_Letters=$as_cr_letters$as_cr_LETTERS 84127668Sbmsas_cr_digits='0123456789' 85127668Sbmsas_cr_alnum=$as_cr_Letters$as_cr_digits 8675115Sfenner 87127668Sbms# The user is always right. 88127668Sbmsif test "${PATH_SEPARATOR+set}" != set; then 89127668Sbms echo "#! /bin/sh" >conf$$.sh 90127668Sbms echo "exit 0" >>conf$$.sh 91127668Sbms chmod +x conf$$.sh 92127668Sbms if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93127668Sbms PATH_SEPARATOR=';' 94127668Sbms else 95127668Sbms PATH_SEPARATOR=: 96127668Sbms fi 97127668Sbms rm -f conf$$.sh 98127668Sbmsfi 9975115Sfenner 10075115Sfenner 101127668Sbms as_lineno_1=$LINENO 102127668Sbms as_lineno_2=$LINENO 103127668Sbms as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104127668Sbms test "x$as_lineno_1" != "x$as_lineno_2" && 105127668Sbms test "x$as_lineno_3" = "x$as_lineno_2" || { 106127668Sbms # Find who we are. Look in the path if we contain no path at all 107127668Sbms # relative or not. 108127668Sbms case $0 in 109127668Sbms *[\\/]* ) as_myself=$0 ;; 110127668Sbms *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111127668Sbmsfor as_dir in $PATH 112127668Sbmsdo 113127668Sbms IFS=$as_save_IFS 114127668Sbms test -z "$as_dir" && as_dir=. 115127668Sbms test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116127668Sbmsdone 11775115Sfenner 118127668Sbms ;; 119127668Sbms esac 120127668Sbms # We did not find ourselves, most probably we were run as `sh COMMAND' 121127668Sbms # in which case we are not to be found in the path. 122127668Sbms if test "x$as_myself" = x; then 123127668Sbms as_myself=$0 124127668Sbms fi 125127668Sbms if test ! -f "$as_myself"; then 126127668Sbms { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127127668Sbms { (exit 1); exit 1; }; } 128127668Sbms fi 129127668Sbms case $CONFIG_SHELL in 130127668Sbms '') 131127668Sbms as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133127668Sbmsdo 134127668Sbms IFS=$as_save_IFS 135127668Sbms test -z "$as_dir" && as_dir=. 136127668Sbms for as_base in sh bash ksh sh5; do 137127668Sbms case $as_dir in 138127668Sbms /*) 139127668Sbms if ("$as_dir/$as_base" -c ' 140127668Sbms as_lineno_1=$LINENO 141127668Sbms as_lineno_2=$LINENO 142127668Sbms as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143127668Sbms test "x$as_lineno_1" != "x$as_lineno_2" && 144127668Sbms test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145127668Sbms $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146127668Sbms $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147127668Sbms CONFIG_SHELL=$as_dir/$as_base 148127668Sbms export CONFIG_SHELL 149127668Sbms exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150127668Sbms fi;; 151127668Sbms esac 152127668Sbms done 153127668Sbmsdone 154127668Sbms;; 155127668Sbms esac 15675115Sfenner 157127668Sbms # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158127668Sbms # uniformly replaced by the line number. The first 'sed' inserts a 159127668Sbms # line-number line before each line; the second 'sed' does the real 160127668Sbms # work. The second script uses 'N' to pair each line-number line 161127668Sbms # with the numbered line, and appends trailing '-' during 162127668Sbms # substitution so that $LINENO is not a special case at line end. 163127668Sbms # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164127668Sbms # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165127668Sbms sed '=' <$as_myself | 166127668Sbms sed ' 167127668Sbms N 168127668Sbms s,$,-, 169127668Sbms : loop 170127668Sbms s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171127668Sbms t loop 172127668Sbms s,-$,, 173127668Sbms s,^['$as_cr_digits']*\n,, 174127668Sbms ' >$as_me.lineno && 175127668Sbms chmod +x $as_me.lineno || 176127668Sbms { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177127668Sbms { (exit 1); exit 1; }; } 17875115Sfenner 179127668Sbms # Don't try to exec as it changes $[0], causing all sort of problems 180127668Sbms # (the dirname of $[0] is not the place where we might find the 181127668Sbms # original and so on. Autoconf is especially sensible to this). 182127668Sbms . ./$as_me.lineno 183127668Sbms # Exit status is that of the last command. 184127668Sbms exit 185127668Sbms} 18675115Sfenner 18775115Sfenner 188127668Sbmscase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189127668Sbms *c*,-n*) ECHO_N= ECHO_C=' 190127668Sbms' ECHO_T=' ' ;; 191127668Sbms *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192127668Sbms *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193127668Sbmsesac 19475115Sfenner 195127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then 196127668Sbms as_expr=expr 197127668Sbmselse 198127668Sbms as_expr=false 199127668Sbmsfi 20075115Sfenner 201127668Sbmsrm -f conf$$ conf$$.exe conf$$.file 202127668Sbmsecho >conf$$.file 203127668Sbmsif ln -s conf$$.file conf$$ 2>/dev/null; then 204127668Sbms # We could just check for DJGPP; but this test a) works b) is more generic 205127668Sbms # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206127668Sbms if test -f conf$$.exe; then 207127668Sbms # Don't use ln at all; we don't have any links 208127668Sbms as_ln_s='cp -p' 209127668Sbms else 210127668Sbms as_ln_s='ln -s' 211127668Sbms fi 212127668Sbmselif ln conf$$.file conf$$ 2>/dev/null; then 213127668Sbms as_ln_s=ln 214127668Sbmselse 215127668Sbms as_ln_s='cp -p' 216127668Sbmsfi 217127668Sbmsrm -f conf$$ conf$$.exe conf$$.file 21875115Sfenner 219127668Sbmsif mkdir -p . 2>/dev/null; then 220127668Sbms as_mkdir_p=: 221127668Sbmselse 222127668Sbms as_mkdir_p=false 223127668Sbmsfi 22475115Sfenner 225127668Sbmsas_executable_p="test -f" 22675115Sfenner 227127668Sbms# Sed expression to map a string onto a valid CPP name. 228127668Sbmsas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22975115Sfenner 230127668Sbms# Sed expression to map a string onto a valid variable name. 231127668Sbmsas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 23275115Sfenner 23375115Sfenner 234127668Sbms# IFS 235127668Sbms# We need space, tab and new line, in precisely that order. 236127668Sbmsas_nl=' 237127668Sbms' 238127668SbmsIFS=" $as_nl" 23975115Sfenner 240127668Sbms# CDPATH. 241127668Sbms$as_unset CDPATH 24275115Sfenner 24375115Sfenner 244127668Sbms# Name of the host. 245127668Sbms# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246127668Sbms# so uname gets run too. 247127668Sbmsac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 24875115Sfenner 249127668Sbmsexec 6>&1 25075115Sfenner 251127668Sbms# 252127668Sbms# Initializations. 253127668Sbms# 254127668Sbmsac_default_prefix=/usr/local 255127668Sbmsac_config_libobj_dir=. 256127668Sbmscross_compiling=no 257127668Sbmssubdirs= 258127668SbmsMFLAGS= 259127668SbmsMAKEFLAGS= 260127668SbmsSHELL=${CONFIG_SHELL-/bin/sh} 26175115Sfenner 262127668Sbms# Maximum number of lines to put in a shell here document. 263127668Sbms# This variable seems obsolete. It should probably be removed, and 264127668Sbms# only ac_max_sed_lines should be used. 265127668Sbms: ${ac_max_here_lines=38} 26675115Sfenner 267127668Sbms# Identity of this package. 268127668SbmsPACKAGE_NAME= 269127668SbmsPACKAGE_TARNAME= 270127668SbmsPACKAGE_VERSION= 271127668SbmsPACKAGE_STRING= 272127668SbmsPACKAGE_BUGREPORT= 27375115Sfenner 274127668Sbmsac_unique_file="tcpdump.c" 275127668Sbms# Factoring default headers for most tests. 276127668Sbmsac_includes_default="\ 277127668Sbms#include <stdio.h> 278127668Sbms#if HAVE_SYS_TYPES_H 279127668Sbms# include <sys/types.h> 280127668Sbms#endif 281127668Sbms#if HAVE_SYS_STAT_H 282127668Sbms# include <sys/stat.h> 283127668Sbms#endif 284127668Sbms#if STDC_HEADERS 285127668Sbms# include <stdlib.h> 286127668Sbms# include <stddef.h> 287127668Sbms#else 288127668Sbms# if HAVE_STDLIB_H 289127668Sbms# include <stdlib.h> 290127668Sbms# endif 291127668Sbms#endif 292127668Sbms#if HAVE_STRING_H 293127668Sbms# if !STDC_HEADERS && HAVE_MEMORY_H 294127668Sbms# include <memory.h> 295127668Sbms# endif 296127668Sbms# include <string.h> 297127668Sbms#endif 298127668Sbms#if HAVE_STRINGS_H 299127668Sbms# include <strings.h> 300127668Sbms#endif 301127668Sbms#if HAVE_INTTYPES_H 302127668Sbms# include <inttypes.h> 303127668Sbms#else 304127668Sbms# if HAVE_STDINT_H 305127668Sbms# include <stdint.h> 306127668Sbms# endif 307127668Sbms#endif 308127668Sbms#if HAVE_UNISTD_H 309127668Sbms# include <unistd.h> 310127668Sbms#endif" 31175115Sfenner 312127668Sbmsac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS' 313127668Sbmsac_subst_files='' 31475115Sfenner 31517680Spst# Initialize some variables set by options. 316127668Sbmsac_init_help= 317127668Sbmsac_init_version=false 31817680Spst# The variables have the same names as the options, with 31917680Spst# dashes changed to underlines. 320127668Sbmscache_file=/dev/null 32117680Spstexec_prefix=NONE 32217680Spstno_create= 32317680Spstno_recursion= 32417680Spstprefix=NONE 32517680Spstprogram_prefix=NONE 32617680Spstprogram_suffix=NONE 32717680Spstprogram_transform_name=s,x,x, 32817680Spstsilent= 32917680Spstsite= 33017680Spstsrcdir= 33117680Spstverbose= 33217680Spstx_includes=NONE 33317680Spstx_libraries=NONE 334127668Sbms 335127668Sbms# Installation directory options. 336127668Sbms# These are left unexpanded so users can "make install exec_prefix=/foo" 337127668Sbms# and all the variables that are supposed to be based on exec_prefix 338127668Sbms# by default will actually change. 339127668Sbms# Use braces instead of parens because sh, perl, etc. also accept them. 34017680Spstbindir='${exec_prefix}/bin' 34117680Spstsbindir='${exec_prefix}/sbin' 34217680Spstlibexecdir='${exec_prefix}/libexec' 34317680Spstdatadir='${prefix}/share' 34417680Spstsysconfdir='${prefix}/etc' 34517680Spstsharedstatedir='${prefix}/com' 34617680Spstlocalstatedir='${prefix}/var' 34717680Spstlibdir='${exec_prefix}/lib' 34817680Spstincludedir='${prefix}/include' 34917680Spstoldincludedir='/usr/include' 35017680Spstinfodir='${prefix}/info' 35117680Spstmandir='${prefix}/man' 35217680Spst 35317680Spstac_prev= 35417680Spstfor ac_option 35517680Spstdo 35617680Spst # If the previous option needs an argument, assign it. 35717680Spst if test -n "$ac_prev"; then 35817680Spst eval "$ac_prev=\$ac_option" 35917680Spst ac_prev= 36017680Spst continue 36117680Spst fi 36217680Spst 363127668Sbms ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 36417680Spst 36517680Spst # Accept the important Cygnus configure options, so we can diagnose typos. 36617680Spst 367127668Sbms case $ac_option in 36817680Spst 36917680Spst -bindir | --bindir | --bindi | --bind | --bin | --bi) 37017680Spst ac_prev=bindir ;; 37117680Spst -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372127668Sbms bindir=$ac_optarg ;; 37317680Spst 37417680Spst -build | --build | --buil | --bui | --bu) 375127668Sbms ac_prev=build_alias ;; 37617680Spst -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377127668Sbms build_alias=$ac_optarg ;; 37817680Spst 37917680Spst -cache-file | --cache-file | --cache-fil | --cache-fi \ 38017680Spst | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 38117680Spst ac_prev=cache_file ;; 38217680Spst -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 38317680Spst | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384127668Sbms cache_file=$ac_optarg ;; 38517680Spst 386127668Sbms --config-cache | -C) 387127668Sbms cache_file=config.cache ;; 388127668Sbms 38917680Spst -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 39017680Spst ac_prev=datadir ;; 39117680Spst -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 39217680Spst | --da=*) 393127668Sbms datadir=$ac_optarg ;; 39417680Spst 39517680Spst -disable-* | --disable-*) 396127668Sbms ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 39717680Spst # Reject names that are not valid shell variable names. 398127668Sbms expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399127668Sbms { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400127668Sbms { (exit 1); exit 1; }; } 401127668Sbms ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402127668Sbms eval "enable_$ac_feature=no" ;; 40317680Spst 40417680Spst -enable-* | --enable-*) 405127668Sbms ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 40617680Spst # Reject names that are not valid shell variable names. 407127668Sbms expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408127668Sbms { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409127668Sbms { (exit 1); exit 1; }; } 410127668Sbms ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411127668Sbms case $ac_option in 412127668Sbms *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 41317680Spst *) ac_optarg=yes ;; 41417680Spst esac 415127668Sbms eval "enable_$ac_feature='$ac_optarg'" ;; 41617680Spst 41717680Spst -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 41817680Spst | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 41917680Spst | --exec | --exe | --ex) 42017680Spst ac_prev=exec_prefix ;; 42117680Spst -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 42217680Spst | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 42317680Spst | --exec=* | --exe=* | --ex=*) 424127668Sbms exec_prefix=$ac_optarg ;; 42517680Spst 42617680Spst -gas | --gas | --ga | --g) 42717680Spst # Obsolete; use --with-gas. 42817680Spst with_gas=yes ;; 42917680Spst 430127668Sbms -help | --help | --hel | --he | -h) 431127668Sbms ac_init_help=long ;; 432127668Sbms -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433127668Sbms ac_init_help=recursive ;; 434127668Sbms -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435127668Sbms ac_init_help=short ;; 43617680Spst 43717680Spst -host | --host | --hos | --ho) 438127668Sbms ac_prev=host_alias ;; 43917680Spst -host=* | --host=* | --hos=* | --ho=*) 440127668Sbms host_alias=$ac_optarg ;; 44117680Spst 44217680Spst -includedir | --includedir | --includedi | --included | --include \ 44317680Spst | --includ | --inclu | --incl | --inc) 44417680Spst ac_prev=includedir ;; 44517680Spst -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 44617680Spst | --includ=* | --inclu=* | --incl=* | --inc=*) 447127668Sbms includedir=$ac_optarg ;; 44817680Spst 44917680Spst -infodir | --infodir | --infodi | --infod | --info | --inf) 45017680Spst ac_prev=infodir ;; 45117680Spst -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452127668Sbms infodir=$ac_optarg ;; 45317680Spst 45417680Spst -libdir | --libdir | --libdi | --libd) 45517680Spst ac_prev=libdir ;; 45617680Spst -libdir=* | --libdir=* | --libdi=* | --libd=*) 457127668Sbms libdir=$ac_optarg ;; 45817680Spst 45917680Spst -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 46017680Spst | --libexe | --libex | --libe) 46117680Spst ac_prev=libexecdir ;; 46217680Spst -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 46317680Spst | --libexe=* | --libex=* | --libe=*) 464127668Sbms libexecdir=$ac_optarg ;; 46517680Spst 46617680Spst -localstatedir | --localstatedir | --localstatedi | --localstated \ 46717680Spst | --localstate | --localstat | --localsta | --localst \ 46817680Spst | --locals | --local | --loca | --loc | --lo) 46917680Spst ac_prev=localstatedir ;; 47017680Spst -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 47117680Spst | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 47217680Spst | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473127668Sbms localstatedir=$ac_optarg ;; 47417680Spst 47517680Spst -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 47617680Spst ac_prev=mandir ;; 47717680Spst -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478127668Sbms mandir=$ac_optarg ;; 47917680Spst 48017680Spst -nfp | --nfp | --nf) 48117680Spst # Obsolete; use --without-fp. 48217680Spst with_fp=no ;; 48317680Spst 48417680Spst -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485127668Sbms | --no-cr | --no-c | -n) 48617680Spst no_create=yes ;; 48717680Spst 48817680Spst -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 48917680Spst | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 49017680Spst no_recursion=yes ;; 49117680Spst 49217680Spst -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 49317680Spst | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 49417680Spst | --oldin | --oldi | --old | --ol | --o) 49517680Spst ac_prev=oldincludedir ;; 49617680Spst -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 49717680Spst | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 49817680Spst | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499127668Sbms oldincludedir=$ac_optarg ;; 50017680Spst 50117680Spst -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 50217680Spst ac_prev=prefix ;; 50317680Spst -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504127668Sbms prefix=$ac_optarg ;; 50517680Spst 50617680Spst -program-prefix | --program-prefix | --program-prefi | --program-pref \ 50717680Spst | --program-pre | --program-pr | --program-p) 50817680Spst ac_prev=program_prefix ;; 50917680Spst -program-prefix=* | --program-prefix=* | --program-prefi=* \ 51017680Spst | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511127668Sbms program_prefix=$ac_optarg ;; 51217680Spst 51317680Spst -program-suffix | --program-suffix | --program-suffi | --program-suff \ 51417680Spst | --program-suf | --program-su | --program-s) 51517680Spst ac_prev=program_suffix ;; 51617680Spst -program-suffix=* | --program-suffix=* | --program-suffi=* \ 51717680Spst | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518127668Sbms program_suffix=$ac_optarg ;; 51917680Spst 52017680Spst -program-transform-name | --program-transform-name \ 52117680Spst | --program-transform-nam | --program-transform-na \ 52217680Spst | --program-transform-n | --program-transform- \ 52317680Spst | --program-transform | --program-transfor \ 52417680Spst | --program-transfo | --program-transf \ 52517680Spst | --program-trans | --program-tran \ 52617680Spst | --progr-tra | --program-tr | --program-t) 52717680Spst ac_prev=program_transform_name ;; 52817680Spst -program-transform-name=* | --program-transform-name=* \ 52917680Spst | --program-transform-nam=* | --program-transform-na=* \ 53017680Spst | --program-transform-n=* | --program-transform-=* \ 53117680Spst | --program-transform=* | --program-transfor=* \ 53217680Spst | --program-transfo=* | --program-transf=* \ 53317680Spst | --program-trans=* | --program-tran=* \ 53417680Spst | --progr-tra=* | --program-tr=* | --program-t=*) 535127668Sbms program_transform_name=$ac_optarg ;; 53617680Spst 53717680Spst -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53817680Spst | -silent | --silent | --silen | --sile | --sil) 53917680Spst silent=yes ;; 54017680Spst 54117680Spst -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 54217680Spst ac_prev=sbindir ;; 54317680Spst -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 54417680Spst | --sbi=* | --sb=*) 545127668Sbms sbindir=$ac_optarg ;; 54617680Spst 54717680Spst -sharedstatedir | --sharedstatedir | --sharedstatedi \ 54817680Spst | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 54917680Spst | --sharedst | --shareds | --shared | --share | --shar \ 55017680Spst | --sha | --sh) 55117680Spst ac_prev=sharedstatedir ;; 55217680Spst -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 55317680Spst | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 55417680Spst | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 55517680Spst | --sha=* | --sh=*) 556127668Sbms sharedstatedir=$ac_optarg ;; 55717680Spst 55817680Spst -site | --site | --sit) 55917680Spst ac_prev=site ;; 56017680Spst -site=* | --site=* | --sit=*) 561127668Sbms site=$ac_optarg ;; 56217680Spst 56317680Spst -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 56417680Spst ac_prev=srcdir ;; 56517680Spst -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566127668Sbms srcdir=$ac_optarg ;; 56717680Spst 56817680Spst -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 56917680Spst | --syscon | --sysco | --sysc | --sys | --sy) 57017680Spst ac_prev=sysconfdir ;; 57117680Spst -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 57217680Spst | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573127668Sbms sysconfdir=$ac_optarg ;; 57417680Spst 57517680Spst -target | --target | --targe | --targ | --tar | --ta | --t) 576127668Sbms ac_prev=target_alias ;; 57717680Spst -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578127668Sbms target_alias=$ac_optarg ;; 57917680Spst 58017680Spst -v | -verbose | --verbose | --verbos | --verbo | --verb) 58117680Spst verbose=yes ;; 58217680Spst 583127668Sbms -version | --version | --versio | --versi | --vers | -V) 584127668Sbms ac_init_version=: ;; 58517680Spst 58617680Spst -with-* | --with-*) 587127668Sbms ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 58817680Spst # Reject names that are not valid shell variable names. 589127668Sbms expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590127668Sbms { echo "$as_me: error: invalid package name: $ac_package" >&2 591127668Sbms { (exit 1); exit 1; }; } 59217680Spst ac_package=`echo $ac_package| sed 's/-/_/g'` 593127668Sbms case $ac_option in 594127668Sbms *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 59517680Spst *) ac_optarg=yes ;; 59617680Spst esac 597127668Sbms eval "with_$ac_package='$ac_optarg'" ;; 59817680Spst 59917680Spst -without-* | --without-*) 600127668Sbms ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 60117680Spst # Reject names that are not valid shell variable names. 602127668Sbms expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603127668Sbms { echo "$as_me: error: invalid package name: $ac_package" >&2 604127668Sbms { (exit 1); exit 1; }; } 605127668Sbms ac_package=`echo $ac_package | sed 's/-/_/g'` 606127668Sbms eval "with_$ac_package=no" ;; 60717680Spst 60817680Spst --x) 60917680Spst # Obsolete; use --with-x. 61017680Spst with_x=yes ;; 61117680Spst 61217680Spst -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 61317680Spst | --x-incl | --x-inc | --x-in | --x-i) 61417680Spst ac_prev=x_includes ;; 61517680Spst -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 61617680Spst | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617127668Sbms x_includes=$ac_optarg ;; 61817680Spst 61917680Spst -x-libraries | --x-libraries | --x-librarie | --x-librari \ 62017680Spst | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 62117680Spst ac_prev=x_libraries ;; 62217680Spst -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 62317680Spst | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624127668Sbms x_libraries=$ac_optarg ;; 62517680Spst 626127668Sbms -*) { echo "$as_me: error: unrecognized option: $ac_option 627127668SbmsTry \`$0 --help' for more information." >&2 628127668Sbms { (exit 1); exit 1; }; } 62917680Spst ;; 63017680Spst 631127668Sbms *=*) 632127668Sbms ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633127668Sbms # Reject names that are not valid shell variable names. 634127668Sbms expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635127668Sbms { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636127668Sbms { (exit 1); exit 1; }; } 637127668Sbms ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638127668Sbms eval "$ac_envvar='$ac_optarg'" 639127668Sbms export $ac_envvar ;; 640127668Sbms 64117680Spst *) 642127668Sbms # FIXME: should be removed in autoconf 3.0. 643127668Sbms echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644127668Sbms expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645127668Sbms echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646127668Sbms : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 64717680Spst ;; 64817680Spst 64917680Spst esac 65017680Spstdone 65117680Spst 65217680Spstif test -n "$ac_prev"; then 653127668Sbms ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654127668Sbms { echo "$as_me: error: missing argument to $ac_option" >&2 655127668Sbms { (exit 1); exit 1; }; } 65617680Spstfi 65717680Spst 658127668Sbms# Be sure to have absolute paths. 659127668Sbmsfor ac_var in exec_prefix prefix 660127668Sbmsdo 661127668Sbms eval ac_val=$`echo $ac_var` 662127668Sbms case $ac_val in 663127668Sbms [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664127668Sbms *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665127668Sbms { (exit 1); exit 1; }; };; 666127668Sbms esac 667127668Sbmsdone 66817680Spst 669127668Sbms# Be sure to have absolute paths. 670127668Sbmsfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671127668Sbms localstatedir libdir includedir oldincludedir infodir mandir 67217680Spstdo 673127668Sbms eval ac_val=$`echo $ac_var` 674127668Sbms case $ac_val in 675127668Sbms [\\/$]* | ?:[\\/]* ) ;; 676127668Sbms *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677127668Sbms { (exit 1); exit 1; }; };; 67817680Spst esac 67917680Spstdone 68017680Spst 681127668Sbms# There might be people who depend on the old broken behavior: `$host' 682127668Sbms# used to hold the argument of --host etc. 683127668Sbms# FIXME: To remove some day. 684127668Sbmsbuild=$build_alias 685127668Sbmshost=$host_alias 686127668Sbmstarget=$target_alias 68717680Spst 688127668Sbms# FIXME: To remove some day. 689127668Sbmsif test "x$host_alias" != x; then 690127668Sbms if test "x$build_alias" = x; then 691127668Sbms cross_compiling=maybe 692127668Sbms echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693127668Sbms If a cross compiler is detected then cross compile mode will be used." >&2 694127668Sbms elif test "x$build_alias" != "x$host_alias"; then 695127668Sbms cross_compiling=yes 696127668Sbms fi 697127668Sbmsfi 69817680Spst 699127668Sbmsac_tool_prefix= 700127668Sbmstest -n "$host_alias" && ac_tool_prefix=$host_alias- 70117680Spst 702127668Sbmstest "$silent" = yes && exec 6>/dev/null 703127668Sbms 704127668Sbms 70517680Spst# Find the source files, if location was not specified. 70617680Spstif test -z "$srcdir"; then 70717680Spst ac_srcdir_defaulted=yes 70817680Spst # Try the directory containing this script, then its parent. 709127668Sbms ac_confdir=`(dirname "$0") 2>/dev/null || 710127668Sbms$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711127668Sbms X"$0" : 'X\(//\)[^/]' \| \ 712127668Sbms X"$0" : 'X\(//\)$' \| \ 713127668Sbms X"$0" : 'X\(/\)' \| \ 714127668Sbms . : '\(.\)' 2>/dev/null || 715127668Sbmsecho X"$0" | 716127668Sbms sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717127668Sbms /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718127668Sbms /^X\(\/\/\)$/{ s//\1/; q; } 719127668Sbms /^X\(\/\).*/{ s//\1/; q; } 720127668Sbms s/.*/./; q'` 72117680Spst srcdir=$ac_confdir 72217680Spst if test ! -r $srcdir/$ac_unique_file; then 72317680Spst srcdir=.. 72417680Spst fi 72517680Spstelse 72617680Spst ac_srcdir_defaulted=no 72717680Spstfi 72817680Spstif test ! -r $srcdir/$ac_unique_file; then 72917680Spst if test "$ac_srcdir_defaulted" = yes; then 730127668Sbms { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731127668Sbms { (exit 1); exit 1; }; } 73217680Spst else 733127668Sbms { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734127668Sbms { (exit 1); exit 1; }; } 73517680Spst fi 73617680Spstfi 737127668Sbms(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738127668Sbms { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739127668Sbms { (exit 1); exit 1; }; } 740127668Sbmssrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741127668Sbmsac_env_build_alias_set=${build_alias+set} 742127668Sbmsac_env_build_alias_value=$build_alias 743127668Sbmsac_cv_env_build_alias_set=${build_alias+set} 744127668Sbmsac_cv_env_build_alias_value=$build_alias 745127668Sbmsac_env_host_alias_set=${host_alias+set} 746127668Sbmsac_env_host_alias_value=$host_alias 747127668Sbmsac_cv_env_host_alias_set=${host_alias+set} 748127668Sbmsac_cv_env_host_alias_value=$host_alias 749127668Sbmsac_env_target_alias_set=${target_alias+set} 750127668Sbmsac_env_target_alias_value=$target_alias 751127668Sbmsac_cv_env_target_alias_set=${target_alias+set} 752127668Sbmsac_cv_env_target_alias_value=$target_alias 753127668Sbmsac_env_CC_set=${CC+set} 754127668Sbmsac_env_CC_value=$CC 755127668Sbmsac_cv_env_CC_set=${CC+set} 756127668Sbmsac_cv_env_CC_value=$CC 757127668Sbmsac_env_CFLAGS_set=${CFLAGS+set} 758127668Sbmsac_env_CFLAGS_value=$CFLAGS 759127668Sbmsac_cv_env_CFLAGS_set=${CFLAGS+set} 760127668Sbmsac_cv_env_CFLAGS_value=$CFLAGS 761127668Sbmsac_env_LDFLAGS_set=${LDFLAGS+set} 762127668Sbmsac_env_LDFLAGS_value=$LDFLAGS 763127668Sbmsac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764127668Sbmsac_cv_env_LDFLAGS_value=$LDFLAGS 765127668Sbmsac_env_CPPFLAGS_set=${CPPFLAGS+set} 766127668Sbmsac_env_CPPFLAGS_value=$CPPFLAGS 767127668Sbmsac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768127668Sbmsac_cv_env_CPPFLAGS_value=$CPPFLAGS 769127668Sbmsac_env_CPP_set=${CPP+set} 770127668Sbmsac_env_CPP_value=$CPP 771127668Sbmsac_cv_env_CPP_set=${CPP+set} 772127668Sbmsac_cv_env_CPP_value=$CPP 77317680Spst 774127668Sbms# 775127668Sbms# Report the --help message. 776127668Sbms# 777127668Sbmsif test "$ac_init_help" = "long"; then 778127668Sbms # Omit some internal or obsolete options to make the list less imposing. 779127668Sbms # This message is too long to be a string in the A/UX 3.1 sh. 780127668Sbms cat <<_ACEOF 781127668Sbms\`configure' configures this package to adapt to many kinds of systems. 782127668Sbms 783127668SbmsUsage: $0 [OPTION]... [VAR=VALUE]... 784127668Sbms 785127668SbmsTo assign environment variables (e.g., CC, CFLAGS...), specify them as 786127668SbmsVAR=VALUE. See below for descriptions of some of the useful variables. 787127668Sbms 788127668SbmsDefaults for the options are specified in brackets. 789127668Sbms 790127668SbmsConfiguration: 791127668Sbms -h, --help display this help and exit 792127668Sbms --help=short display options specific to this package 793127668Sbms --help=recursive display the short help of all the included packages 794127668Sbms -V, --version display version information and exit 795127668Sbms -q, --quiet, --silent do not print \`checking...' messages 796127668Sbms --cache-file=FILE cache test results in FILE [disabled] 797127668Sbms -C, --config-cache alias for \`--cache-file=config.cache' 798127668Sbms -n, --no-create do not create output files 799127668Sbms --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800127668Sbms 801127668Sbms_ACEOF 802127668Sbms 803127668Sbms cat <<_ACEOF 804127668SbmsInstallation directories: 805127668Sbms --prefix=PREFIX install architecture-independent files in PREFIX 806127668Sbms [$ac_default_prefix] 807127668Sbms --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808127668Sbms [PREFIX] 809127668Sbms 810127668SbmsBy default, \`make install' will install all the files in 811127668Sbms\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812127668Sbmsan installation prefix other than \`$ac_default_prefix' using \`--prefix', 813127668Sbmsfor instance \`--prefix=\$HOME'. 814127668Sbms 815127668SbmsFor better control, use the options below. 816127668Sbms 817127668SbmsFine tuning of the installation directories: 818127668Sbms --bindir=DIR user executables [EPREFIX/bin] 819127668Sbms --sbindir=DIR system admin executables [EPREFIX/sbin] 820127668Sbms --libexecdir=DIR program executables [EPREFIX/libexec] 821127668Sbms --datadir=DIR read-only architecture-independent data [PREFIX/share] 822127668Sbms --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823127668Sbms --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824127668Sbms --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825127668Sbms --libdir=DIR object code libraries [EPREFIX/lib] 826127668Sbms --includedir=DIR C header files [PREFIX/include] 827127668Sbms --oldincludedir=DIR C header files for non-gcc [/usr/include] 828127668Sbms --infodir=DIR info documentation [PREFIX/info] 829127668Sbms --mandir=DIR man documentation [PREFIX/man] 830127668Sbms_ACEOF 831127668Sbms 832127668Sbms cat <<\_ACEOF 833127668Sbms 834127668SbmsSystem types: 835127668Sbms --build=BUILD configure for building on BUILD [guessed] 836127668Sbms --host=HOST cross-compile to build programs to run on HOST [BUILD] 837127668Sbms_ACEOF 838127668Sbmsfi 839127668Sbms 840127668Sbmsif test -n "$ac_init_help"; then 841127668Sbms 842127668Sbms cat <<\_ACEOF 843127668Sbms 844127668SbmsOptional Features: 845127668Sbms --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846127668Sbms --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 847127668Sbms --enable-smb enable possibly-buggy SMB printer default=yes 848127668Sbms --disable-smb disable possibly-buggy SMB printer 849127668Sbms --enable-ipv6 enable ipv6 (with ipv4) support 850127668Sbms --disable-ipv6 disable ipv6 support 851127668Sbms 852127668SbmsOptional Packages: 853127668Sbms --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 854127668Sbms --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 855127668Sbms --without-gcc don't use gcc 856146773Ssam --with-user=USERNAME drop privileges by default to USERNAME 857146773Ssam --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 858127668Sbms --without-crypto disable crypto support 859127668Sbms 860127668SbmsSome influential environment variables: 861127668Sbms CC C compiler command 862127668Sbms CFLAGS C compiler flags 863127668Sbms LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 864127668Sbms nonstandard directory <lib dir> 865127668Sbms CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 866127668Sbms headers in a nonstandard directory <include dir> 867127668Sbms CPP C preprocessor 868127668Sbms 869127668SbmsUse these variables to override the choices made by `configure' or to help 870127668Sbmsit to find libraries and programs with nonstandard names/locations. 871127668Sbms 872127668Sbms_ACEOF 873127668Sbmsfi 874127668Sbms 875127668Sbmsif test "$ac_init_help" = "recursive"; then 876127668Sbms # If there are subdirs, report their specific --help. 877127668Sbms ac_popdir=`pwd` 878127668Sbms for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 879127668Sbms test -d $ac_dir || continue 880127668Sbms ac_builddir=. 881127668Sbms 882127668Sbmsif test "$ac_dir" != .; then 883127668Sbms ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 884127668Sbms # A "../" for each directory in $ac_dir_suffix. 885127668Sbms ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 886127668Sbmselse 887127668Sbms ac_dir_suffix= ac_top_builddir= 888127668Sbmsfi 889127668Sbms 890127668Sbmscase $srcdir in 891127668Sbms .) # No --srcdir option. We are building in place. 892127668Sbms ac_srcdir=. 893127668Sbms if test -z "$ac_top_builddir"; then 894127668Sbms ac_top_srcdir=. 895127668Sbms else 896127668Sbms ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 897127668Sbms fi ;; 898127668Sbms [\\/]* | ?:[\\/]* ) # Absolute path. 899127668Sbms ac_srcdir=$srcdir$ac_dir_suffix; 900127668Sbms ac_top_srcdir=$srcdir ;; 901127668Sbms *) # Relative path. 902127668Sbms ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 903127668Sbms ac_top_srcdir=$ac_top_builddir$srcdir ;; 904127668Sbmsesac 905127668Sbms# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 906127668Sbms# absolute. 907127668Sbmsac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 908127668Sbmsac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 909127668Sbmsac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 910127668Sbmsac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 911127668Sbms 912127668Sbms cd $ac_dir 913127668Sbms # Check for guested configure; otherwise get Cygnus style configure. 914127668Sbms if test -f $ac_srcdir/configure.gnu; then 915127668Sbms echo 916127668Sbms $SHELL $ac_srcdir/configure.gnu --help=recursive 917127668Sbms elif test -f $ac_srcdir/configure; then 918127668Sbms echo 919127668Sbms $SHELL $ac_srcdir/configure --help=recursive 920127668Sbms elif test -f $ac_srcdir/configure.ac || 921127668Sbms test -f $ac_srcdir/configure.in; then 922127668Sbms echo 923127668Sbms $ac_configure --help 924127668Sbms else 925127668Sbms echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 926127668Sbms fi 927127668Sbms cd $ac_popdir 928127668Sbms done 929127668Sbmsfi 930127668Sbms 931127668Sbmstest -n "$ac_init_help" && exit 0 932127668Sbmsif $ac_init_version; then 933127668Sbms cat <<\_ACEOF 934127668Sbms 935127668SbmsCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 936127668SbmsFree Software Foundation, Inc. 937127668SbmsThis configure script is free software; the Free Software Foundation 938127668Sbmsgives unlimited permission to copy, distribute and modify it. 939127668Sbms_ACEOF 940127668Sbms exit 0 941127668Sbmsfi 942127668Sbmsexec 5>config.log 943127668Sbmscat >&5 <<_ACEOF 944127668SbmsThis file contains any messages produced by compilers while 945127668Sbmsrunning configure, to aid debugging if configure makes a mistake. 946127668Sbms 947127668SbmsIt was created by $as_me, which was 948127668Sbmsgenerated by GNU Autoconf 2.57. Invocation command line was 949127668Sbms 950127668Sbms $ $0 $@ 951127668Sbms 952127668Sbms_ACEOF 953127668Sbms{ 954127668Sbmscat <<_ASUNAME 955127668Sbms## --------- ## 956127668Sbms## Platform. ## 957127668Sbms## --------- ## 958127668Sbms 959127668Sbmshostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 960127668Sbmsuname -m = `(uname -m) 2>/dev/null || echo unknown` 961127668Sbmsuname -r = `(uname -r) 2>/dev/null || echo unknown` 962127668Sbmsuname -s = `(uname -s) 2>/dev/null || echo unknown` 963127668Sbmsuname -v = `(uname -v) 2>/dev/null || echo unknown` 964127668Sbms 965127668Sbms/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 966127668Sbms/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 967127668Sbms 968127668Sbms/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 969127668Sbms/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 970127668Sbms/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 971127668Sbmshostinfo = `(hostinfo) 2>/dev/null || echo unknown` 972127668Sbms/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 973127668Sbms/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 974127668Sbms/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 975127668Sbms 976127668Sbms_ASUNAME 977127668Sbms 978127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 979127668Sbmsfor as_dir in $PATH 980127668Sbmsdo 981127668Sbms IFS=$as_save_IFS 982127668Sbms test -z "$as_dir" && as_dir=. 983127668Sbms echo "PATH: $as_dir" 984127668Sbmsdone 985127668Sbms 986127668Sbms} >&5 987127668Sbms 988127668Sbmscat >&5 <<_ACEOF 989127668Sbms 990127668Sbms 991127668Sbms## ----------- ## 992127668Sbms## Core tests. ## 993127668Sbms## ----------- ## 994127668Sbms 995127668Sbms_ACEOF 996127668Sbms 997127668Sbms 998127668Sbms# Keep a trace of the command line. 999127668Sbms# Strip out --no-create and --no-recursion so they do not pile up. 1000127668Sbms# Strip out --silent because we don't want to record it for future runs. 1001127668Sbms# Also quote any args containing shell meta-characters. 1002127668Sbms# Make two passes to allow for proper duplicate-argument suppression. 1003127668Sbmsac_configure_args= 1004127668Sbmsac_configure_args0= 1005127668Sbmsac_configure_args1= 1006127668Sbmsac_sep= 1007127668Sbmsac_must_keep_next=false 1008127668Sbmsfor ac_pass in 1 2 1009127668Sbmsdo 1010127668Sbms for ac_arg 1011127668Sbms do 1012127668Sbms case $ac_arg in 1013127668Sbms -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1014127668Sbms -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1015127668Sbms | -silent | --silent | --silen | --sile | --sil) 1016127668Sbms continue ;; 1017127668Sbms *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1018127668Sbms ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1019127668Sbms esac 1020127668Sbms case $ac_pass in 1021127668Sbms 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1022127668Sbms 2) 1023127668Sbms ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1024127668Sbms if test $ac_must_keep_next = true; then 1025127668Sbms ac_must_keep_next=false # Got value, back to normal. 1026127668Sbms else 1027127668Sbms case $ac_arg in 1028127668Sbms *=* | --config-cache | -C | -disable-* | --disable-* \ 1029127668Sbms | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1030127668Sbms | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1031127668Sbms | -with-* | --with-* | -without-* | --without-* | --x) 1032127668Sbms case "$ac_configure_args0 " in 1033127668Sbms "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1034127668Sbms esac 1035127668Sbms ;; 1036127668Sbms -* ) ac_must_keep_next=true ;; 1037127668Sbms esac 1038127668Sbms fi 1039127668Sbms ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1040127668Sbms # Get rid of the leading space. 1041127668Sbms ac_sep=" " 1042127668Sbms ;; 1043127668Sbms esac 1044127668Sbms done 1045127668Sbmsdone 1046127668Sbms$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1047127668Sbms$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1048127668Sbms 1049127668Sbms# When interrupted or exit'd, cleanup temporary files, and complete 1050127668Sbms# config.log. We remove comments because anyway the quotes in there 1051127668Sbms# would cause problems or look ugly. 1052127668Sbms# WARNING: Be sure not to use single quotes in there, as some shells, 1053127668Sbms# such as our DU 5.0 friend, will then `close' the trap. 1054127668Sbmstrap 'exit_status=$? 1055127668Sbms # Save into config.log some information that might help in debugging. 1056127668Sbms { 1057127668Sbms echo 1058127668Sbms 1059127668Sbms cat <<\_ASBOX 1060127668Sbms## ---------------- ## 1061127668Sbms## Cache variables. ## 1062127668Sbms## ---------------- ## 1063127668Sbms_ASBOX 1064127668Sbms echo 1065127668Sbms # The following way of writing the cache mishandles newlines in values, 1066127668Sbms{ 1067127668Sbms (set) 2>&1 | 1068127668Sbms case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1069127668Sbms *ac_space=\ *) 1070127668Sbms sed -n \ 1071127668Sbms "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1072127668Sbms s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1073127668Sbms ;; 1074127668Sbms *) 1075127668Sbms sed -n \ 1076127668Sbms "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1077127668Sbms ;; 1078127668Sbms esac; 1079127668Sbms} 1080127668Sbms echo 1081127668Sbms 1082127668Sbms cat <<\_ASBOX 1083127668Sbms## ----------------- ## 1084127668Sbms## Output variables. ## 1085127668Sbms## ----------------- ## 1086127668Sbms_ASBOX 1087127668Sbms echo 1088127668Sbms for ac_var in $ac_subst_vars 1089127668Sbms do 1090127668Sbms eval ac_val=$`echo $ac_var` 1091127668Sbms echo "$ac_var='"'"'$ac_val'"'"'" 1092127668Sbms done | sort 1093127668Sbms echo 1094127668Sbms 1095127668Sbms if test -n "$ac_subst_files"; then 1096127668Sbms cat <<\_ASBOX 1097127668Sbms## ------------- ## 1098127668Sbms## Output files. ## 1099127668Sbms## ------------- ## 1100127668Sbms_ASBOX 1101127668Sbms echo 1102127668Sbms for ac_var in $ac_subst_files 1103127668Sbms do 1104127668Sbms eval ac_val=$`echo $ac_var` 1105127668Sbms echo "$ac_var='"'"'$ac_val'"'"'" 1106127668Sbms done | sort 1107127668Sbms echo 1108127668Sbms fi 1109127668Sbms 1110127668Sbms if test -s confdefs.h; then 1111127668Sbms cat <<\_ASBOX 1112127668Sbms## ----------- ## 1113127668Sbms## confdefs.h. ## 1114127668Sbms## ----------- ## 1115127668Sbms_ASBOX 1116127668Sbms echo 1117127668Sbms sed "/^$/d" confdefs.h | sort 1118127668Sbms echo 1119127668Sbms fi 1120127668Sbms test "$ac_signal" != 0 && 1121127668Sbms echo "$as_me: caught signal $ac_signal" 1122127668Sbms echo "$as_me: exit $exit_status" 1123127668Sbms } >&5 1124127668Sbms rm -f core core.* *.core && 1125127668Sbms rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1126127668Sbms exit $exit_status 1127127668Sbms ' 0 1128127668Sbmsfor ac_signal in 1 2 13 15; do 1129127668Sbms trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1130127668Sbmsdone 1131127668Sbmsac_signal=0 1132127668Sbms 1133127668Sbms# confdefs.h avoids OS command line length limits that DEFS can exceed. 1134127668Sbmsrm -rf conftest* confdefs.h 1135127668Sbms# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1136127668Sbmsecho >confdefs.h 1137127668Sbms 1138127668Sbms# Predefined preprocessor variables. 1139127668Sbms 1140127668Sbmscat >>confdefs.h <<_ACEOF 1141127668Sbms#define PACKAGE_NAME "$PACKAGE_NAME" 1142127668Sbms_ACEOF 1143127668Sbms 1144127668Sbms 1145127668Sbmscat >>confdefs.h <<_ACEOF 1146127668Sbms#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1147127668Sbms_ACEOF 1148127668Sbms 1149127668Sbms 1150127668Sbmscat >>confdefs.h <<_ACEOF 1151127668Sbms#define PACKAGE_VERSION "$PACKAGE_VERSION" 1152127668Sbms_ACEOF 1153127668Sbms 1154127668Sbms 1155127668Sbmscat >>confdefs.h <<_ACEOF 1156127668Sbms#define PACKAGE_STRING "$PACKAGE_STRING" 1157127668Sbms_ACEOF 1158127668Sbms 1159127668Sbms 1160127668Sbmscat >>confdefs.h <<_ACEOF 1161127668Sbms#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1162127668Sbms_ACEOF 1163127668Sbms 1164127668Sbms 1165127668Sbms# Let the site file select an alternate cache file if it wants to. 116617680Spst# Prefer explicitly selected file to automatically selected ones. 116717680Spstif test -z "$CONFIG_SITE"; then 116817680Spst if test "x$prefix" != xNONE; then 116917680Spst CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 117017680Spst else 117117680Spst CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 117217680Spst fi 117317680Spstfi 117417680Spstfor ac_site_file in $CONFIG_SITE; do 117517680Spst if test -r "$ac_site_file"; then 1176127668Sbms { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1177127668Sbmsecho "$as_me: loading site script $ac_site_file" >&6;} 1178127668Sbms sed 's/^/| /' "$ac_site_file" >&5 117917680Spst . "$ac_site_file" 118017680Spst fi 118117680Spstdone 118217680Spst 118317680Spstif test -r "$cache_file"; then 1184127668Sbms # Some versions of bash will fail to source /dev/null (special 1185127668Sbms # files actually), so we avoid doing that. 1186127668Sbms if test -f "$cache_file"; then 1187127668Sbms { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1188127668Sbmsecho "$as_me: loading cache $cache_file" >&6;} 1189127668Sbms case $cache_file in 1190127668Sbms [\\/]* | ?:[\\/]* ) . $cache_file;; 1191127668Sbms *) . ./$cache_file;; 1192127668Sbms esac 1193127668Sbms fi 119417680Spstelse 1195127668Sbms { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1196127668Sbmsecho "$as_me: creating cache $cache_file" >&6;} 1197127668Sbms >$cache_file 119817680Spstfi 119917680Spst 1200127668Sbms# Check that the precious variables saved in the cache have kept the same 1201127668Sbms# value. 1202127668Sbmsac_cache_corrupted=false 1203127668Sbmsfor ac_var in `(set) 2>&1 | 1204127668Sbms sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1205127668Sbms eval ac_old_set=\$ac_cv_env_${ac_var}_set 1206127668Sbms eval ac_new_set=\$ac_env_${ac_var}_set 1207127668Sbms eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1208127668Sbms eval ac_new_val="\$ac_env_${ac_var}_value" 1209127668Sbms case $ac_old_set,$ac_new_set in 1210127668Sbms set,) 1211127668Sbms { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1212127668Sbmsecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1213127668Sbms ac_cache_corrupted=: ;; 1214127668Sbms ,set) 1215127668Sbms { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1216127668Sbmsecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1217127668Sbms ac_cache_corrupted=: ;; 1218127668Sbms ,);; 1219127668Sbms *) 1220127668Sbms if test "x$ac_old_val" != "x$ac_new_val"; then 1221127668Sbms { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1222127668Sbmsecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1223127668Sbms { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1224127668Sbmsecho "$as_me: former value: $ac_old_val" >&2;} 1225127668Sbms { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1226127668Sbmsecho "$as_me: current value: $ac_new_val" >&2;} 1227127668Sbms ac_cache_corrupted=: 1228127668Sbms fi;; 1229127668Sbms esac 1230127668Sbms # Pass precious variables to config.status. 1231127668Sbms if test "$ac_new_set" = set; then 1232127668Sbms case $ac_new_val in 1233127668Sbms *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1234127668Sbms ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1235127668Sbms *) ac_arg=$ac_var=$ac_new_val ;; 1236127668Sbms esac 1237127668Sbms case " $ac_configure_args " in 1238127668Sbms *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1239127668Sbms *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1240127668Sbms esac 1241127668Sbms fi 1242127668Sbmsdone 1243127668Sbmsif $ac_cache_corrupted; then 1244127668Sbms { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1245127668Sbmsecho "$as_me: error: changes in the environment can compromise the build" >&2;} 1246127668Sbms { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1247127668Sbmsecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1248127668Sbms { (exit 1); exit 1; }; } 1249127668Sbmsfi 1250127668Sbms 125117680Spstac_ext=c 125217680Spstac_cpp='$CPP $CPPFLAGS' 1253127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1254127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1255127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 125617680Spst 125717680Spst 125817680Spst 125917680Spst 1260127668Sbms 1261127668Sbms 1262127668Sbms 1263127668Sbms 1264127668Sbms 1265127668Sbms 1266127668Sbms 1267127668Sbms 1268127668Sbms 1269127668Sbms 1270127668Sbms 1271127668Sbms 1272127668Sbms 1273127668Sbms 1274127668Sbms 1275127668Sbms 127617680Spstac_aux_dir= 127717680Spstfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 127817680Spst if test -f $ac_dir/install-sh; then 127917680Spst ac_aux_dir=$ac_dir 128017680Spst ac_install_sh="$ac_aux_dir/install-sh -c" 128117680Spst break 128217680Spst elif test -f $ac_dir/install.sh; then 128317680Spst ac_aux_dir=$ac_dir 128417680Spst ac_install_sh="$ac_aux_dir/install.sh -c" 128517680Spst break 1286127668Sbms elif test -f $ac_dir/shtool; then 1287127668Sbms ac_aux_dir=$ac_dir 1288127668Sbms ac_install_sh="$ac_aux_dir/shtool install -c" 1289127668Sbms break 129017680Spst fi 129117680Spstdone 129217680Spstif test -z "$ac_aux_dir"; then 1293127668Sbms { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1294127668Sbmsecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1295127668Sbms { (exit 1); exit 1; }; } 129617680Spstfi 1297127668Sbmsac_config_guess="$SHELL $ac_aux_dir/config.guess" 1298127668Sbmsac_config_sub="$SHELL $ac_aux_dir/config.sub" 1299127668Sbmsac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 130017680Spst 1301127668Sbms# Make sure we can run config.sub. 1302127668Sbms$ac_config_sub sun4 >/dev/null 2>&1 || 1303127668Sbms { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1304127668Sbmsecho "$as_me: error: cannot run $ac_config_sub" >&2;} 1305127668Sbms { (exit 1); exit 1; }; } 130617680Spst 1307127668Sbmsecho "$as_me:$LINENO: checking build system type" >&5 1308127668Sbmsecho $ECHO_N "checking build system type... $ECHO_C" >&6 1309127668Sbmsif test "${ac_cv_build+set}" = set; then 1310127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1311127668Sbmselse 1312127668Sbms ac_cv_build_alias=$build_alias 1313127668Sbmstest -z "$ac_cv_build_alias" && 1314127668Sbms ac_cv_build_alias=`$ac_config_guess` 1315127668Sbmstest -z "$ac_cv_build_alias" && 1316127668Sbms { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1317127668Sbmsecho "$as_me: error: cannot guess build type; you must specify one" >&2;} 1318127668Sbms { (exit 1); exit 1; }; } 1319127668Sbmsac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1320127668Sbms { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1321127668Sbmsecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1322127668Sbms { (exit 1); exit 1; }; } 1323127668Sbms 132417680Spstfi 1325127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_build" >&5 1326127668Sbmsecho "${ECHO_T}$ac_cv_build" >&6 1327127668Sbmsbuild=$ac_cv_build 1328127668Sbmsbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1329127668Sbmsbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1330127668Sbmsbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 133117680Spst 133217680Spst 1333127668Sbmsecho "$as_me:$LINENO: checking host system type" >&5 1334127668Sbmsecho $ECHO_N "checking host system type... $ECHO_C" >&6 1335127668Sbmsif test "${ac_cv_host+set}" = set; then 1336127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1337127668Sbmselse 1338127668Sbms ac_cv_host_alias=$host_alias 1339127668Sbmstest -z "$ac_cv_host_alias" && 1340127668Sbms ac_cv_host_alias=$ac_cv_build_alias 1341127668Sbmsac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1342127668Sbms { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1343127668Sbmsecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1344127668Sbms { (exit 1); exit 1; }; } 134517680Spst 1346127668Sbmsfi 1347127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_host" >&5 1348127668Sbmsecho "${ECHO_T}$ac_cv_host" >&6 1349127668Sbmshost=$ac_cv_host 1350127668Sbmshost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1351127668Sbmshost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1352127668Sbmshost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 135317680Spst 135417680Spst 135517680Spst 1356127668Sbms 1357127668Sbms 1358127668Sbms 1359127668Sbms 1360127668Sbms 1361127668Sbms# Check whether --with-gcc or --without-gcc was given. 136239297Sfennerif test "${with_gcc+set}" = set; then 136339297Sfenner withval="$with_gcc" 136439297Sfenner 1365127668Sbmsfi; 136639297Sfenner V_CCOPT="-O" 136717680Spst V_INCLS="" 136839297Sfenner if test "${srcdir}" != "." ; then 136956893Sfenner V_INCLS="-I\$(srcdir)" 137039297Sfenner fi 137126180Sfenner if test "${CFLAGS+set}" = set; then 137226180Sfenner LBL_CFLAGS="$CFLAGS" 137326180Sfenner fi 137417680Spst if test -z "$CC" ; then 137598524Sfenner case "$host_os" in 137617680Spst 137717680Spst bsdi*) 137817680Spst # Extract the first word of "shlicc2", so it can be a program name with args. 137917680Spstset dummy shlicc2; ac_word=$2 1380127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1381127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1382127668Sbmsif test "${ac_cv_prog_SHLICC2+set}" = set; then 1383127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 138417680Spstelse 138517680Spst if test -n "$SHLICC2"; then 138617680Spst ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 138717680Spstelse 1388127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1389127668Sbmsfor as_dir in $PATH 1390127668Sbmsdo 1391127668Sbms IFS=$as_save_IFS 1392127668Sbms test -z "$as_dir" && as_dir=. 1393127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1394127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1395127668Sbms ac_cv_prog_SHLICC2="yes" 1396127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1397127668Sbms break 2 1398127668Sbms fi 1399127668Sbmsdone 1400127668Sbmsdone 1401127668Sbms 140217680Spst test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 140317680Spstfi 140417680Spstfi 1405127668SbmsSHLICC2=$ac_cv_prog_SHLICC2 140617680Spstif test -n "$SHLICC2"; then 1407127668Sbms echo "$as_me:$LINENO: result: $SHLICC2" >&5 1408127668Sbmsecho "${ECHO_T}$SHLICC2" >&6 140917680Spstelse 1410127668Sbms echo "$as_me:$LINENO: result: no" >&5 1411127668Sbmsecho "${ECHO_T}no" >&6 141217680Spstfi 141317680Spst 141417680Spst if test $SHLICC2 = yes ; then 141517680Spst CC=shlicc2 141617680Spst export CC 141717680Spst fi 141817680Spst ;; 141917680Spst esac 142017680Spst fi 142139297Sfenner if test -z "$CC" -a "$with_gcc" = no ; then 142239297Sfenner CC=cc 142339297Sfenner export CC 142439297Sfenner fi 1425127668Sbms ac_ext=c 1426127668Sbmsac_cpp='$CPP $CPPFLAGS' 1427127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1428127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1429127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 1430127668Sbmsif test -n "$ac_tool_prefix"; then 1431127668Sbms # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1432127668Sbmsset dummy ${ac_tool_prefix}gcc; ac_word=$2 1433127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1434127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1435127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then 1436127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1437127668Sbmselse 1438127668Sbms if test -n "$CC"; then 1439127668Sbms ac_cv_prog_CC="$CC" # Let the user override the test. 1440127668Sbmselse 1441127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1442127668Sbmsfor as_dir in $PATH 1443127668Sbmsdo 1444127668Sbms IFS=$as_save_IFS 1445127668Sbms test -z "$as_dir" && as_dir=. 1446127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1447127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1448127668Sbms ac_cv_prog_CC="${ac_tool_prefix}gcc" 1449127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1450127668Sbms break 2 1451127668Sbms fi 1452127668Sbmsdone 1453127668Sbmsdone 1454127668Sbms 1455127668Sbmsfi 1456127668Sbmsfi 1457127668SbmsCC=$ac_cv_prog_CC 1458127668Sbmsif test -n "$CC"; then 1459127668Sbms echo "$as_me:$LINENO: result: $CC" >&5 1460127668Sbmsecho "${ECHO_T}$CC" >&6 1461127668Sbmselse 1462127668Sbms echo "$as_me:$LINENO: result: no" >&5 1463127668Sbmsecho "${ECHO_T}no" >&6 1464127668Sbmsfi 1465127668Sbms 1466127668Sbmsfi 1467127668Sbmsif test -z "$ac_cv_prog_CC"; then 1468127668Sbms ac_ct_CC=$CC 1469127668Sbms # Extract the first word of "gcc", so it can be a program name with args. 147017680Spstset dummy gcc; ac_word=$2 1471127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1472127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1473127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1474127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 147517680Spstelse 1476127668Sbms if test -n "$ac_ct_CC"; then 1477127668Sbms ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1478127668Sbmselse 1479127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1480127668Sbmsfor as_dir in $PATH 1481127668Sbmsdo 1482127668Sbms IFS=$as_save_IFS 1483127668Sbms test -z "$as_dir" && as_dir=. 1484127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1485127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1486127668Sbms ac_cv_prog_ac_ct_CC="gcc" 1487127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1488127668Sbms break 2 1489127668Sbms fi 1490127668Sbmsdone 1491127668Sbmsdone 1492127668Sbms 1493127668Sbmsfi 1494127668Sbmsfi 1495127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC 1496127668Sbmsif test -n "$ac_ct_CC"; then 1497127668Sbms echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1498127668Sbmsecho "${ECHO_T}$ac_ct_CC" >&6 1499127668Sbmselse 1500127668Sbms echo "$as_me:$LINENO: result: no" >&5 1501127668Sbmsecho "${ECHO_T}no" >&6 1502127668Sbmsfi 1503127668Sbms 1504127668Sbms CC=$ac_ct_CC 1505127668Sbmselse 1506127668Sbms CC="$ac_cv_prog_CC" 1507127668Sbmsfi 1508127668Sbms 1509127668Sbmsif test -z "$CC"; then 1510127668Sbms if test -n "$ac_tool_prefix"; then 1511127668Sbms # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1512127668Sbmsset dummy ${ac_tool_prefix}cc; ac_word=$2 1513127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1514127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then 1516127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1517127668Sbmselse 151817680Spst if test -n "$CC"; then 151917680Spst ac_cv_prog_CC="$CC" # Let the user override the test. 152017680Spstelse 1521127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1522127668Sbmsfor as_dir in $PATH 1523127668Sbmsdo 1524127668Sbms IFS=$as_save_IFS 1525127668Sbms test -z "$as_dir" && as_dir=. 1526127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1527127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1528127668Sbms ac_cv_prog_CC="${ac_tool_prefix}cc" 1529127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1530127668Sbms break 2 1531127668Sbms fi 1532127668Sbmsdone 1533127668Sbmsdone 1534127668Sbms 153517680Spstfi 153617680Spstfi 1537127668SbmsCC=$ac_cv_prog_CC 153817680Spstif test -n "$CC"; then 1539127668Sbms echo "$as_me:$LINENO: result: $CC" >&5 1540127668Sbmsecho "${ECHO_T}$CC" >&6 154117680Spstelse 1542127668Sbms echo "$as_me:$LINENO: result: no" >&5 1543127668Sbmsecho "${ECHO_T}no" >&6 154417680Spstfi 154517680Spst 1546127668Sbmsfi 1547127668Sbmsif test -z "$ac_cv_prog_CC"; then 1548127668Sbms ac_ct_CC=$CC 1549127668Sbms # Extract the first word of "cc", so it can be a program name with args. 1550127668Sbmsset dummy cc; ac_word=$2 1551127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1552127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1553127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1554127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1555127668Sbmselse 1556127668Sbms if test -n "$ac_ct_CC"; then 1557127668Sbms ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1558127668Sbmselse 1559127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560127668Sbmsfor as_dir in $PATH 1561127668Sbmsdo 1562127668Sbms IFS=$as_save_IFS 1563127668Sbms test -z "$as_dir" && as_dir=. 1564127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1565127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1566127668Sbms ac_cv_prog_ac_ct_CC="cc" 1567127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1568127668Sbms break 2 1569127668Sbms fi 1570127668Sbmsdone 1571127668Sbmsdone 1572127668Sbms 1573127668Sbmsfi 1574127668Sbmsfi 1575127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC 1576127668Sbmsif test -n "$ac_ct_CC"; then 1577127668Sbms echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1578127668Sbmsecho "${ECHO_T}$ac_ct_CC" >&6 1579127668Sbmselse 1580127668Sbms echo "$as_me:$LINENO: result: no" >&5 1581127668Sbmsecho "${ECHO_T}no" >&6 1582127668Sbmsfi 1583127668Sbms 1584127668Sbms CC=$ac_ct_CC 1585127668Sbmselse 1586127668Sbms CC="$ac_cv_prog_CC" 1587127668Sbmsfi 1588127668Sbms 1589127668Sbmsfi 159017680Spstif test -z "$CC"; then 159117680Spst # Extract the first word of "cc", so it can be a program name with args. 159217680Spstset dummy cc; ac_word=$2 1593127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1594127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1595127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then 1596127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 159717680Spstelse 159817680Spst if test -n "$CC"; then 159917680Spst ac_cv_prog_CC="$CC" # Let the user override the test. 160017680Spstelse 160117680Spst ac_prog_rejected=no 1602127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1603127668Sbmsfor as_dir in $PATH 1604127668Sbmsdo 1605127668Sbms IFS=$as_save_IFS 1606127668Sbms test -z "$as_dir" && as_dir=. 1607127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1608127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1609127668Sbms if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1610127668Sbms ac_prog_rejected=yes 1611127668Sbms continue 1612127668Sbms fi 1613127668Sbms ac_cv_prog_CC="cc" 1614127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1615127668Sbms break 2 1616127668Sbms fi 1617127668Sbmsdone 1618127668Sbmsdone 1619127668Sbms 162017680Spstif test $ac_prog_rejected = yes; then 162117680Spst # We found a bogon in the path, so make sure we never use it. 162217680Spst set dummy $ac_cv_prog_CC 162317680Spst shift 1624127668Sbms if test $# != 0; then 162517680Spst # We chose a different compiler from the bogus one. 162617680Spst # However, it has the same basename, so the bogon will be chosen 162717680Spst # first if we set CC to just the basename; use the full file name. 162817680Spst shift 1629127668Sbms ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 163017680Spst fi 163117680Spstfi 163217680Spstfi 163317680Spstfi 1634127668SbmsCC=$ac_cv_prog_CC 163517680Spstif test -n "$CC"; then 1636127668Sbms echo "$as_me:$LINENO: result: $CC" >&5 1637127668Sbmsecho "${ECHO_T}$CC" >&6 163817680Spstelse 1639127668Sbms echo "$as_me:$LINENO: result: no" >&5 1640127668Sbmsecho "${ECHO_T}no" >&6 164117680Spstfi 164217680Spst 1643127668Sbmsfi 1644127668Sbmsif test -z "$CC"; then 1645127668Sbms if test -n "$ac_tool_prefix"; then 1646127668Sbms for ac_prog in cl 1647127668Sbms do 1648127668Sbms # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1649127668Sbmsset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1650127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1651127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1652127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then 1653127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 165456893Sfennerelse 165556893Sfenner if test -n "$CC"; then 165656893Sfenner ac_cv_prog_CC="$CC" # Let the user override the test. 165756893Sfennerelse 1658127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659127668Sbmsfor as_dir in $PATH 1660127668Sbmsdo 1661127668Sbms IFS=$as_save_IFS 1662127668Sbms test -z "$as_dir" && as_dir=. 1663127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1664127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1665127668Sbms ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1666127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1667127668Sbms break 2 1668127668Sbms fi 1669127668Sbmsdone 1670127668Sbmsdone 1671127668Sbms 167256893Sfennerfi 167356893Sfennerfi 1674127668SbmsCC=$ac_cv_prog_CC 167556893Sfennerif test -n "$CC"; then 1676127668Sbms echo "$as_me:$LINENO: result: $CC" >&5 1677127668Sbmsecho "${ECHO_T}$CC" >&6 167856893Sfennerelse 1679127668Sbms echo "$as_me:$LINENO: result: no" >&5 1680127668Sbmsecho "${ECHO_T}no" >&6 168156893Sfennerfi 1682127668Sbms 1683127668Sbms test -n "$CC" && break 1684127668Sbms done 1685127668Sbmsfi 1686127668Sbmsif test -z "$CC"; then 1687127668Sbms ac_ct_CC=$CC 1688127668Sbms for ac_prog in cl 1689127668Sbmsdo 1690127668Sbms # Extract the first word of "$ac_prog", so it can be a program name with args. 1691127668Sbmsset dummy $ac_prog; ac_word=$2 1692127668Sbmsecho "$as_me:$LINENO: checking for $ac_word" >&5 1693127668Sbmsecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1694127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1695127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1696127668Sbmselse 1697127668Sbms if test -n "$ac_ct_CC"; then 1698127668Sbms ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1699127668Sbmselse 1700127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1701127668Sbmsfor as_dir in $PATH 1702127668Sbmsdo 1703127668Sbms IFS=$as_save_IFS 1704127668Sbms test -z "$as_dir" && as_dir=. 1705127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 1706127668Sbms if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1707127668Sbms ac_cv_prog_ac_ct_CC="$ac_prog" 1708127668Sbms echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1709127668Sbms break 2 171056893Sfenner fi 1711127668Sbmsdone 1712127668Sbmsdone 1713127668Sbms 171417680Spstfi 1715127668Sbmsfi 1716127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC 1717127668Sbmsif test -n "$ac_ct_CC"; then 1718127668Sbms echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1719127668Sbmsecho "${ECHO_T}$ac_ct_CC" >&6 1720127668Sbmselse 1721127668Sbms echo "$as_me:$LINENO: result: no" >&5 1722127668Sbmsecho "${ECHO_T}no" >&6 1723127668Sbmsfi 172417680Spst 1725127668Sbms test -n "$ac_ct_CC" && break 1726127668Sbmsdone 172726180Sfenner 1728127668Sbms CC=$ac_ct_CC 1729127668Sbmsfi 173026180Sfenner 1731127668Sbmsfi 173256893Sfenner 173356893Sfenner 1734127668Sbmstest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1735127668SbmsSee \`config.log' for more details." >&5 1736127668Sbmsecho "$as_me: error: no acceptable C compiler found in \$PATH 1737127668SbmsSee \`config.log' for more details." >&2;} 1738127668Sbms { (exit 1); exit 1; }; } 1739127668Sbms 1740127668Sbms# Provide some information about the compiler. 1741127668Sbmsecho "$as_me:$LINENO:" \ 1742127668Sbms "checking for C compiler version" >&5 1743127668Sbmsac_compiler=`set X $ac_compile; echo $2` 1744127668Sbms{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1745127668Sbms (eval $ac_compiler --version </dev/null >&5) 2>&5 1746127668Sbms ac_status=$? 1747127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1748127668Sbms (exit $ac_status); } 1749127668Sbms{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1750127668Sbms (eval $ac_compiler -v </dev/null >&5) 2>&5 1751127668Sbms ac_status=$? 1752127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1753127668Sbms (exit $ac_status); } 1754127668Sbms{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1755127668Sbms (eval $ac_compiler -V </dev/null >&5) 2>&5 1756127668Sbms ac_status=$? 1757127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1758127668Sbms (exit $ac_status); } 1759127668Sbms 1760127668Sbmscat >conftest.$ac_ext <<_ACEOF 1761127668Sbms#line $LINENO "configure" 1762127668Sbms/* confdefs.h. */ 1763127668Sbms_ACEOF 1764127668Sbmscat confdefs.h >>conftest.$ac_ext 1765127668Sbmscat >>conftest.$ac_ext <<_ACEOF 1766127668Sbms/* end confdefs.h. */ 1767127668Sbms 1768127668Sbmsint 1769127668Sbmsmain () 1770127668Sbms{ 1771127668Sbms 1772127668Sbms ; 1773127668Sbms return 0; 1774127668Sbms} 1775127668Sbms_ACEOF 1776127668Sbmsac_clean_files_save=$ac_clean_files 1777127668Sbmsac_clean_files="$ac_clean_files a.out a.exe b.out" 1778127668Sbms# Try to create an executable without -o first, disregard a.out. 1779127668Sbms# It will help us diagnose broken compilers, and finding out an intuition 1780127668Sbms# of exeext. 1781127668Sbmsecho "$as_me:$LINENO: checking for C compiler default output" >&5 1782127668Sbmsecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1783127668Sbmsac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1784127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1785127668Sbms (eval $ac_link_default) 2>&5 1786127668Sbms ac_status=$? 1787127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1788127668Sbms (exit $ac_status); }; then 1789127668Sbms # Find the output, starting from the most likely. This scheme is 1790127668Sbms# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1791127668Sbms# resort. 1792127668Sbms 1793127668Sbms# Be careful to initialize this variable, since it used to be cached. 1794127668Sbms# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1795127668Sbmsac_cv_exeext= 1796127668Sbms# b.out is created by i960 compilers. 1797127668Sbmsfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1798127668Sbmsdo 1799127668Sbms test -f "$ac_file" || continue 1800127668Sbms case $ac_file in 1801127668Sbms *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1802127668Sbms ;; 1803127668Sbms conftest.$ac_ext ) 1804127668Sbms # This is the source file. 1805127668Sbms ;; 1806127668Sbms [ab].out ) 1807127668Sbms # We found the default executable, but exeext='' is most 1808127668Sbms # certainly right. 1809127668Sbms break;; 1810127668Sbms *.* ) 1811127668Sbms ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1812127668Sbms # FIXME: I believe we export ac_cv_exeext for Libtool, 1813127668Sbms # but it would be cool to find out if it's true. Does anybody 1814127668Sbms # maintain Libtool? --akim. 1815127668Sbms export ac_cv_exeext 1816127668Sbms break;; 1817127668Sbms * ) 1818127668Sbms break;; 1819127668Sbms esac 1820127668Sbmsdone 1821127668Sbmselse 1822127668Sbms echo "$as_me: failed program was:" >&5 1823127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 1824127668Sbms 1825127668Sbms{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1826127668SbmsSee \`config.log' for more details." >&5 1827127668Sbmsecho "$as_me: error: C compiler cannot create executables 1828127668SbmsSee \`config.log' for more details." >&2;} 1829127668Sbms { (exit 77); exit 77; }; } 1830127668Sbmsfi 1831127668Sbms 1832127668Sbmsac_exeext=$ac_cv_exeext 1833127668Sbmsecho "$as_me:$LINENO: result: $ac_file" >&5 1834127668Sbmsecho "${ECHO_T}$ac_file" >&6 1835127668Sbms 1836127668Sbms# Check the compiler produces executables we can run. If not, either 1837127668Sbms# the compiler is broken, or we cross compile. 1838127668Sbmsecho "$as_me:$LINENO: checking whether the C compiler works" >&5 1839127668Sbmsecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1840127668Sbms# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1841127668Sbms# If not cross compiling, check that we can run a simple program. 1842127668Sbmsif test "$cross_compiling" != yes; then 1843127668Sbms if { ac_try='./$ac_file' 1844127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1845127668Sbms (eval $ac_try) 2>&5 1846127668Sbms ac_status=$? 1847127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1848127668Sbms (exit $ac_status); }; }; then 1849127668Sbms cross_compiling=no 185026180Sfenner else 1851127668Sbms if test "$cross_compiling" = maybe; then 1852127668Sbms cross_compiling=yes 1853127668Sbms else 1854127668Sbms { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1855127668SbmsIf you meant to cross compile, use \`--host'. 1856127668SbmsSee \`config.log' for more details." >&5 1857127668Sbmsecho "$as_me: error: cannot run C compiled programs. 1858127668SbmsIf you meant to cross compile, use \`--host'. 1859127668SbmsSee \`config.log' for more details." >&2;} 1860127668Sbms { (exit 1); exit 1; }; } 1861127668Sbms fi 186226180Sfenner fi 186326180Sfennerfi 1864127668Sbmsecho "$as_me:$LINENO: result: yes" >&5 1865127668Sbmsecho "${ECHO_T}yes" >&6 186626180Sfenner 1867127668Sbmsrm -f a.out a.exe conftest$ac_cv_exeext b.out 1868127668Sbmsac_clean_files=$ac_clean_files_save 1869127668Sbms# Check the compiler produces executables we can run. If not, either 1870127668Sbms# the compiler is broken, or we cross compile. 1871127668Sbmsecho "$as_me:$LINENO: checking whether we are cross compiling" >&5 1872127668Sbmsecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1873127668Sbmsecho "$as_me:$LINENO: result: $cross_compiling" >&5 1874127668Sbmsecho "${ECHO_T}$cross_compiling" >&6 1875127668Sbms 1876127668Sbmsecho "$as_me:$LINENO: checking for suffix of executables" >&5 1877127668Sbmsecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1878127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1879127668Sbms (eval $ac_link) 2>&5 1880127668Sbms ac_status=$? 1881127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1882127668Sbms (exit $ac_status); }; then 1883127668Sbms # If both `conftest.exe' and `conftest' are `present' (well, observable) 1884127668Sbms# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1885127668Sbms# work properly (i.e., refer to `conftest.exe'), while it won't with 1886127668Sbms# `rm'. 1887127668Sbmsfor ac_file in conftest.exe conftest conftest.*; do 1888127668Sbms test -f "$ac_file" || continue 1889127668Sbms case $ac_file in 1890127668Sbms *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1891127668Sbms *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1892127668Sbms export ac_cv_exeext 1893127668Sbms break;; 1894127668Sbms * ) break;; 1895127668Sbms esac 1896127668Sbmsdone 1897127668Sbmselse 1898127668Sbms { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1899127668SbmsSee \`config.log' for more details." >&5 1900127668Sbmsecho "$as_me: error: cannot compute suffix of executables: cannot compile and link 1901127668SbmsSee \`config.log' for more details." >&2;} 1902127668Sbms { (exit 1); exit 1; }; } 190326180Sfennerfi 190426180Sfenner 1905127668Sbmsrm -f conftest$ac_cv_exeext 1906127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1907127668Sbmsecho "${ECHO_T}$ac_cv_exeext" >&6 1908127668Sbms 1909127668Sbmsrm -f conftest.$ac_ext 1910127668SbmsEXEEXT=$ac_cv_exeext 1911127668Sbmsac_exeext=$EXEEXT 1912127668Sbmsecho "$as_me:$LINENO: checking for suffix of object files" >&5 1913127668Sbmsecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1914127668Sbmsif test "${ac_cv_objext+set}" = set; then 1915127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 191617680Spstelse 1917127668Sbms cat >conftest.$ac_ext <<_ACEOF 1918127668Sbms#line $LINENO "configure" 1919127668Sbms/* confdefs.h. */ 1920127668Sbms_ACEOF 1921127668Sbmscat confdefs.h >>conftest.$ac_ext 1922127668Sbmscat >>conftest.$ac_ext <<_ACEOF 1923127668Sbms/* end confdefs.h. */ 1924127668Sbms 1925127668Sbmsint 1926127668Sbmsmain () 1927127668Sbms{ 1928127668Sbms 1929127668Sbms ; 1930127668Sbms return 0; 1931127668Sbms} 1932127668Sbms_ACEOF 1933127668Sbmsrm -f conftest.o conftest.obj 1934127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1935127668Sbms (eval $ac_compile) 2>&5 1936127668Sbms ac_status=$? 1937127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1938127668Sbms (exit $ac_status); }; then 1939127668Sbms for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1940127668Sbms case $ac_file in 1941127668Sbms *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1942127668Sbms *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1943127668Sbms break;; 1944127668Sbms esac 1945127668Sbmsdone 194617680Spstelse 1947127668Sbms echo "$as_me: failed program was:" >&5 1948127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 1949127668Sbms 1950127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1951127668SbmsSee \`config.log' for more details." >&5 1952127668Sbmsecho "$as_me: error: cannot compute suffix of object files: cannot compile 1953127668SbmsSee \`config.log' for more details." >&2;} 1954127668Sbms { (exit 1); exit 1; }; } 195517680Spstfi 1956127668Sbms 1957127668Sbmsrm -f conftest.$ac_cv_objext conftest.$ac_ext 195817680Spstfi 1959127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_objext" >&5 1960127668Sbmsecho "${ECHO_T}$ac_cv_objext" >&6 1961127668SbmsOBJEXT=$ac_cv_objext 1962127668Sbmsac_objext=$OBJEXT 1963127668Sbmsecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1964127668Sbmsecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1965127668Sbmsif test "${ac_cv_c_compiler_gnu+set}" = set; then 1966127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1967127668Sbmselse 1968127668Sbms cat >conftest.$ac_ext <<_ACEOF 1969127668Sbms#line $LINENO "configure" 1970127668Sbms/* confdefs.h. */ 1971127668Sbms_ACEOF 1972127668Sbmscat confdefs.h >>conftest.$ac_ext 1973127668Sbmscat >>conftest.$ac_ext <<_ACEOF 1974127668Sbms/* end confdefs.h. */ 197517680Spst 1976127668Sbmsint 1977127668Sbmsmain () 1978127668Sbms{ 1979127668Sbms#ifndef __GNUC__ 1980127668Sbms choke me 1981127668Sbms#endif 198226180Sfenner 1983127668Sbms ; 1984127668Sbms return 0; 1985127668Sbms} 1986127668Sbms_ACEOF 1987127668Sbmsrm -f conftest.$ac_objext 1988127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1989127668Sbms (eval $ac_compile) 2>&5 1990127668Sbms ac_status=$? 1991127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992127668Sbms (exit $ac_status); } && 1993127668Sbms { ac_try='test -s conftest.$ac_objext' 1994127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1995127668Sbms (eval $ac_try) 2>&5 1996127668Sbms ac_status=$? 1997127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 1998127668Sbms (exit $ac_status); }; }; then 1999127668Sbms ac_compiler_gnu=yes 200056893Sfennerelse 2001127668Sbms echo "$as_me: failed program was:" >&5 2002127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2003127668Sbms 2004127668Sbmsac_compiler_gnu=no 200556893Sfennerfi 2006127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2007127668Sbmsac_cv_c_compiler_gnu=$ac_compiler_gnu 200856893Sfenner 2009127668Sbmsfi 2010127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2011127668Sbmsecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2012127668SbmsGCC=`test $ac_compiler_gnu = yes && echo yes` 2013127668Sbmsac_test_CFLAGS=${CFLAGS+set} 2014127668Sbmsac_save_CFLAGS=$CFLAGS 2015127668SbmsCFLAGS="-g" 2016127668Sbmsecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2017127668Sbmsecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2018127668Sbmsif test "${ac_cv_prog_cc_g+set}" = set; then 2019127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 202017680Spstelse 2021127668Sbms cat >conftest.$ac_ext <<_ACEOF 2022127668Sbms#line $LINENO "configure" 2023127668Sbms/* confdefs.h. */ 2024127668Sbms_ACEOF 2025127668Sbmscat confdefs.h >>conftest.$ac_ext 2026127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2027127668Sbms/* end confdefs.h. */ 2028127668Sbms 2029127668Sbmsint 2030127668Sbmsmain () 2031127668Sbms{ 2032127668Sbms 2033127668Sbms ; 2034127668Sbms return 0; 2035127668Sbms} 2036127668Sbms_ACEOF 2037127668Sbmsrm -f conftest.$ac_objext 2038127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2039127668Sbms (eval $ac_compile) 2>&5 2040127668Sbms ac_status=$? 2041127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042127668Sbms (exit $ac_status); } && 2043127668Sbms { ac_try='test -s conftest.$ac_objext' 2044127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2045127668Sbms (eval $ac_try) 2>&5 2046127668Sbms ac_status=$? 2047127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2048127668Sbms (exit $ac_status); }; }; then 204926180Sfenner ac_cv_prog_cc_g=yes 205017680Spstelse 2051127668Sbms echo "$as_me: failed program was:" >&5 2052127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 205317680Spst 2054127668Sbmsac_cv_prog_cc_g=no 205517680Spstfi 2056127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2057127668Sbmsfi 2058127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2059127668Sbmsecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 206056893Sfennerif test "$ac_test_CFLAGS" = set; then 2061127668Sbms CFLAGS=$ac_save_CFLAGS 206256893Sfennerelif test $ac_cv_prog_cc_g = yes; then 206356893Sfenner if test "$GCC" = yes; then 206426180Sfenner CFLAGS="-g -O2" 206526180Sfenner else 206656893Sfenner CFLAGS="-g" 206756893Sfenner fi 206856893Sfennerelse 206956893Sfenner if test "$GCC" = yes; then 207026180Sfenner CFLAGS="-O2" 207156893Sfenner else 207256893Sfenner CFLAGS= 207317680Spst fi 207417680Spstfi 2075127668Sbmsecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2076127668Sbmsecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2077127668Sbmsif test "${ac_cv_prog_cc_stdc+set}" = set; then 2078127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 2079127668Sbmselse 2080127668Sbms ac_cv_prog_cc_stdc=no 2081127668Sbmsac_save_CC=$CC 2082127668Sbmscat >conftest.$ac_ext <<_ACEOF 2083127668Sbms#line $LINENO "configure" 2084127668Sbms/* confdefs.h. */ 2085127668Sbms_ACEOF 2086127668Sbmscat confdefs.h >>conftest.$ac_ext 2087127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2088127668Sbms/* end confdefs.h. */ 2089127668Sbms#include <stdarg.h> 2090127668Sbms#include <stdio.h> 2091127668Sbms#include <sys/types.h> 2092127668Sbms#include <sys/stat.h> 2093127668Sbms/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2094127668Sbmsstruct buf { int x; }; 2095127668SbmsFILE * (*rcsopen) (struct buf *, struct stat *, int); 2096127668Sbmsstatic char *e (p, i) 2097127668Sbms char **p; 2098127668Sbms int i; 2099127668Sbms{ 2100127668Sbms return p[i]; 2101127668Sbms} 2102127668Sbmsstatic char *f (char * (*g) (char **, int), char **p, ...) 2103127668Sbms{ 2104127668Sbms char *s; 2105127668Sbms va_list v; 2106127668Sbms va_start (v,p); 2107127668Sbms s = g (p, va_arg (v,int)); 2108127668Sbms va_end (v); 2109127668Sbms return s; 2110127668Sbms} 2111127668Sbmsint test (int i, double x); 2112127668Sbmsstruct s1 {int (*f) (int a);}; 2113127668Sbmsstruct s2 {int (*f) (double a);}; 2114127668Sbmsint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2115127668Sbmsint argc; 2116127668Sbmschar **argv; 2117127668Sbmsint 2118127668Sbmsmain () 2119127668Sbms{ 2120127668Sbmsreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2121127668Sbms ; 2122127668Sbms return 0; 2123127668Sbms} 2124127668Sbms_ACEOF 2125127668Sbms# Don't try gcc -ansi; that turns off useful extensions and 2126127668Sbms# breaks some systems' header files. 2127127668Sbms# AIX -qlanglvl=ansi 2128127668Sbms# Ultrix and OSF/1 -std1 2129127668Sbms# HP-UX 10.20 and later -Ae 2130127668Sbms# HP-UX older versions -Aa -D_HPUX_SOURCE 2131127668Sbms# SVR4 -Xc -D__EXTENSIONS__ 2132127668Sbmsfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2133127668Sbmsdo 2134127668Sbms CC="$ac_save_CC $ac_arg" 2135127668Sbms rm -f conftest.$ac_objext 2136127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2137127668Sbms (eval $ac_compile) 2>&5 2138127668Sbms ac_status=$? 2139127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2140127668Sbms (exit $ac_status); } && 2141127668Sbms { ac_try='test -s conftest.$ac_objext' 2142127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2143127668Sbms (eval $ac_try) 2>&5 2144127668Sbms ac_status=$? 2145127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2146127668Sbms (exit $ac_status); }; }; then 2147127668Sbms ac_cv_prog_cc_stdc=$ac_arg 2148127668Sbmsbreak 2149127668Sbmselse 2150127668Sbms echo "$as_me: failed program was:" >&5 2151127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 215217680Spst 2153127668Sbmsfi 2154127668Sbmsrm -f conftest.$ac_objext 2155127668Sbmsdone 2156127668Sbmsrm -f conftest.$ac_ext conftest.$ac_objext 2157127668SbmsCC=$ac_save_CC 2158127668Sbms 2159127668Sbmsfi 2160127668Sbms 2161127668Sbmscase "x$ac_cv_prog_cc_stdc" in 2162127668Sbms x|xno) 2163127668Sbms echo "$as_me:$LINENO: result: none needed" >&5 2164127668Sbmsecho "${ECHO_T}none needed" >&6 ;; 2165127668Sbms *) 2166127668Sbms echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2167127668Sbmsecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2168127668Sbms CC="$CC $ac_cv_prog_cc_stdc" ;; 2169127668Sbmsesac 2170127668Sbms 2171127668Sbms# Some people use a C++ compiler to compile C. Since we use `exit', 2172127668Sbms# in C++ we need to declare it. In case someone uses the same compiler 2173127668Sbms# for both compiling C and C++ we need to have the C++ compiler decide 2174127668Sbms# the declaration of exit, since it's the most demanding environment. 2175127668Sbmscat >conftest.$ac_ext <<_ACEOF 2176127668Sbms#ifndef __cplusplus 2177127668Sbms choke me 2178127668Sbms#endif 2179127668Sbms_ACEOF 2180127668Sbmsrm -f conftest.$ac_objext 2181127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2182127668Sbms (eval $ac_compile) 2>&5 2183127668Sbms ac_status=$? 2184127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185127668Sbms (exit $ac_status); } && 2186127668Sbms { ac_try='test -s conftest.$ac_objext' 2187127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2188127668Sbms (eval $ac_try) 2>&5 2189127668Sbms ac_status=$? 2190127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191127668Sbms (exit $ac_status); }; }; then 2192127668Sbms for ac_declaration in \ 2193127668Sbms ''\ 2194127668Sbms '#include <stdlib.h>' \ 2195127668Sbms 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2196127668Sbms 'extern "C" void std::exit (int); using std::exit;' \ 2197127668Sbms 'extern "C" void exit (int) throw ();' \ 2198127668Sbms 'extern "C" void exit (int);' \ 2199127668Sbms 'void exit (int);' 2200127668Sbmsdo 2201127668Sbms cat >conftest.$ac_ext <<_ACEOF 2202127668Sbms#line $LINENO "configure" 2203127668Sbms/* confdefs.h. */ 2204127668Sbms_ACEOF 2205127668Sbmscat confdefs.h >>conftest.$ac_ext 2206127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2207127668Sbms/* end confdefs.h. */ 2208127668Sbms#include <stdlib.h> 2209127668Sbms$ac_declaration 2210127668Sbmsint 2211127668Sbmsmain () 2212127668Sbms{ 2213127668Sbmsexit (42); 2214127668Sbms ; 2215127668Sbms return 0; 2216127668Sbms} 2217127668Sbms_ACEOF 2218127668Sbmsrm -f conftest.$ac_objext 2219127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2220127668Sbms (eval $ac_compile) 2>&5 2221127668Sbms ac_status=$? 2222127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223127668Sbms (exit $ac_status); } && 2224127668Sbms { ac_try='test -s conftest.$ac_objext' 2225127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2226127668Sbms (eval $ac_try) 2>&5 2227127668Sbms ac_status=$? 2228127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229127668Sbms (exit $ac_status); }; }; then 2230127668Sbms : 2231127668Sbmselse 2232127668Sbms echo "$as_me: failed program was:" >&5 2233127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2234127668Sbms 2235127668Sbmscontinue 2236127668Sbmsfi 2237127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2238127668Sbms cat >conftest.$ac_ext <<_ACEOF 2239127668Sbms#line $LINENO "configure" 2240127668Sbms/* confdefs.h. */ 2241127668Sbms_ACEOF 2242127668Sbmscat confdefs.h >>conftest.$ac_ext 2243127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2244127668Sbms/* end confdefs.h. */ 2245127668Sbms$ac_declaration 2246127668Sbmsint 2247127668Sbmsmain () 2248127668Sbms{ 2249127668Sbmsexit (42); 2250127668Sbms ; 2251127668Sbms return 0; 2252127668Sbms} 2253127668Sbms_ACEOF 2254127668Sbmsrm -f conftest.$ac_objext 2255127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2256127668Sbms (eval $ac_compile) 2>&5 2257127668Sbms ac_status=$? 2258127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2259127668Sbms (exit $ac_status); } && 2260127668Sbms { ac_try='test -s conftest.$ac_objext' 2261127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2262127668Sbms (eval $ac_try) 2>&5 2263127668Sbms ac_status=$? 2264127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2265127668Sbms (exit $ac_status); }; }; then 2266127668Sbms break 2267127668Sbmselse 2268127668Sbms echo "$as_me: failed program was:" >&5 2269127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2270127668Sbms 2271127668Sbmsfi 2272127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2273127668Sbmsdone 2274127668Sbmsrm -f conftest* 2275127668Sbmsif test -n "$ac_declaration"; then 2276127668Sbms echo '#ifdef __cplusplus' >>confdefs.h 2277127668Sbms echo $ac_declaration >>confdefs.h 2278127668Sbms echo '#endif' >>confdefs.h 2279127668Sbmsfi 2280127668Sbms 2281127668Sbmselse 2282127668Sbms echo "$as_me: failed program was:" >&5 2283127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2284127668Sbms 2285127668Sbmsfi 2286127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2287127668Sbmsac_ext=c 2288127668Sbmsac_cpp='$CPP $CPPFLAGS' 2289127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2290127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2291127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 2292127668Sbms 229339297Sfenner if test "$GCC" = yes ; then 229417680Spst if test "$SHLICC2" = yes ; then 229539297Sfenner ac_cv_lbl_gcc_vers=2 229639297Sfenner V_CCOPT="-O2" 229717680Spst else 2298127668Sbms echo "$as_me:$LINENO: checking gcc version" >&5 2299127668Sbmsecho $ECHO_N "checking gcc version... $ECHO_C" >&6 2300127668Sbms if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2301127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 230217680Spstelse 230339297Sfenner ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 230439297Sfenner sed -e '/^gcc version /!d' \ 230539297Sfenner -e 's/^gcc version //' \ 230639297Sfenner -e 's/ .*//' -e 's/^[^0-9]*//' \ 230739297Sfenner -e 's/\..*//'` 230817680Spstfi 230917680Spst 2310127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2311127668Sbmsecho "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6 231239297Sfenner if test $ac_cv_lbl_gcc_vers -gt 1 ; then 231339297Sfenner V_CCOPT="-O2" 231417680Spst fi 231517680Spst fi 231617680Spst else 2317127668Sbms echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2318127668Sbmsecho $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6 2319127668Sbms if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2320127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 232117680Spstelse 2322127668Sbms 2323127668Sbmscat >conftest.$ac_ext <<_ACEOF 2324127668Sbms#line $LINENO "configure" 2325127668Sbms/* confdefs.h. */ 2326127668Sbms_ACEOF 2327127668Sbmscat confdefs.h >>conftest.$ac_ext 2328127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2329127668Sbms/* end confdefs.h. */ 233017680Spst#include <sys/types.h> 2331127668Sbmsint 2332127668Sbmsmain () 2333127668Sbms{ 233417680Spstint frob(int, char *) 2335127668Sbms ; 2336127668Sbms return 0; 2337127668Sbms} 2338127668Sbms_ACEOF 2339127668Sbmsrm -f conftest.$ac_objext 2340127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2341127668Sbms (eval $ac_compile) 2>&5 2342127668Sbms ac_status=$? 2343127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344127668Sbms (exit $ac_status); } && 2345127668Sbms { ac_try='test -s conftest.$ac_objext' 2346127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2347127668Sbms (eval $ac_try) 2>&5 2348127668Sbms ac_status=$? 2349127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350127668Sbms (exit $ac_status); }; }; then 235139297Sfenner ac_cv_lbl_cc_ansi_prototypes=yes 235217680Spstelse 2353127668Sbms echo "$as_me: failed program was:" >&5 2354127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2355127668Sbms 2356127668Sbmsac_cv_lbl_cc_ansi_prototypes=no 235717680Spstfi 2358127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 235917680Spstfi 236017680Spst 2361127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2362127668Sbmsecho "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6 236339297Sfenner if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 236498524Sfenner case "$host_os" in 236517680Spst 236617680Spst hpux*) 2367127668Sbms echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2368127668Sbmsecho $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6 236917680Spst savedcflags="$CFLAGS" 237017680Spst CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2371127668Sbms if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2372127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 237317680Spstelse 2374127668Sbms cat >conftest.$ac_ext <<_ACEOF 2375127668Sbms#line $LINENO "configure" 2376127668Sbms/* confdefs.h. */ 2377127668Sbms_ACEOF 2378127668Sbmscat confdefs.h >>conftest.$ac_ext 2379127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2380127668Sbms/* end confdefs.h. */ 238117680Spst#include <sys/types.h> 2382127668Sbmsint 2383127668Sbmsmain () 2384127668Sbms{ 238517680Spstint frob(int, char *) 2386127668Sbms ; 2387127668Sbms return 0; 2388127668Sbms} 2389127668Sbms_ACEOF 2390127668Sbmsrm -f conftest.$ac_objext 2391127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2392127668Sbms (eval $ac_compile) 2>&5 2393127668Sbms ac_status=$? 2394127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395127668Sbms (exit $ac_status); } && 2396127668Sbms { ac_try='test -s conftest.$ac_objext' 2397127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2398127668Sbms (eval $ac_try) 2>&5 2399127668Sbms ac_status=$? 2400127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2401127668Sbms (exit $ac_status); }; }; then 240239297Sfenner ac_cv_lbl_cc_hpux_cc_aa=yes 240317680Spstelse 2404127668Sbms echo "$as_me: failed program was:" >&5 2405127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2406127668Sbms 2407127668Sbmsac_cv_lbl_cc_hpux_cc_aa=no 240817680Spstfi 2409127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 241017680Spstfi 241117680Spst 2412127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2413127668Sbmsecho "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6 241439297Sfenner if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2415127668Sbms { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2416127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;} 2417127668Sbms { (exit 1); exit 1; }; } 241817680Spst fi 241917680Spst CFLAGS="$savedcflags" 242017680Spst V_CCOPT="-Aa $V_CCOPT" 2421127668Sbms cat >>confdefs.h <<\_ACEOF 242217680Spst#define _HPUX_SOURCE 1 2423127668Sbms_ACEOF 242417680Spst 242517680Spst ;; 242617680Spst 242717680Spst *) 2428127668Sbms { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2429127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;} 2430127668Sbms { (exit 1); exit 1; }; } 243117680Spst ;; 243217680Spst esac 243317680Spst fi 243439297Sfenner V_INCLS="$V_INCLS -I/usr/local/include" 243539297Sfenner LDFLAGS="$LDFLAGS -L/usr/local/lib" 243617680Spst 243798524Sfenner case "$host_os" in 243817680Spst 243917680Spst irix*) 244098524Sfenner V_CCOPT="$V_CCOPT -xansi -signed -O" 244117680Spst ;; 244217680Spst 244317680Spst osf*) 244498524Sfenner V_CCOPT="$V_CCOPT -std1 -O" 244517680Spst ;; 244617680Spst 244717680Spst ultrix*) 2448127668Sbms echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 2449127668Sbmsecho $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6 2450127668Sbms if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 2451127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 245217680Spstelse 2453127668Sbms cat >conftest.$ac_ext <<_ACEOF 2454127668Sbms#line $LINENO "configure" 2455127668Sbms/* confdefs.h. */ 2456127668Sbms_ACEOF 2457127668Sbmscat confdefs.h >>conftest.$ac_ext 2458127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2459127668Sbms/* end confdefs.h. */ 246017680Spst#include <sys/types.h> 2461127668Sbmsint 2462127668Sbmsmain () 2463127668Sbms{ 246417680Spststruct a { int b; }; 246517680Spst void c(const struct a *) 2466127668Sbms ; 2467127668Sbms return 0; 2468127668Sbms} 2469127668Sbms_ACEOF 2470127668Sbmsrm -f conftest.$ac_objext 2471127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2472127668Sbms (eval $ac_compile) 2>&5 2473127668Sbms ac_status=$? 2474127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2475127668Sbms (exit $ac_status); } && 2476127668Sbms { ac_try='test -s conftest.$ac_objext' 2477127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2478127668Sbms (eval $ac_try) 2>&5 2479127668Sbms ac_status=$? 2480127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481127668Sbms (exit $ac_status); }; }; then 248239297Sfenner ac_cv_lbl_cc_const_proto=yes 248317680Spstelse 2484127668Sbms echo "$as_me: failed program was:" >&5 2485127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2486127668Sbms 2487127668Sbmsac_cv_lbl_cc_const_proto=no 248817680Spstfi 2489127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 249017680Spstfi 249117680Spst 2492127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 2493127668Sbmsecho "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6 249439297Sfenner if test $ac_cv_lbl_cc_const_proto = no ; then 2495127668Sbms cat >>confdefs.h <<\_ACEOF 2496127668Sbms#define const 2497127668Sbms_ACEOF 249817680Spst 249917680Spst fi 250017680Spst ;; 250117680Spst esac 250217680Spst fi 250317680Spst 2504127668Sbmsecho "$as_me:$LINENO: checking for inline" >&5 2505127668Sbmsecho $ECHO_N "checking for inline... $ECHO_C" >&6 2506146773Ssam save_CFLAGS="$CFLAGS" 2507146773Ssam CFLAGS="$V_CCOPT" 2508127668Sbms if test "${ac_cv_lbl_inline+set}" = set; then 2509127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 251056893Sfennerelse 2511127668Sbms 2512111726Sfenner ac_cv_lbl_inline="" 2513111726Sfenner ac_lbl_cc_inline=no 2514111726Sfenner for ac_lbl_inline in inline __inline__ __inline 2515111726Sfenner do 2516127668Sbms cat >conftest.$ac_ext <<_ACEOF 2517127668Sbms#line $LINENO "configure" 2518127668Sbms/* confdefs.h. */ 2519127668Sbms_ACEOF 2520127668Sbmscat confdefs.h >>conftest.$ac_ext 2521127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2522127668Sbms/* end confdefs.h. */ 2523111726Sfenner#define inline $ac_lbl_inline 2524111726Sfenner static inline struct iltest *foo(void); 2525111726Sfenner struct iltest { 2526111726Sfenner int iltest1; 2527111726Sfenner int iltest2; 2528111726Sfenner }; 252917680Spst 2530111726Sfenner static inline struct iltest * 2531111726Sfenner foo() 2532111726Sfenner { 2533111726Sfenner static struct iltest xxx; 2534111726Sfenner 2535111726Sfenner return &xxx; 2536111726Sfenner } 2537127668Sbmsint 2538127668Sbmsmain () 2539127668Sbms{ 2540111726Sfenner 2541127668Sbms ; 2542127668Sbms return 0; 2543127668Sbms} 2544127668Sbms_ACEOF 2545127668Sbmsrm -f conftest.$ac_objext 2546127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2547127668Sbms (eval $ac_compile) 2>&5 2548127668Sbms ac_status=$? 2549127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2550127668Sbms (exit $ac_status); } && 2551127668Sbms { ac_try='test -s conftest.$ac_objext' 2552127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2553127668Sbms (eval $ac_try) 2>&5 2554127668Sbms ac_status=$? 2555127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556127668Sbms (exit $ac_status); }; }; then 2557111726Sfenner ac_lbl_cc_inline=yes 255856893Sfennerelse 2559127668Sbms echo "$as_me: failed program was:" >&5 2560127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2561127668Sbms 256256893Sfennerfi 2563127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2564111726Sfenner if test "$ac_lbl_cc_inline" = yes ; then 2565111726Sfenner break; 2566111726Sfenner fi 2567111726Sfenner done 2568111726Sfenner if test "$ac_lbl_cc_inline" = yes ; then 2569111726Sfenner ac_cv_lbl_inline=$ac_lbl_inline 2570111726Sfenner fi 257156893Sfennerfi 257256893Sfenner 2573146773Ssam CFLAGS="$save_CFLAGS" 2574111726Sfenner if test ! -z "$ac_cv_lbl_inline" ; then 2575127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 2576127668Sbmsecho "${ECHO_T}$ac_cv_lbl_inline" >&6 2577111726Sfenner else 2578127668Sbms echo "$as_me:$LINENO: result: no" >&5 2579127668Sbmsecho "${ECHO_T}no" >&6 2580111726Sfenner fi 2581127668Sbms 2582127668Sbmscat >>confdefs.h <<_ACEOF 2583111726Sfenner#define inline $ac_cv_lbl_inline 2584127668Sbms_ACEOF 258556893Sfenner 258656893Sfenner 2587127668Sbmsecho "$as_me:$LINENO: checking for __attribute__" >&5 2588127668Sbmsecho $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2589127668Sbmsif test "${ac_cv___attribute__+set}" = set; then 2590127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 259175115Sfennerelse 259275115Sfenner 2593127668Sbmscat >conftest.$ac_ext <<_ACEOF 2594127668Sbms#line $LINENO "configure" 2595127668Sbms/* confdefs.h. */ 2596127668Sbms_ACEOF 2597127668Sbmscat confdefs.h >>conftest.$ac_ext 2598127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2599127668Sbms/* end confdefs.h. */ 2600127668Sbms 260175115Sfenner#include <stdlib.h> 260275115Sfenner 2603127668Sbmsint 2604127668Sbmsmain () 2605127668Sbms{ 260675115Sfenner 260775115Sfennerstatic void foo(void) __attribute__ ((noreturn)); 260875115Sfenner 260975115Sfennerstatic void 261075115Sfennerfoo(void) 261175115Sfenner{ 261275115Sfenner exit(1); 261375115Sfenner} 261475115Sfenner 2615127668Sbms ; 2616127668Sbms return 0; 2617127668Sbms} 2618127668Sbms_ACEOF 2619127668Sbmsrm -f conftest.$ac_objext 2620127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2621127668Sbms (eval $ac_compile) 2>&5 2622127668Sbms ac_status=$? 2623127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624127668Sbms (exit $ac_status); } && 2625127668Sbms { ac_try='test -s conftest.$ac_objext' 2626127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2627127668Sbms (eval $ac_try) 2>&5 2628127668Sbms ac_status=$? 2629127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2630127668Sbms (exit $ac_status); }; }; then 263175115Sfenner ac_cv___attribute__=yes 263275115Sfennerelse 2633127668Sbms echo "$as_me: failed program was:" >&5 2634127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2635127668Sbms 2636127668Sbmsac_cv___attribute__=no 263775115Sfennerfi 2638127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 263975115Sfennerfi 264075115Sfenner 264175115Sfennerif test "$ac_cv___attribute__" = "yes"; then 2642127668Sbms 2643127668Sbmscat >>confdefs.h <<\_ACEOF 264475115Sfenner#define HAVE___ATTRIBUTE__ 1 2645127668Sbms_ACEOF 264675115Sfenner 2647127668Sbms V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 2648127668Sbmselse 2649127668Sbms V_DEFS="$V_DEFS -D_U_=\"\"" 265075115Sfennerfi 2651127668Sbmsecho "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 2652127668Sbmsecho "${ECHO_T}$ac_cv___attribute__" >&6 265375115Sfenner 2654127668Sbmsac_ext=c 2655127668Sbmsac_cpp='$CPP $CPPFLAGS' 2656127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2657127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2658127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 2659127668Sbmsecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2660127668Sbmsecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 266117680Spst# On Suns, sometimes $CPP names a directory. 266217680Spstif test -n "$CPP" && test -d "$CPP"; then 266317680Spst CPP= 266417680Spstfi 266517680Spstif test -z "$CPP"; then 2666127668Sbms if test "${ac_cv_prog_CPP+set}" = set; then 2667127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 266817680Spstelse 2669127668Sbms # Double quotes because CPP needs to be expanded 2670127668Sbms for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2671127668Sbms do 2672127668Sbms ac_preproc_ok=false 2673127668Sbmsfor ac_c_preproc_warn_flag in '' yes 2674127668Sbmsdo 2675127668Sbms # Use a header file that comes with gcc, so configuring glibc 2676127668Sbms # with a fresh cross-compiler works. 2677127668Sbms # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2678127668Sbms # <limits.h> exists even on freestanding compilers. 267917680Spst # On the NeXT, cc -E runs the code through the compiler's parser, 2680127668Sbms # not just through cpp. "Syntax error" is here to catch this case. 2681127668Sbms cat >conftest.$ac_ext <<_ACEOF 2682127668Sbms#line $LINENO "configure" 2683127668Sbms/* confdefs.h. */ 2684127668Sbms_ACEOF 2685127668Sbmscat confdefs.h >>conftest.$ac_ext 2686127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2687127668Sbms/* end confdefs.h. */ 2688127668Sbms#ifdef __STDC__ 2689127668Sbms# include <limits.h> 2690127668Sbms#else 2691127668Sbms# include <assert.h> 2692127668Sbms#endif 2693127668Sbms Syntax error 2694127668Sbms_ACEOF 2695127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2696127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2697127668Sbms ac_status=$? 2698127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 2699127668Sbms rm -f conftest.er1 2700127668Sbms cat conftest.err >&5 2701127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702127668Sbms (exit $ac_status); } >/dev/null; then 2703127668Sbms if test -s conftest.err; then 2704127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 2705127668Sbms else 2706127668Sbms ac_cpp_err= 2707127668Sbms fi 2708127668Sbmselse 2709127668Sbms ac_cpp_err=yes 2710127668Sbmsfi 2711127668Sbmsif test -z "$ac_cpp_err"; then 271217680Spst : 271317680Spstelse 2714127668Sbms echo "$as_me: failed program was:" >&5 2715127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2716127668Sbms 2717127668Sbms # Broken: fails on valid input. 2718127668Sbmscontinue 2719127668Sbmsfi 2720127668Sbmsrm -f conftest.err conftest.$ac_ext 2721127668Sbms 2722127668Sbms # OK, works on sane cases. Now check whether non-existent headers 2723127668Sbms # can be detected and how. 2724127668Sbms cat >conftest.$ac_ext <<_ACEOF 2725127668Sbms#line $LINENO "configure" 2726127668Sbms/* confdefs.h. */ 2727127668Sbms_ACEOF 2728127668Sbmscat confdefs.h >>conftest.$ac_ext 2729127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2730127668Sbms/* end confdefs.h. */ 2731127668Sbms#include <ac_nonexistent.h> 2732127668Sbms_ACEOF 2733127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2734127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2735127668Sbms ac_status=$? 2736127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 2737127668Sbms rm -f conftest.er1 2738127668Sbms cat conftest.err >&5 2739127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740127668Sbms (exit $ac_status); } >/dev/null; then 2741127668Sbms if test -s conftest.err; then 2742127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 2743127668Sbms else 2744127668Sbms ac_cpp_err= 2745127668Sbms fi 2746127668Sbmselse 2747127668Sbms ac_cpp_err=yes 2748127668Sbmsfi 2749127668Sbmsif test -z "$ac_cpp_err"; then 2750127668Sbms # Broken: success on invalid input. 2751127668Sbmscontinue 2752127668Sbmselse 2753127668Sbms echo "$as_me: failed program was:" >&5 2754127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2755127668Sbms 2756127668Sbms # Passes both tests. 2757127668Sbmsac_preproc_ok=: 2758127668Sbmsbreak 2759127668Sbmsfi 2760127668Sbmsrm -f conftest.err conftest.$ac_ext 2761127668Sbms 2762127668Sbmsdone 2763127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2764127668Sbmsrm -f conftest.err conftest.$ac_ext 2765127668Sbmsif $ac_preproc_ok; then 2766127668Sbms break 2767127668Sbmsfi 2768127668Sbms 2769127668Sbms done 2770127668Sbms ac_cv_prog_CPP=$CPP 2771127668Sbms 2772127668Sbmsfi 2773127668Sbms CPP=$ac_cv_prog_CPP 2774127668Sbmselse 2775127668Sbms ac_cv_prog_CPP=$CPP 2776127668Sbmsfi 2777127668Sbmsecho "$as_me:$LINENO: result: $CPP" >&5 2778127668Sbmsecho "${ECHO_T}$CPP" >&6 2779127668Sbmsac_preproc_ok=false 2780127668Sbmsfor ac_c_preproc_warn_flag in '' yes 2781127668Sbmsdo 2782127668Sbms # Use a header file that comes with gcc, so configuring glibc 2783127668Sbms # with a fresh cross-compiler works. 2784127668Sbms # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2785127668Sbms # <limits.h> exists even on freestanding compilers. 2786127668Sbms # On the NeXT, cc -E runs the code through the compiler's parser, 2787127668Sbms # not just through cpp. "Syntax error" is here to catch this case. 2788127668Sbms cat >conftest.$ac_ext <<_ACEOF 2789127668Sbms#line $LINENO "configure" 2790127668Sbms/* confdefs.h. */ 2791127668Sbms_ACEOF 2792127668Sbmscat confdefs.h >>conftest.$ac_ext 2793127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2794127668Sbms/* end confdefs.h. */ 2795127668Sbms#ifdef __STDC__ 2796127668Sbms# include <limits.h> 2797127668Sbms#else 2798127668Sbms# include <assert.h> 2799127668Sbms#endif 2800127668Sbms Syntax error 2801127668Sbms_ACEOF 2802127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2803127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2804127668Sbms ac_status=$? 2805127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 2806127668Sbms rm -f conftest.er1 2807127668Sbms cat conftest.err >&5 2808127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809127668Sbms (exit $ac_status); } >/dev/null; then 2810127668Sbms if test -s conftest.err; then 2811127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 2812127668Sbms else 2813127668Sbms ac_cpp_err= 2814127668Sbms fi 2815127668Sbmselse 2816127668Sbms ac_cpp_err=yes 2817127668Sbmsfi 2818127668Sbmsif test -z "$ac_cpp_err"; then 281917680Spst : 282017680Spstelse 2821127668Sbms echo "$as_me: failed program was:" >&5 2822127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2823127668Sbms 2824127668Sbms # Broken: fails on valid input. 2825127668Sbmscontinue 2826127668Sbmsfi 2827127668Sbmsrm -f conftest.err conftest.$ac_ext 2828127668Sbms 2829127668Sbms # OK, works on sane cases. Now check whether non-existent headers 2830127668Sbms # can be detected and how. 2831127668Sbms cat >conftest.$ac_ext <<_ACEOF 2832127668Sbms#line $LINENO "configure" 2833127668Sbms/* confdefs.h. */ 2834127668Sbms_ACEOF 2835127668Sbmscat confdefs.h >>conftest.$ac_ext 2836127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2837127668Sbms/* end confdefs.h. */ 2838127668Sbms#include <ac_nonexistent.h> 2839127668Sbms_ACEOF 2840127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2841127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2842127668Sbms ac_status=$? 2843127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 2844127668Sbms rm -f conftest.er1 2845127668Sbms cat conftest.err >&5 2846127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847127668Sbms (exit $ac_status); } >/dev/null; then 2848127668Sbms if test -s conftest.err; then 2849127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 2850127668Sbms else 2851127668Sbms ac_cpp_err= 2852127668Sbms fi 2853127668Sbmselse 2854127668Sbms ac_cpp_err=yes 2855127668Sbmsfi 2856127668Sbmsif test -z "$ac_cpp_err"; then 2857127668Sbms # Broken: success on invalid input. 2858127668Sbmscontinue 2859127668Sbmselse 2860127668Sbms echo "$as_me: failed program was:" >&5 2861127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2862127668Sbms 2863127668Sbms # Passes both tests. 2864127668Sbmsac_preproc_ok=: 2865127668Sbmsbreak 2866127668Sbmsfi 2867127668Sbmsrm -f conftest.err conftest.$ac_ext 2868127668Sbms 2869127668Sbmsdone 2870127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2871127668Sbmsrm -f conftest.err conftest.$ac_ext 2872127668Sbmsif $ac_preproc_ok; then 287356893Sfenner : 287456893Sfennerelse 2875127668Sbms { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2876127668SbmsSee \`config.log' for more details." >&5 2877127668Sbmsecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2878127668SbmsSee \`config.log' for more details." >&2;} 2879127668Sbms { (exit 1); exit 1; }; } 288017680Spstfi 2881127668Sbms 2882127668Sbmsac_ext=c 2883127668Sbmsac_cpp='$CPP $CPPFLAGS' 2884127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2885127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2886127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 2887127668Sbms 2888127668Sbms 2889127668Sbmsecho "$as_me:$LINENO: checking for egrep" >&5 2890127668Sbmsecho $ECHO_N "checking for egrep... $ECHO_C" >&6 2891127668Sbmsif test "${ac_cv_prog_egrep+set}" = set; then 2892127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 2893127668Sbmselse 2894127668Sbms if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2895127668Sbms then ac_cv_prog_egrep='grep -E' 2896127668Sbms else ac_cv_prog_egrep='egrep' 2897127668Sbms fi 289817680Spstfi 2899127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2900127668Sbmsecho "${ECHO_T}$ac_cv_prog_egrep" >&6 2901127668Sbms EGREP=$ac_cv_prog_egrep 2902127668Sbms 2903127668Sbms 2904127668Sbmsecho "$as_me:$LINENO: checking for ANSI C header files" >&5 2905127668Sbmsecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2906127668Sbmsif test "${ac_cv_header_stdc+set}" = set; then 2907127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 2908127668Sbmselse 2909127668Sbms cat >conftest.$ac_ext <<_ACEOF 2910127668Sbms#line $LINENO "configure" 2911127668Sbms/* confdefs.h. */ 2912127668Sbms_ACEOF 2913127668Sbmscat confdefs.h >>conftest.$ac_ext 2914127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2915127668Sbms/* end confdefs.h. */ 2916127668Sbms#include <stdlib.h> 2917127668Sbms#include <stdarg.h> 2918127668Sbms#include <string.h> 2919127668Sbms#include <float.h> 2920127668Sbms 2921127668Sbmsint 2922127668Sbmsmain () 2923127668Sbms{ 2924127668Sbms 2925127668Sbms ; 2926127668Sbms return 0; 2927127668Sbms} 2928127668Sbms_ACEOF 2929127668Sbmsrm -f conftest.$ac_objext 2930127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2931127668Sbms (eval $ac_compile) 2>&5 2932127668Sbms ac_status=$? 2933127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934127668Sbms (exit $ac_status); } && 2935127668Sbms { ac_try='test -s conftest.$ac_objext' 2936127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2937127668Sbms (eval $ac_try) 2>&5 2938127668Sbms ac_status=$? 2939127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 2940127668Sbms (exit $ac_status); }; }; then 2941127668Sbms ac_cv_header_stdc=yes 2942127668Sbmselse 2943127668Sbms echo "$as_me: failed program was:" >&5 2944127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2945127668Sbms 2946127668Sbmsac_cv_header_stdc=no 2947127668Sbmsfi 2948127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 2949127668Sbms 2950127668Sbmsif test $ac_cv_header_stdc = yes; then 2951127668Sbms # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2952127668Sbms cat >conftest.$ac_ext <<_ACEOF 2953127668Sbms#line $LINENO "configure" 2954127668Sbms/* confdefs.h. */ 2955127668Sbms_ACEOF 2956127668Sbmscat confdefs.h >>conftest.$ac_ext 2957127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2958127668Sbms/* end confdefs.h. */ 2959127668Sbms#include <string.h> 2960127668Sbms 2961127668Sbms_ACEOF 2962127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2963127668Sbms $EGREP "memchr" >/dev/null 2>&1; then 2964127668Sbms : 2965127668Sbmselse 2966127668Sbms ac_cv_header_stdc=no 2967127668Sbmsfi 296817680Spstrm -f conftest* 2969127668Sbms 297056893Sfennerfi 2971127668Sbms 2972127668Sbmsif test $ac_cv_header_stdc = yes; then 2973127668Sbms # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2974127668Sbms cat >conftest.$ac_ext <<_ACEOF 2975127668Sbms#line $LINENO "configure" 2976127668Sbms/* confdefs.h. */ 2977127668Sbms_ACEOF 2978127668Sbmscat confdefs.h >>conftest.$ac_ext 2979127668Sbmscat >>conftest.$ac_ext <<_ACEOF 2980127668Sbms/* end confdefs.h. */ 2981127668Sbms#include <stdlib.h> 2982127668Sbms 2983127668Sbms_ACEOF 2984127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2985127668Sbms $EGREP "free" >/dev/null 2>&1; then 2986127668Sbms : 2987127668Sbmselse 2988127668Sbms ac_cv_header_stdc=no 2989127668Sbmsfi 299056893Sfennerrm -f conftest* 2991127668Sbms 299217680Spstfi 2993127668Sbms 2994127668Sbmsif test $ac_cv_header_stdc = yes; then 2995127668Sbms # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2996127668Sbms if test "$cross_compiling" = yes; then 2997127668Sbms : 299817680Spstelse 2999127668Sbms cat >conftest.$ac_ext <<_ACEOF 3000127668Sbms#line $LINENO "configure" 3001127668Sbms/* confdefs.h. */ 3002127668Sbms_ACEOF 3003127668Sbmscat confdefs.h >>conftest.$ac_ext 3004127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3005127668Sbms/* end confdefs.h. */ 3006127668Sbms#include <ctype.h> 3007127668Sbms#if ((' ' & 0x0FF) == 0x020) 3008127668Sbms# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3009127668Sbms# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3010127668Sbms#else 3011127668Sbms# define ISLOWER(c) \ 3012127668Sbms (('a' <= (c) && (c) <= 'i') \ 3013127668Sbms || ('j' <= (c) && (c) <= 'r') \ 3014127668Sbms || ('s' <= (c) && (c) <= 'z')) 3015127668Sbms# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3016127668Sbms#endif 3017127668Sbms 3018127668Sbms#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3019127668Sbmsint 3020127668Sbmsmain () 3021127668Sbms{ 3022127668Sbms int i; 3023127668Sbms for (i = 0; i < 256; i++) 3024127668Sbms if (XOR (islower (i), ISLOWER (i)) 3025127668Sbms || toupper (i) != TOUPPER (i)) 3026127668Sbms exit(2); 3027127668Sbms exit (0); 3028127668Sbms} 3029127668Sbms_ACEOF 3030127668Sbmsrm -f conftest$ac_exeext 3031127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3032127668Sbms (eval $ac_link) 2>&5 3033127668Sbms ac_status=$? 3034127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3036127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3037127668Sbms (eval $ac_try) 2>&5 3038127668Sbms ac_status=$? 3039127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040127668Sbms (exit $ac_status); }; }; then 3041127668Sbms : 3042127668Sbmselse 3043127668Sbms echo "$as_me: program exited with status $ac_status" >&5 3044127668Sbmsecho "$as_me: failed program was:" >&5 3045127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3046127668Sbms 3047127668Sbms( exit $ac_status ) 3048127668Sbmsac_cv_header_stdc=no 304917680Spstfi 3050127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3051127668Sbmsfi 3052127668Sbmsfi 3053127668Sbmsfi 3054127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3055127668Sbmsecho "${ECHO_T}$ac_cv_header_stdc" >&6 3056127668Sbmsif test $ac_cv_header_stdc = yes; then 305717680Spst 3058127668Sbmscat >>confdefs.h <<\_ACEOF 3059127668Sbms#define STDC_HEADERS 1 3060127668Sbms_ACEOF 3061127668Sbms 3062127668Sbmsfi 3063127668Sbms 3064127668Sbms# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3065127668Sbms 3066127668Sbms 3067127668Sbms 3068127668Sbms 3069127668Sbms 3070127668Sbms 3071127668Sbms 3072127668Sbms 3073127668Sbms 3074127668Sbmsfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3075127668Sbms inttypes.h stdint.h unistd.h 307617680Spstdo 3077127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3078127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5 3079127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3080127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3081127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 308217680Spstelse 3083127668Sbms cat >conftest.$ac_ext <<_ACEOF 3084127668Sbms#line $LINENO "configure" 3085127668Sbms/* confdefs.h. */ 3086127668Sbms_ACEOF 3087127668Sbmscat confdefs.h >>conftest.$ac_ext 3088127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3089127668Sbms/* end confdefs.h. */ 3090127668Sbms$ac_includes_default 3091127668Sbms 3092127668Sbms#include <$ac_header> 3093127668Sbms_ACEOF 3094127668Sbmsrm -f conftest.$ac_objext 3095127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3096127668Sbms (eval $ac_compile) 2>&5 3097127668Sbms ac_status=$? 3098127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099127668Sbms (exit $ac_status); } && 3100127668Sbms { ac_try='test -s conftest.$ac_objext' 3101127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3102127668Sbms (eval $ac_try) 2>&5 3103127668Sbms ac_status=$? 3104127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105127668Sbms (exit $ac_status); }; }; then 3106127668Sbms eval "$as_ac_Header=yes" 310717680Spstelse 3108127668Sbms echo "$as_me: failed program was:" >&5 3109127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3110127668Sbms 3111127668Sbmseval "$as_ac_Header=no" 311217680Spstfi 3113127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 311417680Spstfi 3115127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3116127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3117127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then 3118127668Sbms cat >>confdefs.h <<_ACEOF 3119127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3120127668Sbms_ACEOF 3121127668Sbms 3122127668Sbmsfi 3123127668Sbms 3124127668Sbmsdone 3125127668Sbms 3126127668Sbms 3127127668Sbms 3128127668Sbms 3129127668Sbms 3130146773Ssamfor ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h 3131127668Sbmsdo 3132127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3133127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3134127668Sbms echo "$as_me:$LINENO: checking for $ac_header" >&5 3135127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3136127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3137127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 3138127668Sbmsfi 3139127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3140127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 314117680Spstelse 3142127668Sbms # Is the header compilable? 3143127668Sbmsecho "$as_me:$LINENO: checking $ac_header usability" >&5 3144127668Sbmsecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3145127668Sbmscat >conftest.$ac_ext <<_ACEOF 3146127668Sbms#line $LINENO "configure" 3147127668Sbms/* confdefs.h. */ 3148127668Sbms_ACEOF 3149127668Sbmscat confdefs.h >>conftest.$ac_ext 3150127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3151127668Sbms/* end confdefs.h. */ 3152127668Sbms$ac_includes_default 3153127668Sbms#include <$ac_header> 3154127668Sbms_ACEOF 3155127668Sbmsrm -f conftest.$ac_objext 3156127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3157127668Sbms (eval $ac_compile) 2>&5 3158127668Sbms ac_status=$? 3159127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160127668Sbms (exit $ac_status); } && 3161127668Sbms { ac_try='test -s conftest.$ac_objext' 3162127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3163127668Sbms (eval $ac_try) 2>&5 3164127668Sbms ac_status=$? 3165127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166127668Sbms (exit $ac_status); }; }; then 3167127668Sbms ac_header_compiler=yes 3168127668Sbmselse 3169127668Sbms echo "$as_me: failed program was:" >&5 3170127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3171127668Sbms 3172127668Sbmsac_header_compiler=no 317317680Spstfi 3174127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 3175127668Sbmsecho "$as_me:$LINENO: result: $ac_header_compiler" >&5 3176127668Sbmsecho "${ECHO_T}$ac_header_compiler" >&6 3177127668Sbms 3178127668Sbms# Is the header present? 3179127668Sbmsecho "$as_me:$LINENO: checking $ac_header presence" >&5 3180127668Sbmsecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3181127668Sbmscat >conftest.$ac_ext <<_ACEOF 3182127668Sbms#line $LINENO "configure" 3183127668Sbms/* confdefs.h. */ 3184127668Sbms_ACEOF 3185127668Sbmscat confdefs.h >>conftest.$ac_ext 3186127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3187127668Sbms/* end confdefs.h. */ 3188127668Sbms#include <$ac_header> 3189127668Sbms_ACEOF 3190127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3191127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3192127668Sbms ac_status=$? 3193127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 3194127668Sbms rm -f conftest.er1 3195127668Sbms cat conftest.err >&5 3196127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197127668Sbms (exit $ac_status); } >/dev/null; then 3198127668Sbms if test -s conftest.err; then 3199127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 3200127668Sbms else 3201127668Sbms ac_cpp_err= 3202127668Sbms fi 3203127668Sbmselse 3204127668Sbms ac_cpp_err=yes 3205127668Sbmsfi 3206127668Sbmsif test -z "$ac_cpp_err"; then 3207127668Sbms ac_header_preproc=yes 3208127668Sbmselse 3209127668Sbms echo "$as_me: failed program was:" >&5 3210127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3211127668Sbms 3212127668Sbms ac_header_preproc=no 3213127668Sbmsfi 3214127668Sbmsrm -f conftest.err conftest.$ac_ext 3215127668Sbmsecho "$as_me:$LINENO: result: $ac_header_preproc" >&5 3216127668Sbmsecho "${ECHO_T}$ac_header_preproc" >&6 3217127668Sbms 3218127668Sbms# So? What about this header? 3219127668Sbmscase $ac_header_compiler:$ac_header_preproc in 3220127668Sbms yes:no ) 3221127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3222127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3223127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3224127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3225127668Sbms ( 3226127668Sbms cat <<\_ASBOX 3227127668Sbms## ------------------------------------ ## 3228127668Sbms## Report this to bug-autoconf@gnu.org. ## 3229127668Sbms## ------------------------------------ ## 3230127668Sbms_ASBOX 3231127668Sbms ) | 3232127668Sbms sed "s/^/$as_me: WARNING: /" >&2 3233127668Sbms ;; 3234127668Sbms no:yes ) 3235127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3236127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3237127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3238127668Sbmsecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3239127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3240127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3241127668Sbms ( 3242127668Sbms cat <<\_ASBOX 3243127668Sbms## ------------------------------------ ## 3244127668Sbms## Report this to bug-autoconf@gnu.org. ## 3245127668Sbms## ------------------------------------ ## 3246127668Sbms_ASBOX 3247127668Sbms ) | 3248127668Sbms sed "s/^/$as_me: WARNING: /" >&2 3249127668Sbms ;; 3250127668Sbmsesac 3251127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5 3252127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3253127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3254127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 3255127668Sbmselse 3256127668Sbms eval "$as_ac_Header=$ac_header_preproc" 3257127668Sbmsfi 3258127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3259127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3260127668Sbms 3261127668Sbmsfi 3262127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then 3263127668Sbms cat >>confdefs.h <<_ACEOF 3264127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3265127668Sbms_ACEOF 3266127668Sbms 3267127668Sbmsfi 3268127668Sbms 326917680Spstdone 327017680Spst 3271127668Sbms 3272127668Sbmsfor ac_header in netinet/if_ether.h 3273127668Sbmsdo 3274127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3275127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5 3276127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3277127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3278127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 327917680Spstelse 3280127668Sbms cat >conftest.$ac_ext <<_ACEOF 3281127668Sbms#line $LINENO "configure" 3282127668Sbms/* confdefs.h. */ 3283127668Sbms_ACEOF 3284127668Sbmscat confdefs.h >>conftest.$ac_ext 3285127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3286127668Sbms/* end confdefs.h. */ 328717680Spst#include <sys/types.h> 3288127668Sbms#include <sys/socket.h> 3289127668Sbms 3290127668Sbms#include <$ac_header> 3291127668Sbms_ACEOF 3292127668Sbmsrm -f conftest.$ac_objext 3293127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3294127668Sbms (eval $ac_compile) 2>&5 3295127668Sbms ac_status=$? 3296127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297127668Sbms (exit $ac_status); } && 3298127668Sbms { ac_try='test -s conftest.$ac_objext' 3299127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3300127668Sbms (eval $ac_try) 2>&5 3301127668Sbms ac_status=$? 3302127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303127668Sbms (exit $ac_status); }; }; then 3304127668Sbms eval "$as_ac_Header=yes" 3305127668Sbmselse 3306127668Sbms echo "$as_me: failed program was:" >&5 3307127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3308127668Sbms 3309127668Sbmseval "$as_ac_Header=no" 3310127668Sbmsfi 3311127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 3312127668Sbmsfi 3313127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3314127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3315127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then 3316127668Sbms cat >>confdefs.h <<_ACEOF 3317127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3318127668Sbms_ACEOF 3319127668Sbms 3320127668Sbmsfi 3321127668Sbms 3322127668Sbmsdone 3323127668Sbms 3324146773Ssamif test "$ac_cv_header_netinet_if_ether_h" != yes; then 3325146773Ssam # 3326146773Ssam # The simple test didn't work. 3327146773Ssam # Do we need to include <net/if.h> first? 3328146773Ssam # Unset ac_cv_header_netinet_if_ether_h so we don't 3329146773Ssam # treat the previous failure as a cached value and 3330146773Ssam # suppress the next test. 3331146773Ssam # 3332146773Ssam { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 3333146773Ssamecho "$as_me: Rechecking with some additional includes" >&6;} 3334146773Ssam unset ac_cv_header_netinet_if_ether_h 3335146773Ssam 3336146773Ssamfor ac_header in netinet/if_ether.h 3337146773Ssamdo 3338146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3339146773Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5 3340146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3341146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 3342146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 3343146773Ssamelse 3344146773Ssam cat >conftest.$ac_ext <<_ACEOF 3345146773Ssam#line $LINENO "configure" 3346146773Ssam/* confdefs.h. */ 3347146773Ssam_ACEOF 3348146773Ssamcat confdefs.h >>conftest.$ac_ext 3349146773Ssamcat >>conftest.$ac_ext <<_ACEOF 3350146773Ssam/* end confdefs.h. */ 3351146773Ssam#include <sys/types.h> 3352146773Ssam#include <sys/socket.h> 3353146773Ssam#include <netinet/in.h> 3354146773Ssamstruct mbuf; 3355146773Ssamstruct rtentry; 3356146773Ssam#include <net/if.h> 3357146773Ssam 3358146773Ssam#include <$ac_header> 3359146773Ssam_ACEOF 3360146773Ssamrm -f conftest.$ac_objext 3361146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3362146773Ssam (eval $ac_compile) 2>&5 3363146773Ssam ac_status=$? 3364146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365146773Ssam (exit $ac_status); } && 3366146773Ssam { ac_try='test -s conftest.$ac_objext' 3367146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3368146773Ssam (eval $ac_try) 2>&5 3369146773Ssam ac_status=$? 3370146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371146773Ssam (exit $ac_status); }; }; then 3372146773Ssam eval "$as_ac_Header=yes" 3373146773Ssamelse 3374146773Ssam echo "$as_me: failed program was:" >&5 3375146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 3376146773Ssam 3377146773Ssameval "$as_ac_Header=no" 3378146773Ssamfi 3379146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 3380146773Ssamfi 3381146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3382146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3383146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then 3384146773Ssam cat >>confdefs.h <<_ACEOF 3385146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3386146773Ssam_ACEOF 3387146773Ssam 3388146773Ssamfi 3389146773Ssam 3390146773Ssamdone 3391146773Ssam 3392146773Ssamfi 3393146773Ssam 3394127668Sbmsecho "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3395127668Sbmsecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3396127668Sbmsif test "${ac_cv_header_time+set}" = set; then 3397127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 3398127668Sbmselse 3399127668Sbms cat >conftest.$ac_ext <<_ACEOF 3400127668Sbms#line $LINENO "configure" 3401127668Sbms/* confdefs.h. */ 3402127668Sbms_ACEOF 3403127668Sbmscat confdefs.h >>conftest.$ac_ext 3404127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3405127668Sbms/* end confdefs.h. */ 3406127668Sbms#include <sys/types.h> 340717680Spst#include <sys/time.h> 340817680Spst#include <time.h> 3409127668Sbms 3410127668Sbmsint 3411127668Sbmsmain () 3412127668Sbms{ 3413127668Sbmsif ((struct tm *) 0) 3414127668Sbmsreturn 0; 3415127668Sbms ; 3416127668Sbms return 0; 3417127668Sbms} 3418127668Sbms_ACEOF 3419127668Sbmsrm -f conftest.$ac_objext 3420127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3421127668Sbms (eval $ac_compile) 2>&5 3422127668Sbms ac_status=$? 3423127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424127668Sbms (exit $ac_status); } && 3425127668Sbms { ac_try='test -s conftest.$ac_objext' 3426127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3427127668Sbms (eval $ac_try) 2>&5 3428127668Sbms ac_status=$? 3429127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3430127668Sbms (exit $ac_status); }; }; then 343117680Spst ac_cv_header_time=yes 343217680Spstelse 3433127668Sbms echo "$as_me: failed program was:" >&5 3434127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3435127668Sbms 3436127668Sbmsac_cv_header_time=no 343717680Spstfi 3438127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 343917680Spstfi 3440127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3441127668Sbmsecho "${ECHO_T}$ac_cv_header_time" >&6 3442127668Sbmsif test $ac_cv_header_time = yes; then 344317680Spst 3444127668Sbmscat >>confdefs.h <<\_ACEOF 344517680Spst#define TIME_WITH_SYS_TIME 1 3446127668Sbms_ACEOF 344717680Spst 344817680Spstfi 344917680Spst 345017680Spst 345198524Sfennercase "$host_os" in 345239297Sfenner 345339297Sfennerlinux*) 3454127668Sbms echo "$as_me:$LINENO: checking Linux kernel version" >&5 3455127668Sbmsecho $ECHO_N "checking Linux kernel version... $ECHO_C" >&6 345675115Sfenner if test "$cross_compiling" = yes; then 3457127668Sbms if test "${ac_cv_linux_vers+set}" = set; then 3458127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 345939297Sfennerelse 346075115Sfenner ac_cv_linux_vers=unknown 346175115Sfennerfi 346275115Sfenner 346375115Sfenner else 3464127668Sbms if test "${ac_cv_linux_vers+set}" = set; then 3465127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 346675115Sfennerelse 346739297Sfenner ac_cv_linux_vers=`uname -r 2>&1 | \ 346875115Sfenner sed -n -e '$s/.* //' -e '$s/\..*//p'` 346939297Sfennerfi 347039297Sfenner 347175115Sfenner fi 3472127668Sbms echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 3473127668Sbmsecho "${ECHO_T}$ac_cv_linux_vers" >&6 347475115Sfenner if test $ac_cv_linux_vers = unknown ; then 3475127668Sbms { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 3476127668Sbmsecho "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 3477127668Sbms { (exit 1); exit 1; }; } 347875115Sfenner fi 347939297Sfenner if test $ac_cv_linux_vers -lt 2 ; then 3480127668Sbms { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 3481127668Sbmsecho "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 3482127668Sbms { (exit 1); exit 1; }; } 348339297Sfenner fi 348439297Sfenner ;; 348539297Sfenner 348639297Sfenner*) 348739297Sfenner ;; 348839297Sfenneresac 348939297Sfenner 349056893Sfenner 3491127668Sbms 3492127668Sbmsfor ac_header in smi.h 349356893Sfennerdo 3494127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3495127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3496127668Sbms echo "$as_me:$LINENO: checking for $ac_header" >&5 3497127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3498127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3499127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 3500127668Sbmsfi 3501127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3502127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 350356893Sfennerelse 3504127668Sbms # Is the header compilable? 3505127668Sbmsecho "$as_me:$LINENO: checking $ac_header usability" >&5 3506127668Sbmsecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3507127668Sbmscat >conftest.$ac_ext <<_ACEOF 3508127668Sbms#line $LINENO "configure" 3509127668Sbms/* confdefs.h. */ 3510127668Sbms_ACEOF 3511127668Sbmscat confdefs.h >>conftest.$ac_ext 3512127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3513127668Sbms/* end confdefs.h. */ 3514127668Sbms$ac_includes_default 3515127668Sbms#include <$ac_header> 3516127668Sbms_ACEOF 3517127668Sbmsrm -f conftest.$ac_objext 3518127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3519127668Sbms (eval $ac_compile) 2>&5 3520127668Sbms ac_status=$? 3521127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3522127668Sbms (exit $ac_status); } && 3523127668Sbms { ac_try='test -s conftest.$ac_objext' 3524127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3525127668Sbms (eval $ac_try) 2>&5 3526127668Sbms ac_status=$? 3527127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528127668Sbms (exit $ac_status); }; }; then 3529127668Sbms ac_header_compiler=yes 353056893Sfennerelse 3531127668Sbms echo "$as_me: failed program was:" >&5 3532127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3533127668Sbms 3534127668Sbmsac_header_compiler=no 353556893Sfennerfi 3536127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 3537127668Sbmsecho "$as_me:$LINENO: result: $ac_header_compiler" >&5 3538127668Sbmsecho "${ECHO_T}$ac_header_compiler" >&6 3539127668Sbms 3540127668Sbms# Is the header present? 3541127668Sbmsecho "$as_me:$LINENO: checking $ac_header presence" >&5 3542127668Sbmsecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3543127668Sbmscat >conftest.$ac_ext <<_ACEOF 3544127668Sbms#line $LINENO "configure" 3545127668Sbms/* confdefs.h. */ 3546127668Sbms_ACEOF 3547127668Sbmscat confdefs.h >>conftest.$ac_ext 3548127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3549127668Sbms/* end confdefs.h. */ 3550127668Sbms#include <$ac_header> 3551127668Sbms_ACEOF 3552127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3553127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3554127668Sbms ac_status=$? 3555127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 3556127668Sbms rm -f conftest.er1 3557127668Sbms cat conftest.err >&5 3558127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3559127668Sbms (exit $ac_status); } >/dev/null; then 3560127668Sbms if test -s conftest.err; then 3561127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 3562127668Sbms else 3563127668Sbms ac_cpp_err= 3564127668Sbms fi 3565127668Sbmselse 3566127668Sbms ac_cpp_err=yes 356756893Sfennerfi 3568127668Sbmsif test -z "$ac_cpp_err"; then 3569127668Sbms ac_header_preproc=yes 357056893Sfennerelse 3571127668Sbms echo "$as_me: failed program was:" >&5 3572127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3573127668Sbms 3574127668Sbms ac_header_preproc=no 357556893Sfennerfi 3576127668Sbmsrm -f conftest.err conftest.$ac_ext 3577127668Sbmsecho "$as_me:$LINENO: result: $ac_header_preproc" >&5 3578127668Sbmsecho "${ECHO_T}$ac_header_preproc" >&6 3579127668Sbms 3580127668Sbms# So? What about this header? 3581127668Sbmscase $ac_header_compiler:$ac_header_preproc in 3582127668Sbms yes:no ) 3583127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3584127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3585127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3586127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3587127668Sbms ( 3588127668Sbms cat <<\_ASBOX 3589127668Sbms## ------------------------------------ ## 3590127668Sbms## Report this to bug-autoconf@gnu.org. ## 3591127668Sbms## ------------------------------------ ## 3592127668Sbms_ASBOX 3593127668Sbms ) | 3594127668Sbms sed "s/^/$as_me: WARNING: /" >&2 3595127668Sbms ;; 3596127668Sbms no:yes ) 3597127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3598127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3599127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3600127668Sbmsecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3601127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3602127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3603127668Sbms ( 3604127668Sbms cat <<\_ASBOX 3605127668Sbms## ------------------------------------ ## 3606127668Sbms## Report this to bug-autoconf@gnu.org. ## 3607127668Sbms## ------------------------------------ ## 3608127668Sbms_ASBOX 3609127668Sbms ) | 3610127668Sbms sed "s/^/$as_me: WARNING: /" >&2 3611127668Sbms ;; 3612127668Sbmsesac 3613127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5 3614127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3615127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 3616127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 3617127668Sbmselse 3618127668Sbms eval "$as_ac_Header=$ac_header_preproc" 3619127668Sbmsfi 3620127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3621127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3622127668Sbms 3623127668Sbmsfi 3624127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then 3625127668Sbms cat >>confdefs.h <<_ACEOF 3626127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3627127668Sbms_ACEOF 3628127668Sbms 3629127668Sbmsfi 3630127668Sbms 363156893Sfennerdone 363256893Sfenner 3633127668Sbms 3634127668Sbmsecho "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 3635127668Sbmsecho $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6 3636127668Sbmsif test "${ac_cv_lib_smi_smiInit+set}" = set; then 3637127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 363856893Sfennerelse 3639127668Sbms ac_check_lib_save_LIBS=$LIBS 364056893SfennerLIBS="-lsmi $LIBS" 3641127668Sbmscat >conftest.$ac_ext <<_ACEOF 3642127668Sbms#line $LINENO "configure" 3643127668Sbms/* confdefs.h. */ 3644127668Sbms_ACEOF 3645127668Sbmscat confdefs.h >>conftest.$ac_ext 3646127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3647127668Sbms/* end confdefs.h. */ 3648127668Sbms 364975115Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 3650127668Sbms#ifdef __cplusplus 3651127668Sbmsextern "C" 3652127668Sbms#endif 365375115Sfenner/* We use char because int might match the return type of a gcc2 3654127668Sbms builtin and then its argument prototype would still apply. */ 3655127668Sbmschar smiInit (); 3656127668Sbmsint 3657127668Sbmsmain () 3658127668Sbms{ 3659127668SbmssmiInit (); 3660127668Sbms ; 3661127668Sbms return 0; 3662127668Sbms} 3663127668Sbms_ACEOF 3664127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 3665127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3666127668Sbms (eval $ac_link) 2>&5 3667127668Sbms ac_status=$? 3668127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669127668Sbms (exit $ac_status); } && 3670127668Sbms { ac_try='test -s conftest$ac_exeext' 3671127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3672127668Sbms (eval $ac_try) 2>&5 3673127668Sbms ac_status=$? 3674127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675127668Sbms (exit $ac_status); }; }; then 3676127668Sbms ac_cv_lib_smi_smiInit=yes 367756893Sfennerelse 3678127668Sbms echo "$as_me: failed program was:" >&5 3679127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 368056893Sfenner 3681127668Sbmsac_cv_lib_smi_smiInit=no 368256893Sfennerfi 3683127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3684127668SbmsLIBS=$ac_check_lib_save_LIBS 3685127668Sbmsfi 3686127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 3687127668Sbmsecho "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6 3688127668Sbmsif test $ac_cv_lib_smi_smiInit = yes; then 3689127668Sbms cat >>confdefs.h <<_ACEOF 3690127668Sbms#define HAVE_LIBSMI 1 3691127668Sbms_ACEOF 369256893Sfenner 369356893Sfenner LIBS="-lsmi $LIBS" 369456893Sfenner 369556893Sfennerfi 369656893Sfenner 369798524Sfennerif test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 369898524Sfennerthen 3699127668Sbmsecho "$as_me:$LINENO: checking whether to enable libsmi" >&5 3700127668Sbmsecho $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6 370156893Sfenner if test "$cross_compiling" = yes; then 3702127668Sbms echo "$as_me:$LINENO: result: not when cross-compiling" >&5 3703127668Sbmsecho "${ECHO_T}not when cross-compiling" >&6 370475115Sfenner libsmi=no 370575115Sfenner 370656893Sfennerelse 3707127668Sbms cat >conftest.$ac_ext <<_ACEOF 3708127668Sbms#line $LINENO "configure" 3709127668Sbms/* confdefs.h. */ 3710127668Sbms_ACEOF 3711127668Sbmscat confdefs.h >>conftest.$ac_ext 3712127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3713127668Sbms/* end confdefs.h. */ 371456893Sfenner /* libsmi available check */ 371556893Sfenner#include <smi.h> 371656893Sfennermain() 371756893Sfenner{ 371875115Sfenner int current, revision, age, n; 371975115Sfenner const int required = 2; 3720127668Sbms if (smiInit("")) 372156893Sfenner exit(1); 372275115Sfenner if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 372375115Sfenner exit(2); 372475115Sfenner n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 372575115Sfenner if (n != 3) 372675115Sfenner exit(3); 372775115Sfenner if (required < current - age || required > current) 372875115Sfenner exit(4); 372975115Sfenner exit(0); 373056893Sfenner} 373156893Sfenner 3732127668Sbms_ACEOF 3733127668Sbmsrm -f conftest$ac_exeext 3734127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3735127668Sbms (eval $ac_link) 2>&5 3736127668Sbms ac_status=$? 3737127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3739127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3740127668Sbms (eval $ac_try) 2>&5 3741127668Sbms ac_status=$? 3742127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743127668Sbms (exit $ac_status); }; }; then 3744127668Sbms echo "$as_me:$LINENO: result: yes" >&5 3745127668Sbmsecho "${ECHO_T}yes" >&6 3746127668Sbms cat >>confdefs.h <<\_ACEOF 374756893Sfenner#define LIBSMI 1 3748127668Sbms_ACEOF 374956893Sfenner 375056893Sfenner libsmi=yes 375156893Sfennerelse 3752127668Sbms echo "$as_me: program exited with status $ac_status" >&5 3753127668Sbmsecho "$as_me: failed program was:" >&5 3754127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3755127668Sbms 3756127668Sbms( exit $ac_status ) 3757127668Sbms case $? in 3758127668Sbms 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5 3759127668Sbmsecho "${ECHO_T}no - smiInit failed" >&6 ;; 3760127668Sbms 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 3761127668Sbmsecho "${ECHO_T}no - header/library version mismatch" >&6 ;; 3762127668Sbms 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5 3763127668Sbmsecho "${ECHO_T}no - can't determine library version" >&6 ;; 3764127668Sbms 4) echo "$as_me:$LINENO: result: no - too old" >&5 3765127668Sbmsecho "${ECHO_T}no - too old" >&6 ;; 3766127668Sbms *) echo "$as_me:$LINENO: result: no" >&5 3767127668Sbmsecho "${ECHO_T}no" >&6 ;; 376898524Sfenner esac 376956893Sfenner libsmi=no 377056893Sfennerfi 3771127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 377256893Sfennerfi 377398524Sfennerfi 377456893Sfenner 3775127668Sbmsecho "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 3776127668Sbmsecho $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6 377798524Sfenner# Check whether --enable-smb or --disable-smb was given. 377898524Sfennerif test "${enable_smb+set}" = set; then 377998524Sfenner enableval="$enable_smb" 3780127668Sbms 378198524Sfennerelse 378298524Sfenner enableval=yes 3783127668Sbmsfi; 378498524Sfennercase "$enableval" in 3785127668Sbmsyes) echo "$as_me:$LINENO: result: yes" >&5 3786127668Sbmsecho "${ECHO_T}yes" >&6 3787127668Sbms { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 3788127668Sbmsecho "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 3789127668Sbms cat >>confdefs.h <<\_ACEOF 379098524Sfenner#define TCPDUMP_DO_SMB 1 3791127668Sbms_ACEOF 379298524Sfenner 379398524Sfenner LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 379498524Sfenner ;; 3795127668Sbms*) echo "$as_me:$LINENO: result: no" >&5 3796127668Sbmsecho "${ECHO_T}no" >&6 379798524Sfenner ;; 379898524Sfenneresac 379998524Sfenner 3800146773Ssam 3801146773Ssam# Check whether --with-user or --without-user was given. 3802146773Ssamif test "${with_user+set}" = set; then 3803146773Ssam withval="$with_user" 3804146773Ssam 3805146773Ssamfi; 3806146773Ssamecho "$as_me:$LINENO: checking whether to drop root privileges by default" >&5 3807146773Ssamecho $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6 3808146773Ssamif test ! -z "$with_user" ; then 3809146773Ssam cat >>confdefs.h <<_ACEOF 3810146773Ssam#define WITH_USER "$withval" 3811146773Ssam_ACEOF 3812146773Ssam 3813146773Ssam echo "$as_me:$LINENO: result: to \"$withval\"" >&5 3814146773Ssamecho "${ECHO_T}to \"$withval\"" >&6 3815146773Ssamelse 3816146773Ssam echo "$as_me:$LINENO: result: no" >&5 3817146773Ssamecho "${ECHO_T}no" >&6 3818146773Ssamfi 3819146773Ssam 3820146773Ssam 3821146773Ssam# Check whether --with-chroot or --without-chroot was given. 3822146773Ssamif test "${with_chroot+set}" = set; then 3823146773Ssam withval="$with_chroot" 3824146773Ssam 3825146773Ssamfi; 3826146773Ssamecho "$as_me:$LINENO: checking whether to chroot" >&5 3827146773Ssamecho $ECHO_N "checking whether to chroot... $ECHO_C" >&6 3828146773Ssamif test ! -z "$with_chroot" ; then 3829146773Ssam cat >>confdefs.h <<_ACEOF 3830146773Ssam#define WITH_CHROOT "$withval" 3831146773Ssam_ACEOF 3832146773Ssam 3833146773Ssam echo "$as_me:$LINENO: result: to \"$withval\"" >&5 3834146773Ssamecho "${ECHO_T}to \"$withval\"" >&6 3835146773Ssamelse 3836146773Ssam echo "$as_me:$LINENO: result: no" >&5 3837146773Ssamecho "${ECHO_T}no" >&6 3838146773Ssamfi 3839146773Ssam 3840127668Sbmsecho "$as_me:$LINENO: checking whether to enable ipv6" >&5 3841127668Sbmsecho $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6 384256893Sfenner# Check whether --enable-ipv6 or --disable-ipv6 was given. 384356893Sfennerif test "${enable_ipv6+set}" = set; then 384456893Sfenner enableval="$enable_ipv6" 384556893Sfenner case "$enableval" in 3846127668Sbmsyes) echo "$as_me:$LINENO: result: yes" >&5 3847127668Sbmsecho "${ECHO_T}yes" >&6 3848127668Sbms LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 3849127668Sbms cat >>confdefs.h <<\_ACEOF 385056893Sfenner#define INET6 1 3851127668Sbms_ACEOF 385256893Sfenner 385356893Sfenner ipv6=yes 385456893Sfenner ;; 385556893Sfenner*) 3856127668Sbms echo "$as_me:$LINENO: result: no" >&5 3857127668Sbmsecho "${ECHO_T}no" >&6 385856893Sfenner ipv6=no 385956893Sfenner ;; 3860127668Sbms esac 386156893Sfennerelse 386256893Sfenner if test "$cross_compiling" = yes; then 3863127668Sbms echo "$as_me:$LINENO: result: no" >&5 3864127668Sbmsecho "${ECHO_T}no" >&6 386556893Sfenner ipv6=no 386656893Sfenner 386756893Sfennerelse 3868127668Sbms cat >conftest.$ac_ext <<_ACEOF 3869127668Sbms#line $LINENO "configure" 3870127668Sbms/* confdefs.h. */ 3871127668Sbms_ACEOF 3872127668Sbmscat confdefs.h >>conftest.$ac_ext 3873127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3874127668Sbms/* end confdefs.h. */ 387556893Sfenner /* AF_INET6 available check */ 387656893Sfenner#include <sys/types.h> 387756893Sfenner#include <sys/socket.h> 387856893Sfennermain() 387956893Sfenner{ 388056893Sfenner if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 388156893Sfenner exit(1); 388256893Sfenner else 388356893Sfenner exit(0); 388456893Sfenner} 388556893Sfenner 3886127668Sbms_ACEOF 3887127668Sbmsrm -f conftest$ac_exeext 3888127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3889127668Sbms (eval $ac_link) 2>&5 3890127668Sbms ac_status=$? 3891127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3893127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3894127668Sbms (eval $ac_try) 2>&5 3895127668Sbms ac_status=$? 3896127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 3897127668Sbms (exit $ac_status); }; }; then 3898127668Sbms echo "$as_me:$LINENO: result: yes" >&5 3899127668Sbmsecho "${ECHO_T}yes" >&6 3900127668Sbms LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 3901127668Sbms cat >>confdefs.h <<\_ACEOF 390256893Sfenner#define INET6 1 3903127668Sbms_ACEOF 390456893Sfenner 390556893Sfenner ipv6=yes 390656893Sfennerelse 3907127668Sbms echo "$as_me: program exited with status $ac_status" >&5 3908127668Sbmsecho "$as_me: failed program was:" >&5 3909127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 3910127668Sbms 3911127668Sbms( exit $ac_status ) 3912127668Sbms echo "$as_me:$LINENO: result: no" >&5 3913127668Sbmsecho "${ECHO_T}no" >&6 391456893Sfenner ipv6=no 391556893Sfennerfi 3916127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 391756893Sfennerfi 3918127668Sbmsfi; 391956893Sfenner 392056893Sfenneripv6type=unknown 392156893Sfenneripv6lib=none 392256893Sfenneripv6trylibc=no 392356893Sfenner 392456893Sfennerif test "$ipv6" = "yes"; then 3925127668Sbms echo "$as_me:$LINENO: checking ipv6 stack type" >&5 3926127668Sbmsecho $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 392756893Sfenner for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 392856893Sfenner case $i in 392956893Sfenner inria) 3930127668Sbms cat >conftest.$ac_ext <<_ACEOF 3931127668Sbms#line $LINENO "configure" 3932127668Sbms/* confdefs.h. */ 3933127668Sbms_ACEOF 3934127668Sbmscat confdefs.h >>conftest.$ac_ext 3935127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3936127668Sbms/* end confdefs.h. */ 393756893Sfenner#include <netinet/in.h> 393856893Sfenner#ifdef IPV6_INRIA_VERSION 393956893Sfenneryes 394056893Sfenner#endif 3941127668Sbms_ACEOF 394256893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3943127668Sbms $EGREP "yes" >/dev/null 2>&1; then 394456893Sfenner ipv6type=$i; 394556893Sfenner CFLAGS="-DINET6 $CFLAGS" 394656893Sfennerfi 394756893Sfennerrm -f conftest* 394856893Sfenner 394956893Sfenner ;; 395056893Sfenner kame) 3951127668Sbms cat >conftest.$ac_ext <<_ACEOF 3952127668Sbms#line $LINENO "configure" 3953127668Sbms/* confdefs.h. */ 3954127668Sbms_ACEOF 3955127668Sbmscat confdefs.h >>conftest.$ac_ext 3956127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3957127668Sbms/* end confdefs.h. */ 395856893Sfenner#include <netinet/in.h> 395956893Sfenner#ifdef __KAME__ 396056893Sfenneryes 396156893Sfenner#endif 3962127668Sbms_ACEOF 396356893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3964127668Sbms $EGREP "yes" >/dev/null 2>&1; then 396556893Sfenner ipv6type=$i; 396656893Sfenner ipv6lib=inet6; 396756893Sfenner ipv6libdir=/usr/local/v6/lib; 396856893Sfenner ipv6trylibc=yes; 396956893Sfenner CFLAGS="-DINET6 $CFLAGS" 397056893Sfennerfi 397156893Sfennerrm -f conftest* 397256893Sfenner 397356893Sfenner ;; 397456893Sfenner linux-glibc) 3975127668Sbms cat >conftest.$ac_ext <<_ACEOF 3976127668Sbms#line $LINENO "configure" 3977127668Sbms/* confdefs.h. */ 3978127668Sbms_ACEOF 3979127668Sbmscat confdefs.h >>conftest.$ac_ext 3980127668Sbmscat >>conftest.$ac_ext <<_ACEOF 3981127668Sbms/* end confdefs.h. */ 398256893Sfenner#include <features.h> 398356893Sfenner#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 398456893Sfenneryes 398556893Sfenner#endif 3986127668Sbms_ACEOF 398756893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3988127668Sbms $EGREP "yes" >/dev/null 2>&1; then 398956893Sfenner ipv6type=$i; 399056893Sfenner CFLAGS="-DINET6 $CFLAGS" 399156893Sfennerfi 399256893Sfennerrm -f conftest* 399356893Sfenner 399456893Sfenner ;; 399556893Sfenner linux-libinet6) 3996127668Sbms if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 399756893Sfenner ipv6type=$i 399856893Sfenner ipv6lib=inet6 399956893Sfenner ipv6libdir=/usr/inet6/lib 400056893Sfenner ipv6trylibc=yes; 400156893Sfenner CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 400256893Sfenner fi 400356893Sfenner ;; 400456893Sfenner toshiba) 4005127668Sbms cat >conftest.$ac_ext <<_ACEOF 4006127668Sbms#line $LINENO "configure" 4007127668Sbms/* confdefs.h. */ 4008127668Sbms_ACEOF 4009127668Sbmscat confdefs.h >>conftest.$ac_ext 4010127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4011127668Sbms/* end confdefs.h. */ 401256893Sfenner#include <sys/param.h> 401356893Sfenner#ifdef _TOSHIBA_INET6 401456893Sfenneryes 401556893Sfenner#endif 4016127668Sbms_ACEOF 401756893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4018127668Sbms $EGREP "yes" >/dev/null 2>&1; then 401956893Sfenner ipv6type=$i; 402056893Sfenner ipv6lib=inet6; 402156893Sfenner ipv6libdir=/usr/local/v6/lib; 402256893Sfenner CFLAGS="-DINET6 $CFLAGS" 402356893Sfennerfi 402456893Sfennerrm -f conftest* 402556893Sfenner 402656893Sfenner ;; 402756893Sfenner v6d) 4028127668Sbms cat >conftest.$ac_ext <<_ACEOF 4029127668Sbms#line $LINENO "configure" 4030127668Sbms/* confdefs.h. */ 4031127668Sbms_ACEOF 4032127668Sbmscat confdefs.h >>conftest.$ac_ext 4033127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4034127668Sbms/* end confdefs.h. */ 403556893Sfenner#include </usr/local/v6/include/sys/v6config.h> 403656893Sfenner#ifdef __V6D__ 403756893Sfenneryes 403856893Sfenner#endif 4039127668Sbms_ACEOF 404056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4041127668Sbms $EGREP "yes" >/dev/null 2>&1; then 404256893Sfenner ipv6type=$i; 404356893Sfenner ipv6lib=v6; 404456893Sfenner ipv6libdir=/usr/local/v6/lib; 404556893Sfenner CFLAGS="-I/usr/local/v6/include $CFLAGS" 404656893Sfennerfi 404756893Sfennerrm -f conftest* 404856893Sfenner 404956893Sfenner ;; 405056893Sfenner zeta) 4051127668Sbms cat >conftest.$ac_ext <<_ACEOF 4052127668Sbms#line $LINENO "configure" 4053127668Sbms/* confdefs.h. */ 4054127668Sbms_ACEOF 4055127668Sbmscat confdefs.h >>conftest.$ac_ext 4056127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4057127668Sbms/* end confdefs.h. */ 405856893Sfenner#include <sys/param.h> 405956893Sfenner#ifdef _ZETA_MINAMI_INET6 406056893Sfenneryes 406156893Sfenner#endif 4062127668Sbms_ACEOF 406356893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4064127668Sbms $EGREP "yes" >/dev/null 2>&1; then 406556893Sfenner ipv6type=$i; 406656893Sfenner ipv6lib=inet6; 406756893Sfenner ipv6libdir=/usr/local/v6/lib; 406856893Sfenner CFLAGS="-DINET6 $CFLAGS" 406956893Sfennerfi 407056893Sfennerrm -f conftest* 407156893Sfenner 407256893Sfenner ;; 407356893Sfenner esac 407456893Sfenner if test "$ipv6type" != "unknown"; then 407556893Sfenner break 407656893Sfenner fi 407756893Sfenner done 4078127668Sbms echo "$as_me:$LINENO: result: $ipv6type" >&5 4079127668Sbmsecho "${ECHO_T}$ipv6type" >&6 408056893Sfennerfi 408156893Sfenner 408256893Sfennerif test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 408356893Sfenner if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 408456893Sfenner LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 408556893Sfenner echo "You have $ipv6lib library, using it" 408656893Sfenner else 408756893Sfenner if test "$ipv6trylibc" = "yes"; then 408856893Sfenner echo "You do not have $ipv6lib library, using libc" 408956893Sfenner else 409056893Sfenner echo 'Fatal: no $ipv6lib library found. cannot continue.' 409156893Sfenner echo "You need to fetch lib$ipv6lib.a from appropriate" 409256893Sfenner echo 'ipv6 kit and compile beforehand.' 409356893Sfenner exit 1 409456893Sfenner fi 409556893Sfenner fi 409656893Sfennerfi 409756893Sfenner 409856893Sfenner 409956893Sfennerif test "$ipv6" = "yes"; then 4100127668Sbms # 4101127668Sbms # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 4102127668Sbms # function in libc; there are "ngetaddrinfo()" and 4103127668Sbms # "ogetaddrinfo()" functions, and <netdb.h> #defines 4104127668Sbms # "getaddrinfo" to be either "ngetaddrinfo" or 4105127668Sbms # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 4106127668Sbms # or _XOPEN_SOURCE_EXTENDED are defined or not. 4107127668Sbms # 4108127668Sbms # So this test doesn't work on Tru64 5.1, and possibly 4109127668Sbms # on other 5.x releases. This causes the configure 4110127668Sbms # script to become confused, and results in libpcap 4111127668Sbms # being unbuildable. 4112127668Sbms # 4113127668Sbms echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 4114127668Sbmsecho $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6 4115127668Sbmsif test "${ac_cv_search_getaddrinfo+set}" = set; then 4116127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 411756893Sfennerelse 4118127668Sbms ac_func_search_save_LIBS=$LIBS 4119127668Sbmsac_cv_search_getaddrinfo=no 4120127668Sbmscat >conftest.$ac_ext <<_ACEOF 4121127668Sbms#line $LINENO "configure" 4122127668Sbms/* confdefs.h. */ 4123127668Sbms_ACEOF 4124127668Sbmscat confdefs.h >>conftest.$ac_ext 4125127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4126127668Sbms/* end confdefs.h. */ 4127127668Sbms 412856893Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 4129127668Sbms#ifdef __cplusplus 4130127668Sbmsextern "C" 4131127668Sbms#endif 413256893Sfenner/* We use char because int might match the return type of a gcc2 4133127668Sbms builtin and then its argument prototype would still apply. */ 4134127668Sbmschar getaddrinfo (); 4135127668Sbmsint 4136127668Sbmsmain () 4137127668Sbms{ 4138127668Sbmsgetaddrinfo (); 4139127668Sbms ; 4140127668Sbms return 0; 4141127668Sbms} 4142127668Sbms_ACEOF 4143127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 4144127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4145127668Sbms (eval $ac_link) 2>&5 4146127668Sbms ac_status=$? 4147127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148127668Sbms (exit $ac_status); } && 4149127668Sbms { ac_try='test -s conftest$ac_exeext' 4150127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4151127668Sbms (eval $ac_try) 2>&5 4152127668Sbms ac_status=$? 4153127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154127668Sbms (exit $ac_status); }; }; then 415575115Sfenner ac_cv_search_getaddrinfo="none required" 415675115Sfennerelse 4157127668Sbms echo "$as_me: failed program was:" >&5 4158127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4159127668Sbms 416075115Sfennerfi 4161127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4162127668Sbmsif test "$ac_cv_search_getaddrinfo" = no; then 4163127668Sbms for ac_lib in socket; do 4164127668Sbms LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4165127668Sbms cat >conftest.$ac_ext <<_ACEOF 4166127668Sbms#line $LINENO "configure" 4167127668Sbms/* confdefs.h. */ 4168127668Sbms_ACEOF 4169127668Sbmscat confdefs.h >>conftest.$ac_ext 4170127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4171127668Sbms/* end confdefs.h. */ 4172127668Sbms 417375115Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 4174127668Sbms#ifdef __cplusplus 4175127668Sbmsextern "C" 4176127668Sbms#endif 417775115Sfenner/* We use char because int might match the return type of a gcc2 4178127668Sbms builtin and then its argument prototype would still apply. */ 4179127668Sbmschar getaddrinfo (); 4180127668Sbmsint 4181127668Sbmsmain () 4182127668Sbms{ 4183127668Sbmsgetaddrinfo (); 4184127668Sbms ; 4185127668Sbms return 0; 4186127668Sbms} 4187127668Sbms_ACEOF 4188127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 4189127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4190127668Sbms (eval $ac_link) 2>&5 4191127668Sbms ac_status=$? 4192127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4193127668Sbms (exit $ac_status); } && 4194127668Sbms { ac_try='test -s conftest$ac_exeext' 4195127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4196127668Sbms (eval $ac_try) 2>&5 4197127668Sbms ac_status=$? 4198127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199127668Sbms (exit $ac_status); }; }; then 4200127668Sbms ac_cv_search_getaddrinfo="-l$ac_lib" 420175115Sfennerbreak 420256893Sfennerelse 4203127668Sbms echo "$as_me: failed program was:" >&5 4204127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4205127668Sbms 420656893Sfennerfi 4207127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4208127668Sbms done 420956893Sfennerfi 4210127668SbmsLIBS=$ac_func_search_save_LIBS 4211127668Sbmsfi 4212127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 4213127668Sbmsecho "${ECHO_T}$ac_cv_search_getaddrinfo" >&6 4214127668Sbmsif test "$ac_cv_search_getaddrinfo" != no; then 421575115Sfenner test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS" 4216127668Sbms echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 4217127668Sbmsecho $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 4218127668Sbms if test "${td_cv_buggygetaddrinfo+set}" = set; then 4219127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 422056893Sfennerelse 4221127668Sbms if test "$cross_compiling" = yes; then 4222127668Sbms td_cv_buggygetaddrinfo=yes 4223127668Sbmselse 4224127668Sbms cat >conftest.$ac_ext <<_ACEOF 4225127668Sbms#line $LINENO "configure" 4226127668Sbms/* confdefs.h. */ 4227127668Sbms_ACEOF 4228127668Sbmscat confdefs.h >>conftest.$ac_ext 4229127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4230127668Sbms/* end confdefs.h. */ 423156893Sfenner 423256893Sfenner#include <sys/types.h> 423356893Sfenner#include <netdb.h> 423456893Sfenner#include <string.h> 423556893Sfenner#include <sys/socket.h> 423656893Sfenner#include <netinet/in.h> 423756893Sfenner 423856893Sfennermain() 423956893Sfenner{ 424056893Sfenner int passive, gaierr, inet4 = 0, inet6 = 0; 424156893Sfenner struct addrinfo hints, *ai, *aitop; 424256893Sfenner char straddr[INET6_ADDRSTRLEN], strport[16]; 424356893Sfenner 424456893Sfenner for (passive = 0; passive <= 1; passive++) { 424556893Sfenner memset(&hints, 0, sizeof(hints)); 424656893Sfenner hints.ai_family = AF_UNSPEC; 424756893Sfenner hints.ai_flags = passive ? AI_PASSIVE : 0; 424856893Sfenner hints.ai_socktype = SOCK_STREAM; 4249127668Sbms hints.ai_protocol = IPPROTO_TCP; 425056893Sfenner if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 425156893Sfenner (void)gai_strerror(gaierr); 425256893Sfenner goto bad; 425356893Sfenner } 425456893Sfenner for (ai = aitop; ai; ai = ai->ai_next) { 425556893Sfenner if (ai->ai_addr == NULL || 425656893Sfenner ai->ai_addrlen == 0 || 425756893Sfenner getnameinfo(ai->ai_addr, ai->ai_addrlen, 425856893Sfenner straddr, sizeof(straddr), strport, sizeof(strport), 425956893Sfenner NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 426056893Sfenner goto bad; 426156893Sfenner } 426256893Sfenner switch (ai->ai_family) { 426356893Sfenner case AF_INET: 426456893Sfenner if (strcmp(strport, "54321") != 0) { 426556893Sfenner goto bad; 426656893Sfenner } 426756893Sfenner if (passive) { 426856893Sfenner if (strcmp(straddr, "0.0.0.0") != 0) { 426956893Sfenner goto bad; 427056893Sfenner } 427156893Sfenner } else { 427256893Sfenner if (strcmp(straddr, "127.0.0.1") != 0) { 427356893Sfenner goto bad; 427456893Sfenner } 427556893Sfenner } 427656893Sfenner inet4++; 427756893Sfenner break; 427856893Sfenner case AF_INET6: 427956893Sfenner if (strcmp(strport, "54321") != 0) { 428056893Sfenner goto bad; 428156893Sfenner } 428256893Sfenner if (passive) { 428356893Sfenner if (strcmp(straddr, "::") != 0) { 428456893Sfenner goto bad; 428556893Sfenner } 428656893Sfenner } else { 428756893Sfenner if (strcmp(straddr, "::1") != 0) { 428856893Sfenner goto bad; 428956893Sfenner } 429056893Sfenner } 429156893Sfenner inet6++; 429256893Sfenner break; 429356893Sfenner case AF_UNSPEC: 429456893Sfenner goto bad; 429556893Sfenner break; 429656893Sfenner#ifdef AF_UNIX 429756893Sfenner case AF_UNIX: 429856893Sfenner#else 429956893Sfenner#ifdef AF_LOCAL 430056893Sfenner case AF_LOCAL: 430156893Sfenner#endif 430256893Sfenner#endif 430356893Sfenner default: 430456893Sfenner /* another family support? */ 430556893Sfenner break; 430656893Sfenner } 430756893Sfenner } 430856893Sfenner } 430956893Sfenner 431056893Sfenner /* supported family should be 2, unsupported family should be 0 */ 431156893Sfenner if (!(inet4 == 0 || inet4 == 2)) 431256893Sfenner goto bad; 431356893Sfenner if (!(inet6 == 0 || inet6 == 2)) 431456893Sfenner goto bad; 431556893Sfenner 431656893Sfenner if (aitop) 431756893Sfenner freeaddrinfo(aitop); 431856893Sfenner exit(0); 431956893Sfenner 432056893Sfenner bad: 432156893Sfenner if (aitop) 432256893Sfenner freeaddrinfo(aitop); 432356893Sfenner exit(1); 432456893Sfenner} 432556893Sfenner 4326127668Sbms_ACEOF 4327127668Sbmsrm -f conftest$ac_exeext 4328127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4329127668Sbms (eval $ac_link) 2>&5 4330127668Sbms ac_status=$? 4331127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4333127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4334127668Sbms (eval $ac_try) 2>&5 4335127668Sbms ac_status=$? 4336127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337127668Sbms (exit $ac_status); }; }; then 4338127668Sbms td_cv_buggygetaddrinfo=no 433956893Sfennerelse 4340127668Sbms echo "$as_me: program exited with status $ac_status" >&5 4341127668Sbmsecho "$as_me: failed program was:" >&5 4342127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4343127668Sbms 4344127668Sbms( exit $ac_status ) 4345127668Sbmstd_cv_buggygetaddrinfo=yes 434656893Sfennerfi 4347127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 434856893Sfennerfi 434956893Sfennerfi 435056893Sfenner 4351127668Sbms if test "$td_cv_buggygetaddrinfo" = no; then 4352127668Sbms echo "$as_me:$LINENO: result: good" >&5 4353127668Sbmsecho "${ECHO_T}good" >&6 4354127668Sbms else 4355127668Sbms echo "$as_me:$LINENO: result: buggy" >&5 4356127668Sbmsecho "${ECHO_T}buggy" >&6 4357127668Sbms fi 4358127668Sbms 4359127668Sbms if test "$td_cv_buggygetaddrinfo" = "yes"; then 4360127668Sbms # 4361127668Sbms # XXX - it doesn't appear that "ipv6type" can ever be 4362127668Sbms # set to "linux". Should this be testing for 4363127668Sbms # "linux-glibc", or for that *or* "linux-libinet6"? 4364127668Sbms # If the latter, note that "linux-libinet6" is also 4365127668Sbms # the type given to some non-Linux OSes. 4366127668Sbms # 436756893Sfenner if test "$ipv6type" != "linux"; then 436856893Sfenner echo 'Fatal: You must get working getaddrinfo() function.' 436956893Sfenner echo ' or you can specify "--disable-ipv6"'. 437056893Sfenner exit 1 437156893Sfenner else 437256893Sfenner echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 4373127668Sbms echo ' Better upgrade your system library to newest version' 437456893Sfenner echo ' of GNU C library (aka glibc).' 437556893Sfenner fi 437656893Sfenner fi 4377127668Sbms 4378127668Sbmsfi 4379127668Sbms 4380127668Sbms 4381127668Sbms 4382127668Sbmsfor ac_func in getaddrinfo getnameinfo 438356893Sfennerdo 4384127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4385127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 4386127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4387127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 4388127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 438956893Sfennerelse 4390127668Sbms cat >conftest.$ac_ext <<_ACEOF 4391127668Sbms#line $LINENO "configure" 4392127668Sbms/* confdefs.h. */ 4393127668Sbms_ACEOF 4394127668Sbmscat confdefs.h >>conftest.$ac_ext 4395127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4396127668Sbms/* end confdefs.h. */ 439756893Sfenner/* System header to define __stub macros and hopefully few prototypes, 4398127668Sbms which can conflict with char $ac_func (); below. 4399127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4400127668Sbms <limits.h> exists even on freestanding compilers. */ 4401127668Sbms#ifdef __STDC__ 4402127668Sbms# include <limits.h> 4403127668Sbms#else 4404127668Sbms# include <assert.h> 4405127668Sbms#endif 440656893Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 4407127668Sbms#ifdef __cplusplus 4408127668Sbmsextern "C" 4409127668Sbms{ 4410127668Sbms#endif 441156893Sfenner/* We use char because int might match the return type of a gcc2 4412127668Sbms builtin and then its argument prototype would still apply. */ 4413127668Sbmschar $ac_func (); 441456893Sfenner/* The GNU C library defines this for functions which it implements 441556893Sfenner to always fail with ENOSYS. Some functions are actually named 441656893Sfenner something starting with __ and the normal name is an alias. */ 441756893Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 441856893Sfennerchoke me 441956893Sfenner#else 4420127668Sbmschar (*f) () = $ac_func; 442156893Sfenner#endif 4422127668Sbms#ifdef __cplusplus 4423127668Sbms} 4424127668Sbms#endif 442556893Sfenner 4426127668Sbmsint 4427127668Sbmsmain () 4428127668Sbms{ 4429127668Sbmsreturn f != $ac_func; 4430127668Sbms ; 4431127668Sbms return 0; 4432127668Sbms} 4433127668Sbms_ACEOF 4434127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 4435127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4436127668Sbms (eval $ac_link) 2>&5 4437127668Sbms ac_status=$? 4438127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439127668Sbms (exit $ac_status); } && 4440127668Sbms { ac_try='test -s conftest$ac_exeext' 4441127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4442127668Sbms (eval $ac_try) 2>&5 4443127668Sbms ac_status=$? 4444127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445127668Sbms (exit $ac_status); }; }; then 4446127668Sbms eval "$as_ac_var=yes" 444756893Sfennerelse 4448127668Sbms echo "$as_me: failed program was:" >&5 4449127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4450127668Sbms 4451127668Sbmseval "$as_ac_var=no" 445256893Sfennerfi 4453127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 445456893Sfennerfi 4455127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4456127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4457127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 4458127668Sbms cat >>confdefs.h <<_ACEOF 4459127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4460127668Sbms_ACEOF 446156893Sfenner 446256893Sfennerelse 4463127668Sbms LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 446456893Sfennerfi 446556893Sfennerdone 446656893Sfenner 446756893Sfenner 446856893Sfennerfi 4469127668Sbms 4470127668Sbmsecho "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 4471127668Sbmsecho $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6 4472127668Sbmsif test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 4473127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 447475115Sfennerelse 4475127668Sbms cat >conftest.$ac_ext <<_ACEOF 4476127668Sbms#line $LINENO "configure" 4477127668Sbms/* confdefs.h. */ 4478127668Sbms_ACEOF 4479127668Sbmscat confdefs.h >>conftest.$ac_ext 4480127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4481127668Sbms/* end confdefs.h. */ 4482127668Sbms#include <netdnet/dnetdb.h> 4483127668Sbms 4484127668Sbms_ACEOF 4485127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4486127668Sbms $EGREP "dnet_htoa" >/dev/null 2>&1; then 4487127668Sbms td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 448856893Sfennerelse 4489127668Sbms td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 4490127668Sbmsfi 4491127668Sbmsrm -f conftest* 449256893Sfenner 4493127668Sbmsfi 4494127668Sbmsecho "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 4495127668Sbmsecho "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6 4496127668Sbmsif test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 4497127668Sbms cat >>confdefs.h <<\_ACEOF 4498127668Sbms#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 4499127668Sbms_ACEOF 450056893Sfenner 4501127668Sbmsfi 450256893Sfenner 4503127668Sbmsecho "$as_me:$LINENO: checking for char" >&5 4504127668Sbmsecho $ECHO_N "checking for char... $ECHO_C" >&6 4505127668Sbmsif test "${ac_cv_type_char+set}" = set; then 4506127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 450756893Sfennerelse 4508127668Sbms cat >conftest.$ac_ext <<_ACEOF 4509127668Sbms#line $LINENO "configure" 4510127668Sbms/* confdefs.h. */ 4511127668Sbms_ACEOF 4512127668Sbmscat confdefs.h >>conftest.$ac_ext 4513127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4514127668Sbms/* end confdefs.h. */ 4515127668Sbms$ac_includes_default 4516127668Sbmsint 4517127668Sbmsmain () 4518127668Sbms{ 4519127668Sbmsif ((char *) 0) 4520127668Sbms return 0; 4521127668Sbmsif (sizeof (char)) 4522127668Sbms return 0; 4523127668Sbms ; 4524127668Sbms return 0; 4525127668Sbms} 4526127668Sbms_ACEOF 4527127668Sbmsrm -f conftest.$ac_objext 4528127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4529127668Sbms (eval $ac_compile) 2>&5 4530127668Sbms ac_status=$? 4531127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532127668Sbms (exit $ac_status); } && 4533127668Sbms { ac_try='test -s conftest.$ac_objext' 4534127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535127668Sbms (eval $ac_try) 2>&5 4536127668Sbms ac_status=$? 4537127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538127668Sbms (exit $ac_status); }; }; then 4539127668Sbms ac_cv_type_char=yes 4540127668Sbmselse 4541127668Sbms echo "$as_me: failed program was:" >&5 4542127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4543127668Sbms 4544127668Sbmsac_cv_type_char=no 454556893Sfennerfi 4546127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 454756893Sfennerfi 4548127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_char" >&5 4549127668Sbmsecho "${ECHO_T}$ac_cv_type_char" >&6 455056893Sfenner 4551127668Sbmsecho "$as_me:$LINENO: checking size of char" >&5 4552127668Sbmsecho $ECHO_N "checking size of char... $ECHO_C" >&6 4553127668Sbmsif test "${ac_cv_sizeof_char+set}" = set; then 4554127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 455556893Sfennerelse 4556127668Sbms if test "$ac_cv_type_char" = yes; then 4557127668Sbms # The cast to unsigned long works around a bug in the HP C Compiler 4558127668Sbms # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4559127668Sbms # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4560127668Sbms # This bug is HP SR number 8606223364. 4561127668Sbms if test "$cross_compiling" = yes; then 4562127668Sbms # Depending upon the size, compute the lo and hi bounds. 4563127668Sbmscat >conftest.$ac_ext <<_ACEOF 4564127668Sbms#line $LINENO "configure" 4565127668Sbms/* confdefs.h. */ 4566127668Sbms_ACEOF 4567127668Sbmscat confdefs.h >>conftest.$ac_ext 4568127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4569127668Sbms/* end confdefs.h. */ 4570127668Sbms$ac_includes_default 4571127668Sbmsint 4572127668Sbmsmain () 4573127668Sbms{ 4574127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 4575127668Sbmstest_array [0] = 0 457656893Sfenner 4577127668Sbms ; 4578127668Sbms return 0; 4579127668Sbms} 4580127668Sbms_ACEOF 4581127668Sbmsrm -f conftest.$ac_objext 4582127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4583127668Sbms (eval $ac_compile) 2>&5 4584127668Sbms ac_status=$? 4585127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4586127668Sbms (exit $ac_status); } && 4587127668Sbms { ac_try='test -s conftest.$ac_objext' 4588127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4589127668Sbms (eval $ac_try) 2>&5 4590127668Sbms ac_status=$? 4591127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592127668Sbms (exit $ac_status); }; }; then 4593127668Sbms ac_lo=0 ac_mid=0 4594127668Sbms while :; do 4595127668Sbms cat >conftest.$ac_ext <<_ACEOF 4596127668Sbms#line $LINENO "configure" 4597127668Sbms/* confdefs.h. */ 4598127668Sbms_ACEOF 4599127668Sbmscat confdefs.h >>conftest.$ac_ext 4600127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4601127668Sbms/* end confdefs.h. */ 4602127668Sbms$ac_includes_default 4603127668Sbmsint 4604127668Sbmsmain () 4605127668Sbms{ 4606127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4607127668Sbmstest_array [0] = 0 460856893Sfenner 4609127668Sbms ; 4610127668Sbms return 0; 4611127668Sbms} 4612127668Sbms_ACEOF 4613127668Sbmsrm -f conftest.$ac_objext 4614127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4615127668Sbms (eval $ac_compile) 2>&5 4616127668Sbms ac_status=$? 4617127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618127668Sbms (exit $ac_status); } && 4619127668Sbms { ac_try='test -s conftest.$ac_objext' 4620127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621127668Sbms (eval $ac_try) 2>&5 4622127668Sbms ac_status=$? 4623127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624127668Sbms (exit $ac_status); }; }; then 4625127668Sbms ac_hi=$ac_mid; break 4626127668Sbmselse 4627127668Sbms echo "$as_me: failed program was:" >&5 4628127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4629127668Sbms 4630127668Sbmsac_lo=`expr $ac_mid + 1` 4631127668Sbms if test $ac_lo -le $ac_mid; then 4632127668Sbms ac_lo= ac_hi= 4633127668Sbms break 4634127668Sbms fi 4635127668Sbms ac_mid=`expr 2 '*' $ac_mid + 1` 463675115Sfennerfi 4637127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 4638127668Sbms done 463975115Sfennerelse 4640127668Sbms echo "$as_me: failed program was:" >&5 4641127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 464256893Sfenner 4643127668Sbmscat >conftest.$ac_ext <<_ACEOF 4644127668Sbms#line $LINENO "configure" 4645127668Sbms/* confdefs.h. */ 4646127668Sbms_ACEOF 4647127668Sbmscat confdefs.h >>conftest.$ac_ext 4648127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4649127668Sbms/* end confdefs.h. */ 4650127668Sbms$ac_includes_default 4651127668Sbmsint 4652127668Sbmsmain () 4653127668Sbms{ 4654127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 4655127668Sbmstest_array [0] = 0 465656893Sfenner 4657127668Sbms ; 4658127668Sbms return 0; 4659127668Sbms} 4660127668Sbms_ACEOF 4661127668Sbmsrm -f conftest.$ac_objext 4662127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4663127668Sbms (eval $ac_compile) 2>&5 4664127668Sbms ac_status=$? 4665127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666127668Sbms (exit $ac_status); } && 4667127668Sbms { ac_try='test -s conftest.$ac_objext' 4668127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4669127668Sbms (eval $ac_try) 2>&5 4670127668Sbms ac_status=$? 4671127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672127668Sbms (exit $ac_status); }; }; then 4673127668Sbms ac_hi=-1 ac_mid=-1 4674127668Sbms while :; do 4675127668Sbms cat >conftest.$ac_ext <<_ACEOF 4676127668Sbms#line $LINENO "configure" 4677127668Sbms/* confdefs.h. */ 4678127668Sbms_ACEOF 4679127668Sbmscat confdefs.h >>conftest.$ac_ext 4680127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4681127668Sbms/* end confdefs.h. */ 4682127668Sbms$ac_includes_default 4683127668Sbmsint 4684127668Sbmsmain () 4685127668Sbms{ 4686127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 4687127668Sbmstest_array [0] = 0 468875115Sfenner 4689127668Sbms ; 4690127668Sbms return 0; 4691127668Sbms} 4692127668Sbms_ACEOF 4693127668Sbmsrm -f conftest.$ac_objext 4694127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4695127668Sbms (eval $ac_compile) 2>&5 4696127668Sbms ac_status=$? 4697127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698127668Sbms (exit $ac_status); } && 4699127668Sbms { ac_try='test -s conftest.$ac_objext' 4700127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4701127668Sbms (eval $ac_try) 2>&5 4702127668Sbms ac_status=$? 4703127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4704127668Sbms (exit $ac_status); }; }; then 4705127668Sbms ac_lo=$ac_mid; break 470675115Sfennerelse 4707127668Sbms echo "$as_me: failed program was:" >&5 4708127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4709127668Sbms 4710127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1` 4711127668Sbms if test $ac_mid -le $ac_hi; then 4712127668Sbms ac_lo= ac_hi= 4713127668Sbms break 4714127668Sbms fi 4715127668Sbms ac_mid=`expr 2 '*' $ac_mid` 471675115Sfennerfi 4717127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 4718127668Sbms done 4719127668Sbmselse 4720127668Sbms echo "$as_me: failed program was:" >&5 4721127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4722127668Sbms 4723127668Sbmsac_lo= ac_hi= 472475115Sfennerfi 4725127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 4726127668Sbmsfi 4727127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 4728127668Sbms# Binary search between lo and hi bounds. 4729127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do 4730127668Sbms ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4731127668Sbms cat >conftest.$ac_ext <<_ACEOF 4732127668Sbms#line $LINENO "configure" 4733127668Sbms/* confdefs.h. */ 4734127668Sbms_ACEOF 4735127668Sbmscat confdefs.h >>conftest.$ac_ext 4736127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4737127668Sbms/* end confdefs.h. */ 4738127668Sbms$ac_includes_default 4739127668Sbmsint 4740127668Sbmsmain () 4741127668Sbms{ 4742127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4743127668Sbmstest_array [0] = 0 474475115Sfenner 4745127668Sbms ; 4746127668Sbms return 0; 4747127668Sbms} 4748127668Sbms_ACEOF 4749127668Sbmsrm -f conftest.$ac_objext 4750127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4751127668Sbms (eval $ac_compile) 2>&5 4752127668Sbms ac_status=$? 4753127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754127668Sbms (exit $ac_status); } && 4755127668Sbms { ac_try='test -s conftest.$ac_objext' 4756127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4757127668Sbms (eval $ac_try) 2>&5 4758127668Sbms ac_status=$? 4759127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4760127668Sbms (exit $ac_status); }; }; then 4761127668Sbms ac_hi=$ac_mid 476275115Sfennerelse 4763127668Sbms echo "$as_me: failed program was:" >&5 4764127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4765127668Sbms 4766127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1` 476775115Sfennerfi 4768127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 476975115Sfennerdone 4770127668Sbmscase $ac_lo in 4771127668Sbms?*) ac_cv_sizeof_char=$ac_lo;; 4772127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4773127668SbmsSee \`config.log' for more details." >&5 4774127668Sbmsecho "$as_me: error: cannot compute sizeof (char), 77 4775127668SbmsSee \`config.log' for more details." >&2;} 4776127668Sbms { (exit 1); exit 1; }; } ;; 4777127668Sbmsesac 4778127668Sbmselse 4779127668Sbms if test "$cross_compiling" = yes; then 4780127668Sbms { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4781127668SbmsSee \`config.log' for more details." >&5 4782127668Sbmsecho "$as_me: error: cannot run test program while cross compiling 4783127668SbmsSee \`config.log' for more details." >&2;} 4784127668Sbms { (exit 1); exit 1; }; } 4785127668Sbmselse 4786127668Sbms cat >conftest.$ac_ext <<_ACEOF 4787127668Sbms#line $LINENO "configure" 4788127668Sbms/* confdefs.h. */ 4789127668Sbms_ACEOF 4790127668Sbmscat confdefs.h >>conftest.$ac_ext 4791127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4792127668Sbms/* end confdefs.h. */ 4793127668Sbms$ac_includes_default 4794127668Sbmslong longval () { return (long) (sizeof (char)); } 4795127668Sbmsunsigned long ulongval () { return (long) (sizeof (char)); } 4796127668Sbms#include <stdio.h> 4797127668Sbms#include <stdlib.h> 4798127668Sbmsint 4799127668Sbmsmain () 4800127668Sbms{ 480175115Sfenner 4802127668Sbms FILE *f = fopen ("conftest.val", "w"); 4803127668Sbms if (! f) 4804127668Sbms exit (1); 4805127668Sbms if (((long) (sizeof (char))) < 0) 4806127668Sbms { 4807127668Sbms long i = longval (); 4808127668Sbms if (i != ((long) (sizeof (char)))) 4809127668Sbms exit (1); 4810127668Sbms fprintf (f, "%ld\n", i); 4811127668Sbms } 4812127668Sbms else 4813127668Sbms { 4814127668Sbms unsigned long i = ulongval (); 4815127668Sbms if (i != ((long) (sizeof (char)))) 4816127668Sbms exit (1); 4817127668Sbms fprintf (f, "%lu\n", i); 4818127668Sbms } 4819127668Sbms exit (ferror (f) || fclose (f) != 0); 482075115Sfenner 4821127668Sbms ; 4822127668Sbms return 0; 4823127668Sbms} 4824127668Sbms_ACEOF 4825127668Sbmsrm -f conftest$ac_exeext 4826127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4827127668Sbms (eval $ac_link) 2>&5 4828127668Sbms ac_status=$? 4829127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4831127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4832127668Sbms (eval $ac_try) 2>&5 4833127668Sbms ac_status=$? 4834127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835127668Sbms (exit $ac_status); }; }; then 4836127668Sbms ac_cv_sizeof_char=`cat conftest.val` 4837127668Sbmselse 4838127668Sbms echo "$as_me: program exited with status $ac_status" >&5 4839127668Sbmsecho "$as_me: failed program was:" >&5 4840127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4841127668Sbms 4842127668Sbms( exit $ac_status ) 4843127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4844127668SbmsSee \`config.log' for more details." >&5 4845127668Sbmsecho "$as_me: error: cannot compute sizeof (char), 77 4846127668SbmsSee \`config.log' for more details." >&2;} 4847127668Sbms { (exit 1); exit 1; }; } 484875115Sfennerfi 4849127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4850127668Sbmsfi 4851127668Sbmsfi 4852127668Sbmsrm -f conftest.val 485375115Sfennerelse 4854127668Sbms ac_cv_sizeof_char=0 4855127668Sbmsfi 4856127668Sbmsfi 4857127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 4858127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_char" >&6 4859127668Sbmscat >>confdefs.h <<_ACEOF 4860127668Sbms#define SIZEOF_CHAR $ac_cv_sizeof_char 4861127668Sbms_ACEOF 4862127668Sbms 4863127668Sbms 4864127668Sbmsecho "$as_me:$LINENO: checking for short" >&5 4865127668Sbmsecho $ECHO_N "checking for short... $ECHO_C" >&6 4866127668Sbmsif test "${ac_cv_type_short+set}" = set; then 4867127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 486856893Sfennerelse 4869127668Sbms cat >conftest.$ac_ext <<_ACEOF 4870127668Sbms#line $LINENO "configure" 4871127668Sbms/* confdefs.h. */ 4872127668Sbms_ACEOF 4873127668Sbmscat confdefs.h >>conftest.$ac_ext 4874127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4875127668Sbms/* end confdefs.h. */ 4876127668Sbms$ac_includes_default 4877127668Sbmsint 4878127668Sbmsmain () 4879127668Sbms{ 4880127668Sbmsif ((short *) 0) 4881127668Sbms return 0; 4882127668Sbmsif (sizeof (short)) 4883127668Sbms return 0; 4884127668Sbms ; 4885127668Sbms return 0; 4886127668Sbms} 4887127668Sbms_ACEOF 4888127668Sbmsrm -f conftest.$ac_objext 4889127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4890127668Sbms (eval $ac_compile) 2>&5 4891127668Sbms ac_status=$? 4892127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893127668Sbms (exit $ac_status); } && 4894127668Sbms { ac_try='test -s conftest.$ac_objext' 4895127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4896127668Sbms (eval $ac_try) 2>&5 4897127668Sbms ac_status=$? 4898127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4899127668Sbms (exit $ac_status); }; }; then 4900127668Sbms ac_cv_type_short=yes 4901127668Sbmselse 4902127668Sbms echo "$as_me: failed program was:" >&5 4903127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 490456893Sfenner 4905127668Sbmsac_cv_type_short=no 4906127668Sbmsfi 4907127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 4908127668Sbmsfi 4909127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_short" >&5 4910127668Sbmsecho "${ECHO_T}$ac_cv_type_short" >&6 491175115Sfenner 4912127668Sbmsecho "$as_me:$LINENO: checking size of short" >&5 4913127668Sbmsecho $ECHO_N "checking size of short... $ECHO_C" >&6 4914127668Sbmsif test "${ac_cv_sizeof_short+set}" = set; then 4915127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 4916127668Sbmselse 4917127668Sbms if test "$ac_cv_type_short" = yes; then 4918127668Sbms # The cast to unsigned long works around a bug in the HP C Compiler 4919127668Sbms # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4920127668Sbms # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4921127668Sbms # This bug is HP SR number 8606223364. 4922127668Sbms if test "$cross_compiling" = yes; then 4923127668Sbms # Depending upon the size, compute the lo and hi bounds. 4924127668Sbmscat >conftest.$ac_ext <<_ACEOF 4925127668Sbms#line $LINENO "configure" 4926127668Sbms/* confdefs.h. */ 4927127668Sbms_ACEOF 4928127668Sbmscat confdefs.h >>conftest.$ac_ext 4929127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4930127668Sbms/* end confdefs.h. */ 4931127668Sbms$ac_includes_default 4932127668Sbmsint 4933127668Sbmsmain () 4934127668Sbms{ 4935127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 4936127668Sbmstest_array [0] = 0 493775115Sfenner 4938127668Sbms ; 4939127668Sbms return 0; 4940127668Sbms} 4941127668Sbms_ACEOF 4942127668Sbmsrm -f conftest.$ac_objext 4943127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4944127668Sbms (eval $ac_compile) 2>&5 4945127668Sbms ac_status=$? 4946127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947127668Sbms (exit $ac_status); } && 4948127668Sbms { ac_try='test -s conftest.$ac_objext' 4949127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4950127668Sbms (eval $ac_try) 2>&5 4951127668Sbms ac_status=$? 4952127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4953127668Sbms (exit $ac_status); }; }; then 4954127668Sbms ac_lo=0 ac_mid=0 4955127668Sbms while :; do 4956127668Sbms cat >conftest.$ac_ext <<_ACEOF 4957127668Sbms#line $LINENO "configure" 4958127668Sbms/* confdefs.h. */ 4959127668Sbms_ACEOF 4960127668Sbmscat confdefs.h >>conftest.$ac_ext 4961127668Sbmscat >>conftest.$ac_ext <<_ACEOF 4962127668Sbms/* end confdefs.h. */ 4963127668Sbms$ac_includes_default 4964127668Sbmsint 4965127668Sbmsmain () 4966127668Sbms{ 4967127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4968127668Sbmstest_array [0] = 0 4969127668Sbms 4970127668Sbms ; 4971127668Sbms return 0; 4972127668Sbms} 4973127668Sbms_ACEOF 4974127668Sbmsrm -f conftest.$ac_objext 4975127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4976127668Sbms (eval $ac_compile) 2>&5 4977127668Sbms ac_status=$? 4978127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979127668Sbms (exit $ac_status); } && 4980127668Sbms { ac_try='test -s conftest.$ac_objext' 4981127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4982127668Sbms (eval $ac_try) 2>&5 4983127668Sbms ac_status=$? 4984127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 4985127668Sbms (exit $ac_status); }; }; then 4986127668Sbms ac_hi=$ac_mid; break 498756893Sfennerelse 4988127668Sbms echo "$as_me: failed program was:" >&5 4989127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 4990127668Sbms 4991127668Sbmsac_lo=`expr $ac_mid + 1` 4992127668Sbms if test $ac_lo -le $ac_mid; then 4993127668Sbms ac_lo= ac_hi= 4994127668Sbms break 4995127668Sbms fi 4996127668Sbms ac_mid=`expr 2 '*' $ac_mid + 1` 499756893Sfennerfi 4998127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 4999127668Sbms done 5000127668Sbmselse 5001127668Sbms echo "$as_me: failed program was:" >&5 5002127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 500356893Sfenner 5004127668Sbmscat >conftest.$ac_ext <<_ACEOF 5005127668Sbms#line $LINENO "configure" 5006127668Sbms/* confdefs.h. */ 5007127668Sbms_ACEOF 5008127668Sbmscat confdefs.h >>conftest.$ac_ext 5009127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5010127668Sbms/* end confdefs.h. */ 5011127668Sbms$ac_includes_default 5012127668Sbmsint 5013127668Sbmsmain () 5014127668Sbms{ 5015127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 5016127668Sbmstest_array [0] = 0 5017127668Sbms 5018127668Sbms ; 5019127668Sbms return 0; 5020127668Sbms} 5021127668Sbms_ACEOF 5022127668Sbmsrm -f conftest.$ac_objext 5023127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5024127668Sbms (eval $ac_compile) 2>&5 5025127668Sbms ac_status=$? 5026127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027127668Sbms (exit $ac_status); } && 5028127668Sbms { ac_try='test -s conftest.$ac_objext' 5029127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5030127668Sbms (eval $ac_try) 2>&5 5031127668Sbms ac_status=$? 5032127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5033127668Sbms (exit $ac_status); }; }; then 5034127668Sbms ac_hi=-1 ac_mid=-1 5035127668Sbms while :; do 5036127668Sbms cat >conftest.$ac_ext <<_ACEOF 5037127668Sbms#line $LINENO "configure" 5038127668Sbms/* confdefs.h. */ 5039127668Sbms_ACEOF 5040127668Sbmscat confdefs.h >>conftest.$ac_ext 5041127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5042127668Sbms/* end confdefs.h. */ 5043127668Sbms$ac_includes_default 5044127668Sbmsint 5045127668Sbmsmain () 5046127668Sbms{ 5047127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 5048127668Sbmstest_array [0] = 0 5049127668Sbms 5050127668Sbms ; 5051127668Sbms return 0; 5052127668Sbms} 5053127668Sbms_ACEOF 5054127668Sbmsrm -f conftest.$ac_objext 5055127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5056127668Sbms (eval $ac_compile) 2>&5 5057127668Sbms ac_status=$? 5058127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059127668Sbms (exit $ac_status); } && 5060127668Sbms { ac_try='test -s conftest.$ac_objext' 5061127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5062127668Sbms (eval $ac_try) 2>&5 5063127668Sbms ac_status=$? 5064127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065127668Sbms (exit $ac_status); }; }; then 5066127668Sbms ac_lo=$ac_mid; break 506775115Sfennerelse 5068127668Sbms echo "$as_me: failed program was:" >&5 5069127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5070127668Sbms 5071127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1` 5072127668Sbms if test $ac_mid -le $ac_hi; then 5073127668Sbms ac_lo= ac_hi= 5074127668Sbms break 5075127668Sbms fi 5076127668Sbms ac_mid=`expr 2 '*' $ac_mid` 507775115Sfennerfi 5078127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5079127668Sbms done 5080127668Sbmselse 5081127668Sbms echo "$as_me: failed program was:" >&5 5082127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 508356893Sfenner 5084127668Sbmsac_lo= ac_hi= 5085127668Sbmsfi 5086127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5087127668Sbmsfi 5088127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5089127668Sbms# Binary search between lo and hi bounds. 5090127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do 5091127668Sbms ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5092127668Sbms cat >conftest.$ac_ext <<_ACEOF 5093127668Sbms#line $LINENO "configure" 5094127668Sbms/* confdefs.h. */ 5095127668Sbms_ACEOF 5096127668Sbmscat confdefs.h >>conftest.$ac_ext 5097127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5098127668Sbms/* end confdefs.h. */ 5099127668Sbms$ac_includes_default 5100127668Sbmsint 5101127668Sbmsmain () 5102127668Sbms{ 5103127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 5104127668Sbmstest_array [0] = 0 510556893Sfenner 5106127668Sbms ; 5107127668Sbms return 0; 5108127668Sbms} 5109127668Sbms_ACEOF 5110127668Sbmsrm -f conftest.$ac_objext 5111127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5112127668Sbms (eval $ac_compile) 2>&5 5113127668Sbms ac_status=$? 5114127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115127668Sbms (exit $ac_status); } && 5116127668Sbms { ac_try='test -s conftest.$ac_objext' 5117127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5118127668Sbms (eval $ac_try) 2>&5 5119127668Sbms ac_status=$? 5120127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5121127668Sbms (exit $ac_status); }; }; then 5122127668Sbms ac_hi=$ac_mid 5123127668Sbmselse 5124127668Sbms echo "$as_me: failed program was:" >&5 5125127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5126127668Sbms 5127127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1` 512856893Sfennerfi 5129127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5130127668Sbmsdone 5131127668Sbmscase $ac_lo in 5132127668Sbms?*) ac_cv_sizeof_short=$ac_lo;; 5133127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5134127668SbmsSee \`config.log' for more details." >&5 5135127668Sbmsecho "$as_me: error: cannot compute sizeof (short), 77 5136127668SbmsSee \`config.log' for more details." >&2;} 5137127668Sbms { (exit 1); exit 1; }; } ;; 5138127668Sbmsesac 5139127668Sbmselse 5140127668Sbms if test "$cross_compiling" = yes; then 5141127668Sbms { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5142127668SbmsSee \`config.log' for more details." >&5 5143127668Sbmsecho "$as_me: error: cannot run test program while cross compiling 5144127668SbmsSee \`config.log' for more details." >&2;} 5145127668Sbms { (exit 1); exit 1; }; } 5146127668Sbmselse 5147127668Sbms cat >conftest.$ac_ext <<_ACEOF 5148127668Sbms#line $LINENO "configure" 5149127668Sbms/* confdefs.h. */ 5150127668Sbms_ACEOF 5151127668Sbmscat confdefs.h >>conftest.$ac_ext 5152127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5153127668Sbms/* end confdefs.h. */ 5154127668Sbms$ac_includes_default 5155127668Sbmslong longval () { return (long) (sizeof (short)); } 5156127668Sbmsunsigned long ulongval () { return (long) (sizeof (short)); } 5157127668Sbms#include <stdio.h> 5158127668Sbms#include <stdlib.h> 5159127668Sbmsint 5160127668Sbmsmain () 5161127668Sbms{ 516256893Sfenner 5163127668Sbms FILE *f = fopen ("conftest.val", "w"); 5164127668Sbms if (! f) 5165127668Sbms exit (1); 5166127668Sbms if (((long) (sizeof (short))) < 0) 5167127668Sbms { 5168127668Sbms long i = longval (); 5169127668Sbms if (i != ((long) (sizeof (short)))) 5170127668Sbms exit (1); 5171127668Sbms fprintf (f, "%ld\n", i); 5172127668Sbms } 5173127668Sbms else 5174127668Sbms { 5175127668Sbms unsigned long i = ulongval (); 5176127668Sbms if (i != ((long) (sizeof (short)))) 5177127668Sbms exit (1); 5178127668Sbms fprintf (f, "%lu\n", i); 5179127668Sbms } 5180127668Sbms exit (ferror (f) || fclose (f) != 0); 518156893Sfenner 5182127668Sbms ; 5183127668Sbms return 0; 5184127668Sbms} 5185127668Sbms_ACEOF 5186127668Sbmsrm -f conftest$ac_exeext 5187127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5188127668Sbms (eval $ac_link) 2>&5 5189127668Sbms ac_status=$? 5190127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5192127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5193127668Sbms (eval $ac_try) 2>&5 5194127668Sbms ac_status=$? 5195127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196127668Sbms (exit $ac_status); }; }; then 5197127668Sbms ac_cv_sizeof_short=`cat conftest.val` 519856893Sfennerelse 5199127668Sbms echo "$as_me: program exited with status $ac_status" >&5 5200127668Sbmsecho "$as_me: failed program was:" >&5 5201127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 520256893Sfenner 5203127668Sbms( exit $ac_status ) 5204127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5205127668SbmsSee \`config.log' for more details." >&5 5206127668Sbmsecho "$as_me: error: cannot compute sizeof (short), 77 5207127668SbmsSee \`config.log' for more details." >&2;} 5208127668Sbms { (exit 1); exit 1; }; } 5209127668Sbmsfi 5210127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5211127668Sbmsfi 5212127668Sbmsfi 5213127668Sbmsrm -f conftest.val 521456893Sfennerelse 5215127668Sbms ac_cv_sizeof_short=0 521656893Sfennerfi 521756893Sfennerfi 5218127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 5219127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_short" >&6 5220127668Sbmscat >>confdefs.h <<_ACEOF 5221127668Sbms#define SIZEOF_SHORT $ac_cv_sizeof_short 5222127668Sbms_ACEOF 522356893Sfenner 522456893Sfenner 5225127668Sbmsecho "$as_me:$LINENO: checking for int" >&5 5226127668Sbmsecho $ECHO_N "checking for int... $ECHO_C" >&6 5227127668Sbmsif test "${ac_cv_type_int+set}" = set; then 5228127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 5229127668Sbmselse 5230127668Sbms cat >conftest.$ac_ext <<_ACEOF 5231127668Sbms#line $LINENO "configure" 5232127668Sbms/* confdefs.h. */ 5233127668Sbms_ACEOF 5234127668Sbmscat confdefs.h >>conftest.$ac_ext 5235127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5236127668Sbms/* end confdefs.h. */ 5237127668Sbms$ac_includes_default 5238127668Sbmsint 5239127668Sbmsmain () 5240127668Sbms{ 5241127668Sbmsif ((int *) 0) 5242127668Sbms return 0; 5243127668Sbmsif (sizeof (int)) 5244127668Sbms return 0; 5245127668Sbms ; 5246127668Sbms return 0; 5247127668Sbms} 5248127668Sbms_ACEOF 5249127668Sbmsrm -f conftest.$ac_objext 5250127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5251127668Sbms (eval $ac_compile) 2>&5 5252127668Sbms ac_status=$? 5253127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5254127668Sbms (exit $ac_status); } && 5255127668Sbms { ac_try='test -s conftest.$ac_objext' 5256127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5257127668Sbms (eval $ac_try) 2>&5 5258127668Sbms ac_status=$? 5259127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260127668Sbms (exit $ac_status); }; }; then 5261127668Sbms ac_cv_type_int=yes 5262127668Sbmselse 5263127668Sbms echo "$as_me: failed program was:" >&5 5264127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 526556893Sfenner 5266127668Sbmsac_cv_type_int=no 526756893Sfennerfi 5268127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5269127668Sbmsfi 5270127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_int" >&5 5271127668Sbmsecho "${ECHO_T}$ac_cv_type_int" >&6 527256893Sfenner 5273127668Sbmsecho "$as_me:$LINENO: checking size of int" >&5 5274127668Sbmsecho $ECHO_N "checking size of int... $ECHO_C" >&6 5275127668Sbmsif test "${ac_cv_sizeof_int+set}" = set; then 5276127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 527756893Sfennerelse 5278127668Sbms if test "$ac_cv_type_int" = yes; then 5279127668Sbms # The cast to unsigned long works around a bug in the HP C Compiler 5280127668Sbms # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5281127668Sbms # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5282127668Sbms # This bug is HP SR number 8606223364. 528356893Sfenner if test "$cross_compiling" = yes; then 5284127668Sbms # Depending upon the size, compute the lo and hi bounds. 5285127668Sbmscat >conftest.$ac_ext <<_ACEOF 5286127668Sbms#line $LINENO "configure" 5287127668Sbms/* confdefs.h. */ 5288127668Sbms_ACEOF 5289127668Sbmscat confdefs.h >>conftest.$ac_ext 5290127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5291127668Sbms/* end confdefs.h. */ 5292127668Sbms$ac_includes_default 5293127668Sbmsint 5294127668Sbmsmain () 5295127668Sbms{ 5296127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 5297127668Sbmstest_array [0] = 0 5298127668Sbms 5299127668Sbms ; 5300127668Sbms return 0; 5301127668Sbms} 5302127668Sbms_ACEOF 5303127668Sbmsrm -f conftest.$ac_objext 5304127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5305127668Sbms (eval $ac_compile) 2>&5 5306127668Sbms ac_status=$? 5307127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308127668Sbms (exit $ac_status); } && 5309127668Sbms { ac_try='test -s conftest.$ac_objext' 5310127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5311127668Sbms (eval $ac_try) 2>&5 5312127668Sbms ac_status=$? 5313127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314127668Sbms (exit $ac_status); }; }; then 5315127668Sbms ac_lo=0 ac_mid=0 5316127668Sbms while :; do 5317127668Sbms cat >conftest.$ac_ext <<_ACEOF 5318127668Sbms#line $LINENO "configure" 5319127668Sbms/* confdefs.h. */ 5320127668Sbms_ACEOF 5321127668Sbmscat confdefs.h >>conftest.$ac_ext 5322127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5323127668Sbms/* end confdefs.h. */ 5324127668Sbms$ac_includes_default 5325127668Sbmsint 5326127668Sbmsmain () 5327127668Sbms{ 5328127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5329127668Sbmstest_array [0] = 0 5330127668Sbms 5331127668Sbms ; 5332127668Sbms return 0; 5333127668Sbms} 5334127668Sbms_ACEOF 5335127668Sbmsrm -f conftest.$ac_objext 5336127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5337127668Sbms (eval $ac_compile) 2>&5 5338127668Sbms ac_status=$? 5339127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340127668Sbms (exit $ac_status); } && 5341127668Sbms { ac_try='test -s conftest.$ac_objext' 5342127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5343127668Sbms (eval $ac_try) 2>&5 5344127668Sbms ac_status=$? 5345127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346127668Sbms (exit $ac_status); }; }; then 5347127668Sbms ac_hi=$ac_mid; break 534856893Sfennerelse 5349127668Sbms echo "$as_me: failed program was:" >&5 5350127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5351127668Sbms 5352127668Sbmsac_lo=`expr $ac_mid + 1` 5353127668Sbms if test $ac_lo -le $ac_mid; then 5354127668Sbms ac_lo= ac_hi= 5355127668Sbms break 5356127668Sbms fi 5357127668Sbms ac_mid=`expr 2 '*' $ac_mid + 1` 5358127668Sbmsfi 5359127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5360127668Sbms done 5361127668Sbmselse 5362127668Sbms echo "$as_me: failed program was:" >&5 5363127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5364127668Sbms 5365127668Sbmscat >conftest.$ac_ext <<_ACEOF 5366127668Sbms#line $LINENO "configure" 5367127668Sbms/* confdefs.h. */ 5368127668Sbms_ACEOF 5369127668Sbmscat confdefs.h >>conftest.$ac_ext 5370127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5371127668Sbms/* end confdefs.h. */ 5372127668Sbms$ac_includes_default 5373127668Sbmsint 5374127668Sbmsmain () 537556893Sfenner{ 5376127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 5377127668Sbmstest_array [0] = 0 5378127668Sbms 5379127668Sbms ; 5380127668Sbms return 0; 538156893Sfenner} 5382127668Sbms_ACEOF 5383127668Sbmsrm -f conftest.$ac_objext 5384127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5385127668Sbms (eval $ac_compile) 2>&5 5386127668Sbms ac_status=$? 5387127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5388127668Sbms (exit $ac_status); } && 5389127668Sbms { ac_try='test -s conftest.$ac_objext' 5390127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5391127668Sbms (eval $ac_try) 2>&5 5392127668Sbms ac_status=$? 5393127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394127668Sbms (exit $ac_status); }; }; then 5395127668Sbms ac_hi=-1 ac_mid=-1 5396127668Sbms while :; do 5397127668Sbms cat >conftest.$ac_ext <<_ACEOF 5398127668Sbms#line $LINENO "configure" 5399127668Sbms/* confdefs.h. */ 5400127668Sbms_ACEOF 5401127668Sbmscat confdefs.h >>conftest.$ac_ext 5402127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5403127668Sbms/* end confdefs.h. */ 5404127668Sbms$ac_includes_default 5405127668Sbmsint 5406127668Sbmsmain () 5407127668Sbms{ 5408127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5409127668Sbmstest_array [0] = 0 5410127668Sbms 5411127668Sbms ; 5412127668Sbms return 0; 5413127668Sbms} 5414127668Sbms_ACEOF 5415127668Sbmsrm -f conftest.$ac_objext 5416127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5417127668Sbms (eval $ac_compile) 2>&5 5418127668Sbms ac_status=$? 5419127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420127668Sbms (exit $ac_status); } && 5421127668Sbms { ac_try='test -s conftest.$ac_objext' 5422127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5423127668Sbms (eval $ac_try) 2>&5 5424127668Sbms ac_status=$? 5425127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5426127668Sbms (exit $ac_status); }; }; then 5427127668Sbms ac_lo=$ac_mid; break 542856893Sfennerelse 5429127668Sbms echo "$as_me: failed program was:" >&5 5430127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5431127668Sbms 5432127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1` 5433127668Sbms if test $ac_mid -le $ac_hi; then 5434127668Sbms ac_lo= ac_hi= 5435127668Sbms break 5436127668Sbms fi 5437127668Sbms ac_mid=`expr 2 '*' $ac_mid` 543856893Sfennerfi 5439127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5440127668Sbms done 5441127668Sbmselse 5442127668Sbms echo "$as_me: failed program was:" >&5 5443127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 544456893Sfenner 5445127668Sbmsac_lo= ac_hi= 544656893Sfennerfi 5447127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5448127668Sbmsfi 5449127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5450127668Sbms# Binary search between lo and hi bounds. 5451127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do 5452127668Sbms ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5453127668Sbms cat >conftest.$ac_ext <<_ACEOF 5454127668Sbms#line $LINENO "configure" 5455127668Sbms/* confdefs.h. */ 5456127668Sbms_ACEOF 5457127668Sbmscat confdefs.h >>conftest.$ac_ext 5458127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5459127668Sbms/* end confdefs.h. */ 5460127668Sbms$ac_includes_default 5461127668Sbmsint 5462127668Sbmsmain () 5463127668Sbms{ 5464127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5465127668Sbmstest_array [0] = 0 546656893Sfenner 5467127668Sbms ; 5468127668Sbms return 0; 5469127668Sbms} 5470127668Sbms_ACEOF 5471127668Sbmsrm -f conftest.$ac_objext 5472127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5473127668Sbms (eval $ac_compile) 2>&5 5474127668Sbms ac_status=$? 5475127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5476127668Sbms (exit $ac_status); } && 5477127668Sbms { ac_try='test -s conftest.$ac_objext' 5478127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5479127668Sbms (eval $ac_try) 2>&5 5480127668Sbms ac_status=$? 5481127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5482127668Sbms (exit $ac_status); }; }; then 5483127668Sbms ac_hi=$ac_mid 5484127668Sbmselse 5485127668Sbms echo "$as_me: failed program was:" >&5 5486127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 548756893Sfenner 5488127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1` 5489127668Sbmsfi 5490127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5491127668Sbmsdone 5492127668Sbmscase $ac_lo in 5493127668Sbms?*) ac_cv_sizeof_int=$ac_lo;; 5494127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5495127668SbmsSee \`config.log' for more details." >&5 5496127668Sbmsecho "$as_me: error: cannot compute sizeof (int), 77 5497127668SbmsSee \`config.log' for more details." >&2;} 5498127668Sbms { (exit 1); exit 1; }; } ;; 5499127668Sbmsesac 550056893Sfennerelse 550156893Sfenner if test "$cross_compiling" = yes; then 5502127668Sbms { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5503127668SbmsSee \`config.log' for more details." >&5 5504127668Sbmsecho "$as_me: error: cannot run test program while cross compiling 5505127668SbmsSee \`config.log' for more details." >&2;} 5506127668Sbms { (exit 1); exit 1; }; } 550756893Sfennerelse 5508127668Sbms cat >conftest.$ac_ext <<_ACEOF 5509127668Sbms#line $LINENO "configure" 5510127668Sbms/* confdefs.h. */ 5511127668Sbms_ACEOF 5512127668Sbmscat confdefs.h >>conftest.$ac_ext 5513127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5514127668Sbms/* end confdefs.h. */ 5515127668Sbms$ac_includes_default 5516127668Sbmslong longval () { return (long) (sizeof (int)); } 5517127668Sbmsunsigned long ulongval () { return (long) (sizeof (int)); } 551856893Sfenner#include <stdio.h> 5519127668Sbms#include <stdlib.h> 5520127668Sbmsint 5521127668Sbmsmain () 552256893Sfenner{ 5523127668Sbms 5524127668Sbms FILE *f = fopen ("conftest.val", "w"); 5525127668Sbms if (! f) 5526127668Sbms exit (1); 5527127668Sbms if (((long) (sizeof (int))) < 0) 5528127668Sbms { 5529127668Sbms long i = longval (); 5530127668Sbms if (i != ((long) (sizeof (int)))) 5531127668Sbms exit (1); 5532127668Sbms fprintf (f, "%ld\n", i); 5533127668Sbms } 5534127668Sbms else 5535127668Sbms { 5536127668Sbms unsigned long i = ulongval (); 5537127668Sbms if (i != ((long) (sizeof (int)))) 5538127668Sbms exit (1); 5539127668Sbms fprintf (f, "%lu\n", i); 5540127668Sbms } 5541127668Sbms exit (ferror (f) || fclose (f) != 0); 5542127668Sbms 5543127668Sbms ; 5544127668Sbms return 0; 554556893Sfenner} 5546127668Sbms_ACEOF 5547127668Sbmsrm -f conftest$ac_exeext 5548127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5549127668Sbms (eval $ac_link) 2>&5 5550127668Sbms ac_status=$? 5551127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5553127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5554127668Sbms (eval $ac_try) 2>&5 5555127668Sbms ac_status=$? 5556127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5557127668Sbms (exit $ac_status); }; }; then 5558127668Sbms ac_cv_sizeof_int=`cat conftest.val` 555956893Sfennerelse 5560127668Sbms echo "$as_me: program exited with status $ac_status" >&5 5561127668Sbmsecho "$as_me: failed program was:" >&5 5562127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5563127668Sbms 5564127668Sbms( exit $ac_status ) 5565127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5566127668SbmsSee \`config.log' for more details." >&5 5567127668Sbmsecho "$as_me: error: cannot compute sizeof (int), 77 5568127668SbmsSee \`config.log' for more details." >&2;} 5569127668Sbms { (exit 1); exit 1; }; } 557056893Sfennerfi 5571127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 557256893Sfennerfi 557356893Sfennerfi 5574127668Sbmsrm -f conftest.val 5575127668Sbmselse 5576127668Sbms ac_cv_sizeof_int=0 5577127668Sbmsfi 5578127668Sbmsfi 5579127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 5580127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_int" >&6 5581127668Sbmscat >>confdefs.h <<_ACEOF 5582127668Sbms#define SIZEOF_INT $ac_cv_sizeof_int 5583127668Sbms_ACEOF 558456893Sfenner 558556893Sfenner 5586127668Sbmsecho "$as_me:$LINENO: checking for long" >&5 5587127668Sbmsecho $ECHO_N "checking for long... $ECHO_C" >&6 5588127668Sbmsif test "${ac_cv_type_long+set}" = set; then 5589127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 559056893Sfennerelse 5591127668Sbms cat >conftest.$ac_ext <<_ACEOF 5592127668Sbms#line $LINENO "configure" 5593127668Sbms/* confdefs.h. */ 5594127668Sbms_ACEOF 5595127668Sbmscat confdefs.h >>conftest.$ac_ext 5596127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5597127668Sbms/* end confdefs.h. */ 5598127668Sbms$ac_includes_default 5599127668Sbmsint 5600127668Sbmsmain () 5601127668Sbms{ 5602127668Sbmsif ((long *) 0) 5603127668Sbms return 0; 5604127668Sbmsif (sizeof (long)) 5605127668Sbms return 0; 5606127668Sbms ; 5607127668Sbms return 0; 5608127668Sbms} 5609127668Sbms_ACEOF 5610127668Sbmsrm -f conftest.$ac_objext 5611127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5612127668Sbms (eval $ac_compile) 2>&5 5613127668Sbms ac_status=$? 5614127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5615127668Sbms (exit $ac_status); } && 5616127668Sbms { ac_try='test -s conftest.$ac_objext' 5617127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5618127668Sbms (eval $ac_try) 2>&5 5619127668Sbms ac_status=$? 5620127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5621127668Sbms (exit $ac_status); }; }; then 5622127668Sbms ac_cv_type_long=yes 5623127668Sbmselse 5624127668Sbms echo "$as_me: failed program was:" >&5 5625127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5626127668Sbms 5627127668Sbmsac_cv_type_long=no 5628127668Sbmsfi 5629127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5630127668Sbmsfi 5631127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5 5632127668Sbmsecho "${ECHO_T}$ac_cv_type_long" >&6 5633127668Sbms 5634127668Sbmsecho "$as_me:$LINENO: checking size of long" >&5 5635127668Sbmsecho $ECHO_N "checking size of long... $ECHO_C" >&6 5636127668Sbmsif test "${ac_cv_sizeof_long+set}" = set; then 5637127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 5638127668Sbmselse 5639127668Sbms if test "$ac_cv_type_long" = yes; then 5640127668Sbms # The cast to unsigned long works around a bug in the HP C Compiler 5641127668Sbms # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5642127668Sbms # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5643127668Sbms # This bug is HP SR number 8606223364. 564456893Sfenner if test "$cross_compiling" = yes; then 5645127668Sbms # Depending upon the size, compute the lo and hi bounds. 5646127668Sbmscat >conftest.$ac_ext <<_ACEOF 5647127668Sbms#line $LINENO "configure" 5648127668Sbms/* confdefs.h. */ 5649127668Sbms_ACEOF 5650127668Sbmscat confdefs.h >>conftest.$ac_ext 5651127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5652127668Sbms/* end confdefs.h. */ 5653127668Sbms$ac_includes_default 5654127668Sbmsint 5655127668Sbmsmain () 5656127668Sbms{ 5657127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 5658127668Sbmstest_array [0] = 0 5659127668Sbms 5660127668Sbms ; 5661127668Sbms return 0; 5662127668Sbms} 5663127668Sbms_ACEOF 5664127668Sbmsrm -f conftest.$ac_objext 5665127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5666127668Sbms (eval $ac_compile) 2>&5 5667127668Sbms ac_status=$? 5668127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669127668Sbms (exit $ac_status); } && 5670127668Sbms { ac_try='test -s conftest.$ac_objext' 5671127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5672127668Sbms (eval $ac_try) 2>&5 5673127668Sbms ac_status=$? 5674127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675127668Sbms (exit $ac_status); }; }; then 5676127668Sbms ac_lo=0 ac_mid=0 5677127668Sbms while :; do 5678127668Sbms cat >conftest.$ac_ext <<_ACEOF 5679127668Sbms#line $LINENO "configure" 5680127668Sbms/* confdefs.h. */ 5681127668Sbms_ACEOF 5682127668Sbmscat confdefs.h >>conftest.$ac_ext 5683127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5684127668Sbms/* end confdefs.h. */ 5685127668Sbms$ac_includes_default 5686127668Sbmsint 5687127668Sbmsmain () 5688127668Sbms{ 5689127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5690127668Sbmstest_array [0] = 0 5691127668Sbms 5692127668Sbms ; 5693127668Sbms return 0; 5694127668Sbms} 5695127668Sbms_ACEOF 5696127668Sbmsrm -f conftest.$ac_objext 5697127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5698127668Sbms (eval $ac_compile) 2>&5 5699127668Sbms ac_status=$? 5700127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701127668Sbms (exit $ac_status); } && 5702127668Sbms { ac_try='test -s conftest.$ac_objext' 5703127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5704127668Sbms (eval $ac_try) 2>&5 5705127668Sbms ac_status=$? 5706127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707127668Sbms (exit $ac_status); }; }; then 5708127668Sbms ac_hi=$ac_mid; break 570956893Sfennerelse 5710127668Sbms echo "$as_me: failed program was:" >&5 5711127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5712127668Sbms 5713127668Sbmsac_lo=`expr $ac_mid + 1` 5714127668Sbms if test $ac_lo -le $ac_mid; then 5715127668Sbms ac_lo= ac_hi= 5716127668Sbms break 5717127668Sbms fi 5718127668Sbms ac_mid=`expr 2 '*' $ac_mid + 1` 5719127668Sbmsfi 5720127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5721127668Sbms done 5722127668Sbmselse 5723127668Sbms echo "$as_me: failed program was:" >&5 5724127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5725127668Sbms 5726127668Sbmscat >conftest.$ac_ext <<_ACEOF 5727127668Sbms#line $LINENO "configure" 5728127668Sbms/* confdefs.h. */ 5729127668Sbms_ACEOF 5730127668Sbmscat confdefs.h >>conftest.$ac_ext 5731127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5732127668Sbms/* end confdefs.h. */ 5733127668Sbms$ac_includes_default 5734127668Sbmsint 5735127668Sbmsmain () 573656893Sfenner{ 5737127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5738127668Sbmstest_array [0] = 0 5739127668Sbms 5740127668Sbms ; 5741127668Sbms return 0; 574256893Sfenner} 5743127668Sbms_ACEOF 5744127668Sbmsrm -f conftest.$ac_objext 5745127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5746127668Sbms (eval $ac_compile) 2>&5 5747127668Sbms ac_status=$? 5748127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749127668Sbms (exit $ac_status); } && 5750127668Sbms { ac_try='test -s conftest.$ac_objext' 5751127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5752127668Sbms (eval $ac_try) 2>&5 5753127668Sbms ac_status=$? 5754127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755127668Sbms (exit $ac_status); }; }; then 5756127668Sbms ac_hi=-1 ac_mid=-1 5757127668Sbms while :; do 5758127668Sbms cat >conftest.$ac_ext <<_ACEOF 5759127668Sbms#line $LINENO "configure" 5760127668Sbms/* confdefs.h. */ 5761127668Sbms_ACEOF 5762127668Sbmscat confdefs.h >>conftest.$ac_ext 5763127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5764127668Sbms/* end confdefs.h. */ 5765127668Sbms$ac_includes_default 5766127668Sbmsint 5767127668Sbmsmain () 5768127668Sbms{ 5769127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5770127668Sbmstest_array [0] = 0 5771127668Sbms 5772127668Sbms ; 5773127668Sbms return 0; 5774127668Sbms} 5775127668Sbms_ACEOF 5776127668Sbmsrm -f conftest.$ac_objext 5777127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5778127668Sbms (eval $ac_compile) 2>&5 5779127668Sbms ac_status=$? 5780127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781127668Sbms (exit $ac_status); } && 5782127668Sbms { ac_try='test -s conftest.$ac_objext' 5783127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5784127668Sbms (eval $ac_try) 2>&5 5785127668Sbms ac_status=$? 5786127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5787127668Sbms (exit $ac_status); }; }; then 5788127668Sbms ac_lo=$ac_mid; break 578956893Sfennerelse 5790127668Sbms echo "$as_me: failed program was:" >&5 5791127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5792127668Sbms 5793127668Sbmsac_hi=`expr '(' $ac_mid ')' - 1` 5794127668Sbms if test $ac_mid -le $ac_hi; then 5795127668Sbms ac_lo= ac_hi= 5796127668Sbms break 5797127668Sbms fi 5798127668Sbms ac_mid=`expr 2 '*' $ac_mid` 579956893Sfennerfi 5800127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5801127668Sbms done 5802127668Sbmselse 5803127668Sbms echo "$as_me: failed program was:" >&5 5804127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 580556893Sfenner 5806127668Sbmsac_lo= ac_hi= 580756893Sfennerfi 5808127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5809127668Sbmsfi 5810127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5811127668Sbms# Binary search between lo and hi bounds. 5812127668Sbmswhile test "x$ac_lo" != "x$ac_hi"; do 5813127668Sbms ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5814127668Sbms cat >conftest.$ac_ext <<_ACEOF 5815127668Sbms#line $LINENO "configure" 5816127668Sbms/* confdefs.h. */ 5817127668Sbms_ACEOF 5818127668Sbmscat confdefs.h >>conftest.$ac_ext 5819127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5820127668Sbms/* end confdefs.h. */ 5821127668Sbms$ac_includes_default 5822127668Sbmsint 5823127668Sbmsmain () 5824127668Sbms{ 5825127668Sbmsstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5826127668Sbmstest_array [0] = 0 582756893Sfenner 5828127668Sbms ; 5829127668Sbms return 0; 5830127668Sbms} 5831127668Sbms_ACEOF 5832127668Sbmsrm -f conftest.$ac_objext 5833127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5834127668Sbms (eval $ac_compile) 2>&5 5835127668Sbms ac_status=$? 5836127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5837127668Sbms (exit $ac_status); } && 5838127668Sbms { ac_try='test -s conftest.$ac_objext' 5839127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5840127668Sbms (eval $ac_try) 2>&5 5841127668Sbms ac_status=$? 5842127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5843127668Sbms (exit $ac_status); }; }; then 5844127668Sbms ac_hi=$ac_mid 5845127668Sbmselse 5846127668Sbms echo "$as_me: failed program was:" >&5 5847127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 584856893Sfenner 5849127668Sbmsac_lo=`expr '(' $ac_mid ')' + 1` 5850127668Sbmsfi 5851127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 5852127668Sbmsdone 5853127668Sbmscase $ac_lo in 5854127668Sbms?*) ac_cv_sizeof_long=$ac_lo;; 5855127668Sbms'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5856127668SbmsSee \`config.log' for more details." >&5 5857127668Sbmsecho "$as_me: error: cannot compute sizeof (long), 77 5858127668SbmsSee \`config.log' for more details." >&2;} 5859127668Sbms { (exit 1); exit 1; }; } ;; 5860127668Sbmsesac 586156893Sfennerelse 586256893Sfenner if test "$cross_compiling" = yes; then 5863127668Sbms { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5864127668SbmsSee \`config.log' for more details." >&5 5865127668Sbmsecho "$as_me: error: cannot run test program while cross compiling 5866127668SbmsSee \`config.log' for more details." >&2;} 5867127668Sbms { (exit 1); exit 1; }; } 586856893Sfennerelse 5869127668Sbms cat >conftest.$ac_ext <<_ACEOF 5870127668Sbms#line $LINENO "configure" 5871127668Sbms/* confdefs.h. */ 5872127668Sbms_ACEOF 5873127668Sbmscat confdefs.h >>conftest.$ac_ext 5874127668Sbmscat >>conftest.$ac_ext <<_ACEOF 5875127668Sbms/* end confdefs.h. */ 5876127668Sbms$ac_includes_default 5877127668Sbmslong longval () { return (long) (sizeof (long)); } 5878127668Sbmsunsigned long ulongval () { return (long) (sizeof (long)); } 587956893Sfenner#include <stdio.h> 5880127668Sbms#include <stdlib.h> 5881127668Sbmsint 5882127668Sbmsmain () 588356893Sfenner{ 5884127668Sbms 5885127668Sbms FILE *f = fopen ("conftest.val", "w"); 5886127668Sbms if (! f) 5887127668Sbms exit (1); 5888127668Sbms if (((long) (sizeof (long))) < 0) 5889127668Sbms { 5890127668Sbms long i = longval (); 5891127668Sbms if (i != ((long) (sizeof (long)))) 5892127668Sbms exit (1); 5893127668Sbms fprintf (f, "%ld\n", i); 5894127668Sbms } 5895127668Sbms else 5896127668Sbms { 5897127668Sbms unsigned long i = ulongval (); 5898127668Sbms if (i != ((long) (sizeof (long)))) 5899127668Sbms exit (1); 5900127668Sbms fprintf (f, "%lu\n", i); 5901127668Sbms } 5902127668Sbms exit (ferror (f) || fclose (f) != 0); 5903127668Sbms 5904127668Sbms ; 5905127668Sbms return 0; 590656893Sfenner} 5907127668Sbms_ACEOF 5908127668Sbmsrm -f conftest$ac_exeext 5909127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5910127668Sbms (eval $ac_link) 2>&5 5911127668Sbms ac_status=$? 5912127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5913127668Sbms (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5914127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5915127668Sbms (eval $ac_try) 2>&5 5916127668Sbms ac_status=$? 5917127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918127668Sbms (exit $ac_status); }; }; then 5919127668Sbms ac_cv_sizeof_long=`cat conftest.val` 592056893Sfennerelse 5921127668Sbms echo "$as_me: program exited with status $ac_status" >&5 5922127668Sbmsecho "$as_me: failed program was:" >&5 5923127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 5924127668Sbms 5925127668Sbms( exit $ac_status ) 5926127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5927127668SbmsSee \`config.log' for more details." >&5 5928127668Sbmsecho "$as_me: error: cannot compute sizeof (long), 77 5929127668SbmsSee \`config.log' for more details." >&2;} 5930127668Sbms { (exit 1); exit 1; }; } 5931127668Sbmsfi 5932127668Sbmsrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5933127668Sbmsfi 5934127668Sbmsfi 5935127668Sbmsrm -f conftest.val 5936127668Sbmselse 593756893Sfenner ac_cv_sizeof_long=0 593856893Sfennerfi 593956893Sfennerfi 5940127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5941127668Sbmsecho "${ECHO_T}$ac_cv_sizeof_long" >&6 5942127668Sbmscat >>confdefs.h <<_ACEOF 594356893Sfenner#define SIZEOF_LONG $ac_cv_sizeof_long 5944127668Sbms_ACEOF 594556893Sfenner 594656893Sfenner 5947146773Ssamecho "$as_me:$LINENO: checking for long long" >&5 5948146773Ssamecho $ECHO_N "checking for long long... $ECHO_C" >&6 5949146773Ssamif test "${ac_cv_type_long_long+set}" = set; then 5950146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 5951146773Ssamelse 5952146773Ssam cat >conftest.$ac_ext <<_ACEOF 5953146773Ssam#line $LINENO "configure" 5954146773Ssam/* confdefs.h. */ 5955146773Ssam_ACEOF 5956146773Ssamcat confdefs.h >>conftest.$ac_ext 5957146773Ssamcat >>conftest.$ac_ext <<_ACEOF 5958146773Ssam/* end confdefs.h. */ 5959146773Ssam$ac_includes_default 5960146773Ssamint 5961146773Ssammain () 5962146773Ssam{ 5963146773Ssamif ((long long *) 0) 5964146773Ssam return 0; 5965146773Ssamif (sizeof (long long)) 5966146773Ssam return 0; 5967146773Ssam ; 5968146773Ssam return 0; 5969146773Ssam} 5970146773Ssam_ACEOF 5971146773Ssamrm -f conftest.$ac_objext 5972146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5973146773Ssam (eval $ac_compile) 2>&5 5974146773Ssam ac_status=$? 5975146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976146773Ssam (exit $ac_status); } && 5977146773Ssam { ac_try='test -s conftest.$ac_objext' 5978146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5979146773Ssam (eval $ac_try) 2>&5 5980146773Ssam ac_status=$? 5981146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 5982146773Ssam (exit $ac_status); }; }; then 5983146773Ssam ac_cv_type_long_long=yes 5984146773Ssamelse 5985146773Ssam echo "$as_me: failed program was:" >&5 5986146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 598756893Sfenner 5988146773Ssamac_cv_type_long_long=no 5989146773Ssamfi 5990146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 5991146773Ssamfi 5992146773Ssamecho "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5993146773Ssamecho "${ECHO_T}$ac_cv_type_long_long" >&6 599456893Sfenner 5995146773Ssamecho "$as_me:$LINENO: checking size of long long" >&5 5996146773Ssamecho $ECHO_N "checking size of long long... $ECHO_C" >&6 5997146773Ssamif test "${ac_cv_sizeof_long_long+set}" = set; then 5998146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 5999146773Ssamelse 6000146773Ssam if test "$ac_cv_type_long_long" = yes; then 6001146773Ssam # The cast to unsigned long works around a bug in the HP C Compiler 6002146773Ssam # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6003146773Ssam # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6004146773Ssam # This bug is HP SR number 8606223364. 6005146773Ssam if test "$cross_compiling" = yes; then 6006146773Ssam # Depending upon the size, compute the lo and hi bounds. 6007146773Ssamcat >conftest.$ac_ext <<_ACEOF 6008146773Ssam#line $LINENO "configure" 6009146773Ssam/* confdefs.h. */ 6010146773Ssam_ACEOF 6011146773Ssamcat confdefs.h >>conftest.$ac_ext 6012146773Ssamcat >>conftest.$ac_ext <<_ACEOF 6013146773Ssam/* end confdefs.h. */ 6014146773Ssam$ac_includes_default 6015146773Ssamint 6016146773Ssammain () 6017146773Ssam{ 6018146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 6019146773Ssamtest_array [0] = 0 602056893Sfenner 6021146773Ssam ; 6022146773Ssam return 0; 6023146773Ssam} 6024146773Ssam_ACEOF 6025146773Ssamrm -f conftest.$ac_objext 6026146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6027146773Ssam (eval $ac_compile) 2>&5 6028146773Ssam ac_status=$? 6029146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6030146773Ssam (exit $ac_status); } && 6031146773Ssam { ac_try='test -s conftest.$ac_objext' 6032146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6033146773Ssam (eval $ac_try) 2>&5 6034146773Ssam ac_status=$? 6035146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036146773Ssam (exit $ac_status); }; }; then 6037146773Ssam ac_lo=0 ac_mid=0 6038146773Ssam while :; do 6039146773Ssam cat >conftest.$ac_ext <<_ACEOF 6040146773Ssam#line $LINENO "configure" 6041146773Ssam/* confdefs.h. */ 6042146773Ssam_ACEOF 6043146773Ssamcat confdefs.h >>conftest.$ac_ext 6044146773Ssamcat >>conftest.$ac_ext <<_ACEOF 6045146773Ssam/* end confdefs.h. */ 6046146773Ssam$ac_includes_default 6047146773Ssamint 6048146773Ssammain () 6049146773Ssam{ 6050146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6051146773Ssamtest_array [0] = 0 6052146773Ssam 6053146773Ssam ; 6054146773Ssam return 0; 6055146773Ssam} 6056146773Ssam_ACEOF 6057146773Ssamrm -f conftest.$ac_objext 6058146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6059146773Ssam (eval $ac_compile) 2>&5 6060146773Ssam ac_status=$? 6061146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062146773Ssam (exit $ac_status); } && 6063146773Ssam { ac_try='test -s conftest.$ac_objext' 6064146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6065146773Ssam (eval $ac_try) 2>&5 6066146773Ssam ac_status=$? 6067146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6068146773Ssam (exit $ac_status); }; }; then 6069146773Ssam ac_hi=$ac_mid; break 6070146773Ssamelse 6071146773Ssam echo "$as_me: failed program was:" >&5 6072146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 6073146773Ssam 6074146773Ssamac_lo=`expr $ac_mid + 1` 6075146773Ssam if test $ac_lo -le $ac_mid; then 6076146773Ssam ac_lo= ac_hi= 6077146773Ssam break 6078146773Ssam fi 6079146773Ssam ac_mid=`expr 2 '*' $ac_mid + 1` 6080146773Ssamfi 6081146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 6082146773Ssam done 6083146773Ssamelse 6084146773Ssam echo "$as_me: failed program was:" >&5 6085146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 6086146773Ssam 6087146773Ssamcat >conftest.$ac_ext <<_ACEOF 6088146773Ssam#line $LINENO "configure" 6089146773Ssam/* confdefs.h. */ 6090146773Ssam_ACEOF 6091146773Ssamcat confdefs.h >>conftest.$ac_ext 6092146773Ssamcat >>conftest.$ac_ext <<_ACEOF 6093146773Ssam/* end confdefs.h. */ 6094146773Ssam$ac_includes_default 6095146773Ssamint 6096146773Ssammain () 6097146773Ssam{ 6098146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 6099146773Ssamtest_array [0] = 0 6100146773Ssam 6101146773Ssam ; 6102146773Ssam return 0; 6103146773Ssam} 6104146773Ssam_ACEOF 6105146773Ssamrm -f conftest.$ac_objext 6106146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6107146773Ssam (eval $ac_compile) 2>&5 6108146773Ssam ac_status=$? 6109146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6110146773Ssam (exit $ac_status); } && 6111146773Ssam { ac_try='test -s conftest.$ac_objext' 6112146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6113146773Ssam (eval $ac_try) 2>&5 6114146773Ssam ac_status=$? 6115146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116146773Ssam (exit $ac_status); }; }; then 6117146773Ssam ac_hi=-1 ac_mid=-1 6118146773Ssam while :; do 6119146773Ssam cat >conftest.$ac_ext <<_ACEOF 6120146773Ssam#line $LINENO "configure" 6121146773Ssam/* confdefs.h. */ 6122146773Ssam_ACEOF 6123146773Ssamcat confdefs.h >>conftest.$ac_ext 6124146773Ssamcat >>conftest.$ac_ext <<_ACEOF 6125146773Ssam/* end confdefs.h. */ 6126146773Ssam$ac_includes_default 6127146773Ssamint 6128146773Ssammain () 6129146773Ssam{ 6130146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 6131146773Ssamtest_array [0] = 0 6132146773Ssam 6133146773Ssam ; 6134146773Ssam return 0; 6135146773Ssam} 6136146773Ssam_ACEOF 6137146773Ssamrm -f conftest.$ac_objext 6138146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6139146773Ssam (eval $ac_compile) 2>&5 6140146773Ssam ac_status=$? 6141146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142146773Ssam (exit $ac_status); } && 6143146773Ssam { ac_try='test -s conftest.$ac_objext' 6144146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6145146773Ssam (eval $ac_try) 2>&5 6146146773Ssam ac_status=$? 6147146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6148146773Ssam (exit $ac_status); }; }; then 6149146773Ssam ac_lo=$ac_mid; break 6150146773Ssamelse 6151146773Ssam echo "$as_me: failed program was:" >&5 6152146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 6153146773Ssam 6154146773Ssamac_hi=`expr '(' $ac_mid ')' - 1` 6155146773Ssam if test $ac_mid -le $ac_hi; then 6156146773Ssam ac_lo= ac_hi= 6157146773Ssam break 6158146773Ssam fi 6159146773Ssam ac_mid=`expr 2 '*' $ac_mid` 6160146773Ssamfi 6161146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 6162146773Ssam done 6163146773Ssamelse 6164146773Ssam echo "$as_me: failed program was:" >&5 6165146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 6166146773Ssam 6167146773Ssamac_lo= ac_hi= 6168146773Ssamfi 6169146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 6170146773Ssamfi 6171146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 6172146773Ssam# Binary search between lo and hi bounds. 6173146773Ssamwhile test "x$ac_lo" != "x$ac_hi"; do 6174146773Ssam ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6175146773Ssam cat >conftest.$ac_ext <<_ACEOF 6176146773Ssam#line $LINENO "configure" 6177146773Ssam/* confdefs.h. */ 6178146773Ssam_ACEOF 6179146773Ssamcat confdefs.h >>conftest.$ac_ext 6180146773Ssamcat >>conftest.$ac_ext <<_ACEOF 6181146773Ssam/* end confdefs.h. */ 6182146773Ssam$ac_includes_default 6183146773Ssamint 6184146773Ssammain () 6185146773Ssam{ 6186146773Ssamstatic int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6187146773Ssamtest_array [0] = 0 6188146773Ssam 6189146773Ssam ; 6190146773Ssam return 0; 6191146773Ssam} 6192146773Ssam_ACEOF 6193146773Ssamrm -f conftest.$ac_objext 6194146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6195146773Ssam (eval $ac_compile) 2>&5 6196146773Ssam ac_status=$? 6197146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6198146773Ssam (exit $ac_status); } && 6199146773Ssam { ac_try='test -s conftest.$ac_objext' 6200146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6201146773Ssam (eval $ac_try) 2>&5 6202146773Ssam ac_status=$? 6203146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204146773Ssam (exit $ac_status); }; }; then 6205146773Ssam ac_hi=$ac_mid 6206146773Ssamelse 6207146773Ssam echo "$as_me: failed program was:" >&5 6208146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 6209146773Ssam 6210146773Ssamac_lo=`expr '(' $ac_mid ')' + 1` 6211146773Ssamfi 6212146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 6213146773Ssamdone 6214146773Ssamcase $ac_lo in 6215146773Ssam?*) ac_cv_sizeof_long_long=$ac_lo;; 6216146773Ssam'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6217146773SsamSee \`config.log' for more details." >&5 6218146773Ssamecho "$as_me: error: cannot compute sizeof (long long), 77 6219146773SsamSee \`config.log' for more details." >&2;} 6220146773Ssam { (exit 1); exit 1; }; } ;; 6221146773Ssamesac 6222146773Ssamelse 6223146773Ssam if test "$cross_compiling" = yes; then 6224146773Ssam { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6225146773SsamSee \`config.log' for more details." >&5 6226146773Ssamecho "$as_me: error: cannot run test program while cross compiling 6227146773SsamSee \`config.log' for more details." >&2;} 6228146773Ssam { (exit 1); exit 1; }; } 6229146773Ssamelse 6230146773Ssam cat >conftest.$ac_ext <<_ACEOF 6231146773Ssam#line $LINENO "configure" 6232146773Ssam/* confdefs.h. */ 6233146773Ssam_ACEOF 6234146773Ssamcat confdefs.h >>conftest.$ac_ext 6235146773Ssamcat >>conftest.$ac_ext <<_ACEOF 6236146773Ssam/* end confdefs.h. */ 6237146773Ssam$ac_includes_default 6238146773Ssamlong longval () { return (long) (sizeof (long long)); } 6239146773Ssamunsigned long ulongval () { return (long) (sizeof (long long)); } 6240146773Ssam#include <stdio.h> 6241146773Ssam#include <stdlib.h> 6242146773Ssamint 6243146773Ssammain () 6244146773Ssam{ 6245146773Ssam 6246146773Ssam FILE *f = fopen ("conftest.val", "w"); 6247146773Ssam if (! f) 6248146773Ssam exit (1); 6249146773Ssam if (((long) (sizeof (long long))) < 0) 6250146773Ssam { 6251146773Ssam long i = longval (); 6252146773Ssam if (i != ((long) (sizeof (long long)))) 6253146773Ssam exit (1); 6254146773Ssam fprintf (f, "%ld\n", i); 6255146773Ssam } 6256146773Ssam else 6257146773Ssam { 6258146773Ssam unsigned long i = ulongval (); 6259146773Ssam if (i != ((long) (sizeof (long long)))) 6260146773Ssam exit (1); 6261146773Ssam fprintf (f, "%lu\n", i); 6262146773Ssam } 6263146773Ssam exit (ferror (f) || fclose (f) != 0); 6264146773Ssam 6265146773Ssam ; 6266146773Ssam return 0; 6267146773Ssam} 6268146773Ssam_ACEOF 6269146773Ssamrm -f conftest$ac_exeext 6270146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6271146773Ssam (eval $ac_link) 2>&5 6272146773Ssam ac_status=$? 6273146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6274146773Ssam (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6275146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6276146773Ssam (eval $ac_try) 2>&5 6277146773Ssam ac_status=$? 6278146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 6279146773Ssam (exit $ac_status); }; }; then 6280146773Ssam ac_cv_sizeof_long_long=`cat conftest.val` 6281146773Ssamelse 6282146773Ssam echo "$as_me: program exited with status $ac_status" >&5 6283146773Ssamecho "$as_me: failed program was:" >&5 6284146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 6285146773Ssam 6286146773Ssam( exit $ac_status ) 6287146773Ssam{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6288146773SsamSee \`config.log' for more details." >&5 6289146773Ssamecho "$as_me: error: cannot compute sizeof (long long), 77 6290146773SsamSee \`config.log' for more details." >&2;} 6291146773Ssam { (exit 1); exit 1; }; } 6292146773Ssamfi 6293146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6294146773Ssamfi 6295146773Ssamfi 6296146773Ssamrm -f conftest.val 6297146773Ssamelse 6298146773Ssam ac_cv_sizeof_long_long=0 6299146773Ssamfi 6300146773Ssamfi 6301146773Ssamecho "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6302146773Ssamecho "${ECHO_T}$ac_cv_sizeof_long_long" >&6 6303146773Ssamcat >>confdefs.h <<_ACEOF 6304146773Ssam#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6305146773Ssam_ACEOF 6306146773Ssam 6307146773Ssam 6308146773Ssam 6309146773Ssam 6310146773Ssam 6311127668Sbms echo "$as_me:$LINENO: checking for addrinfo" >&5 6312127668Sbmsecho $ECHO_N "checking for addrinfo... $ECHO_C" >&6 6313127668Sbms if test "${ac_cv_addrinfo+set}" = set; then 6314127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 631556893Sfennerelse 6316127668Sbms cat >conftest.$ac_ext <<_ACEOF 6317127668Sbms#line $LINENO "configure" 6318127668Sbms/* confdefs.h. */ 6319127668Sbms_ACEOF 6320127668Sbmscat confdefs.h >>conftest.$ac_ext 6321127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6322127668Sbms/* end confdefs.h. */ 632356893Sfenner 632456893Sfenner# include <netdb.h> 6325127668Sbmsint 6326127668Sbmsmain () 6327127668Sbms{ 632856893Sfennerstruct addrinfo a 6329127668Sbms ; 6330127668Sbms return 0; 6331127668Sbms} 6332127668Sbms_ACEOF 6333127668Sbmsrm -f conftest.$ac_objext 6334127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6335127668Sbms (eval $ac_compile) 2>&5 6336127668Sbms ac_status=$? 6337127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338127668Sbms (exit $ac_status); } && 6339127668Sbms { ac_try='test -s conftest.$ac_objext' 6340127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6341127668Sbms (eval $ac_try) 2>&5 6342127668Sbms ac_status=$? 6343127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344127668Sbms (exit $ac_status); }; }; then 634556893Sfenner ac_cv_addrinfo=yes 634656893Sfennerelse 6347127668Sbms echo "$as_me: failed program was:" >&5 6348127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6349127668Sbms 6350127668Sbmsac_cv_addrinfo=no 635156893Sfennerfi 6352127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 635356893Sfennerfi 635456893Sfenner 6355127668Sbms echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 6356127668Sbmsecho "${ECHO_T}$ac_cv_addrinfo" >&6 635756893Sfenner if test $ac_cv_addrinfo = yes; then 6358127668Sbms cat >>confdefs.h <<\_ACEOF 635956893Sfenner#define HAVE_ADDRINFO 1 6360127668Sbms_ACEOF 636156893Sfenner 636256893Sfenner else 6363127668Sbms cat >>confdefs.h <<\_ACEOF 636456893Sfenner#define NEED_ADDRINFO_H 1 6365127668Sbms_ACEOF 636656893Sfenner 636756893Sfenner fi 636856893Sfenner 636956893Sfennerif test "$ac_cv_addrinfo" = no; then 637056893Sfenner missing_includes=yes 637156893Sfennerfi 637256893Sfenner 637356893Sfenner 6374127668Sbms echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 6375127668Sbmsecho $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6 6376127668Sbms if test "${ac_cv_maxserv+set}" = set; then 6377127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 637856893Sfennerelse 6379127668Sbms cat >conftest.$ac_ext <<_ACEOF 6380127668Sbms#line $LINENO "configure" 6381127668Sbms/* confdefs.h. */ 6382127668Sbms_ACEOF 6383127668Sbmscat confdefs.h >>conftest.$ac_ext 6384127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6385127668Sbms/* end confdefs.h. */ 638656893Sfenner#include <netdb.h> 638756893Sfenner#ifdef NI_MAXSERV 638856893Sfenneryes 638956893Sfenner#endif 6390127668Sbms_ACEOF 639156893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6392127668Sbms $EGREP "yes" >/dev/null 2>&1; then 639356893Sfenner ac_cv_maxserv=yes 639456893Sfennerelse 639556893Sfenner ac_cv_maxserv=no 639656893Sfennerfi 639756893Sfennerrm -f conftest* 639856893Sfenner 639956893Sfennerfi 640056893Sfenner 6401127668Sbms echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 6402127668Sbmsecho "${ECHO_T}$ac_cv_maxserv" >&6 640356893Sfenner if test $ac_cv_maxserv != yes; then 6404127668Sbms cat >>confdefs.h <<\_ACEOF 640556893Sfenner#define NEED_ADDRINFO_H 1 6406127668Sbms_ACEOF 640756893Sfenner 640856893Sfenner fi 640956893Sfenner 641056893Sfennerif test "$ac_cv_maxserv" = no; then 641156893Sfenner missing_includes=yes 641256893Sfennerfi 641356893Sfenner 641456893Sfenner 6415127668Sbms echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 6416127668Sbmsecho $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6 6417127668Sbms if test "${ac_cv_namereqd+set}" = set; then 6418127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 641956893Sfennerelse 6420127668Sbms cat >conftest.$ac_ext <<_ACEOF 6421127668Sbms#line $LINENO "configure" 6422127668Sbms/* confdefs.h. */ 6423127668Sbms_ACEOF 6424127668Sbmscat confdefs.h >>conftest.$ac_ext 6425127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6426127668Sbms/* end confdefs.h. */ 642756893Sfenner#include <netdb.h> 642856893Sfenner#ifdef NI_NOFQDN 642956893Sfenneryes 643056893Sfenner#endif 6431127668Sbms_ACEOF 643256893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433127668Sbms $EGREP "yes" >/dev/null 2>&1; then 643456893Sfenner ac_cv_namereqd=yes 643556893Sfennerelse 643656893Sfenner ac_cv_namereqd=no 643756893Sfennerfi 643856893Sfennerrm -f conftest* 643956893Sfenner 644056893Sfennerfi 644156893Sfenner 6442127668Sbms echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 6443127668Sbmsecho "${ECHO_T}$ac_cv_namereqd" >&6 644456893Sfenner if test $ac_cv_namereqd != yes; then 6445127668Sbms cat >>confdefs.h <<\_ACEOF 644656893Sfenner#define NEED_ADDRINFO_H 1 6447127668Sbms_ACEOF 644856893Sfenner 644956893Sfenner fi 645056893Sfenner 645156893Sfennerif test "$ac_cv_namereqd" = no; then 645256893Sfenner missing_includes=yes 645356893Sfennerfi 645456893Sfenner 645556893Sfenner 6456127668Sbms echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 6457127668Sbmsecho $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 6458127668Sbms if test "${ac_cv_sa_storage+set}" = set; then 6459127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 646056893Sfennerelse 6461127668Sbms cat >conftest.$ac_ext <<_ACEOF 6462127668Sbms#line $LINENO "configure" 6463127668Sbms/* confdefs.h. */ 6464127668Sbms_ACEOF 6465127668Sbmscat confdefs.h >>conftest.$ac_ext 6466127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6467127668Sbms/* end confdefs.h. */ 646856893Sfenner 646956893Sfenner# include <sys/types.h> 647056893Sfenner# include <sys/socket.h> 6471127668Sbmsint 6472127668Sbmsmain () 6473127668Sbms{ 647456893Sfennerstruct sockaddr_storage s 6475127668Sbms ; 6476127668Sbms return 0; 6477127668Sbms} 6478127668Sbms_ACEOF 6479127668Sbmsrm -f conftest.$ac_objext 6480127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6481127668Sbms (eval $ac_compile) 2>&5 6482127668Sbms ac_status=$? 6483127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484127668Sbms (exit $ac_status); } && 6485127668Sbms { ac_try='test -s conftest.$ac_objext' 6486127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6487127668Sbms (eval $ac_try) 2>&5 6488127668Sbms ac_status=$? 6489127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490127668Sbms (exit $ac_status); }; }; then 649156893Sfenner ac_cv_sa_storage=yes 649256893Sfennerelse 6493127668Sbms echo "$as_me: failed program was:" >&5 6494127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6495127668Sbms 6496127668Sbmsac_cv_sa_storage=no 649756893Sfennerfi 6498127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 649956893Sfennerfi 650056893Sfenner 6501127668Sbms echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 6502127668Sbmsecho "${ECHO_T}$ac_cv_sa_storage" >&6 650356893Sfenner if test $ac_cv_sa_storage = yes; then 6504127668Sbms cat >>confdefs.h <<\_ACEOF 650556893Sfenner#define HAVE_SOCKADDR_STORAGE 1 6506127668Sbms_ACEOF 650756893Sfenner 650856893Sfenner fi 650956893Sfenner 651056893Sfennerif test "$ac_cv_sa_storage" = no; then 651156893Sfenner missing_includes=yes 651256893Sfennerfi 651356893Sfenner 651456893Sfenner 651556893Sfenner ac_cv_addrsz=yes 6516127668Sbms echo "$as_me:$LINENO: checking for INADDRSZ" >&5 6517127668Sbmsecho $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6 6518127668Sbms if test "${ac_cv_inaddrsz+set}" = set; then 6519127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 652056893Sfennerelse 6521127668Sbms cat >conftest.$ac_ext <<_ACEOF 6522127668Sbms#line $LINENO "configure" 6523127668Sbms/* confdefs.h. */ 6524127668Sbms_ACEOF 6525127668Sbmscat confdefs.h >>conftest.$ac_ext 6526127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6527127668Sbms/* end confdefs.h. */ 652856893Sfenner 652956893Sfenner# include <arpa/nameser.h> 6530127668Sbmsint 6531127668Sbmsmain () 6532127668Sbms{ 653356893Sfennerint a = INADDRSZ 6534127668Sbms ; 6535127668Sbms return 0; 6536127668Sbms} 6537127668Sbms_ACEOF 6538127668Sbmsrm -f conftest.$ac_objext 6539127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6540127668Sbms (eval $ac_compile) 2>&5 6541127668Sbms ac_status=$? 6542127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6543127668Sbms (exit $ac_status); } && 6544127668Sbms { ac_try='test -s conftest.$ac_objext' 6545127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6546127668Sbms (eval $ac_try) 2>&5 6547127668Sbms ac_status=$? 6548127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6549127668Sbms (exit $ac_status); }; }; then 655056893Sfenner ac_cv_inaddrsz=yes 655156893Sfennerelse 6552127668Sbms echo "$as_me: failed program was:" >&5 6553127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6554127668Sbms 6555127668Sbmsac_cv_inaddrsz=no 655656893Sfennerfi 6557127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 655856893Sfennerfi 655956893Sfenner 6560127668Sbms echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5 6561127668Sbmsecho "${ECHO_T}$ac_cv_inaddrsz" >&6 656256893Sfenner if test $ac_cv_inaddrsz = yes; then 6563127668Sbms cat >>confdefs.h <<\_ACEOF 656456893Sfenner#define HAVE_INADDRSZ 1 6565127668Sbms_ACEOF 656656893Sfenner 656756893Sfenner else 656856893Sfenner ac_cv_addrsz=no 656956893Sfenner fi 6570127668Sbms echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5 6571127668Sbmsecho $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6 6572127668Sbms if test "${ac_cv_in6addrsz+set}" = set; then 6573127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 657456893Sfennerelse 6575127668Sbms cat >conftest.$ac_ext <<_ACEOF 6576127668Sbms#line $LINENO "configure" 6577127668Sbms/* confdefs.h. */ 6578127668Sbms_ACEOF 6579127668Sbmscat confdefs.h >>conftest.$ac_ext 6580127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6581127668Sbms/* end confdefs.h. */ 658256893Sfenner 658356893Sfenner# include <arpa/nameser.h> 6584127668Sbmsint 6585127668Sbmsmain () 6586127668Sbms{ 658756893Sfennerint a = IN6ADDRSZ 6588127668Sbms ; 6589127668Sbms return 0; 6590127668Sbms} 6591127668Sbms_ACEOF 6592127668Sbmsrm -f conftest.$ac_objext 6593127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6594127668Sbms (eval $ac_compile) 2>&5 6595127668Sbms ac_status=$? 6596127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597127668Sbms (exit $ac_status); } && 6598127668Sbms { ac_try='test -s conftest.$ac_objext' 6599127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6600127668Sbms (eval $ac_try) 2>&5 6601127668Sbms ac_status=$? 6602127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603127668Sbms (exit $ac_status); }; }; then 660456893Sfenner ac_cv_in6addrsz=yes 660556893Sfennerelse 6606127668Sbms echo "$as_me: failed program was:" >&5 6607127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6608127668Sbms 6609127668Sbmsac_cv_in6addrsz=no 661056893Sfennerfi 6611127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 661256893Sfennerfi 661356893Sfenner 6614127668Sbms echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5 6615127668Sbmsecho "${ECHO_T}$ac_cv_in6addrsz" >&6 661656893Sfenner if test $ac_cv_in6addrsz = yes; then 6617127668Sbms cat >>confdefs.h <<\_ACEOF 661856893Sfenner#define HAVE_IN6ADDRSZ 1 6619127668Sbms_ACEOF 662056893Sfenner 662156893Sfenner else 662256893Sfenner ac_cv_addrsz=no 662356893Sfenner fi 662456893Sfenner 662556893Sfennerif test "$ac_cv_addrsz" = no; then 662656893Sfenner missing_includes=yes 662756893Sfennerfi 662856893Sfenner 662956893Sfenner 6630127668Sbms echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5 6631127668Sbmsecho $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6 6632127668Sbms if test "${ac_cv_res_inet6+set}" = set; then 6633127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 663456893Sfennerelse 6635127668Sbms cat >conftest.$ac_ext <<_ACEOF 6636127668Sbms#line $LINENO "configure" 6637127668Sbms/* confdefs.h. */ 6638127668Sbms_ACEOF 6639127668Sbmscat confdefs.h >>conftest.$ac_ext 6640127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6641127668Sbms/* end confdefs.h. */ 664256893Sfenner 664356893Sfenner# include <sys/types.h> 664456893Sfenner# include <netinet/in.h> 664556893Sfenner# include <resolv.h> 6646127668Sbmsint 6647127668Sbmsmain () 6648127668Sbms{ 664956893Sfennerint a = RES_USE_INET6 6650127668Sbms ; 6651127668Sbms return 0; 6652127668Sbms} 6653127668Sbms_ACEOF 6654127668Sbmsrm -f conftest.$ac_objext 6655127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6656127668Sbms (eval $ac_compile) 2>&5 6657127668Sbms ac_status=$? 6658127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6659127668Sbms (exit $ac_status); } && 6660127668Sbms { ac_try='test -s conftest.$ac_objext' 6661127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6662127668Sbms (eval $ac_try) 2>&5 6663127668Sbms ac_status=$? 6664127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6665127668Sbms (exit $ac_status); }; }; then 666656893Sfenner ac_cv_res_inet6=yes 666756893Sfennerelse 6668127668Sbms echo "$as_me: failed program was:" >&5 6669127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6670127668Sbms 6671127668Sbmsac_cv_res_inet6=no 667256893Sfennerfi 6673127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 667456893Sfennerfi 667556893Sfenner 6676127668Sbms echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5 6677127668Sbmsecho "${ECHO_T}$ac_cv_res_inet6" >&6 667856893Sfenner if test $ac_cv_res_inet6 = yes; then 6679127668Sbms cat >>confdefs.h <<\_ACEOF 668056893Sfenner#define HAVE_RES_USE_INET6 1 6681127668Sbms_ACEOF 668256893Sfenner 668356893Sfenner fi 668456893Sfenner 668556893Sfennerif test "$ac_cv_res_inet6" = no; then 668656893Sfenner missing_includes=yes 668756893Sfennerfi 668856893Sfenner 668956893Sfenner 6690127668Sbms echo "$as_me:$LINENO: checking for res_state_ext" >&5 6691127668Sbmsecho $ECHO_N "checking for res_state_ext... $ECHO_C" >&6 6692127668Sbms if test "${ac_cv_res_state_ext+set}" = set; then 6693127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 669456893Sfennerelse 6695127668Sbms cat >conftest.$ac_ext <<_ACEOF 6696127668Sbms#line $LINENO "configure" 6697127668Sbms/* confdefs.h. */ 6698127668Sbms_ACEOF 6699127668Sbmscat confdefs.h >>conftest.$ac_ext 6700127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6701127668Sbms/* end confdefs.h. */ 670256893Sfenner 670356893Sfenner# include <sys/types.h> 670456893Sfenner# include <netinet/in.h> 670556893Sfenner# include <netinet6/in6.h> 670656893Sfenner# include <resolv.h> 6707127668Sbmsint 6708127668Sbmsmain () 6709127668Sbms{ 671056893Sfennerstruct __res_state_ext e 6711127668Sbms ; 6712127668Sbms return 0; 6713127668Sbms} 6714127668Sbms_ACEOF 6715127668Sbmsrm -f conftest.$ac_objext 6716127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6717127668Sbms (eval $ac_compile) 2>&5 6718127668Sbms ac_status=$? 6719127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720127668Sbms (exit $ac_status); } && 6721127668Sbms { ac_try='test -s conftest.$ac_objext' 6722127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6723127668Sbms (eval $ac_try) 2>&5 6724127668Sbms ac_status=$? 6725127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6726127668Sbms (exit $ac_status); }; }; then 672756893Sfenner ac_cv_res_state_ext=yes 672856893Sfennerelse 6729127668Sbms echo "$as_me: failed program was:" >&5 6730127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6731127668Sbms 6732127668Sbmsac_cv_res_state_ext=no 673356893Sfennerfi 6734127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 673556893Sfennerfi 673656893Sfenner 6737127668Sbms echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5 6738127668Sbmsecho "${ECHO_T}$ac_cv_res_state_ext" >&6 673956893Sfenner if test $ac_cv_res_state_ext = yes; then 6740127668Sbms cat >>confdefs.h <<\_ACEOF 674156893Sfenner#define HAVE_RES_STATE_EXT 1 6742127668Sbms_ACEOF 674356893Sfenner 674456893Sfenner fi 674556893Sfenner 674656893Sfennerif test "$ac_cv_res_state_ext" = no; then 674756893Sfenner missing_includes=yes 674856893Sfennerfi 674956893Sfenner 675056893Sfenner 6751127668Sbms echo "$as_me:$LINENO: checking for nsort in res_state" >&5 6752127668Sbmsecho $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6 6753127668Sbms if test "${ac_cv_res_state+set}" = set; then 6754127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 675556893Sfennerelse 6756127668Sbms cat >conftest.$ac_ext <<_ACEOF 6757127668Sbms#line $LINENO "configure" 6758127668Sbms/* confdefs.h. */ 6759127668Sbms_ACEOF 6760127668Sbmscat confdefs.h >>conftest.$ac_ext 6761127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6762127668Sbms/* end confdefs.h. */ 676356893Sfenner 676456893Sfenner# include <sys/types.h> 676556893Sfenner# include <netinet/in.h> 676656893Sfenner# include <netinet6/in6.h> 676756893Sfenner# include <resolv.h> 6768127668Sbmsint 6769127668Sbmsmain () 6770127668Sbms{ 677156893Sfennerstruct __res_state e; e.nsort = 0 6772127668Sbms ; 6773127668Sbms return 0; 6774127668Sbms} 6775127668Sbms_ACEOF 6776127668Sbmsrm -f conftest.$ac_objext 6777127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6778127668Sbms (eval $ac_compile) 2>&5 6779127668Sbms ac_status=$? 6780127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781127668Sbms (exit $ac_status); } && 6782127668Sbms { ac_try='test -s conftest.$ac_objext' 6783127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6784127668Sbms (eval $ac_try) 2>&5 6785127668Sbms ac_status=$? 6786127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787127668Sbms (exit $ac_status); }; }; then 678856893Sfenner ac_cv_res_state=yes 678956893Sfennerelse 6790127668Sbms echo "$as_me: failed program was:" >&5 6791127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6792127668Sbms 6793127668Sbmsac_cv_res_state=no 679456893Sfennerfi 6795127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 679656893Sfennerfi 679756893Sfenner 6798127668Sbms echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5 6799127668Sbmsecho "${ECHO_T}$ac_cv_res_state" >&6 680056893Sfenner if test $ac_cv_res_state = yes; then 6801127668Sbms cat >>confdefs.h <<\_ACEOF 680256893Sfenner#define HAVE_NEW_RES_STATE 1 6803127668Sbms_ACEOF 680456893Sfenner 680556893Sfenner fi 680656893Sfenner 680756893Sfenner 680856893Sfenner 680956893Sfenner 6810127668Sbms 6811127668Sbms 6812127668Sbms 6813127668Sbms 6814127668Sbms 6815127668Sbmsfor ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 681617680Spstdo 6817127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6818127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 6819127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6820127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 6821127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 682217680Spstelse 6823127668Sbms cat >conftest.$ac_ext <<_ACEOF 6824127668Sbms#line $LINENO "configure" 6825127668Sbms/* confdefs.h. */ 6826127668Sbms_ACEOF 6827127668Sbmscat confdefs.h >>conftest.$ac_ext 6828127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6829127668Sbms/* end confdefs.h. */ 683017680Spst/* System header to define __stub macros and hopefully few prototypes, 6831127668Sbms which can conflict with char $ac_func (); below. 6832127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6833127668Sbms <limits.h> exists even on freestanding compilers. */ 6834127668Sbms#ifdef __STDC__ 6835127668Sbms# include <limits.h> 6836127668Sbms#else 6837127668Sbms# include <assert.h> 6838127668Sbms#endif 683917680Spst/* Override any gcc2 internal prototype to avoid an error. */ 6840127668Sbms#ifdef __cplusplus 6841127668Sbmsextern "C" 6842127668Sbms{ 6843127668Sbms#endif 684417680Spst/* We use char because int might match the return type of a gcc2 6845127668Sbms builtin and then its argument prototype would still apply. */ 6846127668Sbmschar $ac_func (); 6847127668Sbms/* The GNU C library defines this for functions which it implements 6848127668Sbms to always fail with ENOSYS. Some functions are actually named 6849127668Sbms something starting with __ and the normal name is an alias. */ 6850127668Sbms#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6851127668Sbmschoke me 6852127668Sbms#else 6853127668Sbmschar (*f) () = $ac_func; 6854127668Sbms#endif 6855127668Sbms#ifdef __cplusplus 6856127668Sbms} 6857127668Sbms#endif 685817680Spst 6859127668Sbmsint 6860127668Sbmsmain () 6861127668Sbms{ 6862127668Sbmsreturn f != $ac_func; 6863127668Sbms ; 6864127668Sbms return 0; 6865127668Sbms} 6866127668Sbms_ACEOF 6867127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 6868127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6869127668Sbms (eval $ac_link) 2>&5 6870127668Sbms ac_status=$? 6871127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6872127668Sbms (exit $ac_status); } && 6873127668Sbms { ac_try='test -s conftest$ac_exeext' 6874127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6875127668Sbms (eval $ac_try) 2>&5 6876127668Sbms ac_status=$? 6877127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6878127668Sbms (exit $ac_status); }; }; then 6879127668Sbms eval "$as_ac_var=yes" 6880127668Sbmselse 6881127668Sbms echo "$as_me: failed program was:" >&5 6882127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 688317680Spst 6884127668Sbmseval "$as_ac_var=no" 6885127668Sbmsfi 6886127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6887127668Sbmsfi 6888127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6889127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6890127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 6891127668Sbms cat >>confdefs.h <<_ACEOF 6892127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6893127668Sbms_ACEOF 6894127668Sbms 6895127668Sbmselse 6896127668Sbms LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6897127668Sbmsfi 6898127668Sbmsdone 6899127668Sbms 6900127668Sbms 6901127668Sbms 6902127668Sbmsfor ac_func in strftime 6903127668Sbmsdo 6904127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6905127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 6906127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6907127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 6908127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 6909127668Sbmselse 6910127668Sbms cat >conftest.$ac_ext <<_ACEOF 6911127668Sbms#line $LINENO "configure" 6912127668Sbms/* confdefs.h. */ 6913127668Sbms_ACEOF 6914127668Sbmscat confdefs.h >>conftest.$ac_ext 6915127668Sbmscat >>conftest.$ac_ext <<_ACEOF 6916127668Sbms/* end confdefs.h. */ 6917127668Sbms/* System header to define __stub macros and hopefully few prototypes, 6918127668Sbms which can conflict with char $ac_func (); below. 6919127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6920127668Sbms <limits.h> exists even on freestanding compilers. */ 6921127668Sbms#ifdef __STDC__ 6922127668Sbms# include <limits.h> 6923127668Sbms#else 6924127668Sbms# include <assert.h> 6925127668Sbms#endif 6926127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 6927127668Sbms#ifdef __cplusplus 6928127668Sbmsextern "C" 6929127668Sbms{ 6930127668Sbms#endif 6931127668Sbms/* We use char because int might match the return type of a gcc2 6932127668Sbms builtin and then its argument prototype would still apply. */ 6933127668Sbmschar $ac_func (); 693417680Spst/* The GNU C library defines this for functions which it implements 693517680Spst to always fail with ENOSYS. Some functions are actually named 693617680Spst something starting with __ and the normal name is an alias. */ 693717680Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 693817680Spstchoke me 693917680Spst#else 6940127668Sbmschar (*f) () = $ac_func; 694117680Spst#endif 6942127668Sbms#ifdef __cplusplus 6943127668Sbms} 6944127668Sbms#endif 694517680Spst 6946127668Sbmsint 6947127668Sbmsmain () 6948127668Sbms{ 6949127668Sbmsreturn f != $ac_func; 6950127668Sbms ; 6951127668Sbms return 0; 6952127668Sbms} 6953127668Sbms_ACEOF 6954127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 6955127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6956127668Sbms (eval $ac_link) 2>&5 6957127668Sbms ac_status=$? 6958127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6959127668Sbms (exit $ac_status); } && 6960127668Sbms { ac_try='test -s conftest$ac_exeext' 6961127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6962127668Sbms (eval $ac_try) 2>&5 6963127668Sbms ac_status=$? 6964127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 6965127668Sbms (exit $ac_status); }; }; then 6966127668Sbms eval "$as_ac_var=yes" 696717680Spstelse 6968127668Sbms echo "$as_me: failed program was:" >&5 6969127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 6970127668Sbms 6971127668Sbmseval "$as_ac_var=no" 697217680Spstfi 6973127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 697426180Sfennerfi 6975127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6976127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6977127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 6978127668Sbms cat >>confdefs.h <<_ACEOF 6979127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6980127668Sbms_ACEOF 698117680Spst 698217680Spstfi 698317680Spstdone 698417680Spst 698526180Sfenner 698617680Spst 6987146773Ssamfor ac_func in setlinebuf alarm 698875115Sfennerdo 6989127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6990127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 6991127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6992127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 6993127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 699475115Sfennerelse 6995127668Sbms cat >conftest.$ac_ext <<_ACEOF 6996127668Sbms#line $LINENO "configure" 6997127668Sbms/* confdefs.h. */ 6998127668Sbms_ACEOF 6999127668Sbmscat confdefs.h >>conftest.$ac_ext 7000127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7001127668Sbms/* end confdefs.h. */ 700275115Sfenner/* System header to define __stub macros and hopefully few prototypes, 7003127668Sbms which can conflict with char $ac_func (); below. 7004127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7005127668Sbms <limits.h> exists even on freestanding compilers. */ 7006127668Sbms#ifdef __STDC__ 7007127668Sbms# include <limits.h> 7008127668Sbms#else 7009127668Sbms# include <assert.h> 7010127668Sbms#endif 701175115Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7012127668Sbms#ifdef __cplusplus 7013127668Sbmsextern "C" 7014127668Sbms{ 7015127668Sbms#endif 701675115Sfenner/* We use char because int might match the return type of a gcc2 7017127668Sbms builtin and then its argument prototype would still apply. */ 7018127668Sbmschar $ac_func (); 701975115Sfenner/* The GNU C library defines this for functions which it implements 702075115Sfenner to always fail with ENOSYS. Some functions are actually named 702175115Sfenner something starting with __ and the normal name is an alias. */ 702275115Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 702375115Sfennerchoke me 702475115Sfenner#else 7025127668Sbmschar (*f) () = $ac_func; 702675115Sfenner#endif 7027127668Sbms#ifdef __cplusplus 7028127668Sbms} 7029127668Sbms#endif 703075115Sfenner 7031127668Sbmsint 7032127668Sbmsmain () 7033127668Sbms{ 7034127668Sbmsreturn f != $ac_func; 7035127668Sbms ; 7036127668Sbms return 0; 7037127668Sbms} 7038127668Sbms_ACEOF 7039127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7040127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7041127668Sbms (eval $ac_link) 2>&5 7042127668Sbms ac_status=$? 7043127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7044127668Sbms (exit $ac_status); } && 7045127668Sbms { ac_try='test -s conftest$ac_exeext' 7046127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7047127668Sbms (eval $ac_try) 2>&5 7048127668Sbms ac_status=$? 7049127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7050127668Sbms (exit $ac_status); }; }; then 7051127668Sbms eval "$as_ac_var=yes" 705275115Sfennerelse 7053127668Sbms echo "$as_me: failed program was:" >&5 7054127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7055127668Sbms 7056127668Sbmseval "$as_ac_var=no" 705775115Sfennerfi 7058127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 705975115Sfennerfi 7060127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7061127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7062127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 7063127668Sbms cat >>confdefs.h <<_ACEOF 7064127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7065127668Sbms_ACEOF 706675115Sfenner 706775115Sfennerfi 706875115Sfennerdone 706975115Sfenner 707075115Sfenner 707175115Sfennerneedsnprintf=no 7072127668Sbms 7073127668Sbms 707475115Sfennerfor ac_func in vsnprintf snprintf 707575115Sfennerdo 7076127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7077127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 7078127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7079127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 7080127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 708175115Sfennerelse 7082127668Sbms cat >conftest.$ac_ext <<_ACEOF 7083127668Sbms#line $LINENO "configure" 7084127668Sbms/* confdefs.h. */ 7085127668Sbms_ACEOF 7086127668Sbmscat confdefs.h >>conftest.$ac_ext 7087127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7088127668Sbms/* end confdefs.h. */ 708975115Sfenner/* System header to define __stub macros and hopefully few prototypes, 7090127668Sbms which can conflict with char $ac_func (); below. 7091127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7092127668Sbms <limits.h> exists even on freestanding compilers. */ 7093127668Sbms#ifdef __STDC__ 7094127668Sbms# include <limits.h> 7095127668Sbms#else 7096127668Sbms# include <assert.h> 7097127668Sbms#endif 709875115Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7099127668Sbms#ifdef __cplusplus 7100127668Sbmsextern "C" 7101127668Sbms{ 7102127668Sbms#endif 710375115Sfenner/* We use char because int might match the return type of a gcc2 7104127668Sbms builtin and then its argument prototype would still apply. */ 7105127668Sbmschar $ac_func (); 710675115Sfenner/* The GNU C library defines this for functions which it implements 710775115Sfenner to always fail with ENOSYS. Some functions are actually named 710875115Sfenner something starting with __ and the normal name is an alias. */ 710975115Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 711075115Sfennerchoke me 711175115Sfenner#else 7112127668Sbmschar (*f) () = $ac_func; 711375115Sfenner#endif 7114127668Sbms#ifdef __cplusplus 7115127668Sbms} 7116127668Sbms#endif 711775115Sfenner 7118127668Sbmsint 7119127668Sbmsmain () 7120127668Sbms{ 7121127668Sbmsreturn f != $ac_func; 7122127668Sbms ; 7123127668Sbms return 0; 7124127668Sbms} 7125127668Sbms_ACEOF 7126127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7127127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7128127668Sbms (eval $ac_link) 2>&5 7129127668Sbms ac_status=$? 7130127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7131127668Sbms (exit $ac_status); } && 7132127668Sbms { ac_try='test -s conftest$ac_exeext' 7133127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7134127668Sbms (eval $ac_try) 2>&5 7135127668Sbms ac_status=$? 7136127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7137127668Sbms (exit $ac_status); }; }; then 7138127668Sbms eval "$as_ac_var=yes" 713975115Sfennerelse 7140127668Sbms echo "$as_me: failed program was:" >&5 7141127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7142127668Sbms 7143127668Sbmseval "$as_ac_var=no" 714475115Sfennerfi 7145127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 714675115Sfennerfi 7147127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7148127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7149127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 7150127668Sbms cat >>confdefs.h <<_ACEOF 7151127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7152127668Sbms_ACEOF 715375115Sfenner 715475115Sfennerelse 7155127668Sbms needsnprintf=yes 715675115Sfennerfi 715775115Sfennerdone 715875115Sfenner 715975115Sfennerif test $needsnprintf = yes; then 7160146773Ssam LIBOBJS="$LIBOBJS snprintf.$ac_objext" 716175115Sfennerfi 716275115Sfenner 716326180Sfenner 7164127668Sbms echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7165127668Sbmsecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7166127668Sbmsif test "${ac_cv_type_signal+set}" = set; then 7167127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 716817680Spstelse 7169127668Sbms cat >conftest.$ac_ext <<_ACEOF 7170127668Sbms#line $LINENO "configure" 7171127668Sbms/* confdefs.h. */ 7172127668Sbms_ACEOF 7173127668Sbmscat confdefs.h >>conftest.$ac_ext 7174127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7175127668Sbms/* end confdefs.h. */ 717639297Sfenner#include <sys/types.h> 717739297Sfenner#include <signal.h> 717839297Sfenner#ifdef signal 7179127668Sbms# undef signal 718039297Sfenner#endif 718139297Sfenner#ifdef __cplusplus 718239297Sfennerextern "C" void (*signal (int, void (*)(int)))(int); 718339297Sfenner#else 718439297Sfennervoid (*signal ()) (); 718539297Sfenner#endif 718639297Sfenner 7187127668Sbmsint 7188127668Sbmsmain () 7189127668Sbms{ 719039297Sfennerint i; 7191127668Sbms ; 7192127668Sbms return 0; 7193127668Sbms} 7194127668Sbms_ACEOF 7195127668Sbmsrm -f conftest.$ac_objext 7196127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7197127668Sbms (eval $ac_compile) 2>&5 7198127668Sbms ac_status=$? 7199127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7200127668Sbms (exit $ac_status); } && 7201127668Sbms { ac_try='test -s conftest.$ac_objext' 7202127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7203127668Sbms (eval $ac_try) 2>&5 7204127668Sbms ac_status=$? 7205127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7206127668Sbms (exit $ac_status); }; }; then 720739297Sfenner ac_cv_type_signal=void 720839297Sfennerelse 7209127668Sbms echo "$as_me: failed program was:" >&5 7210127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7211127668Sbms 7212127668Sbmsac_cv_type_signal=int 721339297Sfennerfi 7214127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 721539297Sfennerfi 7216127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7217127668Sbmsecho "${ECHO_T}$ac_cv_type_signal" >&6 721839297Sfenner 7219127668Sbmscat >>confdefs.h <<_ACEOF 722039297Sfenner#define RETSIGTYPE $ac_cv_type_signal 7221127668Sbms_ACEOF 722239297Sfenner 722339297Sfenner 722439297Sfenner if test "$ac_cv_type_signal" = void ; then 7225127668Sbms cat >>confdefs.h <<\_ACEOF 7226127668Sbms#define RETSIGVAL 7227127668Sbms_ACEOF 722839297Sfenner 722939297Sfenner else 7230127668Sbms cat >>confdefs.h <<\_ACEOF 723139297Sfenner#define RETSIGVAL (0) 7232127668Sbms_ACEOF 723339297Sfenner 723439297Sfenner fi 723598524Sfenner case "$host_os" in 723639297Sfenner 723739297Sfenner irix*) 7238127668Sbms cat >>confdefs.h <<\_ACEOF 723939297Sfenner#define _BSD_SIGNALS 1 7240127668Sbms_ACEOF 724139297Sfenner 724239297Sfenner ;; 724339297Sfenner 724439297Sfenner *) 7245127668Sbms 7246127668Sbmsfor ac_func in sigaction 724739297Sfennerdo 7248127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7249127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 7250127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7251127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 7252127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 725339297Sfennerelse 7254127668Sbms cat >conftest.$ac_ext <<_ACEOF 7255127668Sbms#line $LINENO "configure" 7256127668Sbms/* confdefs.h. */ 7257127668Sbms_ACEOF 7258127668Sbmscat confdefs.h >>conftest.$ac_ext 7259127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7260127668Sbms/* end confdefs.h. */ 726139297Sfenner/* System header to define __stub macros and hopefully few prototypes, 7262127668Sbms which can conflict with char $ac_func (); below. 7263127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7264127668Sbms <limits.h> exists even on freestanding compilers. */ 7265127668Sbms#ifdef __STDC__ 7266127668Sbms# include <limits.h> 7267127668Sbms#else 7268127668Sbms# include <assert.h> 7269127668Sbms#endif 727039297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7271127668Sbms#ifdef __cplusplus 7272127668Sbmsextern "C" 7273127668Sbms{ 7274127668Sbms#endif 727539297Sfenner/* We use char because int might match the return type of a gcc2 7276127668Sbms builtin and then its argument prototype would still apply. */ 7277127668Sbmschar $ac_func (); 727839297Sfenner/* The GNU C library defines this for functions which it implements 727939297Sfenner to always fail with ENOSYS. Some functions are actually named 728039297Sfenner something starting with __ and the normal name is an alias. */ 728139297Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 728239297Sfennerchoke me 728339297Sfenner#else 7284127668Sbmschar (*f) () = $ac_func; 728539297Sfenner#endif 7286127668Sbms#ifdef __cplusplus 7287127668Sbms} 7288127668Sbms#endif 728939297Sfenner 7290127668Sbmsint 7291127668Sbmsmain () 7292127668Sbms{ 7293127668Sbmsreturn f != $ac_func; 7294127668Sbms ; 7295127668Sbms return 0; 7296127668Sbms} 7297127668Sbms_ACEOF 7298127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7299127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7300127668Sbms (eval $ac_link) 2>&5 7301127668Sbms ac_status=$? 7302127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7303127668Sbms (exit $ac_status); } && 7304127668Sbms { ac_try='test -s conftest$ac_exeext' 7305127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7306127668Sbms (eval $ac_try) 2>&5 7307127668Sbms ac_status=$? 7308127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7309127668Sbms (exit $ac_status); }; }; then 7310127668Sbms eval "$as_ac_var=yes" 731139297Sfennerelse 7312127668Sbms echo "$as_me: failed program was:" >&5 7313127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7314127668Sbms 7315127668Sbmseval "$as_ac_var=no" 731639297Sfennerfi 7317127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 731839297Sfennerfi 7319127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7320127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7321127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 7322127668Sbms cat >>confdefs.h <<_ACEOF 7323127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7324127668Sbms_ACEOF 732539297Sfenner 732639297Sfennerfi 732739297Sfennerdone 732839297Sfenner 7329127668Sbms if test $ac_cv_func_sigaction = no ; then 7330127668Sbms 7331127668Sbmsfor ac_func in sigset 733239297Sfennerdo 7333127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7334127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 7335127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7336127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 7337127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 733839297Sfennerelse 7339127668Sbms cat >conftest.$ac_ext <<_ACEOF 7340127668Sbms#line $LINENO "configure" 7341127668Sbms/* confdefs.h. */ 7342127668Sbms_ACEOF 7343127668Sbmscat confdefs.h >>conftest.$ac_ext 7344127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7345127668Sbms/* end confdefs.h. */ 734639297Sfenner/* System header to define __stub macros and hopefully few prototypes, 7347127668Sbms which can conflict with char $ac_func (); below. 7348127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7349127668Sbms <limits.h> exists even on freestanding compilers. */ 7350127668Sbms#ifdef __STDC__ 7351127668Sbms# include <limits.h> 7352127668Sbms#else 7353127668Sbms# include <assert.h> 7354127668Sbms#endif 735539297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7356127668Sbms#ifdef __cplusplus 7357127668Sbmsextern "C" 7358127668Sbms{ 7359127668Sbms#endif 736039297Sfenner/* We use char because int might match the return type of a gcc2 7361127668Sbms builtin and then its argument prototype would still apply. */ 7362127668Sbmschar $ac_func (); 736339297Sfenner/* The GNU C library defines this for functions which it implements 736439297Sfenner to always fail with ENOSYS. Some functions are actually named 736539297Sfenner something starting with __ and the normal name is an alias. */ 736639297Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 736739297Sfennerchoke me 736839297Sfenner#else 7369127668Sbmschar (*f) () = $ac_func; 737039297Sfenner#endif 7371127668Sbms#ifdef __cplusplus 7372127668Sbms} 7373127668Sbms#endif 737439297Sfenner 7375127668Sbmsint 7376127668Sbmsmain () 7377127668Sbms{ 7378127668Sbmsreturn f != $ac_func; 7379127668Sbms ; 7380127668Sbms return 0; 7381127668Sbms} 7382127668Sbms_ACEOF 7383127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7384127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7385127668Sbms (eval $ac_link) 2>&5 7386127668Sbms ac_status=$? 7387127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7388127668Sbms (exit $ac_status); } && 7389127668Sbms { ac_try='test -s conftest$ac_exeext' 7390127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7391127668Sbms (eval $ac_try) 2>&5 7392127668Sbms ac_status=$? 7393127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7394127668Sbms (exit $ac_status); }; }; then 7395127668Sbms eval "$as_ac_var=yes" 739639297Sfennerelse 7397127668Sbms echo "$as_me: failed program was:" >&5 7398127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7399127668Sbms 7400127668Sbmseval "$as_ac_var=no" 740139297Sfennerfi 7402127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 740339297Sfennerfi 7404127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7405127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7406127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 7407127668Sbms cat >>confdefs.h <<_ACEOF 7408127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7409127668Sbms_ACEOF 741039297Sfenner 741139297Sfennerfi 741239297Sfennerdone 741339297Sfenner 741439297Sfenner fi 741539297Sfenner ;; 741639297Sfenner esac 741739297Sfenner 7418127668Sbmsecho "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 7419127668Sbmsecho $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6 7420127668Sbmsif test "${ac_cv_search_dnet_htoa+set}" = set; then 7421127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 742239297Sfennerelse 7423127668Sbms ac_func_search_save_LIBS=$LIBS 7424127668Sbmsac_cv_search_dnet_htoa=no 7425127668Sbmscat >conftest.$ac_ext <<_ACEOF 7426127668Sbms#line $LINENO "configure" 7427127668Sbms/* confdefs.h. */ 7428127668Sbms_ACEOF 7429127668Sbmscat confdefs.h >>conftest.$ac_ext 7430127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7431127668Sbms/* end confdefs.h. */ 7432127668Sbms 743339297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7434127668Sbms#ifdef __cplusplus 7435127668Sbmsextern "C" 7436127668Sbms#endif 743739297Sfenner/* We use char because int might match the return type of a gcc2 7438127668Sbms builtin and then its argument prototype would still apply. */ 7439127668Sbmschar dnet_htoa (); 7440127668Sbmsint 7441127668Sbmsmain () 7442127668Sbms{ 7443127668Sbmsdnet_htoa (); 7444127668Sbms ; 7445127668Sbms return 0; 7446127668Sbms} 7447127668Sbms_ACEOF 7448127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7449127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7450127668Sbms (eval $ac_link) 2>&5 7451127668Sbms ac_status=$? 7452127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7453127668Sbms (exit $ac_status); } && 7454127668Sbms { ac_try='test -s conftest$ac_exeext' 7455127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7456127668Sbms (eval $ac_try) 2>&5 7457127668Sbms ac_status=$? 7458127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7459127668Sbms (exit $ac_status); }; }; then 7460127668Sbms ac_cv_search_dnet_htoa="none required" 7461127668Sbmselse 7462127668Sbms echo "$as_me: failed program was:" >&5 7463127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 746439297Sfenner 7465127668Sbmsfi 7466127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7467127668Sbmsif test "$ac_cv_search_dnet_htoa" = no; then 7468127668Sbms for ac_lib in dnet; do 7469127668Sbms LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7470127668Sbms cat >conftest.$ac_ext <<_ACEOF 7471127668Sbms#line $LINENO "configure" 7472127668Sbms/* confdefs.h. */ 7473127668Sbms_ACEOF 7474127668Sbmscat confdefs.h >>conftest.$ac_ext 7475127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7476127668Sbms/* end confdefs.h. */ 7477127668Sbms 7478127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 7479127668Sbms#ifdef __cplusplus 7480127668Sbmsextern "C" 7481127668Sbms#endif 7482127668Sbms/* We use char because int might match the return type of a gcc2 7483127668Sbms builtin and then its argument prototype would still apply. */ 7484127668Sbmschar dnet_htoa (); 7485127668Sbmsint 7486127668Sbmsmain () 7487127668Sbms{ 7488127668Sbmsdnet_htoa (); 7489127668Sbms ; 7490127668Sbms return 0; 7491127668Sbms} 7492127668Sbms_ACEOF 7493127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7494127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7495127668Sbms (eval $ac_link) 2>&5 7496127668Sbms ac_status=$? 7497127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7498127668Sbms (exit $ac_status); } && 7499127668Sbms { ac_try='test -s conftest$ac_exeext' 7500127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7501127668Sbms (eval $ac_try) 2>&5 7502127668Sbms ac_status=$? 7503127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7504127668Sbms (exit $ac_status); }; }; then 7505127668Sbms ac_cv_search_dnet_htoa="-l$ac_lib" 7506127668Sbmsbreak 750739297Sfennerelse 7508127668Sbms echo "$as_me: failed program was:" >&5 7509127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7510127668Sbms 751139297Sfennerfi 7512127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7513127668Sbms done 7514127668Sbmsfi 7515127668SbmsLIBS=$ac_func_search_save_LIBS 7516127668Sbmsfi 7517127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5 7518127668Sbmsecho "${ECHO_T}$ac_cv_search_dnet_htoa" >&6 7519127668Sbmsif test "$ac_cv_search_dnet_htoa" != no; then 7520127668Sbms test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS" 7521127668Sbms cat >>confdefs.h <<\_ACEOF 7522127668Sbms#define HAVE_DNET_HTOA 1 7523127668Sbms_ACEOF 752498524Sfenner 752539297Sfennerfi 752639297Sfenner 752798524Sfenner 752898524Sfenner 7529127668Sbmsecho "$as_me:$LINENO: checking for main in -lrpc" >&5 7530127668Sbmsecho $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6 7531127668Sbmsif test "${ac_cv_lib_rpc_main+set}" = set; then 7532127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 753339297Sfennerelse 7534127668Sbms ac_check_lib_save_LIBS=$LIBS 753598524SfennerLIBS="-lrpc $LIBS" 7536127668Sbmscat >conftest.$ac_ext <<_ACEOF 7537127668Sbms#line $LINENO "configure" 7538127668Sbms/* confdefs.h. */ 7539127668Sbms_ACEOF 7540127668Sbmscat confdefs.h >>conftest.$ac_ext 7541127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7542127668Sbms/* end confdefs.h. */ 754317680Spst 7544127668Sbms 7545127668Sbmsint 7546127668Sbmsmain () 7547127668Sbms{ 7548127668Sbmsmain (); 7549127668Sbms ; 7550127668Sbms return 0; 7551127668Sbms} 7552127668Sbms_ACEOF 7553127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7554127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7555127668Sbms (eval $ac_link) 2>&5 7556127668Sbms ac_status=$? 7557127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7558127668Sbms (exit $ac_status); } && 7559127668Sbms { ac_try='test -s conftest$ac_exeext' 7560127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7561127668Sbms (eval $ac_try) 2>&5 7562127668Sbms ac_status=$? 7563127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7564127668Sbms (exit $ac_status); }; }; then 7565127668Sbms ac_cv_lib_rpc_main=yes 756617680Spstelse 7567127668Sbms echo "$as_me: failed program was:" >&5 7568127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 756917680Spst 7570127668Sbmsac_cv_lib_rpc_main=no 757117680Spstfi 7572127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7573127668SbmsLIBS=$ac_check_lib_save_LIBS 7574127668Sbmsfi 7575127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5 7576127668Sbmsecho "${ECHO_T}$ac_cv_lib_rpc_main" >&6 7577127668Sbmsif test $ac_cv_lib_rpc_main = yes; then 7578127668Sbms cat >>confdefs.h <<_ACEOF 7579127668Sbms#define HAVE_LIBRPC 1 7580127668Sbms_ACEOF 758117680Spst 758298524Sfenner LIBS="-lrpc $LIBS" 758317680Spst 758498524Sfennerfi 758598524Sfenner 7586127668Sbmsecho "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5 7587127668Sbmsecho $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6 7588127668Sbmsif test "${ac_cv_search_getrpcbynumber+set}" = set; then 7589127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 759039297Sfennerelse 7591127668Sbms ac_func_search_save_LIBS=$LIBS 7592127668Sbmsac_cv_search_getrpcbynumber=no 7593127668Sbmscat >conftest.$ac_ext <<_ACEOF 7594127668Sbms#line $LINENO "configure" 7595127668Sbms/* confdefs.h. */ 7596127668Sbms_ACEOF 7597127668Sbmscat confdefs.h >>conftest.$ac_ext 7598127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7599127668Sbms/* end confdefs.h. */ 7600127668Sbms 760139297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7602127668Sbms#ifdef __cplusplus 7603127668Sbmsextern "C" 7604127668Sbms#endif 760539297Sfenner/* We use char because int might match the return type of a gcc2 7606127668Sbms builtin and then its argument prototype would still apply. */ 7607127668Sbmschar getrpcbynumber (); 7608127668Sbmsint 7609127668Sbmsmain () 7610127668Sbms{ 7611127668Sbmsgetrpcbynumber (); 7612127668Sbms ; 7613127668Sbms return 0; 7614127668Sbms} 7615127668Sbms_ACEOF 7616127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7617127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7618127668Sbms (eval $ac_link) 2>&5 7619127668Sbms ac_status=$? 7620127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7621127668Sbms (exit $ac_status); } && 7622127668Sbms { ac_try='test -s conftest$ac_exeext' 7623127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7624127668Sbms (eval $ac_try) 2>&5 7625127668Sbms ac_status=$? 7626127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7627127668Sbms (exit $ac_status); }; }; then 762898524Sfenner ac_cv_search_getrpcbynumber="none required" 762939297Sfennerelse 7630127668Sbms echo "$as_me: failed program was:" >&5 7631127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7632127668Sbms 763398524Sfennerfi 7634127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7635127668Sbmsif test "$ac_cv_search_getrpcbynumber" = no; then 7636127668Sbms for ac_lib in nsl; do 7637127668Sbms LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7638127668Sbms cat >conftest.$ac_ext <<_ACEOF 7639127668Sbms#line $LINENO "configure" 7640127668Sbms/* confdefs.h. */ 7641127668Sbms_ACEOF 7642127668Sbmscat confdefs.h >>conftest.$ac_ext 7643127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7644127668Sbms/* end confdefs.h. */ 7645127668Sbms 764698524Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7647127668Sbms#ifdef __cplusplus 7648127668Sbmsextern "C" 7649127668Sbms#endif 765098524Sfenner/* We use char because int might match the return type of a gcc2 7651127668Sbms builtin and then its argument prototype would still apply. */ 7652127668Sbmschar getrpcbynumber (); 7653127668Sbmsint 7654127668Sbmsmain () 7655127668Sbms{ 7656127668Sbmsgetrpcbynumber (); 7657127668Sbms ; 7658127668Sbms return 0; 7659127668Sbms} 7660127668Sbms_ACEOF 7661127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7662127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7663127668Sbms (eval $ac_link) 2>&5 7664127668Sbms ac_status=$? 7665127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7666127668Sbms (exit $ac_status); } && 7667127668Sbms { ac_try='test -s conftest$ac_exeext' 7668127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7669127668Sbms (eval $ac_try) 2>&5 7670127668Sbms ac_status=$? 7671127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7672127668Sbms (exit $ac_status); }; }; then 7673127668Sbms ac_cv_search_getrpcbynumber="-l$ac_lib" 767498524Sfennerbreak 767598524Sfennerelse 7676127668Sbms echo "$as_me: failed program was:" >&5 7677127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7678127668Sbms 767917680Spstfi 7680127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7681127668Sbms done 768298524Sfennerfi 7683127668SbmsLIBS=$ac_func_search_save_LIBS 7684127668Sbmsfi 7685127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5 7686127668Sbmsecho "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6 7687127668Sbmsif test "$ac_cv_search_getrpcbynumber" != no; then 7688127668Sbms test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS" 7689146773Ssam cat >>confdefs.h <<\_ACEOF 7690146773Ssam#define HAVE_GETRPCBYNUMBER 1 7691146773Ssam_ACEOF 769217680Spst 769339297Sfennerfi 769439297Sfenner 769539297Sfenner 769698524Sfenner 7697127668Sbms 769898524Sfenner # Most operating systems have gethostbyname() in the default searched 769998524Sfenner # libraries (i.e. libc): 770098524Sfenner # Some OSes (eg. Solaris) place it in libnsl 770198524Sfenner # Some strange OSes (SINIX) have it in libsocket: 7702127668Sbms echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 7703127668Sbmsecho $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 7704127668Sbmsif test "${ac_cv_search_gethostbyname+set}" = set; then 7705127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 770639297Sfennerelse 7707127668Sbms ac_func_search_save_LIBS=$LIBS 7708127668Sbmsac_cv_search_gethostbyname=no 7709127668Sbmscat >conftest.$ac_ext <<_ACEOF 7710127668Sbms#line $LINENO "configure" 7711127668Sbms/* confdefs.h. */ 7712127668Sbms_ACEOF 7713127668Sbmscat confdefs.h >>conftest.$ac_ext 7714127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7715127668Sbms/* end confdefs.h. */ 7716127668Sbms 771739297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7718127668Sbms#ifdef __cplusplus 7719127668Sbmsextern "C" 7720127668Sbms#endif 772139297Sfenner/* We use char because int might match the return type of a gcc2 7722127668Sbms builtin and then its argument prototype would still apply. */ 7723127668Sbmschar gethostbyname (); 7724127668Sbmsint 7725127668Sbmsmain () 7726127668Sbms{ 7727127668Sbmsgethostbyname (); 7728127668Sbms ; 7729127668Sbms return 0; 7730127668Sbms} 7731127668Sbms_ACEOF 7732127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7733127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7734127668Sbms (eval $ac_link) 2>&5 7735127668Sbms ac_status=$? 7736127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737127668Sbms (exit $ac_status); } && 7738127668Sbms { ac_try='test -s conftest$ac_exeext' 7739127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7740127668Sbms (eval $ac_try) 2>&5 7741127668Sbms ac_status=$? 7742127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7743127668Sbms (exit $ac_status); }; }; then 774498524Sfenner ac_cv_search_gethostbyname="none required" 774539297Sfennerelse 7746127668Sbms echo "$as_me: failed program was:" >&5 7747127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7748127668Sbms 774998524Sfennerfi 7750127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7751127668Sbmsif test "$ac_cv_search_gethostbyname" = no; then 7752127668Sbms for ac_lib in nsl socket resolv; do 7753127668Sbms LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7754127668Sbms cat >conftest.$ac_ext <<_ACEOF 7755127668Sbms#line $LINENO "configure" 7756127668Sbms/* confdefs.h. */ 7757127668Sbms_ACEOF 7758127668Sbmscat confdefs.h >>conftest.$ac_ext 7759127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7760127668Sbms/* end confdefs.h. */ 7761127668Sbms 776298524Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7763127668Sbms#ifdef __cplusplus 7764127668Sbmsextern "C" 7765127668Sbms#endif 776698524Sfenner/* We use char because int might match the return type of a gcc2 7767127668Sbms builtin and then its argument prototype would still apply. */ 7768127668Sbmschar gethostbyname (); 7769127668Sbmsint 7770127668Sbmsmain () 7771127668Sbms{ 7772127668Sbmsgethostbyname (); 7773127668Sbms ; 7774127668Sbms return 0; 7775127668Sbms} 7776127668Sbms_ACEOF 7777127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7778127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7779127668Sbms (eval $ac_link) 2>&5 7780127668Sbms ac_status=$? 7781127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782127668Sbms (exit $ac_status); } && 7783127668Sbms { ac_try='test -s conftest$ac_exeext' 7784127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7785127668Sbms (eval $ac_try) 2>&5 7786127668Sbms ac_status=$? 7787127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788127668Sbms (exit $ac_status); }; }; then 7789127668Sbms ac_cv_search_gethostbyname="-l$ac_lib" 779098524Sfennerbreak 779198524Sfennerelse 7792127668Sbms echo "$as_me: failed program was:" >&5 7793127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7794127668Sbms 779539297Sfennerfi 7796127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7797127668Sbms done 779898524Sfennerfi 7799127668SbmsLIBS=$ac_func_search_save_LIBS 7800127668Sbmsfi 7801127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 7802127668Sbmsecho "${ECHO_T}$ac_cv_search_gethostbyname" >&6 7803127668Sbmsif test "$ac_cv_search_gethostbyname" != no; then 7804127668Sbms test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 780539297Sfenner 780639297Sfennerfi 7807127668Sbms 780898524Sfenner # Unfortunately libsocket sometimes depends on libnsl and 780998524Sfenner # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 781098524Sfenner if test "$ac_cv_search_gethostbyname" = "no" 781198524Sfenner then 7812127668Sbms echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 7813127668Sbmsecho $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6 7814127668Sbmsif test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 7815127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 781617680Spstelse 7817127668Sbms ac_check_lib_save_LIBS=$LIBS 781898524SfennerLIBS="-lsocket -lnsl $LIBS" 7819127668Sbmscat >conftest.$ac_ext <<_ACEOF 7820127668Sbms#line $LINENO "configure" 7821127668Sbms/* confdefs.h. */ 7822127668Sbms_ACEOF 7823127668Sbmscat confdefs.h >>conftest.$ac_ext 7824127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7825127668Sbms/* end confdefs.h. */ 7826127668Sbms 782739297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7828127668Sbms#ifdef __cplusplus 7829127668Sbmsextern "C" 7830127668Sbms#endif 783139297Sfenner/* We use char because int might match the return type of a gcc2 7832127668Sbms builtin and then its argument prototype would still apply. */ 7833127668Sbmschar gethostbyname (); 7834127668Sbmsint 7835127668Sbmsmain () 7836127668Sbms{ 7837127668Sbmsgethostbyname (); 7838127668Sbms ; 7839127668Sbms return 0; 7840127668Sbms} 7841127668Sbms_ACEOF 7842127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7843127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7844127668Sbms (eval $ac_link) 2>&5 7845127668Sbms ac_status=$? 7846127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847127668Sbms (exit $ac_status); } && 7848127668Sbms { ac_try='test -s conftest$ac_exeext' 7849127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7850127668Sbms (eval $ac_try) 2>&5 7851127668Sbms ac_status=$? 7852127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853127668Sbms (exit $ac_status); }; }; then 7854127668Sbms ac_cv_lib_socket_gethostbyname=yes 785517680Spstelse 7856127668Sbms echo "$as_me: failed program was:" >&5 7857127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 785817680Spst 7859127668Sbmsac_cv_lib_socket_gethostbyname=no 786017680Spstfi 7861127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7862127668SbmsLIBS=$ac_check_lib_save_LIBS 7863127668Sbmsfi 7864127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 7865127668Sbmsecho "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6 7866127668Sbmsif test $ac_cv_lib_socket_gethostbyname = yes; then 786798524Sfenner LIBS="-lsocket -lnsl $LIBS" 786817680Spstfi 786917680Spst 787098524Sfenner fi 7871127668Sbms echo "$as_me:$LINENO: checking for library containing socket" >&5 7872127668Sbmsecho $ECHO_N "checking for library containing socket... $ECHO_C" >&6 7873127668Sbmsif test "${ac_cv_search_socket+set}" = set; then 7874127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 787539297Sfennerelse 7876127668Sbms ac_func_search_save_LIBS=$LIBS 7877127668Sbmsac_cv_search_socket=no 7878127668Sbmscat >conftest.$ac_ext <<_ACEOF 7879127668Sbms#line $LINENO "configure" 7880127668Sbms/* confdefs.h. */ 7881127668Sbms_ACEOF 7882127668Sbmscat confdefs.h >>conftest.$ac_ext 7883127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7884127668Sbms/* end confdefs.h. */ 7885127668Sbms 788639297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7887127668Sbms#ifdef __cplusplus 7888127668Sbmsextern "C" 7889127668Sbms#endif 789039297Sfenner/* We use char because int might match the return type of a gcc2 7891127668Sbms builtin and then its argument prototype would still apply. */ 7892127668Sbmschar socket (); 7893127668Sbmsint 7894127668Sbmsmain () 7895127668Sbms{ 7896127668Sbmssocket (); 7897127668Sbms ; 7898127668Sbms return 0; 7899127668Sbms} 7900127668Sbms_ACEOF 7901127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7902127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7903127668Sbms (eval $ac_link) 2>&5 7904127668Sbms ac_status=$? 7905127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7906127668Sbms (exit $ac_status); } && 7907127668Sbms { ac_try='test -s conftest$ac_exeext' 7908127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7909127668Sbms (eval $ac_try) 2>&5 7910127668Sbms ac_status=$? 7911127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7912127668Sbms (exit $ac_status); }; }; then 791398524Sfenner ac_cv_search_socket="none required" 791439297Sfennerelse 7915127668Sbms echo "$as_me: failed program was:" >&5 7916127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7917127668Sbms 791839297Sfennerfi 7919127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7920127668Sbmsif test "$ac_cv_search_socket" = no; then 7921127668Sbms for ac_lib in socket; do 7922127668Sbms LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7923127668Sbms cat >conftest.$ac_ext <<_ACEOF 7924127668Sbms#line $LINENO "configure" 7925127668Sbms/* confdefs.h. */ 7926127668Sbms_ACEOF 7927127668Sbmscat confdefs.h >>conftest.$ac_ext 7928127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7929127668Sbms/* end confdefs.h. */ 7930127668Sbms 793139297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7932127668Sbms#ifdef __cplusplus 7933127668Sbmsextern "C" 7934127668Sbms#endif 793539297Sfenner/* We use char because int might match the return type of a gcc2 7936127668Sbms builtin and then its argument prototype would still apply. */ 7937127668Sbmschar socket (); 7938127668Sbmsint 7939127668Sbmsmain () 7940127668Sbms{ 7941127668Sbmssocket (); 7942127668Sbms ; 7943127668Sbms return 0; 7944127668Sbms} 7945127668Sbms_ACEOF 7946127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 7947127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7948127668Sbms (eval $ac_link) 2>&5 7949127668Sbms ac_status=$? 7950127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951127668Sbms (exit $ac_status); } && 7952127668Sbms { ac_try='test -s conftest$ac_exeext' 7953127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7954127668Sbms (eval $ac_try) 2>&5 7955127668Sbms ac_status=$? 7956127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957127668Sbms (exit $ac_status); }; }; then 7958127668Sbms ac_cv_search_socket="-l$ac_lib" 795998524Sfennerbreak 796017680Spstelse 7961127668Sbms echo "$as_me: failed program was:" >&5 7962127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 7963127668Sbms 796417680Spstfi 7965127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7966127668Sbms done 796717680Spstfi 7968127668SbmsLIBS=$ac_func_search_save_LIBS 7969127668Sbmsfi 7970127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 7971127668Sbmsecho "${ECHO_T}$ac_cv_search_socket" >&6 7972127668Sbmsif test "$ac_cv_search_socket" != no; then 7973127668Sbms test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 797417680Spst 797539297Sfennerelse 7976127668Sbms echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 7977127668Sbmsecho $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 7978127668Sbmsif test "${ac_cv_lib_socket_socket+set}" = set; then 7979127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 7980127668Sbmselse 7981127668Sbms ac_check_lib_save_LIBS=$LIBS 798239297SfennerLIBS="-lsocket -lnsl $LIBS" 7983127668Sbmscat >conftest.$ac_ext <<_ACEOF 7984127668Sbms#line $LINENO "configure" 7985127668Sbms/* confdefs.h. */ 7986127668Sbms_ACEOF 7987127668Sbmscat confdefs.h >>conftest.$ac_ext 7988127668Sbmscat >>conftest.$ac_ext <<_ACEOF 7989127668Sbms/* end confdefs.h. */ 7990127668Sbms 799139297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 7992127668Sbms#ifdef __cplusplus 7993127668Sbmsextern "C" 7994127668Sbms#endif 799539297Sfenner/* We use char because int might match the return type of a gcc2 7996127668Sbms builtin and then its argument prototype would still apply. */ 7997127668Sbmschar socket (); 7998127668Sbmsint 7999127668Sbmsmain () 8000127668Sbms{ 8001127668Sbmssocket (); 8002127668Sbms ; 8003127668Sbms return 0; 8004127668Sbms} 8005127668Sbms_ACEOF 8006127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8007127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8008127668Sbms (eval $ac_link) 2>&5 8009127668Sbms ac_status=$? 8010127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011127668Sbms (exit $ac_status); } && 8012127668Sbms { ac_try='test -s conftest$ac_exeext' 8013127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8014127668Sbms (eval $ac_try) 2>&5 8015127668Sbms ac_status=$? 8016127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8017127668Sbms (exit $ac_status); }; }; then 8018127668Sbms ac_cv_lib_socket_socket=yes 801939297Sfennerelse 8020127668Sbms echo "$as_me: failed program was:" >&5 8021127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 802217680Spst 8023127668Sbmsac_cv_lib_socket_socket=no 802439297Sfennerfi 8025127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8026127668SbmsLIBS=$ac_check_lib_save_LIBS 8027127668Sbmsfi 8028127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 8029127668Sbmsecho "${ECHO_T}$ac_cv_lib_socket_socket" >&6 8030127668Sbmsif test $ac_cv_lib_socket_socket = yes; then 803139297Sfenner LIBS="-lsocket -lnsl $LIBS" 803239297Sfennerfi 803317680Spst 803439297Sfennerfi 8035127668Sbms 803639297Sfenner # DLPI needs putmsg under HPUX so test for -lstr while we're at it 8037127668Sbms echo "$as_me:$LINENO: checking for library containing putmsg" >&5 8038127668Sbmsecho $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6 8039127668Sbmsif test "${ac_cv_search_putmsg+set}" = set; then 8040127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 804139297Sfennerelse 8042127668Sbms ac_func_search_save_LIBS=$LIBS 8043127668Sbmsac_cv_search_putmsg=no 8044127668Sbmscat >conftest.$ac_ext <<_ACEOF 8045127668Sbms#line $LINENO "configure" 8046127668Sbms/* confdefs.h. */ 8047127668Sbms_ACEOF 8048127668Sbmscat confdefs.h >>conftest.$ac_ext 8049127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8050127668Sbms/* end confdefs.h. */ 8051127668Sbms 805239297Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 8053127668Sbms#ifdef __cplusplus 8054127668Sbmsextern "C" 8055127668Sbms#endif 805639297Sfenner/* We use char because int might match the return type of a gcc2 8057127668Sbms builtin and then its argument prototype would still apply. */ 8058127668Sbmschar putmsg (); 8059127668Sbmsint 8060127668Sbmsmain () 8061127668Sbms{ 8062127668Sbmsputmsg (); 8063127668Sbms ; 8064127668Sbms return 0; 8065127668Sbms} 8066127668Sbms_ACEOF 8067127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8068127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8069127668Sbms (eval $ac_link) 2>&5 8070127668Sbms ac_status=$? 8071127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8072127668Sbms (exit $ac_status); } && 8073127668Sbms { ac_try='test -s conftest$ac_exeext' 8074127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8075127668Sbms (eval $ac_try) 2>&5 8076127668Sbms ac_status=$? 8077127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8078127668Sbms (exit $ac_status); }; }; then 807998524Sfenner ac_cv_search_putmsg="none required" 808039297Sfennerelse 8081127668Sbms echo "$as_me: failed program was:" >&5 8082127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8083127668Sbms 808439297Sfennerfi 8085127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8086127668Sbmsif test "$ac_cv_search_putmsg" = no; then 8087127668Sbms for ac_lib in str; do 8088127668Sbms LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8089127668Sbms cat >conftest.$ac_ext <<_ACEOF 8090127668Sbms#line $LINENO "configure" 8091127668Sbms/* confdefs.h. */ 8092127668Sbms_ACEOF 8093127668Sbmscat confdefs.h >>conftest.$ac_ext 8094127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8095127668Sbms/* end confdefs.h. */ 8096127668Sbms 809798524Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 8098127668Sbms#ifdef __cplusplus 8099127668Sbmsextern "C" 8100127668Sbms#endif 810198524Sfenner/* We use char because int might match the return type of a gcc2 8102127668Sbms builtin and then its argument prototype would still apply. */ 8103127668Sbmschar putmsg (); 8104127668Sbmsint 8105127668Sbmsmain () 8106127668Sbms{ 8107127668Sbmsputmsg (); 8108127668Sbms ; 8109127668Sbms return 0; 8110127668Sbms} 8111127668Sbms_ACEOF 8112127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8113127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8114127668Sbms (eval $ac_link) 2>&5 8115127668Sbms ac_status=$? 8116127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8117127668Sbms (exit $ac_status); } && 8118127668Sbms { ac_try='test -s conftest$ac_exeext' 8119127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8120127668Sbms (eval $ac_try) 2>&5 8121127668Sbms ac_status=$? 8122127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8123127668Sbms (exit $ac_status); }; }; then 8124127668Sbms ac_cv_search_putmsg="-l$ac_lib" 812598524Sfennerbreak 812639297Sfennerelse 8127127668Sbms echo "$as_me: failed program was:" >&5 8128127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8129127668Sbms 813039297Sfennerfi 8131127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8132127668Sbms done 813398524Sfennerfi 8134127668SbmsLIBS=$ac_func_search_save_LIBS 8135127668Sbmsfi 8136127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 8137127668Sbmsecho "${ECHO_T}$ac_cv_search_putmsg" >&6 8138127668Sbmsif test "$ac_cv_search_putmsg" != no; then 8139127668Sbms test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS" 814039297Sfenner 814198524Sfennerfi 814239297Sfenner 8143127668Sbms 8144127668Sbms 814539297Sfenner LBL_LIBS="$LIBS" 814639297Sfenner pfopen=/usr/examples/packetfilter/pfopen.c 814717680Spst if test -f $pfopen ; then 8148127668Sbms 8149127668Sbmsfor ac_func in pfopen 815017680Spstdo 8151127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8152127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 8153127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8154127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 8155127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 815617680Spstelse 8157127668Sbms cat >conftest.$ac_ext <<_ACEOF 8158127668Sbms#line $LINENO "configure" 8159127668Sbms/* confdefs.h. */ 8160127668Sbms_ACEOF 8161127668Sbmscat confdefs.h >>conftest.$ac_ext 8162127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8163127668Sbms/* end confdefs.h. */ 816417680Spst/* System header to define __stub macros and hopefully few prototypes, 8165127668Sbms which can conflict with char $ac_func (); below. 8166127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8167127668Sbms <limits.h> exists even on freestanding compilers. */ 8168127668Sbms#ifdef __STDC__ 8169127668Sbms# include <limits.h> 8170127668Sbms#else 8171127668Sbms# include <assert.h> 8172127668Sbms#endif 817317680Spst/* Override any gcc2 internal prototype to avoid an error. */ 8174127668Sbms#ifdef __cplusplus 8175127668Sbmsextern "C" 8176127668Sbms{ 8177127668Sbms#endif 817817680Spst/* We use char because int might match the return type of a gcc2 8179127668Sbms builtin and then its argument prototype would still apply. */ 8180127668Sbmschar $ac_func (); 818117680Spst/* The GNU C library defines this for functions which it implements 818217680Spst to always fail with ENOSYS. Some functions are actually named 818317680Spst something starting with __ and the normal name is an alias. */ 818417680Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 818517680Spstchoke me 818617680Spst#else 8187127668Sbmschar (*f) () = $ac_func; 818817680Spst#endif 8189127668Sbms#ifdef __cplusplus 8190127668Sbms} 8191127668Sbms#endif 819217680Spst 8193127668Sbmsint 8194127668Sbmsmain () 8195127668Sbms{ 8196127668Sbmsreturn f != $ac_func; 8197127668Sbms ; 8198127668Sbms return 0; 8199127668Sbms} 8200127668Sbms_ACEOF 8201127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8202127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8203127668Sbms (eval $ac_link) 2>&5 8204127668Sbms ac_status=$? 8205127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206127668Sbms (exit $ac_status); } && 8207127668Sbms { ac_try='test -s conftest$ac_exeext' 8208127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8209127668Sbms (eval $ac_try) 2>&5 8210127668Sbms ac_status=$? 8211127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8212127668Sbms (exit $ac_status); }; }; then 8213127668Sbms eval "$as_ac_var=yes" 821417680Spstelse 8215127668Sbms echo "$as_me: failed program was:" >&5 8216127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8217127668Sbms 8218127668Sbmseval "$as_ac_var=no" 821917680Spstfi 8220127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 822126180Sfennerfi 8222127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8223127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8224127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 8225127668Sbms cat >>confdefs.h <<_ACEOF 8226127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8227127668Sbms_ACEOF 822817680Spst 822917680Spstfi 823017680Spstdone 823117680Spst 823217680Spst if test $ac_cv_func_pfopen = "no" ; then 8233127668Sbms echo "$as_me:$LINENO: result: Using $pfopen" >&5 8234127668Sbmsecho "${ECHO_T}Using $pfopen" >&6 823517680Spst LIBS="$LIBS $pfopen" 823617680Spst fi 823717680Spst fi 8238127668Sbms echo "$as_me:$LINENO: checking for local pcap library" >&5 8239127668Sbmsecho $ECHO_N "checking for local pcap library... $ECHO_C" >&6 824017680Spst libpcap=FAIL 824126180Sfenner lastdir=FAIL 8242127668Sbms places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 824375115Sfenner egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 8244127668Sbms for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 824526180Sfenner basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 824626180Sfenner if test $lastdir = $basedir ; then 824726180Sfenner continue; 824826180Sfenner fi 824926180Sfenner lastdir=$dir 825056893Sfenner if test -r $dir/libpcap.a ; then 825117680Spst libpcap=$dir/libpcap.a 825217680Spst d=$dir 825317680Spst fi 825417680Spst done 825517680Spst if test $libpcap = FAIL ; then 8256127668Sbms echo "$as_me:$LINENO: result: not found" >&5 8257127668Sbmsecho "${ECHO_T}not found" >&6 8258127668Sbms echo "$as_me:$LINENO: checking for main in -lpcap" >&5 8259127668Sbmsecho $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6 8260127668Sbmsif test "${ac_cv_lib_pcap_main+set}" = set; then 8261127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 826217680Spstelse 8263127668Sbms ac_check_lib_save_LIBS=$LIBS 826417680SpstLIBS="-lpcap $LIBS" 8265127668Sbmscat >conftest.$ac_ext <<_ACEOF 8266127668Sbms#line $LINENO "configure" 8267127668Sbms/* confdefs.h. */ 8268127668Sbms_ACEOF 8269127668Sbmscat confdefs.h >>conftest.$ac_ext 8270127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8271127668Sbms/* end confdefs.h. */ 827217680Spst 8273127668Sbms 8274127668Sbmsint 8275127668Sbmsmain () 8276127668Sbms{ 8277127668Sbmsmain (); 8278127668Sbms ; 8279127668Sbms return 0; 8280127668Sbms} 8281127668Sbms_ACEOF 8282127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8283127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8284127668Sbms (eval $ac_link) 2>&5 8285127668Sbms ac_status=$? 8286127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8287127668Sbms (exit $ac_status); } && 8288127668Sbms { ac_try='test -s conftest$ac_exeext' 8289127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8290127668Sbms (eval $ac_try) 2>&5 8291127668Sbms ac_status=$? 8292127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293127668Sbms (exit $ac_status); }; }; then 8294127668Sbms ac_cv_lib_pcap_main=yes 829517680Spstelse 8296127668Sbms echo "$as_me: failed program was:" >&5 8297127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 829817680Spst 8299127668Sbmsac_cv_lib_pcap_main=no 830017680Spstfi 8301127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8302127668SbmsLIBS=$ac_check_lib_save_LIBS 8303127668Sbmsfi 8304127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5 8305127668Sbmsecho "${ECHO_T}$ac_cv_lib_pcap_main" >&6 8306127668Sbmsif test $ac_cv_lib_pcap_main = yes; then 830717680Spst libpcap="-lpcap" 830817680Spstfi 830917680Spst 831017680Spst if test $libpcap = FAIL ; then 8311127668Sbms { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 8312127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;} 8313127668Sbms { (exit 1); exit 1; }; } 831417680Spst fi 8315127668Sbms echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5 8316127668Sbmsecho $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6 8317127668Sbms if test \( ! -r /usr/local/include/pcap.h \) -a \ 8318127668Sbms \( ! -r /usr/include/pcap.h \); then 8319127668Sbms if test -r /usr/local/include/pcap/pcap.h; then 8320127668Sbms d="/usr/local/include/pcap" 8321127668Sbms elif test -r /usr/include/pcap/pcap.h; then 8322127668Sbms d="/usr/include/pcap" 8323127668Sbms fi 8324127668Sbms fi 8325127668Sbms if test -z "$d" ; then 8326127668Sbms echo "$as_me:$LINENO: result: not found" >&5 8327127668Sbmsecho "${ECHO_T}not found" >&6 8328127668Sbms else 8329127668Sbms V_INCLS="-I$d $V_INCLS" 8330127668Sbms echo "$as_me:$LINENO: result: found -- -I$d added" >&5 8331127668Sbmsecho "${ECHO_T}found -- -I$d added" >&6 8332127668Sbms fi 833317680Spst else 833417680Spst V_PCAPDEP=$libpcap 833598524Sfenner places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 833698524Sfenner egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 833756893Sfenner if test -r $d/pcap.h; then 833875115Sfenner V_INCLS="-I$d $V_INCLS" 833998524Sfenner elif test -r $places/pcap.h; then 834098524Sfenner V_INCLS="-I$places $V_INCLS" 834156893Sfenner else 8342127668Sbms { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5 8343127668Sbmsecho "$as_me: error: cannot find pcap.h" >&2;} 8344127668Sbms { (exit see INSTALL); exit see INSTALL; }; } 834556893Sfenner fi 8346127668Sbms echo "$as_me:$LINENO: result: $libpcap" >&5 8347127668Sbmsecho "${ECHO_T}$libpcap" >&6 834817680Spst fi 834917680Spst LIBS="$libpcap $LIBS" 835098524Sfenner case "$host_os" in 835117680Spst 835239297Sfenner aix*) 835339297Sfenner pseexe="/lib/pse.exp" 8354127668Sbms echo "$as_me:$LINENO: checking for $pseexe" >&5 8355127668Sbmsecho $ECHO_N "checking for $pseexe... $ECHO_C" >&6 835639297Sfenner if test -f $pseexe ; then 8357127668Sbms echo "$as_me:$LINENO: result: yes" >&5 8358127668Sbmsecho "${ECHO_T}yes" >&6 835939297Sfenner LIBS="$LIBS -I:$pseexe" 836039297Sfenner fi 8361127668Sbms # 8362127668Sbms # We need "-lodm" and "-lcfg", as libpcap requires them on 8363127668Sbms # AIX, and we just build a static libpcap.a and thus can't 8364127668Sbms # arrange that when you link with libpcap you automatically 8365127668Sbms # link with those libraries. 8366127668Sbms # 8367127668Sbms LIBS="$LIBS -lodm -lcfg" 836839297Sfenner ;; 836939297Sfenner esac 837039297Sfenner 8371127668Sbms echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5 8372127668Sbmsecho $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6 8373127668Sbmsif test "${ac_cv_func_pcap_list_datalinks+set}" = set; then 8374127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 8375127668Sbmselse 8376127668Sbms cat >conftest.$ac_ext <<_ACEOF 8377127668Sbms#line $LINENO "configure" 8378127668Sbms/* confdefs.h. */ 8379127668Sbms_ACEOF 8380127668Sbmscat confdefs.h >>conftest.$ac_ext 8381127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8382127668Sbms/* end confdefs.h. */ 8383127668Sbms/* System header to define __stub macros and hopefully few prototypes, 8384127668Sbms which can conflict with char pcap_list_datalinks (); below. 8385127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8386127668Sbms <limits.h> exists even on freestanding compilers. */ 8387127668Sbms#ifdef __STDC__ 8388127668Sbms# include <limits.h> 8389127668Sbms#else 8390127668Sbms# include <assert.h> 8391127668Sbms#endif 8392127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 8393127668Sbms#ifdef __cplusplus 8394127668Sbmsextern "C" 8395127668Sbms{ 8396127668Sbms#endif 8397127668Sbms/* We use char because int might match the return type of a gcc2 8398127668Sbms builtin and then its argument prototype would still apply. */ 8399127668Sbmschar pcap_list_datalinks (); 8400127668Sbms/* The GNU C library defines this for functions which it implements 8401127668Sbms to always fail with ENOSYS. Some functions are actually named 8402127668Sbms something starting with __ and the normal name is an alias. */ 8403127668Sbms#if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks) 8404127668Sbmschoke me 8405127668Sbms#else 8406127668Sbmschar (*f) () = pcap_list_datalinks; 8407127668Sbms#endif 8408127668Sbms#ifdef __cplusplus 8409127668Sbms} 8410127668Sbms#endif 8411127668Sbms 8412127668Sbmsint 8413127668Sbmsmain () 8414127668Sbms{ 8415127668Sbmsreturn f != pcap_list_datalinks; 8416127668Sbms ; 8417127668Sbms return 0; 8418127668Sbms} 8419127668Sbms_ACEOF 8420127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8421127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8422127668Sbms (eval $ac_link) 2>&5 8423127668Sbms ac_status=$? 8424127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8425127668Sbms (exit $ac_status); } && 8426127668Sbms { ac_try='test -s conftest$ac_exeext' 8427127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8428127668Sbms (eval $ac_try) 2>&5 8429127668Sbms ac_status=$? 8430127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8431127668Sbms (exit $ac_status); }; }; then 8432127668Sbms ac_cv_func_pcap_list_datalinks=yes 8433127668Sbmselse 8434127668Sbms echo "$as_me: failed program was:" >&5 8435127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8436127668Sbms 8437127668Sbmsac_cv_func_pcap_list_datalinks=no 8438127668Sbmsfi 8439127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8440127668Sbmsfi 8441127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5 8442127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6 8443127668Sbmsif test $ac_cv_func_pcap_list_datalinks = yes; then 8444127668Sbms cat >>confdefs.h <<\_ACEOF 8445127668Sbms#define HAVE_PCAP_LIST_DATALINKS 1 8446127668Sbms_ACEOF 8447127668Sbms 8448127668Sbmselse 8449127668Sbms LIBOBJS="$LIBOBJS datalinks.$ac_objext" 8450127668Sbmsfi 8451127668Sbms 8452127668Sbms echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5 8453127668Sbmsecho $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6 8454127668Sbmsif test "${ac_cv_func_pcap_set_datalink+set}" = set; then 8455127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 8456127668Sbmselse 8457127668Sbms cat >conftest.$ac_ext <<_ACEOF 8458127668Sbms#line $LINENO "configure" 8459127668Sbms/* confdefs.h. */ 8460127668Sbms_ACEOF 8461127668Sbmscat confdefs.h >>conftest.$ac_ext 8462127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8463127668Sbms/* end confdefs.h. */ 8464127668Sbms/* System header to define __stub macros and hopefully few prototypes, 8465127668Sbms which can conflict with char pcap_set_datalink (); below. 8466127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8467127668Sbms <limits.h> exists even on freestanding compilers. */ 8468127668Sbms#ifdef __STDC__ 8469127668Sbms# include <limits.h> 8470127668Sbms#else 8471127668Sbms# include <assert.h> 8472127668Sbms#endif 8473127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 8474127668Sbms#ifdef __cplusplus 8475127668Sbmsextern "C" 8476127668Sbms{ 8477127668Sbms#endif 8478127668Sbms/* We use char because int might match the return type of a gcc2 8479127668Sbms builtin and then its argument prototype would still apply. */ 8480127668Sbmschar pcap_set_datalink (); 8481127668Sbms/* The GNU C library defines this for functions which it implements 8482127668Sbms to always fail with ENOSYS. Some functions are actually named 8483127668Sbms something starting with __ and the normal name is an alias. */ 8484127668Sbms#if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink) 8485127668Sbmschoke me 8486127668Sbms#else 8487127668Sbmschar (*f) () = pcap_set_datalink; 8488127668Sbms#endif 8489127668Sbms#ifdef __cplusplus 8490127668Sbms} 8491127668Sbms#endif 8492127668Sbms 8493127668Sbmsint 8494127668Sbmsmain () 8495127668Sbms{ 8496127668Sbmsreturn f != pcap_set_datalink; 8497127668Sbms ; 8498127668Sbms return 0; 8499127668Sbms} 8500127668Sbms_ACEOF 8501127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8502127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8503127668Sbms (eval $ac_link) 2>&5 8504127668Sbms ac_status=$? 8505127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506127668Sbms (exit $ac_status); } && 8507127668Sbms { ac_try='test -s conftest$ac_exeext' 8508127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8509127668Sbms (eval $ac_try) 2>&5 8510127668Sbms ac_status=$? 8511127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8512127668Sbms (exit $ac_status); }; }; then 8513127668Sbms ac_cv_func_pcap_set_datalink=yes 8514127668Sbmselse 8515127668Sbms echo "$as_me: failed program was:" >&5 8516127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8517127668Sbms 8518127668Sbmsac_cv_func_pcap_set_datalink=no 8519127668Sbmsfi 8520127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8521127668Sbmsfi 8522127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5 8523127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6 8524127668Sbmsif test $ac_cv_func_pcap_set_datalink = yes; then 8525127668Sbms cat >>confdefs.h <<\_ACEOF 8526127668Sbms#define HAVE_PCAP_SET_DATALINK 1 8527127668Sbms_ACEOF 8528127668Sbms 8529127668Sbmsfi 8530127668Sbms 8531127668Sbms echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5 8532127668Sbmsecho $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6 8533127668Sbmsif test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then 8534127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 8535127668Sbmselse 8536127668Sbms cat >conftest.$ac_ext <<_ACEOF 8537127668Sbms#line $LINENO "configure" 8538127668Sbms/* confdefs.h. */ 8539127668Sbms_ACEOF 8540127668Sbmscat confdefs.h >>conftest.$ac_ext 8541127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8542127668Sbms/* end confdefs.h. */ 8543127668Sbms/* System header to define __stub macros and hopefully few prototypes, 8544127668Sbms which can conflict with char pcap_datalink_name_to_val (); below. 8545127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8546127668Sbms <limits.h> exists even on freestanding compilers. */ 8547127668Sbms#ifdef __STDC__ 8548127668Sbms# include <limits.h> 8549127668Sbms#else 8550127668Sbms# include <assert.h> 8551127668Sbms#endif 8552127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 8553127668Sbms#ifdef __cplusplus 8554127668Sbmsextern "C" 8555127668Sbms{ 8556127668Sbms#endif 8557127668Sbms/* We use char because int might match the return type of a gcc2 8558127668Sbms builtin and then its argument prototype would still apply. */ 8559127668Sbmschar pcap_datalink_name_to_val (); 8560127668Sbms/* The GNU C library defines this for functions which it implements 8561127668Sbms to always fail with ENOSYS. Some functions are actually named 8562127668Sbms something starting with __ and the normal name is an alias. */ 8563127668Sbms#if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val) 8564127668Sbmschoke me 8565127668Sbms#else 8566127668Sbmschar (*f) () = pcap_datalink_name_to_val; 8567127668Sbms#endif 8568127668Sbms#ifdef __cplusplus 8569127668Sbms} 8570127668Sbms#endif 8571127668Sbms 8572127668Sbmsint 8573127668Sbmsmain () 8574127668Sbms{ 8575127668Sbmsreturn f != pcap_datalink_name_to_val; 8576127668Sbms ; 8577127668Sbms return 0; 8578127668Sbms} 8579127668Sbms_ACEOF 8580127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8581127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8582127668Sbms (eval $ac_link) 2>&5 8583127668Sbms ac_status=$? 8584127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585127668Sbms (exit $ac_status); } && 8586127668Sbms { ac_try='test -s conftest$ac_exeext' 8587127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8588127668Sbms (eval $ac_try) 2>&5 8589127668Sbms ac_status=$? 8590127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591127668Sbms (exit $ac_status); }; }; then 8592127668Sbms ac_cv_func_pcap_datalink_name_to_val=yes 8593127668Sbmselse 8594127668Sbms echo "$as_me: failed program was:" >&5 8595127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8596127668Sbms 8597127668Sbmsac_cv_func_pcap_datalink_name_to_val=no 8598127668Sbmsfi 8599127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8600127668Sbmsfi 8601127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5 8602127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6 8603127668Sbmsif test $ac_cv_func_pcap_datalink_name_to_val = yes; then 8604127668Sbms 8605127668Sbms cat >>confdefs.h <<\_ACEOF 8606127668Sbms#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 8607127668Sbms_ACEOF 8608127668Sbms 8609127668Sbms echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5 8610127668Sbmsecho $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6 8611127668Sbmsif test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then 8612127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 8613127668Sbmselse 8614127668Sbms cat >conftest.$ac_ext <<_ACEOF 8615127668Sbms#line $LINENO "configure" 8616127668Sbms/* confdefs.h. */ 8617127668Sbms_ACEOF 8618127668Sbmscat confdefs.h >>conftest.$ac_ext 8619127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8620127668Sbms/* end confdefs.h. */ 8621127668Sbms/* System header to define __stub macros and hopefully few prototypes, 8622127668Sbms which can conflict with char pcap_datalink_val_to_description (); below. 8623127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8624127668Sbms <limits.h> exists even on freestanding compilers. */ 8625127668Sbms#ifdef __STDC__ 8626127668Sbms# include <limits.h> 8627127668Sbms#else 8628127668Sbms# include <assert.h> 8629127668Sbms#endif 8630127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 8631127668Sbms#ifdef __cplusplus 8632127668Sbmsextern "C" 8633127668Sbms{ 8634127668Sbms#endif 8635127668Sbms/* We use char because int might match the return type of a gcc2 8636127668Sbms builtin and then its argument prototype would still apply. */ 8637127668Sbmschar pcap_datalink_val_to_description (); 8638127668Sbms/* The GNU C library defines this for functions which it implements 8639127668Sbms to always fail with ENOSYS. Some functions are actually named 8640127668Sbms something starting with __ and the normal name is an alias. */ 8641127668Sbms#if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description) 8642127668Sbmschoke me 8643127668Sbms#else 8644127668Sbmschar (*f) () = pcap_datalink_val_to_description; 8645127668Sbms#endif 8646127668Sbms#ifdef __cplusplus 8647127668Sbms} 8648127668Sbms#endif 8649127668Sbms 8650127668Sbmsint 8651127668Sbmsmain () 8652127668Sbms{ 8653127668Sbmsreturn f != pcap_datalink_val_to_description; 8654127668Sbms ; 8655127668Sbms return 0; 8656127668Sbms} 8657127668Sbms_ACEOF 8658127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8659127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8660127668Sbms (eval $ac_link) 2>&5 8661127668Sbms ac_status=$? 8662127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663127668Sbms (exit $ac_status); } && 8664127668Sbms { ac_try='test -s conftest$ac_exeext' 8665127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8666127668Sbms (eval $ac_try) 2>&5 8667127668Sbms ac_status=$? 8668127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8669127668Sbms (exit $ac_status); }; }; then 8670127668Sbms ac_cv_func_pcap_datalink_val_to_description=yes 8671127668Sbmselse 8672127668Sbms echo "$as_me: failed program was:" >&5 8673127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8674127668Sbms 8675127668Sbmsac_cv_func_pcap_datalink_val_to_description=no 8676127668Sbmsfi 8677127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8678127668Sbmsfi 8679127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5 8680127668Sbmsecho "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6 8681127668Sbmsif test $ac_cv_func_pcap_datalink_val_to_description = yes; then 8682127668Sbms cat >>confdefs.h <<\_ACEOF 8683127668Sbms#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1 8684127668Sbms_ACEOF 8685127668Sbms 8686127668Sbmselse 8687127668Sbms LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8688127668Sbmsfi 8689127668Sbms 8690127668Sbms 8691127668Sbmselse 8692127668Sbms LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8693127668Sbmsfi 8694127668Sbms 8695127668Sbms 8696127668Sbms 8697127668Sbmsfor ac_func in pcap_breakloop 869875115Sfennerdo 8699127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8700127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 8701127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8702127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 8703127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 870475115Sfennerelse 8705127668Sbms cat >conftest.$ac_ext <<_ACEOF 8706127668Sbms#line $LINENO "configure" 8707127668Sbms/* confdefs.h. */ 8708127668Sbms_ACEOF 8709127668Sbmscat confdefs.h >>conftest.$ac_ext 8710127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8711127668Sbms/* end confdefs.h. */ 871275115Sfenner/* System header to define __stub macros and hopefully few prototypes, 8713127668Sbms which can conflict with char $ac_func (); below. 8714127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8715127668Sbms <limits.h> exists even on freestanding compilers. */ 8716127668Sbms#ifdef __STDC__ 8717127668Sbms# include <limits.h> 8718127668Sbms#else 8719127668Sbms# include <assert.h> 8720127668Sbms#endif 872175115Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 8722127668Sbms#ifdef __cplusplus 8723127668Sbmsextern "C" 8724127668Sbms{ 8725127668Sbms#endif 872675115Sfenner/* We use char because int might match the return type of a gcc2 8727127668Sbms builtin and then its argument prototype would still apply. */ 8728127668Sbmschar $ac_func (); 8729127668Sbms/* The GNU C library defines this for functions which it implements 8730127668Sbms to always fail with ENOSYS. Some functions are actually named 8731127668Sbms something starting with __ and the normal name is an alias. */ 8732127668Sbms#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8733127668Sbmschoke me 8734127668Sbms#else 8735127668Sbmschar (*f) () = $ac_func; 8736127668Sbms#endif 8737127668Sbms#ifdef __cplusplus 8738127668Sbms} 8739127668Sbms#endif 874075115Sfenner 8741127668Sbmsint 8742127668Sbmsmain () 8743127668Sbms{ 8744127668Sbmsreturn f != $ac_func; 8745127668Sbms ; 8746127668Sbms return 0; 8747127668Sbms} 8748127668Sbms_ACEOF 8749127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8750127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8751127668Sbms (eval $ac_link) 2>&5 8752127668Sbms ac_status=$? 8753127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754127668Sbms (exit $ac_status); } && 8755127668Sbms { ac_try='test -s conftest$ac_exeext' 8756127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8757127668Sbms (eval $ac_try) 2>&5 8758127668Sbms ac_status=$? 8759127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760127668Sbms (exit $ac_status); }; }; then 8761127668Sbms eval "$as_ac_var=yes" 8762127668Sbmselse 8763127668Sbms echo "$as_me: failed program was:" >&5 8764127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 876575115Sfenner 8766127668Sbmseval "$as_ac_var=no" 8767127668Sbmsfi 8768127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8769127668Sbmsfi 8770127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8771127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8772127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 8773127668Sbms cat >>confdefs.h <<_ACEOF 8774127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8775127668Sbms_ACEOF 8776127668Sbms 8777127668Sbmsfi 8778127668Sbmsdone 8779127668Sbms 8780127668Sbms 8781127668Sbms 8782127668Sbms# 8783127668Sbms# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 8784127668Sbms# libraries (e.g., "-lsocket -lnsl" on Solaris). 8785127668Sbms# 8786127668Sbms# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 8787127668Sbms# use AC_CHECK_FUNC which doesn't let us specify the right #includes 8788127668Sbms# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 8789127668Sbms# resolver, and the way it defines inet_{ntop,pton} is rather strange; 8790127668Sbms# it does not ship with a libc symbol "inet_ntop()", it ships with 8791127668Sbms# "_inet_ntop()", and has a #define macro in one of the system headers 8792127668Sbms# to rename it. 8793127668Sbms# 8794127668Sbmsecho "$as_me:$LINENO: checking for inet_ntop" >&5 8795127668Sbmsecho $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 8796127668Sbmscat >conftest.$ac_ext <<_ACEOF 8797127668Sbms#line $LINENO "configure" 8798127668Sbms/* confdefs.h. */ 8799127668Sbms_ACEOF 8800127668Sbmscat confdefs.h >>conftest.$ac_ext 8801127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8802127668Sbms/* end confdefs.h. */ 8803127668Sbms#include <sys/types.h> 8804127668Sbms#include <sys/socket.h> 8805127668Sbms#include <netinet/in.h> 8806127668Sbms#include <arpa/inet.h> 8807127668Sbmsint 8808127668Sbmsmain () 8809127668Sbms{ 8810127668Sbmschar src[4], dst[128]; 8811127668Sbmsinet_ntop(AF_INET, src, dst, sizeof(dst)); 8812127668Sbms ; 8813127668Sbms return 0; 8814127668Sbms} 8815127668Sbms_ACEOF 8816127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8817127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8818127668Sbms (eval $ac_link) 2>&5 8819127668Sbms ac_status=$? 8820127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8821127668Sbms (exit $ac_status); } && 8822127668Sbms { ac_try='test -s conftest$ac_exeext' 8823127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8824127668Sbms (eval $ac_try) 2>&5 8825127668Sbms ac_status=$? 8826127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827127668Sbms (exit $ac_status); }; }; then 8828127668Sbms echo "$as_me:$LINENO: result: yes" >&5 8829127668Sbmsecho "${ECHO_T}yes" >&6 8830127668Sbmselse 8831127668Sbms echo "$as_me: failed program was:" >&5 8832127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8833127668Sbms 8834127668Sbmsecho "$as_me:$LINENO: result: no" >&5 8835127668Sbmsecho "${ECHO_T}no" >&6 8836146773Ssam LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 8837127668Sbmsfi 8838127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8839127668Sbmsecho "$as_me:$LINENO: checking for inet_pton" >&5 8840127668Sbmsecho $ECHO_N "checking for inet_pton... $ECHO_C" >&6 8841127668Sbmscat >conftest.$ac_ext <<_ACEOF 8842127668Sbms#line $LINENO "configure" 8843127668Sbms/* confdefs.h. */ 8844127668Sbms_ACEOF 8845127668Sbmscat confdefs.h >>conftest.$ac_ext 8846127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8847127668Sbms/* end confdefs.h. */ 8848127668Sbms#include <sys/types.h> 8849127668Sbms#include <sys/socket.h> 8850127668Sbms#include <netinet/in.h> 8851127668Sbms#include <arpa/inet.h> 8852127668Sbmsint 8853127668Sbmsmain () 8854127668Sbms{ 8855127668Sbmschar src[128], dst[4]; 8856127668Sbmsinet_pton(AF_INET, src, dst); 8857127668Sbms ; 8858127668Sbms return 0; 8859127668Sbms} 8860127668Sbms_ACEOF 8861127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8862127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8863127668Sbms (eval $ac_link) 2>&5 8864127668Sbms ac_status=$? 8865127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8866127668Sbms (exit $ac_status); } && 8867127668Sbms { ac_try='test -s conftest$ac_exeext' 8868127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8869127668Sbms (eval $ac_try) 2>&5 8870127668Sbms ac_status=$? 8871127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872127668Sbms (exit $ac_status); }; }; then 8873127668Sbms echo "$as_me:$LINENO: result: yes" >&5 8874127668Sbmsecho "${ECHO_T}yes" >&6 8875127668Sbmselse 8876127668Sbms echo "$as_me: failed program was:" >&5 8877127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8878127668Sbms 8879127668Sbmsecho "$as_me:$LINENO: result: no" >&5 8880127668Sbmsecho "${ECHO_T}no" >&6 8881146773Ssam LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 8882127668Sbmsfi 8883127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8884127668Sbmsecho "$as_me:$LINENO: checking for inet_aton" >&5 8885127668Sbmsecho $ECHO_N "checking for inet_aton... $ECHO_C" >&6 8886127668Sbmscat >conftest.$ac_ext <<_ACEOF 8887127668Sbms#line $LINENO "configure" 8888127668Sbms/* confdefs.h. */ 8889127668Sbms_ACEOF 8890127668Sbmscat confdefs.h >>conftest.$ac_ext 8891127668Sbmscat >>conftest.$ac_ext <<_ACEOF 8892127668Sbms/* end confdefs.h. */ 8893127668Sbms#include <sys/types.h> 8894127668Sbms#include <netinet/in.h> 8895127668Sbms#include <arpa/inet.h> 8896127668Sbmsint 8897127668Sbmsmain () 8898127668Sbms{ 8899127668Sbmschar src[128]; 8900127668Sbmsstruct in_addr dst; 8901127668Sbmsinet_aton(src, &dst); 8902127668Sbms ; 8903127668Sbms return 0; 8904127668Sbms} 8905127668Sbms_ACEOF 8906127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 8907127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8908127668Sbms (eval $ac_link) 2>&5 8909127668Sbms ac_status=$? 8910127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8911127668Sbms (exit $ac_status); } && 8912127668Sbms { ac_try='test -s conftest$ac_exeext' 8913127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8914127668Sbms (eval $ac_try) 2>&5 8915127668Sbms ac_status=$? 8916127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 8917127668Sbms (exit $ac_status); }; }; then 8918127668Sbms echo "$as_me:$LINENO: result: yes" >&5 8919127668Sbmsecho "${ECHO_T}yes" >&6 8920127668Sbmselse 8921127668Sbms echo "$as_me: failed program was:" >&5 8922127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 8923127668Sbms 8924127668Sbmsecho "$as_me:$LINENO: result: no" >&5 8925127668Sbmsecho "${ECHO_T}no" >&6 8926146773Ssam LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 8927127668Sbmsfi 8928127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8929127668Sbms 8930146773Ssam# 8931146773Ssam# Check for these after AC_LBL_LIBPCAP, for the same reason. 8932146773Ssam# 8933146773Ssam# You are in a twisty little maze of UN*Xes, all different. 8934146773Ssam# Some might not have ether_ntohost(). 8935146773Ssam# Some might have it, but not declare it in any header file. 8936146773Ssam# Some might have it, but declare it in <netinet/if_ether.h>. 8937146773Ssam# Some might have it, but declare it in <netinet/ether.h> 8938146773Ssam# (And some might have it but document it as something declared in 8939146773Ssam# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 8940146773Ssam# 8941146773Ssam# Before you is a C compiler. 8942146773Ssam# 8943127668Sbms 8944146773Ssamfor ac_func in ether_ntohost 8945146773Ssamdo 8946146773Ssamas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8947146773Ssamecho "$as_me:$LINENO: checking for $ac_func" >&5 8948146773Ssamecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8949146773Ssamif eval "test \"\${$as_ac_var+set}\" = set"; then 8950146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 8951146773Ssamelse 8952146773Ssam cat >conftest.$ac_ext <<_ACEOF 8953146773Ssam#line $LINENO "configure" 8954146773Ssam/* confdefs.h. */ 8955146773Ssam_ACEOF 8956146773Ssamcat confdefs.h >>conftest.$ac_ext 8957146773Ssamcat >>conftest.$ac_ext <<_ACEOF 8958146773Ssam/* end confdefs.h. */ 8959146773Ssam/* System header to define __stub macros and hopefully few prototypes, 8960146773Ssam which can conflict with char $ac_func (); below. 8961146773Ssam Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8962146773Ssam <limits.h> exists even on freestanding compilers. */ 8963146773Ssam#ifdef __STDC__ 8964146773Ssam# include <limits.h> 8965146773Ssam#else 8966146773Ssam# include <assert.h> 8967146773Ssam#endif 8968146773Ssam/* Override any gcc2 internal prototype to avoid an error. */ 8969146773Ssam#ifdef __cplusplus 8970146773Ssamextern "C" 8971146773Ssam{ 8972146773Ssam#endif 8973146773Ssam/* We use char because int might match the return type of a gcc2 8974146773Ssam builtin and then its argument prototype would still apply. */ 8975146773Ssamchar $ac_func (); 8976146773Ssam/* The GNU C library defines this for functions which it implements 8977146773Ssam to always fail with ENOSYS. Some functions are actually named 8978146773Ssam something starting with __ and the normal name is an alias. */ 8979146773Ssam#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8980146773Ssamchoke me 8981146773Ssam#else 8982146773Ssamchar (*f) () = $ac_func; 8983146773Ssam#endif 8984146773Ssam#ifdef __cplusplus 8985146773Ssam} 8986146773Ssam#endif 8987146773Ssam 8988146773Ssamint 8989146773Ssammain () 8990146773Ssam{ 8991146773Ssamreturn f != $ac_func; 8992146773Ssam ; 8993146773Ssam return 0; 8994146773Ssam} 8995146773Ssam_ACEOF 8996146773Ssamrm -f conftest.$ac_objext conftest$ac_exeext 8997146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8998146773Ssam (eval $ac_link) 2>&5 8999146773Ssam ac_status=$? 9000146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001146773Ssam (exit $ac_status); } && 9002146773Ssam { ac_try='test -s conftest$ac_exeext' 9003146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9004146773Ssam (eval $ac_try) 2>&5 9005146773Ssam ac_status=$? 9006146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007146773Ssam (exit $ac_status); }; }; then 9008146773Ssam eval "$as_ac_var=yes" 9009146773Ssamelse 9010146773Ssam echo "$as_me: failed program was:" >&5 9011146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 9012146773Ssam 9013146773Ssameval "$as_ac_var=no" 9014146773Ssamfi 9015146773Ssamrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9016146773Ssamfi 9017146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9018146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9019146773Ssamif test `eval echo '${'$as_ac_var'}'` = yes; then 9020146773Ssam cat >>confdefs.h <<_ACEOF 9021146773Ssam#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9022146773Ssam_ACEOF 9023146773Ssam 9024146773Ssam echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5 9025146773Ssamecho $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6 9026146773Ssamif test "${ac_cv_buggy_ether_ntohost+set}" = set; then 9027146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 9028146773Ssamelse 9029146773Ssam 9030146773Ssam if test "$cross_compiling" = yes; then 9031146773Ssam ac_cv_buggy_ether_ntohost="not while cross-compiling" 9032146773Ssamelse 9033146773Ssam cat >conftest.$ac_ext <<_ACEOF 9034146773Ssam#line $LINENO "configure" 9035146773Ssam/* confdefs.h. */ 9036146773Ssam_ACEOF 9037146773Ssamcat confdefs.h >>conftest.$ac_ext 9038146773Ssamcat >>conftest.$ac_ext <<_ACEOF 9039146773Ssam/* end confdefs.h. */ 9040146773Ssam 9041146773Ssam #include <netdb.h> 9042146773Ssam #include <sys/types.h> 9043146773Ssam #include <sys/param.h> 9044146773Ssam #include <sys/socket.h> 9045146773Ssam 9046146773Ssam int 9047146773Ssam main(int argc, char **argv) 9048146773Ssam { 9049146773Ssam u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 9050146773Ssam char name[MAXHOSTNAMELEN]; 9051146773Ssam 9052146773Ssam ether_ntohost(name, (struct ether_addr *)ea); 9053146773Ssam exit(0); 9054146773Ssam } 9055146773Ssam 9056146773Ssam_ACEOF 9057146773Ssamrm -f conftest$ac_exeext 9058146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9059146773Ssam (eval $ac_link) 2>&5 9060146773Ssam ac_status=$? 9061146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062146773Ssam (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9063146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9064146773Ssam (eval $ac_try) 2>&5 9065146773Ssam ac_status=$? 9066146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9067146773Ssam (exit $ac_status); }; }; then 9068146773Ssam ac_cv_buggy_ether_ntohost=no 9069146773Ssamelse 9070146773Ssam echo "$as_me: program exited with status $ac_status" >&5 9071146773Ssamecho "$as_me: failed program was:" >&5 9072146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 9073146773Ssam 9074146773Ssam( exit $ac_status ) 9075146773Ssamac_cv_buggy_ether_ntohost=yes 9076146773Ssamfi 9077146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9078146773Ssamfi 9079146773Ssamfi 9080146773Ssamecho "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5 9081146773Ssamecho "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6 9082146773Ssam if test "$ac_cv_buggy_ether_ntohost" = "no"; then 9083146773Ssam cat >>confdefs.h <<\_ACEOF 9084146773Ssam#define USE_ETHER_NTOHOST 1 9085146773Ssam_ACEOF 9086146773Ssam 9087146773Ssam fi 9088146773Ssam 9089146773Ssamfi 9090146773Ssamdone 9091146773Ssam 9092146773Ssamif test "$ac_cv_func_ether_ntohost" = yes -a \ 9093146773Ssam "$ac_cv_buggy_ether_ntohost" = "no"; then 9094146773Ssam # 9095146773Ssam # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 9096146773Ssam # 9097146773Ssam if test "$ac_cv_header_netinet_if_ether_h" = yes; then 9098146773Ssam # 9099146773Ssam # Yes. Does it declare ether_ntohost()? 9100146773Ssam # 9101146773Ssam echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 9102146773Ssamecho $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6 9103146773Ssamif test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 9104146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 9105146773Ssamelse 9106146773Ssam cat >conftest.$ac_ext <<_ACEOF 9107146773Ssam#line $LINENO "configure" 9108146773Ssam/* confdefs.h. */ 9109146773Ssam_ACEOF 9110146773Ssamcat confdefs.h >>conftest.$ac_ext 9111146773Ssamcat >>conftest.$ac_ext <<_ACEOF 9112146773Ssam/* end confdefs.h. */ 9113146773Ssam 9114146773Ssam#include <sys/types.h> 9115146773Ssam#include <sys/socket.h> 9116146773Ssam#include <netinet/in.h> 9117146773Ssamstruct mbuf; 9118146773Ssamstruct rtentry; 9119146773Ssam#include <net/if.h> 9120146773Ssam#include <netinet/if_ether.h> 9121146773Ssam 9122146773Ssam 9123146773Ssamint 9124146773Ssammain () 9125146773Ssam{ 9126146773Ssam#ifndef ether_ntohost 9127146773Ssam char *p = (char *) ether_ntohost; 9128146773Ssam#endif 9129146773Ssam 9130146773Ssam ; 9131146773Ssam return 0; 9132146773Ssam} 9133146773Ssam_ACEOF 9134146773Ssamrm -f conftest.$ac_objext 9135146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9136146773Ssam (eval $ac_compile) 2>&5 9137146773Ssam ac_status=$? 9138146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139146773Ssam (exit $ac_status); } && 9140146773Ssam { ac_try='test -s conftest.$ac_objext' 9141146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9142146773Ssam (eval $ac_try) 2>&5 9143146773Ssam ac_status=$? 9144146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9145146773Ssam (exit $ac_status); }; }; then 9146146773Ssam ac_cv_have_decl_ether_ntohost=yes 9147146773Ssamelse 9148146773Ssam echo "$as_me: failed program was:" >&5 9149146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 9150146773Ssam 9151146773Ssamac_cv_have_decl_ether_ntohost=no 9152146773Ssamfi 9153146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 9154146773Ssamfi 9155146773Ssamecho "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 9156146773Ssamecho "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6 9157146773Ssamif test $ac_cv_have_decl_ether_ntohost = yes; then 9158146773Ssam 9159146773Ssamcat >>confdefs.h <<_ACEOF 9160146773Ssam#define HAVE_DECL_ETHER_NTOHOST 1 9161146773Ssam_ACEOF 9162146773Ssam 9163146773Ssam 9164146773Ssam 9165146773Ssamcat >>confdefs.h <<\_ACEOF 9166146773Ssam#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST 9167146773Ssam_ACEOF 9168146773Ssam 9169146773Ssam 9170146773Ssamelse 9171146773Ssam cat >>confdefs.h <<_ACEOF 9172146773Ssam#define HAVE_DECL_ETHER_NTOHOST 0 9173146773Ssam_ACEOF 9174146773Ssam 9175146773Ssam 9176146773Ssamfi 9177146773Ssam 9178146773Ssam 9179146773Ssam fi 9180146773Ssam # 9181146773Ssam # Did that succeed? 9182146773Ssam # 9183146773Ssam if test "$ac_cv_have_decl_ether_ntohost" != yes; then 9184146773Ssam # 9185146773Ssam # No, how about <netinet/ether.h>, as on Linux? 9186146773Ssam # 9187146773Ssam 9188146773Ssamfor ac_header in netinet/ether.h 9189146773Ssamdo 9190146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9191146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 9192146773Ssam echo "$as_me:$LINENO: checking for $ac_header" >&5 9193146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9194146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 9195146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 9196146773Ssamfi 9197146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9198146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9199146773Ssamelse 9200146773Ssam # Is the header compilable? 9201146773Ssamecho "$as_me:$LINENO: checking $ac_header usability" >&5 9202146773Ssamecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9203146773Ssamcat >conftest.$ac_ext <<_ACEOF 9204146773Ssam#line $LINENO "configure" 9205146773Ssam/* confdefs.h. */ 9206146773Ssam_ACEOF 9207146773Ssamcat confdefs.h >>conftest.$ac_ext 9208146773Ssamcat >>conftest.$ac_ext <<_ACEOF 9209146773Ssam/* end confdefs.h. */ 9210146773Ssam$ac_includes_default 9211146773Ssam#include <$ac_header> 9212146773Ssam_ACEOF 9213146773Ssamrm -f conftest.$ac_objext 9214146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9215146773Ssam (eval $ac_compile) 2>&5 9216146773Ssam ac_status=$? 9217146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218146773Ssam (exit $ac_status); } && 9219146773Ssam { ac_try='test -s conftest.$ac_objext' 9220146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9221146773Ssam (eval $ac_try) 2>&5 9222146773Ssam ac_status=$? 9223146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224146773Ssam (exit $ac_status); }; }; then 9225146773Ssam ac_header_compiler=yes 9226146773Ssamelse 9227146773Ssam echo "$as_me: failed program was:" >&5 9228146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 9229146773Ssam 9230146773Ssamac_header_compiler=no 9231146773Ssamfi 9232146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 9233146773Ssamecho "$as_me:$LINENO: result: $ac_header_compiler" >&5 9234146773Ssamecho "${ECHO_T}$ac_header_compiler" >&6 9235146773Ssam 9236146773Ssam# Is the header present? 9237146773Ssamecho "$as_me:$LINENO: checking $ac_header presence" >&5 9238146773Ssamecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9239146773Ssamcat >conftest.$ac_ext <<_ACEOF 9240146773Ssam#line $LINENO "configure" 9241146773Ssam/* confdefs.h. */ 9242146773Ssam_ACEOF 9243146773Ssamcat confdefs.h >>conftest.$ac_ext 9244146773Ssamcat >>conftest.$ac_ext <<_ACEOF 9245146773Ssam/* end confdefs.h. */ 9246146773Ssam#include <$ac_header> 9247146773Ssam_ACEOF 9248146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9249146773Ssam (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9250146773Ssam ac_status=$? 9251146773Ssam grep -v '^ *+' conftest.er1 >conftest.err 9252146773Ssam rm -f conftest.er1 9253146773Ssam cat conftest.err >&5 9254146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9255146773Ssam (exit $ac_status); } >/dev/null; then 9256146773Ssam if test -s conftest.err; then 9257146773Ssam ac_cpp_err=$ac_c_preproc_warn_flag 9258146773Ssam else 9259146773Ssam ac_cpp_err= 9260146773Ssam fi 9261146773Ssamelse 9262146773Ssam ac_cpp_err=yes 9263146773Ssamfi 9264146773Ssamif test -z "$ac_cpp_err"; then 9265146773Ssam ac_header_preproc=yes 9266146773Ssamelse 9267146773Ssam echo "$as_me: failed program was:" >&5 9268146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 9269146773Ssam 9270146773Ssam ac_header_preproc=no 9271146773Ssamfi 9272146773Ssamrm -f conftest.err conftest.$ac_ext 9273146773Ssamecho "$as_me:$LINENO: result: $ac_header_preproc" >&5 9274146773Ssamecho "${ECHO_T}$ac_header_preproc" >&6 9275146773Ssam 9276146773Ssam# So? What about this header? 9277146773Ssamcase $ac_header_compiler:$ac_header_preproc in 9278146773Ssam yes:no ) 9279146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9280146773Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9281146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9282146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9283146773Ssam ( 9284146773Ssam cat <<\_ASBOX 9285146773Ssam## ------------------------------------ ## 9286146773Ssam## Report this to bug-autoconf@gnu.org. ## 9287146773Ssam## ------------------------------------ ## 9288146773Ssam_ASBOX 9289146773Ssam ) | 9290146773Ssam sed "s/^/$as_me: WARNING: /" >&2 9291146773Ssam ;; 9292146773Ssam no:yes ) 9293146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9294146773Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9295146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9296146773Ssamecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9297146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9298146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9299146773Ssam ( 9300146773Ssam cat <<\_ASBOX 9301146773Ssam## ------------------------------------ ## 9302146773Ssam## Report this to bug-autoconf@gnu.org. ## 9303146773Ssam## ------------------------------------ ## 9304146773Ssam_ASBOX 9305146773Ssam ) | 9306146773Ssam sed "s/^/$as_me: WARNING: /" >&2 9307146773Ssam ;; 9308146773Ssamesac 9309146773Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5 9310146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9311146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 9312146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 9313146773Ssamelse 9314146773Ssam eval "$as_ac_Header=$ac_header_preproc" 9315146773Ssamfi 9316146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9317146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9318146773Ssam 9319146773Ssamfi 9320146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then 9321146773Ssam cat >>confdefs.h <<_ACEOF 9322146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9323146773Ssam_ACEOF 9324146773Ssam 9325146773Ssamfi 9326146773Ssam 9327146773Ssamdone 9328146773Ssam 9329146773Ssam if test "$ac_cv_header_netinet_ether_h" = yes; then 9330146773Ssam # 9331146773Ssam # We have it - does it declare ether_ntohost()? 9332146773Ssam # Unset ac_cv_have_decl_ether_ntohost so we don't 9333146773Ssam # treat the previous failure as a cached value and 9334146773Ssam # suppress the next test. 9335146773Ssam # 9336146773Ssam unset ac_cv_have_decl_ether_ntohost 9337146773Ssam echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 9338146773Ssamecho $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6 9339146773Ssamif test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 9340146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 9341146773Ssamelse 9342146773Ssam cat >conftest.$ac_ext <<_ACEOF 9343146773Ssam#line $LINENO "configure" 9344146773Ssam/* confdefs.h. */ 9345146773Ssam_ACEOF 9346146773Ssamcat confdefs.h >>conftest.$ac_ext 9347146773Ssamcat >>conftest.$ac_ext <<_ACEOF 9348146773Ssam/* end confdefs.h. */ 9349146773Ssam 9350146773Ssam#include <netinet/ether.h> 9351146773Ssam 9352146773Ssam 9353146773Ssamint 9354146773Ssammain () 9355146773Ssam{ 9356146773Ssam#ifndef ether_ntohost 9357146773Ssam char *p = (char *) ether_ntohost; 9358146773Ssam#endif 9359146773Ssam 9360146773Ssam ; 9361146773Ssam return 0; 9362146773Ssam} 9363146773Ssam_ACEOF 9364146773Ssamrm -f conftest.$ac_objext 9365146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9366146773Ssam (eval $ac_compile) 2>&5 9367146773Ssam ac_status=$? 9368146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9369146773Ssam (exit $ac_status); } && 9370146773Ssam { ac_try='test -s conftest.$ac_objext' 9371146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9372146773Ssam (eval $ac_try) 2>&5 9373146773Ssam ac_status=$? 9374146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375146773Ssam (exit $ac_status); }; }; then 9376146773Ssam ac_cv_have_decl_ether_ntohost=yes 9377146773Ssamelse 9378146773Ssam echo "$as_me: failed program was:" >&5 9379146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 9380146773Ssam 9381146773Ssamac_cv_have_decl_ether_ntohost=no 9382146773Ssamfi 9383146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 9384146773Ssamfi 9385146773Ssamecho "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 9386146773Ssamecho "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6 9387146773Ssamif test $ac_cv_have_decl_ether_ntohost = yes; then 9388146773Ssam 9389146773Ssamcat >>confdefs.h <<_ACEOF 9390146773Ssam#define HAVE_DECL_ETHER_NTOHOST 1 9391146773Ssam_ACEOF 9392146773Ssam 9393146773Ssam 9394146773Ssam 9395146773Ssamcat >>confdefs.h <<\_ACEOF 9396146773Ssam#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 9397146773Ssam_ACEOF 9398146773Ssam 9399146773Ssam 9400146773Ssamelse 9401146773Ssam cat >>confdefs.h <<_ACEOF 9402146773Ssam#define HAVE_DECL_ETHER_NTOHOST 0 9403146773Ssam_ACEOF 9404146773Ssam 9405146773Ssam 9406146773Ssamfi 9407146773Ssam 9408146773Ssam 9409146773Ssam fi 9410146773Ssam fi 9411146773Ssamfi 9412146773Ssam 9413146773Ssam 9414127668Sbms echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 9415127668Sbmsecho $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 9416127668Sbms if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then 9417127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 9418127668Sbmselse 9419127668Sbms cat >conftest.$ac_ext <<_ACEOF 9420127668Sbms#line $LINENO "configure" 9421127668Sbms/* confdefs.h. */ 9422127668Sbms_ACEOF 9423127668Sbmscat confdefs.h >>conftest.$ac_ext 9424127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9425127668Sbms/* end confdefs.h. */ 9426127668Sbms 9427127668Sbms# include <sys/types.h> 9428127668Sbms# include <sys/socket.h> 9429127668Sbmsint 9430127668Sbmsmain () 9431127668Sbms{ 9432127668Sbmsu_int i = sizeof(((struct sockaddr *)0)->sa_len) 9433127668Sbms ; 9434127668Sbms return 0; 9435127668Sbms} 9436127668Sbms_ACEOF 9437127668Sbmsrm -f conftest.$ac_objext 9438127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9439127668Sbms (eval $ac_compile) 2>&5 9440127668Sbms ac_status=$? 9441127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9442127668Sbms (exit $ac_status); } && 9443127668Sbms { ac_try='test -s conftest.$ac_objext' 9444127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9445127668Sbms (eval $ac_try) 2>&5 9446127668Sbms ac_status=$? 9447127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9448127668Sbms (exit $ac_status); }; }; then 9449127668Sbms ac_cv_sockaddr_has_sa_len=yes 9450127668Sbmselse 9451127668Sbms echo "$as_me: failed program was:" >&5 9452127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9453127668Sbms 9454127668Sbmsac_cv_sockaddr_has_sa_len=no 9455127668Sbmsfi 9456127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 9457127668Sbmsfi 9458127668Sbms 9459127668Sbms echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 9460127668Sbmsecho "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6 9461127668Sbms if test $ac_cv_sockaddr_has_sa_len = yes ; then 9462127668Sbms cat >>confdefs.h <<\_ACEOF 9463127668Sbms#define HAVE_SOCKADDR_SA_LEN 1 9464127668Sbms_ACEOF 9465127668Sbms 9466127668Sbms fi 9467127668Sbms 9468127668Sbmsif test "$ac_cv_sockaddr_has_sa_len" = no; then 9469127668Sbms missing_includes=yes 9470127668Sbmsfi 9471127668Sbms 9472127668Sbms 9473127668Sbms 9474127668Sbms 9475127668Sbmsfor ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 9476127668Sbmsdo 9477127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9478127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 9479127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9480127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 9481127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 9482127668Sbmselse 9483127668Sbms cat >conftest.$ac_ext <<_ACEOF 9484127668Sbms#line $LINENO "configure" 9485127668Sbms/* confdefs.h. */ 9486127668Sbms_ACEOF 9487127668Sbmscat confdefs.h >>conftest.$ac_ext 9488127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9489127668Sbms/* end confdefs.h. */ 9490127668Sbms/* System header to define __stub macros and hopefully few prototypes, 9491127668Sbms which can conflict with char $ac_func (); below. 9492127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9493127668Sbms <limits.h> exists even on freestanding compilers. */ 9494127668Sbms#ifdef __STDC__ 9495127668Sbms# include <limits.h> 9496127668Sbms#else 9497127668Sbms# include <assert.h> 9498127668Sbms#endif 9499127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 9500127668Sbms#ifdef __cplusplus 9501127668Sbmsextern "C" 9502127668Sbms{ 9503127668Sbms#endif 9504127668Sbms/* We use char because int might match the return type of a gcc2 9505127668Sbms builtin and then its argument prototype would still apply. */ 9506127668Sbmschar $ac_func (); 950775115Sfenner/* The GNU C library defines this for functions which it implements 950875115Sfenner to always fail with ENOSYS. Some functions are actually named 950975115Sfenner something starting with __ and the normal name is an alias. */ 951075115Sfenner#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 951175115Sfennerchoke me 951275115Sfenner#else 9513127668Sbmschar (*f) () = $ac_func; 951475115Sfenner#endif 9515127668Sbms#ifdef __cplusplus 9516127668Sbms} 9517127668Sbms#endif 951875115Sfenner 9519127668Sbmsint 9520127668Sbmsmain () 9521127668Sbms{ 9522127668Sbmsreturn f != $ac_func; 9523127668Sbms ; 9524127668Sbms return 0; 9525127668Sbms} 9526127668Sbms_ACEOF 9527127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 9528127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9529127668Sbms (eval $ac_link) 2>&5 9530127668Sbms ac_status=$? 9531127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9532127668Sbms (exit $ac_status); } && 9533127668Sbms { ac_try='test -s conftest$ac_exeext' 9534127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9535127668Sbms (eval $ac_try) 2>&5 9536127668Sbms ac_status=$? 9537127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9538127668Sbms (exit $ac_status); }; }; then 9539127668Sbms eval "$as_ac_var=yes" 954075115Sfennerelse 9541127668Sbms echo "$as_me: failed program was:" >&5 9542127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9543127668Sbms 9544127668Sbmseval "$as_ac_var=no" 954575115Sfennerfi 9546127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 954775115Sfennerfi 9548127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9549127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9550127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 9551127668Sbms cat >>confdefs.h <<_ACEOF 9552127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9553127668Sbms_ACEOF 955475115Sfenner 9555127668Sbmsfi 9556127668Sbmsdone 9557127668Sbms 9558127668Sbmsif test $ac_cv_func_pcap_findalldevs = "yes" ; then 9559146773Ssam savedcflags="$CFLAGS" 9560146773Ssam CFLAGS="$CFLAGS $V_INCLS" 9561127668Sbms echo "$as_me:$LINENO: checking for pcap_if_t" >&5 9562127668Sbmsecho $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6 9563127668Sbmsif test "${ac_cv_type_pcap_if_t+set}" = set; then 9564127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 956575115Sfennerelse 9566127668Sbms cat >conftest.$ac_ext <<_ACEOF 9567127668Sbms#line $LINENO "configure" 9568127668Sbms/* confdefs.h. */ 9569127668Sbms_ACEOF 9570127668Sbmscat confdefs.h >>conftest.$ac_ext 9571127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9572127668Sbms/* end confdefs.h. */ 9573127668Sbms#include <pcap.h> 9574127668Sbms 9575127668Sbmsint 9576127668Sbmsmain () 9577127668Sbms{ 9578127668Sbmsif ((pcap_if_t *) 0) 9579127668Sbms return 0; 9580127668Sbmsif (sizeof (pcap_if_t)) 9581127668Sbms return 0; 9582127668Sbms ; 9583127668Sbms return 0; 9584127668Sbms} 9585127668Sbms_ACEOF 9586127668Sbmsrm -f conftest.$ac_objext 9587127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9588127668Sbms (eval $ac_compile) 2>&5 9589127668Sbms ac_status=$? 9590127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591127668Sbms (exit $ac_status); } && 9592127668Sbms { ac_try='test -s conftest.$ac_objext' 9593127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9594127668Sbms (eval $ac_try) 2>&5 9595127668Sbms ac_status=$? 9596127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597127668Sbms (exit $ac_status); }; }; then 9598127668Sbms ac_cv_type_pcap_if_t=yes 9599127668Sbmselse 9600127668Sbms echo "$as_me: failed program was:" >&5 9601127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9602127668Sbms 9603127668Sbmsac_cv_type_pcap_if_t=no 960475115Sfennerfi 9605127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 9606127668Sbmsfi 9607127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5 9608127668Sbmsecho "${ECHO_T}$ac_cv_type_pcap_if_t" >&6 9609127668Sbmsif test $ac_cv_type_pcap_if_t = yes; then 9610127668Sbms 9611127668Sbmscat >>confdefs.h <<_ACEOF 9612127668Sbms#define HAVE_PCAP_IF_T 1 9613127668Sbms_ACEOF 9614127668Sbms 9615127668Sbms 9616127668Sbmsfi 9617127668Sbms 9618146773Ssam CFLAGS="$savedcflags" 9619127668Sbmsfi 9620146773Ssam 9621127668Sbmsif test $ac_cv_func_pcap_lib_version = "no" ; then 9622127668Sbms echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5 9623127668Sbmsecho $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6 9624127668Sbms cat >conftest.$ac_ext <<_ACEOF 9625127668Sbms#line $LINENO "configure" 9626127668Sbms/* confdefs.h. */ 9627127668Sbms_ACEOF 9628127668Sbmscat confdefs.h >>conftest.$ac_ext 9629127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9630127668Sbms/* end confdefs.h. */ 9631127668Sbms 9632127668Sbmsint 9633127668Sbmsmain () 9634127668Sbms{ 9635127668Sbms 9636127668Sbms extern char pcap_version[]; 9637127668Sbms 9638146773Ssam return (int)pcap_version; 9639127668Sbms 9640127668Sbms ; 9641127668Sbms return 0; 9642127668Sbms} 9643127668Sbms_ACEOF 9644127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 9645127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9646127668Sbms (eval $ac_link) 2>&5 9647127668Sbms ac_status=$? 9648127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649127668Sbms (exit $ac_status); } && 9650127668Sbms { ac_try='test -s conftest$ac_exeext' 9651127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9652127668Sbms (eval $ac_try) 2>&5 9653127668Sbms ac_status=$? 9654127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9655127668Sbms (exit $ac_status); }; }; then 9656127668Sbms ac_lbl_cv_pcap_version_defined=yes 9657127668Sbmselse 9658127668Sbms echo "$as_me: failed program was:" >&5 9659127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9660127668Sbms 9661127668Sbmsac_lbl_cv_pcap_version_defined=no 9662127668Sbmsfi 9663127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9664127668Sbms if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 9665127668Sbms echo "$as_me:$LINENO: result: yes" >&5 9666127668Sbmsecho "${ECHO_T}yes" >&6 9667127668Sbms cat >>confdefs.h <<\_ACEOF 9668127668Sbms#define HAVE_PCAP_VERSION 1 9669127668Sbms_ACEOF 9670127668Sbms 9671127668Sbms else 9672127668Sbms echo "$as_me:$LINENO: result: no" >&5 9673127668Sbmsecho "${ECHO_T}no" >&6 9674127668Sbms fi 9675127668Sbmsfi 9676127668Sbmsecho "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5 9677127668Sbmsecho $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6 9678127668Sbmscat >conftest.$ac_ext <<_ACEOF 9679127668Sbms#line $LINENO "configure" 9680127668Sbms/* confdefs.h. */ 9681127668Sbms_ACEOF 9682127668Sbmscat confdefs.h >>conftest.$ac_ext 9683127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9684127668Sbms/* end confdefs.h. */ 9685127668Sbms 9686127668Sbmsint 9687127668Sbmsmain () 9688127668Sbms{ 9689127668Sbms 9690127668Sbms extern int pcap_debug; 9691127668Sbms 9692127668Sbms return pcap_debug; 9693127668Sbms 9694127668Sbms ; 9695127668Sbms return 0; 9696127668Sbms} 9697127668Sbms_ACEOF 9698127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 9699127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9700127668Sbms (eval $ac_link) 2>&5 9701127668Sbms ac_status=$? 9702127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9703127668Sbms (exit $ac_status); } && 9704127668Sbms { ac_try='test -s conftest$ac_exeext' 9705127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9706127668Sbms (eval $ac_try) 2>&5 9707127668Sbms ac_status=$? 9708127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709127668Sbms (exit $ac_status); }; }; then 9710127668Sbms ac_lbl_cv_pcap_debug_defined=yes 9711127668Sbmselse 9712127668Sbms echo "$as_me: failed program was:" >&5 9713127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9714127668Sbms 9715127668Sbmsac_lbl_cv_pcap_debug_defined=no 9716127668Sbmsfi 9717127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9718127668Sbmsif test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 9719127668Sbms echo "$as_me:$LINENO: result: yes" >&5 9720127668Sbmsecho "${ECHO_T}yes" >&6 9721127668Sbms cat >>confdefs.h <<\_ACEOF 9722127668Sbms#define HAVE_PCAP_DEBUG 1 9723127668Sbms_ACEOF 9724127668Sbms 9725127668Sbmselse 9726127668Sbms echo "$as_me:$LINENO: result: no" >&5 9727127668Sbmsecho "${ECHO_T}no" >&6 9728127668Sbms # 9729127668Sbms # OK, what about "yydebug"? 9730127668Sbms # 9731127668Sbms echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5 9732127668Sbmsecho $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6 9733127668Sbms cat >conftest.$ac_ext <<_ACEOF 9734127668Sbms#line $LINENO "configure" 9735127668Sbms/* confdefs.h. */ 9736127668Sbms_ACEOF 9737127668Sbmscat confdefs.h >>conftest.$ac_ext 9738127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9739127668Sbms/* end confdefs.h. */ 9740127668Sbms 9741127668Sbmsint 9742127668Sbmsmain () 9743127668Sbms{ 9744127668Sbms 9745127668Sbms extern int yydebug; 9746127668Sbms 9747127668Sbms return yydebug; 9748127668Sbms 9749127668Sbms ; 9750127668Sbms return 0; 9751127668Sbms} 9752127668Sbms_ACEOF 9753127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 9754127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9755127668Sbms (eval $ac_link) 2>&5 9756127668Sbms ac_status=$? 9757127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758127668Sbms (exit $ac_status); } && 9759127668Sbms { ac_try='test -s conftest$ac_exeext' 9760127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9761127668Sbms (eval $ac_try) 2>&5 9762127668Sbms ac_status=$? 9763127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9764127668Sbms (exit $ac_status); }; }; then 9765127668Sbms ac_lbl_cv_yydebug_defined=yes 9766127668Sbmselse 9767127668Sbms echo "$as_me: failed program was:" >&5 9768127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9769127668Sbms 9770127668Sbmsac_lbl_cv_yydebug_defined=no 9771127668Sbmsfi 9772127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9773127668Sbms if test "$ac_lbl_cv_yydebug_defined" = yes ; then 9774127668Sbms echo "$as_me:$LINENO: result: yes" >&5 9775127668Sbmsecho "${ECHO_T}yes" >&6 9776127668Sbms cat >>confdefs.h <<\_ACEOF 9777127668Sbms#define HAVE_YYDEBUG 1 9778127668Sbms_ACEOF 9779127668Sbms 9780127668Sbms else 9781127668Sbms echo "$as_me:$LINENO: result: no" >&5 9782127668Sbmsecho "${ECHO_T}no" >&6 9783127668Sbms fi 9784127668Sbmsfi 9785127668Sbms 9786127668Sbmsfor ac_func in bpf_dump 9787127668Sbmsdo 9788127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9789127668Sbmsecho "$as_me:$LINENO: checking for $ac_func" >&5 9790127668Sbmsecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9791127668Sbmsif eval "test \"\${$as_ac_var+set}\" = set"; then 9792127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 9793127668Sbmselse 9794127668Sbms cat >conftest.$ac_ext <<_ACEOF 9795127668Sbms#line $LINENO "configure" 9796127668Sbms/* confdefs.h. */ 9797127668Sbms_ACEOF 9798127668Sbmscat confdefs.h >>conftest.$ac_ext 9799127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9800127668Sbms/* end confdefs.h. */ 9801127668Sbms/* System header to define __stub macros and hopefully few prototypes, 9802127668Sbms which can conflict with char $ac_func (); below. 9803127668Sbms Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9804127668Sbms <limits.h> exists even on freestanding compilers. */ 9805127668Sbms#ifdef __STDC__ 9806127668Sbms# include <limits.h> 9807127668Sbms#else 9808127668Sbms# include <assert.h> 9809127668Sbms#endif 9810127668Sbms/* Override any gcc2 internal prototype to avoid an error. */ 9811127668Sbms#ifdef __cplusplus 9812127668Sbmsextern "C" 9813127668Sbms{ 9814127668Sbms#endif 9815127668Sbms/* We use char because int might match the return type of a gcc2 9816127668Sbms builtin and then its argument prototype would still apply. */ 9817127668Sbmschar $ac_func (); 9818127668Sbms/* The GNU C library defines this for functions which it implements 9819127668Sbms to always fail with ENOSYS. Some functions are actually named 9820127668Sbms something starting with __ and the normal name is an alias. */ 9821127668Sbms#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9822127668Sbmschoke me 9823127668Sbms#else 9824127668Sbmschar (*f) () = $ac_func; 9825127668Sbms#endif 9826127668Sbms#ifdef __cplusplus 9827127668Sbms} 9828127668Sbms#endif 9829127668Sbms 9830127668Sbmsint 9831127668Sbmsmain () 9832127668Sbms{ 9833127668Sbmsreturn f != $ac_func; 9834127668Sbms ; 9835127668Sbms return 0; 9836127668Sbms} 9837127668Sbms_ACEOF 9838127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 9839127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9840127668Sbms (eval $ac_link) 2>&5 9841127668Sbms ac_status=$? 9842127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843127668Sbms (exit $ac_status); } && 9844127668Sbms { ac_try='test -s conftest$ac_exeext' 9845127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9846127668Sbms (eval $ac_try) 2>&5 9847127668Sbms ac_status=$? 9848127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9849127668Sbms (exit $ac_status); }; }; then 9850127668Sbms eval "$as_ac_var=yes" 9851127668Sbmselse 9852127668Sbms echo "$as_me: failed program was:" >&5 9853127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9854127668Sbms 9855127668Sbmseval "$as_ac_var=no" 9856127668Sbmsfi 9857127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9858127668Sbmsfi 9859127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9860127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9861127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then 9862127668Sbms cat >>confdefs.h <<_ACEOF 9863127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9864127668Sbms_ACEOF 9865127668Sbms 9866127668Sbmselse 9867127668Sbms LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9868127668Sbmsfi 986975115Sfennerdone 987075115Sfenner 9871127668Sbms 987217680SpstV_GROUP=0 987339297Sfennerif test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 987439297Sfenner V_GROUP=wheel 987539297Sfennerfi 987698524Sfennercase "$host_os" in 987717680Spst 987817680Spstaix*) 9879127668Sbms cat >>confdefs.h <<\_ACEOF 988017680Spst#define _SUN 1 9881127668Sbms_ACEOF 988217680Spst 988317680Spst ;; 988417680Spst 988517680Spstirix*) 988617680Spst V_GROUP=sys 988717680Spst ;; 988817680Spst 988917680Spstosf*) 989017680Spst V_GROUP=system 989117680Spst ;; 989217680Spst 989317680Spstsolaris*) 989417680Spst V_GROUP=sys 989517680Spst ;; 989617680Spstesac 989717680Spst 989817680Spstif test -f /dev/bpf0 ; then 989917680Spst V_GROUP=bpf 990017680Spstfi 990117680Spst 9902127668Sbmsecho "$as_me:$LINENO: checking for int8_t using $CC" >&5 9903127668Sbmsecho $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6 9904127668Sbms if test "${ac_cv_lbl_have_int8_t+set}" = set; then 9905127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 990656893Sfennerelse 9907127668Sbms cat >conftest.$ac_ext <<_ACEOF 9908127668Sbms#line $LINENO "configure" 9909127668Sbms/* confdefs.h. */ 9910127668Sbms_ACEOF 9911127668Sbmscat confdefs.h >>conftest.$ac_ext 9912127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9913127668Sbms/* end confdefs.h. */ 991456893Sfenner 991556893Sfenner# include "confdefs.h" 991656893Sfenner# include <sys/types.h> 991756893Sfenner# if STDC_HEADERS 991856893Sfenner# include <stdlib.h> 991956893Sfenner# include <stddef.h> 992056893Sfenner# endif 9921127668Sbmsint 9922127668Sbmsmain () 9923127668Sbms{ 9924127668Sbmsint8_t i 9925127668Sbms ; 9926127668Sbms return 0; 9927127668Sbms} 9928127668Sbms_ACEOF 9929127668Sbmsrm -f conftest.$ac_objext 9930127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9931127668Sbms (eval $ac_compile) 2>&5 9932127668Sbms ac_status=$? 9933127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934127668Sbms (exit $ac_status); } && 9935127668Sbms { ac_try='test -s conftest.$ac_objext' 9936127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9937127668Sbms (eval $ac_try) 2>&5 9938127668Sbms ac_status=$? 9939127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9940127668Sbms (exit $ac_status); }; }; then 9941127668Sbms ac_cv_lbl_have_int8_t=yes 9942127668Sbmselse 9943127668Sbms echo "$as_me: failed program was:" >&5 9944127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 9945127668Sbms 9946127668Sbmsac_cv_lbl_have_int8_t=no 9947127668Sbmsfi 9948127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 9949127668Sbmsfi 9950127668Sbms 9951127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5 9952127668Sbmsecho "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6 9953127668Sbms if test $ac_cv_lbl_have_int8_t = no ; then 9954127668Sbms cat >>confdefs.h <<\_ACEOF 9955127668Sbms#define int8_t signed char 9956127668Sbms_ACEOF 9957127668Sbms 9958127668Sbms fi 9959127668Sbmsecho "$as_me:$LINENO: checking for u_int8_t using $CC" >&5 9960127668Sbmsecho $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6 9961127668Sbms if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then 9962127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 9963127668Sbmselse 9964127668Sbms cat >conftest.$ac_ext <<_ACEOF 9965127668Sbms#line $LINENO "configure" 9966127668Sbms/* confdefs.h. */ 9967127668Sbms_ACEOF 9968127668Sbmscat confdefs.h >>conftest.$ac_ext 9969127668Sbmscat >>conftest.$ac_ext <<_ACEOF 9970127668Sbms/* end confdefs.h. */ 9971127668Sbms 9972127668Sbms# include "confdefs.h" 9973127668Sbms# include <sys/types.h> 9974127668Sbms# if STDC_HEADERS 9975127668Sbms# include <stdlib.h> 9976127668Sbms# include <stddef.h> 9977127668Sbms# endif 9978127668Sbmsint 9979127668Sbmsmain () 9980127668Sbms{ 998156893Sfenneru_int8_t i 9982127668Sbms ; 9983127668Sbms return 0; 9984127668Sbms} 9985127668Sbms_ACEOF 9986127668Sbmsrm -f conftest.$ac_objext 9987127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9988127668Sbms (eval $ac_compile) 2>&5 9989127668Sbms ac_status=$? 9990127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9991127668Sbms (exit $ac_status); } && 9992127668Sbms { ac_try='test -s conftest.$ac_objext' 9993127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9994127668Sbms (eval $ac_try) 2>&5 9995127668Sbms ac_status=$? 9996127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997127668Sbms (exit $ac_status); }; }; then 999856893Sfenner ac_cv_lbl_have_u_int8_t=yes 999956893Sfennerelse 10000127668Sbms echo "$as_me: failed program was:" >&5 10001127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 10002127668Sbms 10003127668Sbmsac_cv_lbl_have_u_int8_t=no 1000456893Sfennerfi 10005127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1000656893Sfennerfi 1000756893Sfenner 10008127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5 10009127668Sbmsecho "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6 1001056893Sfenner if test $ac_cv_lbl_have_u_int8_t = no ; then 10011127668Sbms cat >>confdefs.h <<\_ACEOF 1001256893Sfenner#define u_int8_t u_char 10013127668Sbms_ACEOF 1001456893Sfenner 1001556893Sfenner fi 10016127668Sbmsecho "$as_me:$LINENO: checking for int16_t using $CC" >&5 10017127668Sbmsecho $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6 10018127668Sbms if test "${ac_cv_lbl_have_int16_t+set}" = set; then 10019127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1002056893Sfennerelse 10021127668Sbms cat >conftest.$ac_ext <<_ACEOF 10022127668Sbms#line $LINENO "configure" 10023127668Sbms/* confdefs.h. */ 10024127668Sbms_ACEOF 10025127668Sbmscat confdefs.h >>conftest.$ac_ext 10026127668Sbmscat >>conftest.$ac_ext <<_ACEOF 10027127668Sbms/* end confdefs.h. */ 1002856893Sfenner 1002956893Sfenner# include "confdefs.h" 1003056893Sfenner# include <sys/types.h> 1003156893Sfenner# if STDC_HEADERS 1003256893Sfenner# include <stdlib.h> 1003356893Sfenner# include <stddef.h> 1003456893Sfenner# endif 10035127668Sbmsint 10036127668Sbmsmain () 10037127668Sbms{ 1003856893Sfennerint16_t i 10039127668Sbms ; 10040127668Sbms return 0; 10041127668Sbms} 10042127668Sbms_ACEOF 10043127668Sbmsrm -f conftest.$ac_objext 10044127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10045127668Sbms (eval $ac_compile) 2>&5 10046127668Sbms ac_status=$? 10047127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048127668Sbms (exit $ac_status); } && 10049127668Sbms { ac_try='test -s conftest.$ac_objext' 10050127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10051127668Sbms (eval $ac_try) 2>&5 10052127668Sbms ac_status=$? 10053127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10054127668Sbms (exit $ac_status); }; }; then 1005556893Sfenner ac_cv_lbl_have_int16_t=yes 1005656893Sfennerelse 10057127668Sbms echo "$as_me: failed program was:" >&5 10058127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 10059127668Sbms 10060127668Sbmsac_cv_lbl_have_int16_t=no 1006156893Sfennerfi 10062127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1006356893Sfennerfi 1006456893Sfenner 10065127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5 10066127668Sbmsecho "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6 1006756893Sfenner if test $ac_cv_lbl_have_int16_t = no ; then 10068127668Sbms cat >>confdefs.h <<\_ACEOF 1006956893Sfenner#define int16_t short 10070127668Sbms_ACEOF 1007156893Sfenner 1007256893Sfenner fi 10073127668Sbmsecho "$as_me:$LINENO: checking for u_int16_t using $CC" >&5 10074127668Sbmsecho $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6 10075127668Sbms if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then 10076127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1007756893Sfennerelse 10078127668Sbms cat >conftest.$ac_ext <<_ACEOF 10079127668Sbms#line $LINENO "configure" 10080127668Sbms/* confdefs.h. */ 10081127668Sbms_ACEOF 10082127668Sbmscat confdefs.h >>conftest.$ac_ext 10083127668Sbmscat >>conftest.$ac_ext <<_ACEOF 10084127668Sbms/* end confdefs.h. */ 1008556893Sfenner 1008656893Sfenner# include "confdefs.h" 1008756893Sfenner# include <sys/types.h> 1008856893Sfenner# if STDC_HEADERS 1008956893Sfenner# include <stdlib.h> 1009056893Sfenner# include <stddef.h> 1009156893Sfenner# endif 10092127668Sbmsint 10093127668Sbmsmain () 10094127668Sbms{ 1009556893Sfenneru_int16_t i 10096127668Sbms ; 10097127668Sbms return 0; 10098127668Sbms} 10099127668Sbms_ACEOF 10100127668Sbmsrm -f conftest.$ac_objext 10101127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10102127668Sbms (eval $ac_compile) 2>&5 10103127668Sbms ac_status=$? 10104127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105127668Sbms (exit $ac_status); } && 10106127668Sbms { ac_try='test -s conftest.$ac_objext' 10107127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10108127668Sbms (eval $ac_try) 2>&5 10109127668Sbms ac_status=$? 10110127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10111127668Sbms (exit $ac_status); }; }; then 1011256893Sfenner ac_cv_lbl_have_u_int16_t=yes 1011356893Sfennerelse 10114127668Sbms echo "$as_me: failed program was:" >&5 10115127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 10116127668Sbms 10117127668Sbmsac_cv_lbl_have_u_int16_t=no 1011856893Sfennerfi 10119127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1012056893Sfennerfi 1012156893Sfenner 10122127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5 10123127668Sbmsecho "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6 1012456893Sfenner if test $ac_cv_lbl_have_u_int16_t = no ; then 10125127668Sbms cat >>confdefs.h <<\_ACEOF 1012656893Sfenner#define u_int16_t u_short 10127127668Sbms_ACEOF 1012856893Sfenner 1012956893Sfenner fi 10130127668Sbmsecho "$as_me:$LINENO: checking for int32_t using $CC" >&5 10131127668Sbmsecho $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6 10132127668Sbms if test "${ac_cv_lbl_have_int32_t+set}" = set; then 10133127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1013417680Spstelse 10135127668Sbms cat >conftest.$ac_ext <<_ACEOF 10136127668Sbms#line $LINENO "configure" 10137127668Sbms/* confdefs.h. */ 10138127668Sbms_ACEOF 10139127668Sbmscat confdefs.h >>conftest.$ac_ext 10140127668Sbmscat >>conftest.$ac_ext <<_ACEOF 10141127668Sbms/* end confdefs.h. */ 1014239297Sfenner 1014339297Sfenner# include "confdefs.h" 1014439297Sfenner# include <sys/types.h> 1014539297Sfenner# if STDC_HEADERS 1014639297Sfenner# include <stdlib.h> 1014739297Sfenner# include <stddef.h> 1014839297Sfenner# endif 10149127668Sbmsint 10150127668Sbmsmain () 10151127668Sbms{ 1015239297Sfennerint32_t i 10153127668Sbms ; 10154127668Sbms return 0; 10155127668Sbms} 10156127668Sbms_ACEOF 10157127668Sbmsrm -f conftest.$ac_objext 10158127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10159127668Sbms (eval $ac_compile) 2>&5 10160127668Sbms ac_status=$? 10161127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10162127668Sbms (exit $ac_status); } && 10163127668Sbms { ac_try='test -s conftest.$ac_objext' 10164127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10165127668Sbms (eval $ac_try) 2>&5 10166127668Sbms ac_status=$? 10167127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10168127668Sbms (exit $ac_status); }; }; then 1016939297Sfenner ac_cv_lbl_have_int32_t=yes 1017017680Spstelse 10171127668Sbms echo "$as_me: failed program was:" >&5 10172127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 10173127668Sbms 10174127668Sbmsac_cv_lbl_have_int32_t=no 1017517680Spstfi 10176127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1017717680Spstfi 1017817680Spst 10179127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5 10180127668Sbmsecho "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6 1018139297Sfenner if test $ac_cv_lbl_have_int32_t = no ; then 10182127668Sbms cat >>confdefs.h <<\_ACEOF 1018339297Sfenner#define int32_t int 10184127668Sbms_ACEOF 1018517680Spst 1018639297Sfenner fi 10187127668Sbmsecho "$as_me:$LINENO: checking for u_int32_t using $CC" >&5 10188127668Sbmsecho $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6 10189127668Sbms if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then 10190127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1019117680Spstelse 10192127668Sbms cat >conftest.$ac_ext <<_ACEOF 10193127668Sbms#line $LINENO "configure" 10194127668Sbms/* confdefs.h. */ 10195127668Sbms_ACEOF 10196127668Sbmscat confdefs.h >>conftest.$ac_ext 10197127668Sbmscat >>conftest.$ac_ext <<_ACEOF 10198127668Sbms/* end confdefs.h. */ 1019917680Spst 1020039297Sfenner# include "confdefs.h" 1020139297Sfenner# include <sys/types.h> 1020239297Sfenner# if STDC_HEADERS 1020339297Sfenner# include <stdlib.h> 1020439297Sfenner# include <stddef.h> 1020539297Sfenner# endif 10206127668Sbmsint 10207127668Sbmsmain () 10208127668Sbms{ 1020939297Sfenneru_int32_t i 10210127668Sbms ; 10211127668Sbms return 0; 10212127668Sbms} 10213127668Sbms_ACEOF 10214127668Sbmsrm -f conftest.$ac_objext 10215127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10216127668Sbms (eval $ac_compile) 2>&5 10217127668Sbms ac_status=$? 10218127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10219127668Sbms (exit $ac_status); } && 10220127668Sbms { ac_try='test -s conftest.$ac_objext' 10221127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10222127668Sbms (eval $ac_try) 2>&5 10223127668Sbms ac_status=$? 10224127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225127668Sbms (exit $ac_status); }; }; then 1022639297Sfenner ac_cv_lbl_have_u_int32_t=yes 1022717680Spstelse 10228127668Sbms echo "$as_me: failed program was:" >&5 10229127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 10230127668Sbms 10231127668Sbmsac_cv_lbl_have_u_int32_t=no 1023217680Spstfi 10233127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1023417680Spstfi 1023517680Spst 10236127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5 10237127668Sbmsecho "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6 1023839297Sfenner if test $ac_cv_lbl_have_u_int32_t = no ; then 10239127668Sbms cat >>confdefs.h <<\_ACEOF 1024017680Spst#define u_int32_t u_int 10241127668Sbms_ACEOF 1024217680Spst 1024339297Sfenner fi 10244146773Ssamecho "$as_me:$LINENO: checking for int64_t using $CC" >&5 10245146773Ssamecho $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6 10246146773Ssam if test "${ac_cv_lbl_have_int64_t+set}" = set; then 10247146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 10248146773Ssamelse 10249146773Ssam cat >conftest.$ac_ext <<_ACEOF 10250146773Ssam#line $LINENO "configure" 10251146773Ssam/* confdefs.h. */ 10252146773Ssam_ACEOF 10253146773Ssamcat confdefs.h >>conftest.$ac_ext 10254146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10255146773Ssam/* end confdefs.h. */ 1025617680Spst 10257146773Ssam# include "confdefs.h" 10258146773Ssam# include <sys/types.h> 10259146773Ssam# if STDC_HEADERS 10260146773Ssam# include <stdlib.h> 10261146773Ssam# include <stddef.h> 10262146773Ssam# endif 10263146773Ssamint 10264146773Ssammain () 10265146773Ssam{ 10266146773Ssamint64_t i 10267146773Ssam ; 10268146773Ssam return 0; 10269146773Ssam} 10270146773Ssam_ACEOF 10271146773Ssamrm -f conftest.$ac_objext 10272146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10273146773Ssam (eval $ac_compile) 2>&5 10274146773Ssam ac_status=$? 10275146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276146773Ssam (exit $ac_status); } && 10277146773Ssam { ac_try='test -s conftest.$ac_objext' 10278146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10279146773Ssam (eval $ac_try) 2>&5 10280146773Ssam ac_status=$? 10281146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282146773Ssam (exit $ac_status); }; }; then 10283146773Ssam ac_cv_lbl_have_int64_t=yes 10284146773Ssamelse 10285146773Ssam echo "$as_me: failed program was:" >&5 10286146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10287146773Ssam 10288146773Ssamac_cv_lbl_have_int64_t=no 10289146773Ssamfi 10290146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 10291146773Ssamfi 10292146773Ssam 10293146773Ssam echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5 10294146773Ssamecho "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6 10295146773Ssam if test $ac_cv_lbl_have_int64_t = no ; then 10296146773Ssam cat >>confdefs.h <<\_ACEOF 10297146773Ssam#define int64_t long long 10298146773Ssam_ACEOF 10299146773Ssam 10300146773Ssam fi 10301146773Ssamecho "$as_me:$LINENO: checking for u_int64_t using $CC" >&5 10302146773Ssamecho $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6 10303146773Ssam if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then 10304146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 10305146773Ssamelse 10306146773Ssam cat >conftest.$ac_ext <<_ACEOF 10307146773Ssam#line $LINENO "configure" 10308146773Ssam/* confdefs.h. */ 10309146773Ssam_ACEOF 10310146773Ssamcat confdefs.h >>conftest.$ac_ext 10311146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10312146773Ssam/* end confdefs.h. */ 10313146773Ssam 10314146773Ssam# include "confdefs.h" 10315146773Ssam# include <sys/types.h> 10316146773Ssam# if STDC_HEADERS 10317146773Ssam# include <stdlib.h> 10318146773Ssam# include <stddef.h> 10319146773Ssam# endif 10320146773Ssamint 10321146773Ssammain () 10322146773Ssam{ 10323146773Ssamu_int64_t i 10324146773Ssam ; 10325146773Ssam return 0; 10326146773Ssam} 10327146773Ssam_ACEOF 10328146773Ssamrm -f conftest.$ac_objext 10329146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10330146773Ssam (eval $ac_compile) 2>&5 10331146773Ssam ac_status=$? 10332146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10333146773Ssam (exit $ac_status); } && 10334146773Ssam { ac_try='test -s conftest.$ac_objext' 10335146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10336146773Ssam (eval $ac_try) 2>&5 10337146773Ssam ac_status=$? 10338146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10339146773Ssam (exit $ac_status); }; }; then 10340146773Ssam ac_cv_lbl_have_u_int64_t=yes 10341146773Ssamelse 10342146773Ssam echo "$as_me: failed program was:" >&5 10343146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10344146773Ssam 10345146773Ssamac_cv_lbl_have_u_int64_t=no 10346146773Ssamfi 10347146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 10348146773Ssamfi 10349146773Ssam 10350146773Ssam echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5 10351146773Ssamecho "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6 10352146773Ssam if test $ac_cv_lbl_have_u_int64_t = no ; then 10353146773Ssam cat >>confdefs.h <<\_ACEOF 10354146773Ssam#define u_int64_t unsigned long long 10355146773Ssam_ACEOF 10356146773Ssam 10357146773Ssam fi 10358146773Ssam 10359146773Ssam# 10360146773Ssam# We can't just check for <inttypes.h> - some systems have one that 10361146773Ssam# doesn't define all the PRI[doxu]64 macros. 10362146773Ssam# 10363146773Ssam 10364146773Ssamfor ac_header in inttypes.h 10365146773Ssamdo 10366146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10367146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 10368146773Ssam echo "$as_me:$LINENO: checking for $ac_header" >&5 10369146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10370146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 10371146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 10372146773Ssamfi 10373146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10374146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10375146773Ssamelse 10376146773Ssam # Is the header compilable? 10377146773Ssamecho "$as_me:$LINENO: checking $ac_header usability" >&5 10378146773Ssamecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10379146773Ssamcat >conftest.$ac_ext <<_ACEOF 10380146773Ssam#line $LINENO "configure" 10381146773Ssam/* confdefs.h. */ 10382146773Ssam_ACEOF 10383146773Ssamcat confdefs.h >>conftest.$ac_ext 10384146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10385146773Ssam/* end confdefs.h. */ 10386146773Ssam$ac_includes_default 10387146773Ssam#include <$ac_header> 10388146773Ssam_ACEOF 10389146773Ssamrm -f conftest.$ac_objext 10390146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10391146773Ssam (eval $ac_compile) 2>&5 10392146773Ssam ac_status=$? 10393146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10394146773Ssam (exit $ac_status); } && 10395146773Ssam { ac_try='test -s conftest.$ac_objext' 10396146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10397146773Ssam (eval $ac_try) 2>&5 10398146773Ssam ac_status=$? 10399146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10400146773Ssam (exit $ac_status); }; }; then 10401146773Ssam ac_header_compiler=yes 10402146773Ssamelse 10403146773Ssam echo "$as_me: failed program was:" >&5 10404146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10405146773Ssam 10406146773Ssamac_header_compiler=no 10407146773Ssamfi 10408146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 10409146773Ssamecho "$as_me:$LINENO: result: $ac_header_compiler" >&5 10410146773Ssamecho "${ECHO_T}$ac_header_compiler" >&6 10411146773Ssam 10412146773Ssam# Is the header present? 10413146773Ssamecho "$as_me:$LINENO: checking $ac_header presence" >&5 10414146773Ssamecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10415146773Ssamcat >conftest.$ac_ext <<_ACEOF 10416146773Ssam#line $LINENO "configure" 10417146773Ssam/* confdefs.h. */ 10418146773Ssam_ACEOF 10419146773Ssamcat confdefs.h >>conftest.$ac_ext 10420146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10421146773Ssam/* end confdefs.h. */ 10422146773Ssam#include <$ac_header> 10423146773Ssam_ACEOF 10424146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10425146773Ssam (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10426146773Ssam ac_status=$? 10427146773Ssam grep -v '^ *+' conftest.er1 >conftest.err 10428146773Ssam rm -f conftest.er1 10429146773Ssam cat conftest.err >&5 10430146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431146773Ssam (exit $ac_status); } >/dev/null; then 10432146773Ssam if test -s conftest.err; then 10433146773Ssam ac_cpp_err=$ac_c_preproc_warn_flag 10434146773Ssam else 10435146773Ssam ac_cpp_err= 10436146773Ssam fi 10437146773Ssamelse 10438146773Ssam ac_cpp_err=yes 10439146773Ssamfi 10440146773Ssamif test -z "$ac_cpp_err"; then 10441146773Ssam ac_header_preproc=yes 10442146773Ssamelse 10443146773Ssam echo "$as_me: failed program was:" >&5 10444146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10445146773Ssam 10446146773Ssam ac_header_preproc=no 10447146773Ssamfi 10448146773Ssamrm -f conftest.err conftest.$ac_ext 10449146773Ssamecho "$as_me:$LINENO: result: $ac_header_preproc" >&5 10450146773Ssamecho "${ECHO_T}$ac_header_preproc" >&6 10451146773Ssam 10452146773Ssam# So? What about this header? 10453146773Ssamcase $ac_header_compiler:$ac_header_preproc in 10454146773Ssam yes:no ) 10455146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10456146773Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10457146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10458146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10459146773Ssam ( 10460146773Ssam cat <<\_ASBOX 10461146773Ssam## ------------------------------------ ## 10462146773Ssam## Report this to bug-autoconf@gnu.org. ## 10463146773Ssam## ------------------------------------ ## 10464146773Ssam_ASBOX 10465146773Ssam ) | 10466146773Ssam sed "s/^/$as_me: WARNING: /" >&2 10467146773Ssam ;; 10468146773Ssam no:yes ) 10469146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10470146773Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10471146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10472146773Ssamecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10473146773Ssam { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10474146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10475146773Ssam ( 10476146773Ssam cat <<\_ASBOX 10477146773Ssam## ------------------------------------ ## 10478146773Ssam## Report this to bug-autoconf@gnu.org. ## 10479146773Ssam## ------------------------------------ ## 10480146773Ssam_ASBOX 10481146773Ssam ) | 10482146773Ssam sed "s/^/$as_me: WARNING: /" >&2 10483146773Ssam ;; 10484146773Ssamesac 10485146773Ssamecho "$as_me:$LINENO: checking for $ac_header" >&5 10486146773Ssamecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10487146773Ssamif eval "test \"\${$as_ac_Header+set}\" = set"; then 10488146773Ssam echo $ECHO_N "(cached) $ECHO_C" >&6 10489146773Ssamelse 10490146773Ssam eval "$as_ac_Header=$ac_header_preproc" 10491146773Ssamfi 10492146773Ssamecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10493146773Ssamecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10494146773Ssam 10495146773Ssamfi 10496146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then 10497146773Ssam cat >>confdefs.h <<_ACEOF 10498146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10499146773Ssam_ACEOF 10500146773Ssam 10501146773Ssam # 10502146773Ssam # OK, we have inttypes.h, but does it define those macros? 10503146773Ssam # 10504146773Ssam echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5 10505146773Ssamecho $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6 10506146773Ssam cat >conftest.$ac_ext <<_ACEOF 10507146773Ssam 10508146773Ssam #line $LINENO "configure" 10509146773Ssam/* confdefs.h. */ 10510146773Ssam_ACEOF 10511146773Ssamcat confdefs.h >>conftest.$ac_ext 10512146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10513146773Ssam/* end confdefs.h. */ 10514146773Ssam 10515146773Ssam #include <inttypes.h> 10516146773Ssam #include <stdio.h> 10517146773Ssam #include <sys/types.h> 10518146773Ssam 10519146773Ssam main() 10520146773Ssam { 10521146773Ssam printf("%" PRId64 "\n", (u_int64_t)1); 10522146773Ssam printf("%" PRIo64 "\n", (u_int64_t)1); 10523146773Ssam printf("%" PRIx64 "\n", (u_int64_t)1); 10524146773Ssam printf("%" PRIu64 "\n", (u_int64_t)1); 10525146773Ssam } 10526146773Ssam 10527146773Ssam 10528146773Ssam_ACEOF 10529146773Ssamrm -f conftest.$ac_objext 10530146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10531146773Ssam (eval $ac_compile) 2>&5 10532146773Ssam ac_status=$? 10533146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534146773Ssam (exit $ac_status); } && 10535146773Ssam { ac_try='test -s conftest.$ac_objext' 10536146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10537146773Ssam (eval $ac_try) 2>&5 10538146773Ssam ac_status=$? 10539146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540146773Ssam (exit $ac_status); }; }; then 10541146773Ssam 10542146773Ssam echo "$as_me:$LINENO: result: yes" >&5 10543146773Ssamecho "${ECHO_T}yes" >&6 10544146773Ssam ac_lbl_inttypes_h_defines_formats=yes 10545146773Ssam 10546146773Ssamelse 10547146773Ssam echo "$as_me: failed program was:" >&5 10548146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10549146773Ssam 10550146773Ssam 10551146773Ssam echo "$as_me:$LINENO: result: no" >&5 10552146773Ssamecho "${ECHO_T}no" >&6 10553146773Ssam ac_lbl_inttypes_h_defines_formats=no 10554146773Ssam 10555146773Ssamfi 10556146773Ssamrm -f conftest.$ac_objext conftest.$ac_ext 10557146773Ssam 10558146773Ssamelse 10559146773Ssam 10560146773Ssam # 10561146773Ssam # We don't have inttypes.h, so it obviously can't define those 10562146773Ssam # macros. 10563146773Ssam # 10564146773Ssam ac_lbl_inttypes_h_defines_formats=no 10565146773Ssam 10566146773Ssamfi 10567146773Ssam 10568146773Ssamdone 10569146773Ssam 10570146773Ssamif test "$ac_lbl_inttypes_h_defines_formats" = yes; then 10571146773Ssam cat >>confdefs.h <<\_ACEOF 10572146773Ssam#define INTTYPES_H_DEFINES_FORMATS 1 10573146773Ssam_ACEOF 10574146773Ssam 10575146773Ssamelse 10576146773Ssam 10577146773Ssam echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5 10578146773Ssamecho $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6 10579146773Ssam if test "$cross_compiling" = yes; then 10580146773Ssam { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10581146773SsamSee \`config.log' for more details." >&5 10582146773Ssamecho "$as_me: error: cannot run test program while cross compiling 10583146773SsamSee \`config.log' for more details." >&2;} 10584146773Ssam { (exit 1); exit 1; }; } 10585146773Ssamelse 10586146773Ssam cat >conftest.$ac_ext <<_ACEOF 10587146773Ssam 10588146773Ssam #line $LINENO "configure" 10589146773Ssam/* confdefs.h. */ 10590146773Ssam_ACEOF 10591146773Ssamcat confdefs.h >>conftest.$ac_ext 10592146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10593146773Ssam/* end confdefs.h. */ 10594146773Ssam 10595146773Ssam# ifdef HAVE_INTTYPES_H 10596146773Ssam #include <inttypes.h> 10597146773Ssam# endif 10598146773Ssam #include <stdio.h> 10599146773Ssam #include <sys/types.h> 10600146773Ssam 10601146773Ssam main() 10602146773Ssam { 10603146773Ssam u_int64_t t = 1; 10604146773Ssam char strbuf[16+1]; 10605146773Ssam sprintf(strbuf, "%016llx", t << 32); 10606146773Ssam if (strcmp(strbuf, "0000000100000000") == 0) 10607146773Ssam exit(0); 10608146773Ssam else 10609146773Ssam exit(1); 10610146773Ssam } 10611146773Ssam 10612146773Ssam 10613146773Ssam_ACEOF 10614146773Ssamrm -f conftest$ac_exeext 10615146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10616146773Ssam (eval $ac_link) 2>&5 10617146773Ssam ac_status=$? 10618146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619146773Ssam (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10620146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10621146773Ssam (eval $ac_try) 2>&5 10622146773Ssam ac_status=$? 10623146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10624146773Ssam (exit $ac_status); }; }; then 10625146773Ssam 10626146773Ssam cat >>confdefs.h <<\_ACEOF 10627146773Ssam#define PRId64 "lld" 10628146773Ssam_ACEOF 10629146773Ssam 10630146773Ssam cat >>confdefs.h <<\_ACEOF 10631146773Ssam#define PRIo64 "llo" 10632146773Ssam_ACEOF 10633146773Ssam 10634146773Ssam cat >>confdefs.h <<\_ACEOF 10635146773Ssam#define PRIx64 "llx" 10636146773Ssam_ACEOF 10637146773Ssam 10638146773Ssam cat >>confdefs.h <<\_ACEOF 10639146773Ssam#define PRIu64 "llu" 10640146773Ssam_ACEOF 10641146773Ssam 10642146773Ssam echo "$as_me:$LINENO: result: yes" >&5 10643146773Ssamecho "${ECHO_T}yes" >&6 10644146773Ssam 10645146773Ssamelse 10646146773Ssam echo "$as_me: program exited with status $ac_status" >&5 10647146773Ssamecho "$as_me: failed program was:" >&5 10648146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10649146773Ssam 10650146773Ssam( exit $ac_status ) 10651146773Ssam 10652146773Ssam echo "$as_me:$LINENO: result: no" >&5 10653146773Ssamecho "${ECHO_T}no" >&6 10654146773Ssam 10655146773Ssam 10656146773Ssam echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5 10657146773Ssamecho $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6 10658146773Ssam if test "$cross_compiling" = yes; then 10659146773Ssam { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10660146773SsamSee \`config.log' for more details." >&5 10661146773Ssamecho "$as_me: error: cannot run test program while cross compiling 10662146773SsamSee \`config.log' for more details." >&2;} 10663146773Ssam { (exit 1); exit 1; }; } 10664146773Ssamelse 10665146773Ssam cat >conftest.$ac_ext <<_ACEOF 10666146773Ssam 10667146773Ssam #line $LINENO "configure" 10668146773Ssam/* confdefs.h. */ 10669146773Ssam_ACEOF 10670146773Ssamcat confdefs.h >>conftest.$ac_ext 10671146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10672146773Ssam/* end confdefs.h. */ 10673146773Ssam 10674146773Ssam# ifdef HAVE_INTTYPES_H 10675146773Ssam #include <inttypes.h> 10676146773Ssam# endif 10677146773Ssam #include <stdio.h> 10678146773Ssam #include <sys/types.h> 10679146773Ssam 10680146773Ssam main() 10681146773Ssam { 10682146773Ssam u_int64_t t = 1; 10683146773Ssam char strbuf[16+1]; 10684146773Ssam sprintf(strbuf, "%016Lx", t << 32); 10685146773Ssam if (strcmp(strbuf, "0000000100000000") == 0) 10686146773Ssam exit(0); 10687146773Ssam else 10688146773Ssam exit(1); 10689146773Ssam } 10690146773Ssam 10691146773Ssam 10692146773Ssam_ACEOF 10693146773Ssamrm -f conftest$ac_exeext 10694146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10695146773Ssam (eval $ac_link) 2>&5 10696146773Ssam ac_status=$? 10697146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10698146773Ssam (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10699146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10700146773Ssam (eval $ac_try) 2>&5 10701146773Ssam ac_status=$? 10702146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10703146773Ssam (exit $ac_status); }; }; then 10704146773Ssam 10705146773Ssam cat >>confdefs.h <<\_ACEOF 10706146773Ssam#define PRId64 "Ld" 10707146773Ssam_ACEOF 10708146773Ssam 10709146773Ssam cat >>confdefs.h <<\_ACEOF 10710146773Ssam#define PRIo64 "Lo" 10711146773Ssam_ACEOF 10712146773Ssam 10713146773Ssam cat >>confdefs.h <<\_ACEOF 10714146773Ssam#define PRIx64 "Lx" 10715146773Ssam_ACEOF 10716146773Ssam 10717146773Ssam cat >>confdefs.h <<\_ACEOF 10718146773Ssam#define PRIu64 "Lu" 10719146773Ssam_ACEOF 10720146773Ssam 10721146773Ssam echo "$as_me:$LINENO: result: yes" >&5 10722146773Ssamecho "${ECHO_T}yes" >&6 10723146773Ssam 10724146773Ssamelse 10725146773Ssam echo "$as_me: program exited with status $ac_status" >&5 10726146773Ssamecho "$as_me: failed program was:" >&5 10727146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10728146773Ssam 10729146773Ssam( exit $ac_status ) 10730146773Ssam 10731146773Ssam echo "$as_me:$LINENO: result: no" >&5 10732146773Ssamecho "${ECHO_T}no" >&6 10733146773Ssam 10734146773Ssam 10735146773Ssam echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5 10736146773Ssamecho $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6 10737146773Ssam if test "$cross_compiling" = yes; then 10738146773Ssam { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10739146773SsamSee \`config.log' for more details." >&5 10740146773Ssamecho "$as_me: error: cannot run test program while cross compiling 10741146773SsamSee \`config.log' for more details." >&2;} 10742146773Ssam { (exit 1); exit 1; }; } 10743146773Ssamelse 10744146773Ssam cat >conftest.$ac_ext <<_ACEOF 10745146773Ssam 10746146773Ssam #line $LINENO "configure" 10747146773Ssam/* confdefs.h. */ 10748146773Ssam_ACEOF 10749146773Ssamcat confdefs.h >>conftest.$ac_ext 10750146773Ssamcat >>conftest.$ac_ext <<_ACEOF 10751146773Ssam/* end confdefs.h. */ 10752146773Ssam 10753146773Ssam# ifdef HAVE_INTTYPES_H 10754146773Ssam #include <inttypes.h> 10755146773Ssam# endif 10756146773Ssam #include <stdio.h> 10757146773Ssam #include <sys/types.h> 10758146773Ssam 10759146773Ssam main() 10760146773Ssam { 10761146773Ssam u_int64_t t = 1; 10762146773Ssam char strbuf[16+1]; 10763146773Ssam sprintf(strbuf, "%016qx", t << 32); 10764146773Ssam if (strcmp(strbuf, "0000000100000000") == 0) 10765146773Ssam exit(0); 10766146773Ssam else 10767146773Ssam exit(1); 10768146773Ssam } 10769146773Ssam 10770146773Ssam 10771146773Ssam_ACEOF 10772146773Ssamrm -f conftest$ac_exeext 10773146773Ssamif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10774146773Ssam (eval $ac_link) 2>&5 10775146773Ssam ac_status=$? 10776146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777146773Ssam (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10778146773Ssam { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10779146773Ssam (eval $ac_try) 2>&5 10780146773Ssam ac_status=$? 10781146773Ssam echo "$as_me:$LINENO: \$? = $ac_status" >&5 10782146773Ssam (exit $ac_status); }; }; then 10783146773Ssam 10784146773Ssam cat >>confdefs.h <<\_ACEOF 10785146773Ssam#define PRId64 "qd" 10786146773Ssam_ACEOF 10787146773Ssam 10788146773Ssam cat >>confdefs.h <<\_ACEOF 10789146773Ssam#define PRIo64 "qo" 10790146773Ssam_ACEOF 10791146773Ssam 10792146773Ssam cat >>confdefs.h <<\_ACEOF 10793146773Ssam#define PRIx64 "qx" 10794146773Ssam_ACEOF 10795146773Ssam 10796146773Ssam cat >>confdefs.h <<\_ACEOF 10797146773Ssam#define PRIu64 "qu" 10798146773Ssam_ACEOF 10799146773Ssam 10800146773Ssam echo "$as_me:$LINENO: result: yes" >&5 10801146773Ssamecho "${ECHO_T}yes" >&6 10802146773Ssam 10803146773Ssamelse 10804146773Ssam echo "$as_me: program exited with status $ac_status" >&5 10805146773Ssamecho "$as_me: failed program was:" >&5 10806146773Ssamsed 's/^/| /' conftest.$ac_ext >&5 10807146773Ssam 10808146773Ssam( exit $ac_status ) 10809146773Ssam 10810146773Ssam echo "$as_me:$LINENO: result: no" >&5 10811146773Ssamecho "${ECHO_T}no" >&6 10812146773Ssam 10813146773Ssam { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5 10814146773Ssamecho "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;} 10815146773Ssam { (exit 1); exit 1; }; } 10816146773Ssam 10817146773Ssam 10818146773Ssamfi 10819146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10820146773Ssamfi 10821146773Ssam 10822146773Ssam 10823146773Ssam 10824146773Ssamfi 10825146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10826146773Ssamfi 10827146773Ssam 10828146773Ssam 10829146773Ssam 10830146773Ssamfi 10831146773Ssamrm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10832146773Ssamfi 10833146773Ssam 10834146773Ssamfi 10835146773Ssam 1083626180Sfennerrm -f os-proto.h 1083726180Sfenner if test "${LBL_CFLAGS+set}" = set; then 1083826180Sfenner V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 1083926180Sfenner fi 1084039297Sfenner if test -f .devel ; then 1084139297Sfenner if test "$GCC" = yes ; then 1084239297Sfenner if test "${LBL_CFLAGS+set}" != set; then 1084339297Sfenner if test "$ac_cv_prog_cc_g" = yes ; then 1084439297Sfenner V_CCOPT="-g $V_CCOPT" 1084539297Sfenner fi 1084639297Sfenner V_CCOPT="$V_CCOPT -Wall" 1084739297Sfenner if test $ac_cv_lbl_gcc_vers -gt 1 ; then 10848127668Sbms V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W" 1084939297Sfenner fi 1085026180Sfenner fi 1085139297Sfenner else 1085298524Sfenner case "$host_os" in 1085339297Sfenner 1085439297Sfenner irix6*) 1085539297Sfenner V_CCOPT="$V_CCOPT -n32" 1085639297Sfenner ;; 1085739297Sfenner 1085839297Sfenner *) 1085939297Sfenner ;; 1086039297Sfenner esac 1086126180Sfenner fi 1086298524Sfenner os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 1086326180Sfenner name="lbl/os-$os.h" 1086426180Sfenner if test -f $name ; then 1086526180Sfenner ln -s $name os-proto.h 10866127668Sbms cat >>confdefs.h <<\_ACEOF 1086726180Sfenner#define HAVE_OS_PROTO_H 1 10868127668Sbms_ACEOF 1086926180Sfenner 1087026180Sfenner else 10871127668Sbms { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 10872127668Sbmsecho "$as_me: WARNING: can't find $name" >&2;} 1087326180Sfenner fi 1087426180Sfenner fi 1087526180Sfenner 10876127668Sbmsecho "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 10877127668Sbmsecho $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 10878127668Sbms if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 10879127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1088017680Spstelse 10881127668Sbms cat >conftest.$ac_ext <<_ACEOF 10882127668Sbms#line $LINENO "configure" 10883127668Sbms/* confdefs.h. */ 10884127668Sbms_ACEOF 10885127668Sbmscat confdefs.h >>conftest.$ac_ext 10886127668Sbmscat >>conftest.$ac_ext <<_ACEOF 10887127668Sbms/* end confdefs.h. */ 1088817680Spst 1088917680Spst# include <sys/types.h> 1089017680Spst# include <sys/socket.h> 10891127668Sbmsint 10892127668Sbmsmain () 10893127668Sbms{ 1089417680Spstu_int i = sizeof(((struct sockaddr *)0)->sa_len) 10895127668Sbms ; 10896127668Sbms return 0; 10897127668Sbms} 10898127668Sbms_ACEOF 10899127668Sbmsrm -f conftest.$ac_objext 10900127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10901127668Sbms (eval $ac_compile) 2>&5 10902127668Sbms ac_status=$? 10903127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10904127668Sbms (exit $ac_status); } && 10905127668Sbms { ac_try='test -s conftest.$ac_objext' 10906127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10907127668Sbms (eval $ac_try) 2>&5 10908127668Sbms ac_status=$? 10909127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910127668Sbms (exit $ac_status); }; }; then 1091139297Sfenner ac_cv_lbl_sockaddr_has_sa_len=yes 1091217680Spstelse 10913127668Sbms echo "$as_me: failed program was:" >&5 10914127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 10915127668Sbms 10916127668Sbmsac_cv_lbl_sockaddr_has_sa_len=no 1091717680Spstfi 10918127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1091917680Spstfi 1092017680Spst 10921127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 10922127668Sbmsecho "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6 1092339297Sfenner if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 10924127668Sbms cat >>confdefs.h <<\_ACEOF 1092517680Spst#define HAVE_SOCKADDR_SA_LEN 1 10926127668Sbms_ACEOF 1092717680Spst 1092817680Spst fi 1092917680Spst 10930127668Sbmsecho "$as_me:$LINENO: checking if unaligned accesses fail" >&5 10931127668Sbmsecho $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6 10932127668Sbms if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 10933127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1093417680Spstelse 1093598524Sfenner case "$host_cpu" in 1093617680Spst 10937127668Sbms # 10938127668Sbms # These are CPU types where: 10939127668Sbms # 10940127668Sbms # the CPU faults on an unaligned access, but at least some 10941127668Sbms # OSes that support that CPU catch the fault and simulate 10942127668Sbms # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 10943127668Sbms # the simulation is slow, so we don't want to use it; 10944127668Sbms # 10945127668Sbms # the CPU, I infer (from the old 10946127668Sbms # 1094775115Sfenner # XXX: should also check that they don't do weird things (like on arm) 10948127668Sbms # 10949127668Sbms # comment) doesn't fault on unaligned accesses, but doesn't 10950127668Sbms # do a normal unaligned fetch, either (e.g., presumably, ARM); 10951127668Sbms # 10952127668Sbms # for whatever reason, the test program doesn't work 10953127668Sbms # (this has been claimed to be the case for several of those 10954127668Sbms # CPUs - I don't know what the problem is; the problem 10955127668Sbms # was reported as "the test program dumps core" for SuperH, 10956127668Sbms # but that's what the test program is *supposed* to do - 10957127668Sbms # it dumps core before it writes anything, so the test 10958127668Sbms # for an empty output file should find an empty output 10959127668Sbms # file and conclude that unaligned accesses don't work). 10960127668Sbms # 10961127668Sbms # This run-time test won't work if you're cross-compiling, so 10962127668Sbms # in order to support cross-compiling for a particular CPU, 10963127668Sbms # we have to wire in the list of CPU types anyway, as far as 10964127668Sbms # I know, so perhaps we should just have a set of CPUs on 10965127668Sbms # which we know it doesn't work, a set of CPUs on which we 10966127668Sbms # know it does work, and have the script just fail on other 10967127668Sbms # cpu types and update it when such a failure occurs. 10968127668Sbms # 10969127668Sbms alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1) 1097039297Sfenner ac_cv_lbl_unaligned_fail=yes 1097117680Spst ;; 1097217680Spst 1097317680Spst *) 1097417680Spst cat >conftest.c <<EOF 1097517680Spst# include <sys/types.h> 1097617680Spst# include <sys/wait.h> 1097717680Spst# include <stdio.h> 1097817680Spst unsigned char a[5] = { 1, 2, 3, 4, 5 }; 1097917680Spst main() { 1098017680Spst unsigned int i; 1098117680Spst pid_t pid; 1098217680Spst int status; 1098317680Spst /* avoid "core dumped" message */ 1098417680Spst pid = fork(); 1098517680Spst if (pid < 0) 1098617680Spst exit(2); 1098717680Spst if (pid > 0) { 1098817680Spst /* parent */ 1098917680Spst pid = waitpid(pid, &status, 0); 1099017680Spst if (pid < 0) 1099117680Spst exit(3); 1099217680Spst exit(!WIFEXITED(status)); 1099317680Spst } 1099417680Spst /* child */ 1099526180Sfenner i = *(unsigned int *)&a[1]; 1099617680Spst printf("%d\n", i); 1099717680Spst exit(0); 1099817680Spst } 1099917680SpstEOF 1100017680Spst ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 1100117680Spst conftest.c $LIBS >/dev/null 2>&1 1100217680Spst if test ! -x conftest ; then 1100339297Sfenner ac_cv_lbl_unaligned_fail=yes 1100417680Spst else 1100517680Spst ./conftest >conftest.out 1100617680Spst if test ! -s conftest.out ; then 1100739297Sfenner ac_cv_lbl_unaligned_fail=yes 1100817680Spst else 1100939297Sfenner ac_cv_lbl_unaligned_fail=no 1101017680Spst fi 1101117680Spst fi 1101217680Spst rm -f conftest* core core.conftest 1101317680Spst ;; 1101417680Spst esac 1101517680Spstfi 1101617680Spst 11017127668Sbms echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 11018127668Sbmsecho "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6 1101939297Sfenner if test $ac_cv_lbl_unaligned_fail = yes ; then 11020127668Sbms cat >>confdefs.h <<\_ACEOF 1102117680Spst#define LBL_ALIGN 1 11022127668Sbms_ACEOF 1102317680Spst 1102417680Spst fi 1102517680Spst 1102656893Sfenner 11027127668Sbms echo "$as_me:$LINENO: checking for h_errno" >&5 11028127668Sbmsecho $ECHO_N "checking for h_errno... $ECHO_C" >&6 11029127668Sbms if test "${ac_cv_var_h_errno+set}" = set; then 11030127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1103139297Sfennerelse 11032127668Sbms cat >conftest.$ac_ext <<_ACEOF 11033127668Sbms#line $LINENO "configure" 11034127668Sbms/* confdefs.h. */ 11035127668Sbms_ACEOF 11036127668Sbmscat confdefs.h >>conftest.$ac_ext 11037127668Sbmscat >>conftest.$ac_ext <<_ACEOF 11038127668Sbms/* end confdefs.h. */ 1103956893Sfenner 1104056893Sfenner# include <sys/types.h> 1104156893Sfenner# include <netdb.h> 11042127668Sbmsint 11043127668Sbmsmain () 11044127668Sbms{ 1104556893Sfennerint foo = h_errno; 11046127668Sbms ; 11047127668Sbms return 0; 11048127668Sbms} 11049127668Sbms_ACEOF 11050127668Sbmsrm -f conftest.$ac_objext 11051127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11052127668Sbms (eval $ac_compile) 2>&5 11053127668Sbms ac_status=$? 11054127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11055127668Sbms (exit $ac_status); } && 11056127668Sbms { ac_try='test -s conftest.$ac_objext' 11057127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11058127668Sbms (eval $ac_try) 2>&5 11059127668Sbms ac_status=$? 11060127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11061127668Sbms (exit $ac_status); }; }; then 1106256893Sfenner ac_cv_var_h_errno=yes 1106356893Sfennerelse 11064127668Sbms echo "$as_me: failed program was:" >&5 11065127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 11066127668Sbms 11067127668Sbmsac_cv_var_h_errno=no 1106839297Sfennerfi 11069127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 1107056893Sfennerfi 1107139297Sfenner 11072127668Sbms echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5 11073127668Sbmsecho "${ECHO_T}$ac_cv_var_h_errno" >&6 1107456893Sfenner if test "$ac_cv_var_h_errno" = "yes"; then 11075127668Sbms cat >>confdefs.h <<\_ACEOF 1107656893Sfenner#define HAVE_H_ERRNO 1 11077127668Sbms_ACEOF 1107856893Sfenner 1107956893Sfenner fi 1108056893Sfenner 1108156893Sfenner 11082127668Sbms 1108375115Sfenner# Check whether --with-crypto or --without-crypto was given. 1108475115Sfennerif test "${with_crypto+set}" = set; then 1108575115Sfenner withval="$with_crypto" 11086127668Sbms 1108775115Sfennerelse 11088127668Sbms 11089127668Sbmsecho "$as_me:$LINENO: checking for SSLeay" >&5 11090127668Sbmsecho $ECHO_N "checking for SSLeay... $ECHO_C" >&6 1109156893Sfennerac_cv_ssleay_path=no 1109256893Sfennerincdir=no 11093146773Ssam 11094146773SsamXprefix=`eval echo $prefix` 11095146773Ssam 11096146773Ssamfor dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do 11097127668Sbms # 11098127668Sbms # XXX - is there a better way to check if a given library is 11099127668Sbms # in a given directory than checking each of the possible 11100127668Sbms # shared library suffixes? 11101127668Sbms # 11102127668Sbms # Are there any other suffixes we need to look for? Do we have to 11103127668Sbms # worry about ".so.{version}"? 11104127668Sbms # 11105127668Sbms # Or should we just look for "libcrypto.*"? 11106127668Sbms # 11107127668Sbms if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \ 11108127668Sbms -f $dir/lib/libcrypto.so -o \ 11109127668Sbms -f $dir/lib/libcrypto.sl -o \ 11110127668Sbms -f $dir/lib/libcrypto.dylib \); then 1111156893Sfenner ac_cv_ssleay_path=$dir 1111256893Sfenner fi 1111398524Sfenner if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then 1111456893Sfenner incdir="-I$dir/include" 1111556893Sfenner fi 1111656893Sfenner if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 1111756893Sfenner break; 1111856893Sfenner else 1111956893Sfenner ac_cv_ssleay_path=no 1112056893Sfenner incdir=no 1112156893Sfenner fi 1112256893Sfennerdone 11123127668Sbmsecho "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5 11124127668Sbmsecho "${ECHO_T}$ac_cv_ssleay_path" >&6 1112556893Sfennerif test "$ac_cv_ssleay_path" != no; then 1112656893Sfenner V_INCLS="$V_INCLS $incdir" 1112775115Sfenner LDFLAGS="-L$dir/lib $LDFLAGS" 1112856893Sfenner if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 1112956893Sfenner LIBS="$LIBS -lRSAglue" 1113056893Sfenner fi 1113156893Sfenner if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 1113256893Sfenner LIBS="$LIBS -lrsaref" 1113356893Sfenner fi 11134127668Sbms 11135146773Ssamecho "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 11136146773Ssamecho $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6 11137146773Ssamif test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 11138127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1113956893Sfennerelse 11140127668Sbms ac_check_lib_save_LIBS=$LIBS 1114156893SfennerLIBS="-lcrypto $LIBS" 11142127668Sbmscat >conftest.$ac_ext <<_ACEOF 11143127668Sbms#line $LINENO "configure" 11144127668Sbms/* confdefs.h. */ 11145127668Sbms_ACEOF 11146127668Sbmscat confdefs.h >>conftest.$ac_ext 11147127668Sbmscat >>conftest.$ac_ext <<_ACEOF 11148127668Sbms/* end confdefs.h. */ 11149127668Sbms 1115056893Sfenner/* Override any gcc2 internal prototype to avoid an error. */ 11151127668Sbms#ifdef __cplusplus 11152127668Sbmsextern "C" 11153127668Sbms#endif 1115456893Sfenner/* We use char because int might match the return type of a gcc2 11155127668Sbms builtin and then its argument prototype would still apply. */ 11156146773Ssamchar DES_cbc_encrypt (); 11157127668Sbmsint 11158127668Sbmsmain () 11159127668Sbms{ 11160146773SsamDES_cbc_encrypt (); 11161127668Sbms ; 11162127668Sbms return 0; 11163127668Sbms} 11164127668Sbms_ACEOF 11165127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext 11166127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11167127668Sbms (eval $ac_link) 2>&5 11168127668Sbms ac_status=$? 11169127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170127668Sbms (exit $ac_status); } && 11171127668Sbms { ac_try='test -s conftest$ac_exeext' 11172127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173127668Sbms (eval $ac_try) 2>&5 11174127668Sbms ac_status=$? 11175127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176127668Sbms (exit $ac_status); }; }; then 11177146773Ssam ac_cv_lib_crypto_DES_cbc_encrypt=yes 1117856893Sfennerelse 11179127668Sbms echo "$as_me: failed program was:" >&5 11180127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 1118156893Sfenner 11182146773Ssamac_cv_lib_crypto_DES_cbc_encrypt=no 1118356893Sfennerfi 11184127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11185127668SbmsLIBS=$ac_check_lib_save_LIBS 11186127668Sbmsfi 11187146773Ssamecho "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 11188146773Ssamecho "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6 11189146773Ssamif test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then 11190127668Sbms cat >>confdefs.h <<_ACEOF 11191127668Sbms#define HAVE_LIBCRYPTO 1 11192127668Sbms_ACEOF 1119356893Sfenner 1119456893Sfenner LIBS="-lcrypto $LIBS" 1119556893Sfenner 1119656893Sfennerfi 1119756893Sfenner 1119856893Sfenner 1119956893Sfenner CPPFLAGS="$CPPFLAGS $V_INCLS" 11200127668Sbms 11201127668Sbmsfor ac_header in openssl/evp.h 1120256893Sfennerdo 11203127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11204127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 11205127668Sbms echo "$as_me:$LINENO: checking for $ac_header" >&5 11206127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11207127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 11208127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 11209127668Sbmsfi 11210127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11211127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 1121256893Sfennerelse 11213127668Sbms # Is the header compilable? 11214127668Sbmsecho "$as_me:$LINENO: checking $ac_header usability" >&5 11215127668Sbmsecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11216127668Sbmscat >conftest.$ac_ext <<_ACEOF 11217127668Sbms#line $LINENO "configure" 11218127668Sbms/* confdefs.h. */ 11219127668Sbms_ACEOF 11220127668Sbmscat confdefs.h >>conftest.$ac_ext 11221127668Sbmscat >>conftest.$ac_ext <<_ACEOF 11222127668Sbms/* end confdefs.h. */ 11223127668Sbms$ac_includes_default 11224127668Sbms#include <$ac_header> 11225127668Sbms_ACEOF 11226127668Sbmsrm -f conftest.$ac_objext 11227127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11228127668Sbms (eval $ac_compile) 2>&5 11229127668Sbms ac_status=$? 11230127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11231127668Sbms (exit $ac_status); } && 11232127668Sbms { ac_try='test -s conftest.$ac_objext' 11233127668Sbms { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11234127668Sbms (eval $ac_try) 2>&5 11235127668Sbms ac_status=$? 11236127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237127668Sbms (exit $ac_status); }; }; then 11238127668Sbms ac_header_compiler=yes 1123956893Sfennerelse 11240127668Sbms echo "$as_me: failed program was:" >&5 11241127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 11242127668Sbms 11243127668Sbmsac_header_compiler=no 1124456893Sfennerfi 11245127668Sbmsrm -f conftest.$ac_objext conftest.$ac_ext 11246127668Sbmsecho "$as_me:$LINENO: result: $ac_header_compiler" >&5 11247127668Sbmsecho "${ECHO_T}$ac_header_compiler" >&6 11248127668Sbms 11249127668Sbms# Is the header present? 11250127668Sbmsecho "$as_me:$LINENO: checking $ac_header presence" >&5 11251127668Sbmsecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11252127668Sbmscat >conftest.$ac_ext <<_ACEOF 11253127668Sbms#line $LINENO "configure" 11254127668Sbms/* confdefs.h. */ 11255127668Sbms_ACEOF 11256127668Sbmscat confdefs.h >>conftest.$ac_ext 11257127668Sbmscat >>conftest.$ac_ext <<_ACEOF 11258127668Sbms/* end confdefs.h. */ 11259127668Sbms#include <$ac_header> 11260127668Sbms_ACEOF 11261127668Sbmsif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11262127668Sbms (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11263127668Sbms ac_status=$? 11264127668Sbms grep -v '^ *+' conftest.er1 >conftest.err 11265127668Sbms rm -f conftest.er1 11266127668Sbms cat conftest.err >&5 11267127668Sbms echo "$as_me:$LINENO: \$? = $ac_status" >&5 11268127668Sbms (exit $ac_status); } >/dev/null; then 11269127668Sbms if test -s conftest.err; then 11270127668Sbms ac_cpp_err=$ac_c_preproc_warn_flag 11271127668Sbms else 11272127668Sbms ac_cpp_err= 11273127668Sbms fi 11274127668Sbmselse 11275127668Sbms ac_cpp_err=yes 1127656893Sfennerfi 11277127668Sbmsif test -z "$ac_cpp_err"; then 11278127668Sbms ac_header_preproc=yes 1127956893Sfennerelse 11280127668Sbms echo "$as_me: failed program was:" >&5 11281127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 11282127668Sbms 11283127668Sbms ac_header_preproc=no 1128456893Sfennerfi 11285127668Sbmsrm -f conftest.err conftest.$ac_ext 11286127668Sbmsecho "$as_me:$LINENO: result: $ac_header_preproc" >&5 11287127668Sbmsecho "${ECHO_T}$ac_header_preproc" >&6 1128856893Sfenner 11289127668Sbms# So? What about this header? 11290127668Sbmscase $ac_header_compiler:$ac_header_preproc in 11291127668Sbms yes:no ) 11292127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11293127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11294127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11295127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11296127668Sbms ( 11297127668Sbms cat <<\_ASBOX 11298127668Sbms## ------------------------------------ ## 11299127668Sbms## Report this to bug-autoconf@gnu.org. ## 11300127668Sbms## ------------------------------------ ## 11301127668Sbms_ASBOX 11302127668Sbms ) | 11303127668Sbms sed "s/^/$as_me: WARNING: /" >&2 11304127668Sbms ;; 11305127668Sbms no:yes ) 11306127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11307127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11308127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11309127668Sbmsecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11310127668Sbms { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11311127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11312127668Sbms ( 11313127668Sbms cat <<\_ASBOX 11314127668Sbms## ------------------------------------ ## 11315127668Sbms## Report this to bug-autoconf@gnu.org. ## 11316127668Sbms## ------------------------------------ ## 11317127668Sbms_ASBOX 11318127668Sbms ) | 11319127668Sbms sed "s/^/$as_me: WARNING: /" >&2 11320127668Sbms ;; 11321127668Sbmsesac 11322127668Sbmsecho "$as_me:$LINENO: checking for $ac_header" >&5 11323127668Sbmsecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11324127668Sbmsif eval "test \"\${$as_ac_Header+set}\" = set"; then 11325127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1132656893Sfennerelse 11327127668Sbms eval "$as_ac_Header=$ac_header_preproc" 11328127668Sbmsfi 11329127668Sbmsecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11330127668Sbmsecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 1133156893Sfenner 1133256893Sfennerfi 11333127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then 11334127668Sbms cat >>confdefs.h <<_ACEOF 11335127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11336127668Sbms_ACEOF 11337127668Sbms 1133856893Sfennerfi 1133956893Sfenner 11340127668Sbmsdone 1134156893Sfenner 1134256893Sfennerfi 1134356893Sfenner 11344127668Sbmsfi; 1134517680Spst 11346146773Ssamif test "$missing_includes" = "yes"; then 11347146773Ssam CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 11348146773Ssam V_INCLS="$V_INCLS -I\$(srcdir)/missing" 11349146773Ssamfi 1135017680Spst 1135117680Spst 1135217680Spst 1135317680Spst 1135417680Spst 1135556893Sfenner 1135675115Sfenner 11357146773Ssam 1135817680Spst# Find a good install program. We prefer a C program (faster), 1135917680Spst# so one script is as good as another. But avoid the broken or 1136017680Spst# incompatible versions: 1136117680Spst# SysV /etc/install, /usr/sbin/install 1136217680Spst# SunOS /usr/etc/install 1136317680Spst# IRIX /sbin/install 1136417680Spst# AIX /bin/install 11365127668Sbms# AmigaOS /C/install, which installs bootblocks on floppy discs 1136656893Sfenner# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1136717680Spst# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1136817680Spst# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1136917680Spst# ./install, which can be erroneously created by make from ./install.sh. 11370127668Sbmsecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11371127668Sbmsecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1137217680Spstif test -z "$INSTALL"; then 11373127668Sbmsif test "${ac_cv_path_install+set}" = set; then 11374127668Sbms echo $ECHO_N "(cached) $ECHO_C" >&6 1137517680Spstelse 11376127668Sbms as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11377127668Sbmsfor as_dir in $PATH 11378127668Sbmsdo 11379127668Sbms IFS=$as_save_IFS 11380127668Sbms test -z "$as_dir" && as_dir=. 11381127668Sbms # Account for people who put trailing slashes in PATH elements. 11382127668Sbmscase $as_dir/ in 11383127668Sbms ./ | .// | /cC/* | \ 11384127668Sbms /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11385127668Sbms /usr/ucb/* ) ;; 11386127668Sbms *) 11387127668Sbms # OSF1 and SCO ODT 3.0 have their own names for install. 11388127668Sbms # Don't use installbsd from OSF since it installs stuff as root 11389127668Sbms # by default. 11390127668Sbms for ac_prog in ginstall scoinst install; do 11391127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 11392127668Sbms if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11393127668Sbms if test $ac_prog = install && 11394127668Sbms grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11395127668Sbms # AIX install. It has an incompatible calling convention. 11396127668Sbms : 11397127668Sbms elif test $ac_prog = install && 11398127668Sbms grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11399127668Sbms # program-specific install script used by HP pwplus--don't use. 11400127668Sbms : 11401127668Sbms else 11402127668Sbms ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11403127668Sbms break 3 11404127668Sbms fi 11405127668Sbms fi 1140617680Spst done 11407127668Sbms done 11408127668Sbms ;; 11409127668Sbmsesac 11410127668Sbmsdone 1141117680Spst 11412127668Sbms 1141317680Spstfi 1141417680Spst if test "${ac_cv_path_install+set}" = set; then 11415127668Sbms INSTALL=$ac_cv_path_install 1141617680Spst else 1141717680Spst # As a last resort, use the slow shell script. We don't cache a 1141817680Spst # path for INSTALL within a source directory, because that will 1141917680Spst # break other packages using the cache if that directory is 1142017680Spst # removed, or if the path is relative. 11421127668Sbms INSTALL=$ac_install_sh 1142217680Spst fi 1142317680Spstfi 11424127668Sbmsecho "$as_me:$LINENO: result: $INSTALL" >&5 11425127668Sbmsecho "${ECHO_T}$INSTALL" >&6 1142617680Spst 1142717680Spst# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1142817680Spst# It thinks the first close brace ends the variable substitution. 1142917680Spsttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1143017680Spst 11431127668Sbmstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1143256893Sfenner 1143317680Spsttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1143417680Spst 1143517680Spst 11436127668Sbms ac_config_headers="$ac_config_headers config.h" 1143756893Sfenner 1143856893Sfenner 11439127668Sbms ac_config_commands="$ac_config_commands default-1" 1144075115Sfenner 11441127668Sbms ac_config_files="$ac_config_files Makefile" 11442127668Sbmscat >confcache <<\_ACEOF 1144317680Spst# This file is a shell script that caches the results of configure 1144417680Spst# tests run on this system so they can be shared between configure 11445127668Sbms# scripts and configure runs, see configure's option --config-cache. 11446127668Sbms# It is not useful on other systems. If it contains results you don't 11447127668Sbms# want to keep, you may remove or edit it. 1144817680Spst# 11449127668Sbms# config.status only pays attention to the cache file if you give it 11450127668Sbms# the --recheck option to rerun configure. 1145117680Spst# 11452127668Sbms# `ac_cv_env_foo' variables (set or unset) will be overridden when 11453127668Sbms# loading this file, other *unset* `ac_cv_foo' will be assigned the 11454127668Sbms# following values. 11455127668Sbms 11456127668Sbms_ACEOF 11457127668Sbms 1145826180Sfenner# The following way of writing the cache mishandles newlines in values, 1145926180Sfenner# but we know of no workaround that is simple, portable, and efficient. 1146026180Sfenner# So, don't put newlines in cache variables' values. 1146117680Spst# Ultrix sh set writes to stderr and can't be redirected directly, 1146217680Spst# and sets the high bit in the cache file unless we assign to the vars. 11463127668Sbms{ 11464127668Sbms (set) 2>&1 | 11465127668Sbms case `(ac_space=' '; set | grep ac_space) 2>&1` in 11466127668Sbms *ac_space=\ *) 11467127668Sbms # `set' does not quote correctly, so add quotes (double-quote 11468127668Sbms # substitution turns \\\\ into \\, and sed turns \\ into \). 11469127668Sbms sed -n \ 11470127668Sbms "s/'/'\\\\''/g; 11471127668Sbms s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11472127668Sbms ;; 11473127668Sbms *) 11474127668Sbms # `set' quotes correctly as required by POSIX, so do not add quotes. 11475127668Sbms sed -n \ 11476127668Sbms "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11477127668Sbms ;; 11478127668Sbms esac; 11479127668Sbms} | 11480127668Sbms sed ' 11481127668Sbms t clear 11482127668Sbms : clear 11483127668Sbms s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11484127668Sbms t end 11485127668Sbms /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11486127668Sbms : end' >>confcache 11487127668Sbmsif diff $cache_file confcache >/dev/null 2>&1; then :; else 1148817680Spst if test -w $cache_file; then 11489127668Sbms test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11490127668Sbms cat confcache >$cache_file 1149117680Spst else 1149217680Spst echo "not updating unwritable cache $cache_file" 1149317680Spst fi 1149417680Spstfi 1149517680Spstrm -f confcache 1149617680Spst 1149717680Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix 1149817680Spst# Let make expand exec_prefix. 1149917680Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1150017680Spst 11501127668Sbms# VPATH may cause trouble with some makes, so we remove $(srcdir), 11502127668Sbms# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11503127668Sbms# trailing colons and then remove the whole line if VPATH becomes empty 11504127668Sbms# (actually we leave an empty line to preserve line numbers). 1150517680Spstif test "x$srcdir" = x.; then 11506127668Sbms ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11507127668Sbmss/:*\$(srcdir):*/:/; 11508127668Sbmss/:*\${srcdir}:*/:/; 11509127668Sbmss/:*@srcdir@:*/:/; 11510127668Sbmss/^\([^=]*=[ ]*\):*/\1/; 11511127668Sbmss/:*$//; 11512127668Sbmss/^[^=]*=[ ]*$//; 11513127668Sbms}' 1151417680Spstfi 1151517680Spst 1151656893SfennerDEFS=-DHAVE_CONFIG_H 1151717680Spst 11518127668Sbmsac_libobjs= 11519127668Sbmsac_ltlibobjs= 11520127668Sbmsfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11521127668Sbms # 1. Remove the extension, and $U if already installed. 11522127668Sbms ac_i=`echo "$ac_i" | 11523127668Sbms sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11524127668Sbms # 2. Add them. 11525127668Sbms ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11526127668Sbms ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11527127668Sbmsdone 11528127668SbmsLIBOBJS=$ac_libobjs 11529127668Sbms 11530127668SbmsLTLIBOBJS=$ac_ltlibobjs 11531127668Sbms 11532127668Sbms 11533127668Sbms 1153417680Spst: ${CONFIG_STATUS=./config.status} 11535127668Sbmsac_clean_files_save=$ac_clean_files 11536127668Sbmsac_clean_files="$ac_clean_files $CONFIG_STATUS" 11537127668Sbms{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11538127668Sbmsecho "$as_me: creating $CONFIG_STATUS" >&6;} 11539127668Sbmscat >$CONFIG_STATUS <<_ACEOF 11540127668Sbms#! $SHELL 11541127668Sbms# Generated by $as_me. 1154217680Spst# Run this file to recreate the current configuration. 1154317680Spst# Compiler output produced by configure, useful for debugging 11544127668Sbms# configure, is in config.log if it exists. 1154517680Spst 11546127668Sbmsdebug=false 11547127668Sbmsac_cs_recheck=false 11548127668Sbmsac_cs_silent=false 11549127668SbmsSHELL=\${CONFIG_SHELL-$SHELL} 11550127668Sbms_ACEOF 11551127668Sbms 11552127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 11553127668Sbms## --------------------- ## 11554127668Sbms## M4sh Initialization. ## 11555127668Sbms## --------------------- ## 11556127668Sbms 11557127668Sbms# Be Bourne compatible 11558127668Sbmsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11559127668Sbms emulate sh 11560127668Sbms NULLCMD=: 11561127668Sbms # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11562127668Sbms # is contrary to our usage. Disable this feature. 11563127668Sbms alias -g '${1+"$@"}'='"$@"' 11564127668Sbmselif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11565127668Sbms set -o posix 11566127668Sbmsfi 11567127668Sbms 11568127668Sbms# Support unset when possible. 11569127668Sbmsif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 11570127668Sbms as_unset=unset 11571127668Sbmselse 11572127668Sbms as_unset=false 11573127668Sbmsfi 11574127668Sbms 11575127668Sbms 11576127668Sbms# Work around bugs in pre-3.0 UWIN ksh. 11577127668Sbms$as_unset ENV MAIL MAILPATH 11578127668SbmsPS1='$ ' 11579127668SbmsPS2='> ' 11580127668SbmsPS4='+ ' 11581127668Sbms 11582127668Sbms# NLS nuisances. 11583127668Sbmsfor as_var in \ 11584127668Sbms LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11585127668Sbms LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11586127668Sbms LC_TELEPHONE LC_TIME 1158717680Spstdo 11588127668Sbms if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 11589127668Sbms eval $as_var=C; export $as_var 11590127668Sbms else 11591127668Sbms $as_unset $as_var 11592127668Sbms fi 1159317680Spstdone 1159417680Spst 11595127668Sbms# Required to use basename. 11596127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then 11597127668Sbms as_expr=expr 11598127668Sbmselse 11599127668Sbms as_expr=false 11600127668Sbmsfi 1160117680Spst 11602127668Sbmsif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11603127668Sbms as_basename=basename 11604127668Sbmselse 11605127668Sbms as_basename=false 11606127668Sbmsfi 1160717680Spst 1160817680Spst 11609127668Sbms# Name of the executable. 11610127668Sbmsas_me=`$as_basename "$0" || 11611127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11612127668Sbms X"$0" : 'X\(//\)$' \| \ 11613127668Sbms X"$0" : 'X\(/\)$' \| \ 11614127668Sbms . : '\(.\)' 2>/dev/null || 11615127668Sbmsecho X/"$0" | 11616127668Sbms sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11617127668Sbms /^X\/\(\/\/\)$/{ s//\1/; q; } 11618127668Sbms /^X\/\(\/\).*/{ s//\1/; q; } 11619127668Sbms s/.*/./; q'` 1162026180Sfenner 1162126180Sfenner 11622127668Sbms# PATH needs CR, and LINENO needs CR and PATH. 11623127668Sbms# Avoid depending upon Character Ranges. 11624127668Sbmsas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11625127668Sbmsas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11626127668Sbmsas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11627127668Sbmsas_cr_digits='0123456789' 11628127668Sbmsas_cr_alnum=$as_cr_Letters$as_cr_digits 11629127668Sbms 11630127668Sbms# The user is always right. 11631127668Sbmsif test "${PATH_SEPARATOR+set}" != set; then 11632127668Sbms echo "#! /bin/sh" >conf$$.sh 11633127668Sbms echo "exit 0" >>conf$$.sh 11634127668Sbms chmod +x conf$$.sh 11635127668Sbms if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11636127668Sbms PATH_SEPARATOR=';' 1163726180Sfenner else 11638127668Sbms PATH_SEPARATOR=: 1163926180Sfenner fi 11640127668Sbms rm -f conf$$.sh 11641127668Sbmsfi 11642127668Sbms 11643127668Sbms 11644127668Sbms as_lineno_1=$LINENO 11645127668Sbms as_lineno_2=$LINENO 11646127668Sbms as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11647127668Sbms test "x$as_lineno_1" != "x$as_lineno_2" && 11648127668Sbms test "x$as_lineno_3" = "x$as_lineno_2" || { 11649127668Sbms # Find who we are. Look in the path if we contain no path at all 11650127668Sbms # relative or not. 11651127668Sbms case $0 in 11652127668Sbms *[\\/]* ) as_myself=$0 ;; 11653127668Sbms *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11654127668Sbmsfor as_dir in $PATH 11655127668Sbmsdo 11656127668Sbms IFS=$as_save_IFS 11657127668Sbms test -z "$as_dir" && as_dir=. 11658127668Sbms test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11659127668Sbmsdone 11660127668Sbms 11661127668Sbms ;; 11662127668Sbms esac 11663127668Sbms # We did not find ourselves, most probably we were run as `sh COMMAND' 11664127668Sbms # in which case we are not to be found in the path. 11665127668Sbms if test "x$as_myself" = x; then 11666127668Sbms as_myself=$0 11667127668Sbms fi 11668127668Sbms if test ! -f "$as_myself"; then 11669127668Sbms { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11670127668Sbmsecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11671127668Sbms { (exit 1); exit 1; }; } 11672127668Sbms fi 11673127668Sbms case $CONFIG_SHELL in 11674127668Sbms '') 11675127668Sbms as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11676127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11677127668Sbmsdo 11678127668Sbms IFS=$as_save_IFS 11679127668Sbms test -z "$as_dir" && as_dir=. 11680127668Sbms for as_base in sh bash ksh sh5; do 11681127668Sbms case $as_dir in 11682127668Sbms /*) 11683127668Sbms if ("$as_dir/$as_base" -c ' 11684127668Sbms as_lineno_1=$LINENO 11685127668Sbms as_lineno_2=$LINENO 11686127668Sbms as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11687127668Sbms test "x$as_lineno_1" != "x$as_lineno_2" && 11688127668Sbms test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11689127668Sbms $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11690127668Sbms $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11691127668Sbms CONFIG_SHELL=$as_dir/$as_base 11692127668Sbms export CONFIG_SHELL 11693127668Sbms exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11694127668Sbms fi;; 11695127668Sbms esac 11696127668Sbms done 11697127668Sbmsdone 11698127668Sbms;; 11699127668Sbms esac 11700127668Sbms 11701127668Sbms # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11702127668Sbms # uniformly replaced by the line number. The first 'sed' inserts a 11703127668Sbms # line-number line before each line; the second 'sed' does the real 11704127668Sbms # work. The second script uses 'N' to pair each line-number line 11705127668Sbms # with the numbered line, and appends trailing '-' during 11706127668Sbms # substitution so that $LINENO is not a special case at line end. 11707127668Sbms # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11708127668Sbms # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11709127668Sbms sed '=' <$as_myself | 11710127668Sbms sed ' 11711127668Sbms N 11712127668Sbms s,$,-, 11713127668Sbms : loop 11714127668Sbms s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11715127668Sbms t loop 11716127668Sbms s,-$,, 11717127668Sbms s,^['$as_cr_digits']*\n,, 11718127668Sbms ' >$as_me.lineno && 11719127668Sbms chmod +x $as_me.lineno || 11720127668Sbms { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11721127668Sbmsecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11722127668Sbms { (exit 1); exit 1; }; } 11723127668Sbms 11724127668Sbms # Don't try to exec as it changes $[0], causing all sort of problems 11725127668Sbms # (the dirname of $[0] is not the place where we might find the 11726127668Sbms # original and so on. Autoconf is especially sensible to this). 11727127668Sbms . ./$as_me.lineno 11728127668Sbms # Exit status is that of the last command. 11729127668Sbms exit 11730127668Sbms} 11731127668Sbms 11732127668Sbms 11733127668Sbmscase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11734127668Sbms *c*,-n*) ECHO_N= ECHO_C=' 11735127668Sbms' ECHO_T=' ' ;; 11736127668Sbms *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11737127668Sbms *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11738127668Sbmsesac 11739127668Sbms 11740127668Sbmsif expr a : '\(a\)' >/dev/null 2>&1; then 11741127668Sbms as_expr=expr 11742127668Sbmselse 11743127668Sbms as_expr=false 11744127668Sbmsfi 11745127668Sbms 11746127668Sbmsrm -f conf$$ conf$$.exe conf$$.file 11747127668Sbmsecho >conf$$.file 11748127668Sbmsif ln -s conf$$.file conf$$ 2>/dev/null; then 11749127668Sbms # We could just check for DJGPP; but this test a) works b) is more generic 11750127668Sbms # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11751127668Sbms if test -f conf$$.exe; then 11752127668Sbms # Don't use ln at all; we don't have any links 11753127668Sbms as_ln_s='cp -p' 1175426180Sfenner else 11755127668Sbms as_ln_s='ln -s' 1175626180Sfenner fi 11757127668Sbmselif ln conf$$.file conf$$ 2>/dev/null; then 11758127668Sbms as_ln_s=ln 11759127668Sbmselse 11760127668Sbms as_ln_s='cp -p' 11761127668Sbmsfi 11762127668Sbmsrm -f conf$$ conf$$.exe conf$$.file 11763127668Sbms 11764127668Sbmsif mkdir -p . 2>/dev/null; then 11765127668Sbms as_mkdir_p=: 11766127668Sbmselse 11767127668Sbms as_mkdir_p=false 11768127668Sbmsfi 11769127668Sbms 11770127668Sbmsas_executable_p="test -f" 11771127668Sbms 11772127668Sbms# Sed expression to map a string onto a valid CPP name. 11773127668Sbmsas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 11774127668Sbms 11775127668Sbms# Sed expression to map a string onto a valid variable name. 11776127668Sbmsas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 11777127668Sbms 11778127668Sbms 11779127668Sbms# IFS 11780127668Sbms# We need space, tab and new line, in precisely that order. 11781127668Sbmsas_nl=' 11782127668Sbms' 11783127668SbmsIFS=" $as_nl" 11784127668Sbms 11785127668Sbms# CDPATH. 11786127668Sbms$as_unset CDPATH 11787127668Sbms 11788127668Sbmsexec 6>&1 11789127668Sbms 11790127668Sbms# Open the log real soon, to keep \$[0] and so on meaningful, and to 11791127668Sbms# report actual input values of CONFIG_FILES etc. instead of their 11792127668Sbms# values after options handling. Logging --version etc. is OK. 11793127668Sbmsexec 5>>config.log 11794127668Sbms{ 11795127668Sbms echo 11796127668Sbms sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11797127668Sbms## Running $as_me. ## 11798127668Sbms_ASBOX 11799127668Sbms} >&5 11800127668Sbmscat >&5 <<_CSEOF 11801127668Sbms 11802127668SbmsThis file was extended by $as_me, which was 11803127668Sbmsgenerated by GNU Autoconf 2.57. Invocation command line was 11804127668Sbms 11805127668Sbms CONFIG_FILES = $CONFIG_FILES 11806127668Sbms CONFIG_HEADERS = $CONFIG_HEADERS 11807127668Sbms CONFIG_LINKS = $CONFIG_LINKS 11808127668Sbms CONFIG_COMMANDS = $CONFIG_COMMANDS 11809127668Sbms $ $0 $@ 11810127668Sbms 11811127668Sbms_CSEOF 11812127668Sbmsecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11813127668Sbmsecho >&5 11814127668Sbms_ACEOF 11815127668Sbms 11816127668Sbms# Files that config.status was made for. 11817127668Sbmsif test -n "$ac_config_files"; then 11818127668Sbms echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11819127668Sbmsfi 11820127668Sbms 11821127668Sbmsif test -n "$ac_config_headers"; then 11822127668Sbms echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11823127668Sbmsfi 11824127668Sbms 11825127668Sbmsif test -n "$ac_config_links"; then 11826127668Sbms echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11827127668Sbmsfi 11828127668Sbms 11829127668Sbmsif test -n "$ac_config_commands"; then 11830127668Sbms echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11831127668Sbmsfi 11832127668Sbms 11833127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 11834127668Sbms 11835127668Sbmsac_cs_usage="\ 11836127668Sbms\`$as_me' instantiates files from templates according to the 11837127668Sbmscurrent configuration. 11838127668Sbms 11839127668SbmsUsage: $0 [OPTIONS] [FILE]... 11840127668Sbms 11841127668Sbms -h, --help print this help, then exit 11842127668Sbms -V, --version print version number, then exit 11843127668Sbms -q, --quiet do not print progress messages 11844127668Sbms -d, --debug don't remove temporary files 11845127668Sbms --recheck update $as_me by reconfiguring in the same conditions 11846127668Sbms --file=FILE[:TEMPLATE] 11847127668Sbms instantiate the configuration file FILE 11848127668Sbms --header=FILE[:TEMPLATE] 11849127668Sbms instantiate the configuration header FILE 11850127668Sbms 11851127668SbmsConfiguration files: 11852127668Sbms$config_files 11853127668Sbms 11854127668SbmsConfiguration headers: 11855127668Sbms$config_headers 11856127668Sbms 11857127668SbmsConfiguration commands: 11858127668Sbms$config_commands 11859127668Sbms 11860127668SbmsReport bugs to <bug-autoconf@gnu.org>." 11861127668Sbms_ACEOF 11862127668Sbms 11863127668Sbmscat >>$CONFIG_STATUS <<_ACEOF 11864127668Sbmsac_cs_version="\\ 11865127668Sbmsconfig.status 11866127668Sbmsconfigured by $0, generated by GNU Autoconf 2.57, 11867127668Sbms with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11868127668Sbms 11869127668SbmsCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 11870127668SbmsFree Software Foundation, Inc. 11871127668SbmsThis config.status script is free software; the Free Software Foundation 11872127668Sbmsgives unlimited permission to copy, distribute and modify it." 11873127668Sbmssrcdir=$srcdir 11874127668SbmsINSTALL="$INSTALL" 11875127668Sbms_ACEOF 11876127668Sbms 11877127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 11878127668Sbms# If no file are specified by the user, then we need to provide default 11879127668Sbms# value. By we need to know if files were specified by the user. 11880127668Sbmsac_need_defaults=: 11881127668Sbmswhile test $# != 0 11882127668Sbmsdo 11883127668Sbms case $1 in 11884127668Sbms --*=*) 11885127668Sbms ac_option=`expr "x$1" : 'x\([^=]*\)='` 11886127668Sbms ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11887127668Sbms ac_shift=: 11888127668Sbms ;; 11889127668Sbms -*) 11890127668Sbms ac_option=$1 11891127668Sbms ac_optarg=$2 11892127668Sbms ac_shift=shift 11893127668Sbms ;; 11894127668Sbms *) # This is not an option, so the user has probably given explicit 11895127668Sbms # arguments. 11896127668Sbms ac_option=$1 11897127668Sbms ac_need_defaults=false;; 11898127668Sbms esac 11899127668Sbms 11900127668Sbms case $ac_option in 11901127668Sbms # Handling of the options. 11902127668Sbms_ACEOF 11903127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 11904127668Sbms -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11905127668Sbms ac_cs_recheck=: ;; 11906127668Sbms --version | --vers* | -V ) 11907127668Sbms echo "$ac_cs_version"; exit 0 ;; 11908127668Sbms --he | --h) 11909127668Sbms # Conflict between --help and --header 11910127668Sbms { { echo "$as_me:$LINENO: error: ambiguous option: $1 11911127668SbmsTry \`$0 --help' for more information." >&5 11912127668Sbmsecho "$as_me: error: ambiguous option: $1 11913127668SbmsTry \`$0 --help' for more information." >&2;} 11914127668Sbms { (exit 1); exit 1; }; };; 11915127668Sbms --help | --hel | -h ) 11916127668Sbms echo "$ac_cs_usage"; exit 0 ;; 11917127668Sbms --debug | --d* | -d ) 11918127668Sbms debug=: ;; 11919127668Sbms --file | --fil | --fi | --f ) 11920127668Sbms $ac_shift 11921127668Sbms CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11922127668Sbms ac_need_defaults=false;; 11923127668Sbms --header | --heade | --head | --hea ) 11924127668Sbms $ac_shift 11925127668Sbms CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11926127668Sbms ac_need_defaults=false;; 11927127668Sbms -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11928127668Sbms | -silent | --silent | --silen | --sile | --sil | --si | --s) 11929127668Sbms ac_cs_silent=: ;; 11930127668Sbms 11931127668Sbms # This is an error. 11932127668Sbms -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11933127668SbmsTry \`$0 --help' for more information." >&5 11934127668Sbmsecho "$as_me: error: unrecognized option: $1 11935127668SbmsTry \`$0 --help' for more information." >&2;} 11936127668Sbms { (exit 1); exit 1; }; } ;; 11937127668Sbms 11938127668Sbms *) ac_config_targets="$ac_config_targets $1" ;; 11939127668Sbms 11940127668Sbms esac 11941127668Sbms shift 1194226180Sfennerdone 11943127668Sbms 11944127668Sbmsac_configure_extra_args= 11945127668Sbms 11946127668Sbmsif $ac_cs_silent; then 11947127668Sbms exec 6>/dev/null 11948127668Sbms ac_configure_extra_args="$ac_configure_extra_args --silent" 1194926180Sfennerfi 1195026180Sfenner 11951127668Sbms_ACEOF 11952127668Sbmscat >>$CONFIG_STATUS <<_ACEOF 11953127668Sbmsif \$ac_cs_recheck; then 11954127668Sbms echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11955127668Sbms exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11956127668Sbmsfi 1195717680Spst 11958127668Sbms_ACEOF 11959127668Sbms 11960127668Sbmscat >>$CONFIG_STATUS <<_ACEOF 11961127668Sbms# 11962127668Sbms# INIT-COMMANDS section. 11963127668Sbms# 11964127668Sbms 11965127668Sbms 11966127668Sbms 11967127668Sbms_ACEOF 11968127668Sbms 11969127668Sbms 11970127668Sbms 11971127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 11972127668Sbmsfor ac_config_target in $ac_config_targets 11973127668Sbmsdo 11974127668Sbms case "$ac_config_target" in 11975127668Sbms # Handling of arguments. 11976127668Sbms "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11977127668Sbms "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 11978127668Sbms "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11979127668Sbms *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11980127668Sbmsecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 11981127668Sbms { (exit 1); exit 1; }; };; 1198217680Spst esac 11983127668Sbmsdone 1198417680Spst 11985127668Sbms# If the user did not use the arguments to specify the items to instantiate, 11986127668Sbms# then the envvar interface is used. Set only those that are not. 11987127668Sbms# We use the long form for the default assignment because of an extremely 11988127668Sbms# bizarre bug on SunOS 4.1.3. 11989127668Sbmsif $ac_need_defaults; then 11990127668Sbms test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11991127668Sbms test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11992127668Sbms test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11993127668Sbmsfi 1199417680Spst 11995127668Sbms# Have a temporary directory for convenience. Make it in the build tree 11996127668Sbms# simply because there is no reason to put it here, and in addition, 11997127668Sbms# creating and moving files from /tmp can sometimes cause problems. 11998127668Sbms# Create a temporary directory, and hook for its removal unless debugging. 11999127668Sbms$debug || 12000127668Sbms{ 12001127668Sbms trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12002127668Sbms trap '{ (exit 1); exit 1; }' 1 2 13 15 12003127668Sbms} 12004127668Sbms 12005127668Sbms# Create a (secure) tmp directory for tmp files. 12006127668Sbms 12007127668Sbms{ 12008127668Sbms tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12009127668Sbms test -n "$tmp" && test -d "$tmp" 12010127668Sbms} || 12011127668Sbms{ 12012127668Sbms tmp=./confstat$$-$RANDOM 12013127668Sbms (umask 077 && mkdir $tmp) 12014127668Sbms} || 12015127668Sbms{ 12016127668Sbms echo "$me: cannot create a temporary directory in ." >&2 12017127668Sbms { (exit 1); exit 1; } 12018127668Sbms} 12019127668Sbms 12020127668Sbms_ACEOF 12021127668Sbms 12022127668Sbmscat >>$CONFIG_STATUS <<_ACEOF 12023127668Sbms 12024127668Sbms# 12025127668Sbms# CONFIG_FILES section. 12026127668Sbms# 12027127668Sbms 12028127668Sbms# No need to generate the scripts if there are no CONFIG_FILES. 12029127668Sbms# This happens for instance when ./config.status config.h 12030127668Sbmsif test -n "\$CONFIG_FILES"; then 12031127668Sbms # Protect against being on the right side of a sed subst in config.status. 12032127668Sbms sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12033127668Sbms s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12034127668Sbmss,@SHELL@,$SHELL,;t t 12035127668Sbmss,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12036127668Sbmss,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12037127668Sbmss,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12038127668Sbmss,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12039127668Sbmss,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12040127668Sbmss,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12041127668Sbmss,@exec_prefix@,$exec_prefix,;t t 12042127668Sbmss,@prefix@,$prefix,;t t 12043127668Sbmss,@program_transform_name@,$program_transform_name,;t t 12044127668Sbmss,@bindir@,$bindir,;t t 12045127668Sbmss,@sbindir@,$sbindir,;t t 12046127668Sbmss,@libexecdir@,$libexecdir,;t t 12047127668Sbmss,@datadir@,$datadir,;t t 12048127668Sbmss,@sysconfdir@,$sysconfdir,;t t 12049127668Sbmss,@sharedstatedir@,$sharedstatedir,;t t 12050127668Sbmss,@localstatedir@,$localstatedir,;t t 12051127668Sbmss,@libdir@,$libdir,;t t 12052127668Sbmss,@includedir@,$includedir,;t t 12053127668Sbmss,@oldincludedir@,$oldincludedir,;t t 12054127668Sbmss,@infodir@,$infodir,;t t 12055127668Sbmss,@mandir@,$mandir,;t t 12056127668Sbmss,@build_alias@,$build_alias,;t t 12057127668Sbmss,@host_alias@,$host_alias,;t t 12058127668Sbmss,@target_alias@,$target_alias,;t t 12059127668Sbmss,@DEFS@,$DEFS,;t t 12060127668Sbmss,@ECHO_C@,$ECHO_C,;t t 12061127668Sbmss,@ECHO_N@,$ECHO_N,;t t 12062127668Sbmss,@ECHO_T@,$ECHO_T,;t t 12063127668Sbmss,@LIBS@,$LIBS,;t t 12064127668Sbmss,@build@,$build,;t t 12065127668Sbmss,@build_cpu@,$build_cpu,;t t 12066127668Sbmss,@build_vendor@,$build_vendor,;t t 12067127668Sbmss,@build_os@,$build_os,;t t 12068127668Sbmss,@host@,$host,;t t 12069127668Sbmss,@host_cpu@,$host_cpu,;t t 12070127668Sbmss,@host_vendor@,$host_vendor,;t t 12071127668Sbmss,@host_os@,$host_os,;t t 12072127668Sbmss,@SHLICC2@,$SHLICC2,;t t 12073127668Sbmss,@CC@,$CC,;t t 12074127668Sbmss,@CFLAGS@,$CFLAGS,;t t 12075127668Sbmss,@LDFLAGS@,$LDFLAGS,;t t 12076127668Sbmss,@CPPFLAGS@,$CPPFLAGS,;t t 12077127668Sbmss,@ac_ct_CC@,$ac_ct_CC,;t t 12078127668Sbmss,@EXEEXT@,$EXEEXT,;t t 12079127668Sbmss,@OBJEXT@,$OBJEXT,;t t 12080127668Sbmss,@CPP@,$CPP,;t t 12081127668Sbmss,@EGREP@,$EGREP,;t t 12082127668Sbmss,@LIBOBJS@,$LIBOBJS,;t t 12083127668Sbmss,@V_CCOPT@,$V_CCOPT,;t t 12084127668Sbmss,@V_DEFS@,$V_DEFS,;t t 12085127668Sbmss,@V_GROUP@,$V_GROUP,;t t 12086127668Sbmss,@V_INCLS@,$V_INCLS,;t t 12087127668Sbmss,@V_PCAPDEP@,$V_PCAPDEP,;t t 12088127668Sbmss,@LOCALSRC@,$LOCALSRC,;t t 12089127668Sbmss,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 12090127668Sbmss,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12091127668Sbmss,@INSTALL_DATA@,$INSTALL_DATA,;t t 12092127668Sbmss,@LTLIBOBJS@,$LTLIBOBJS,;t t 12093127668SbmsCEOF 12094127668Sbms 12095127668Sbms_ACEOF 12096127668Sbms 12097127668Sbms cat >>$CONFIG_STATUS <<\_ACEOF 12098127668Sbms # Split the substitutions into bite-sized pieces for seds with 12099127668Sbms # small command number limits, like on Digital OSF/1 and HP-UX. 12100127668Sbms ac_max_sed_lines=48 12101127668Sbms ac_sed_frag=1 # Number of current file. 12102127668Sbms ac_beg=1 # First line for current file. 12103127668Sbms ac_end=$ac_max_sed_lines # Line after last line for current file. 12104127668Sbms ac_more_lines=: 12105127668Sbms ac_sed_cmds= 12106127668Sbms while $ac_more_lines; do 12107127668Sbms if test $ac_beg -gt 1; then 12108127668Sbms sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12109127668Sbms else 12110127668Sbms sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12111127668Sbms fi 12112127668Sbms if test ! -s $tmp/subs.frag; then 12113127668Sbms ac_more_lines=false 12114127668Sbms else 12115127668Sbms # The purpose of the label and of the branching condition is to 12116127668Sbms # speed up the sed processing (if there are no `@' at all, there 12117127668Sbms # is no need to browse any of the substitutions). 12118127668Sbms # These are the two extra sed commands mentioned above. 12119127668Sbms (echo ':t 12120127668Sbms /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12121127668Sbms if test -z "$ac_sed_cmds"; then 12122127668Sbms ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12123127668Sbms else 12124127668Sbms ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12125127668Sbms fi 12126127668Sbms ac_sed_frag=`expr $ac_sed_frag + 1` 12127127668Sbms ac_beg=$ac_end 12128127668Sbms ac_end=`expr $ac_end + $ac_max_sed_lines` 12129127668Sbms fi 12130127668Sbms done 12131127668Sbms if test -z "$ac_sed_cmds"; then 12132127668Sbms ac_sed_cmds=cat 1213317680Spst fi 12134127668Sbmsfi # test -n "$CONFIG_FILES" 1213517680Spst 12136127668Sbms_ACEOF 12137127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 12138127668Sbmsfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12139127668Sbms # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12140127668Sbms case $ac_file in 12141127668Sbms - | *:- | *:-:* ) # input from stdin 12142127668Sbms cat >$tmp/stdin 12143127668Sbms ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12144127668Sbms ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12145127668Sbms *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12146127668Sbms ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12147127668Sbms * ) ac_file_in=$ac_file.in ;; 1214817680Spst esac 1214917680Spst 12150127668Sbms # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12151127668Sbms ac_dir=`(dirname "$ac_file") 2>/dev/null || 12152127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12153127668Sbms X"$ac_file" : 'X\(//\)[^/]' \| \ 12154127668Sbms X"$ac_file" : 'X\(//\)$' \| \ 12155127668Sbms X"$ac_file" : 'X\(/\)' \| \ 12156127668Sbms . : '\(.\)' 2>/dev/null || 12157127668Sbmsecho X"$ac_file" | 12158127668Sbms sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12159127668Sbms /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12160127668Sbms /^X\(\/\/\)$/{ s//\1/; q; } 12161127668Sbms /^X\(\/\).*/{ s//\1/; q; } 12162127668Sbms s/.*/./; q'` 12163127668Sbms { if $as_mkdir_p; then 12164127668Sbms mkdir -p "$ac_dir" 12165127668Sbms else 12166127668Sbms as_dir="$ac_dir" 12167127668Sbms as_dirs= 12168127668Sbms while test ! -d "$as_dir"; do 12169127668Sbms as_dirs="$as_dir $as_dirs" 12170127668Sbms as_dir=`(dirname "$as_dir") 2>/dev/null || 12171127668Sbms$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12172127668Sbms X"$as_dir" : 'X\(//\)[^/]' \| \ 12173127668Sbms X"$as_dir" : 'X\(//\)$' \| \ 12174127668Sbms X"$as_dir" : 'X\(/\)' \| \ 12175127668Sbms . : '\(.\)' 2>/dev/null || 12176127668Sbmsecho X"$as_dir" | 12177127668Sbms sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12178127668Sbms /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12179127668Sbms /^X\(\/\/\)$/{ s//\1/; q; } 12180127668Sbms /^X\(\/\).*/{ s//\1/; q; } 12181127668Sbms s/.*/./; q'` 12182127668Sbms done 12183127668Sbms test ! -n "$as_dirs" || mkdir $as_dirs 12184127668Sbms fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12185127668Sbmsecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12186127668Sbms { (exit 1); exit 1; }; }; } 1218726180Sfenner 12188127668Sbms ac_builddir=. 12189127668Sbms 12190127668Sbmsif test "$ac_dir" != .; then 12191127668Sbms ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12192127668Sbms # A "../" for each directory in $ac_dir_suffix. 12193127668Sbms ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12194127668Sbmselse 12195127668Sbms ac_dir_suffix= ac_top_builddir= 12196127668Sbmsfi 12197127668Sbms 12198127668Sbmscase $srcdir in 12199127668Sbms .) # No --srcdir option. We are building in place. 12200127668Sbms ac_srcdir=. 12201127668Sbms if test -z "$ac_top_builddir"; then 12202127668Sbms ac_top_srcdir=. 12203127668Sbms else 12204127668Sbms ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12205127668Sbms fi ;; 12206127668Sbms [\\/]* | ?:[\\/]* ) # Absolute path. 12207127668Sbms ac_srcdir=$srcdir$ac_dir_suffix; 12208127668Sbms ac_top_srcdir=$srcdir ;; 12209127668Sbms *) # Relative path. 12210127668Sbms ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12211127668Sbms ac_top_srcdir=$ac_top_builddir$srcdir ;; 12212127668Sbmsesac 12213127668Sbms# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12214127668Sbms# absolute. 12215127668Sbmsac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12216127668Sbmsac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12217127668Sbmsac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12218127668Sbmsac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12219127668Sbms 12220127668Sbms 12221127668Sbms case $INSTALL in 12222127668Sbms [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12223127668Sbms *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 1222417680Spst esac 1222526180Sfenner 12226127668Sbms if test x"$ac_file" != x-; then 12227127668Sbms { echo "$as_me:$LINENO: creating $ac_file" >&5 12228127668Sbmsecho "$as_me: creating $ac_file" >&6;} 12229127668Sbms rm -f "$ac_file" 12230127668Sbms fi 12231127668Sbms # Let's still pretend it is `configure' which instantiates (i.e., don't 12232127668Sbms # use $as_me), people would be surprised to read: 12233127668Sbms # /* config.h. Generated by config.status. */ 12234127668Sbms if test x"$ac_file" = x-; then 12235127668Sbms configure_input= 12236127668Sbms else 12237127668Sbms configure_input="$ac_file. " 12238127668Sbms fi 12239127668Sbms configure_input=$configure_input"Generated from `echo $ac_file_in | 12240127668Sbms sed 's,.*/,,'` by configure." 1224117680Spst 12242127668Sbms # First look for the input files in the build tree, otherwise in the 12243127668Sbms # src tree. 12244127668Sbms ac_file_inputs=`IFS=: 12245127668Sbms for f in $ac_file_in; do 12246127668Sbms case $f in 12247127668Sbms -) echo $tmp/stdin ;; 12248127668Sbms [\\/$]*) 12249127668Sbms # Absolute (can't be DOS-style, as IFS=:) 12250127668Sbms test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12251127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;} 12252127668Sbms { (exit 1); exit 1; }; } 12253127668Sbms echo $f;; 12254127668Sbms *) # Relative 12255127668Sbms if test -f "$f"; then 12256127668Sbms # Build tree 12257127668Sbms echo $f 12258127668Sbms elif test -f "$srcdir/$f"; then 12259127668Sbms # Source tree 12260127668Sbms echo $srcdir/$f 12261127668Sbms else 12262127668Sbms # /dev/null tree 12263127668Sbms { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12264127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;} 12265127668Sbms { (exit 1); exit 1; }; } 12266127668Sbms fi;; 12267127668Sbms esac 12268127668Sbms done` || { (exit 1); exit 1; } 12269127668Sbms_ACEOF 12270127668Sbmscat >>$CONFIG_STATUS <<_ACEOF 12271127668Sbms sed "$ac_vpsub 12272127668Sbms$extrasub 12273127668Sbms_ACEOF 12274127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 12275127668Sbms:t 12276127668Sbms/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12277127668Sbmss,@configure_input@,$configure_input,;t t 12278127668Sbmss,@srcdir@,$ac_srcdir,;t t 12279127668Sbmss,@abs_srcdir@,$ac_abs_srcdir,;t t 12280127668Sbmss,@top_srcdir@,$ac_top_srcdir,;t t 12281127668Sbmss,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12282127668Sbmss,@builddir@,$ac_builddir,;t t 12283127668Sbmss,@abs_builddir@,$ac_abs_builddir,;t t 12284127668Sbmss,@top_builddir@,$ac_top_builddir,;t t 12285127668Sbmss,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12286127668Sbmss,@INSTALL@,$ac_INSTALL,;t t 12287127668Sbms" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12288127668Sbms rm -f $tmp/stdin 12289127668Sbms if test x"$ac_file" != x-; then 12290127668Sbms mv $tmp/out $ac_file 12291127668Sbms else 12292127668Sbms cat $tmp/out 12293127668Sbms rm -f $tmp/out 12294127668Sbms fi 12295127668Sbms 12296127668Sbmsdone 12297127668Sbms_ACEOF 12298127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 12299127668Sbms 12300127668Sbms# 12301127668Sbms# CONFIG_HEADER section. 12302127668Sbms# 12303127668Sbms 1230456893Sfenner# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1230556893Sfenner# NAME is the cpp macro being defined and VALUE is the value it is being given. 1230656893Sfenner# 1230756893Sfenner# ac_d sets the value in "#define NAME VALUE" lines. 12308127668Sbmsac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12309127668Sbmsac_dB='[ ].*$,\1#\2' 12310127668Sbmsac_dC=' ' 12311127668Sbmsac_dD=',;t' 12312127668Sbms# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12313127668Sbmsac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12314127668Sbmsac_uB='$,\1#\2define\3' 1231556893Sfennerac_uC=' ' 12316127668Sbmsac_uD=',;t' 1231756893Sfenner 12318127668Sbmsfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 1231956893Sfenner # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12320127668Sbms case $ac_file in 12321127668Sbms - | *:- | *:-:* ) # input from stdin 12322127668Sbms cat >$tmp/stdin 12323127668Sbms ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12324127668Sbms ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12325127668Sbms *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12326127668Sbms ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12327127668Sbms * ) ac_file_in=$ac_file.in ;; 1232856893Sfenner esac 1232917680Spst 12330127668Sbms test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12331127668Sbmsecho "$as_me: creating $ac_file" >&6;} 1233256893Sfenner 12333127668Sbms # First look for the input files in the build tree, otherwise in the 12334127668Sbms # src tree. 12335127668Sbms ac_file_inputs=`IFS=: 12336127668Sbms for f in $ac_file_in; do 12337127668Sbms case $f in 12338127668Sbms -) echo $tmp/stdin ;; 12339127668Sbms [\\/$]*) 12340127668Sbms # Absolute (can't be DOS-style, as IFS=:) 12341127668Sbms test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12342127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;} 12343127668Sbms { (exit 1); exit 1; }; } 12344127668Sbms echo $f;; 12345127668Sbms *) # Relative 12346127668Sbms if test -f "$f"; then 12347127668Sbms # Build tree 12348127668Sbms echo $f 12349127668Sbms elif test -f "$srcdir/$f"; then 12350127668Sbms # Source tree 12351127668Sbms echo $srcdir/$f 12352127668Sbms else 12353127668Sbms # /dev/null tree 12354127668Sbms { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12355127668Sbmsecho "$as_me: error: cannot find input file: $f" >&2;} 12356127668Sbms { (exit 1); exit 1; }; } 12357127668Sbms fi;; 12358127668Sbms esac 12359127668Sbms done` || { (exit 1); exit 1; } 12360127668Sbms # Remove the trailing spaces. 12361127668Sbms sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 1236256893Sfenner 12363127668Sbms_ACEOF 1236456893Sfenner 12365127668Sbms# Transform confdefs.h into two sed scripts, `conftest.defines' and 12366127668Sbms# `conftest.undefs', that substitutes the proper values into 12367127668Sbms# config.h.in to produce config.h. The first handles `#define' 12368127668Sbms# templates, and the second `#undef' templates. 12369127668Sbms# And first: Protect against being on the right side of a sed subst in 12370127668Sbms# config.status. Protect against being in an unquoted here document 12371127668Sbms# in config.status. 12372127668Sbmsrm -f conftest.defines conftest.undefs 12373127668Sbms# Using a here document instead of a string reduces the quoting nightmare. 12374127668Sbms# Putting comments in sed scripts is not portable. 12375127668Sbms# 12376127668Sbms# `end' is used to avoid that the second main sed command (meant for 12377127668Sbms# 0-ary CPP macros) applies to n-ary macro definitions. 12378127668Sbms# See the Autoconf documentation for `clear'. 12379127668Sbmscat >confdef2sed.sed <<\_ACEOF 12380127668Sbmss/[\\&,]/\\&/g 12381127668Sbmss,[\\$`],\\&,g 12382127668Sbmst clear 12383127668Sbms: clear 12384127668Sbmss,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12385127668Sbmst end 12386127668Sbmss,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12387127668Sbms: end 12388127668Sbms_ACEOF 12389127668Sbms# If some macros were called several times there might be several times 12390127668Sbms# the same #defines, which is useless. Nevertheless, we may not want to 12391127668Sbms# sort them, since we want the *last* AC-DEFINE to be honored. 12392127668Sbmsuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12393127668Sbmssed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12394127668Sbmsrm -f confdef2sed.sed 1239556893Sfenner 1239656893Sfenner# This sed command replaces #undef with comments. This is necessary, for 1239756893Sfenner# example, in the case of _POSIX_SOURCE, which is predefined and required 1239856893Sfenner# on some systems where configure will not decide to define it. 12399127668Sbmscat >>conftest.undefs <<\_ACEOF 12400127668Sbmss,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12401127668Sbms_ACEOF 1240256893Sfenner 12403127668Sbms# Break up conftest.defines because some shells have a limit on the size 12404127668Sbms# of here documents, and old seds have small limits too (100 cmds). 12405127668Sbmsecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12406127668Sbmsecho ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12407127668Sbmsecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12408127668Sbmsecho ' :' >>$CONFIG_STATUS 12409127668Sbmsrm -f conftest.tail 12410127668Sbmswhile grep . conftest.defines >/dev/null 12411127668Sbmsdo 12412127668Sbms # Write a limited-size here document to $tmp/defines.sed. 12413127668Sbms echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12414127668Sbms # Speed up: don't consider the non `#define' lines. 12415127668Sbms echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12416127668Sbms # Work around the forget-to-reset-the-flag bug. 12417127668Sbms echo 't clr' >>$CONFIG_STATUS 12418127668Sbms echo ': clr' >>$CONFIG_STATUS 12419127668Sbms sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12420127668Sbms echo 'CEOF 12421127668Sbms sed -f $tmp/defines.sed $tmp/in >$tmp/out 12422127668Sbms rm -f $tmp/in 12423127668Sbms mv $tmp/out $tmp/in 12424127668Sbms' >>$CONFIG_STATUS 12425127668Sbms sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12426127668Sbms rm -f conftest.defines 12427127668Sbms mv conftest.tail conftest.defines 12428127668Sbmsdone 12429127668Sbmsrm -f conftest.defines 12430127668Sbmsecho ' fi # grep' >>$CONFIG_STATUS 12431127668Sbmsecho >>$CONFIG_STATUS 1243256893Sfenner 12433127668Sbms# Break up conftest.undefs because some shells have a limit on the size 12434127668Sbms# of here documents, and old seds have small limits too (100 cmds). 12435127668Sbmsecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 1243656893Sfennerrm -f conftest.tail 12437127668Sbmswhile grep . conftest.undefs >/dev/null 1243856893Sfennerdo 12439127668Sbms # Write a limited-size here document to $tmp/undefs.sed. 12440127668Sbms echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12441127668Sbms # Speed up: don't consider the non `#undef' 12442127668Sbms echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12443127668Sbms # Work around the forget-to-reset-the-flag bug. 12444127668Sbms echo 't clr' >>$CONFIG_STATUS 12445127668Sbms echo ': clr' >>$CONFIG_STATUS 12446127668Sbms sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 1244756893Sfenner echo 'CEOF 12448127668Sbms sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12449127668Sbms rm -f $tmp/in 12450127668Sbms mv $tmp/out $tmp/in 12451127668Sbms' >>$CONFIG_STATUS 12452127668Sbms sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12453127668Sbms rm -f conftest.undefs 12454127668Sbms mv conftest.tail conftest.undefs 1245556893Sfennerdone 12456127668Sbmsrm -f conftest.undefs 1245756893Sfenner 12458127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 12459127668Sbms # Let's still pretend it is `configure' which instantiates (i.e., don't 12460127668Sbms # use $as_me), people would be surprised to read: 12461127668Sbms # /* config.h. Generated by config.status. */ 12462127668Sbms if test x"$ac_file" = x-; then 12463127668Sbms echo "/* Generated by configure. */" >$tmp/config.h 1246456893Sfenner else 12465127668Sbms echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12466127668Sbms fi 12467127668Sbms cat $tmp/in >>$tmp/config.h 12468127668Sbms rm -f $tmp/in 12469127668Sbms if test x"$ac_file" != x-; then 12470127668Sbms if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12471127668Sbms { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12472127668Sbmsecho "$as_me: $ac_file is unchanged" >&6;} 12473127668Sbms else 12474127668Sbms ac_dir=`(dirname "$ac_file") 2>/dev/null || 12475127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12476127668Sbms X"$ac_file" : 'X\(//\)[^/]' \| \ 12477127668Sbms X"$ac_file" : 'X\(//\)$' \| \ 12478127668Sbms X"$ac_file" : 'X\(/\)' \| \ 12479127668Sbms . : '\(.\)' 2>/dev/null || 12480127668Sbmsecho X"$ac_file" | 12481127668Sbms sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12482127668Sbms /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12483127668Sbms /^X\(\/\/\)$/{ s//\1/; q; } 12484127668Sbms /^X\(\/\).*/{ s//\1/; q; } 12485127668Sbms s/.*/./; q'` 12486127668Sbms { if $as_mkdir_p; then 12487127668Sbms mkdir -p "$ac_dir" 12488127668Sbms else 12489127668Sbms as_dir="$ac_dir" 12490127668Sbms as_dirs= 12491127668Sbms while test ! -d "$as_dir"; do 12492127668Sbms as_dirs="$as_dir $as_dirs" 12493127668Sbms as_dir=`(dirname "$as_dir") 2>/dev/null || 12494127668Sbms$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12495127668Sbms X"$as_dir" : 'X\(//\)[^/]' \| \ 12496127668Sbms X"$as_dir" : 'X\(//\)$' \| \ 12497127668Sbms X"$as_dir" : 'X\(/\)' \| \ 12498127668Sbms . : '\(.\)' 2>/dev/null || 12499127668Sbmsecho X"$as_dir" | 12500127668Sbms sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12501127668Sbms /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12502127668Sbms /^X\(\/\/\)$/{ s//\1/; q; } 12503127668Sbms /^X\(\/\).*/{ s//\1/; q; } 12504127668Sbms s/.*/./; q'` 12505127668Sbms done 12506127668Sbms test ! -n "$as_dirs" || mkdir $as_dirs 12507127668Sbms fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12508127668Sbmsecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12509127668Sbms { (exit 1); exit 1; }; }; } 12510127668Sbms 12511127668Sbms rm -f $ac_file 12512127668Sbms mv $tmp/config.h $ac_file 1251356893Sfenner fi 12514127668Sbms else 12515127668Sbms cat $tmp/config.h 12516127668Sbms rm -f $tmp/config.h 1251756893Sfenner fi 12518127668Sbmsdone 12519127668Sbms_ACEOF 12520127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 1252117680Spst 12522127668Sbms# 12523127668Sbms# CONFIG_COMMANDS section. 12524127668Sbms# 12525127668Sbmsfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12526127668Sbms ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12527127668Sbms ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12528127668Sbms ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12529127668Sbms$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12530127668Sbms X"$ac_dest" : 'X\(//\)[^/]' \| \ 12531127668Sbms X"$ac_dest" : 'X\(//\)$' \| \ 12532127668Sbms X"$ac_dest" : 'X\(/\)' \| \ 12533127668Sbms . : '\(.\)' 2>/dev/null || 12534127668Sbmsecho X"$ac_dest" | 12535127668Sbms sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12536127668Sbms /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12537127668Sbms /^X\(\/\/\)$/{ s//\1/; q; } 12538127668Sbms /^X\(\/\).*/{ s//\1/; q; } 12539127668Sbms s/.*/./; q'` 12540127668Sbms ac_builddir=. 1254156893Sfenner 12542127668Sbmsif test "$ac_dir" != .; then 12543127668Sbms ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12544127668Sbms # A "../" for each directory in $ac_dir_suffix. 12545127668Sbms ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12546127668Sbmselse 12547127668Sbms ac_dir_suffix= ac_top_builddir= 12548127668Sbmsfi 1254975115Sfenner 12550127668Sbmscase $srcdir in 12551127668Sbms .) # No --srcdir option. We are building in place. 12552127668Sbms ac_srcdir=. 12553127668Sbms if test -z "$ac_top_builddir"; then 12554127668Sbms ac_top_srcdir=. 12555127668Sbms else 12556127668Sbms ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12557127668Sbms fi ;; 12558127668Sbms [\\/]* | ?:[\\/]* ) # Absolute path. 12559127668Sbms ac_srcdir=$srcdir$ac_dir_suffix; 12560127668Sbms ac_top_srcdir=$srcdir ;; 12561127668Sbms *) # Relative path. 12562127668Sbms ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12563127668Sbms ac_top_srcdir=$ac_top_builddir$srcdir ;; 12564127668Sbmsesac 12565127668Sbms# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12566127668Sbms# absolute. 12567127668Sbmsac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12568127668Sbmsac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12569127668Sbmsac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12570127668Sbmsac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12571127668Sbms 12572127668Sbms 12573127668Sbms { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12574127668Sbmsecho "$as_me: executing $ac_dest commands" >&6;} 12575127668Sbms case $ac_dest in 12576127668Sbms default-1 ) if test -f .devel; then 1257775115Sfenner echo timestamp > stamp-h 1257875115Sfenner cat Makefile-devel-adds >> Makefile 1257975115Sfenner make depend 12580127668Sbmsfi ;; 12581127668Sbms esac 12582127668Sbmsdone 12583127668Sbms_ACEOF 1258456893Sfenner 12585127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF 12586127668Sbms 12587127668Sbms{ (exit 0); exit 0; } 12588127668Sbms_ACEOF 1258917680Spstchmod +x $CONFIG_STATUS 12590127668Sbmsac_clean_files=$ac_clean_files_save 1259117680Spst 12592127668Sbms 12593127668Sbms# configure is writing to config.log, and then calls config.status. 12594127668Sbms# config.status does its own redirection, appending to config.log. 12595127668Sbms# Unfortunately, on DOS this fails, as config.log is still kept open 12596127668Sbms# by configure, so config.status won't be able to write to it; its 12597127668Sbms# output is simply discarded. So we exec the FD to /dev/null, 12598127668Sbms# effectively closing config.log, so it can be properly (re)opened and 12599127668Sbms# appended to by config.status. When coming back to configure, we 12600127668Sbms# need to make the FD available again. 12601127668Sbmsif test "$no_create" != yes; then 12602127668Sbms ac_cs_success=: 12603127668Sbms ac_config_status_args= 12604127668Sbms test "$silent" = yes && 12605127668Sbms ac_config_status_args="$ac_config_status_args --quiet" 12606127668Sbms exec 5>/dev/null 12607127668Sbms $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12608127668Sbms exec 5>>config.log 12609127668Sbms # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12610127668Sbms # would make configure fail if this is the last instruction. 12611127668Sbms $ac_cs_success || { (exit 1); exit 1; } 12612127668Sbmsfi 12613127668Sbms 1261417680Spstexit 0 12615