117680Spst#! /bin/sh 2214478Srpaulo# From configure.in Revision: 1.204 . 3127668Sbms# Guess values for system-dependent variables and create Makefiles. 4252283Sdelphij# Generated by GNU Autoconf 2.68. 5111726Sfenner# 6252283Sdelphij# 7172683Smlaier# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8252283Sdelphij# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 9252283Sdelphij# Foundation, Inc. 10252283Sdelphij# 11252283Sdelphij# 12127668Sbms# This configure script is free software; the Free Software Foundation 13127668Sbms# gives unlimited permission to copy, distribute and modify it. 14252283Sdelphij## -------------------- ## 15252283Sdelphij## M4sh Initialization. ## 16252283Sdelphij## -------------------- ## 1775115Sfenner 18172683Smlaier# Be more Bourne compatible 19172683SmlaierDUALCASE=1; export DUALCASE # for MKS sh 20252283Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21127668Sbms emulate sh 22127668Sbms NULLCMD=: 23252283Sdelphij # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24127668Sbms # is contrary to our usage. Disable this feature. 25127668Sbms alias -g '${1+"$@"}'='"$@"' 26172683Smlaier setopt NO_GLOB_SUBST 27172683Smlaierelse 28252283Sdelphij case `(set -o) 2>/dev/null` in #( 29252283Sdelphij *posix*) : 30252283Sdelphij set -o posix ;; #( 31252283Sdelphij *) : 32252283Sdelphij ;; 33172683Smlaieresac 34127668Sbmsfi 3575115Sfenner 36172683Smlaier 37252283Sdelphijas_nl=' 38252283Sdelphij' 39252283Sdelphijexport as_nl 40252283Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf. 41252283Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42252283Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43252283Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44252283Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris, 45252283Sdelphij# but without wasting forks for bash or zsh. 46252283Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \ 47252283Sdelphij && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48252283Sdelphij as_echo='print -r --' 49252283Sdelphij as_echo_n='print -rn --' 50252283Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51252283Sdelphij as_echo='printf %s\n' 52252283Sdelphij as_echo_n='printf %s' 53252283Sdelphijelse 54252283Sdelphij if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55252283Sdelphij as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56252283Sdelphij as_echo_n='/usr/ucb/echo -n' 57172683Smlaier else 58252283Sdelphij as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59252283Sdelphij as_echo_n_body='eval 60252283Sdelphij arg=$1; 61252283Sdelphij case $arg in #( 62252283Sdelphij *"$as_nl"*) 63252283Sdelphij expr "X$arg" : "X\\(.*\\)$as_nl"; 64252283Sdelphij arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65252283Sdelphij esac; 66252283Sdelphij expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67252283Sdelphij ' 68252283Sdelphij export as_echo_n_body 69252283Sdelphij as_echo_n='sh -c $as_echo_n_body as_echo' 70172683Smlaier fi 71252283Sdelphij export as_echo_body 72252283Sdelphij as_echo='sh -c $as_echo_body as_echo' 73172683Smlaierfi 74172683Smlaier 75252283Sdelphij# The user is always right. 76252283Sdelphijif test "${PATH_SEPARATOR+set}" != set; then 77252283Sdelphij PATH_SEPARATOR=: 78252283Sdelphij (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79252283Sdelphij (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80252283Sdelphij PATH_SEPARATOR=';' 81252283Sdelphij } 82127668Sbmsfi 8375115Sfenner 8475115Sfenner 85172683Smlaier# IFS 86172683Smlaier# We need space, tab and new line, in precisely that order. Quoting is 87172683Smlaier# there to prevent editors from complaining about space-tab. 88172683Smlaier# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89172683Smlaier# splitting by setting IFS to empty value.) 90172683SmlaierIFS=" "" $as_nl" 91172683Smlaier 92172683Smlaier# Find who we are. Look in the path if we contain no directory separator. 93252283Sdelphijas_myself= 94252283Sdelphijcase $0 in #(( 95172683Smlaier *[\\/]* ) as_myself=$0 ;; 96172683Smlaier *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97172683Smlaierfor as_dir in $PATH 98172683Smlaierdo 99172683Smlaier IFS=$as_save_IFS 100172683Smlaier test -z "$as_dir" && as_dir=. 101252283Sdelphij test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102252283Sdelphij done 103172683SmlaierIFS=$as_save_IFS 104172683Smlaier 105172683Smlaier ;; 106172683Smlaieresac 107172683Smlaier# We did not find ourselves, most probably we were run as `sh COMMAND' 108172683Smlaier# in which case we are not to be found in the path. 109172683Smlaierif test "x$as_myself" = x; then 110172683Smlaier as_myself=$0 111172683Smlaierfi 112172683Smlaierif test ! -f "$as_myself"; then 113252283Sdelphij $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114252283Sdelphij exit 1 115172683Smlaierfi 116172683Smlaier 117252283Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in 118252283Sdelphij# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119252283Sdelphij# suppresses any "Segmentation fault" message there. '((' could 120252283Sdelphij# trigger a bug in pdksh 5.2.14. 121252283Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH 122252283Sdelphijdo eval test x\${$as_var+set} = xset \ 123252283Sdelphij && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124172683Smlaierdone 125127668SbmsPS1='$ ' 126127668SbmsPS2='> ' 127127668SbmsPS4='+ ' 12875115Sfenner 129127668Sbms# NLS nuisances. 130252283SdelphijLC_ALL=C 131252283Sdelphijexport LC_ALL 132252283SdelphijLANGUAGE=C 133252283Sdelphijexport LANGUAGE 13475115Sfenner 135172683Smlaier# CDPATH. 136252283Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13775115Sfenner 138172683Smlaierif test "x$CONFIG_SHELL" = x; then 139252283Sdelphij as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140252283Sdelphij emulate sh 141252283Sdelphij NULLCMD=: 142252283Sdelphij # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143252283Sdelphij # is contrary to our usage. Disable this feature. 144252283Sdelphij alias -g '\${1+\"\$@\"}'='\"\$@\"' 145252283Sdelphij setopt NO_GLOB_SUBST 146172683Smlaierelse 147252283Sdelphij case \`(set -o) 2>/dev/null\` in #( 148252283Sdelphij *posix*) : 149252283Sdelphij set -o posix ;; #( 150252283Sdelphij *) : 151252283Sdelphij ;; 152252283Sdelphijesac 153127668Sbmsfi 154252283Sdelphij" 155252283Sdelphij as_required="as_fn_return () { (exit \$1); } 156252283Sdelphijas_fn_success () { as_fn_return 0; } 157252283Sdelphijas_fn_failure () { as_fn_return 1; } 158252283Sdelphijas_fn_ret_success () { return 0; } 159252283Sdelphijas_fn_ret_failure () { return 1; } 16075115Sfenner 161172683Smlaierexitcode=0 162252283Sdelphijas_fn_success || { exitcode=1; echo as_fn_success failed.; } 163252283Sdelphijas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164252283Sdelphijas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165252283Sdelphijas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166252283Sdelphijif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 16775115Sfenner 168172683Smlaierelse 169252283Sdelphij exitcode=1; echo positional parameters were not saved. 170172683Smlaierfi 171252283Sdelphijtest x\$exitcode = x0 || exit 1" 172252283Sdelphij as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173252283Sdelphij as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174252283Sdelphij eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175252283Sdelphij test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176252283Sdelphijtest \$(( 1 + 1 )) = 2 || exit 1" 177252283Sdelphij if (eval "$as_required") 2>/dev/null; then : 178252283Sdelphij as_have_required=yes 179172683Smlaierelse 180252283Sdelphij as_have_required=no 181172683Smlaierfi 182252283Sdelphij if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183172683Smlaier 184172683Smlaierelse 185252283Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186252283Sdelphijas_found=false 187127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188127668Sbmsdo 189127668Sbms IFS=$as_save_IFS 190127668Sbms test -z "$as_dir" && as_dir=. 191252283Sdelphij as_found=: 192252283Sdelphij case $as_dir in #( 193127668Sbms /*) 194172683Smlaier for as_base in sh bash ksh sh5; do 195252283Sdelphij # Try only shells that exist, to save several forks. 196252283Sdelphij as_shell=$as_dir/$as_base 197252283Sdelphij if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198252283Sdelphij { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199252283Sdelphij CONFIG_SHELL=$as_shell as_have_required=yes 200252283Sdelphij if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201252283Sdelphij break 2 202252283Sdelphijfi 203252283Sdelphijfi 204172683Smlaier done;; 205172683Smlaier esac 206252283Sdelphij as_found=false 207172683Smlaierdone 208252283Sdelphij$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209252283Sdelphij { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210252283Sdelphij CONFIG_SHELL=$SHELL as_have_required=yes 211252283Sdelphijfi; } 212172683SmlaierIFS=$as_save_IFS 213172683Smlaier 214172683Smlaier 215252283Sdelphij if test "x$CONFIG_SHELL" != x; then : 216252283Sdelphij # We cannot yet assume a decent shell, so we have to provide a 217252283Sdelphij # neutralization value for shells without unset; and this also 218252283Sdelphij # works around shells that cannot unset nonexistent variables. 219252283Sdelphij # Preserve -v and -x to the replacement shell. 220252283Sdelphij BASH_ENV=/dev/null 221252283Sdelphij ENV=/dev/null 222252283Sdelphij (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 223252283Sdelphij export CONFIG_SHELL 224252283Sdelphij case $- in # (((( 225252283Sdelphij *v*x* | *x*v* ) as_opts=-vx ;; 226252283Sdelphij *v* ) as_opts=-v ;; 227252283Sdelphij *x* ) as_opts=-x ;; 228252283Sdelphij * ) as_opts= ;; 229252283Sdelphij esac 230252283Sdelphij exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 231172683Smlaierfi 232172683Smlaier 233252283Sdelphij if test x$as_have_required = xno; then : 234252283Sdelphij $as_echo "$0: This script requires a shell more modern than all" 235252283Sdelphij $as_echo "$0: the shells that I found on your system." 236252283Sdelphij if test x${ZSH_VERSION+set} = xset ; then 237252283Sdelphij $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 238252283Sdelphij $as_echo "$0: be upgraded to zsh 4.3.4 or later." 239252283Sdelphij else 240252283Sdelphij $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 241252283Sdelphij$0: including any error possibly output before this 242252283Sdelphij$0: message. Then install a modern shell, or manually run 243252283Sdelphij$0: the script under such a shell if you do have one." 244252283Sdelphij fi 245252283Sdelphij exit 1 246172683Smlaierfi 247172683Smlaierfi 248172683Smlaierfi 249252283SdelphijSHELL=${CONFIG_SHELL-/bin/sh} 250252283Sdelphijexport SHELL 251252283Sdelphij# Unset more variables known to interfere with behavior of common tools. 252252283SdelphijCLICOLOR_FORCE= GREP_OPTIONS= 253252283Sdelphijunset CLICOLOR_FORCE GREP_OPTIONS 254172683Smlaier 255252283Sdelphij## --------------------- ## 256252283Sdelphij## M4sh Shell Functions. ## 257252283Sdelphij## --------------------- ## 258252283Sdelphij# as_fn_unset VAR 259252283Sdelphij# --------------- 260252283Sdelphij# Portably unset VAR. 261252283Sdelphijas_fn_unset () 262252283Sdelphij{ 263252283Sdelphij { eval $1=; unset $1;} 264252283Sdelphij} 265252283Sdelphijas_unset=as_fn_unset 266172683Smlaier 267252283Sdelphij# as_fn_set_status STATUS 268252283Sdelphij# ----------------------- 269252283Sdelphij# Set $? to STATUS, without forking. 270252283Sdelphijas_fn_set_status () 271252283Sdelphij{ 272252283Sdelphij return $1 273252283Sdelphij} # as_fn_set_status 274172683Smlaier 275252283Sdelphij# as_fn_exit STATUS 276252283Sdelphij# ----------------- 277252283Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 278252283Sdelphijas_fn_exit () 279252283Sdelphij{ 280252283Sdelphij set +e 281252283Sdelphij as_fn_set_status $1 282252283Sdelphij exit $1 283252283Sdelphij} # as_fn_exit 284172683Smlaier 285252283Sdelphij# as_fn_mkdir_p 286252283Sdelphij# ------------- 287252283Sdelphij# Create "$as_dir" as a directory, including parents if necessary. 288252283Sdelphijas_fn_mkdir_p () 289252283Sdelphij{ 290172683Smlaier 291252283Sdelphij case $as_dir in #( 292252283Sdelphij -*) as_dir=./$as_dir;; 293252283Sdelphij esac 294252283Sdelphij test -d "$as_dir" || eval $as_mkdir_p || { 295252283Sdelphij as_dirs= 296252283Sdelphij while :; do 297252283Sdelphij case $as_dir in #( 298252283Sdelphij *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 299252283Sdelphij *) as_qdir=$as_dir;; 300252283Sdelphij esac 301252283Sdelphij as_dirs="'$as_qdir' $as_dirs" 302252283Sdelphij as_dir=`$as_dirname -- "$as_dir" || 303252283Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 304252283Sdelphij X"$as_dir" : 'X\(//\)[^/]' \| \ 305252283Sdelphij X"$as_dir" : 'X\(//\)$' \| \ 306252283Sdelphij X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 307252283Sdelphij$as_echo X"$as_dir" | 308252283Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 309252283Sdelphij s//\1/ 310252283Sdelphij q 311252283Sdelphij } 312252283Sdelphij /^X\(\/\/\)[^/].*/{ 313252283Sdelphij s//\1/ 314252283Sdelphij q 315252283Sdelphij } 316252283Sdelphij /^X\(\/\/\)$/{ 317252283Sdelphij s//\1/ 318252283Sdelphij q 319252283Sdelphij } 320252283Sdelphij /^X\(\/\).*/{ 321252283Sdelphij s//\1/ 322252283Sdelphij q 323252283Sdelphij } 324252283Sdelphij s/.*/./; q'` 325252283Sdelphij test -d "$as_dir" && break 326252283Sdelphij done 327252283Sdelphij test -z "$as_dirs" || eval "mkdir $as_dirs" 328252283Sdelphij } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 32975115Sfenner 330172683Smlaier 331252283Sdelphij} # as_fn_mkdir_p 332252283Sdelphij# as_fn_append VAR VALUE 333252283Sdelphij# ---------------------- 334252283Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take 335252283Sdelphij# advantage of any shell optimizations that allow amortized linear growth over 336252283Sdelphij# repeated appends, instead of the typical quadratic growth present in naive 337252283Sdelphij# implementations. 338252283Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 339252283Sdelphij eval 'as_fn_append () 340252283Sdelphij { 341252283Sdelphij eval $1+=\$2 342252283Sdelphij }' 343252283Sdelphijelse 344252283Sdelphij as_fn_append () 345252283Sdelphij { 346252283Sdelphij eval $1=\$$1\$2 347252283Sdelphij } 348252283Sdelphijfi # as_fn_append 349172683Smlaier 350252283Sdelphij# as_fn_arith ARG... 351252283Sdelphij# ------------------ 352252283Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the 353252283Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments 354252283Sdelphij# must be portable across $(()) and expr. 355252283Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 356252283Sdelphij eval 'as_fn_arith () 357252283Sdelphij { 358252283Sdelphij as_val=$(( $* )) 359252283Sdelphij }' 360252283Sdelphijelse 361252283Sdelphij as_fn_arith () 362252283Sdelphij { 363252283Sdelphij as_val=`expr "$@" || test $? -eq 1` 364252283Sdelphij } 365252283Sdelphijfi # as_fn_arith 366172683Smlaier 367172683Smlaier 368252283Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD] 369252283Sdelphij# ---------------------------------------- 370252283Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 371252283Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 372252283Sdelphij# script with STATUS, using 1 if that was 0. 373252283Sdelphijas_fn_error () 374252283Sdelphij{ 375252283Sdelphij as_status=$1; test $as_status -eq 0 && as_status=1 376252283Sdelphij if test "$4"; then 377252283Sdelphij as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 378252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 379252283Sdelphij fi 380252283Sdelphij $as_echo "$as_me: error: $2" >&2 381252283Sdelphij as_fn_exit $as_status 382252283Sdelphij} # as_fn_error 383172683Smlaier 384252283Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 385252283Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 386252283Sdelphij as_expr=expr 387172683Smlaierelse 388252283Sdelphij as_expr=false 389172683Smlaierfi 390172683Smlaier 391252283Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 392252283Sdelphij as_basename=basename 393172683Smlaierelse 394252283Sdelphij as_basename=false 395172683Smlaierfi 396172683Smlaier 397252283Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 398252283Sdelphij as_dirname=dirname 399172683Smlaierelse 400252283Sdelphij as_dirname=false 401172683Smlaierfi 402172683Smlaier 403252283Sdelphijas_me=`$as_basename -- "$0" || 404252283Sdelphij$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 405252283Sdelphij X"$0" : 'X\(//\)$' \| \ 406252283Sdelphij X"$0" : 'X\(/\)' \| . 2>/dev/null || 407252283Sdelphij$as_echo X/"$0" | 408252283Sdelphij sed '/^.*\/\([^/][^/]*\)\/*$/{ 409252283Sdelphij s//\1/ 410252283Sdelphij q 411252283Sdelphij } 412252283Sdelphij /^X\/\(\/\/\)$/{ 413252283Sdelphij s//\1/ 414252283Sdelphij q 415252283Sdelphij } 416252283Sdelphij /^X\/\(\/\).*/{ 417252283Sdelphij s//\1/ 418252283Sdelphij q 419252283Sdelphij } 420252283Sdelphij s/.*/./; q'` 421172683Smlaier 422252283Sdelphij# Avoid depending upon Character Ranges. 423252283Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz' 424252283Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 425252283Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS 426252283Sdelphijas_cr_digits='0123456789' 427252283Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits 428172683Smlaier 429172683Smlaier 430252283Sdelphij as_lineno_1=$LINENO as_lineno_1a=$LINENO 431252283Sdelphij as_lineno_2=$LINENO as_lineno_2a=$LINENO 432252283Sdelphij eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 433252283Sdelphij test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 434252283Sdelphij # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 435172683Smlaier sed -n ' 436172683Smlaier p 437172683Smlaier /[$]LINENO/= 438172683Smlaier ' <$as_myself | 439127668Sbms sed ' 440172683Smlaier s/[$]LINENO.*/&-/ 441172683Smlaier t lineno 442172683Smlaier b 443172683Smlaier :lineno 444127668Sbms N 445172683Smlaier :loop 446172683Smlaier s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 447127668Sbms t loop 448172683Smlaier s/-\n.*// 449127668Sbms ' >$as_me.lineno && 450172683Smlaier chmod +x "$as_me.lineno" || 451252283Sdelphij { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 45275115Sfenner 453127668Sbms # Don't try to exec as it changes $[0], causing all sort of problems 454127668Sbms # (the dirname of $[0] is not the place where we might find the 455172683Smlaier # original and so on. Autoconf is especially sensitive to this). 456172683Smlaier . "./$as_me.lineno" 457127668Sbms # Exit status is that of the last command. 458127668Sbms exit 459127668Sbms} 46075115Sfenner 461172683SmlaierECHO_C= ECHO_N= ECHO_T= 462252283Sdelphijcase `echo -n x` in #((((( 463172683Smlaier-n*) 464252283Sdelphij case `echo 'xy\c'` in 465172683Smlaier *c*) ECHO_T=' ';; # ECHO_T is single tab character. 466252283Sdelphij xy) ECHO_C='\c';; 467252283Sdelphij *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 468252283Sdelphij ECHO_T=' ';; 469172683Smlaier esac;; 470172683Smlaier*) 471172683Smlaier ECHO_N='-n';; 472127668Sbmsesac 47375115Sfenner 474127668Sbmsrm -f conf$$ conf$$.exe conf$$.file 475172683Smlaierif test -d conf$$.dir; then 476172683Smlaier rm -f conf$$.dir/conf$$.file 477172683Smlaierelse 478172683Smlaier rm -f conf$$.dir 479252283Sdelphij mkdir conf$$.dir 2>/dev/null 480172683Smlaierfi 481252283Sdelphijif (echo >conf$$.file) 2>/dev/null; then 482252283Sdelphij if ln -s conf$$.file conf$$ 2>/dev/null; then 483252283Sdelphij as_ln_s='ln -s' 484252283Sdelphij # ... but there are two gotchas: 485252283Sdelphij # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 486252283Sdelphij # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 487252283Sdelphij # In both cases, we have to default to `cp -p'. 488252283Sdelphij ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 489252283Sdelphij as_ln_s='cp -p' 490252283Sdelphij elif ln conf$$.file conf$$ 2>/dev/null; then 491252283Sdelphij as_ln_s=ln 492252283Sdelphij else 493127668Sbms as_ln_s='cp -p' 494252283Sdelphij fi 495127668Sbmselse 496127668Sbms as_ln_s='cp -p' 497127668Sbmsfi 498172683Smlaierrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 499172683Smlaierrmdir conf$$.dir 2>/dev/null 50075115Sfenner 501127668Sbmsif mkdir -p . 2>/dev/null; then 502252283Sdelphij as_mkdir_p='mkdir -p "$as_dir"' 503127668Sbmselse 504172683Smlaier test -d ./-p && rmdir ./-p 505127668Sbms as_mkdir_p=false 506127668Sbmsfi 50775115Sfenner 508172683Smlaierif test -x / >/dev/null 2>&1; then 509172683Smlaier as_test_x='test -x' 510172683Smlaierelse 511172683Smlaier if ls -dL / >/dev/null 2>&1; then 512172683Smlaier as_ls_L_option=L 513172683Smlaier else 514172683Smlaier as_ls_L_option= 515172683Smlaier fi 516172683Smlaier as_test_x=' 517172683Smlaier eval sh -c '\'' 518172683Smlaier if test -d "$1"; then 519252283Sdelphij test -d "$1/."; 520172683Smlaier else 521252283Sdelphij case $1 in #( 522252283Sdelphij -*)set "./$1";; 523172683Smlaier esac; 524252283Sdelphij case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 525172683Smlaier ???[sx]*):;;*)false;;esac;fi 526172683Smlaier '\'' sh 527172683Smlaier ' 528172683Smlaierfi 529172683Smlaieras_executable_p=$as_test_x 53075115Sfenner 531127668Sbms# Sed expression to map a string onto a valid CPP name. 532172683Smlaieras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53375115Sfenner 534127668Sbms# Sed expression to map a string onto a valid variable name. 535172683Smlaieras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53675115Sfenner 53775115Sfenner 538252283Sdelphijtest -n "$DJDIR" || exec 7<&0 </dev/null 539252283Sdelphijexec 6>&1 54075115Sfenner 541127668Sbms# Name of the host. 542252283Sdelphij# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 543127668Sbms# so uname gets run too. 544127668Sbmsac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 54575115Sfenner 546127668Sbms# 547127668Sbms# Initializations. 548127668Sbms# 549127668Sbmsac_default_prefix=/usr/local 550172683Smlaierac_clean_files= 551127668Sbmsac_config_libobj_dir=. 552172683SmlaierLIBOBJS= 553127668Sbmscross_compiling=no 554127668Sbmssubdirs= 555127668SbmsMFLAGS= 556127668SbmsMAKEFLAGS= 55775115Sfenner 558127668Sbms# Identity of this package. 559127668SbmsPACKAGE_NAME= 560127668SbmsPACKAGE_TARNAME= 561127668SbmsPACKAGE_VERSION= 562127668SbmsPACKAGE_STRING= 563127668SbmsPACKAGE_BUGREPORT= 564252283SdelphijPACKAGE_URL= 56575115Sfenner 566127668Sbmsac_unique_file="tcpdump.c" 567127668Sbms# Factoring default headers for most tests. 568127668Sbmsac_includes_default="\ 569127668Sbms#include <stdio.h> 570172683Smlaier#ifdef HAVE_SYS_TYPES_H 571127668Sbms# include <sys/types.h> 572127668Sbms#endif 573172683Smlaier#ifdef HAVE_SYS_STAT_H 574127668Sbms# include <sys/stat.h> 575127668Sbms#endif 576172683Smlaier#ifdef STDC_HEADERS 577127668Sbms# include <stdlib.h> 578127668Sbms# include <stddef.h> 579127668Sbms#else 580172683Smlaier# ifdef HAVE_STDLIB_H 581127668Sbms# include <stdlib.h> 582127668Sbms# endif 583127668Sbms#endif 584172683Smlaier#ifdef HAVE_STRING_H 585172683Smlaier# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 586127668Sbms# include <memory.h> 587127668Sbms# endif 588127668Sbms# include <string.h> 589127668Sbms#endif 590172683Smlaier#ifdef HAVE_STRINGS_H 591127668Sbms# include <strings.h> 592127668Sbms#endif 593172683Smlaier#ifdef HAVE_INTTYPES_H 594127668Sbms# include <inttypes.h> 595127668Sbms#endif 596172683Smlaier#ifdef HAVE_STDINT_H 597172683Smlaier# include <stdint.h> 598172683Smlaier#endif 599172683Smlaier#ifdef HAVE_UNISTD_H 600127668Sbms# include <unistd.h> 601127668Sbms#endif" 60275115Sfenner 603252283Sdelphijac_subst_vars='LTLIBOBJS 604252283SdelphijINSTALL_DATA 605252283SdelphijINSTALL_SCRIPT 606252283SdelphijINSTALL_PROGRAM 607252283SdelphijMAN_MISC_INFO 608252283SdelphijMAN_FILE_FORMATS 609252283SdelphijLOCALSRC 610252283SdelphijV_PCAPDEP 611252283SdelphijV_INCLS 612252283SdelphijV_GROUP 613252283SdelphijV_DEFS 614252283SdelphijV_CCOPT 615252283SdelphijRANLIB 616252283SdelphijPCAP_CONFIG 617252283SdelphijLIBOBJS 618252283SdelphijEGREP 619252283SdelphijGREP 620252283SdelphijCPP 621252283SdelphijOBJEXT 622252283SdelphijEXEEXT 623252283Sdelphijac_ct_CC 624252283SdelphijCPPFLAGS 625252283SdelphijLDFLAGS 626252283SdelphijCFLAGS 627252283SdelphijCC 628252283SdelphijSHLICC2 629252283Sdelphijhost_os 630252283Sdelphijhost_vendor 631252283Sdelphijhost_cpu 632252283Sdelphijhost 633252283Sdelphijbuild_os 634252283Sdelphijbuild_vendor 635252283Sdelphijbuild_cpu 636252283Sdelphijbuild 637252283Sdelphijtarget_alias 638252283Sdelphijhost_alias 639252283Sdelphijbuild_alias 640252283SdelphijLIBS 641252283SdelphijECHO_T 642252283SdelphijECHO_N 643252283SdelphijECHO_C 644252283SdelphijDEFS 645252283Sdelphijmandir 646252283Sdelphijlocaledir 647252283Sdelphijlibdir 648252283Sdelphijpsdir 649252283Sdelphijpdfdir 650252283Sdelphijdvidir 651252283Sdelphijhtmldir 652252283Sdelphijinfodir 653252283Sdelphijdocdir 654252283Sdelphijoldincludedir 655252283Sdelphijincludedir 656252283Sdelphijlocalstatedir 657252283Sdelphijsharedstatedir 658252283Sdelphijsysconfdir 659252283Sdelphijdatadir 660252283Sdelphijdatarootdir 661252283Sdelphijlibexecdir 662252283Sdelphijsbindir 663252283Sdelphijbindir 664252283Sdelphijprogram_transform_name 665252283Sdelphijprefix 666252283Sdelphijexec_prefix 667252283SdelphijPACKAGE_URL 668252283SdelphijPACKAGE_BUGREPORT 669252283SdelphijPACKAGE_STRING 670252283SdelphijPACKAGE_VERSION 671252283SdelphijPACKAGE_TARNAME 672252283SdelphijPACKAGE_NAME 673172683SmlaierPATH_SEPARATOR 674252283SdelphijSHELL' 675127668Sbmsac_subst_files='' 676252283Sdelphijac_user_opts=' 677252283Sdelphijenable_option_checking 678252283Sdelphijwith_gcc 679252283Sdelphijenable_universal 680252283Sdelphijwith_smi 681252283Sdelphijenable_smb 682252283Sdelphijwith_user 683252283Sdelphijwith_chroot 684252283Sdelphijenable_ipv6 685252283Sdelphijwith_crypto 686252283Sdelphij' 687172683Smlaier ac_precious_vars='build_alias 688172683Smlaierhost_alias 689172683Smlaiertarget_alias 690172683SmlaierCC 691172683SmlaierCFLAGS 692172683SmlaierLDFLAGS 693172683SmlaierLIBS 694172683SmlaierCPPFLAGS 695172683SmlaierCPP' 69675115Sfenner 697172683Smlaier 69817680Spst# Initialize some variables set by options. 699127668Sbmsac_init_help= 700127668Sbmsac_init_version=false 701252283Sdelphijac_unrecognized_opts= 702252283Sdelphijac_unrecognized_sep= 70317680Spst# The variables have the same names as the options, with 70417680Spst# dashes changed to underlines. 705127668Sbmscache_file=/dev/null 70617680Spstexec_prefix=NONE 70717680Spstno_create= 70817680Spstno_recursion= 70917680Spstprefix=NONE 71017680Spstprogram_prefix=NONE 71117680Spstprogram_suffix=NONE 71217680Spstprogram_transform_name=s,x,x, 71317680Spstsilent= 71417680Spstsite= 71517680Spstsrcdir= 71617680Spstverbose= 71717680Spstx_includes=NONE 71817680Spstx_libraries=NONE 719127668Sbms 720127668Sbms# Installation directory options. 721127668Sbms# These are left unexpanded so users can "make install exec_prefix=/foo" 722127668Sbms# and all the variables that are supposed to be based on exec_prefix 723127668Sbms# by default will actually change. 724127668Sbms# Use braces instead of parens because sh, perl, etc. also accept them. 725172683Smlaier# (The list follows the same order as the GNU Coding Standards.) 72617680Spstbindir='${exec_prefix}/bin' 72717680Spstsbindir='${exec_prefix}/sbin' 72817680Spstlibexecdir='${exec_prefix}/libexec' 729172683Smlaierdatarootdir='${prefix}/share' 730172683Smlaierdatadir='${datarootdir}' 73117680Spstsysconfdir='${prefix}/etc' 73217680Spstsharedstatedir='${prefix}/com' 73317680Spstlocalstatedir='${prefix}/var' 73417680Spstincludedir='${prefix}/include' 73517680Spstoldincludedir='/usr/include' 736172683Smlaierdocdir='${datarootdir}/doc/${PACKAGE}' 737172683Smlaierinfodir='${datarootdir}/info' 738172683Smlaierhtmldir='${docdir}' 739172683Smlaierdvidir='${docdir}' 740172683Smlaierpdfdir='${docdir}' 741172683Smlaierpsdir='${docdir}' 742172683Smlaierlibdir='${exec_prefix}/lib' 743172683Smlaierlocaledir='${datarootdir}/locale' 744172683Smlaiermandir='${datarootdir}/man' 74517680Spst 74617680Spstac_prev= 747172683Smlaierac_dashdash= 74817680Spstfor ac_option 74917680Spstdo 75017680Spst # If the previous option needs an argument, assign it. 75117680Spst if test -n "$ac_prev"; then 752172683Smlaier eval $ac_prev=\$ac_option 75317680Spst ac_prev= 75417680Spst continue 75517680Spst fi 75617680Spst 757172683Smlaier case $ac_option in 758252283Sdelphij *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 759252283Sdelphij *=) ac_optarg= ;; 760252283Sdelphij *) ac_optarg=yes ;; 761172683Smlaier esac 76217680Spst 76317680Spst # Accept the important Cygnus configure options, so we can diagnose typos. 76417680Spst 765172683Smlaier case $ac_dashdash$ac_option in 766172683Smlaier --) 767172683Smlaier ac_dashdash=yes ;; 76817680Spst 76917680Spst -bindir | --bindir | --bindi | --bind | --bin | --bi) 77017680Spst ac_prev=bindir ;; 77117680Spst -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 772127668Sbms bindir=$ac_optarg ;; 77317680Spst 77417680Spst -build | --build | --buil | --bui | --bu) 775127668Sbms ac_prev=build_alias ;; 77617680Spst -build=* | --build=* | --buil=* | --bui=* | --bu=*) 777127668Sbms build_alias=$ac_optarg ;; 77817680Spst 77917680Spst -cache-file | --cache-file | --cache-fil | --cache-fi \ 78017680Spst | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 78117680Spst ac_prev=cache_file ;; 78217680Spst -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 78317680Spst | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 784127668Sbms cache_file=$ac_optarg ;; 78517680Spst 786127668Sbms --config-cache | -C) 787127668Sbms cache_file=config.cache ;; 788127668Sbms 789172683Smlaier -datadir | --datadir | --datadi | --datad) 79017680Spst ac_prev=datadir ;; 791172683Smlaier -datadir=* | --datadir=* | --datadi=* | --datad=*) 792127668Sbms datadir=$ac_optarg ;; 79317680Spst 794172683Smlaier -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 795172683Smlaier | --dataroo | --dataro | --datar) 796172683Smlaier ac_prev=datarootdir ;; 797172683Smlaier -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 798172683Smlaier | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 799172683Smlaier datarootdir=$ac_optarg ;; 800172683Smlaier 80117680Spst -disable-* | --disable-*) 802252283Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 80317680Spst # Reject names that are not valid shell variable names. 804252283Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 805252283Sdelphij as_fn_error $? "invalid feature name: $ac_useropt" 806252283Sdelphij ac_useropt_orig=$ac_useropt 807252283Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 808252283Sdelphij case $ac_user_opts in 809252283Sdelphij *" 810252283Sdelphij"enable_$ac_useropt" 811252283Sdelphij"*) ;; 812252283Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 813252283Sdelphij ac_unrecognized_sep=', ';; 814252283Sdelphij esac 815252283Sdelphij eval enable_$ac_useropt=no ;; 81617680Spst 817172683Smlaier -docdir | --docdir | --docdi | --doc | --do) 818172683Smlaier ac_prev=docdir ;; 819172683Smlaier -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 820172683Smlaier docdir=$ac_optarg ;; 821172683Smlaier 822172683Smlaier -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 823172683Smlaier ac_prev=dvidir ;; 824172683Smlaier -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 825172683Smlaier dvidir=$ac_optarg ;; 826172683Smlaier 82717680Spst -enable-* | --enable-*) 828252283Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 82917680Spst # Reject names that are not valid shell variable names. 830252283Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 831252283Sdelphij as_fn_error $? "invalid feature name: $ac_useropt" 832252283Sdelphij ac_useropt_orig=$ac_useropt 833252283Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 834252283Sdelphij case $ac_user_opts in 835252283Sdelphij *" 836252283Sdelphij"enable_$ac_useropt" 837252283Sdelphij"*) ;; 838252283Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 839252283Sdelphij ac_unrecognized_sep=', ';; 840252283Sdelphij esac 841252283Sdelphij eval enable_$ac_useropt=\$ac_optarg ;; 84217680Spst 84317680Spst -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 84417680Spst | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 84517680Spst | --exec | --exe | --ex) 84617680Spst ac_prev=exec_prefix ;; 84717680Spst -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 84817680Spst | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 84917680Spst | --exec=* | --exe=* | --ex=*) 850127668Sbms exec_prefix=$ac_optarg ;; 85117680Spst 85217680Spst -gas | --gas | --ga | --g) 85317680Spst # Obsolete; use --with-gas. 85417680Spst with_gas=yes ;; 85517680Spst 856127668Sbms -help | --help | --hel | --he | -h) 857127668Sbms ac_init_help=long ;; 858127668Sbms -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 859127668Sbms ac_init_help=recursive ;; 860127668Sbms -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 861127668Sbms ac_init_help=short ;; 86217680Spst 86317680Spst -host | --host | --hos | --ho) 864127668Sbms ac_prev=host_alias ;; 86517680Spst -host=* | --host=* | --hos=* | --ho=*) 866127668Sbms host_alias=$ac_optarg ;; 86717680Spst 868172683Smlaier -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 869172683Smlaier ac_prev=htmldir ;; 870172683Smlaier -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 871172683Smlaier | --ht=*) 872172683Smlaier htmldir=$ac_optarg ;; 873172683Smlaier 87417680Spst -includedir | --includedir | --includedi | --included | --include \ 87517680Spst | --includ | --inclu | --incl | --inc) 87617680Spst ac_prev=includedir ;; 87717680Spst -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 87817680Spst | --includ=* | --inclu=* | --incl=* | --inc=*) 879127668Sbms includedir=$ac_optarg ;; 88017680Spst 88117680Spst -infodir | --infodir | --infodi | --infod | --info | --inf) 88217680Spst ac_prev=infodir ;; 88317680Spst -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 884127668Sbms infodir=$ac_optarg ;; 88517680Spst 88617680Spst -libdir | --libdir | --libdi | --libd) 88717680Spst ac_prev=libdir ;; 88817680Spst -libdir=* | --libdir=* | --libdi=* | --libd=*) 889127668Sbms libdir=$ac_optarg ;; 89017680Spst 89117680Spst -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 89217680Spst | --libexe | --libex | --libe) 89317680Spst ac_prev=libexecdir ;; 89417680Spst -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 89517680Spst | --libexe=* | --libex=* | --libe=*) 896127668Sbms libexecdir=$ac_optarg ;; 89717680Spst 898172683Smlaier -localedir | --localedir | --localedi | --localed | --locale) 899172683Smlaier ac_prev=localedir ;; 900172683Smlaier -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 901172683Smlaier localedir=$ac_optarg ;; 902172683Smlaier 90317680Spst -localstatedir | --localstatedir | --localstatedi | --localstated \ 904172683Smlaier | --localstate | --localstat | --localsta | --localst | --locals) 90517680Spst ac_prev=localstatedir ;; 90617680Spst -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 907172683Smlaier | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 908127668Sbms localstatedir=$ac_optarg ;; 90917680Spst 91017680Spst -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 91117680Spst ac_prev=mandir ;; 91217680Spst -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 913127668Sbms mandir=$ac_optarg ;; 91417680Spst 91517680Spst -nfp | --nfp | --nf) 91617680Spst # Obsolete; use --without-fp. 91717680Spst with_fp=no ;; 91817680Spst 91917680Spst -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 920127668Sbms | --no-cr | --no-c | -n) 92117680Spst no_create=yes ;; 92217680Spst 92317680Spst -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 92417680Spst | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 92517680Spst no_recursion=yes ;; 92617680Spst 92717680Spst -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 92817680Spst | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 92917680Spst | --oldin | --oldi | --old | --ol | --o) 93017680Spst ac_prev=oldincludedir ;; 93117680Spst -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 93217680Spst | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 93317680Spst | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 934127668Sbms oldincludedir=$ac_optarg ;; 93517680Spst 93617680Spst -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 93717680Spst ac_prev=prefix ;; 93817680Spst -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 939127668Sbms prefix=$ac_optarg ;; 94017680Spst 94117680Spst -program-prefix | --program-prefix | --program-prefi | --program-pref \ 94217680Spst | --program-pre | --program-pr | --program-p) 94317680Spst ac_prev=program_prefix ;; 94417680Spst -program-prefix=* | --program-prefix=* | --program-prefi=* \ 94517680Spst | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 946127668Sbms program_prefix=$ac_optarg ;; 94717680Spst 94817680Spst -program-suffix | --program-suffix | --program-suffi | --program-suff \ 94917680Spst | --program-suf | --program-su | --program-s) 95017680Spst ac_prev=program_suffix ;; 95117680Spst -program-suffix=* | --program-suffix=* | --program-suffi=* \ 95217680Spst | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 953127668Sbms program_suffix=$ac_optarg ;; 95417680Spst 95517680Spst -program-transform-name | --program-transform-name \ 95617680Spst | --program-transform-nam | --program-transform-na \ 95717680Spst | --program-transform-n | --program-transform- \ 95817680Spst | --program-transform | --program-transfor \ 95917680Spst | --program-transfo | --program-transf \ 96017680Spst | --program-trans | --program-tran \ 96117680Spst | --progr-tra | --program-tr | --program-t) 96217680Spst ac_prev=program_transform_name ;; 96317680Spst -program-transform-name=* | --program-transform-name=* \ 96417680Spst | --program-transform-nam=* | --program-transform-na=* \ 96517680Spst | --program-transform-n=* | --program-transform-=* \ 96617680Spst | --program-transform=* | --program-transfor=* \ 96717680Spst | --program-transfo=* | --program-transf=* \ 96817680Spst | --program-trans=* | --program-tran=* \ 96917680Spst | --progr-tra=* | --program-tr=* | --program-t=*) 970127668Sbms program_transform_name=$ac_optarg ;; 97117680Spst 972172683Smlaier -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 973172683Smlaier ac_prev=pdfdir ;; 974172683Smlaier -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 975172683Smlaier pdfdir=$ac_optarg ;; 976172683Smlaier 977172683Smlaier -psdir | --psdir | --psdi | --psd | --ps) 978172683Smlaier ac_prev=psdir ;; 979172683Smlaier -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 980172683Smlaier psdir=$ac_optarg ;; 981172683Smlaier 98217680Spst -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 98317680Spst | -silent | --silent | --silen | --sile | --sil) 98417680Spst silent=yes ;; 98517680Spst 98617680Spst -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 98717680Spst ac_prev=sbindir ;; 98817680Spst -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 98917680Spst | --sbi=* | --sb=*) 990127668Sbms sbindir=$ac_optarg ;; 99117680Spst 99217680Spst -sharedstatedir | --sharedstatedir | --sharedstatedi \ 99317680Spst | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 99417680Spst | --sharedst | --shareds | --shared | --share | --shar \ 99517680Spst | --sha | --sh) 99617680Spst ac_prev=sharedstatedir ;; 99717680Spst -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 99817680Spst | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 99917680Spst | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 100017680Spst | --sha=* | --sh=*) 1001127668Sbms sharedstatedir=$ac_optarg ;; 100217680Spst 100317680Spst -site | --site | --sit) 100417680Spst ac_prev=site ;; 100517680Spst -site=* | --site=* | --sit=*) 1006127668Sbms site=$ac_optarg ;; 100717680Spst 100817680Spst -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 100917680Spst ac_prev=srcdir ;; 101017680Spst -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1011127668Sbms srcdir=$ac_optarg ;; 101217680Spst 101317680Spst -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 101417680Spst | --syscon | --sysco | --sysc | --sys | --sy) 101517680Spst ac_prev=sysconfdir ;; 101617680Spst -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 101717680Spst | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1018127668Sbms sysconfdir=$ac_optarg ;; 101917680Spst 102017680Spst -target | --target | --targe | --targ | --tar | --ta | --t) 1021127668Sbms ac_prev=target_alias ;; 102217680Spst -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1023127668Sbms target_alias=$ac_optarg ;; 102417680Spst 102517680Spst -v | -verbose | --verbose | --verbos | --verbo | --verb) 102617680Spst verbose=yes ;; 102717680Spst 1028127668Sbms -version | --version | --versio | --versi | --vers | -V) 1029127668Sbms ac_init_version=: ;; 103017680Spst 103117680Spst -with-* | --with-*) 1032252283Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 103317680Spst # Reject names that are not valid shell variable names. 1034252283Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1035252283Sdelphij as_fn_error $? "invalid package name: $ac_useropt" 1036252283Sdelphij ac_useropt_orig=$ac_useropt 1037252283Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1038252283Sdelphij case $ac_user_opts in 1039252283Sdelphij *" 1040252283Sdelphij"with_$ac_useropt" 1041252283Sdelphij"*) ;; 1042252283Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1043252283Sdelphij ac_unrecognized_sep=', ';; 1044252283Sdelphij esac 1045252283Sdelphij eval with_$ac_useropt=\$ac_optarg ;; 104617680Spst 104717680Spst -without-* | --without-*) 1048252283Sdelphij ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 104917680Spst # Reject names that are not valid shell variable names. 1050252283Sdelphij expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1051252283Sdelphij as_fn_error $? "invalid package name: $ac_useropt" 1052252283Sdelphij ac_useropt_orig=$ac_useropt 1053252283Sdelphij ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1054252283Sdelphij case $ac_user_opts in 1055252283Sdelphij *" 1056252283Sdelphij"with_$ac_useropt" 1057252283Sdelphij"*) ;; 1058252283Sdelphij *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1059252283Sdelphij ac_unrecognized_sep=', ';; 1060252283Sdelphij esac 1061252283Sdelphij eval with_$ac_useropt=no ;; 106217680Spst 106317680Spst --x) 106417680Spst # Obsolete; use --with-x. 106517680Spst with_x=yes ;; 106617680Spst 106717680Spst -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 106817680Spst | --x-incl | --x-inc | --x-in | --x-i) 106917680Spst ac_prev=x_includes ;; 107017680Spst -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 107117680Spst | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1072127668Sbms x_includes=$ac_optarg ;; 107317680Spst 107417680Spst -x-libraries | --x-libraries | --x-librarie | --x-librari \ 107517680Spst | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 107617680Spst ac_prev=x_libraries ;; 107717680Spst -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 107817680Spst | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1079127668Sbms x_libraries=$ac_optarg ;; 108017680Spst 1081252283Sdelphij -*) as_fn_error $? "unrecognized option: \`$ac_option' 1082252283SdelphijTry \`$0 --help' for more information" 108317680Spst ;; 108417680Spst 1085127668Sbms *=*) 1086127668Sbms ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1087127668Sbms # Reject names that are not valid shell variable names. 1088252283Sdelphij case $ac_envvar in #( 1089252283Sdelphij '' | [0-9]* | *[!_$as_cr_alnum]* ) 1090252283Sdelphij as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1091252283Sdelphij esac 1092172683Smlaier eval $ac_envvar=\$ac_optarg 1093127668Sbms export $ac_envvar ;; 1094127668Sbms 109517680Spst *) 1096127668Sbms # FIXME: should be removed in autoconf 3.0. 1097252283Sdelphij $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1098127668Sbms expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1099252283Sdelphij $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1100252283Sdelphij : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 110117680Spst ;; 110217680Spst 110317680Spst esac 110417680Spstdone 110517680Spst 110617680Spstif test -n "$ac_prev"; then 1107127668Sbms ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1108252283Sdelphij as_fn_error $? "missing argument to $ac_option" 110917680Spstfi 111017680Spst 1111252283Sdelphijif test -n "$ac_unrecognized_opts"; then 1112252283Sdelphij case $enable_option_checking in 1113252283Sdelphij no) ;; 1114252283Sdelphij fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1115252283Sdelphij *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1116252283Sdelphij esac 1117252283Sdelphijfi 1118252283Sdelphij 1119252283Sdelphij# Check all directory arguments for consistency. 1120172683Smlaierfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1121172683Smlaier datadir sysconfdir sharedstatedir localstatedir includedir \ 1122172683Smlaier oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1123172683Smlaier libdir localedir mandir 1124127668Sbmsdo 1125172683Smlaier eval ac_val=\$$ac_var 1126252283Sdelphij # Remove trailing slashes. 1127127668Sbms case $ac_val in 1128252283Sdelphij */ ) 1129252283Sdelphij ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1130252283Sdelphij eval $ac_var=\$ac_val;; 1131252283Sdelphij esac 1132252283Sdelphij # Be sure to have absolute directory names. 1133252283Sdelphij case $ac_val in 1134172683Smlaier [\\/$]* | ?:[\\/]* ) continue;; 1135172683Smlaier NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1136127668Sbms esac 1137252283Sdelphij as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1138127668Sbmsdone 113917680Spst 1140127668Sbms# There might be people who depend on the old broken behavior: `$host' 1141127668Sbms# used to hold the argument of --host etc. 1142127668Sbms# FIXME: To remove some day. 1143127668Sbmsbuild=$build_alias 1144127668Sbmshost=$host_alias 1145127668Sbmstarget=$target_alias 114617680Spst 1147127668Sbms# FIXME: To remove some day. 1148127668Sbmsif test "x$host_alias" != x; then 1149127668Sbms if test "x$build_alias" = x; then 1150127668Sbms cross_compiling=maybe 1151252283Sdelphij $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1152252283Sdelphij If a cross compiler is detected then cross compile mode will be used" >&2 1153127668Sbms elif test "x$build_alias" != "x$host_alias"; then 1154127668Sbms cross_compiling=yes 1155127668Sbms fi 1156127668Sbmsfi 115717680Spst 1158127668Sbmsac_tool_prefix= 1159127668Sbmstest -n "$host_alias" && ac_tool_prefix=$host_alias- 116017680Spst 1161127668Sbmstest "$silent" = yes && exec 6>/dev/null 1162127668Sbms 1163127668Sbms 1164172683Smlaierac_pwd=`pwd` && test -n "$ac_pwd" && 1165172683Smlaierac_ls_di=`ls -di .` && 1166172683Smlaierac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1167252283Sdelphij as_fn_error $? "working directory cannot be determined" 1168172683Smlaiertest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1169252283Sdelphij as_fn_error $? "pwd does not report name of working directory" 1170172683Smlaier 1171172683Smlaier 117217680Spst# Find the source files, if location was not specified. 117317680Spstif test -z "$srcdir"; then 117417680Spst ac_srcdir_defaulted=yes 1175172683Smlaier # Try the directory containing this script, then the parent directory. 1176252283Sdelphij ac_confdir=`$as_dirname -- "$as_myself" || 1177252283Sdelphij$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1178252283Sdelphij X"$as_myself" : 'X\(//\)[^/]' \| \ 1179252283Sdelphij X"$as_myself" : 'X\(//\)$' \| \ 1180252283Sdelphij X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1181252283Sdelphij$as_echo X"$as_myself" | 1182172683Smlaier sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1183172683Smlaier s//\1/ 1184172683Smlaier q 1185172683Smlaier } 1186172683Smlaier /^X\(\/\/\)[^/].*/{ 1187172683Smlaier s//\1/ 1188172683Smlaier q 1189172683Smlaier } 1190172683Smlaier /^X\(\/\/\)$/{ 1191172683Smlaier s//\1/ 1192172683Smlaier q 1193172683Smlaier } 1194172683Smlaier /^X\(\/\).*/{ 1195172683Smlaier s//\1/ 1196172683Smlaier q 1197172683Smlaier } 1198172683Smlaier s/.*/./; q'` 119917680Spst srcdir=$ac_confdir 1200172683Smlaier if test ! -r "$srcdir/$ac_unique_file"; then 120117680Spst srcdir=.. 120217680Spst fi 120317680Spstelse 120417680Spst ac_srcdir_defaulted=no 120517680Spstfi 1206172683Smlaierif test ! -r "$srcdir/$ac_unique_file"; then 1207172683Smlaier test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1208252283Sdelphij as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1209172683Smlaierfi 1210172683Smlaierac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1211172683Smlaierac_abs_confdir=`( 1212252283Sdelphij cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1213172683Smlaier pwd)` 1214172683Smlaier# When building in place, set srcdir=. 1215172683Smlaierif test "$ac_abs_confdir" = "$ac_pwd"; then 1216172683Smlaier srcdir=. 121717680Spstfi 1218172683Smlaier# Remove unnecessary trailing slashes from srcdir. 1219172683Smlaier# Double slashes in file names in object file debugging info 1220172683Smlaier# mess up M-x gdb in Emacs. 1221172683Smlaiercase $srcdir in 1222172683Smlaier*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1223172683Smlaieresac 1224172683Smlaierfor ac_var in $ac_precious_vars; do 1225172683Smlaier eval ac_env_${ac_var}_set=\${${ac_var}+set} 1226172683Smlaier eval ac_env_${ac_var}_value=\$${ac_var} 1227172683Smlaier eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1228172683Smlaier eval ac_cv_env_${ac_var}_value=\$${ac_var} 1229172683Smlaierdone 123017680Spst 1231127668Sbms# 1232127668Sbms# Report the --help message. 1233127668Sbms# 1234127668Sbmsif test "$ac_init_help" = "long"; then 1235127668Sbms # Omit some internal or obsolete options to make the list less imposing. 1236127668Sbms # This message is too long to be a string in the A/UX 3.1 sh. 1237127668Sbms cat <<_ACEOF 1238127668Sbms\`configure' configures this package to adapt to many kinds of systems. 1239127668Sbms 1240127668SbmsUsage: $0 [OPTION]... [VAR=VALUE]... 1241127668Sbms 1242127668SbmsTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1243127668SbmsVAR=VALUE. See below for descriptions of some of the useful variables. 1244127668Sbms 1245127668SbmsDefaults for the options are specified in brackets. 1246127668Sbms 1247127668SbmsConfiguration: 1248127668Sbms -h, --help display this help and exit 1249127668Sbms --help=short display options specific to this package 1250127668Sbms --help=recursive display the short help of all the included packages 1251127668Sbms -V, --version display version information and exit 1252252283Sdelphij -q, --quiet, --silent do not print \`checking ...' messages 1253127668Sbms --cache-file=FILE cache test results in FILE [disabled] 1254127668Sbms -C, --config-cache alias for \`--cache-file=config.cache' 1255127668Sbms -n, --no-create do not create output files 1256127668Sbms --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1257127668Sbms 1258127668SbmsInstallation directories: 1259127668Sbms --prefix=PREFIX install architecture-independent files in PREFIX 1260252283Sdelphij [$ac_default_prefix] 1261127668Sbms --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1262252283Sdelphij [PREFIX] 1263127668Sbms 1264127668SbmsBy default, \`make install' will install all the files in 1265127668Sbms\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1266127668Sbmsan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1267127668Sbmsfor instance \`--prefix=\$HOME'. 1268127668Sbms 1269127668SbmsFor better control, use the options below. 1270127668Sbms 1271127668SbmsFine tuning of the installation directories: 1272252283Sdelphij --bindir=DIR user executables [EPREFIX/bin] 1273252283Sdelphij --sbindir=DIR system admin executables [EPREFIX/sbin] 1274252283Sdelphij --libexecdir=DIR program executables [EPREFIX/libexec] 1275252283Sdelphij --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1276252283Sdelphij --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1277252283Sdelphij --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1278252283Sdelphij --libdir=DIR object code libraries [EPREFIX/lib] 1279252283Sdelphij --includedir=DIR C header files [PREFIX/include] 1280252283Sdelphij --oldincludedir=DIR C header files for non-gcc [/usr/include] 1281252283Sdelphij --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1282252283Sdelphij --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1283252283Sdelphij --infodir=DIR info documentation [DATAROOTDIR/info] 1284252283Sdelphij --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1285252283Sdelphij --mandir=DIR man documentation [DATAROOTDIR/man] 1286252283Sdelphij --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1287252283Sdelphij --htmldir=DIR html documentation [DOCDIR] 1288252283Sdelphij --dvidir=DIR dvi documentation [DOCDIR] 1289252283Sdelphij --pdfdir=DIR pdf documentation [DOCDIR] 1290252283Sdelphij --psdir=DIR ps documentation [DOCDIR] 1291127668Sbms_ACEOF 1292127668Sbms 1293127668Sbms cat <<\_ACEOF 1294127668Sbms 1295127668SbmsSystem types: 1296127668Sbms --build=BUILD configure for building on BUILD [guessed] 1297127668Sbms --host=HOST cross-compile to build programs to run on HOST [BUILD] 1298127668Sbms_ACEOF 1299127668Sbmsfi 1300127668Sbms 1301127668Sbmsif test -n "$ac_init_help"; then 1302127668Sbms 1303127668Sbms cat <<\_ACEOF 1304127668Sbms 1305127668SbmsOptional Features: 1306252283Sdelphij --disable-option-checking ignore unrecognized --enable/--with options 1307127668Sbms --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1308127668Sbms --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1309236192Sdelphij --disable-universal don't build universal on OS X 1310127668Sbms --enable-smb enable possibly-buggy SMB printer default=yes 1311127668Sbms --disable-smb disable possibly-buggy SMB printer 1312127668Sbms --enable-ipv6 enable ipv6 (with ipv4) support 1313127668Sbms --disable-ipv6 disable ipv6 support 1314127668Sbms 1315127668SbmsOptional Packages: 1316127668Sbms --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1317127668Sbms --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1318127668Sbms --without-gcc don't use gcc 1319214478Srpaulo --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes 1320214478Srpaulo --without-smi don't link with libsmi 1321146773Ssam --with-user=USERNAME drop privileges by default to USERNAME 1322146773Ssam --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 1323252283Sdelphij --with-crypto use OpenSSL libcrypto [default=yes, if available] 1324127668Sbms 1325127668SbmsSome influential environment variables: 1326127668Sbms CC C compiler command 1327127668Sbms CFLAGS C compiler flags 1328127668Sbms LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1329127668Sbms nonstandard directory <lib dir> 1330172683Smlaier LIBS libraries to pass to the linker, e.g. -l<library> 1331252283Sdelphij CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1332172683Smlaier you have headers in a nonstandard directory <include dir> 1333127668Sbms CPP C preprocessor 1334127668Sbms 1335127668SbmsUse these variables to override the choices made by `configure' or to help 1336127668Sbmsit to find libraries and programs with nonstandard names/locations. 1337127668Sbms 1338252283SdelphijReport bugs to the package provider. 1339127668Sbms_ACEOF 1340172683Smlaierac_status=$? 1341127668Sbmsfi 1342127668Sbms 1343127668Sbmsif test "$ac_init_help" = "recursive"; then 1344127668Sbms # If there are subdirs, report their specific --help. 1345127668Sbms for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1346252283Sdelphij test -d "$ac_dir" || 1347252283Sdelphij { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1348252283Sdelphij continue 1349127668Sbms ac_builddir=. 1350127668Sbms 1351172683Smlaiercase "$ac_dir" in 1352172683Smlaier.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1353172683Smlaier*) 1354252283Sdelphij ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1355172683Smlaier # A ".." for each directory in $ac_dir_suffix. 1356252283Sdelphij ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1357172683Smlaier case $ac_top_builddir_sub in 1358172683Smlaier "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1359172683Smlaier *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1360172683Smlaier esac ;; 1361172683Smlaieresac 1362172683Smlaierac_abs_top_builddir=$ac_pwd 1363172683Smlaierac_abs_builddir=$ac_pwd$ac_dir_suffix 1364172683Smlaier# for backward compatibility: 1365172683Smlaierac_top_builddir=$ac_top_build_prefix 1366127668Sbms 1367127668Sbmscase $srcdir in 1368172683Smlaier .) # We are building in place. 1369127668Sbms ac_srcdir=. 1370172683Smlaier ac_top_srcdir=$ac_top_builddir_sub 1371172683Smlaier ac_abs_top_srcdir=$ac_pwd ;; 1372172683Smlaier [\\/]* | ?:[\\/]* ) # Absolute name. 1373127668Sbms ac_srcdir=$srcdir$ac_dir_suffix; 1374172683Smlaier ac_top_srcdir=$srcdir 1375172683Smlaier ac_abs_top_srcdir=$srcdir ;; 1376172683Smlaier *) # Relative name. 1377172683Smlaier ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1378172683Smlaier ac_top_srcdir=$ac_top_build_prefix$srcdir 1379172683Smlaier ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1380127668Sbmsesac 1381172683Smlaierac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1382127668Sbms 1383172683Smlaier cd "$ac_dir" || { ac_status=$?; continue; } 1384172683Smlaier # Check for guested configure. 1385172683Smlaier if test -f "$ac_srcdir/configure.gnu"; then 1386172683Smlaier echo && 1387172683Smlaier $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1388172683Smlaier elif test -f "$ac_srcdir/configure"; then 1389172683Smlaier echo && 1390172683Smlaier $SHELL "$ac_srcdir/configure" --help=recursive 1391127668Sbms else 1392252283Sdelphij $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1393172683Smlaier fi || ac_status=$? 1394172683Smlaier cd "$ac_pwd" || { ac_status=$?; break; } 1395127668Sbms done 1396127668Sbmsfi 1397127668Sbms 1398172683Smlaiertest -n "$ac_init_help" && exit $ac_status 1399127668Sbmsif $ac_init_version; then 1400127668Sbms cat <<\_ACEOF 1401172683Smlaierconfigure 1402252283Sdelphijgenerated by GNU Autoconf 2.68 1403127668Sbms 1404252283SdelphijCopyright (C) 2010 Free Software Foundation, Inc. 1405127668SbmsThis configure script is free software; the Free Software Foundation 1406127668Sbmsgives unlimited permission to copy, distribute and modify it. 1407127668Sbms_ACEOF 1408172683Smlaier exit 1409127668Sbmsfi 1410252283Sdelphij 1411252283Sdelphij## ------------------------ ## 1412252283Sdelphij## Autoconf initialization. ## 1413252283Sdelphij## ------------------------ ## 1414252283Sdelphij 1415252283Sdelphij# ac_fn_c_try_compile LINENO 1416252283Sdelphij# -------------------------- 1417252283Sdelphij# Try to compile conftest.$ac_ext, and return whether this succeeded. 1418252283Sdelphijac_fn_c_try_compile () 1419252283Sdelphij{ 1420252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1421252283Sdelphij rm -f conftest.$ac_objext 1422252283Sdelphij if { { ac_try="$ac_compile" 1423252283Sdelphijcase "(($ac_try" in 1424252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1425252283Sdelphij *) ac_try_echo=$ac_try;; 1426252283Sdelphijesac 1427252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1428252283Sdelphij$as_echo "$ac_try_echo"; } >&5 1429252283Sdelphij (eval "$ac_compile") 2>conftest.err 1430252283Sdelphij ac_status=$? 1431252283Sdelphij if test -s conftest.err; then 1432252283Sdelphij grep -v '^ *+' conftest.err >conftest.er1 1433252283Sdelphij cat conftest.er1 >&5 1434252283Sdelphij mv -f conftest.er1 conftest.err 1435252283Sdelphij fi 1436252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1437252283Sdelphij test $ac_status = 0; } && { 1438252283Sdelphij test -z "$ac_c_werror_flag" || 1439252283Sdelphij test ! -s conftest.err 1440252283Sdelphij } && test -s conftest.$ac_objext; then : 1441252283Sdelphij ac_retval=0 1442252283Sdelphijelse 1443252283Sdelphij $as_echo "$as_me: failed program was:" >&5 1444252283Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1445252283Sdelphij 1446252283Sdelphij ac_retval=1 1447252283Sdelphijfi 1448252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1449252283Sdelphij as_fn_set_status $ac_retval 1450252283Sdelphij 1451252283Sdelphij} # ac_fn_c_try_compile 1452252283Sdelphij 1453252283Sdelphij# ac_fn_c_try_cpp LINENO 1454252283Sdelphij# ---------------------- 1455252283Sdelphij# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1456252283Sdelphijac_fn_c_try_cpp () 1457252283Sdelphij{ 1458252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1459252283Sdelphij if { { ac_try="$ac_cpp conftest.$ac_ext" 1460252283Sdelphijcase "(($ac_try" in 1461252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1462252283Sdelphij *) ac_try_echo=$ac_try;; 1463252283Sdelphijesac 1464252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1465252283Sdelphij$as_echo "$ac_try_echo"; } >&5 1466252283Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1467252283Sdelphij ac_status=$? 1468252283Sdelphij if test -s conftest.err; then 1469252283Sdelphij grep -v '^ *+' conftest.err >conftest.er1 1470252283Sdelphij cat conftest.er1 >&5 1471252283Sdelphij mv -f conftest.er1 conftest.err 1472252283Sdelphij fi 1473252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1474252283Sdelphij test $ac_status = 0; } > conftest.i && { 1475252283Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1476252283Sdelphij test ! -s conftest.err 1477252283Sdelphij }; then : 1478252283Sdelphij ac_retval=0 1479252283Sdelphijelse 1480252283Sdelphij $as_echo "$as_me: failed program was:" >&5 1481252283Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1482252283Sdelphij 1483252283Sdelphij ac_retval=1 1484252283Sdelphijfi 1485252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1486252283Sdelphij as_fn_set_status $ac_retval 1487252283Sdelphij 1488252283Sdelphij} # ac_fn_c_try_cpp 1489252283Sdelphij 1490252283Sdelphij# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1491252283Sdelphij# ------------------------------------------------------- 1492252283Sdelphij# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1493252283Sdelphij# the include files in INCLUDES and setting the cache variable VAR 1494252283Sdelphij# accordingly. 1495252283Sdelphijac_fn_c_check_header_mongrel () 1496252283Sdelphij{ 1497252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1498252283Sdelphij if eval \${$3+:} false; then : 1499252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1500252283Sdelphij$as_echo_n "checking for $2... " >&6; } 1501252283Sdelphijif eval \${$3+:} false; then : 1502252283Sdelphij $as_echo_n "(cached) " >&6 1503252283Sdelphijfi 1504252283Sdelphijeval ac_res=\$$3 1505252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1506252283Sdelphij$as_echo "$ac_res" >&6; } 1507252283Sdelphijelse 1508252283Sdelphij # Is the header compilable? 1509252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1510252283Sdelphij$as_echo_n "checking $2 usability... " >&6; } 1511252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1512252283Sdelphij/* end confdefs.h. */ 1513252283Sdelphij$4 1514252283Sdelphij#include <$2> 1515252283Sdelphij_ACEOF 1516252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1517252283Sdelphij ac_header_compiler=yes 1518252283Sdelphijelse 1519252283Sdelphij ac_header_compiler=no 1520252283Sdelphijfi 1521252283Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1522252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1523252283Sdelphij$as_echo "$ac_header_compiler" >&6; } 1524252283Sdelphij 1525252283Sdelphij# Is the header present? 1526252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1527252283Sdelphij$as_echo_n "checking $2 presence... " >&6; } 1528252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1529252283Sdelphij/* end confdefs.h. */ 1530252283Sdelphij#include <$2> 1531252283Sdelphij_ACEOF 1532252283Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 1533252283Sdelphij ac_header_preproc=yes 1534252283Sdelphijelse 1535252283Sdelphij ac_header_preproc=no 1536252283Sdelphijfi 1537252283Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 1538252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1539252283Sdelphij$as_echo "$ac_header_preproc" >&6; } 1540252283Sdelphij 1541252283Sdelphij# So? What about this header? 1542252283Sdelphijcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1543252283Sdelphij yes:no: ) 1544252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1545252283Sdelphij$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1546252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1547252283Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1548252283Sdelphij ;; 1549252283Sdelphij no:yes:* ) 1550252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1551252283Sdelphij$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1552252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1553252283Sdelphij$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1554252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1555252283Sdelphij$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1556252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1557252283Sdelphij$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1558252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1559252283Sdelphij$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1560252283Sdelphij ;; 1561252283Sdelphijesac 1562252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1563252283Sdelphij$as_echo_n "checking for $2... " >&6; } 1564252283Sdelphijif eval \${$3+:} false; then : 1565252283Sdelphij $as_echo_n "(cached) " >&6 1566252283Sdelphijelse 1567252283Sdelphij eval "$3=\$ac_header_compiler" 1568252283Sdelphijfi 1569252283Sdelphijeval ac_res=\$$3 1570252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1571252283Sdelphij$as_echo "$ac_res" >&6; } 1572252283Sdelphijfi 1573252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574252283Sdelphij 1575252283Sdelphij} # ac_fn_c_check_header_mongrel 1576252283Sdelphij 1577252283Sdelphij# ac_fn_c_try_run LINENO 1578252283Sdelphij# ---------------------- 1579252283Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1580252283Sdelphij# that executables *can* be run. 1581252283Sdelphijac_fn_c_try_run () 1582252283Sdelphij{ 1583252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584252283Sdelphij if { { ac_try="$ac_link" 1585252283Sdelphijcase "(($ac_try" in 1586252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587252283Sdelphij *) ac_try_echo=$ac_try;; 1588252283Sdelphijesac 1589252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590252283Sdelphij$as_echo "$ac_try_echo"; } >&5 1591252283Sdelphij (eval "$ac_link") 2>&5 1592252283Sdelphij ac_status=$? 1593252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594252283Sdelphij test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1595252283Sdelphij { { case "(($ac_try" in 1596252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597252283Sdelphij *) ac_try_echo=$ac_try;; 1598252283Sdelphijesac 1599252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1600252283Sdelphij$as_echo "$ac_try_echo"; } >&5 1601252283Sdelphij (eval "$ac_try") 2>&5 1602252283Sdelphij ac_status=$? 1603252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604252283Sdelphij test $ac_status = 0; }; }; then : 1605252283Sdelphij ac_retval=0 1606252283Sdelphijelse 1607252283Sdelphij $as_echo "$as_me: program exited with status $ac_status" >&5 1608252283Sdelphij $as_echo "$as_me: failed program was:" >&5 1609252283Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1610252283Sdelphij 1611252283Sdelphij ac_retval=$ac_status 1612252283Sdelphijfi 1613252283Sdelphij rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1614252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615252283Sdelphij as_fn_set_status $ac_retval 1616252283Sdelphij 1617252283Sdelphij} # ac_fn_c_try_run 1618252283Sdelphij 1619252283Sdelphij# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1620252283Sdelphij# ------------------------------------------------------- 1621252283Sdelphij# Tests whether HEADER exists and can be compiled using the include files in 1622252283Sdelphij# INCLUDES, setting the cache variable VAR accordingly. 1623252283Sdelphijac_fn_c_check_header_compile () 1624252283Sdelphij{ 1625252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1627252283Sdelphij$as_echo_n "checking for $2... " >&6; } 1628252283Sdelphijif eval \${$3+:} false; then : 1629252283Sdelphij $as_echo_n "(cached) " >&6 1630252283Sdelphijelse 1631252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632252283Sdelphij/* end confdefs.h. */ 1633252283Sdelphij$4 1634252283Sdelphij#include <$2> 1635252283Sdelphij_ACEOF 1636252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1637252283Sdelphij eval "$3=yes" 1638252283Sdelphijelse 1639252283Sdelphij eval "$3=no" 1640252283Sdelphijfi 1641252283Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1642252283Sdelphijfi 1643252283Sdelphijeval ac_res=\$$3 1644252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1645252283Sdelphij$as_echo "$ac_res" >&6; } 1646252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647252283Sdelphij 1648252283Sdelphij} # ac_fn_c_check_header_compile 1649252283Sdelphij 1650252283Sdelphij# ac_fn_c_try_link LINENO 1651252283Sdelphij# ----------------------- 1652252283Sdelphij# Try to link conftest.$ac_ext, and return whether this succeeded. 1653252283Sdelphijac_fn_c_try_link () 1654252283Sdelphij{ 1655252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656252283Sdelphij rm -f conftest.$ac_objext conftest$ac_exeext 1657252283Sdelphij if { { ac_try="$ac_link" 1658252283Sdelphijcase "(($ac_try" in 1659252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660252283Sdelphij *) ac_try_echo=$ac_try;; 1661252283Sdelphijesac 1662252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663252283Sdelphij$as_echo "$ac_try_echo"; } >&5 1664252283Sdelphij (eval "$ac_link") 2>conftest.err 1665252283Sdelphij ac_status=$? 1666252283Sdelphij if test -s conftest.err; then 1667252283Sdelphij grep -v '^ *+' conftest.err >conftest.er1 1668252283Sdelphij cat conftest.er1 >&5 1669252283Sdelphij mv -f conftest.er1 conftest.err 1670252283Sdelphij fi 1671252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672252283Sdelphij test $ac_status = 0; } && { 1673252283Sdelphij test -z "$ac_c_werror_flag" || 1674252283Sdelphij test ! -s conftest.err 1675252283Sdelphij } && test -s conftest$ac_exeext && { 1676252283Sdelphij test "$cross_compiling" = yes || 1677252283Sdelphij $as_test_x conftest$ac_exeext 1678252283Sdelphij }; then : 1679252283Sdelphij ac_retval=0 1680252283Sdelphijelse 1681252283Sdelphij $as_echo "$as_me: failed program was:" >&5 1682252283Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 1683252283Sdelphij 1684252283Sdelphij ac_retval=1 1685252283Sdelphijfi 1686252283Sdelphij # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1687252283Sdelphij # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1688252283Sdelphij # interfere with the next link command; also delete a directory that is 1689252283Sdelphij # left behind by Apple's compiler. We do this before executing the actions. 1690252283Sdelphij rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1691252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692252283Sdelphij as_fn_set_status $ac_retval 1693252283Sdelphij 1694252283Sdelphij} # ac_fn_c_try_link 1695252283Sdelphij 1696252283Sdelphij# ac_fn_c_check_func LINENO FUNC VAR 1697252283Sdelphij# ---------------------------------- 1698252283Sdelphij# Tests whether FUNC exists, setting the cache variable VAR accordingly 1699252283Sdelphijac_fn_c_check_func () 1700252283Sdelphij{ 1701252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1703252283Sdelphij$as_echo_n "checking for $2... " >&6; } 1704252283Sdelphijif eval \${$3+:} false; then : 1705252283Sdelphij $as_echo_n "(cached) " >&6 1706252283Sdelphijelse 1707252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708252283Sdelphij/* end confdefs.h. */ 1709252283Sdelphij/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1710252283Sdelphij For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1711252283Sdelphij#define $2 innocuous_$2 1712252283Sdelphij 1713252283Sdelphij/* System header to define __stub macros and hopefully few prototypes, 1714252283Sdelphij which can conflict with char $2 (); below. 1715252283Sdelphij Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1716252283Sdelphij <limits.h> exists even on freestanding compilers. */ 1717252283Sdelphij 1718252283Sdelphij#ifdef __STDC__ 1719252283Sdelphij# include <limits.h> 1720252283Sdelphij#else 1721252283Sdelphij# include <assert.h> 1722252283Sdelphij#endif 1723252283Sdelphij 1724252283Sdelphij#undef $2 1725252283Sdelphij 1726252283Sdelphij/* Override any GCC internal prototype to avoid an error. 1727252283Sdelphij Use char because int might match the return type of a GCC 1728252283Sdelphij builtin and then its argument prototype would still apply. */ 1729252283Sdelphij#ifdef __cplusplus 1730252283Sdelphijextern "C" 1731252283Sdelphij#endif 1732252283Sdelphijchar $2 (); 1733252283Sdelphij/* The GNU C library defines this for functions which it implements 1734252283Sdelphij to always fail with ENOSYS. Some functions are actually named 1735252283Sdelphij something starting with __ and the normal name is an alias. */ 1736252283Sdelphij#if defined __stub_$2 || defined __stub___$2 1737252283Sdelphijchoke me 1738252283Sdelphij#endif 1739252283Sdelphij 1740252283Sdelphijint 1741252283Sdelphijmain () 1742252283Sdelphij{ 1743252283Sdelphijreturn $2 (); 1744252283Sdelphij ; 1745252283Sdelphij return 0; 1746252283Sdelphij} 1747252283Sdelphij_ACEOF 1748252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 1749252283Sdelphij eval "$3=yes" 1750252283Sdelphijelse 1751252283Sdelphij eval "$3=no" 1752252283Sdelphijfi 1753252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 1754252283Sdelphij conftest$ac_exeext conftest.$ac_ext 1755252283Sdelphijfi 1756252283Sdelphijeval ac_res=\$$3 1757252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758252283Sdelphij$as_echo "$ac_res" >&6; } 1759252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760252283Sdelphij 1761252283Sdelphij} # ac_fn_c_check_func 1762252283Sdelphij 1763252283Sdelphij# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1764252283Sdelphij# --------------------------------------------- 1765252283Sdelphij# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1766252283Sdelphij# accordingly. 1767252283Sdelphijac_fn_c_check_decl () 1768252283Sdelphij{ 1769252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770252283Sdelphij as_decl_name=`echo $2|sed 's/ *(.*//'` 1771252283Sdelphij as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1772252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1773252283Sdelphij$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1774252283Sdelphijif eval \${$3+:} false; then : 1775252283Sdelphij $as_echo_n "(cached) " >&6 1776252283Sdelphijelse 1777252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778252283Sdelphij/* end confdefs.h. */ 1779252283Sdelphij$4 1780252283Sdelphijint 1781252283Sdelphijmain () 1782252283Sdelphij{ 1783252283Sdelphij#ifndef $as_decl_name 1784252283Sdelphij#ifdef __cplusplus 1785252283Sdelphij (void) $as_decl_use; 1786252283Sdelphij#else 1787252283Sdelphij (void) $as_decl_name; 1788252283Sdelphij#endif 1789252283Sdelphij#endif 1790252283Sdelphij 1791252283Sdelphij ; 1792252283Sdelphij return 0; 1793252283Sdelphij} 1794252283Sdelphij_ACEOF 1795252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1796252283Sdelphij eval "$3=yes" 1797252283Sdelphijelse 1798252283Sdelphij eval "$3=no" 1799252283Sdelphijfi 1800252283Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801252283Sdelphijfi 1802252283Sdelphijeval ac_res=\$$3 1803252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1804252283Sdelphij$as_echo "$ac_res" >&6; } 1805252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806252283Sdelphij 1807252283Sdelphij} # ac_fn_c_check_decl 1808252283Sdelphij 1809252283Sdelphij# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1810252283Sdelphij# ------------------------------------------- 1811252283Sdelphij# Tests whether TYPE exists after having included INCLUDES, setting cache 1812252283Sdelphij# variable VAR accordingly. 1813252283Sdelphijac_fn_c_check_type () 1814252283Sdelphij{ 1815252283Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817252283Sdelphij$as_echo_n "checking for $2... " >&6; } 1818252283Sdelphijif eval \${$3+:} false; then : 1819252283Sdelphij $as_echo_n "(cached) " >&6 1820252283Sdelphijelse 1821252283Sdelphij eval "$3=no" 1822252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823252283Sdelphij/* end confdefs.h. */ 1824252283Sdelphij$4 1825252283Sdelphijint 1826252283Sdelphijmain () 1827252283Sdelphij{ 1828252283Sdelphijif (sizeof ($2)) 1829252283Sdelphij return 0; 1830252283Sdelphij ; 1831252283Sdelphij return 0; 1832252283Sdelphij} 1833252283Sdelphij_ACEOF 1834252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1835252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836252283Sdelphij/* end confdefs.h. */ 1837252283Sdelphij$4 1838252283Sdelphijint 1839252283Sdelphijmain () 1840252283Sdelphij{ 1841252283Sdelphijif (sizeof (($2))) 1842252283Sdelphij return 0; 1843252283Sdelphij ; 1844252283Sdelphij return 0; 1845252283Sdelphij} 1846252283Sdelphij_ACEOF 1847252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 1848252283Sdelphij 1849252283Sdelphijelse 1850252283Sdelphij eval "$3=yes" 1851252283Sdelphijfi 1852252283Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1853252283Sdelphijfi 1854252283Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1855252283Sdelphijfi 1856252283Sdelphijeval ac_res=\$$3 1857252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858252283Sdelphij$as_echo "$ac_res" >&6; } 1859252283Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860252283Sdelphij 1861252283Sdelphij} # ac_fn_c_check_type 1862172683Smlaiercat >config.log <<_ACEOF 1863127668SbmsThis file contains any messages produced by compilers while 1864127668Sbmsrunning configure, to aid debugging if configure makes a mistake. 1865127668Sbms 1866127668SbmsIt was created by $as_me, which was 1867252283Sdelphijgenerated by GNU Autoconf 2.68. Invocation command line was 1868127668Sbms 1869127668Sbms $ $0 $@ 1870127668Sbms 1871127668Sbms_ACEOF 1872172683Smlaierexec 5>>config.log 1873127668Sbms{ 1874127668Sbmscat <<_ASUNAME 1875127668Sbms## --------- ## 1876127668Sbms## Platform. ## 1877127668Sbms## --------- ## 1878127668Sbms 1879127668Sbmshostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1880127668Sbmsuname -m = `(uname -m) 2>/dev/null || echo unknown` 1881127668Sbmsuname -r = `(uname -r) 2>/dev/null || echo unknown` 1882127668Sbmsuname -s = `(uname -s) 2>/dev/null || echo unknown` 1883127668Sbmsuname -v = `(uname -v) 2>/dev/null || echo unknown` 1884127668Sbms 1885127668Sbms/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1886127668Sbms/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1887127668Sbms 1888127668Sbms/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1889127668Sbms/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1890127668Sbms/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1891172683Smlaier/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1892127668Sbms/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1893127668Sbms/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1894127668Sbms/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1895127668Sbms 1896127668Sbms_ASUNAME 1897127668Sbms 1898127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1899127668Sbmsfor as_dir in $PATH 1900127668Sbmsdo 1901127668Sbms IFS=$as_save_IFS 1902127668Sbms test -z "$as_dir" && as_dir=. 1903252283Sdelphij $as_echo "PATH: $as_dir" 1904252283Sdelphij done 1905172683SmlaierIFS=$as_save_IFS 1906127668Sbms 1907127668Sbms} >&5 1908127668Sbms 1909127668Sbmscat >&5 <<_ACEOF 1910127668Sbms 1911127668Sbms 1912127668Sbms## ----------- ## 1913127668Sbms## Core tests. ## 1914127668Sbms## ----------- ## 1915127668Sbms 1916127668Sbms_ACEOF 1917127668Sbms 1918127668Sbms 1919127668Sbms# Keep a trace of the command line. 1920127668Sbms# Strip out --no-create and --no-recursion so they do not pile up. 1921127668Sbms# Strip out --silent because we don't want to record it for future runs. 1922127668Sbms# Also quote any args containing shell meta-characters. 1923127668Sbms# Make two passes to allow for proper duplicate-argument suppression. 1924127668Sbmsac_configure_args= 1925127668Sbmsac_configure_args0= 1926127668Sbmsac_configure_args1= 1927127668Sbmsac_must_keep_next=false 1928127668Sbmsfor ac_pass in 1 2 1929127668Sbmsdo 1930127668Sbms for ac_arg 1931127668Sbms do 1932127668Sbms case $ac_arg in 1933127668Sbms -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1934127668Sbms -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1935127668Sbms | -silent | --silent | --silen | --sile | --sil) 1936127668Sbms continue ;; 1937172683Smlaier *\'*) 1938252283Sdelphij ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1939127668Sbms esac 1940127668Sbms case $ac_pass in 1941252283Sdelphij 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1942127668Sbms 2) 1943252283Sdelphij as_fn_append ac_configure_args1 " '$ac_arg'" 1944127668Sbms if test $ac_must_keep_next = true; then 1945172683Smlaier ac_must_keep_next=false # Got value, back to normal. 1946127668Sbms else 1947172683Smlaier case $ac_arg in 1948172683Smlaier *=* | --config-cache | -C | -disable-* | --disable-* \ 1949172683Smlaier | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1950172683Smlaier | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1951172683Smlaier | -with-* | --with-* | -without-* | --without-* | --x) 1952172683Smlaier case "$ac_configure_args0 " in 1953172683Smlaier "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1954172683Smlaier esac 1955172683Smlaier ;; 1956172683Smlaier -* ) ac_must_keep_next=true ;; 1957172683Smlaier esac 1958127668Sbms fi 1959252283Sdelphij as_fn_append ac_configure_args " '$ac_arg'" 1960127668Sbms ;; 1961127668Sbms esac 1962127668Sbms done 1963127668Sbmsdone 1964252283Sdelphij{ ac_configure_args0=; unset ac_configure_args0;} 1965252283Sdelphij{ ac_configure_args1=; unset ac_configure_args1;} 1966127668Sbms 1967127668Sbms# When interrupted or exit'd, cleanup temporary files, and complete 1968127668Sbms# config.log. We remove comments because anyway the quotes in there 1969127668Sbms# would cause problems or look ugly. 1970172683Smlaier# WARNING: Use '\'' to represent an apostrophe within the trap. 1971172683Smlaier# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1972127668Sbmstrap 'exit_status=$? 1973127668Sbms # Save into config.log some information that might help in debugging. 1974127668Sbms { 1975127668Sbms echo 1976127668Sbms 1977252283Sdelphij $as_echo "## ---------------- ## 1978127668Sbms## Cache variables. ## 1979252283Sdelphij## ---------------- ##" 1980127668Sbms echo 1981127668Sbms # The following way of writing the cache mishandles newlines in values, 1982172683Smlaier( 1983172683Smlaier for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1984172683Smlaier eval ac_val=\$$ac_var 1985172683Smlaier case $ac_val in #( 1986172683Smlaier *${as_nl}*) 1987172683Smlaier case $ac_var in #( 1988252283Sdelphij *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1989252283Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1990172683Smlaier esac 1991172683Smlaier case $ac_var in #( 1992172683Smlaier _ | IFS | as_nl) ;; #( 1993252283Sdelphij BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1994252283Sdelphij *) { eval $ac_var=; unset $ac_var;} ;; 1995172683Smlaier esac ;; 1996172683Smlaier esac 1997172683Smlaier done 1998127668Sbms (set) 2>&1 | 1999172683Smlaier case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2000172683Smlaier *${as_nl}ac_space=\ *) 2001127668Sbms sed -n \ 2002172683Smlaier "s/'\''/'\''\\\\'\'''\''/g; 2003172683Smlaier s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2004172683Smlaier ;; #( 2005127668Sbms *) 2006172683Smlaier sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2007127668Sbms ;; 2008172683Smlaier esac | 2009172683Smlaier sort 2010172683Smlaier) 2011127668Sbms echo 2012127668Sbms 2013252283Sdelphij $as_echo "## ----------------- ## 2014127668Sbms## Output variables. ## 2015252283Sdelphij## ----------------- ##" 2016127668Sbms echo 2017127668Sbms for ac_var in $ac_subst_vars 2018127668Sbms do 2019172683Smlaier eval ac_val=\$$ac_var 2020172683Smlaier case $ac_val in 2021252283Sdelphij *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2022172683Smlaier esac 2023252283Sdelphij $as_echo "$ac_var='\''$ac_val'\''" 2024127668Sbms done | sort 2025127668Sbms echo 2026127668Sbms 2027127668Sbms if test -n "$ac_subst_files"; then 2028252283Sdelphij $as_echo "## ------------------- ## 2029172683Smlaier## File substitutions. ## 2030252283Sdelphij## ------------------- ##" 2031127668Sbms echo 2032127668Sbms for ac_var in $ac_subst_files 2033127668Sbms do 2034172683Smlaier eval ac_val=\$$ac_var 2035172683Smlaier case $ac_val in 2036252283Sdelphij *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2037172683Smlaier esac 2038252283Sdelphij $as_echo "$ac_var='\''$ac_val'\''" 2039127668Sbms done | sort 2040127668Sbms echo 2041127668Sbms fi 2042127668Sbms 2043127668Sbms if test -s confdefs.h; then 2044252283Sdelphij $as_echo "## ----------- ## 2045127668Sbms## confdefs.h. ## 2046252283Sdelphij## ----------- ##" 2047127668Sbms echo 2048172683Smlaier cat confdefs.h 2049127668Sbms echo 2050127668Sbms fi 2051127668Sbms test "$ac_signal" != 0 && 2052252283Sdelphij $as_echo "$as_me: caught signal $ac_signal" 2053252283Sdelphij $as_echo "$as_me: exit $exit_status" 2054127668Sbms } >&5 2055172683Smlaier rm -f core *.core core.conftest.* && 2056172683Smlaier rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2057127668Sbms exit $exit_status 2058172683Smlaier' 0 2059127668Sbmsfor ac_signal in 1 2 13 15; do 2060252283Sdelphij trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2061127668Sbmsdone 2062127668Sbmsac_signal=0 2063127668Sbms 2064127668Sbms# confdefs.h avoids OS command line length limits that DEFS can exceed. 2065172683Smlaierrm -f -r conftest* confdefs.h 2066127668Sbms 2067252283Sdelphij$as_echo "/* confdefs.h */" > confdefs.h 2068252283Sdelphij 2069127668Sbms# Predefined preprocessor variables. 2070127668Sbms 2071127668Sbmscat >>confdefs.h <<_ACEOF 2072127668Sbms#define PACKAGE_NAME "$PACKAGE_NAME" 2073127668Sbms_ACEOF 2074127668Sbms 2075127668Sbmscat >>confdefs.h <<_ACEOF 2076127668Sbms#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2077127668Sbms_ACEOF 2078127668Sbms 2079127668Sbmscat >>confdefs.h <<_ACEOF 2080127668Sbms#define PACKAGE_VERSION "$PACKAGE_VERSION" 2081127668Sbms_ACEOF 2082127668Sbms 2083127668Sbmscat >>confdefs.h <<_ACEOF 2084127668Sbms#define PACKAGE_STRING "$PACKAGE_STRING" 2085127668Sbms_ACEOF 2086127668Sbms 2087127668Sbmscat >>confdefs.h <<_ACEOF 2088127668Sbms#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2089127668Sbms_ACEOF 2090127668Sbms 2091252283Sdelphijcat >>confdefs.h <<_ACEOF 2092252283Sdelphij#define PACKAGE_URL "$PACKAGE_URL" 2093252283Sdelphij_ACEOF 2094127668Sbms 2095252283Sdelphij 2096127668Sbms# Let the site file select an alternate cache file if it wants to. 2097252283Sdelphij# Prefer an explicitly selected file to automatically selected ones. 2098252283Sdelphijac_site_file1=NONE 2099252283Sdelphijac_site_file2=NONE 2100172683Smlaierif test -n "$CONFIG_SITE"; then 2101252283Sdelphij # We do not want a PATH search for config.site. 2102252283Sdelphij case $CONFIG_SITE in #(( 2103252283Sdelphij -*) ac_site_file1=./$CONFIG_SITE;; 2104252283Sdelphij */*) ac_site_file1=$CONFIG_SITE;; 2105252283Sdelphij *) ac_site_file1=./$CONFIG_SITE;; 2106252283Sdelphij esac 2107172683Smlaierelif test "x$prefix" != xNONE; then 2108252283Sdelphij ac_site_file1=$prefix/share/config.site 2109252283Sdelphij ac_site_file2=$prefix/etc/config.site 2110172683Smlaierelse 2111252283Sdelphij ac_site_file1=$ac_default_prefix/share/config.site 2112252283Sdelphij ac_site_file2=$ac_default_prefix/etc/config.site 211317680Spstfi 2114252283Sdelphijfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2115172683Smlaierdo 2116252283Sdelphij test "x$ac_site_file" = xNONE && continue 2117252283Sdelphij if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2118252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2119252283Sdelphij$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2120127668Sbms sed 's/^/| /' "$ac_site_file" >&5 2121252283Sdelphij . "$ac_site_file" \ 2122252283Sdelphij || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2123252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2124252283Sdelphijas_fn_error $? "failed to load site script $ac_site_file 2125252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 212617680Spst fi 212717680Spstdone 212817680Spst 212917680Spstif test -r "$cache_file"; then 2130252283Sdelphij # Some versions of bash will fail to source /dev/null (special files 2131252283Sdelphij # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2132252283Sdelphij if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2133252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2134252283Sdelphij$as_echo "$as_me: loading cache $cache_file" >&6;} 2135127668Sbms case $cache_file in 2136172683Smlaier [\\/]* | ?:[\\/]* ) . "$cache_file";; 2137172683Smlaier *) . "./$cache_file";; 2138127668Sbms esac 2139127668Sbms fi 214017680Spstelse 2141252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2142252283Sdelphij$as_echo "$as_me: creating cache $cache_file" >&6;} 2143127668Sbms >$cache_file 214417680Spstfi 214517680Spst 2146127668Sbms# Check that the precious variables saved in the cache have kept the same 2147127668Sbms# value. 2148127668Sbmsac_cache_corrupted=false 2149172683Smlaierfor ac_var in $ac_precious_vars; do 2150127668Sbms eval ac_old_set=\$ac_cv_env_${ac_var}_set 2151127668Sbms eval ac_new_set=\$ac_env_${ac_var}_set 2152172683Smlaier eval ac_old_val=\$ac_cv_env_${ac_var}_value 2153172683Smlaier eval ac_new_val=\$ac_env_${ac_var}_value 2154127668Sbms case $ac_old_set,$ac_new_set in 2155127668Sbms set,) 2156252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2157252283Sdelphij$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2158127668Sbms ac_cache_corrupted=: ;; 2159127668Sbms ,set) 2160252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2161252283Sdelphij$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2162127668Sbms ac_cache_corrupted=: ;; 2163127668Sbms ,);; 2164127668Sbms *) 2165127668Sbms if test "x$ac_old_val" != "x$ac_new_val"; then 2166252283Sdelphij # differences in whitespace do not lead to failure. 2167252283Sdelphij ac_old_val_w=`echo x $ac_old_val` 2168252283Sdelphij ac_new_val_w=`echo x $ac_new_val` 2169252283Sdelphij if test "$ac_old_val_w" != "$ac_new_val_w"; then 2170252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2171252283Sdelphij$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2172252283Sdelphij ac_cache_corrupted=: 2173252283Sdelphij else 2174252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2175252283Sdelphij$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2176252283Sdelphij eval $ac_var=\$ac_old_val 2177252283Sdelphij fi 2178252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2179252283Sdelphij$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2180252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2181252283Sdelphij$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2182127668Sbms fi;; 2183127668Sbms esac 2184127668Sbms # Pass precious variables to config.status. 2185127668Sbms if test "$ac_new_set" = set; then 2186127668Sbms case $ac_new_val in 2187252283Sdelphij *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2188127668Sbms *) ac_arg=$ac_var=$ac_new_val ;; 2189127668Sbms esac 2190127668Sbms case " $ac_configure_args " in 2191127668Sbms *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2192252283Sdelphij *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2193127668Sbms esac 2194127668Sbms fi 2195127668Sbmsdone 2196127668Sbmsif $ac_cache_corrupted; then 2197252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2198252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2199252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2200252283Sdelphij$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2201252283Sdelphij as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2202127668Sbmsfi 2203252283Sdelphij## -------------------- ## 2204252283Sdelphij## Main body of script. ## 2205252283Sdelphij## -------------------- ## 2206127668Sbms 2207172683Smlaierac_ext=c 2208172683Smlaierac_cpp='$CPP $CPPFLAGS' 2209172683Smlaierac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2210172683Smlaierac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2211172683Smlaierac_compiler_gnu=$ac_cv_c_compiler_gnu 2212127668Sbms 2213127668Sbms 2214127668Sbms 221517680Spstac_aux_dir= 2216172683Smlaierfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2217172683Smlaier if test -f "$ac_dir/install-sh"; then 221817680Spst ac_aux_dir=$ac_dir 221917680Spst ac_install_sh="$ac_aux_dir/install-sh -c" 222017680Spst break 2221172683Smlaier elif test -f "$ac_dir/install.sh"; then 222217680Spst ac_aux_dir=$ac_dir 222317680Spst ac_install_sh="$ac_aux_dir/install.sh -c" 222417680Spst break 2225172683Smlaier elif test -f "$ac_dir/shtool"; then 2226127668Sbms ac_aux_dir=$ac_dir 2227127668Sbms ac_install_sh="$ac_aux_dir/shtool install -c" 2228127668Sbms break 222917680Spst fi 223017680Spstdone 223117680Spstif test -z "$ac_aux_dir"; then 2232252283Sdelphij as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 223317680Spstfi 223417680Spst 2235172683Smlaier# These three variables are undocumented and unsupported, 2236172683Smlaier# and are intended to be withdrawn in a future Autoconf release. 2237172683Smlaier# They can cause serious problems if a builder's source tree is in a directory 2238172683Smlaier# whose full name contains unusual characters. 2239172683Smlaierac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2240172683Smlaierac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2241172683Smlaierac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2242172683Smlaier 2243172683Smlaier 2244127668Sbms# Make sure we can run config.sub. 2245172683Smlaier$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2246252283Sdelphij as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 224717680Spst 2248252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2249252283Sdelphij$as_echo_n "checking build system type... " >&6; } 2250252283Sdelphijif ${ac_cv_build+:} false; then : 2251252283Sdelphij $as_echo_n "(cached) " >&6 2252127668Sbmselse 2253172683Smlaier ac_build_alias=$build_alias 2254172683Smlaiertest "x$ac_build_alias" = x && 2255172683Smlaier ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2256172683Smlaiertest "x$ac_build_alias" = x && 2257252283Sdelphij as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2258172683Smlaierac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2259252283Sdelphij as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2260127668Sbms 226117680Spstfi 2262252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2263252283Sdelphij$as_echo "$ac_cv_build" >&6; } 2264172683Smlaiercase $ac_cv_build in 2265172683Smlaier*-*-*) ;; 2266252283Sdelphij*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2267172683Smlaieresac 2268127668Sbmsbuild=$ac_cv_build 2269172683Smlaierac_save_IFS=$IFS; IFS='-' 2270172683Smlaierset x $ac_cv_build 2271172683Smlaiershift 2272172683Smlaierbuild_cpu=$1 2273172683Smlaierbuild_vendor=$2 2274172683Smlaiershift; shift 2275172683Smlaier# Remember, the first character of IFS is used to create $*, 2276172683Smlaier# except with old shells: 2277172683Smlaierbuild_os=$* 2278172683SmlaierIFS=$ac_save_IFS 2279172683Smlaiercase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 228017680Spst 228117680Spst 2282252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2283252283Sdelphij$as_echo_n "checking host system type... " >&6; } 2284252283Sdelphijif ${ac_cv_host+:} false; then : 2285252283Sdelphij $as_echo_n "(cached) " >&6 2286127668Sbmselse 2287172683Smlaier if test "x$host_alias" = x; then 2288172683Smlaier ac_cv_host=$ac_cv_build 2289172683Smlaierelse 2290172683Smlaier ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2291252283Sdelphij as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2292172683Smlaierfi 229317680Spst 2294127668Sbmsfi 2295252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2296252283Sdelphij$as_echo "$ac_cv_host" >&6; } 2297172683Smlaiercase $ac_cv_host in 2298172683Smlaier*-*-*) ;; 2299252283Sdelphij*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2300172683Smlaieresac 2301127668Sbmshost=$ac_cv_host 2302172683Smlaierac_save_IFS=$IFS; IFS='-' 2303172683Smlaierset x $ac_cv_host 2304172683Smlaiershift 2305172683Smlaierhost_cpu=$1 2306172683Smlaierhost_vendor=$2 2307172683Smlaiershift; shift 2308172683Smlaier# Remember, the first character of IFS is used to create $*, 2309172683Smlaier# except with old shells: 2310172683Smlaierhost_os=$* 2311172683SmlaierIFS=$ac_save_IFS 2312172683Smlaiercase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 231317680Spst 231417680Spst 231517680Spst 2316127668Sbms 2317127668Sbms 2318127668Sbms 2319127668Sbms 2320127668Sbms 2321214478Srpaulo 2322172683Smlaier# Check whether --with-gcc was given. 2323252283Sdelphijif test "${with_gcc+set}" = set; then : 2324172683Smlaier withval=$with_gcc; 2325172683Smlaierfi 232639297Sfenner 232739297Sfenner V_CCOPT="-O" 232817680Spst V_INCLS="" 232939297Sfenner if test "${srcdir}" != "." ; then 2330236192Sdelphij V_INCLS="-I$srcdir" 233139297Sfenner fi 233226180Sfenner if test "${CFLAGS+set}" = set; then 233326180Sfenner LBL_CFLAGS="$CFLAGS" 233426180Sfenner fi 233517680Spst if test -z "$CC" ; then 233698524Sfenner case "$host_os" in 233717680Spst 233817680Spst bsdi*) 233917680Spst # Extract the first word of "shlicc2", so it can be a program name with args. 234017680Spstset dummy shlicc2; ac_word=$2 2341252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2342252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2343252283Sdelphijif ${ac_cv_prog_SHLICC2+:} false; then : 2344252283Sdelphij $as_echo_n "(cached) " >&6 234517680Spstelse 234617680Spst if test -n "$SHLICC2"; then 234717680Spst ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 234817680Spstelse 2349127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350127668Sbmsfor as_dir in $PATH 2351127668Sbmsdo 2352127668Sbms IFS=$as_save_IFS 2353127668Sbms test -z "$as_dir" && as_dir=. 2354252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2355172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2356127668Sbms ac_cv_prog_SHLICC2="yes" 2357252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2358127668Sbms break 2 2359127668Sbms fi 2360127668Sbmsdone 2361252283Sdelphij done 2362172683SmlaierIFS=$as_save_IFS 2363127668Sbms 236417680Spst test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 236517680Spstfi 236617680Spstfi 2367127668SbmsSHLICC2=$ac_cv_prog_SHLICC2 236817680Spstif test -n "$SHLICC2"; then 2369252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5 2370252283Sdelphij$as_echo "$SHLICC2" >&6; } 237117680Spstelse 2372252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2373252283Sdelphij$as_echo "no" >&6; } 237417680Spstfi 237517680Spst 2376172683Smlaier 237717680Spst if test $SHLICC2 = yes ; then 237817680Spst CC=shlicc2 237917680Spst export CC 238017680Spst fi 238117680Spst ;; 238217680Spst esac 238317680Spst fi 238439297Sfenner if test -z "$CC" -a "$with_gcc" = no ; then 238539297Sfenner CC=cc 238639297Sfenner export CC 238739297Sfenner fi 2388214478Srpaulo 2389214478Srpauloac_ext=c 2390127668Sbmsac_cpp='$CPP $CPPFLAGS' 2391127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2392127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2393127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 2394127668Sbmsif test -n "$ac_tool_prefix"; then 2395127668Sbms # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2396127668Sbmsset dummy ${ac_tool_prefix}gcc; ac_word=$2 2397252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2398252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2399252283Sdelphijif ${ac_cv_prog_CC+:} false; then : 2400252283Sdelphij $as_echo_n "(cached) " >&6 2401127668Sbmselse 2402127668Sbms if test -n "$CC"; then 2403127668Sbms ac_cv_prog_CC="$CC" # Let the user override the test. 2404127668Sbmselse 2405127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406127668Sbmsfor as_dir in $PATH 2407127668Sbmsdo 2408127668Sbms IFS=$as_save_IFS 2409127668Sbms test -z "$as_dir" && as_dir=. 2410252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2411172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2412127668Sbms ac_cv_prog_CC="${ac_tool_prefix}gcc" 2413252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2414127668Sbms break 2 2415127668Sbms fi 2416127668Sbmsdone 2417252283Sdelphij done 2418172683SmlaierIFS=$as_save_IFS 2419127668Sbms 2420127668Sbmsfi 2421127668Sbmsfi 2422127668SbmsCC=$ac_cv_prog_CC 2423127668Sbmsif test -n "$CC"; then 2424252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2425252283Sdelphij$as_echo "$CC" >&6; } 2426127668Sbmselse 2427252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2428252283Sdelphij$as_echo "no" >&6; } 2429127668Sbmsfi 2430127668Sbms 2431172683Smlaier 2432127668Sbmsfi 2433127668Sbmsif test -z "$ac_cv_prog_CC"; then 2434127668Sbms ac_ct_CC=$CC 2435127668Sbms # Extract the first word of "gcc", so it can be a program name with args. 243617680Spstset dummy gcc; ac_word=$2 2437252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2438252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2439252283Sdelphijif ${ac_cv_prog_ac_ct_CC+:} false; then : 2440252283Sdelphij $as_echo_n "(cached) " >&6 244117680Spstelse 2442127668Sbms if test -n "$ac_ct_CC"; then 2443127668Sbms ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2444127668Sbmselse 2445127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2446127668Sbmsfor as_dir in $PATH 2447127668Sbmsdo 2448127668Sbms IFS=$as_save_IFS 2449127668Sbms test -z "$as_dir" && as_dir=. 2450252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2451172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2452127668Sbms ac_cv_prog_ac_ct_CC="gcc" 2453252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2454127668Sbms break 2 2455127668Sbms fi 2456127668Sbmsdone 2457252283Sdelphij done 2458172683SmlaierIFS=$as_save_IFS 2459127668Sbms 2460127668Sbmsfi 2461127668Sbmsfi 2462127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC 2463127668Sbmsif test -n "$ac_ct_CC"; then 2464252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2465252283Sdelphij$as_echo "$ac_ct_CC" >&6; } 2466127668Sbmselse 2467252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2468252283Sdelphij$as_echo "no" >&6; } 2469127668Sbmsfi 2470127668Sbms 2471172683Smlaier if test "x$ac_ct_CC" = x; then 2472172683Smlaier CC="" 2473172683Smlaier else 2474172683Smlaier case $cross_compiling:$ac_tool_warned in 2475172683Smlaieryes:) 2476252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2477252283Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2478172683Smlaierac_tool_warned=yes ;; 2479172683Smlaieresac 2480172683Smlaier CC=$ac_ct_CC 2481172683Smlaier fi 2482127668Sbmselse 2483127668Sbms CC="$ac_cv_prog_CC" 2484127668Sbmsfi 2485127668Sbms 2486127668Sbmsif test -z "$CC"; then 2487172683Smlaier if test -n "$ac_tool_prefix"; then 2488172683Smlaier # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2489127668Sbmsset dummy ${ac_tool_prefix}cc; ac_word=$2 2490252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2491252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2492252283Sdelphijif ${ac_cv_prog_CC+:} false; then : 2493252283Sdelphij $as_echo_n "(cached) " >&6 2494127668Sbmselse 249517680Spst if test -n "$CC"; then 249617680Spst ac_cv_prog_CC="$CC" # Let the user override the test. 249717680Spstelse 2498127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499127668Sbmsfor as_dir in $PATH 2500127668Sbmsdo 2501127668Sbms IFS=$as_save_IFS 2502127668Sbms test -z "$as_dir" && as_dir=. 2503252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2504172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2505127668Sbms ac_cv_prog_CC="${ac_tool_prefix}cc" 2506252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2507127668Sbms break 2 2508127668Sbms fi 2509127668Sbmsdone 2510252283Sdelphij done 2511172683SmlaierIFS=$as_save_IFS 2512127668Sbms 251317680Spstfi 251417680Spstfi 2515127668SbmsCC=$ac_cv_prog_CC 251617680Spstif test -n "$CC"; then 2517252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2518252283Sdelphij$as_echo "$CC" >&6; } 251917680Spstelse 2520252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2521252283Sdelphij$as_echo "no" >&6; } 252217680Spstfi 252317680Spst 2524172683Smlaier 2525127668Sbms fi 2526127668Sbmsfi 252717680Spstif test -z "$CC"; then 252817680Spst # Extract the first word of "cc", so it can be a program name with args. 252917680Spstset dummy cc; ac_word=$2 2530252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2531252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2532252283Sdelphijif ${ac_cv_prog_CC+:} false; then : 2533252283Sdelphij $as_echo_n "(cached) " >&6 253417680Spstelse 253517680Spst if test -n "$CC"; then 253617680Spst ac_cv_prog_CC="$CC" # Let the user override the test. 253717680Spstelse 253817680Spst ac_prog_rejected=no 2539127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540127668Sbmsfor as_dir in $PATH 2541127668Sbmsdo 2542127668Sbms IFS=$as_save_IFS 2543127668Sbms test -z "$as_dir" && as_dir=. 2544252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2545172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2546127668Sbms if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2547127668Sbms ac_prog_rejected=yes 2548127668Sbms continue 2549127668Sbms fi 2550127668Sbms ac_cv_prog_CC="cc" 2551252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2552127668Sbms break 2 2553127668Sbms fi 2554127668Sbmsdone 2555252283Sdelphij done 2556172683SmlaierIFS=$as_save_IFS 2557127668Sbms 255817680Spstif test $ac_prog_rejected = yes; then 255917680Spst # We found a bogon in the path, so make sure we never use it. 256017680Spst set dummy $ac_cv_prog_CC 256117680Spst shift 2562127668Sbms if test $# != 0; then 256317680Spst # We chose a different compiler from the bogus one. 256417680Spst # However, it has the same basename, so the bogon will be chosen 256517680Spst # first if we set CC to just the basename; use the full file name. 256617680Spst shift 2567127668Sbms ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 256817680Spst fi 256917680Spstfi 257017680Spstfi 257117680Spstfi 2572127668SbmsCC=$ac_cv_prog_CC 257317680Spstif test -n "$CC"; then 2574252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2575252283Sdelphij$as_echo "$CC" >&6; } 257617680Spstelse 2577252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2578252283Sdelphij$as_echo "no" >&6; } 257917680Spstfi 258017680Spst 2581172683Smlaier 2582127668Sbmsfi 2583127668Sbmsif test -z "$CC"; then 2584127668Sbms if test -n "$ac_tool_prefix"; then 2585172683Smlaier for ac_prog in cl.exe 2586127668Sbms do 2587127668Sbms # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2588127668Sbmsset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2589252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2590252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2591252283Sdelphijif ${ac_cv_prog_CC+:} false; then : 2592252283Sdelphij $as_echo_n "(cached) " >&6 259356893Sfennerelse 259456893Sfenner if test -n "$CC"; then 259556893Sfenner ac_cv_prog_CC="$CC" # Let the user override the test. 259656893Sfennerelse 2597127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2598127668Sbmsfor as_dir in $PATH 2599127668Sbmsdo 2600127668Sbms IFS=$as_save_IFS 2601127668Sbms test -z "$as_dir" && as_dir=. 2602252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2603172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2604127668Sbms ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2605252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2606127668Sbms break 2 2607127668Sbms fi 2608127668Sbmsdone 2609252283Sdelphij done 2610172683SmlaierIFS=$as_save_IFS 2611127668Sbms 261256893Sfennerfi 261356893Sfennerfi 2614127668SbmsCC=$ac_cv_prog_CC 261556893Sfennerif test -n "$CC"; then 2616252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2617252283Sdelphij$as_echo "$CC" >&6; } 261856893Sfennerelse 2619252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2620252283Sdelphij$as_echo "no" >&6; } 262156893Sfennerfi 2622127668Sbms 2623172683Smlaier 2624127668Sbms test -n "$CC" && break 2625127668Sbms done 2626127668Sbmsfi 2627127668Sbmsif test -z "$CC"; then 2628127668Sbms ac_ct_CC=$CC 2629172683Smlaier for ac_prog in cl.exe 2630127668Sbmsdo 2631127668Sbms # Extract the first word of "$ac_prog", so it can be a program name with args. 2632127668Sbmsset dummy $ac_prog; ac_word=$2 2633252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2634252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 2635252283Sdelphijif ${ac_cv_prog_ac_ct_CC+:} false; then : 2636252283Sdelphij $as_echo_n "(cached) " >&6 2637127668Sbmselse 2638127668Sbms if test -n "$ac_ct_CC"; then 2639127668Sbms ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2640127668Sbmselse 2641127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642127668Sbmsfor as_dir in $PATH 2643127668Sbmsdo 2644127668Sbms IFS=$as_save_IFS 2645127668Sbms test -z "$as_dir" && as_dir=. 2646252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2647172683Smlaier if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2648127668Sbms ac_cv_prog_ac_ct_CC="$ac_prog" 2649252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2650127668Sbms break 2 265156893Sfenner fi 2652127668Sbmsdone 2653252283Sdelphij done 2654172683SmlaierIFS=$as_save_IFS 2655127668Sbms 265617680Spstfi 2657127668Sbmsfi 2658127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC 2659127668Sbmsif test -n "$ac_ct_CC"; then 2660252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2661252283Sdelphij$as_echo "$ac_ct_CC" >&6; } 2662127668Sbmselse 2663252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2664252283Sdelphij$as_echo "no" >&6; } 2665127668Sbmsfi 266617680Spst 2667172683Smlaier 2668127668Sbms test -n "$ac_ct_CC" && break 2669127668Sbmsdone 267026180Sfenner 2671172683Smlaier if test "x$ac_ct_CC" = x; then 2672172683Smlaier CC="" 2673172683Smlaier else 2674172683Smlaier case $cross_compiling:$ac_tool_warned in 2675172683Smlaieryes:) 2676252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2677252283Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2678172683Smlaierac_tool_warned=yes ;; 2679172683Smlaieresac 2680172683Smlaier CC=$ac_ct_CC 2681172683Smlaier fi 2682127668Sbmsfi 268326180Sfenner 2684127668Sbmsfi 268556893Sfenner 268656893Sfenner 2687252283Sdelphijtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2688252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2689252283Sdelphijas_fn_error $? "no acceptable C compiler found in \$PATH 2690252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 2691127668Sbms 2692127668Sbms# Provide some information about the compiler. 2693252283Sdelphij$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2694252283Sdelphijset X $ac_compile 2695252283Sdelphijac_compiler=$2 2696252283Sdelphijfor ac_option in --version -v -V -qversion; do 2697252283Sdelphij { { ac_try="$ac_compiler $ac_option >&5" 2698172683Smlaiercase "(($ac_try" in 2699172683Smlaier *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2700172683Smlaier *) ac_try_echo=$ac_try;; 2701172683Smlaieresac 2702252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2703252283Sdelphij$as_echo "$ac_try_echo"; } >&5 2704252283Sdelphij (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2705127668Sbms ac_status=$? 2706252283Sdelphij if test -s conftest.err; then 2707252283Sdelphij sed '10a\ 2708252283Sdelphij... rest of stderr output deleted ... 2709252283Sdelphij 10q' conftest.err >conftest.er1 2710252283Sdelphij cat conftest.er1 >&5 2711252283Sdelphij fi 2712252283Sdelphij rm -f conftest.er1 conftest.err 2713252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2714252283Sdelphij test $ac_status = 0; } 2715252283Sdelphijdone 2716127668Sbms 2717252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2718127668Sbms/* end confdefs.h. */ 2719127668Sbms 2720127668Sbmsint 2721127668Sbmsmain () 2722127668Sbms{ 2723127668Sbms 2724127668Sbms ; 2725127668Sbms return 0; 2726127668Sbms} 2727127668Sbms_ACEOF 2728127668Sbmsac_clean_files_save=$ac_clean_files 2729252283Sdelphijac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2730127668Sbms# Try to create an executable without -o first, disregard a.out. 2731127668Sbms# It will help us diagnose broken compilers, and finding out an intuition 2732127668Sbms# of exeext. 2733252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2734252283Sdelphij$as_echo_n "checking whether the C compiler works... " >&6; } 2735252283Sdelphijac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2736252283Sdelphij 2737252283Sdelphij# The possible output files: 2738252283Sdelphijac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2739252283Sdelphij 2740172683Smlaierac_rmfiles= 2741172683Smlaierfor ac_file in $ac_files 2742172683Smlaierdo 2743172683Smlaier case $ac_file in 2744252283Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2745172683Smlaier * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2746172683Smlaier esac 2747172683Smlaierdone 2748172683Smlaierrm -f $ac_rmfiles 2749172683Smlaier 2750252283Sdelphijif { { ac_try="$ac_link_default" 2751172683Smlaiercase "(($ac_try" in 2752172683Smlaier *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2753172683Smlaier *) ac_try_echo=$ac_try;; 2754172683Smlaieresac 2755252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2756252283Sdelphij$as_echo "$ac_try_echo"; } >&5 2757172683Smlaier (eval "$ac_link_default") 2>&5 2758127668Sbms ac_status=$? 2759252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2760252283Sdelphij test $ac_status = 0; }; then : 2761172683Smlaier # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2762172683Smlaier# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2763172683Smlaier# in a Makefile. We should not override ac_cv_exeext if it was cached, 2764172683Smlaier# so that the user can short-circuit this test for compilers unknown to 2765172683Smlaier# Autoconf. 2766172683Smlaierfor ac_file in $ac_files '' 2767127668Sbmsdo 2768127668Sbms test -f "$ac_file" || continue 2769127668Sbms case $ac_file in 2770252283Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2771172683Smlaier ;; 2772127668Sbms [ab].out ) 2773172683Smlaier # We found the default executable, but exeext='' is most 2774172683Smlaier # certainly right. 2775172683Smlaier break;; 2776127668Sbms *.* ) 2777252283Sdelphij if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2778172683Smlaier then :; else 2779172683Smlaier ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2780172683Smlaier fi 2781172683Smlaier # We set ac_cv_exeext here because the later test for it is not 2782172683Smlaier # safe: cross compilers may not add the suffix if given an `-o' 2783172683Smlaier # argument, so we may need to know it at that point already. 2784172683Smlaier # Even if this section looks crufty: it has the advantage of 2785172683Smlaier # actually working. 2786172683Smlaier break;; 2787127668Sbms * ) 2788172683Smlaier break;; 2789127668Sbms esac 2790127668Sbmsdone 2791172683Smlaiertest "$ac_cv_exeext" = no && ac_cv_exeext= 2792172683Smlaier 2793127668Sbmselse 2794172683Smlaier ac_file='' 2795172683Smlaierfi 2796252283Sdelphijif test -z "$ac_file"; then : 2797252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798252283Sdelphij$as_echo "no" >&6; } 2799252283Sdelphij$as_echo "$as_me: failed program was:" >&5 2800127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2801127668Sbms 2802252283Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2803252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2804252283Sdelphijas_fn_error 77 "C compiler cannot create executables 2805252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 2806252283Sdelphijelse 2807252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2808252283Sdelphij$as_echo "yes" >&6; } 2809127668Sbmsfi 2810252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2811252283Sdelphij$as_echo_n "checking for C compiler default output file name... " >&6; } 2812252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2813252283Sdelphij$as_echo "$ac_file" >&6; } 2814127668Sbmsac_exeext=$ac_cv_exeext 2815127668Sbms 2816252283Sdelphijrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2817127668Sbmsac_clean_files=$ac_clean_files_save 2818252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2819252283Sdelphij$as_echo_n "checking for suffix of executables... " >&6; } 2820252283Sdelphijif { { ac_try="$ac_link" 2821172683Smlaiercase "(($ac_try" in 2822172683Smlaier *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2823172683Smlaier *) ac_try_echo=$ac_try;; 2824172683Smlaieresac 2825252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2826252283Sdelphij$as_echo "$ac_try_echo"; } >&5 2827172683Smlaier (eval "$ac_link") 2>&5 2828127668Sbms ac_status=$? 2829252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2830252283Sdelphij test $ac_status = 0; }; then : 2831127668Sbms # If both `conftest.exe' and `conftest' are `present' (well, observable) 2832127668Sbms# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2833127668Sbms# work properly (i.e., refer to `conftest.exe'), while it won't with 2834127668Sbms# `rm'. 2835127668Sbmsfor ac_file in conftest.exe conftest conftest.*; do 2836127668Sbms test -f "$ac_file" || continue 2837127668Sbms case $ac_file in 2838252283Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2839127668Sbms *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2840172683Smlaier break;; 2841127668Sbms * ) break;; 2842127668Sbms esac 2843127668Sbmsdone 2844127668Sbmselse 2845252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2846252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2847252283Sdelphijas_fn_error $? "cannot compute suffix of executables: cannot compile and link 2848252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 284926180Sfennerfi 2850252283Sdelphijrm -f conftest conftest$ac_cv_exeext 2851252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2852252283Sdelphij$as_echo "$ac_cv_exeext" >&6; } 285326180Sfenner 2854127668Sbmsrm -f conftest.$ac_ext 2855127668SbmsEXEEXT=$ac_cv_exeext 2856127668Sbmsac_exeext=$EXEEXT 2857252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2858252283Sdelphij/* end confdefs.h. */ 2859252283Sdelphij#include <stdio.h> 2860252283Sdelphijint 2861252283Sdelphijmain () 2862252283Sdelphij{ 2863252283SdelphijFILE *f = fopen ("conftest.out", "w"); 2864252283Sdelphij return ferror (f) || fclose (f) != 0; 2865252283Sdelphij 2866252283Sdelphij ; 2867252283Sdelphij return 0; 2868252283Sdelphij} 2869252283Sdelphij_ACEOF 2870252283Sdelphijac_clean_files="$ac_clean_files conftest.out" 2871252283Sdelphij# Check that the compiler produces executables we can run. If not, either 2872252283Sdelphij# the compiler is broken, or we cross compile. 2873252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2874252283Sdelphij$as_echo_n "checking whether we are cross compiling... " >&6; } 2875252283Sdelphijif test "$cross_compiling" != yes; then 2876252283Sdelphij { { ac_try="$ac_link" 2877252283Sdelphijcase "(($ac_try" in 2878252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879252283Sdelphij *) ac_try_echo=$ac_try;; 2880252283Sdelphijesac 2881252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2882252283Sdelphij$as_echo "$ac_try_echo"; } >&5 2883252283Sdelphij (eval "$ac_link") 2>&5 2884252283Sdelphij ac_status=$? 2885252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2886252283Sdelphij test $ac_status = 0; } 2887252283Sdelphij if { ac_try='./conftest$ac_cv_exeext' 2888252283Sdelphij { { case "(($ac_try" in 2889252283Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2890252283Sdelphij *) ac_try_echo=$ac_try;; 2891252283Sdelphijesac 2892252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2893252283Sdelphij$as_echo "$ac_try_echo"; } >&5 2894252283Sdelphij (eval "$ac_try") 2>&5 2895252283Sdelphij ac_status=$? 2896252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2897252283Sdelphij test $ac_status = 0; }; }; then 2898252283Sdelphij cross_compiling=no 2899252283Sdelphij else 2900252283Sdelphij if test "$cross_compiling" = maybe; then 2901252283Sdelphij cross_compiling=yes 2902252283Sdelphij else 2903252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2904252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2905252283Sdelphijas_fn_error $? "cannot run C compiled programs. 2906252283SdelphijIf you meant to cross compile, use \`--host'. 2907252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 2908252283Sdelphij fi 2909252283Sdelphij fi 2910252283Sdelphijfi 2911252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2912252283Sdelphij$as_echo "$cross_compiling" >&6; } 2913252283Sdelphij 2914252283Sdelphijrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2915252283Sdelphijac_clean_files=$ac_clean_files_save 2916252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2917252283Sdelphij$as_echo_n "checking for suffix of object files... " >&6; } 2918252283Sdelphijif ${ac_cv_objext+:} false; then : 2919252283Sdelphij $as_echo_n "(cached) " >&6 292017680Spstelse 2921252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2922127668Sbms/* end confdefs.h. */ 2923127668Sbms 2924127668Sbmsint 2925127668Sbmsmain () 2926127668Sbms{ 2927127668Sbms 2928127668Sbms ; 2929127668Sbms return 0; 2930127668Sbms} 2931127668Sbms_ACEOF 2932127668Sbmsrm -f conftest.o conftest.obj 2933252283Sdelphijif { { ac_try="$ac_compile" 2934172683Smlaiercase "(($ac_try" in 2935172683Smlaier *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2936172683Smlaier *) ac_try_echo=$ac_try;; 2937172683Smlaieresac 2938252283Sdelphijeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2939252283Sdelphij$as_echo "$ac_try_echo"; } >&5 2940172683Smlaier (eval "$ac_compile") 2>&5 2941127668Sbms ac_status=$? 2942252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2943252283Sdelphij test $ac_status = 0; }; then : 2944172683Smlaier for ac_file in conftest.o conftest.obj conftest.*; do 2945172683Smlaier test -f "$ac_file" || continue; 2946127668Sbms case $ac_file in 2947252283Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2948127668Sbms *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2949127668Sbms break;; 2950127668Sbms esac 2951127668Sbmsdone 295217680Spstelse 2953252283Sdelphij $as_echo "$as_me: failed program was:" >&5 2954127668Sbmssed 's/^/| /' conftest.$ac_ext >&5 2955127668Sbms 2956252283Sdelphij{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2957252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2958252283Sdelphijas_fn_error $? "cannot compute suffix of object files: cannot compile 2959252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 296017680Spstfi 2961127668Sbmsrm -f conftest.$ac_cv_objext conftest.$ac_ext 296217680Spstfi 2963252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2964252283Sdelphij$as_echo "$ac_cv_objext" >&6; } 2965127668SbmsOBJEXT=$ac_cv_objext 2966127668Sbmsac_objext=$OBJEXT 2967252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2968252283Sdelphij$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2969252283Sdelphijif ${ac_cv_c_compiler_gnu+:} false; then : 2970252283Sdelphij $as_echo_n "(cached) " >&6 2971127668Sbmselse 2972252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2973127668Sbms/* end confdefs.h. */ 297417680Spst 2975127668Sbmsint 2976127668Sbmsmain () 2977127668Sbms{ 2978127668Sbms#ifndef __GNUC__ 2979127668Sbms choke me 2980127668Sbms#endif 298126180Sfenner 2982127668Sbms ; 2983127668Sbms return 0; 2984127668Sbms} 2985127668Sbms_ACEOF 2986252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 2987127668Sbms ac_compiler_gnu=yes 298856893Sfennerelse 2989252283Sdelphij ac_compiler_gnu=no 299056893Sfennerfi 2991172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2992127668Sbmsac_cv_c_compiler_gnu=$ac_compiler_gnu 299356893Sfenner 2994127668Sbmsfi 2995252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2996252283Sdelphij$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2997252283Sdelphijif test $ac_compiler_gnu = yes; then 2998252283Sdelphij GCC=yes 2999252283Sdelphijelse 3000252283Sdelphij GCC= 3001252283Sdelphijfi 3002127668Sbmsac_test_CFLAGS=${CFLAGS+set} 3003127668Sbmsac_save_CFLAGS=$CFLAGS 3004252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3005252283Sdelphij$as_echo_n "checking whether $CC accepts -g... " >&6; } 3006252283Sdelphijif ${ac_cv_prog_cc_g+:} false; then : 3007252283Sdelphij $as_echo_n "(cached) " >&6 300817680Spstelse 3009172683Smlaier ac_save_c_werror_flag=$ac_c_werror_flag 3010172683Smlaier ac_c_werror_flag=yes 3011172683Smlaier ac_cv_prog_cc_g=no 3012172683Smlaier CFLAGS="-g" 3013252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3014127668Sbms/* end confdefs.h. */ 3015127668Sbms 3016127668Sbmsint 3017127668Sbmsmain () 3018127668Sbms{ 3019127668Sbms 3020127668Sbms ; 3021127668Sbms return 0; 3022127668Sbms} 3023127668Sbms_ACEOF 3024252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3025172683Smlaier ac_cv_prog_cc_g=yes 3026172683Smlaierelse 3027252283Sdelphij CFLAGS="" 3028252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029172683Smlaier/* end confdefs.h. */ 3030172683Smlaier 3031172683Smlaierint 3032172683Smlaiermain () 3033172683Smlaier{ 3034172683Smlaier 3035172683Smlaier ; 3036172683Smlaier return 0; 3037172683Smlaier} 3038172683Smlaier_ACEOF 3039252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3040252283Sdelphij 3041172683Smlaierelse 3042252283Sdelphij ac_c_werror_flag=$ac_save_c_werror_flag 3043172683Smlaier CFLAGS="-g" 3044252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3045172683Smlaier/* end confdefs.h. */ 3046172683Smlaier 3047172683Smlaierint 3048172683Smlaiermain () 3049172683Smlaier{ 3050172683Smlaier 3051172683Smlaier ; 3052172683Smlaier return 0; 3053172683Smlaier} 3054172683Smlaier_ACEOF 3055252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 305626180Sfenner ac_cv_prog_cc_g=yes 305717680Spstfi 3058172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3059127668Sbmsfi 3060172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3061172683Smlaierfi 3062172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3063172683Smlaier ac_c_werror_flag=$ac_save_c_werror_flag 3064172683Smlaierfi 3065252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3066252283Sdelphij$as_echo "$ac_cv_prog_cc_g" >&6; } 306756893Sfennerif test "$ac_test_CFLAGS" = set; then 3068127668Sbms CFLAGS=$ac_save_CFLAGS 306956893Sfennerelif test $ac_cv_prog_cc_g = yes; then 307056893Sfenner if test "$GCC" = yes; then 307126180Sfenner CFLAGS="-g -O2" 307226180Sfenner else 307356893Sfenner CFLAGS="-g" 307456893Sfenner fi 307556893Sfennerelse 307656893Sfenner if test "$GCC" = yes; then 307726180Sfenner CFLAGS="-O2" 307856893Sfenner else 307956893Sfenner CFLAGS= 308017680Spst fi 308117680Spstfi 3082252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3083252283Sdelphij$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3084252283Sdelphijif ${ac_cv_prog_cc_c89+:} false; then : 3085252283Sdelphij $as_echo_n "(cached) " >&6 3086127668Sbmselse 3087172683Smlaier ac_cv_prog_cc_c89=no 3088127668Sbmsac_save_CC=$CC 3089252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3090127668Sbms/* end confdefs.h. */ 3091127668Sbms#include <stdarg.h> 3092127668Sbms#include <stdio.h> 3093127668Sbms#include <sys/types.h> 3094127668Sbms#include <sys/stat.h> 3095127668Sbms/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3096127668Sbmsstruct buf { int x; }; 3097127668SbmsFILE * (*rcsopen) (struct buf *, struct stat *, int); 3098127668Sbmsstatic char *e (p, i) 3099127668Sbms char **p; 3100127668Sbms int i; 3101127668Sbms{ 3102127668Sbms return p[i]; 3103127668Sbms} 3104127668Sbmsstatic char *f (char * (*g) (char **, int), char **p, ...) 3105127668Sbms{ 3106127668Sbms char *s; 3107127668Sbms va_list v; 3108127668Sbms va_start (v,p); 3109127668Sbms s = g (p, va_arg (v,int)); 3110127668Sbms va_end (v); 3111127668Sbms return s; 3112127668Sbms} 3113172683Smlaier 3114172683Smlaier/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3115172683Smlaier function prototypes and stuff, but not '\xHH' hex character constants. 3116172683Smlaier These don't provoke an error unfortunately, instead are silently treated 3117172683Smlaier as 'x'. The following induces an error, until -std is added to get 3118172683Smlaier proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3119172683Smlaier array size at least. It's necessary to write '\x00'==0 to get something 3120172683Smlaier that's true only with -std. */ 3121172683Smlaierint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3122172683Smlaier 3123172683Smlaier/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3124172683Smlaier inside strings and character constants. */ 3125172683Smlaier#define FOO(x) 'x' 3126172683Smlaierint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3127172683Smlaier 3128127668Sbmsint test (int i, double x); 3129127668Sbmsstruct s1 {int (*f) (int a);}; 3130127668Sbmsstruct s2 {int (*f) (double a);}; 3131127668Sbmsint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3132127668Sbmsint argc; 3133127668Sbmschar **argv; 3134127668Sbmsint 3135127668Sbmsmain () 3136127668Sbms{ 3137127668Sbmsreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3138127668Sbms ; 3139127668Sbms return 0; 3140127668Sbms} 3141127668Sbms_ACEOF 3142172683Smlaierfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3143172683Smlaier -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3144127668Sbmsdo 3145127668Sbms CC="$ac_save_CC $ac_arg" 3146252283Sdelphij if ac_fn_c_try_compile "$LINENO"; then : 3147172683Smlaier ac_cv_prog_cc_c89=$ac_arg 3148127668Sbmsfi 3149172683Smlaierrm -f core conftest.err conftest.$ac_objext 3150172683Smlaier test "x$ac_cv_prog_cc_c89" != "xno" && break 3151127668Sbmsdone 3152172683Smlaierrm -f conftest.$ac_ext 3153127668SbmsCC=$ac_save_CC 3154127668Sbms 3155127668Sbmsfi 3156172683Smlaier# AC_CACHE_VAL 3157172683Smlaiercase "x$ac_cv_prog_cc_c89" in 3158172683Smlaier x) 3159252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3160252283Sdelphij$as_echo "none needed" >&6; } ;; 3161172683Smlaier xno) 3162252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3163252283Sdelphij$as_echo "unsupported" >&6; } ;; 3164127668Sbms *) 3165172683Smlaier CC="$CC $ac_cv_prog_cc_c89" 3166252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3167252283Sdelphij$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3168127668Sbmsesac 3169252283Sdelphijif test "x$ac_cv_prog_cc_c89" != xno; then : 3170127668Sbms 3171252283Sdelphijfi 3172127668Sbms 3173127668Sbmsac_ext=c 3174127668Sbmsac_cpp='$CPP $CPPFLAGS' 3175127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3176127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3177127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 3178127668Sbms 3179214478Srpaulo 3180214478Srpaulo 3181214478Srpaulo 3182214478Srpaulo 318339297Sfenner if test "$GCC" = yes ; then 318417680Spst if test "$SHLICC2" = yes ; then 318539297Sfenner ac_cv_lbl_gcc_vers=2 318639297Sfenner V_CCOPT="-O2" 318717680Spst else 3188252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 3189252283Sdelphij$as_echo_n "checking gcc version... " >&6; } 3190252283Sdelphij if ${ac_cv_lbl_gcc_vers+:} false; then : 3191252283Sdelphij $as_echo_n "(cached) " >&6 319217680Spstelse 319339297Sfenner ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 319439297Sfenner sed -e '/^gcc version /!d' \ 319539297Sfenner -e 's/^gcc version //' \ 319639297Sfenner -e 's/ .*//' -e 's/^[^0-9]*//' \ 319739297Sfenner -e 's/\..*//'` 319817680Spstfi 319917680Spst 3200252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5 3201252283Sdelphij$as_echo "$ac_cv_lbl_gcc_vers" >&6; } 320239297Sfenner if test $ac_cv_lbl_gcc_vers -gt 1 ; then 320339297Sfenner V_CCOPT="-O2" 320417680Spst fi 320517680Spst fi 320617680Spst else 3207252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5 3208252283Sdelphij$as_echo_n "checking that $CC handles ansi prototypes... " >&6; } 3209252283Sdelphij if ${ac_cv_lbl_cc_ansi_prototypes+:} false; then : 3210252283Sdelphij $as_echo_n "(cached) " >&6 321117680Spstelse 3212127668Sbms 3213252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3214127668Sbms/* end confdefs.h. */ 321517680Spst#include <sys/types.h> 3216127668Sbmsint 3217127668Sbmsmain () 3218127668Sbms{ 321917680Spstint frob(int, char *) 3220127668Sbms ; 3221127668Sbms return 0; 3222127668Sbms} 3223127668Sbms_ACEOF 3224252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 322539297Sfenner ac_cv_lbl_cc_ansi_prototypes=yes 322617680Spstelse 3227252283Sdelphij ac_cv_lbl_cc_ansi_prototypes=no 322817680Spstfi 3229172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 323017680Spstfi 323117680Spst 3232252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 3233252283Sdelphij$as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; } 323439297Sfenner if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 323598524Sfenner case "$host_os" in 323617680Spst 323717680Spst hpux*) 3238252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 3239252283Sdelphij$as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; } 324017680Spst savedcflags="$CFLAGS" 324117680Spst CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 3242252283Sdelphij if ${ac_cv_lbl_cc_hpux_cc_aa+:} false; then : 3243252283Sdelphij $as_echo_n "(cached) " >&6 324417680Spstelse 3245252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3246127668Sbms/* end confdefs.h. */ 324717680Spst#include <sys/types.h> 3248127668Sbmsint 3249127668Sbmsmain () 3250127668Sbms{ 325117680Spstint frob(int, char *) 3252127668Sbms ; 3253127668Sbms return 0; 3254127668Sbms} 3255127668Sbms_ACEOF 3256252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 325739297Sfenner ac_cv_lbl_cc_hpux_cc_aa=yes 325817680Spstelse 3259252283Sdelphij ac_cv_lbl_cc_hpux_cc_aa=no 326017680Spstfi 3261172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 326217680Spstfi 326317680Spst 3264252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 3265252283Sdelphij$as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; } 326639297Sfenner if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 3267252283Sdelphij as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 326817680Spst fi 326917680Spst CFLAGS="$savedcflags" 327017680Spst V_CCOPT="-Aa $V_CCOPT" 3271214478Srpaulo 3272252283Sdelphij$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 327317680Spst 327417680Spst ;; 327517680Spst 3276214478Srpaulo osf*) 3277252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5 3278252283Sdelphij$as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; } 3279214478Srpaulo savedcflags="$CFLAGS" 3280214478Srpaulo CFLAGS="-std1" 3281252283Sdelphij if ${ac_cv_lbl_cc_osf1_cc_std1+:} false; then : 3282252283Sdelphij $as_echo_n "(cached) " >&6 3283214478Srpauloelse 3284252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3285214478Srpaulo/* end confdefs.h. */ 3286214478Srpaulo#include <sys/types.h> 3287214478Srpauloint 3288214478Srpaulomain () 3289214478Srpaulo{ 3290214478Srpauloint frob(int, char *) 3291214478Srpaulo ; 3292214478Srpaulo return 0; 3293214478Srpaulo} 3294214478Srpaulo_ACEOF 3295252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3296214478Srpaulo ac_cv_lbl_cc_osf1_cc_std1=yes 3297214478Srpauloelse 3298252283Sdelphij ac_cv_lbl_cc_osf1_cc_std1=no 3299214478Srpaulofi 3300214478Srpaulorm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3301214478Srpaulofi 3302214478Srpaulo 3303252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5 3304252283Sdelphij$as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; } 3305214478Srpaulo if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then 3306252283Sdelphij as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 3307214478Srpaulo fi 3308214478Srpaulo CFLAGS="$savedcflags" 3309214478Srpaulo V_CCOPT="-std1 $V_CCOPT" 3310214478Srpaulo ;; 3311214478Srpaulo 331217680Spst *) 3313252283Sdelphij as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 331417680Spst ;; 331517680Spst esac 331617680Spst fi 331739297Sfenner V_INCLS="$V_INCLS -I/usr/local/include" 331839297Sfenner LDFLAGS="$LDFLAGS -L/usr/local/lib" 331917680Spst 332098524Sfenner case "$host_os" in 332117680Spst 332217680Spst irix*) 332398524Sfenner V_CCOPT="$V_CCOPT -xansi -signed -O" 332417680Spst ;; 332517680Spst 332617680Spst osf*) 3327214478Srpaulo # 3328214478Srpaulo # Presumed to be DEC OSF/1, Digital UNIX, or 3329214478Srpaulo # Tru64 UNIX. 3330214478Srpaulo # 3331214478Srpaulo V_CCOPT="$V_CCOPT -O" 333217680Spst ;; 333317680Spst 333417680Spst ultrix*) 3335252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5 3336252283Sdelphij$as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; } 3337252283Sdelphij if ${ac_cv_lbl_cc_const_proto+:} false; then : 3338252283Sdelphij $as_echo_n "(cached) " >&6 333917680Spstelse 3340252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341127668Sbms/* end confdefs.h. */ 334217680Spst#include <sys/types.h> 3343127668Sbmsint 3344127668Sbmsmain () 3345127668Sbms{ 334617680Spststruct a { int b; }; 334717680Spst void c(const struct a *) 3348127668Sbms ; 3349127668Sbms return 0; 3350127668Sbms} 3351127668Sbms_ACEOF 3352252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 335339297Sfenner ac_cv_lbl_cc_const_proto=yes 335417680Spstelse 3355252283Sdelphij ac_cv_lbl_cc_const_proto=no 335617680Spstfi 3357172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 335817680Spstfi 335917680Spst 3360252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5 3361252283Sdelphij$as_echo "$ac_cv_lbl_cc_const_proto" >&6; } 336239297Sfenner if test $ac_cv_lbl_cc_const_proto = no ; then 3363214478Srpaulo 3364252283Sdelphij$as_echo "#define const /**/" >>confdefs.h 336517680Spst 336617680Spst fi 336717680Spst ;; 336817680Spst esac 336917680Spst fi 337017680Spst 3371252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 3372252283Sdelphij$as_echo_n "checking for inline... " >&6; } 3373214478Srpaulo save_CFLAGS="$CFLAGS" 3374214478Srpaulo CFLAGS="$V_CCOPT" 3375252283Sdelphij if ${ac_cv_lbl_inline+:} false; then : 3376252283Sdelphij $as_echo_n "(cached) " >&6 337756893Sfennerelse 3378127668Sbms 3379111726Sfenner ac_cv_lbl_inline="" 3380111726Sfenner ac_lbl_cc_inline=no 3381111726Sfenner for ac_lbl_inline in inline __inline__ __inline 3382111726Sfenner do 3383252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384127668Sbms/* end confdefs.h. */ 3385111726Sfenner#define inline $ac_lbl_inline 3386111726Sfenner static inline struct iltest *foo(void); 3387111726Sfenner struct iltest { 3388111726Sfenner int iltest1; 3389111726Sfenner int iltest2; 3390111726Sfenner }; 339117680Spst 3392111726Sfenner static inline struct iltest * 3393111726Sfenner foo() 3394111726Sfenner { 3395111726Sfenner static struct iltest xxx; 3396111726Sfenner 3397111726Sfenner return &xxx; 3398111726Sfenner } 3399127668Sbmsint 3400127668Sbmsmain () 3401127668Sbms{ 3402111726Sfenner 3403127668Sbms ; 3404127668Sbms return 0; 3405127668Sbms} 3406127668Sbms_ACEOF 3407252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3408111726Sfenner ac_lbl_cc_inline=yes 340956893Sfennerfi 3410172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3411111726Sfenner if test "$ac_lbl_cc_inline" = yes ; then 3412111726Sfenner break; 3413111726Sfenner fi 3414111726Sfenner done 3415111726Sfenner if test "$ac_lbl_cc_inline" = yes ; then 3416111726Sfenner ac_cv_lbl_inline=$ac_lbl_inline 3417111726Sfenner fi 341856893Sfennerfi 341956893Sfenner 3420214478Srpaulo CFLAGS="$save_CFLAGS" 3421111726Sfenner if test ! -z "$ac_cv_lbl_inline" ; then 3422252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5 3423252283Sdelphij$as_echo "$ac_cv_lbl_inline" >&6; } 3424111726Sfenner else 3425252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426252283Sdelphij$as_echo "no" >&6; } 3427111726Sfenner fi 3428127668Sbms 3429127668Sbmscat >>confdefs.h <<_ACEOF 3430111726Sfenner#define inline $ac_cv_lbl_inline 3431127668Sbms_ACEOF 343256893Sfenner 343356893Sfenner 3434252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 3435252283Sdelphij$as_echo_n "checking for __attribute__... " >&6; } 3436252283Sdelphijif ${ac_cv___attribute__+:} false; then : 3437252283Sdelphij $as_echo_n "(cached) " >&6 343875115Sfennerelse 343975115Sfenner 3440252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3441127668Sbms/* end confdefs.h. */ 3442127668Sbms 3443252283Sdelphij 344475115Sfenner#include <stdlib.h> 344575115Sfenner 344675115Sfennerstatic void foo(void) __attribute__ ((noreturn)); 344775115Sfenner 344875115Sfennerstatic void 344975115Sfennerfoo(void) 345075115Sfenner{ 345175115Sfenner exit(1); 345275115Sfenner} 345375115Sfenner 3454147899Ssamint 3455147899Ssammain(int argc, char **argv) 3456147899Ssam{ 3457147899Ssam foo(); 3458127668Sbms} 3459147899Ssam 3460127668Sbms_ACEOF 3461252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 346275115Sfenner ac_cv___attribute__=yes 346375115Sfennerelse 3464252283Sdelphij ac_cv___attribute__=no 346575115Sfennerfi 3466172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 346775115Sfennerfi 346875115Sfenner 346975115Sfennerif test "$ac_cv___attribute__" = "yes"; then 3470127668Sbms 3471252283Sdelphij$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 347275115Sfenner 3473127668Sbms V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 3474127668Sbmselse 3475127668Sbms V_DEFS="$V_DEFS -D_U_=\"\"" 347675115Sfennerfi 3477252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 3478252283Sdelphij$as_echo "$ac_cv___attribute__" >&6; } 347975115Sfenner 3480214478Srpauloif test "$ac_cv___attribute__" = "yes"; then 3481214478Srpaulo 3482252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be applied to function pointers" >&5 3483252283Sdelphij$as_echo_n "checking whether __attribute__((format)) can be applied to function pointers... " >&6; } 3484252283Sdelphijif ${ac_cv___attribute___format_function_pointer+:} false; then : 3485252283Sdelphij $as_echo_n "(cached) " >&6 3486214478Srpauloelse 3487214478Srpaulo 3488252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489214478Srpaulo/* end confdefs.h. */ 3490214478Srpaulo 3491252283Sdelphij 3492214478Srpaulo#include <stdlib.h> 3493214478Srpaulo 3494214478Srpauloextern int (*foo)(const char *fmt, ...) 3495214478Srpaulo __attribute__ ((format (printf, 1, 2))); 3496214478Srpaulo 3497214478Srpauloint 3498214478Srpaulomain(int argc, char **argv) 3499214478Srpaulo{ 3500214478Srpaulo (*foo)("%s", "test"); 3501214478Srpaulo} 3502214478Srpaulo 3503214478Srpaulo_ACEOF 3504252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3505214478Srpaulo ac_cv___attribute___format_function_pointer=yes 3506214478Srpauloelse 3507252283Sdelphij ac_cv___attribute___format_function_pointer=no 3508214478Srpaulofi 3509214478Srpaulorm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3510214478Srpaulofi 3511214478Srpaulo 3512214478Srpauloif test "$ac_cv___attribute___format_function_pointer" = "yes"; then 3513214478Srpaulo 3514252283Sdelphij$as_echo "#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1" >>confdefs.h 3515214478Srpaulo 3516214478Srpaulofi 3517252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format_function_pointer" >&5 3518252283Sdelphij$as_echo "$ac_cv___attribute___format_function_pointer" >&6; } 3519214478Srpaulo 3520214478Srpaulofi 3521127668Sbmsac_ext=c 3522127668Sbmsac_cpp='$CPP $CPPFLAGS' 3523127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3524127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3525127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 3526252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3527252283Sdelphij$as_echo_n "checking how to run the C preprocessor... " >&6; } 352817680Spst# On Suns, sometimes $CPP names a directory. 352917680Spstif test -n "$CPP" && test -d "$CPP"; then 353017680Spst CPP= 353117680Spstfi 353217680Spstif test -z "$CPP"; then 3533252283Sdelphij if ${ac_cv_prog_CPP+:} false; then : 3534252283Sdelphij $as_echo_n "(cached) " >&6 353517680Spstelse 3536127668Sbms # Double quotes because CPP needs to be expanded 3537127668Sbms for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3538127668Sbms do 3539127668Sbms ac_preproc_ok=false 3540127668Sbmsfor ac_c_preproc_warn_flag in '' yes 3541127668Sbmsdo 3542127668Sbms # Use a header file that comes with gcc, so configuring glibc 3543127668Sbms # with a fresh cross-compiler works. 3544127668Sbms # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3545127668Sbms # <limits.h> exists even on freestanding compilers. 354617680Spst # On the NeXT, cc -E runs the code through the compiler's parser, 3547127668Sbms # not just through cpp. "Syntax error" is here to catch this case. 3548252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549127668Sbms/* end confdefs.h. */ 3550127668Sbms#ifdef __STDC__ 3551127668Sbms# include <limits.h> 3552127668Sbms#else 3553127668Sbms# include <assert.h> 3554127668Sbms#endif 3555172683Smlaier Syntax error 3556127668Sbms_ACEOF 3557252283Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3558252283Sdelphij 355917680Spstelse 3560127668Sbms # Broken: fails on valid input. 3561127668Sbmscontinue 3562127668Sbmsfi 3563252283Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3564172683Smlaier 3565172683Smlaier # OK, works on sane cases. Now check whether nonexistent headers 3566127668Sbms # can be detected and how. 3567252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568127668Sbms/* end confdefs.h. */ 3569127668Sbms#include <ac_nonexistent.h> 3570127668Sbms_ACEOF 3571252283Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3572127668Sbms # Broken: success on invalid input. 3573127668Sbmscontinue 3574127668Sbmselse 3575127668Sbms # Passes both tests. 3576127668Sbmsac_preproc_ok=: 3577127668Sbmsbreak 3578127668Sbmsfi 3579252283Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3580172683Smlaier 3581127668Sbmsdone 3582127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3583252283Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext 3584252283Sdelphijif $ac_preproc_ok; then : 3585127668Sbms break 3586127668Sbmsfi 3587127668Sbms 3588127668Sbms done 3589127668Sbms ac_cv_prog_CPP=$CPP 3590127668Sbms 3591127668Sbmsfi 3592127668Sbms CPP=$ac_cv_prog_CPP 3593127668Sbmselse 3594127668Sbms ac_cv_prog_CPP=$CPP 3595127668Sbmsfi 3596252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3597252283Sdelphij$as_echo "$CPP" >&6; } 3598127668Sbmsac_preproc_ok=false 3599127668Sbmsfor ac_c_preproc_warn_flag in '' yes 3600127668Sbmsdo 3601127668Sbms # Use a header file that comes with gcc, so configuring glibc 3602127668Sbms # with a fresh cross-compiler works. 3603127668Sbms # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3604127668Sbms # <limits.h> exists even on freestanding compilers. 3605127668Sbms # On the NeXT, cc -E runs the code through the compiler's parser, 3606127668Sbms # not just through cpp. "Syntax error" is here to catch this case. 3607252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608127668Sbms/* end confdefs.h. */ 3609127668Sbms#ifdef __STDC__ 3610127668Sbms# include <limits.h> 3611127668Sbms#else 3612127668Sbms# include <assert.h> 3613127668Sbms#endif 3614172683Smlaier Syntax error 3615127668Sbms_ACEOF 3616252283Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3617252283Sdelphij 361817680Spstelse 3619127668Sbms # Broken: fails on valid input. 3620127668Sbmscontinue 3621127668Sbmsfi 3622252283Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3623172683Smlaier 3624172683Smlaier # OK, works on sane cases. Now check whether nonexistent headers 3625127668Sbms # can be detected and how. 3626252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627127668Sbms/* end confdefs.h. */ 3628127668Sbms#include <ac_nonexistent.h> 3629127668Sbms_ACEOF 3630252283Sdelphijif ac_fn_c_try_cpp "$LINENO"; then : 3631127668Sbms # Broken: success on invalid input. 3632127668Sbmscontinue 3633127668Sbmselse 3634127668Sbms # Passes both tests. 3635127668Sbmsac_preproc_ok=: 3636127668Sbmsbreak 3637127668Sbmsfi 3638252283Sdelphijrm -f conftest.err conftest.i conftest.$ac_ext 3639172683Smlaier 3640127668Sbmsdone 3641127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3642252283Sdelphijrm -f conftest.i conftest.err conftest.$ac_ext 3643252283Sdelphijif $ac_preproc_ok; then : 3644252283Sdelphij 364556893Sfennerelse 3646252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3648252283Sdelphijas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3649252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 365017680Spstfi 3651127668Sbms 3652127668Sbmsac_ext=c 3653127668Sbmsac_cpp='$CPP $CPPFLAGS' 3654127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3655127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3656127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu 3657127668Sbms 3658127668Sbms 3659252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3660252283Sdelphij$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3661252283Sdelphijif ${ac_cv_path_GREP+:} false; then : 3662252283Sdelphij $as_echo_n "(cached) " >&6 3663127668Sbmselse 3664252283Sdelphij if test -z "$GREP"; then 3665172683Smlaier ac_path_GREP_found=false 3666252283Sdelphij # Loop through the user's path and test for each of PROGNAME-LIST 3667252283Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668172683Smlaierfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3669172683Smlaierdo 3670172683Smlaier IFS=$as_save_IFS 3671172683Smlaier test -z "$as_dir" && as_dir=. 3672252283Sdelphij for ac_prog in grep ggrep; do 3673252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 3674252283Sdelphij ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3675252283Sdelphij { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3676252283Sdelphij# Check for GNU ac_path_GREP and select it if it is found. 3677172683Smlaier # Check for GNU $ac_path_GREP 3678172683Smlaiercase `"$ac_path_GREP" --version 2>&1` in 3679172683Smlaier*GNU*) 3680172683Smlaier ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3681172683Smlaier*) 3682172683Smlaier ac_count=0 3683252283Sdelphij $as_echo_n 0123456789 >"conftest.in" 3684172683Smlaier while : 3685172683Smlaier do 3686172683Smlaier cat "conftest.in" "conftest.in" >"conftest.tmp" 3687172683Smlaier mv "conftest.tmp" "conftest.in" 3688172683Smlaier cp "conftest.in" "conftest.nl" 3689252283Sdelphij $as_echo 'GREP' >> "conftest.nl" 3690172683Smlaier "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3691172683Smlaier diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3692252283Sdelphij as_fn_arith $ac_count + 1 && ac_count=$as_val 3693172683Smlaier if test $ac_count -gt ${ac_path_GREP_max-0}; then 3694172683Smlaier # Best one so far, save it but keep looking for a better one 3695172683Smlaier ac_cv_path_GREP="$ac_path_GREP" 3696172683Smlaier ac_path_GREP_max=$ac_count 3697127668Sbms fi 3698172683Smlaier # 10*(2^10) chars as input seems more than enough 3699172683Smlaier test $ac_count -gt 10 && break 3700172683Smlaier done 3701172683Smlaier rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3702172683Smlaieresac 3703172683Smlaier 3704252283Sdelphij $ac_path_GREP_found && break 3 3705252283Sdelphij done 3706172683Smlaier done 3707252283Sdelphij done 3708172683SmlaierIFS=$as_save_IFS 3709252283Sdelphij if test -z "$ac_cv_path_GREP"; then 3710252283Sdelphij as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3711252283Sdelphij fi 3712172683Smlaierelse 3713172683Smlaier ac_cv_path_GREP=$GREP 3714172683Smlaierfi 3715172683Smlaier 3716172683Smlaierfi 3717252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3718252283Sdelphij$as_echo "$ac_cv_path_GREP" >&6; } 3719172683Smlaier GREP="$ac_cv_path_GREP" 3720172683Smlaier 3721172683Smlaier 3722252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3723252283Sdelphij$as_echo_n "checking for egrep... " >&6; } 3724252283Sdelphijif ${ac_cv_path_EGREP+:} false; then : 3725252283Sdelphij $as_echo_n "(cached) " >&6 3726172683Smlaierelse 3727172683Smlaier if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3728172683Smlaier then ac_cv_path_EGREP="$GREP -E" 3729172683Smlaier else 3730252283Sdelphij if test -z "$EGREP"; then 3731172683Smlaier ac_path_EGREP_found=false 3732252283Sdelphij # Loop through the user's path and test for each of PROGNAME-LIST 3733252283Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3734172683Smlaierfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3735172683Smlaierdo 3736172683Smlaier IFS=$as_save_IFS 3737172683Smlaier test -z "$as_dir" && as_dir=. 3738252283Sdelphij for ac_prog in egrep; do 3739252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 3740252283Sdelphij ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3741252283Sdelphij { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3742252283Sdelphij# Check for GNU ac_path_EGREP and select it if it is found. 3743172683Smlaier # Check for GNU $ac_path_EGREP 3744172683Smlaiercase `"$ac_path_EGREP" --version 2>&1` in 3745172683Smlaier*GNU*) 3746172683Smlaier ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3747172683Smlaier*) 3748172683Smlaier ac_count=0 3749252283Sdelphij $as_echo_n 0123456789 >"conftest.in" 3750172683Smlaier while : 3751172683Smlaier do 3752172683Smlaier cat "conftest.in" "conftest.in" >"conftest.tmp" 3753172683Smlaier mv "conftest.tmp" "conftest.in" 3754172683Smlaier cp "conftest.in" "conftest.nl" 3755252283Sdelphij $as_echo 'EGREP' >> "conftest.nl" 3756172683Smlaier "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3757172683Smlaier diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3758252283Sdelphij as_fn_arith $ac_count + 1 && ac_count=$as_val 3759172683Smlaier if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3760172683Smlaier # Best one so far, save it but keep looking for a better one 3761172683Smlaier ac_cv_path_EGREP="$ac_path_EGREP" 3762172683Smlaier ac_path_EGREP_max=$ac_count 3763172683Smlaier fi 3764172683Smlaier # 10*(2^10) chars as input seems more than enough 3765172683Smlaier test $ac_count -gt 10 && break 3766172683Smlaier done 3767172683Smlaier rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3768172683Smlaieresac 3769172683Smlaier 3770252283Sdelphij $ac_path_EGREP_found && break 3 3771252283Sdelphij done 3772172683Smlaier done 3773252283Sdelphij done 3774172683SmlaierIFS=$as_save_IFS 3775252283Sdelphij if test -z "$ac_cv_path_EGREP"; then 3776252283Sdelphij as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3777252283Sdelphij fi 3778172683Smlaierelse 3779172683Smlaier ac_cv_path_EGREP=$EGREP 3780172683Smlaierfi 3781172683Smlaier 3782172683Smlaier fi 3783172683Smlaierfi 3784252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3785252283Sdelphij$as_echo "$ac_cv_path_EGREP" >&6; } 3786172683Smlaier EGREP="$ac_cv_path_EGREP" 3787172683Smlaier 3788172683Smlaier 3789252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3790252283Sdelphij$as_echo_n "checking for ANSI C header files... " >&6; } 3791252283Sdelphijif ${ac_cv_header_stdc+:} false; then : 3792252283Sdelphij $as_echo_n "(cached) " >&6 3793127668Sbmselse 3794252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795127668Sbms/* end confdefs.h. */ 3796127668Sbms#include <stdlib.h> 3797127668Sbms#include <stdarg.h> 3798127668Sbms#include <string.h> 3799127668Sbms#include <float.h> 3800127668Sbms 3801127668Sbmsint 3802127668Sbmsmain () 3803127668Sbms{ 3804127668Sbms 3805127668Sbms ; 3806127668Sbms return 0; 3807127668Sbms} 3808127668Sbms_ACEOF 3809252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 3810127668Sbms ac_cv_header_stdc=yes 3811127668Sbmselse 3812252283Sdelphij ac_cv_header_stdc=no 3813127668Sbmsfi 3814172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3815172683Smlaier 3816127668Sbmsif test $ac_cv_header_stdc = yes; then 3817127668Sbms # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3818252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819127668Sbms/* end confdefs.h. */ 3820127668Sbms#include <string.h> 3821127668Sbms 3822127668Sbms_ACEOF 3823127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3824252283Sdelphij $EGREP "memchr" >/dev/null 2>&1; then : 3825252283Sdelphij 3826127668Sbmselse 3827127668Sbms ac_cv_header_stdc=no 3828127668Sbmsfi 3829252283Sdelphijrm -f conftest* 3830127668Sbms 383156893Sfennerfi 3832127668Sbms 3833127668Sbmsif test $ac_cv_header_stdc = yes; then 3834127668Sbms # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3835252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836127668Sbms/* end confdefs.h. */ 3837127668Sbms#include <stdlib.h> 3838127668Sbms 3839127668Sbms_ACEOF 3840127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3841252283Sdelphij $EGREP "free" >/dev/null 2>&1; then : 3842252283Sdelphij 3843127668Sbmselse 3844127668Sbms ac_cv_header_stdc=no 3845127668Sbmsfi 3846252283Sdelphijrm -f conftest* 3847127668Sbms 384817680Spstfi 3849127668Sbms 3850127668Sbmsif test $ac_cv_header_stdc = yes; then 3851127668Sbms # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3852252283Sdelphij if test "$cross_compiling" = yes; then : 3853127668Sbms : 385417680Spstelse 3855252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856127668Sbms/* end confdefs.h. */ 3857127668Sbms#include <ctype.h> 3858172683Smlaier#include <stdlib.h> 3859127668Sbms#if ((' ' & 0x0FF) == 0x020) 3860127668Sbms# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3861127668Sbms# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3862127668Sbms#else 3863127668Sbms# define ISLOWER(c) \ 3864172683Smlaier (('a' <= (c) && (c) <= 'i') \ 3865172683Smlaier || ('j' <= (c) && (c) <= 'r') \ 3866172683Smlaier || ('s' <= (c) && (c) <= 'z')) 3867127668Sbms# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3868127668Sbms#endif 3869127668Sbms 3870127668Sbms#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3871127668Sbmsint 3872127668Sbmsmain () 3873127668Sbms{ 3874127668Sbms int i; 3875127668Sbms for (i = 0; i < 256; i++) 3876127668Sbms if (XOR (islower (i), ISLOWER (i)) 3877172683Smlaier || toupper (i) != TOUPPER (i)) 3878172683Smlaier return 2; 3879172683Smlaier return 0; 3880127668Sbms} 3881127668Sbms_ACEOF 3882252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 3883252283Sdelphij 3884127668Sbmselse 3885252283Sdelphij ac_cv_header_stdc=no 388617680Spstfi 3887252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3888252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 3889127668Sbmsfi 3890172683Smlaier 3891127668Sbmsfi 3892127668Sbmsfi 3893252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3894252283Sdelphij$as_echo "$ac_cv_header_stdc" >&6; } 3895127668Sbmsif test $ac_cv_header_stdc = yes; then 389617680Spst 3897252283Sdelphij$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3898127668Sbms 3899127668Sbmsfi 3900127668Sbms 3901127668Sbms# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3902127668Sbmsfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3903172683Smlaier inttypes.h stdint.h unistd.h 3904252283Sdelphijdo : 3905252283Sdelphij as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3906252283Sdelphijac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3907252283Sdelphij" 3908252283Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3909127668Sbms cat >>confdefs.h <<_ACEOF 3910252283Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3911127668Sbms_ACEOF 3912127668Sbms 3913127668Sbmsfi 3914127668Sbms 3915127668Sbmsdone 3916127668Sbms 3917127668Sbms 3918236192Sdelphijfor ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h 3919252283Sdelphijdo : 3920252283Sdelphij as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3921252283Sdelphijac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3922252283Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3923127668Sbms cat >>confdefs.h <<_ACEOF 3924252283Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3925127668Sbms_ACEOF 3926127668Sbms 3927127668Sbmsfi 3928127668Sbms 392917680Spstdone 393017680Spst 3931172683Smlaierfor ac_header in net/pfvar.h 3932252283Sdelphijdo : 3933252283Sdelphij ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h> 3934127668Sbms#include <sys/socket.h> 3935172683Smlaier#include <net/if.h> 3936252283Sdelphij" 3937252283Sdelphijif test "x$ac_cv_header_net_pfvar_h" = xyes; then : 3938172683Smlaier cat >>confdefs.h <<_ACEOF 3939252283Sdelphij#define HAVE_NET_PFVAR_H 1 3940172683Smlaier_ACEOF 3941172683Smlaier 3942172683Smlaierfi 3943172683Smlaier 3944172683Smlaierdone 3945172683Smlaier 3946190207Srpauloif test "$ac_cv_header_net_pfvar_h" = yes; then 3947172683Smlaier LOCALSRC="print-pflog.c $LOCALSRC" 3948172683Smlaierfi 3949172683Smlaierfor ac_header in netinet/if_ether.h 3950252283Sdelphijdo : 3951252283Sdelphij ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h> 3952172683Smlaier#include <sys/socket.h> 3953252283Sdelphij" 3954252283Sdelphijif test "x$ac_cv_header_netinet_if_ether_h" = xyes; then : 3955127668Sbms cat >>confdefs.h <<_ACEOF 3956252283Sdelphij#define HAVE_NETINET_IF_ETHER_H 1 3957127668Sbms_ACEOF 3958127668Sbms 3959127668Sbmsfi 3960127668Sbms 3961127668Sbmsdone 3962127668Sbms 3963146773Ssamif test "$ac_cv_header_netinet_if_ether_h" != yes; then 3964146773Ssam # 3965146773Ssam # The simple test didn't work. 3966146773Ssam # Do we need to include <net/if.h> first? 3967146773Ssam # Unset ac_cv_header_netinet_if_ether_h so we don't 3968146773Ssam # treat the previous failure as a cached value and 3969146773Ssam # suppress the next test. 3970146773Ssam # 3971252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5 3972252283Sdelphij$as_echo "$as_me: Rechecking with some additional includes" >&6;} 3973146773Ssam unset ac_cv_header_netinet_if_ether_h 3974252283Sdelphij for ac_header in netinet/if_ether.h 3975252283Sdelphijdo : 3976252283Sdelphij ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h> 3977146773Ssam#include <sys/socket.h> 3978146773Ssam#include <netinet/in.h> 3979146773Ssamstruct mbuf; 3980146773Ssamstruct rtentry; 3981146773Ssam#include <net/if.h> 3982252283Sdelphij" 3983252283Sdelphijif test "x$ac_cv_header_netinet_if_ether_h" = xyes; then : 3984146773Ssam cat >>confdefs.h <<_ACEOF 3985252283Sdelphij#define HAVE_NETINET_IF_ETHER_H 1 3986146773Ssam_ACEOF 3987146773Ssam 3988146773Ssamfi 3989146773Ssam 3990146773Ssamdone 3991146773Ssam 3992146773Ssamfi 3993146773Ssam 3994252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 3995252283Sdelphij$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 3996252283Sdelphijif ${ac_cv_header_time+:} false; then : 3997252283Sdelphij $as_echo_n "(cached) " >&6 3998127668Sbmselse 3999252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000127668Sbms/* end confdefs.h. */ 4001127668Sbms#include <sys/types.h> 400217680Spst#include <sys/time.h> 400317680Spst#include <time.h> 4004127668Sbms 4005127668Sbmsint 4006127668Sbmsmain () 4007127668Sbms{ 4008127668Sbmsif ((struct tm *) 0) 4009127668Sbmsreturn 0; 4010127668Sbms ; 4011127668Sbms return 0; 4012127668Sbms} 4013127668Sbms_ACEOF 4014252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 401517680Spst ac_cv_header_time=yes 401617680Spstelse 4017252283Sdelphij ac_cv_header_time=no 401817680Spstfi 4019172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 402017680Spstfi 4021252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 4022252283Sdelphij$as_echo "$ac_cv_header_time" >&6; } 4023127668Sbmsif test $ac_cv_header_time = yes; then 402417680Spst 4025252283Sdelphij$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 402617680Spst 402717680Spstfi 402817680Spst 402917680Spst 403098524Sfennercase "$host_os" in 403139297Sfenner 4032236192Sdelphijdarwin*) 4033236192Sdelphij # Check whether --enable-universal was given. 4034252283Sdelphijif test "${enable_universal+set}" = set; then : 4035236192Sdelphij enableval=$enable_universal; 4036236192Sdelphijfi 4037236192Sdelphij 4038236192Sdelphij if test "$enable_universal" != "no"; then 4039236192Sdelphij case "$host_os" in 4040236192Sdelphij 4041236192Sdelphij darwin9.*) 4042236192Sdelphij # 4043236192Sdelphij # Leopard. Build for x86 and 32-bit PowerPC, with 4044236192Sdelphij # x86 first. (That's what Apple does.) 4045236192Sdelphij # 4046236192Sdelphij V_CCOPT="$V_CCOPT -arch i386 -arch ppc" 4047236192Sdelphij LDFLAGS="$LDFLAGS -arch i386 -arch ppc" 4048236192Sdelphij ;; 4049236192Sdelphij 4050236192Sdelphij darwin10.*) 4051236192Sdelphij # 4052236192Sdelphij # Snow Leopard. Build for x86-64 and x86, with 4053236192Sdelphij # x86-64 first. (That's what Apple does.) 4054236192Sdelphij # 4055236192Sdelphij V_CCOPT="$V_CCOPT -arch x86_64 -arch i386" 4056236192Sdelphij LDFLAGS="$LDFLAGS -arch x86_64 -arch i386" 4057236192Sdelphij ;; 4058236192Sdelphij esac 4059236192Sdelphij fi 4060236192Sdelphij ;; 4061236192Sdelphij 406239297Sfennerlinux*) 4063252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux kernel version" >&5 4064252283Sdelphij$as_echo_n "checking Linux kernel version... " >&6; } 406575115Sfenner if test "$cross_compiling" = yes; then 4066252283Sdelphij if ${ac_cv_linux_vers+:} false; then : 4067252283Sdelphij $as_echo_n "(cached) " >&6 406839297Sfennerelse 406975115Sfenner ac_cv_linux_vers=unknown 407075115Sfennerfi 407175115Sfenner 407275115Sfenner else 4073252283Sdelphij if ${ac_cv_linux_vers+:} false; then : 4074252283Sdelphij $as_echo_n "(cached) " >&6 407575115Sfennerelse 407639297Sfenner ac_cv_linux_vers=`uname -r 2>&1 | \ 407775115Sfenner sed -n -e '$s/.* //' -e '$s/\..*//p'` 407839297Sfennerfi 407939297Sfenner 408075115Sfenner fi 4081252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_vers" >&5 4082252283Sdelphij$as_echo "$ac_cv_linux_vers" >&6; } 408375115Sfenner if test $ac_cv_linux_vers = unknown ; then 4084252283Sdelphij as_fn_error $? "cannot determine linux version when cross-compiling" "$LINENO" 5 408575115Sfenner fi 408639297Sfenner if test $ac_cv_linux_vers -lt 2 ; then 4087252283Sdelphij as_fn_error $? "version 2 or higher required; see the INSTALL doc for more info" "$LINENO" 5 408839297Sfenner fi 408939297Sfenner ;; 409039297Sfenner 409139297Sfenner*) 409239297Sfenner ;; 409339297Sfenneresac 409439297Sfenner 409556893Sfenner 4096127668Sbms 4097214478Srpaulo# Check whether --with-smi was given. 4098252283Sdelphijif test "${with_smi+set}" = set; then : 4099214478Srpaulo withval=$with_smi; 4100214478Srpauloelse 4101214478Srpaulo with_smi=yes 4102214478Srpaulofi 4103214478Srpaulo 4104214478Srpaulo 4105214478Srpauloif test "x$with_smi" != "xno" ; then 4106127668Sbmsfor ac_header in smi.h 4107252283Sdelphijdo : 4108252283Sdelphij ac_fn_c_check_header_mongrel "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default" 4109252283Sdelphijif test "x$ac_cv_header_smi_h" = xyes; then : 4110127668Sbms cat >>confdefs.h <<_ACEOF 4111252283Sdelphij#define HAVE_SMI_H 1 4112127668Sbms_ACEOF 4113127668Sbms 4114127668Sbmsfi 4115127668Sbms 411656893Sfennerdone 411756893Sfenner 4118252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5 4119252283Sdelphij$as_echo_n "checking for smiInit in -lsmi... " >&6; } 4120252283Sdelphijif ${ac_cv_lib_smi_smiInit+:} false; then : 4121252283Sdelphij $as_echo_n "(cached) " >&6 412256893Sfennerelse 4123127668Sbms ac_check_lib_save_LIBS=$LIBS 412456893SfennerLIBS="-lsmi $LIBS" 4125252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126127668Sbms/* end confdefs.h. */ 4127127668Sbms 4128172683Smlaier/* Override any GCC internal prototype to avoid an error. 4129172683Smlaier Use char because int might match the return type of a GCC 4130172683Smlaier builtin and then its argument prototype would still apply. */ 4131127668Sbms#ifdef __cplusplus 4132127668Sbmsextern "C" 4133127668Sbms#endif 4134127668Sbmschar smiInit (); 4135127668Sbmsint 4136127668Sbmsmain () 4137127668Sbms{ 4138172683Smlaierreturn smiInit (); 4139127668Sbms ; 4140127668Sbms return 0; 4141127668Sbms} 4142127668Sbms_ACEOF 4143252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 4144127668Sbms ac_cv_lib_smi_smiInit=yes 414556893Sfennerelse 4146252283Sdelphij ac_cv_lib_smi_smiInit=no 414756893Sfennerfi 4148252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4149252283Sdelphij conftest$ac_exeext conftest.$ac_ext 4150127668SbmsLIBS=$ac_check_lib_save_LIBS 4151127668Sbmsfi 4152252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5 4153252283Sdelphij$as_echo "$ac_cv_lib_smi_smiInit" >&6; } 4154252283Sdelphijif test "x$ac_cv_lib_smi_smiInit" = xyes; then : 4155127668Sbms cat >>confdefs.h <<_ACEOF 4156127668Sbms#define HAVE_LIBSMI 1 4157127668Sbms_ACEOF 415856893Sfenner 415956893Sfenner LIBS="-lsmi $LIBS" 416056893Sfenner 416156893Sfennerfi 416256893Sfenner 416398524Sfennerif test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 416498524Sfennerthen 4165252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5 4166252283Sdelphij$as_echo_n "checking whether to enable libsmi... " >&6; } 4167252283Sdelphij if test "$cross_compiling" = yes; then : 4168252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5 4169252283Sdelphij$as_echo "not when cross-compiling" >&6; } 417075115Sfenner libsmi=no 417175115Sfenner 417256893Sfennerelse 4173252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174127668Sbms/* end confdefs.h. */ 417556893Sfenner /* libsmi available check */ 417656893Sfenner#include <smi.h> 417756893Sfennermain() 417856893Sfenner{ 417975115Sfenner int current, revision, age, n; 418075115Sfenner const int required = 2; 4181127668Sbms if (smiInit("")) 418256893Sfenner exit(1); 418375115Sfenner if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 418475115Sfenner exit(2); 418575115Sfenner n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 418675115Sfenner if (n != 3) 418775115Sfenner exit(3); 418875115Sfenner if (required < current - age || required > current) 418975115Sfenner exit(4); 419075115Sfenner exit(0); 419156893Sfenner} 419256893Sfenner 4193127668Sbms_ACEOF 4194252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 4195252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4196252283Sdelphij$as_echo "yes" >&6; } 4197252283Sdelphij $as_echo "#define LIBSMI 1" >>confdefs.h 419856893Sfenner 419956893Sfenner libsmi=yes 420056893Sfennerelse 4201252283Sdelphij case $? in 4202252283Sdelphij 1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5 4203252283Sdelphij$as_echo "no - smiInit failed" >&6; } ;; 4204252283Sdelphij 2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5 4205252283Sdelphij$as_echo "no - header/library version mismatch" >&6; } ;; 4206252283Sdelphij 3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5 4207252283Sdelphij$as_echo "no - can't determine library version" >&6; } ;; 4208252283Sdelphij 4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5 4209252283Sdelphij$as_echo "no - too old" >&6; } ;; 4210252283Sdelphij *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4211252283Sdelphij$as_echo "no" >&6; } ;; 421298524Sfenner esac 421356893Sfenner libsmi=no 421456893Sfennerfi 4215252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4216252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 421756893Sfennerfi 4218172683Smlaier 421998524Sfennerfi 4220214478Srpaulofi 422156893Sfenner 4222252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5 4223252283Sdelphij$as_echo_n "checking whether to enable the possibly-buggy SMB printer... " >&6; } 4224172683Smlaier# Check whether --enable-smb was given. 4225252283Sdelphijif test "${enable_smb+set}" = set; then : 4226172683Smlaier enableval=$enable_smb; 422798524Sfennerelse 422898524Sfenner enableval=yes 4229172683Smlaierfi 4230172683Smlaier 423198524Sfennercase "$enableval" in 4232252283Sdelphijyes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4233252283Sdelphij$as_echo "yes" >&6; } 4234252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 4235252283Sdelphij$as_echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 4236252283Sdelphij $as_echo "#define TCPDUMP_DO_SMB 1" >>confdefs.h 423798524Sfenner 423898524Sfenner LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 423998524Sfenner ;; 4240252283Sdelphij*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4241252283Sdelphij$as_echo "no" >&6; } 424298524Sfenner ;; 424398524Sfenneresac 424498524Sfenner 4245146773Ssam 4246172683Smlaier# Check whether --with-user was given. 4247252283Sdelphijif test "${with_user+set}" = set; then : 4248172683Smlaier withval=$with_user; 4249172683Smlaierfi 4250146773Ssam 4251252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5 4252252283Sdelphij$as_echo_n "checking whether to drop root privileges by default... " >&6; } 4253146773Ssamif test ! -z "$with_user" ; then 4254146773Ssam cat >>confdefs.h <<_ACEOF 4255146773Ssam#define WITH_USER "$withval" 4256146773Ssam_ACEOF 4257146773Ssam 4258252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5 4259252283Sdelphij$as_echo "to \"$withval\"" >&6; } 4260146773Ssamelse 4261252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262252283Sdelphij$as_echo "no" >&6; } 4263146773Ssamfi 4264146773Ssam 4265146773Ssam 4266172683Smlaier# Check whether --with-chroot was given. 4267252283Sdelphijif test "${with_chroot+set}" = set; then : 4268172683Smlaier withval=$with_chroot; 4269172683Smlaierfi 4270146773Ssam 4271252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5 4272252283Sdelphij$as_echo_n "checking whether to chroot... " >&6; } 4273214478Srpauloif test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then 4274146773Ssam cat >>confdefs.h <<_ACEOF 4275146773Ssam#define WITH_CHROOT "$withval" 4276146773Ssam_ACEOF 4277146773Ssam 4278252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5 4279252283Sdelphij$as_echo "to \"$withval\"" >&6; } 4280146773Ssamelse 4281252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4282252283Sdelphij$as_echo "no" >&6; } 4283146773Ssamfi 4284146773Ssam 4285252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5 4286252283Sdelphij$as_echo_n "checking whether to enable ipv6... " >&6; } 4287172683Smlaier# Check whether --enable-ipv6 was given. 4288252283Sdelphijif test "${enable_ipv6+set}" = set; then : 4289172683Smlaier enableval=$enable_ipv6; case "$enableval" in 4290252283Sdelphijyes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4291252283Sdelphij$as_echo "yes" >&6; } 4292236192Sdelphij 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 print-babel.c $LOCALSRC" 4293252283Sdelphij $as_echo "#define INET6 1" >>confdefs.h 429456893Sfenner 429556893Sfenner ipv6=yes 429656893Sfenner ;; 429756893Sfenner*) 4298252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4299252283Sdelphij$as_echo "no" >&6; } 430056893Sfenner ipv6=no 430156893Sfenner ;; 4302127668Sbms esac 430356893Sfennerelse 4304252283Sdelphij if test "$cross_compiling" = yes; then : 4305252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4306252283Sdelphij$as_echo "no" >&6; } 430756893Sfenner ipv6=no 430856893Sfenner 430956893Sfennerelse 4310252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311127668Sbms/* end confdefs.h. */ 431256893Sfenner /* AF_INET6 available check */ 431356893Sfenner#include <sys/types.h> 431456893Sfenner#include <sys/socket.h> 431556893Sfennermain() 431656893Sfenner{ 431756893Sfenner if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 431856893Sfenner exit(1); 431956893Sfenner else 432056893Sfenner exit(0); 432156893Sfenner} 432256893Sfenner 4323127668Sbms_ACEOF 4324252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 4325252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4326252283Sdelphij$as_echo "yes" >&6; } 4327236192Sdelphij 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 print-babel.c $LOCALSRC" 4328252283Sdelphij $as_echo "#define INET6 1" >>confdefs.h 432956893Sfenner 433056893Sfenner ipv6=yes 433156893Sfennerelse 4332252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4333252283Sdelphij$as_echo "no" >&6; } 433456893Sfenner ipv6=no 433556893Sfennerfi 4336252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4337252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 433856893Sfennerfi 433956893Sfenner 4340172683Smlaierfi 4341172683Smlaier 4342172683Smlaier 434356893Sfenneripv6type=unknown 434456893Sfenneripv6lib=none 434556893Sfenneripv6trylibc=no 434656893Sfenner 434756893Sfennerif test "$ipv6" = "yes"; then 4348252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 4349252283Sdelphij$as_echo_n "checking ipv6 stack type... " >&6; } 435056893Sfenner for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 435156893Sfenner case $i in 435256893Sfenner inria) 4353252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4354127668Sbms/* end confdefs.h. */ 435556893Sfenner#include <netinet/in.h> 435656893Sfenner#ifdef IPV6_INRIA_VERSION 435756893Sfenneryes 435856893Sfenner#endif 4359127668Sbms_ACEOF 436056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4361252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 436256893Sfenner ipv6type=$i; 436356893Sfenner CFLAGS="-DINET6 $CFLAGS" 436456893Sfennerfi 4365252283Sdelphijrm -f conftest* 436656893Sfenner 436756893Sfenner ;; 436856893Sfenner kame) 4369252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370127668Sbms/* end confdefs.h. */ 437156893Sfenner#include <netinet/in.h> 437256893Sfenner#ifdef __KAME__ 437356893Sfenneryes 437456893Sfenner#endif 4375127668Sbms_ACEOF 437656893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4377252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 437856893Sfenner ipv6type=$i; 437956893Sfenner ipv6lib=inet6; 438056893Sfenner ipv6libdir=/usr/local/v6/lib; 438156893Sfenner ipv6trylibc=yes; 438256893Sfenner CFLAGS="-DINET6 $CFLAGS" 438356893Sfennerfi 4384252283Sdelphijrm -f conftest* 438556893Sfenner 438656893Sfenner ;; 438756893Sfenner linux-glibc) 4388252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389127668Sbms/* end confdefs.h. */ 439056893Sfenner#include <features.h> 439156893Sfenner#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 439256893Sfenneryes 439356893Sfenner#endif 4394127668Sbms_ACEOF 439556893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4396252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 439756893Sfenner ipv6type=$i; 439856893Sfenner CFLAGS="-DINET6 $CFLAGS" 439956893Sfennerfi 4400252283Sdelphijrm -f conftest* 440156893Sfenner 440256893Sfenner ;; 440356893Sfenner linux-libinet6) 4404127668Sbms if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 440556893Sfenner ipv6type=$i 440656893Sfenner ipv6lib=inet6 440756893Sfenner ipv6libdir=/usr/inet6/lib 440856893Sfenner ipv6trylibc=yes; 440956893Sfenner CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 441056893Sfenner fi 441156893Sfenner ;; 441256893Sfenner toshiba) 4413252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4414127668Sbms/* end confdefs.h. */ 441556893Sfenner#include <sys/param.h> 441656893Sfenner#ifdef _TOSHIBA_INET6 441756893Sfenneryes 441856893Sfenner#endif 4419127668Sbms_ACEOF 442056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4421252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 442256893Sfenner ipv6type=$i; 442356893Sfenner ipv6lib=inet6; 442456893Sfenner ipv6libdir=/usr/local/v6/lib; 442556893Sfenner CFLAGS="-DINET6 $CFLAGS" 442656893Sfennerfi 4427252283Sdelphijrm -f conftest* 442856893Sfenner 442956893Sfenner ;; 443056893Sfenner v6d) 4431252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432127668Sbms/* end confdefs.h. */ 443356893Sfenner#include </usr/local/v6/include/sys/v6config.h> 443456893Sfenner#ifdef __V6D__ 443556893Sfenneryes 443656893Sfenner#endif 4437127668Sbms_ACEOF 443856893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4439252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 444056893Sfenner ipv6type=$i; 444156893Sfenner ipv6lib=v6; 444256893Sfenner ipv6libdir=/usr/local/v6/lib; 444356893Sfenner CFLAGS="-I/usr/local/v6/include $CFLAGS" 444456893Sfennerfi 4445252283Sdelphijrm -f conftest* 444656893Sfenner 444756893Sfenner ;; 444856893Sfenner zeta) 4449252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4450127668Sbms/* end confdefs.h. */ 445156893Sfenner#include <sys/param.h> 445256893Sfenner#ifdef _ZETA_MINAMI_INET6 445356893Sfenneryes 445456893Sfenner#endif 4455127668Sbms_ACEOF 445656893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4457252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 445856893Sfenner ipv6type=$i; 445956893Sfenner ipv6lib=inet6; 446056893Sfenner ipv6libdir=/usr/local/v6/lib; 446156893Sfenner CFLAGS="-DINET6 $CFLAGS" 446256893Sfennerfi 4463252283Sdelphijrm -f conftest* 446456893Sfenner 446556893Sfenner ;; 446656893Sfenner esac 446756893Sfenner if test "$ipv6type" != "unknown"; then 446856893Sfenner break 446956893Sfenner fi 447056893Sfenner done 4471252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 4472252283Sdelphij$as_echo "$ipv6type" >&6; } 447356893Sfennerfi 447456893Sfenner 447556893Sfennerif test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 447656893Sfenner if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 447756893Sfenner LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 447856893Sfenner echo "You have $ipv6lib library, using it" 447956893Sfenner else 448056893Sfenner if test "$ipv6trylibc" = "yes"; then 448156893Sfenner echo "You do not have $ipv6lib library, using libc" 448256893Sfenner else 448356893Sfenner echo 'Fatal: no $ipv6lib library found. cannot continue.' 448456893Sfenner echo "You need to fetch lib$ipv6lib.a from appropriate" 448556893Sfenner echo 'ipv6 kit and compile beforehand.' 448656893Sfenner exit 1 448756893Sfenner fi 448856893Sfenner fi 448956893Sfennerfi 449056893Sfenner 449156893Sfenner 449256893Sfennerif test "$ipv6" = "yes"; then 4493127668Sbms # 4494127668Sbms # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 4495127668Sbms # function in libc; there are "ngetaddrinfo()" and 4496127668Sbms # "ogetaddrinfo()" functions, and <netdb.h> #defines 4497127668Sbms # "getaddrinfo" to be either "ngetaddrinfo" or 4498127668Sbms # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 4499127668Sbms # or _XOPEN_SOURCE_EXTENDED are defined or not. 4500127668Sbms # 4501127668Sbms # So this test doesn't work on Tru64 5.1, and possibly 4502127668Sbms # on other 5.x releases. This causes the configure 4503127668Sbms # script to become confused, and results in libpcap 4504127668Sbms # being unbuildable. 4505127668Sbms # 4506252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 4507252283Sdelphij$as_echo_n "checking for library containing getaddrinfo... " >&6; } 4508252283Sdelphijif ${ac_cv_search_getaddrinfo+:} false; then : 4509252283Sdelphij $as_echo_n "(cached) " >&6 451056893Sfennerelse 4511127668Sbms ac_func_search_save_LIBS=$LIBS 4512252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513127668Sbms/* end confdefs.h. */ 4514127668Sbms 4515172683Smlaier/* Override any GCC internal prototype to avoid an error. 4516172683Smlaier Use char because int might match the return type of a GCC 4517172683Smlaier builtin and then its argument prototype would still apply. */ 4518127668Sbms#ifdef __cplusplus 4519127668Sbmsextern "C" 4520127668Sbms#endif 4521127668Sbmschar getaddrinfo (); 4522127668Sbmsint 4523127668Sbmsmain () 4524127668Sbms{ 4525172683Smlaierreturn getaddrinfo (); 4526127668Sbms ; 4527127668Sbms return 0; 4528127668Sbms} 4529127668Sbms_ACEOF 4530172683Smlaierfor ac_lib in '' socket; do 4531172683Smlaier if test -z "$ac_lib"; then 4532172683Smlaier ac_res="none required" 4533172683Smlaier else 4534172683Smlaier ac_res=-l$ac_lib 4535172683Smlaier LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4536172683Smlaier fi 4537252283Sdelphij if ac_fn_c_try_link "$LINENO"; then : 4538172683Smlaier ac_cv_search_getaddrinfo=$ac_res 453975115Sfennerfi 4540252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 4541252283Sdelphij conftest$ac_exeext 4542252283Sdelphij if ${ac_cv_search_getaddrinfo+:} false; then : 4543172683Smlaier break 4544172683Smlaierfi 4545172683Smlaierdone 4546252283Sdelphijif ${ac_cv_search_getaddrinfo+:} false; then : 4547252283Sdelphij 454856893Sfennerelse 4549172683Smlaier ac_cv_search_getaddrinfo=no 455056893Sfennerfi 4551172683Smlaierrm conftest.$ac_ext 4552127668SbmsLIBS=$ac_func_search_save_LIBS 4553127668Sbmsfi 4554252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 4555252283Sdelphij$as_echo "$ac_cv_search_getaddrinfo" >&6; } 4556172683Smlaierac_res=$ac_cv_search_getaddrinfo 4557252283Sdelphijif test "$ac_res" != no; then : 4558172683Smlaier test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4559252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 4560252283Sdelphij$as_echo_n "checking getaddrinfo bug... " >&6; } 4561252283Sdelphij if ${td_cv_buggygetaddrinfo+:} false; then : 4562252283Sdelphij $as_echo_n "(cached) " >&6 456356893Sfennerelse 4564252283Sdelphij if test "$cross_compiling" = yes; then : 4565127668Sbms td_cv_buggygetaddrinfo=yes 4566127668Sbmselse 4567252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4568127668Sbms/* end confdefs.h. */ 456956893Sfenner 457056893Sfenner#include <sys/types.h> 457156893Sfenner#include <netdb.h> 457256893Sfenner#include <string.h> 457356893Sfenner#include <sys/socket.h> 457456893Sfenner#include <netinet/in.h> 457556893Sfenner 457656893Sfennermain() 457756893Sfenner{ 457856893Sfenner int passive, gaierr, inet4 = 0, inet6 = 0; 457956893Sfenner struct addrinfo hints, *ai, *aitop; 458056893Sfenner char straddr[INET6_ADDRSTRLEN], strport[16]; 458156893Sfenner 458256893Sfenner for (passive = 0; passive <= 1; passive++) { 458356893Sfenner memset(&hints, 0, sizeof(hints)); 458456893Sfenner hints.ai_family = AF_UNSPEC; 458556893Sfenner hints.ai_flags = passive ? AI_PASSIVE : 0; 458656893Sfenner hints.ai_socktype = SOCK_STREAM; 4587127668Sbms hints.ai_protocol = IPPROTO_TCP; 458856893Sfenner if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 458956893Sfenner (void)gai_strerror(gaierr); 459056893Sfenner goto bad; 459156893Sfenner } 459256893Sfenner for (ai = aitop; ai; ai = ai->ai_next) { 459356893Sfenner if (ai->ai_addr == NULL || 459456893Sfenner ai->ai_addrlen == 0 || 459556893Sfenner getnameinfo(ai->ai_addr, ai->ai_addrlen, 459656893Sfenner straddr, sizeof(straddr), strport, sizeof(strport), 459756893Sfenner NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 459856893Sfenner goto bad; 459956893Sfenner } 460056893Sfenner switch (ai->ai_family) { 460156893Sfenner case AF_INET: 460256893Sfenner if (strcmp(strport, "54321") != 0) { 460356893Sfenner goto bad; 460456893Sfenner } 460556893Sfenner if (passive) { 460656893Sfenner if (strcmp(straddr, "0.0.0.0") != 0) { 460756893Sfenner goto bad; 460856893Sfenner } 460956893Sfenner } else { 461056893Sfenner if (strcmp(straddr, "127.0.0.1") != 0) { 461156893Sfenner goto bad; 461256893Sfenner } 461356893Sfenner } 461456893Sfenner inet4++; 461556893Sfenner break; 461656893Sfenner case AF_INET6: 461756893Sfenner if (strcmp(strport, "54321") != 0) { 461856893Sfenner goto bad; 461956893Sfenner } 462056893Sfenner if (passive) { 462156893Sfenner if (strcmp(straddr, "::") != 0) { 462256893Sfenner goto bad; 462356893Sfenner } 462456893Sfenner } else { 462556893Sfenner if (strcmp(straddr, "::1") != 0) { 462656893Sfenner goto bad; 462756893Sfenner } 462856893Sfenner } 462956893Sfenner inet6++; 463056893Sfenner break; 463156893Sfenner case AF_UNSPEC: 463256893Sfenner goto bad; 463356893Sfenner break; 463456893Sfenner#ifdef AF_UNIX 463556893Sfenner case AF_UNIX: 463656893Sfenner#else 463756893Sfenner#ifdef AF_LOCAL 463856893Sfenner case AF_LOCAL: 463956893Sfenner#endif 464056893Sfenner#endif 464156893Sfenner default: 464256893Sfenner /* another family support? */ 464356893Sfenner break; 464456893Sfenner } 464556893Sfenner } 464656893Sfenner } 464756893Sfenner 464856893Sfenner /* supported family should be 2, unsupported family should be 0 */ 464956893Sfenner if (!(inet4 == 0 || inet4 == 2)) 465056893Sfenner goto bad; 465156893Sfenner if (!(inet6 == 0 || inet6 == 2)) 465256893Sfenner goto bad; 465356893Sfenner 465456893Sfenner if (aitop) 465556893Sfenner freeaddrinfo(aitop); 465656893Sfenner exit(0); 465756893Sfenner 465856893Sfenner bad: 465956893Sfenner if (aitop) 466056893Sfenner freeaddrinfo(aitop); 466156893Sfenner exit(1); 466256893Sfenner} 466356893Sfenner 4664127668Sbms_ACEOF 4665252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 4666127668Sbms td_cv_buggygetaddrinfo=no 466756893Sfennerelse 4668252283Sdelphij td_cv_buggygetaddrinfo=yes 466956893Sfennerfi 4670252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4671252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 467256893Sfennerfi 4673172683Smlaier 467456893Sfennerfi 467556893Sfenner 4676127668Sbms if test "$td_cv_buggygetaddrinfo" = no; then 4677252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5 4678252283Sdelphij$as_echo "good" >&6; } 4679127668Sbms else 4680252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 4681252283Sdelphij$as_echo "buggy" >&6; } 4682127668Sbms fi 4683127668Sbms 4684127668Sbms if test "$td_cv_buggygetaddrinfo" = "yes"; then 4685127668Sbms # 4686127668Sbms # XXX - it doesn't appear that "ipv6type" can ever be 4687127668Sbms # set to "linux". Should this be testing for 4688127668Sbms # "linux-glibc", or for that *or* "linux-libinet6"? 4689127668Sbms # If the latter, note that "linux-libinet6" is also 4690127668Sbms # the type given to some non-Linux OSes. 4691127668Sbms # 469256893Sfenner if test "$ipv6type" != "linux"; then 469356893Sfenner echo 'Fatal: You must get working getaddrinfo() function.' 469456893Sfenner echo ' or you can specify "--disable-ipv6"'. 469556893Sfenner exit 1 469656893Sfenner else 469756893Sfenner echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 4698127668Sbms echo ' Better upgrade your system library to newest version' 469956893Sfenner echo ' of GNU C library (aka glibc).' 470056893Sfenner fi 470156893Sfenner fi 4702127668Sbms 4703127668Sbmsfi 4704127668Sbms 4705252283Sdelphij ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 4706252283Sdelphijif test "x$ac_cv_func_getnameinfo" = xyes; then : 4707252283Sdelphij $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h 4708127668Sbms 470956893Sfennerelse 4710172683Smlaier case " $LIBOBJS " in 4711252283Sdelphij *" getnameinfo.$ac_objext "* ) ;; 4712252283Sdelphij *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 4713172683Smlaier ;; 4714172683Smlaieresac 4715172683Smlaier 471656893Sfennerfi 471756893Sfenner 471856893Sfenner 471956893Sfennerfi 4720127668Sbms 4721252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 4722252283Sdelphij$as_echo_n "checking for dnet_htoa declaration in netdnet/dnetdb.h... " >&6; } 4723252283Sdelphijif ${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+:} false; then : 4724252283Sdelphij $as_echo_n "(cached) " >&6 472575115Sfennerelse 4726252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727127668Sbms/* end confdefs.h. */ 4728127668Sbms#include <netdnet/dnetdb.h> 4729127668Sbms 4730127668Sbms_ACEOF 4731127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4732252283Sdelphij $EGREP "dnet_htoa" >/dev/null 2>&1; then : 4733127668Sbms td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 473456893Sfennerelse 4735127668Sbms td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 4736127668Sbmsfi 4737252283Sdelphijrm -f conftest* 473856893Sfenner 4739127668Sbmsfi 4740252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 4741252283Sdelphij$as_echo "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; } 4742127668Sbmsif test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 4743252283Sdelphij $as_echo "#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1" >>confdefs.h 474456893Sfenner 4745127668Sbmsfi 474656893Sfenner 4747127668Sbms 4748252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 4749252283Sdelphij$as_echo_n "checking for addrinfo... " >&6; } 4750252283Sdelphij if ${ac_cv_addrinfo+:} false; then : 4751252283Sdelphij $as_echo_n "(cached) " >&6 475256893Sfennerelse 4753252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754127668Sbms/* end confdefs.h. */ 475556893Sfenner 475656893Sfenner# include <netdb.h> 4757127668Sbmsint 4758127668Sbmsmain () 4759127668Sbms{ 476056893Sfennerstruct addrinfo a 4761127668Sbms ; 4762127668Sbms return 0; 4763127668Sbms} 4764127668Sbms_ACEOF 4765252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 476656893Sfenner ac_cv_addrinfo=yes 476756893Sfennerelse 4768252283Sdelphij ac_cv_addrinfo=no 476956893Sfennerfi 4770172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 477156893Sfennerfi 477256893Sfenner 4773252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_addrinfo" >&5 4774252283Sdelphij$as_echo "$ac_cv_addrinfo" >&6; } 477556893Sfenner if test $ac_cv_addrinfo = yes; then 4776252283Sdelphij $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 477756893Sfenner 477856893Sfenner else 4779252283Sdelphij $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h 478056893Sfenner 478156893Sfenner fi 478256893Sfenner 478356893Sfennerif test "$ac_cv_addrinfo" = no; then 478456893Sfenner missing_includes=yes 478556893Sfennerfi 478656893Sfenner 478756893Sfenner 4788252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_MAXSERV" >&5 4789252283Sdelphij$as_echo_n "checking for NI_MAXSERV... " >&6; } 4790252283Sdelphij if ${ac_cv_maxserv+:} false; then : 4791252283Sdelphij $as_echo_n "(cached) " >&6 479256893Sfennerelse 4793252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4794127668Sbms/* end confdefs.h. */ 479556893Sfenner#include <netdb.h> 479656893Sfenner#ifdef NI_MAXSERV 479756893Sfenneryes 479856893Sfenner#endif 4799127668Sbms_ACEOF 480056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4801252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 480256893Sfenner ac_cv_maxserv=yes 480356893Sfennerelse 480456893Sfenner ac_cv_maxserv=no 480556893Sfennerfi 4806252283Sdelphijrm -f conftest* 480756893Sfenner 480856893Sfennerfi 480956893Sfenner 4810252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_maxserv" >&5 4811252283Sdelphij$as_echo "$ac_cv_maxserv" >&6; } 481256893Sfenner if test $ac_cv_maxserv != yes; then 4813252283Sdelphij $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h 481456893Sfenner 481556893Sfenner fi 481656893Sfenner 481756893Sfennerif test "$ac_cv_maxserv" = no; then 481856893Sfenner missing_includes=yes 481956893Sfennerfi 482056893Sfenner 482156893Sfenner 4822252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NI_NAMEREQD" >&5 4823252283Sdelphij$as_echo_n "checking for NI_NAMEREQD... " >&6; } 4824252283Sdelphij if ${ac_cv_namereqd+:} false; then : 4825252283Sdelphij $as_echo_n "(cached) " >&6 482656893Sfennerelse 4827252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4828127668Sbms/* end confdefs.h. */ 482956893Sfenner#include <netdb.h> 483056893Sfenner#ifdef NI_NOFQDN 483156893Sfenneryes 483256893Sfenner#endif 4833127668Sbms_ACEOF 483456893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4835252283Sdelphij $EGREP "yes" >/dev/null 2>&1; then : 483656893Sfenner ac_cv_namereqd=yes 483756893Sfennerelse 483856893Sfenner ac_cv_namereqd=no 483956893Sfennerfi 4840252283Sdelphijrm -f conftest* 484156893Sfenner 484256893Sfennerfi 484356893Sfenner 4844252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namereqd" >&5 4845252283Sdelphij$as_echo "$ac_cv_namereqd" >&6; } 484656893Sfenner if test $ac_cv_namereqd != yes; then 4847252283Sdelphij $as_echo "#define NEED_ADDRINFO_H 1" >>confdefs.h 484856893Sfenner 484956893Sfenner fi 485056893Sfenner 485156893Sfennerif test "$ac_cv_namereqd" = no; then 485256893Sfenner missing_includes=yes 485356893Sfennerfi 485456893Sfenner 485556893Sfenner 4856252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 4857252283Sdelphij$as_echo_n "checking for sockaddr_storage... " >&6; } 4858252283Sdelphij if ${ac_cv_sa_storage+:} false; then : 4859252283Sdelphij $as_echo_n "(cached) " >&6 486056893Sfennerelse 4861252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862127668Sbms/* end confdefs.h. */ 486356893Sfenner 486456893Sfenner# include <sys/types.h> 486556893Sfenner# include <sys/socket.h> 4866127668Sbmsint 4867127668Sbmsmain () 4868127668Sbms{ 486956893Sfennerstruct sockaddr_storage s 4870127668Sbms ; 4871127668Sbms return 0; 4872127668Sbms} 4873127668Sbms_ACEOF 4874252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 487556893Sfenner ac_cv_sa_storage=yes 487656893Sfennerelse 4877252283Sdelphij ac_cv_sa_storage=no 487856893Sfennerfi 4879172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 488056893Sfennerfi 488156893Sfenner 4882252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sa_storage" >&5 4883252283Sdelphij$as_echo "$ac_cv_sa_storage" >&6; } 488456893Sfenner if test $ac_cv_sa_storage = yes; then 4885252283Sdelphij $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 488656893Sfenner 488756893Sfenner fi 488856893Sfenner 488956893Sfennerif test "$ac_cv_sa_storage" = no; then 489056893Sfenner missing_includes=yes 489156893Sfennerfi 489256893Sfenner 4893252283Sdelphijac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf" 4894252283Sdelphijif test "x$ac_cv_func_vfprintf" = xyes; then : 4895252283Sdelphij $as_echo "#define HAVE_VFPRINTF 1" >>confdefs.h 489656893Sfenner 4897252283Sdelphijelse 4898252283Sdelphij case " $LIBOBJS " in 4899252283Sdelphij *" vfprintf.$ac_objext "* ) ;; 4900252283Sdelphij *) LIBOBJS="$LIBOBJS vfprintf.$ac_objext" 4901252283Sdelphij ;; 4902252283Sdelphijesac 490356893Sfenner 4904252283Sdelphijfi 4905127668Sbms 4906252283Sdelphijac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 4907252283Sdelphijif test "x$ac_cv_func_strcasecmp" = xyes; then : 4908252283Sdelphij $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 4909172683Smlaier 491017680Spstelse 4911252283Sdelphij case " $LIBOBJS " in 4912252283Sdelphij *" strcasecmp.$ac_objext "* ) ;; 4913252283Sdelphij *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 4914252283Sdelphij ;; 4915252283Sdelphijesac 4916172683Smlaier 4917252283Sdelphijfi 4918172683Smlaier 4919252283Sdelphijac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 4920252283Sdelphijif test "x$ac_cv_func_strlcat" = xyes; then : 4921252283Sdelphij $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 4922172683Smlaier 4923252283Sdelphijelse 4924252283Sdelphij case " $LIBOBJS " in 4925252283Sdelphij *" strlcat.$ac_objext "* ) ;; 4926252283Sdelphij *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 4927252283Sdelphij ;; 4928172683Smlaieresac 492917680Spst 4930127668Sbmsfi 4931172683Smlaier 4932252283Sdelphijac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 4933252283Sdelphijif test "x$ac_cv_func_strlcpy" = xyes; then : 4934252283Sdelphij $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 4935127668Sbms 4936127668Sbmselse 4937172683Smlaier case " $LIBOBJS " in 4938252283Sdelphij *" strlcpy.$ac_objext "* ) ;; 4939252283Sdelphij *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 4940172683Smlaier ;; 4941172683Smlaieresac 4942172683Smlaier 4943127668Sbmsfi 4944127668Sbms 4945252283Sdelphijac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 4946252283Sdelphijif test "x$ac_cv_func_strdup" = xyes; then : 4947252283Sdelphij $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 4948127668Sbms 4949252283Sdelphijelse 4950252283Sdelphij case " $LIBOBJS " in 4951252283Sdelphij *" strdup.$ac_objext "* ) ;; 4952252283Sdelphij *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 4953252283Sdelphij ;; 4954252283Sdelphijesac 4955127668Sbms 4956252283Sdelphijfi 4957236192Sdelphij 4958252283Sdelphijac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 4959252283Sdelphijif test "x$ac_cv_func_strsep" = xyes; then : 4960252283Sdelphij $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 4961236192Sdelphij 4962127668Sbmselse 4963252283Sdelphij case " $LIBOBJS " in 4964252283Sdelphij *" strsep.$ac_objext "* ) ;; 4965252283Sdelphij *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 4966252283Sdelphij ;; 4967172683Smlaieresac 4968127668Sbms 496917680Spstfi 4970172683Smlaier 4971252283Sdelphij 4972252283Sdelphijfor ac_func in fork vfork strftime 4973252283Sdelphijdo : 4974252283Sdelphij as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4975252283Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4976252283Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4977127668Sbms cat >>confdefs.h <<_ACEOF 4978252283Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4979127668Sbms_ACEOF 498017680Spst 498117680Spstfi 498217680Spstdone 498317680Spst 4984146773Ssamfor ac_func in setlinebuf alarm 4985252283Sdelphijdo : 4986252283Sdelphij as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4987252283Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4988252283Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4989127668Sbms cat >>confdefs.h <<_ACEOF 4990252283Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4991127668Sbms_ACEOF 499275115Sfenner 499375115Sfennerfi 499475115Sfennerdone 499575115Sfenner 499675115Sfenner 499775115Sfennerneedsnprintf=no 499875115Sfennerfor ac_func in vsnprintf snprintf 4999252283Sdelphijdo : 5000252283Sdelphij as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5001252283Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5002252283Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5003127668Sbms cat >>confdefs.h <<_ACEOF 5004252283Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5005127668Sbms_ACEOF 500675115Sfenner 500775115Sfennerelse 5008127668Sbms needsnprintf=yes 500975115Sfennerfi 501075115Sfennerdone 501175115Sfenner 501275115Sfennerif test $needsnprintf = yes; then 5013172683Smlaier case " $LIBOBJS " in 5014172683Smlaier *" snprintf.$ac_objext "* ) ;; 5015172683Smlaier *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 5016172683Smlaier ;; 5017172683Smlaieresac 5018172683Smlaier 501975115Sfennerfi 502075115Sfenner 502126180Sfenner 5022252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5023252283Sdelphij$as_echo_n "checking return type of signal handlers... " >&6; } 5024252283Sdelphijif ${ac_cv_type_signal+:} false; then : 5025252283Sdelphij $as_echo_n "(cached) " >&6 502617680Spstelse 5027252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5028127668Sbms/* end confdefs.h. */ 502939297Sfenner#include <sys/types.h> 503039297Sfenner#include <signal.h> 503139297Sfenner 5032127668Sbmsint 5033127668Sbmsmain () 5034127668Sbms{ 5035172683Smlaierreturn *(signal (0, 0)) (0) == 1; 5036127668Sbms ; 5037127668Sbms return 0; 5038127668Sbms} 5039127668Sbms_ACEOF 5040252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 5041172683Smlaier ac_cv_type_signal=int 504239297Sfennerelse 5043252283Sdelphij ac_cv_type_signal=void 504439297Sfennerfi 5045172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 504639297Sfennerfi 5047252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5048252283Sdelphij$as_echo "$ac_cv_type_signal" >&6; } 504939297Sfenner 5050127668Sbmscat >>confdefs.h <<_ACEOF 505139297Sfenner#define RETSIGTYPE $ac_cv_type_signal 5052127668Sbms_ACEOF 505339297Sfenner 505439297Sfenner 505539297Sfenner if test "$ac_cv_type_signal" = void ; then 5056214478Srpaulo 5057252283Sdelphij$as_echo "#define RETSIGVAL /**/" >>confdefs.h 505839297Sfenner 505939297Sfenner else 5060214478Srpaulo 5061252283Sdelphij$as_echo "#define RETSIGVAL (0)" >>confdefs.h 506239297Sfenner 506339297Sfenner fi 506498524Sfenner case "$host_os" in 506539297Sfenner 506639297Sfenner irix*) 5067214478Srpaulo 5068252283Sdelphij$as_echo "#define _BSD_SIGNALS 1" >>confdefs.h 506939297Sfenner 507039297Sfenner ;; 507139297Sfenner 507239297Sfenner *) 5073252283Sdelphij for ac_func in sigaction 5074252283Sdelphijdo : 5075252283Sdelphij ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 5076252283Sdelphijif test "x$ac_cv_func_sigaction" = xyes; then : 5077127668Sbms cat >>confdefs.h <<_ACEOF 5078252283Sdelphij#define HAVE_SIGACTION 1 5079127668Sbms_ACEOF 508039297Sfenner 508139297Sfennerfi 508239297Sfennerdone 508339297Sfenner 5084127668Sbms if test $ac_cv_func_sigaction = no ; then 5085252283Sdelphij for ac_func in sigset 5086252283Sdelphijdo : 5087252283Sdelphij ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" 5088252283Sdelphijif test "x$ac_cv_func_sigset" = xyes; then : 5089127668Sbms cat >>confdefs.h <<_ACEOF 5090252283Sdelphij#define HAVE_SIGSET 1 5091127668Sbms_ACEOF 509239297Sfenner 509339297Sfennerfi 509439297Sfennerdone 509539297Sfenner 509639297Sfenner fi 509739297Sfenner ;; 509839297Sfenner esac 509939297Sfenner 5100252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dnet_htoa" >&5 5101252283Sdelphij$as_echo_n "checking for library containing dnet_htoa... " >&6; } 5102252283Sdelphijif ${ac_cv_search_dnet_htoa+:} false; then : 5103252283Sdelphij $as_echo_n "(cached) " >&6 510439297Sfennerelse 5105127668Sbms ac_func_search_save_LIBS=$LIBS 5106252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107127668Sbms/* end confdefs.h. */ 5108127668Sbms 5109172683Smlaier/* Override any GCC internal prototype to avoid an error. 5110172683Smlaier Use char because int might match the return type of a GCC 5111172683Smlaier builtin and then its argument prototype would still apply. */ 5112127668Sbms#ifdef __cplusplus 5113127668Sbmsextern "C" 5114127668Sbms#endif 5115127668Sbmschar dnet_htoa (); 5116127668Sbmsint 5117127668Sbmsmain () 5118127668Sbms{ 5119172683Smlaierreturn dnet_htoa (); 5120127668Sbms ; 5121127668Sbms return 0; 5122127668Sbms} 5123127668Sbms_ACEOF 5124172683Smlaierfor ac_lib in '' dnet; do 5125172683Smlaier if test -z "$ac_lib"; then 5126172683Smlaier ac_res="none required" 5127172683Smlaier else 5128172683Smlaier ac_res=-l$ac_lib 5129172683Smlaier LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5130172683Smlaier fi 5131252283Sdelphij if ac_fn_c_try_link "$LINENO"; then : 5132172683Smlaier ac_cv_search_dnet_htoa=$ac_res 5133127668Sbmsfi 5134252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5135252283Sdelphij conftest$ac_exeext 5136252283Sdelphij if ${ac_cv_search_dnet_htoa+:} false; then : 5137172683Smlaier break 5138172683Smlaierfi 5139172683Smlaierdone 5140252283Sdelphijif ${ac_cv_search_dnet_htoa+:} false; then : 5141252283Sdelphij 514239297Sfennerelse 5143172683Smlaier ac_cv_search_dnet_htoa=no 514439297Sfennerfi 5145172683Smlaierrm conftest.$ac_ext 5146127668SbmsLIBS=$ac_func_search_save_LIBS 5147127668Sbmsfi 5148252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dnet_htoa" >&5 5149252283Sdelphij$as_echo "$ac_cv_search_dnet_htoa" >&6; } 5150172683Smlaierac_res=$ac_cv_search_dnet_htoa 5151252283Sdelphijif test "$ac_res" != no; then : 5152172683Smlaier test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5153252283Sdelphij $as_echo "#define HAVE_DNET_HTOA 1" >>confdefs.h 515498524Sfenner 515539297Sfennerfi 515639297Sfenner 515798524Sfenner 5158252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5 5159252283Sdelphij$as_echo_n "checking for main in -lrpc... " >&6; } 5160252283Sdelphijif ${ac_cv_lib_rpc_main+:} false; then : 5161252283Sdelphij $as_echo_n "(cached) " >&6 516239297Sfennerelse 5163127668Sbms ac_check_lib_save_LIBS=$LIBS 516498524SfennerLIBS="-lrpc $LIBS" 5165252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166127668Sbms/* end confdefs.h. */ 516717680Spst 5168127668Sbms 5169127668Sbmsint 5170127668Sbmsmain () 5171127668Sbms{ 5172172683Smlaierreturn main (); 5173127668Sbms ; 5174127668Sbms return 0; 5175127668Sbms} 5176127668Sbms_ACEOF 5177252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5178127668Sbms ac_cv_lib_rpc_main=yes 517917680Spstelse 5180252283Sdelphij ac_cv_lib_rpc_main=no 518117680Spstfi 5182252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5183252283Sdelphij conftest$ac_exeext conftest.$ac_ext 5184127668SbmsLIBS=$ac_check_lib_save_LIBS 5185127668Sbmsfi 5186252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5 5187252283Sdelphij$as_echo "$ac_cv_lib_rpc_main" >&6; } 5188252283Sdelphijif test "x$ac_cv_lib_rpc_main" = xyes; then : 5189127668Sbms cat >>confdefs.h <<_ACEOF 5190127668Sbms#define HAVE_LIBRPC 1 5191127668Sbms_ACEOF 519217680Spst 519398524Sfenner LIBS="-lrpc $LIBS" 519417680Spst 519598524Sfennerfi 519698524Sfenner 5197252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5 5198252283Sdelphij$as_echo_n "checking for library containing getrpcbynumber... " >&6; } 5199252283Sdelphijif ${ac_cv_search_getrpcbynumber+:} false; then : 5200252283Sdelphij $as_echo_n "(cached) " >&6 520139297Sfennerelse 5202127668Sbms ac_func_search_save_LIBS=$LIBS 5203252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204127668Sbms/* end confdefs.h. */ 5205127668Sbms 5206172683Smlaier/* Override any GCC internal prototype to avoid an error. 5207172683Smlaier Use char because int might match the return type of a GCC 5208172683Smlaier builtin and then its argument prototype would still apply. */ 5209127668Sbms#ifdef __cplusplus 5210127668Sbmsextern "C" 5211127668Sbms#endif 5212127668Sbmschar getrpcbynumber (); 5213127668Sbmsint 5214127668Sbmsmain () 5215127668Sbms{ 5216172683Smlaierreturn getrpcbynumber (); 5217127668Sbms ; 5218127668Sbms return 0; 5219127668Sbms} 5220127668Sbms_ACEOF 5221172683Smlaierfor ac_lib in '' nsl; do 5222172683Smlaier if test -z "$ac_lib"; then 5223172683Smlaier ac_res="none required" 5224172683Smlaier else 5225172683Smlaier ac_res=-l$ac_lib 5226172683Smlaier LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5227172683Smlaier fi 5228252283Sdelphij if ac_fn_c_try_link "$LINENO"; then : 5229172683Smlaier ac_cv_search_getrpcbynumber=$ac_res 523098524Sfennerfi 5231252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5232252283Sdelphij conftest$ac_exeext 5233252283Sdelphij if ${ac_cv_search_getrpcbynumber+:} false; then : 5234172683Smlaier break 5235172683Smlaierfi 5236172683Smlaierdone 5237252283Sdelphijif ${ac_cv_search_getrpcbynumber+:} false; then : 5238252283Sdelphij 523998524Sfennerelse 5240172683Smlaier ac_cv_search_getrpcbynumber=no 524117680Spstfi 5242172683Smlaierrm conftest.$ac_ext 5243127668SbmsLIBS=$ac_func_search_save_LIBS 5244127668Sbmsfi 5245252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5 5246252283Sdelphij$as_echo "$ac_cv_search_getrpcbynumber" >&6; } 5247172683Smlaierac_res=$ac_cv_search_getrpcbynumber 5248252283Sdelphijif test "$ac_res" != no; then : 5249172683Smlaier test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5250252283Sdelphij $as_echo "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h 525117680Spst 525239297Sfennerfi 525339297Sfenner 525439297Sfenner 525598524Sfenner 5256127668Sbms 525798524Sfenner # Most operating systems have gethostbyname() in the default searched 525898524Sfenner # libraries (i.e. libc): 525998524Sfenner # Some OSes (eg. Solaris) place it in libnsl 526098524Sfenner # Some strange OSes (SINIX) have it in libsocket: 5261252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 5262252283Sdelphij$as_echo_n "checking for library containing gethostbyname... " >&6; } 5263252283Sdelphijif ${ac_cv_search_gethostbyname+:} false; then : 5264252283Sdelphij $as_echo_n "(cached) " >&6 526539297Sfennerelse 5266127668Sbms ac_func_search_save_LIBS=$LIBS 5267252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268127668Sbms/* end confdefs.h. */ 5269127668Sbms 5270172683Smlaier/* Override any GCC internal prototype to avoid an error. 5271172683Smlaier Use char because int might match the return type of a GCC 5272172683Smlaier builtin and then its argument prototype would still apply. */ 5273127668Sbms#ifdef __cplusplus 5274127668Sbmsextern "C" 5275127668Sbms#endif 5276127668Sbmschar gethostbyname (); 5277127668Sbmsint 5278127668Sbmsmain () 5279127668Sbms{ 5280172683Smlaierreturn gethostbyname (); 5281127668Sbms ; 5282127668Sbms return 0; 5283127668Sbms} 5284127668Sbms_ACEOF 5285172683Smlaierfor ac_lib in '' nsl socket resolv; do 5286172683Smlaier if test -z "$ac_lib"; then 5287172683Smlaier ac_res="none required" 5288172683Smlaier else 5289172683Smlaier ac_res=-l$ac_lib 5290172683Smlaier LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5291172683Smlaier fi 5292252283Sdelphij if ac_fn_c_try_link "$LINENO"; then : 5293172683Smlaier ac_cv_search_gethostbyname=$ac_res 529498524Sfennerfi 5295252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5296252283Sdelphij conftest$ac_exeext 5297252283Sdelphij if ${ac_cv_search_gethostbyname+:} false; then : 5298172683Smlaier break 5299172683Smlaierfi 5300172683Smlaierdone 5301252283Sdelphijif ${ac_cv_search_gethostbyname+:} false; then : 5302252283Sdelphij 530398524Sfennerelse 5304172683Smlaier ac_cv_search_gethostbyname=no 530539297Sfennerfi 5306172683Smlaierrm conftest.$ac_ext 5307127668SbmsLIBS=$ac_func_search_save_LIBS 5308127668Sbmsfi 5309252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 5310252283Sdelphij$as_echo "$ac_cv_search_gethostbyname" >&6; } 5311172683Smlaierac_res=$ac_cv_search_gethostbyname 5312252283Sdelphijif test "$ac_res" != no; then : 5313172683Smlaier test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 531439297Sfenner 531539297Sfennerfi 5316127668Sbms 531798524Sfenner # Unfortunately libsocket sometimes depends on libnsl and 531898524Sfenner # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 531998524Sfenner if test "$ac_cv_search_gethostbyname" = "no" 532098524Sfenner then 5321252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 5322252283Sdelphij$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 5323252283Sdelphijif ${ac_cv_lib_socket_gethostbyname+:} false; then : 5324252283Sdelphij $as_echo_n "(cached) " >&6 532517680Spstelse 5326127668Sbms ac_check_lib_save_LIBS=$LIBS 532798524SfennerLIBS="-lsocket -lnsl $LIBS" 5328252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329127668Sbms/* end confdefs.h. */ 5330127668Sbms 5331172683Smlaier/* Override any GCC internal prototype to avoid an error. 5332172683Smlaier Use char because int might match the return type of a GCC 5333172683Smlaier builtin and then its argument prototype would still apply. */ 5334127668Sbms#ifdef __cplusplus 5335127668Sbmsextern "C" 5336127668Sbms#endif 5337127668Sbmschar gethostbyname (); 5338127668Sbmsint 5339127668Sbmsmain () 5340127668Sbms{ 5341172683Smlaierreturn gethostbyname (); 5342127668Sbms ; 5343127668Sbms return 0; 5344127668Sbms} 5345127668Sbms_ACEOF 5346252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5347127668Sbms ac_cv_lib_socket_gethostbyname=yes 534817680Spstelse 5349252283Sdelphij ac_cv_lib_socket_gethostbyname=no 535017680Spstfi 5351252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5352252283Sdelphij conftest$ac_exeext conftest.$ac_ext 5353127668SbmsLIBS=$ac_check_lib_save_LIBS 5354127668Sbmsfi 5355252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 5356252283Sdelphij$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 5357252283Sdelphijif test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : 535898524Sfenner LIBS="-lsocket -lnsl $LIBS" 535917680Spstfi 536017680Spst 536198524Sfenner fi 5362252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5363252283Sdelphij$as_echo_n "checking for library containing socket... " >&6; } 5364252283Sdelphijif ${ac_cv_search_socket+:} false; then : 5365252283Sdelphij $as_echo_n "(cached) " >&6 536639297Sfennerelse 5367127668Sbms ac_func_search_save_LIBS=$LIBS 5368252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5369127668Sbms/* end confdefs.h. */ 5370127668Sbms 5371172683Smlaier/* Override any GCC internal prototype to avoid an error. 5372172683Smlaier Use char because int might match the return type of a GCC 5373172683Smlaier builtin and then its argument prototype would still apply. */ 5374127668Sbms#ifdef __cplusplus 5375127668Sbmsextern "C" 5376127668Sbms#endif 5377127668Sbmschar socket (); 5378127668Sbmsint 5379127668Sbmsmain () 5380127668Sbms{ 5381172683Smlaierreturn socket (); 5382127668Sbms ; 5383127668Sbms return 0; 5384127668Sbms} 5385127668Sbms_ACEOF 5386172683Smlaierfor ac_lib in '' socket; do 5387172683Smlaier if test -z "$ac_lib"; then 5388172683Smlaier ac_res="none required" 5389172683Smlaier else 5390172683Smlaier ac_res=-l$ac_lib 5391172683Smlaier LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5392172683Smlaier fi 5393252283Sdelphij if ac_fn_c_try_link "$LINENO"; then : 5394172683Smlaier ac_cv_search_socket=$ac_res 539539297Sfennerfi 5396252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5397252283Sdelphij conftest$ac_exeext 5398252283Sdelphij if ${ac_cv_search_socket+:} false; then : 5399172683Smlaier break 5400172683Smlaierfi 5401172683Smlaierdone 5402252283Sdelphijif ${ac_cv_search_socket+:} false; then : 5403252283Sdelphij 540417680Spstelse 5405172683Smlaier ac_cv_search_socket=no 540617680Spstfi 5407172683Smlaierrm conftest.$ac_ext 5408127668SbmsLIBS=$ac_func_search_save_LIBS 5409127668Sbmsfi 5410252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5411252283Sdelphij$as_echo "$ac_cv_search_socket" >&6; } 5412172683Smlaierac_res=$ac_cv_search_socket 5413252283Sdelphijif test "$ac_res" != no; then : 5414172683Smlaier test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 541517680Spst 541639297Sfennerelse 5417252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5418252283Sdelphij$as_echo_n "checking for socket in -lsocket... " >&6; } 5419252283Sdelphijif ${ac_cv_lib_socket_socket+:} false; then : 5420252283Sdelphij $as_echo_n "(cached) " >&6 5421127668Sbmselse 5422127668Sbms ac_check_lib_save_LIBS=$LIBS 542339297SfennerLIBS="-lsocket -lnsl $LIBS" 5424252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425127668Sbms/* end confdefs.h. */ 5426127668Sbms 5427172683Smlaier/* Override any GCC internal prototype to avoid an error. 5428172683Smlaier Use char because int might match the return type of a GCC 5429172683Smlaier builtin and then its argument prototype would still apply. */ 5430127668Sbms#ifdef __cplusplus 5431127668Sbmsextern "C" 5432127668Sbms#endif 5433127668Sbmschar socket (); 5434127668Sbmsint 5435127668Sbmsmain () 5436127668Sbms{ 5437172683Smlaierreturn socket (); 5438127668Sbms ; 5439127668Sbms return 0; 5440127668Sbms} 5441127668Sbms_ACEOF 5442252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5443127668Sbms ac_cv_lib_socket_socket=yes 544439297Sfennerelse 5445252283Sdelphij ac_cv_lib_socket_socket=no 544639297Sfennerfi 5447252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5448252283Sdelphij conftest$ac_exeext conftest.$ac_ext 5449127668SbmsLIBS=$ac_check_lib_save_LIBS 5450127668Sbmsfi 5451252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5452252283Sdelphij$as_echo "$ac_cv_lib_socket_socket" >&6; } 5453252283Sdelphijif test "x$ac_cv_lib_socket_socket" = xyes; then : 545439297Sfenner LIBS="-lsocket -lnsl $LIBS" 545539297Sfennerfi 545617680Spst 545739297Sfennerfi 5458127668Sbms 545939297Sfenner # DLPI needs putmsg under HPUX so test for -lstr while we're at it 5460252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5 5461252283Sdelphij$as_echo_n "checking for library containing putmsg... " >&6; } 5462252283Sdelphijif ${ac_cv_search_putmsg+:} false; then : 5463252283Sdelphij $as_echo_n "(cached) " >&6 546439297Sfennerelse 5465127668Sbms ac_func_search_save_LIBS=$LIBS 5466252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467127668Sbms/* end confdefs.h. */ 5468127668Sbms 5469172683Smlaier/* Override any GCC internal prototype to avoid an error. 5470172683Smlaier Use char because int might match the return type of a GCC 5471172683Smlaier builtin and then its argument prototype would still apply. */ 5472127668Sbms#ifdef __cplusplus 5473127668Sbmsextern "C" 5474127668Sbms#endif 5475127668Sbmschar putmsg (); 5476127668Sbmsint 5477127668Sbmsmain () 5478127668Sbms{ 5479172683Smlaierreturn putmsg (); 5480127668Sbms ; 5481127668Sbms return 0; 5482127668Sbms} 5483127668Sbms_ACEOF 5484172683Smlaierfor ac_lib in '' str; do 5485172683Smlaier if test -z "$ac_lib"; then 5486172683Smlaier ac_res="none required" 5487172683Smlaier else 5488172683Smlaier ac_res=-l$ac_lib 5489172683Smlaier LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5490172683Smlaier fi 5491252283Sdelphij if ac_fn_c_try_link "$LINENO"; then : 5492172683Smlaier ac_cv_search_putmsg=$ac_res 549339297Sfennerfi 5494252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5495252283Sdelphij conftest$ac_exeext 5496252283Sdelphij if ${ac_cv_search_putmsg+:} false; then : 5497172683Smlaier break 5498172683Smlaierfi 5499172683Smlaierdone 5500252283Sdelphijif ${ac_cv_search_putmsg+:} false; then : 5501252283Sdelphij 550239297Sfennerelse 5503172683Smlaier ac_cv_search_putmsg=no 550439297Sfennerfi 5505172683Smlaierrm conftest.$ac_ext 5506127668SbmsLIBS=$ac_func_search_save_LIBS 5507127668Sbmsfi 5508252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5 5509252283Sdelphij$as_echo "$ac_cv_search_putmsg" >&6; } 5510172683Smlaierac_res=$ac_cv_search_putmsg 5511252283Sdelphijif test "$ac_res" != no; then : 5512172683Smlaier test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 551339297Sfenner 551498524Sfennerfi 551539297Sfenner 5516127668Sbms 5517127668Sbms 551839297Sfenner LBL_LIBS="$LIBS" 551939297Sfenner pfopen=/usr/examples/packetfilter/pfopen.c 552017680Spst if test -f $pfopen ; then 5521252283Sdelphij for ac_func in pfopen 5522252283Sdelphijdo : 5523252283Sdelphij ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen" 5524252283Sdelphijif test "x$ac_cv_func_pfopen" = xyes; then : 5525127668Sbms cat >>confdefs.h <<_ACEOF 5526252283Sdelphij#define HAVE_PFOPEN 1 5527127668Sbms_ACEOF 552817680Spst 552917680Spstfi 553017680Spstdone 553117680Spst 553217680Spst if test $ac_cv_func_pfopen = "no" ; then 5533252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5 5534252283Sdelphij$as_echo "Using $pfopen" >&6; } 553517680Spst LIBS="$LIBS $pfopen" 553617680Spst fi 553717680Spst fi 5538252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5 5539252283Sdelphij$as_echo_n "checking for local pcap library... " >&6; } 554017680Spst libpcap=FAIL 554126180Sfenner lastdir=FAIL 5542127668Sbms places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 5543214478Srpaulo egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'` 5544127668Sbms for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 5545214478Srpaulo basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ 5546214478Srpaulo sed -e 's/-PRE-GIT$//' ` 554726180Sfenner if test $lastdir = $basedir ; then 554826180Sfenner continue; 554926180Sfenner fi 555026180Sfenner lastdir=$dir 555156893Sfenner if test -r $dir/libpcap.a ; then 555217680Spst libpcap=$dir/libpcap.a 555317680Spst d=$dir 555417680Spst fi 555517680Spst done 555617680Spst if test $libpcap = FAIL ; then 5557252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5558252283Sdelphij$as_echo "not found" >&6; } 5559214478Srpaulo 5560214478Srpaulo # 5561214478Srpaulo # Look for pcap-config. 5562214478Srpaulo # 5563236192Sdelphij if test -n "$ac_tool_prefix"; then 5564236192Sdelphij # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args. 5565236192Sdelphijset dummy ${ac_tool_prefix}pcap-config; ac_word=$2 5566252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5567252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 5568252283Sdelphijif ${ac_cv_path_PCAP_CONFIG+:} false; then : 5569252283Sdelphij $as_echo_n "(cached) " >&6 5570214478Srpauloelse 5571214478Srpaulo case $PCAP_CONFIG in 5572214478Srpaulo [\\/]* | ?:[\\/]*) 5573214478Srpaulo ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 5574214478Srpaulo ;; 5575214478Srpaulo *) 5576214478Srpaulo as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5577214478Srpaulofor as_dir in $PATH 5578214478Srpaulodo 5579214478Srpaulo IFS=$as_save_IFS 5580214478Srpaulo test -z "$as_dir" && as_dir=. 5581252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 5582214478Srpaulo if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5583214478Srpaulo ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5584252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5585214478Srpaulo break 2 5586214478Srpaulo fi 5587214478Srpaulodone 5588252283Sdelphij done 5589214478SrpauloIFS=$as_save_IFS 5590214478Srpaulo 5591214478Srpaulo ;; 5592214478Srpauloesac 5593214478Srpaulofi 5594214478SrpauloPCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 5595214478Srpauloif test -n "$PCAP_CONFIG"; then 5596252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 5597252283Sdelphij$as_echo "$PCAP_CONFIG" >&6; } 5598214478Srpauloelse 5599252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5600252283Sdelphij$as_echo "no" >&6; } 5601214478Srpaulofi 5602214478Srpaulo 5603214478Srpaulo 5604236192Sdelphijfi 5605236192Sdelphijif test -z "$ac_cv_path_PCAP_CONFIG"; then 5606236192Sdelphij ac_pt_PCAP_CONFIG=$PCAP_CONFIG 5607236192Sdelphij # Extract the first word of "pcap-config", so it can be a program name with args. 5608236192Sdelphijset dummy pcap-config; ac_word=$2 5609252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5610252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 5611252283Sdelphijif ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then : 5612252283Sdelphij $as_echo_n "(cached) " >&6 5613236192Sdelphijelse 5614236192Sdelphij case $ac_pt_PCAP_CONFIG in 5615236192Sdelphij [\\/]* | ?:[\\/]*) 5616236192Sdelphij ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path. 5617236192Sdelphij ;; 5618236192Sdelphij *) 5619236192Sdelphij as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5620236192Sdelphijfor as_dir in $PATH 5621236192Sdelphijdo 5622236192Sdelphij IFS=$as_save_IFS 5623236192Sdelphij test -z "$as_dir" && as_dir=. 5624252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 5625236192Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5626236192Sdelphij ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5627252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5628236192Sdelphij break 2 5629236192Sdelphij fi 5630236192Sdelphijdone 5631252283Sdelphij done 5632236192SdelphijIFS=$as_save_IFS 5633236192Sdelphij 5634236192Sdelphij ;; 5635236192Sdelphijesac 5636236192Sdelphijfi 5637236192Sdelphijac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG 5638236192Sdelphijif test -n "$ac_pt_PCAP_CONFIG"; then 5639252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5 5640252283Sdelphij$as_echo "$ac_pt_PCAP_CONFIG" >&6; } 5641236192Sdelphijelse 5642252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5643252283Sdelphij$as_echo "no" >&6; } 5644236192Sdelphijfi 5645236192Sdelphij 5646236192Sdelphij if test "x$ac_pt_PCAP_CONFIG" = x; then 5647236192Sdelphij PCAP_CONFIG="" 5648236192Sdelphij else 5649236192Sdelphij case $cross_compiling:$ac_tool_warned in 5650236192Sdelphijyes:) 5651252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5652252283Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5653236192Sdelphijac_tool_warned=yes ;; 5654236192Sdelphijesac 5655236192Sdelphij PCAP_CONFIG=$ac_pt_PCAP_CONFIG 5656236192Sdelphij fi 5657236192Sdelphijelse 5658236192Sdelphij PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG" 5659236192Sdelphijfi 5660236192Sdelphij 5661214478Srpaulo if test -n "$PCAP_CONFIG" ; then 5662214478Srpaulo # 5663214478Srpaulo # Found - use it to get the include flags for 5664214478Srpaulo # libpcap and the flags to link with libpcap. 5665214478Srpaulo # 5666236192Sdelphij # Please read section 11.6 "Shell Substitutions" 5667236192Sdelphij # in the autoconf manual before doing anything 5668236192Sdelphij # to this that involves quoting. Especially note 5669236192Sdelphij # the statement "There is just no portable way to use 5670236192Sdelphij # double-quoted strings inside double-quoted back-quoted 5671236192Sdelphij # expressions (pfew!)." 5672236192Sdelphij # 5673236192Sdelphij cflags=`"$PCAP_CONFIG" --cflags` 5674236192Sdelphij V_INCLS="$cflags $V_INCLS" 5675236192Sdelphij libpcap=`"$PCAP_CONFIG" --libs` 5676214478Srpaulo else 5677214478Srpaulo # 5678214478Srpaulo # Not found; look for pcap. 5679214478Srpaulo # 5680252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5 5681252283Sdelphij$as_echo_n "checking for main in -lpcap... " >&6; } 5682252283Sdelphijif ${ac_cv_lib_pcap_main+:} false; then : 5683252283Sdelphij $as_echo_n "(cached) " >&6 568417680Spstelse 5685127668Sbms ac_check_lib_save_LIBS=$LIBS 568617680SpstLIBS="-lpcap $LIBS" 5687252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688127668Sbms/* end confdefs.h. */ 568917680Spst 5690127668Sbms 5691127668Sbmsint 5692127668Sbmsmain () 5693127668Sbms{ 5694172683Smlaierreturn main (); 5695127668Sbms ; 5696127668Sbms return 0; 5697127668Sbms} 5698127668Sbms_ACEOF 5699252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5700127668Sbms ac_cv_lib_pcap_main=yes 570117680Spstelse 5702252283Sdelphij ac_cv_lib_pcap_main=no 570317680Spstfi 5704252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5705252283Sdelphij conftest$ac_exeext conftest.$ac_ext 5706127668SbmsLIBS=$ac_check_lib_save_LIBS 5707127668Sbmsfi 5708252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5 5709252283Sdelphij$as_echo "$ac_cv_lib_pcap_main" >&6; } 5710252283Sdelphijif test "x$ac_cv_lib_pcap_main" = xyes; then : 571117680Spst libpcap="-lpcap" 571217680Spstfi 571317680Spst 5714214478Srpaulo if test $libpcap = FAIL ; then 5715252283Sdelphij as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 5716214478Srpaulo fi 5717252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5 5718252283Sdelphij$as_echo_n "checking for extraneous pcap header directories... " >&6; } 5719214478Srpaulo if test \( ! -r /usr/local/include/pcap.h \) -a \ 5720127668Sbms \( ! -r /usr/include/pcap.h \); then 5721214478Srpaulo if test -r /usr/local/include/pcap/pcap.h; then 5722214478Srpaulo d="/usr/local/include/pcap" 5723214478Srpaulo elif test -r /usr/include/pcap/pcap.h; then 5724214478Srpaulo d="/usr/include/pcap" 5725214478Srpaulo fi 5726127668Sbms fi 5727214478Srpaulo if test -z "$d" ; then 5728252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5729252283Sdelphij$as_echo "not found" >&6; } 5730214478Srpaulo else 5731214478Srpaulo V_INCLS="-I$d $V_INCLS" 5732252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5 5733252283Sdelphij$as_echo "found -- -I$d added" >&6; } 5734214478Srpaulo fi 5735127668Sbms fi 573617680Spst else 573717680Spst V_PCAPDEP=$libpcap 573898524Sfenner places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 573998524Sfenner egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 574056893Sfenner if test -r $d/pcap.h; then 574175115Sfenner V_INCLS="-I$d $V_INCLS" 574298524Sfenner elif test -r $places/pcap.h; then 574398524Sfenner V_INCLS="-I$places $V_INCLS" 574456893Sfenner else 5745252283Sdelphij as_fn_error see INSTALL "cannot find pcap.h" "$LINENO" 5 574656893Sfenner fi 5747252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5 5748252283Sdelphij$as_echo "$libpcap" >&6; } 5749214478Srpaulo # Extract the first word of "pcap-config", so it can be a program name with args. 5750214478Srpauloset dummy pcap-config; ac_word=$2 5751252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5752252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 5753252283Sdelphijif ${ac_cv_path_PCAP_CONFIG+:} false; then : 5754252283Sdelphij $as_echo_n "(cached) " >&6 5755214478Srpauloelse 5756214478Srpaulo case $PCAP_CONFIG in 5757214478Srpaulo [\\/]* | ?:[\\/]*) 5758214478Srpaulo ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 5759214478Srpaulo ;; 5760214478Srpaulo *) 5761214478Srpaulo as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5762214478Srpaulofor as_dir in $d 5763214478Srpaulodo 5764214478Srpaulo IFS=$as_save_IFS 5765214478Srpaulo test -z "$as_dir" && as_dir=. 5766252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 5767214478Srpaulo if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5768214478Srpaulo ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5769252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5770214478Srpaulo break 2 5771214478Srpaulo fi 5772214478Srpaulodone 5773252283Sdelphij done 5774214478SrpauloIFS=$as_save_IFS 5775214478Srpaulo 5776214478Srpaulo ;; 5777214478Srpauloesac 5778214478Srpaulofi 5779214478SrpauloPCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 5780214478Srpauloif test -n "$PCAP_CONFIG"; then 5781252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 5782252283Sdelphij$as_echo "$PCAP_CONFIG" >&6; } 5783214478Srpauloelse 5784252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5785252283Sdelphij$as_echo "no" >&6; } 5786214478Srpaulofi 5787214478Srpaulo 5788214478Srpaulo 5789214478Srpaulo if test -n "$PCAP_CONFIG"; then 5790214478Srpaulo # 5791214478Srpaulo # The libpcap directory has a pcap-config script. 5792214478Srpaulo # Use it to get any additioal libraries needed 5793214478Srpaulo # to link with the libpcap archive library in 5794236192Sdelphij # that directory. 5795214478Srpaulo # 5796236192Sdelphij # Please read section 11.6 "Shell Substitutions" 5797236192Sdelphij # in the autoconf manual before doing anything 5798236192Sdelphij # to this that involves quoting. Especially note 5799236192Sdelphij # the statement "There is just no portable way to use 5800236192Sdelphij # double-quoted strings inside double-quoted back-quoted 5801236192Sdelphij # expressions (pfew!)." 5802236192Sdelphij # 5803236192Sdelphij additional_libs=`"$PCAP_CONFIG" --additional-libs --static` 5804236192Sdelphij libpcap="$libpcap $additional_libs" 5805214478Srpaulo fi 580617680Spst fi 580717680Spst LIBS="$libpcap $LIBS" 5808214478Srpaulo if ! test -n "$PCAP_CONFIG" ; then 5809214478Srpaulo # 5810214478Srpaulo # We don't have pcap-config; find out any additional link flags 5811214478Srpaulo # we need. (If we have pcap-config, we assume it tells us what 5812214478Srpaulo # we need.) 5813214478Srpaulo # 5814214478Srpaulo case "$host_os" in 581517680Spst 5816214478Srpaulo aix*) 5817214478Srpaulo # 5818214478Srpaulo # If libpcap is DLPI-based, we have to use /lib/pse.exp if 5819214478Srpaulo # present, as we use the STREAMS routines. 5820214478Srpaulo # 5821214478Srpaulo # (XXX - true only if we're linking with a static libpcap?) 5822214478Srpaulo # 582339297Sfenner pseexe="/lib/pse.exp" 5824252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5 5825252283Sdelphij$as_echo_n "checking for $pseexe... " >&6; } 582639297Sfenner if test -f $pseexe ; then 5827252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5828252283Sdelphij$as_echo "yes" >&6; } 582939297Sfenner LIBS="$LIBS -I:$pseexe" 583039297Sfenner fi 5831214478Srpaulo 5832127668Sbms # 5833214478Srpaulo # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as 5834214478Srpaulo # we use them to load the BPF module. 5835127668Sbms # 5836214478Srpaulo # (XXX - true only if we're linking with a static libpcap?) 5837214478Srpaulo # 5838127668Sbms LIBS="$LIBS -lodm -lcfg" 583939297Sfenner ;; 5840214478Srpaulo esac 5841214478Srpaulo fi 584239297Sfenner 5843252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop" 5844252283Sdelphijif test "x$ac_cv_func_pcap_loop" = xyes; then : 5845236192Sdelphij 5846236192Sdelphijelse 5847236192Sdelphij 5848252283Sdelphij as_fn_error $? "Report this to tcpdump-workers@lists.tcpdump.org, and include the 5849242485Sdelphijconfig.log file in your report. If you have downloaded libpcap from 5850242485Sdelphijtcpdump.org, and built it yourself, please also include the config.log 5851242485Sdelphijfile from the libpcap source directory, the Makefile from the libpcap 5852242485Sdelphijsource directory, and the output of the make process for libpcap, as 5853242485Sdelphijthis could be a problem with the libpcap that was built, and we will 5854242485Sdelphijnot be able to determine why this is happening, and thus will not be 5855242485Sdelphijable to fix it, without that information, as we have not been able to 5856252283Sdelphijreproduce this problem ourselves." "$LINENO" 5 5857236192Sdelphij 5858236192Sdelphijfi 5859236192Sdelphij 5860236192Sdelphij 5861252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks" 5862252283Sdelphijif test "x$ac_cv_func_pcap_list_datalinks" = xyes; then : 5863252283Sdelphij $as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h 5864172683Smlaier 5865127668Sbmselse 5866127668Sbms 5867172683Smlaier case " $LIBOBJS " in 5868172683Smlaier *" datalinks.$ac_objext "* ) ;; 5869172683Smlaier *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" 5870172683Smlaier ;; 5871172683Smlaieresac 5872147899Ssam 5873172683Smlaier 5874127668Sbmsfi 5875127668Sbms 5876252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink" 5877252283Sdelphijif test "x$ac_cv_func_pcap_set_datalink" = xyes; then : 5878252283Sdelphij $as_echo "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h 5879172683Smlaier 5880127668Sbmsfi 5881172683Smlaier 5882252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val" 5883252283Sdelphijif test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes; then : 5884127668Sbms 5885252283Sdelphij $as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h 5886127668Sbms 5887252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description" 5888252283Sdelphijif test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes; then : 5889252283Sdelphij $as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h 5890172683Smlaier 5891127668Sbmselse 5892127668Sbms 5893172683Smlaier case " $LIBOBJS " in 5894172683Smlaier *" dlnames.$ac_objext "* ) ;; 5895172683Smlaier *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 5896172683Smlaier ;; 5897172683Smlaieresac 5898147899Ssam 5899172683Smlaier 5900127668Sbmsfi 5901127668Sbms 5902127668Sbms 5903127668Sbmselse 5904147899Ssam 5905172683Smlaier case " $LIBOBJS " in 5906172683Smlaier *" dlnames.$ac_objext "* ) ;; 5907172683Smlaier *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 5908172683Smlaier ;; 5909172683Smlaieresac 5910147899Ssam 5911172683Smlaier 5912127668Sbmsfi 5913127668Sbms 5914127668Sbms 5915252283Sdelphij for ac_func in pcap_breakloop 5916252283Sdelphijdo : 5917252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop" 5918252283Sdelphijif test "x$ac_cv_func_pcap_breakloop" = xyes; then : 5919127668Sbms cat >>confdefs.h <<_ACEOF 5920252283Sdelphij#define HAVE_PCAP_BREAKLOOP 1 5921127668Sbms_ACEOF 5922127668Sbms 5923127668Sbmsfi 5924127668Sbmsdone 5925127668Sbms 5926127668Sbms 5927252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell" 5928252283Sdelphijif test "x$ac_cv_func_pcap_dump_ftell" = xyes; then : 5929252283Sdelphij $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h 5930172683Smlaier 5931147899Ssamelse 5932147899Ssam 5933172683Smlaier case " $LIBOBJS " in 5934172683Smlaier *" pcap_dump_ftell.$ac_objext "* ) ;; 5935172683Smlaier *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 5936172683Smlaier ;; 5937172683Smlaieresac 5938147899Ssam 5939172683Smlaier 5940147899Ssamfi 5941147899Ssam 5942147899Ssam 5943147899Ssam 5944127668Sbms# 5945127668Sbms# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 5946127668Sbms# libraries (e.g., "-lsocket -lnsl" on Solaris). 5947127668Sbms# 5948127668Sbms# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 5949127668Sbms# use AC_CHECK_FUNC which doesn't let us specify the right #includes 5950127668Sbms# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 5951127668Sbms# resolver, and the way it defines inet_{ntop,pton} is rather strange; 5952127668Sbms# it does not ship with a libc symbol "inet_ntop()", it ships with 5953127668Sbms# "_inet_ntop()", and has a #define macro in one of the system headers 5954127668Sbms# to rename it. 5955127668Sbms# 5956252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5 5957252283Sdelphij$as_echo_n "checking for inet_ntop... " >&6; } 5958252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959127668Sbms/* end confdefs.h. */ 5960127668Sbms#include <sys/types.h> 5961127668Sbms#include <sys/socket.h> 5962127668Sbms#include <netinet/in.h> 5963127668Sbms#include <arpa/inet.h> 5964127668Sbmsint 5965127668Sbmsmain () 5966127668Sbms{ 5967127668Sbmschar src[4], dst[128]; 5968127668Sbmsinet_ntop(AF_INET, src, dst, sizeof(dst)); 5969127668Sbms ; 5970127668Sbms return 0; 5971127668Sbms} 5972127668Sbms_ACEOF 5973252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 5974252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5975252283Sdelphij$as_echo "yes" >&6; } 5976127668Sbmselse 5977252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978252283Sdelphij$as_echo "no" >&6; } 5979172683Smlaier case " $LIBOBJS " in 5980172683Smlaier *" inet_ntop.$ac_objext "* ) ;; 5981172683Smlaier *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 5982172683Smlaier ;; 5983172683Smlaieresac 5984172683Smlaier 5985127668Sbmsfi 5986252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 5987252283Sdelphij conftest$ac_exeext conftest.$ac_ext 5988252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 5989252283Sdelphij$as_echo_n "checking for inet_pton... " >&6; } 5990252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991127668Sbms/* end confdefs.h. */ 5992127668Sbms#include <sys/types.h> 5993127668Sbms#include <sys/socket.h> 5994127668Sbms#include <netinet/in.h> 5995127668Sbms#include <arpa/inet.h> 5996127668Sbmsint 5997127668Sbmsmain () 5998127668Sbms{ 5999127668Sbmschar src[128], dst[4]; 6000127668Sbmsinet_pton(AF_INET, src, dst); 6001127668Sbms ; 6002127668Sbms return 0; 6003127668Sbms} 6004127668Sbms_ACEOF 6005252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 6006252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6007252283Sdelphij$as_echo "yes" >&6; } 6008127668Sbmselse 6009252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010252283Sdelphij$as_echo "no" >&6; } 6011172683Smlaier case " $LIBOBJS " in 6012172683Smlaier *" inet_pton.$ac_objext "* ) ;; 6013172683Smlaier *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 6014172683Smlaier ;; 6015172683Smlaieresac 6016172683Smlaier 6017127668Sbmsfi 6018252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 6019252283Sdelphij conftest$ac_exeext conftest.$ac_ext 6020252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 6021252283Sdelphij$as_echo_n "checking for inet_aton... " >&6; } 6022252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023127668Sbms/* end confdefs.h. */ 6024127668Sbms#include <sys/types.h> 6025127668Sbms#include <netinet/in.h> 6026127668Sbms#include <arpa/inet.h> 6027127668Sbmsint 6028127668Sbmsmain () 6029127668Sbms{ 6030127668Sbmschar src[128]; 6031127668Sbmsstruct in_addr dst; 6032127668Sbmsinet_aton(src, &dst); 6033127668Sbms ; 6034127668Sbms return 0; 6035127668Sbms} 6036127668Sbms_ACEOF 6037252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 6038252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6039252283Sdelphij$as_echo "yes" >&6; } 6040127668Sbmselse 6041252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042252283Sdelphij$as_echo "no" >&6; } 6043172683Smlaier case " $LIBOBJS " in 6044172683Smlaier *" inet_aton.$ac_objext "* ) ;; 6045172683Smlaier *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 6046172683Smlaier ;; 6047172683Smlaieresac 6048172683Smlaier 6049127668Sbmsfi 6050252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 6051252283Sdelphij conftest$ac_exeext conftest.$ac_ext 6052127668Sbms 6053146773Ssam# 6054146773Ssam# Check for these after AC_LBL_LIBPCAP, for the same reason. 6055146773Ssam# 6056146773Ssam# You are in a twisty little maze of UN*Xes, all different. 6057146773Ssam# Some might not have ether_ntohost(). 6058146773Ssam# Some might have it, but not declare it in any header file. 6059146773Ssam# Some might have it, but declare it in <netinet/if_ether.h>. 6060146773Ssam# Some might have it, but declare it in <netinet/ether.h> 6061146773Ssam# (And some might have it but document it as something declared in 6062146773Ssam# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 6063146773Ssam# 6064146773Ssam# Before you is a C compiler. 6065146773Ssam# 6066146773Ssamfor ac_func in ether_ntohost 6067252283Sdelphijdo : 6068252283Sdelphij ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost" 6069252283Sdelphijif test "x$ac_cv_func_ether_ntohost" = xyes; then : 6070146773Ssam cat >>confdefs.h <<_ACEOF 6071252283Sdelphij#define HAVE_ETHER_NTOHOST 1 6072146773Ssam_ACEOF 6073146773Ssam 6074252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5 6075252283Sdelphij$as_echo_n "checking for buggy ether_ntohost... " >&6; } 6076252283Sdelphijif ${ac_cv_buggy_ether_ntohost+:} false; then : 6077252283Sdelphij $as_echo_n "(cached) " >&6 6078146773Ssamelse 6079146773Ssam 6080252283Sdelphij if test "$cross_compiling" = yes; then : 6081146773Ssam ac_cv_buggy_ether_ntohost="not while cross-compiling" 6082146773Ssamelse 6083252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084146773Ssam/* end confdefs.h. */ 6085146773Ssam 6086146773Ssam #include <netdb.h> 6087146773Ssam #include <sys/types.h> 6088146773Ssam #include <sys/param.h> 6089146773Ssam #include <sys/socket.h> 6090146773Ssam 6091146773Ssam int 6092146773Ssam main(int argc, char **argv) 6093146773Ssam { 6094146773Ssam u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 6095146773Ssam char name[MAXHOSTNAMELEN]; 6096146773Ssam 6097146773Ssam ether_ntohost(name, (struct ether_addr *)ea); 6098146773Ssam exit(0); 6099146773Ssam } 6100146773Ssam 6101146773Ssam_ACEOF 6102252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 6103146773Ssam ac_cv_buggy_ether_ntohost=no 6104146773Ssamelse 6105252283Sdelphij ac_cv_buggy_ether_ntohost=yes 6106146773Ssamfi 6107252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6108252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 6109146773Ssamfi 6110172683Smlaier 6111146773Ssamfi 6112252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5 6113252283Sdelphij$as_echo "$ac_cv_buggy_ether_ntohost" >&6; } 6114146773Ssam if test "$ac_cv_buggy_ether_ntohost" = "no"; then 6115252283Sdelphij $as_echo "#define USE_ETHER_NTOHOST 1" >>confdefs.h 6116146773Ssam 6117146773Ssam fi 6118146773Ssam 6119146773Ssamfi 6120146773Ssamdone 6121146773Ssam 6122146773Ssamif test "$ac_cv_func_ether_ntohost" = yes -a \ 6123146773Ssam "$ac_cv_buggy_ether_ntohost" = "no"; then 6124146773Ssam # 6125146773Ssam # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 6126146773Ssam # 6127146773Ssam if test "$ac_cv_header_netinet_if_ether_h" = yes; then 6128146773Ssam # 6129146773Ssam # Yes. Does it declare ether_ntohost()? 6130146773Ssam # 6131252283Sdelphij ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6132146773Ssam#include <sys/types.h> 6133146773Ssam#include <sys/socket.h> 6134146773Ssam#include <netinet/in.h> 6135147899Ssam#include <arpa/inet.h> 6136146773Ssamstruct mbuf; 6137146773Ssamstruct rtentry; 6138146773Ssam#include <net/if.h> 6139146773Ssam#include <netinet/if_ether.h> 6140146773Ssam 6141252283Sdelphij" 6142252283Sdelphijif test "x$ac_cv_have_decl_ether_ntohost" = xyes; then : 6143146773Ssam 6144146773Ssam 6145252283Sdelphij$as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 6146146773Ssam 6147172683Smlaier 6148146773Ssamfi 6149146773Ssam 6150146773Ssam fi 6151146773Ssam # 6152146773Ssam # Did that succeed? 6153146773Ssam # 6154146773Ssam if test "$ac_cv_have_decl_ether_ntohost" != yes; then 6155146773Ssam # 6156146773Ssam # No, how about <netinet/ether.h>, as on Linux? 6157146773Ssam # 6158252283Sdelphij for ac_header in netinet/ether.h 6159252283Sdelphijdo : 6160252283Sdelphij ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default" 6161252283Sdelphijif test "x$ac_cv_header_netinet_ether_h" = xyes; then : 6162146773Ssam cat >>confdefs.h <<_ACEOF 6163252283Sdelphij#define HAVE_NETINET_ETHER_H 1 6164146773Ssam_ACEOF 6165146773Ssam 6166146773Ssamfi 6167146773Ssam 6168146773Ssamdone 6169146773Ssam 6170146773Ssam if test "$ac_cv_header_netinet_ether_h" = yes; then 6171146773Ssam # 6172146773Ssam # We have it - does it declare ether_ntohost()? 6173146773Ssam # Unset ac_cv_have_decl_ether_ntohost so we don't 6174146773Ssam # treat the previous failure as a cached value and 6175146773Ssam # suppress the next test. 6176146773Ssam # 6177146773Ssam unset ac_cv_have_decl_ether_ntohost 6178252283Sdelphij ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6179146773Ssam#include <netinet/ether.h> 6180146773Ssam 6181252283Sdelphij" 6182252283Sdelphijif test "x$ac_cv_have_decl_ether_ntohost" = xyes; then : 6183146773Ssam 6184146773Ssam 6185252283Sdelphij$as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 6186146773Ssam 6187172683Smlaier 6188146773Ssamfi 6189146773Ssam 6190147899Ssam fi 6191147899Ssam fi 6192147899Ssam # 6193147899Ssam # Is ether_ntohost() declared? 6194147899Ssam # 6195147899Ssam if test "$ac_cv_have_decl_ether_ntohost" != yes; then 6196147899Ssam # 6197147899Ssam # No, we'll have to declare it ourselves. 6198147899Ssam # Do we have "struct ether_addr"? 6199147899Ssam # 6200252283Sdelphij ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " 6201147899Ssam#include <sys/types.h> 6202147899Ssam#include <sys/socket.h> 6203147899Ssam#include <netinet/in.h> 6204147899Ssam#include <arpa/inet.h> 6205147899Ssamstruct mbuf; 6206147899Ssamstruct rtentry; 6207147899Ssam#include <net/if.h> 6208147899Ssam#include <netinet/if_ether.h> 6209146773Ssam 6210252283Sdelphij" 6211252283Sdelphijif test "x$ac_cv_type_struct_ether_addr" = xyes; then : 6212147899Ssam 6213147899Ssamcat >>confdefs.h <<_ACEOF 6214147899Ssam#define HAVE_STRUCT_ETHER_ADDR 1 6215146773Ssam_ACEOF 6216146773Ssam 6217146773Ssam 6218146773Ssamfi 6219146773Ssam 6220146773Ssam 6221252283Sdelphij$as_echo "#define HAVE_DECL_ETHER_NTOHOST 0" >>confdefs.h 6222147899Ssam 6223147899Ssam else 6224147899Ssam 6225252283Sdelphij$as_echo "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h 6226147899Ssam 6227146773Ssam fi 6228146773Ssamfi 6229146773Ssam 6230190207Srpaulo# libdlpi is needed for Solaris 11 and later. 6231252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 6232252283Sdelphij$as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; } 6233252283Sdelphijif ${ac_cv_lib_dlpi_dlpi_walk+:} false; then : 6234252283Sdelphij $as_echo_n "(cached) " >&6 6235190207Srpauloelse 6236190207Srpaulo ac_check_lib_save_LIBS=$LIBS 6237190207SrpauloLIBS="-ldlpi -L/lib $LIBS" 6238252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239190207Srpaulo/* end confdefs.h. */ 6240146773Ssam 6241190207Srpaulo/* Override any GCC internal prototype to avoid an error. 6242190207Srpaulo Use char because int might match the return type of a GCC 6243190207Srpaulo builtin and then its argument prototype would still apply. */ 6244190207Srpaulo#ifdef __cplusplus 6245190207Srpauloextern "C" 6246190207Srpaulo#endif 6247190207Srpaulochar dlpi_walk (); 6248190207Srpauloint 6249190207Srpaulomain () 6250190207Srpaulo{ 6251190207Srpauloreturn dlpi_walk (); 6252190207Srpaulo ; 6253190207Srpaulo return 0; 6254190207Srpaulo} 6255190207Srpaulo_ACEOF 6256252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 6257190207Srpaulo ac_cv_lib_dlpi_dlpi_walk=yes 6258190207Srpauloelse 6259252283Sdelphij ac_cv_lib_dlpi_dlpi_walk=no 6260190207Srpaulofi 6261252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 6262252283Sdelphij conftest$ac_exeext conftest.$ac_ext 6263190207SrpauloLIBS=$ac_check_lib_save_LIBS 6264190207Srpaulofi 6265252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 6266252283Sdelphij$as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; } 6267252283Sdelphijif test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then : 6268190207Srpaulo LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS" 6269190207Srpaulofi 6270190207Srpaulo 6271190207Srpaulo 6272190207Srpaulo 6273252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has sa_len member" >&5 6274252283Sdelphij$as_echo_n "checking if sockaddr struct has sa_len member... " >&6; } 6275252283Sdelphij if ${ac_cv_sockaddr_has_sa_len+:} false; then : 6276252283Sdelphij $as_echo_n "(cached) " >&6 6277127668Sbmselse 6278252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279127668Sbms/* end confdefs.h. */ 6280127668Sbms 6281127668Sbms# include <sys/types.h> 6282127668Sbms# include <sys/socket.h> 6283127668Sbmsint 6284127668Sbmsmain () 6285127668Sbms{ 6286127668Sbmsu_int i = sizeof(((struct sockaddr *)0)->sa_len) 6287127668Sbms ; 6288127668Sbms return 0; 6289127668Sbms} 6290127668Sbms_ACEOF 6291252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 6292127668Sbms ac_cv_sockaddr_has_sa_len=yes 6293127668Sbmselse 6294252283Sdelphij ac_cv_sockaddr_has_sa_len=no 6295127668Sbmsfi 6296172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6297127668Sbmsfi 6298127668Sbms 6299252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5 6300252283Sdelphij$as_echo "$ac_cv_sockaddr_has_sa_len" >&6; } 6301127668Sbms if test $ac_cv_sockaddr_has_sa_len = yes ; then 6302252283Sdelphij $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 6303127668Sbms 6304127668Sbms fi 6305127668Sbms 6306127668Sbmsif test "$ac_cv_sockaddr_has_sa_len" = no; then 6307127668Sbms missing_includes=yes 6308127668Sbmsfi 6309127668Sbms 6310190207Srpaulo# 6311190207Srpaulo# Do we have the new open API? Check for pcap_create, and assume that, 6312236192Sdelphij# if we do, we also have pcap_activate() and the other new routines 6313236192Sdelphij# introduced in libpcap 1.0.0. 6314236192Sdelphij# 6315190207Srpaulofor ac_func in pcap_create 6316252283Sdelphijdo : 6317252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create" 6318252283Sdelphijif test "x$ac_cv_func_pcap_create" = xyes; then : 6319190207Srpaulo cat >>confdefs.h <<_ACEOF 6320252283Sdelphij#define HAVE_PCAP_CREATE 1 6321190207Srpaulo_ACEOF 6322190207Srpaulo 6323190207Srpaulofi 6324190207Srpaulodone 6325190207Srpaulo 6326236192Sdelphijif test $ac_cv_func_pcap_create = "yes" ; then 6327236192Sdelphij # 6328236192Sdelphij # OK, do we have pcap_set_tstamp_type? If so, assume we have 6329236192Sdelphij # pcap_list_tstamp_types and pcap_free_tstamp_types as well. 6330236192Sdelphij # 6331252283Sdelphij for ac_func in pcap_set_tstamp_type 6332252283Sdelphijdo : 6333252283Sdelphij ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type" 6334252283Sdelphijif test "x$ac_cv_func_pcap_set_tstamp_type" = xyes; then : 6335236192Sdelphij cat >>confdefs.h <<_ACEOF 6336252283Sdelphij#define HAVE_PCAP_SET_TSTAMP_TYPE 1 6337236192Sdelphij_ACEOF 6338236192Sdelphij 6339236192Sdelphijfi 6340236192Sdelphijdone 6341236192Sdelphij 6342236192Sdelphijfi 6343236192Sdelphij 6344127668Sbmsfor ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 6345252283Sdelphijdo : 6346252283Sdelphij as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6347252283Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6348252283Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6349127668Sbms cat >>confdefs.h <<_ACEOF 6350252283Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6351127668Sbms_ACEOF 635275115Sfenner 6353127668Sbmsfi 6354127668Sbmsdone 6355127668Sbms 6356127668Sbmsif test $ac_cv_func_pcap_findalldevs = "yes" ; then 6357242485Sdelphij savedcppflags="$CPPFLAGS" 6358190207Srpaulo CPPFLAGS="$CPPFLAGS $V_INCLS" 6359252283Sdelphij ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h> 6360252283Sdelphij" 6361252283Sdelphijif test "x$ac_cv_type_pcap_if_t" = xyes; then : 6362127668Sbms 6363127668Sbmscat >>confdefs.h <<_ACEOF 6364127668Sbms#define HAVE_PCAP_IF_T 1 6365127668Sbms_ACEOF 6366127668Sbms 6367127668Sbms 6368127668Sbmsfi 6369127668Sbms 6370190207Srpaulo CPPFLAGS="$savedcppflags" 6371127668Sbmsfi 6372146773Ssam 6373127668Sbmsif test $ac_cv_func_pcap_lib_version = "no" ; then 6374252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5 6375252283Sdelphij$as_echo_n "checking whether pcap_version is defined by libpcap... " >&6; } 6376252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6377127668Sbms/* end confdefs.h. */ 6378127668Sbms 6379127668Sbmsint 6380127668Sbmsmain () 6381127668Sbms{ 6382127668Sbms 6383127668Sbms extern char pcap_version[]; 6384127668Sbms 6385146773Ssam return (int)pcap_version; 6386127668Sbms 6387127668Sbms ; 6388127668Sbms return 0; 6389127668Sbms} 6390127668Sbms_ACEOF 6391252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 6392127668Sbms ac_lbl_cv_pcap_version_defined=yes 6393127668Sbmselse 6394252283Sdelphij ac_lbl_cv_pcap_version_defined=no 6395127668Sbmsfi 6396252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 6397252283Sdelphij conftest$ac_exeext conftest.$ac_ext 6398127668Sbms if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 6399252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6400252283Sdelphij$as_echo "yes" >&6; } 6401252283Sdelphij $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h 6402127668Sbms 6403127668Sbms else 6404252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405252283Sdelphij$as_echo "no" >&6; } 6406127668Sbms fi 6407127668Sbmsfi 6408252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5 6409252283Sdelphij$as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; } 6410252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411127668Sbms/* end confdefs.h. */ 6412127668Sbms 6413127668Sbmsint 6414127668Sbmsmain () 6415127668Sbms{ 6416127668Sbms 6417127668Sbms extern int pcap_debug; 6418127668Sbms 6419127668Sbms return pcap_debug; 6420127668Sbms 6421127668Sbms ; 6422127668Sbms return 0; 6423127668Sbms} 6424127668Sbms_ACEOF 6425252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 6426127668Sbms ac_lbl_cv_pcap_debug_defined=yes 6427127668Sbmselse 6428252283Sdelphij ac_lbl_cv_pcap_debug_defined=no 6429127668Sbmsfi 6430252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 6431252283Sdelphij conftest$ac_exeext conftest.$ac_ext 6432127668Sbmsif test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 6433252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6434252283Sdelphij$as_echo "yes" >&6; } 6435252283Sdelphij $as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h 6436127668Sbms 6437127668Sbmselse 6438252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439252283Sdelphij$as_echo "no" >&6; } 6440127668Sbms # 6441127668Sbms # OK, what about "yydebug"? 6442127668Sbms # 6443252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5 6444252283Sdelphij$as_echo_n "checking whether yydebug is defined by libpcap... " >&6; } 6445252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446127668Sbms/* end confdefs.h. */ 6447127668Sbms 6448127668Sbmsint 6449127668Sbmsmain () 6450127668Sbms{ 6451127668Sbms 6452127668Sbms extern int yydebug; 6453127668Sbms 6454127668Sbms return yydebug; 6455127668Sbms 6456127668Sbms ; 6457127668Sbms return 0; 6458127668Sbms} 6459127668Sbms_ACEOF 6460252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 6461127668Sbms ac_lbl_cv_yydebug_defined=yes 6462127668Sbmselse 6463252283Sdelphij ac_lbl_cv_yydebug_defined=no 6464127668Sbmsfi 6465252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 6466252283Sdelphij conftest$ac_exeext conftest.$ac_ext 6467127668Sbms if test "$ac_lbl_cv_yydebug_defined" = yes ; then 6468252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6469252283Sdelphij$as_echo "yes" >&6; } 6470252283Sdelphij $as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h 6471127668Sbms 6472127668Sbms else 6473252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474252283Sdelphij$as_echo "no" >&6; } 6475127668Sbms fi 6476127668Sbmsfi 6477252283Sdelphijac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump" 6478252283Sdelphijif test "x$ac_cv_func_bpf_dump" = xyes; then : 6479252283Sdelphij $as_echo "#define HAVE_BPF_DUMP 1" >>confdefs.h 6480127668Sbms 6481127668Sbmselse 6482172683Smlaier case " $LIBOBJS " in 6483252283Sdelphij *" bpf_dump.$ac_objext "* ) ;; 6484252283Sdelphij *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext" 6485172683Smlaier ;; 6486172683Smlaieresac 6487172683Smlaier 6488127668Sbmsfi 648975115Sfenner 6490127668Sbms 649117680SpstV_GROUP=0 649239297Sfennerif test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 649339297Sfenner V_GROUP=wheel 649439297Sfennerfi 6495214478Srpaulo# 6496214478Srpaulo# Assume V7/BSD convention for man pages (file formats in section 5, 6497214478Srpaulo# miscellaneous info in section 7). 6498214478Srpaulo# 6499214478SrpauloMAN_FILE_FORMATS=5 6500214478SrpauloMAN_MISC_INFO=7 650198524Sfennercase "$host_os" in 650217680Spst 650317680Spstaix*) 6504236192Sdelphij 6505252283Sdelphij$as_echo "#define _SUN 1" >>confdefs.h 650617680Spst 650717680Spst ;; 650817680Spst 6509214478Srpaulohpux*) 6510214478Srpaulo # 6511214478Srpaulo # Use System V conventions for man pages. 6512214478Srpaulo # 6513214478Srpaulo MAN_FILE_FORMATS=4 6514214478Srpaulo MAN_MISC_INFO=5 6515214478Srpaulo ;; 6516214478Srpaulo 651717680Spstirix*) 651817680Spst V_GROUP=sys 6519214478Srpaulo 6520214478Srpaulo # 6521214478Srpaulo # Use System V conventions for man pages. 6522214478Srpaulo # 6523214478Srpaulo MAN_FILE_FORMATS=4 6524214478Srpaulo MAN_MISC_INFO=5 652517680Spst ;; 652617680Spst 652717680Spstosf*) 652817680Spst V_GROUP=system 6529214478Srpaulo 6530214478Srpaulo # 6531214478Srpaulo # Use System V conventions for man pages. 6532214478Srpaulo # 6533214478Srpaulo MAN_FILE_FORMATS=4 6534214478Srpaulo MAN_MISC_INFO=5 653517680Spst ;; 653617680Spst 653717680Spstsolaris*) 653817680Spst V_GROUP=sys 6539214478Srpaulo 6540214478Srpaulo # 6541214478Srpaulo # Use System V conventions for man pages. 6542214478Srpaulo # 6543214478Srpaulo MAN_FILE_FORMATS=4 6544214478Srpaulo MAN_MISC_INFO=5 654517680Spst ;; 654617680Spstesac 654717680Spst 654817680Spstif test -f /dev/bpf0 ; then 654917680Spst V_GROUP=bpf 655017680Spstfi 655117680Spst 6552147899Ssamfor ac_header in sys/bitypes.h 6553252283Sdelphijdo : 6554252283Sdelphij ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 6555252283Sdelphijif test "x$ac_cv_header_sys_bitypes_h" = xyes; then : 6556147899Ssam cat >>confdefs.h <<_ACEOF 6557252283Sdelphij#define HAVE_SYS_BITYPES_H 1 6558147899Ssam_ACEOF 6559147899Ssam 6560147899Ssamfi 6561147899Ssam 6562147899Ssamdone 6563147899Ssam 6564147899Ssam 6565252283Sdelphijac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default 6566214478Srpaulo#ifdef HAVE_SYS_BITYPES_H 6567214478Srpaulo#include <sys/bitypes.h> 6568214478Srpaulo#endif 6569252283Sdelphij" 6570252283Sdelphijif test "x$ac_cv_type_int8_t" = xyes; then : 6571214478Srpaulo 6572127668Sbmselse 6573127668Sbms 6574252283Sdelphij$as_echo "#define int8_t signed char" >>confdefs.h 6575172683Smlaier 6576127668Sbmsfi 6577127668Sbms 6578252283Sdelphijac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default 6579147899Ssam#ifdef HAVE_SYS_BITYPES_H 6580147899Ssam#include <sys/bitypes.h> 6581147899Ssam#endif 6582252283Sdelphij" 6583252283Sdelphijif test "x$ac_cv_type_u_int8_t" = xyes; then : 6584127668Sbms 658556893Sfennerelse 6586127668Sbms 6587252283Sdelphij$as_echo "#define u_int8_t unsigned char" >>confdefs.h 6588172683Smlaier 658956893Sfennerfi 659056893Sfenner 6591252283Sdelphijac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 6592252283Sdelphijif test "x$ac_cv_type_int16_t" = xyes; then : 659356893Sfenner 659456893Sfennerelse 6595127668Sbms 6596252283Sdelphij$as_echo "#define int16_t short" >>confdefs.h 6597172683Smlaier 6598214478Srpaulo $ac_includes_default 6599214478Srpaulo#ifdef HAVE_SYS_BITYPES_H 6600214478Srpaulo#include <sys/bitypes.h> 6601214478Srpaulo#endif 6602147899Ssamfi 6603147899Ssam 6604252283Sdelphijac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default 6605147899Ssam#ifdef HAVE_SYS_BITYPES_H 6606147899Ssam#include <sys/bitypes.h> 6607147899Ssam#endif 6608252283Sdelphij" 6609252283Sdelphijif test "x$ac_cv_type_u_int16_t" = xyes; then : 661056893Sfenner 661156893Sfennerelse 6612127668Sbms 6613252283Sdelphij$as_echo "#define u_int16_t unsigned short" >>confdefs.h 6614172683Smlaier 661556893Sfennerfi 661656893Sfenner 6617252283Sdelphijac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default 6618214478Srpaulo#ifdef HAVE_SYS_BITYPES_H 6619214478Srpaulo#include <sys/bitypes.h> 6620214478Srpaulo#endif 6621252283Sdelphij" 6622252283Sdelphijif test "x$ac_cv_type_int32_t" = xyes; then : 6623214478Srpaulo 662417680Spstelse 6625127668Sbms 6626252283Sdelphij$as_echo "#define int32_t int" >>confdefs.h 6627172683Smlaier 662817680Spstfi 662917680Spst 6630252283Sdelphijac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default 6631147899Ssam#ifdef HAVE_SYS_BITYPES_H 6632147899Ssam#include <sys/bitypes.h> 6633147899Ssam#endif 6634252283Sdelphij" 6635252283Sdelphijif test "x$ac_cv_type_u_int32_t" = xyes; then : 663617680Spst 663717680Spstelse 6638127668Sbms 6639252283Sdelphij$as_echo "#define u_int32_t unsigned int" >>confdefs.h 6640172683Smlaier 664117680Spstfi 664217680Spst 6643252283Sdelphijac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default 6644214478Srpaulo#ifdef HAVE_SYS_BITYPES_H 6645214478Srpaulo#include <sys/bitypes.h> 6646214478Srpaulo#endif 6647252283Sdelphij" 6648252283Sdelphijif test "x$ac_cv_type_int64_t" = xyes; then : 6649214478Srpaulo 6650146773Ssamelse 6651146773Ssam 6652252283Sdelphij$as_echo "#define int64_t long long" >>confdefs.h 6653172683Smlaier 6654146773Ssamfi 6655146773Ssam 6656252283Sdelphijac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default 6657147899Ssam#ifdef HAVE_SYS_BITYPES_H 6658147899Ssam#include <sys/bitypes.h> 6659147899Ssam#endif 6660252283Sdelphij" 6661252283Sdelphijif test "x$ac_cv_type_u_int64_t" = xyes; then : 6662146773Ssam 6663146773Ssamelse 6664146773Ssam 6665252283Sdelphij$as_echo "#define u_int64_t unsigned long long" >>confdefs.h 6666172683Smlaier 6667146773Ssamfi 6668146773Ssam 6669146773Ssam 6670146773Ssam# 6671146773Ssam# We can't just check for <inttypes.h> - some systems have one that 6672146773Ssam# doesn't define all the PRI[doxu]64 macros. 6673146773Ssam# 6674146773Ssamfor ac_header in inttypes.h 6675252283Sdelphijdo : 6676252283Sdelphij ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 6677252283Sdelphijif test "x$ac_cv_header_inttypes_h" = xyes; then : 6678146773Ssam cat >>confdefs.h <<_ACEOF 6679252283Sdelphij#define HAVE_INTTYPES_H 1 6680146773Ssam_ACEOF 6681146773Ssam 6682146773Ssam # 6683146773Ssam # OK, we have inttypes.h, but does it define those macros? 6684146773Ssam # 6685252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5 6686252283Sdelphij$as_echo_n "checking whether inttypes.h defines the PRI[doxu]64 macros... " >&6; } 6687252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6688146773Ssam/* end confdefs.h. */ 6689146773Ssam 6690252283Sdelphij 6691146773Ssam #include <inttypes.h> 6692146773Ssam #include <stdio.h> 6693146773Ssam #include <sys/types.h> 6694147899Ssam #ifdef HAVE_SYS_BITYPES_H 6695147899Ssam #include <sys/bitypes.h> 6696147899Ssam #endif 6697146773Ssam 6698146773Ssam main() 6699146773Ssam { 6700146773Ssam printf("%" PRId64 "\n", (u_int64_t)1); 6701146773Ssam printf("%" PRIo64 "\n", (u_int64_t)1); 6702146773Ssam printf("%" PRIx64 "\n", (u_int64_t)1); 6703146773Ssam printf("%" PRIu64 "\n", (u_int64_t)1); 6704146773Ssam } 6705146773Ssam 6706146773Ssam 6707146773Ssam_ACEOF 6708252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 6709146773Ssam 6710252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6711252283Sdelphij$as_echo "yes" >&6; } 6712146773Ssam ac_lbl_inttypes_h_defines_formats=yes 6713146773Ssam 6714146773Ssamelse 6715146773Ssam 6716252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717252283Sdelphij$as_echo "no" >&6; } 6718146773Ssam ac_lbl_inttypes_h_defines_formats=no 6719146773Ssam 6720146773Ssamfi 6721172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6722172683Smlaier 6723146773Ssamelse 6724146773Ssam 6725146773Ssam # 6726146773Ssam # We don't have inttypes.h, so it obviously can't define those 6727146773Ssam # macros. 6728146773Ssam # 6729146773Ssam ac_lbl_inttypes_h_defines_formats=no 6730146773Ssam 6731146773Ssamfi 6732146773Ssam 6733146773Ssamdone 6734146773Ssam 6735147899Ssamif test "$ac_lbl_inttypes_h_defines_formats" = no; then 6736147899Ssam 6737252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %lx can be used to format 64-bit integers" >&5 6738252283Sdelphij$as_echo_n "checking whether %lx can be used to format 64-bit integers... " >&6; } 6739252283Sdelphij if test "$cross_compiling" = yes; then : 6740252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6741252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6742252283Sdelphijas_fn_error $? "cannot run test program while cross compiling 6743252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 6744147899Ssamelse 6745252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746147899Ssam/* end confdefs.h. */ 6747146773Ssam 6748252283Sdelphij 6749147899Ssam# ifdef HAVE_INTTYPES_H 6750147899Ssam #include <inttypes.h> 6751147899Ssam# endif 6752147899Ssam# ifdef HAVE_SYS_BITYPES_H 6753147899Ssam #include <sys/bitypes.h> 6754147899Ssam# endif 6755147899Ssam #include <stdio.h> 6756147899Ssam #include <sys/types.h> 6757147899Ssam 6758147899Ssam main() 6759147899Ssam { 6760147899Ssam u_int64_t t = 1; 6761147899Ssam char strbuf[16+1]; 6762147899Ssam sprintf(strbuf, "%016lx", t << 32); 6763147899Ssam if (strcmp(strbuf, "0000000100000000") == 0) 6764147899Ssam exit(0); 6765147899Ssam else 6766147899Ssam exit(1); 6767147899Ssam } 6768147899Ssam 6769147899Ssam 6770147899Ssam_ACEOF 6771252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 6772147899Ssam 6773252283Sdelphij $as_echo "#define PRId64 \"ld\"" >>confdefs.h 6774147899Ssam 6775252283Sdelphij $as_echo "#define PRIo64 \"lo\"" >>confdefs.h 6776147899Ssam 6777252283Sdelphij $as_echo "#define PRIx64 \"lx\"" >>confdefs.h 6778147899Ssam 6779252283Sdelphij $as_echo "#define PRIu64 \"lu\"" >>confdefs.h 6780147899Ssam 6781252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6782252283Sdelphij$as_echo "yes" >&6; } 6783147899Ssam 6784146773Ssamelse 6785146773Ssam 6786252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6787252283Sdelphij$as_echo "no" >&6; } 6788147899Ssam 6789147899Ssam 6790252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %llx can be used to format 64-bit integers" >&5 6791252283Sdelphij$as_echo_n "checking whether %llx can be used to format 64-bit integers... " >&6; } 6792252283Sdelphij if test "$cross_compiling" = yes; then : 6793252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6794252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6795252283Sdelphijas_fn_error $? "cannot run test program while cross compiling 6796252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 6797146773Ssamelse 6798252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799146773Ssam/* end confdefs.h. */ 6800146773Ssam 6801252283Sdelphij 6802146773Ssam# ifdef HAVE_INTTYPES_H 6803146773Ssam #include <inttypes.h> 6804146773Ssam# endif 6805147899Ssam# ifdef HAVE_SYS_BITYPES_H 6806147899Ssam #include <sys/bitypes.h> 6807147899Ssam# endif 6808146773Ssam #include <stdio.h> 6809146773Ssam #include <sys/types.h> 6810146773Ssam 6811146773Ssam main() 6812146773Ssam { 6813146773Ssam u_int64_t t = 1; 6814146773Ssam char strbuf[16+1]; 6815146773Ssam sprintf(strbuf, "%016llx", t << 32); 6816146773Ssam if (strcmp(strbuf, "0000000100000000") == 0) 6817146773Ssam exit(0); 6818146773Ssam else 6819146773Ssam exit(1); 6820146773Ssam } 6821146773Ssam 6822146773Ssam 6823146773Ssam_ACEOF 6824252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 6825146773Ssam 6826252283Sdelphij $as_echo "#define PRId64 \"lld\"" >>confdefs.h 6827146773Ssam 6828252283Sdelphij $as_echo "#define PRIo64 \"llo\"" >>confdefs.h 6829146773Ssam 6830252283Sdelphij $as_echo "#define PRIx64 \"llx\"" >>confdefs.h 6831146773Ssam 6832252283Sdelphij $as_echo "#define PRIu64 \"llu\"" >>confdefs.h 6833146773Ssam 6834252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6835252283Sdelphij$as_echo "yes" >&6; } 6836146773Ssam 6837146773Ssamelse 6838146773Ssam 6839252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840252283Sdelphij$as_echo "no" >&6; } 6841146773Ssam 6842146773Ssam 6843252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %Lx can be used to format 64-bit integers" >&5 6844252283Sdelphij$as_echo_n "checking whether %Lx can be used to format 64-bit integers... " >&6; } 6845252283Sdelphij if test "$cross_compiling" = yes; then : 6846252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6847252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6848252283Sdelphijas_fn_error $? "cannot run test program while cross compiling 6849252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 6850146773Ssamelse 6851252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852146773Ssam/* end confdefs.h. */ 6853146773Ssam 6854252283Sdelphij 6855146773Ssam# ifdef HAVE_INTTYPES_H 6856146773Ssam #include <inttypes.h> 6857146773Ssam# endif 6858147899Ssam# ifdef HAVE_SYS_BITYPES_H 6859147899Ssam #include <sys/bitypes.h> 6860147899Ssam# endif 6861146773Ssam #include <stdio.h> 6862146773Ssam #include <sys/types.h> 6863146773Ssam 6864146773Ssam main() 6865146773Ssam { 6866146773Ssam u_int64_t t = 1; 6867146773Ssam char strbuf[16+1]; 6868146773Ssam sprintf(strbuf, "%016Lx", t << 32); 6869146773Ssam if (strcmp(strbuf, "0000000100000000") == 0) 6870146773Ssam exit(0); 6871146773Ssam else 6872146773Ssam exit(1); 6873146773Ssam } 6874146773Ssam 6875146773Ssam 6876146773Ssam_ACEOF 6877252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 6878146773Ssam 6879252283Sdelphij $as_echo "#define PRId64 \"Ld\"" >>confdefs.h 6880146773Ssam 6881252283Sdelphij $as_echo "#define PRIo64 \"Lo\"" >>confdefs.h 6882146773Ssam 6883252283Sdelphij $as_echo "#define PRIx64 \"Lx\"" >>confdefs.h 6884146773Ssam 6885252283Sdelphij $as_echo "#define PRIu64 \"Lu\"" >>confdefs.h 6886146773Ssam 6887252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6888252283Sdelphij$as_echo "yes" >&6; } 6889146773Ssam 6890146773Ssamelse 6891146773Ssam 6892252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6893252283Sdelphij$as_echo "no" >&6; } 6894146773Ssam 6895146773Ssam 6896252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %qx can be used to format 64-bit integers" >&5 6897252283Sdelphij$as_echo_n "checking whether %qx can be used to format 64-bit integers... " >&6; } 6898252283Sdelphij if test "$cross_compiling" = yes; then : 6899252283Sdelphij { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6900252283Sdelphij$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6901252283Sdelphijas_fn_error $? "cannot run test program while cross compiling 6902252283SdelphijSee \`config.log' for more details" "$LINENO" 5; } 6903146773Ssamelse 6904252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905146773Ssam/* end confdefs.h. */ 6906146773Ssam 6907252283Sdelphij 6908146773Ssam# ifdef HAVE_INTTYPES_H 6909146773Ssam #include <inttypes.h> 6910146773Ssam# endif 6911147899Ssam# ifdef HAVE_SYS_BITYPES_H 6912147899Ssam #include <sys/bitypes.h> 6913147899Ssam# endif 6914146773Ssam #include <stdio.h> 6915146773Ssam #include <sys/types.h> 6916146773Ssam 6917146773Ssam main() 6918146773Ssam { 6919146773Ssam u_int64_t t = 1; 6920146773Ssam char strbuf[16+1]; 6921146773Ssam sprintf(strbuf, "%016qx", t << 32); 6922146773Ssam if (strcmp(strbuf, "0000000100000000") == 0) 6923146773Ssam exit(0); 6924146773Ssam else 6925146773Ssam exit(1); 6926146773Ssam } 6927146773Ssam 6928146773Ssam 6929146773Ssam_ACEOF 6930252283Sdelphijif ac_fn_c_try_run "$LINENO"; then : 6931146773Ssam 6932252283Sdelphij $as_echo "#define PRId64 \"qd\"" >>confdefs.h 6933146773Ssam 6934252283Sdelphij $as_echo "#define PRIo64 \"qo\"" >>confdefs.h 6935146773Ssam 6936252283Sdelphij $as_echo "#define PRIx64 \"qx\"" >>confdefs.h 6937146773Ssam 6938252283Sdelphij $as_echo "#define PRIu64 \"qu\"" >>confdefs.h 6939146773Ssam 6940252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6941252283Sdelphij$as_echo "yes" >&6; } 6942146773Ssam 6943146773Ssamelse 6944146773Ssam 6945252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6946252283Sdelphij$as_echo "no" >&6; } 6947146773Ssam 6948252283Sdelphij as_fn_error $? "neither %llx nor %Lx nor %qx worked on a 64-bit integer" "$LINENO" 5 6949146773Ssam 6950146773Ssam 6951146773Ssamfi 6952252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6953252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 6954146773Ssamfi 6955146773Ssam 6956146773Ssam 6957146773Ssam 6958172683Smlaier 6959146773Ssamfi 6960252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6961252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 6962146773Ssamfi 6963146773Ssam 6964146773Ssam 6965146773Ssam 6966172683Smlaier 6967146773Ssamfi 6968252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6969252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 6970146773Ssamfi 6971146773Ssam 6972147899Ssam 6973147899Ssam 6974172683Smlaier 6975146773Ssamfi 6976252283Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6977252283Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 6978147899Ssamfi 6979146773Ssam 6980172683Smlaier 6981147899Ssamfi 6982147899Ssam 6983236192Sdelphij# 6984236192Sdelphij# Check for some headers introduced in later versions of libpcap 6985236192Sdelphij# and used by some printers. 6986236192Sdelphij# 6987236192Sdelphij# Those headers use the {u_}intN_t types, so we must do this after 6988236192Sdelphij# we check for what's needed to get them defined. 6989236192Sdelphij# 6990236192Sdelphijsavedcppflags="$CPPFLAGS" 6991236192SdelphijCPPFLAGS="$CPPFLAGS $V_INCLS" 6992236192Sdelphijfor ac_header in pcap/bluetooth.h 6993252283Sdelphijdo : 6994252283Sdelphij ac_fn_c_check_header_compile "$LINENO" "pcap/bluetooth.h" "ac_cv_header_pcap_bluetooth_h" "#include <tcpdump-stdinc.h> 6995252283Sdelphij" 6996252283Sdelphijif test "x$ac_cv_header_pcap_bluetooth_h" = xyes; then : 6997236192Sdelphij cat >>confdefs.h <<_ACEOF 6998252283Sdelphij#define HAVE_PCAP_BLUETOOTH_H 1 6999236192Sdelphij_ACEOF 7000236192Sdelphij 7001236192Sdelphijfi 7002236192Sdelphij 7003236192Sdelphijdone 7004236192Sdelphij 7005236192Sdelphijfor ac_header in pcap/usb.h 7006252283Sdelphijdo : 7007252283Sdelphij ac_fn_c_check_header_compile "$LINENO" "pcap/usb.h" "ac_cv_header_pcap_usb_h" "#include <tcpdump-stdinc.h> 7008252283Sdelphij" 7009252283Sdelphijif test "x$ac_cv_header_pcap_usb_h" = xyes; then : 7010236192Sdelphij cat >>confdefs.h <<_ACEOF 7011252283Sdelphij#define HAVE_PCAP_USB_H 1 7012236192Sdelphij_ACEOF 7013236192Sdelphij 7014236192Sdelphijfi 7015236192Sdelphij 7016236192Sdelphijdone 7017236192Sdelphij 7018236192SdelphijCPPFLAGS="$savedcppflags" 7019236192Sdelphij 7020190207Srpauloif test -n "$ac_tool_prefix"; then 7021190207Srpaulo # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7022190207Srpauloset dummy ${ac_tool_prefix}ranlib; ac_word=$2 7023252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7024252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 7025252283Sdelphijif ${ac_cv_prog_RANLIB+:} false; then : 7026252283Sdelphij $as_echo_n "(cached) " >&6 7027190207Srpauloelse 7028190207Srpaulo if test -n "$RANLIB"; then 7029190207Srpaulo ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7030190207Srpauloelse 7031190207Srpauloas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7032190207Srpaulofor as_dir in $PATH 7033190207Srpaulodo 7034190207Srpaulo IFS=$as_save_IFS 7035190207Srpaulo test -z "$as_dir" && as_dir=. 7036252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 7037190207Srpaulo if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7038190207Srpaulo ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7039252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7040190207Srpaulo break 2 7041190207Srpaulo fi 7042190207Srpaulodone 7043252283Sdelphij done 7044190207SrpauloIFS=$as_save_IFS 7045190207Srpaulo 7046190207Srpaulofi 7047190207Srpaulofi 7048190207SrpauloRANLIB=$ac_cv_prog_RANLIB 7049190207Srpauloif test -n "$RANLIB"; then 7050252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7051252283Sdelphij$as_echo "$RANLIB" >&6; } 7052190207Srpauloelse 7053252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7054252283Sdelphij$as_echo "no" >&6; } 7055190207Srpaulofi 7056190207Srpaulo 7057190207Srpaulo 7058190207Srpaulofi 7059190207Srpauloif test -z "$ac_cv_prog_RANLIB"; then 7060190207Srpaulo ac_ct_RANLIB=$RANLIB 7061190207Srpaulo # Extract the first word of "ranlib", so it can be a program name with args. 7062190207Srpauloset dummy ranlib; ac_word=$2 7063252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7064252283Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 7065252283Sdelphijif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7066252283Sdelphij $as_echo_n "(cached) " >&6 7067190207Srpauloelse 7068190207Srpaulo if test -n "$ac_ct_RANLIB"; then 7069190207Srpaulo ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7070190207Srpauloelse 7071190207Srpauloas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7072190207Srpaulofor as_dir in $PATH 7073190207Srpaulodo 7074190207Srpaulo IFS=$as_save_IFS 7075190207Srpaulo test -z "$as_dir" && as_dir=. 7076252283Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 7077190207Srpaulo if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7078190207Srpaulo ac_cv_prog_ac_ct_RANLIB="ranlib" 7079252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7080190207Srpaulo break 2 7081190207Srpaulo fi 7082190207Srpaulodone 7083252283Sdelphij done 7084190207SrpauloIFS=$as_save_IFS 7085190207Srpaulo 7086190207Srpaulofi 7087190207Srpaulofi 7088190207Srpauloac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7089190207Srpauloif test -n "$ac_ct_RANLIB"; then 7090252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7091252283Sdelphij$as_echo "$ac_ct_RANLIB" >&6; } 7092190207Srpauloelse 7093252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7094252283Sdelphij$as_echo "no" >&6; } 7095190207Srpaulofi 7096190207Srpaulo 7097190207Srpaulo if test "x$ac_ct_RANLIB" = x; then 7098190207Srpaulo RANLIB=":" 7099190207Srpaulo else 7100190207Srpaulo case $cross_compiling:$ac_tool_warned in 7101190207Srpauloyes:) 7102252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7103252283Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7104190207Srpauloac_tool_warned=yes ;; 7105190207Srpauloesac 7106190207Srpaulo RANLIB=$ac_ct_RANLIB 7107190207Srpaulo fi 7108190207Srpauloelse 7109190207Srpaulo RANLIB="$ac_cv_prog_RANLIB" 7110190207Srpaulofi 7111190207Srpaulo 7112190207Srpaulo 711326180Sfennerrm -f os-proto.h 711426180Sfenner if test "${LBL_CFLAGS+set}" = set; then 711526180Sfenner V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 711626180Sfenner fi 711739297Sfenner if test -f .devel ; then 711839297Sfenner if test "$GCC" = yes ; then 711939297Sfenner if test "${LBL_CFLAGS+set}" != set; then 712039297Sfenner if test "$ac_cv_prog_cc_g" = yes ; then 712139297Sfenner V_CCOPT="-g $V_CCOPT" 712239297Sfenner fi 712339297Sfenner V_CCOPT="$V_CCOPT -Wall" 712439297Sfenner if test $ac_cv_lbl_gcc_vers -gt 1 ; then 7125172683Smlaier V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W" 712639297Sfenner fi 712726180Sfenner fi 712839297Sfenner else 712998524Sfenner case "$host_os" in 713039297Sfenner 713139297Sfenner irix6*) 713239297Sfenner V_CCOPT="$V_CCOPT -n32" 713339297Sfenner ;; 713439297Sfenner 713539297Sfenner *) 713639297Sfenner ;; 713739297Sfenner esac 713826180Sfenner fi 713998524Sfenner os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 714026180Sfenner name="lbl/os-$os.h" 714126180Sfenner if test -f $name ; then 714226180Sfenner ln -s $name os-proto.h 7143214478Srpaulo 7144252283Sdelphij$as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h 714526180Sfenner 714626180Sfenner else 7147252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5 7148252283Sdelphij$as_echo "$as_me: WARNING: can't find $name" >&2;} 714926180Sfenner fi 715026180Sfenner fi 715126180Sfenner 7152252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5 7153252283Sdelphij$as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; } 7154252283Sdelphij if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then : 7155252283Sdelphij $as_echo_n "(cached) " >&6 715617680Spstelse 7157252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7158127668Sbms/* end confdefs.h. */ 715917680Spst 716017680Spst# include <sys/types.h> 716117680Spst# include <sys/socket.h> 7162127668Sbmsint 7163127668Sbmsmain () 7164127668Sbms{ 716517680Spstu_int i = sizeof(((struct sockaddr *)0)->sa_len) 7166127668Sbms ; 7167127668Sbms return 0; 7168127668Sbms} 7169127668Sbms_ACEOF 7170252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 717139297Sfenner ac_cv_lbl_sockaddr_has_sa_len=yes 717217680Spstelse 7173252283Sdelphij ac_cv_lbl_sockaddr_has_sa_len=no 717417680Spstfi 7175172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 717617680Spstfi 717717680Spst 7178252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 7179252283Sdelphij$as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; } 718039297Sfenner if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 7181214478Srpaulo 7182252283Sdelphij$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 718317680Spst 718417680Spst fi 718517680Spst 7186252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5 7187252283Sdelphij$as_echo_n "checking if unaligned accesses fail... " >&6; } 7188252283Sdelphij if ${ac_cv_lbl_unaligned_fail+:} false; then : 7189252283Sdelphij $as_echo_n "(cached) " >&6 719017680Spstelse 719198524Sfenner case "$host_cpu" in 719217680Spst 7193127668Sbms # 7194127668Sbms # These are CPU types where: 7195127668Sbms # 7196127668Sbms # the CPU faults on an unaligned access, but at least some 7197127668Sbms # OSes that support that CPU catch the fault and simulate 7198127668Sbms # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 7199127668Sbms # the simulation is slow, so we don't want to use it; 7200127668Sbms # 7201127668Sbms # the CPU, I infer (from the old 7202127668Sbms # 720375115Sfenner # XXX: should also check that they don't do weird things (like on arm) 7204127668Sbms # 7205127668Sbms # comment) doesn't fault on unaligned accesses, but doesn't 7206127668Sbms # do a normal unaligned fetch, either (e.g., presumably, ARM); 7207127668Sbms # 7208127668Sbms # for whatever reason, the test program doesn't work 7209127668Sbms # (this has been claimed to be the case for several of those 7210127668Sbms # CPUs - I don't know what the problem is; the problem 7211127668Sbms # was reported as "the test program dumps core" for SuperH, 7212127668Sbms # but that's what the test program is *supposed* to do - 7213127668Sbms # it dumps core before it writes anything, so the test 7214127668Sbms # for an empty output file should find an empty output 7215127668Sbms # file and conclude that unaligned accesses don't work). 7216127668Sbms # 7217127668Sbms # This run-time test won't work if you're cross-compiling, so 7218127668Sbms # in order to support cross-compiling for a particular CPU, 7219127668Sbms # we have to wire in the list of CPU types anyway, as far as 7220127668Sbms # I know, so perhaps we should just have a set of CPUs on 7221127668Sbms # which we know it doesn't work, a set of CPUs on which we 7222127668Sbms # know it does work, and have the script just fail on other 7223127668Sbms # cpu types and update it when such a failure occurs. 7224127668Sbms # 7225190207Srpaulo alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) 722639297Sfenner ac_cv_lbl_unaligned_fail=yes 722717680Spst ;; 722817680Spst 722917680Spst *) 723017680Spst cat >conftest.c <<EOF 723117680Spst# include <sys/types.h> 723217680Spst# include <sys/wait.h> 723317680Spst# include <stdio.h> 723417680Spst unsigned char a[5] = { 1, 2, 3, 4, 5 }; 723517680Spst main() { 723617680Spst unsigned int i; 723717680Spst pid_t pid; 723817680Spst int status; 723917680Spst /* avoid "core dumped" message */ 724017680Spst pid = fork(); 724117680Spst if (pid < 0) 724217680Spst exit(2); 724317680Spst if (pid > 0) { 724417680Spst /* parent */ 724517680Spst pid = waitpid(pid, &status, 0); 724617680Spst if (pid < 0) 724717680Spst exit(3); 724817680Spst exit(!WIFEXITED(status)); 724917680Spst } 725017680Spst /* child */ 725126180Sfenner i = *(unsigned int *)&a[1]; 725217680Spst printf("%d\n", i); 725317680Spst exit(0); 725417680Spst } 725517680SpstEOF 725617680Spst ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 725717680Spst conftest.c $LIBS >/dev/null 2>&1 725817680Spst if test ! -x conftest ; then 725939297Sfenner ac_cv_lbl_unaligned_fail=yes 726017680Spst else 726117680Spst ./conftest >conftest.out 726217680Spst if test ! -s conftest.out ; then 726339297Sfenner ac_cv_lbl_unaligned_fail=yes 726417680Spst else 726539297Sfenner ac_cv_lbl_unaligned_fail=no 726617680Spst fi 726717680Spst fi 7268214478Srpaulo rm -f -r conftest* core core.conftest 726917680Spst ;; 727017680Spst esac 727117680Spstfi 727217680Spst 7273252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5 7274252283Sdelphij$as_echo "$ac_cv_lbl_unaligned_fail" >&6; } 727539297Sfenner if test $ac_cv_lbl_unaligned_fail = yes ; then 7276214478Srpaulo 7277252283Sdelphij$as_echo "#define LBL_ALIGN 1" >>confdefs.h 727817680Spst 727917680Spst fi 728017680Spst 728156893Sfenner 7282252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno" >&5 7283252283Sdelphij$as_echo_n "checking for h_errno... " >&6; } 7284252283Sdelphij if ${ac_cv_var_h_errno+:} false; then : 7285252283Sdelphij $as_echo_n "(cached) " >&6 728639297Sfennerelse 7287252283Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288127668Sbms/* end confdefs.h. */ 728956893Sfenner 729056893Sfenner# include <sys/types.h> 729156893Sfenner# include <netdb.h> 7292127668Sbmsint 7293127668Sbmsmain () 7294127668Sbms{ 729556893Sfennerint foo = h_errno; 7296127668Sbms ; 7297127668Sbms return 0; 7298127668Sbms} 7299127668Sbms_ACEOF 7300252283Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 730156893Sfenner ac_cv_var_h_errno=yes 730256893Sfennerelse 7303252283Sdelphij ac_cv_var_h_errno=no 730439297Sfennerfi 7305172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 730656893Sfennerfi 730739297Sfenner 7308252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_h_errno" >&5 7309252283Sdelphij$as_echo "$ac_cv_var_h_errno" >&6; } 731056893Sfenner if test "$ac_cv_var_h_errno" = "yes"; then 7311252283Sdelphij $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 731256893Sfenner 731356893Sfenner fi 731456893Sfenner 731556893Sfenner 7316252283Sdelphij# Check for OpenSSL libcrypto 7317252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL libcrypto" >&5 7318252283Sdelphij$as_echo_n "checking whether to use OpenSSL libcrypto... " >&6; } 7319190207Srpaulo# Specify location for both includes and libraries. 7320252283Sdelphijwant_libcrypto=ifavailable 7321127668Sbms 7322172683Smlaier# Check whether --with-crypto was given. 7323252283Sdelphijif test "${with_crypto+set}" = set; then : 7324172683Smlaier withval=$with_crypto; 7325190207Srpaulo if test $withval = no 7326190207Srpaulo then 7327190207Srpaulo want_libcrypto=no 7328252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329252283Sdelphij$as_echo "no" >&6; } 7330190207Srpaulo elif test $withval = yes 7331190207Srpaulo then 7332190207Srpaulo want_libcrypto=yes 7333252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7334252283Sdelphij$as_echo "yes" >&6; } 7335190207Srpaulo fi 7336190207Srpaulo 733775115Sfennerelse 7338127668Sbms 7339190207Srpaulo # 7340190207Srpaulo # Use libcrypto if it's present, otherwise don't. 7341190207Srpaulo # 7342190207Srpaulo want_libcrypto=ifavailable 7343252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 7344252283Sdelphij$as_echo "yes, if available" >&6; } 7345146773Ssam 7346162017Ssamfi 7347146773Ssam 7348190207Srpauloif test "$want_libcrypto" != "no"; then 7349252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5 7350252283Sdelphij$as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; } 7351252283Sdelphijif ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then : 7352252283Sdelphij $as_echo_n "(cached) " >&6 735356893Sfennerelse 7354127668Sbms ac_check_lib_save_LIBS=$LIBS 735556893SfennerLIBS="-lcrypto $LIBS" 7356252283Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 7357127668Sbms/* end confdefs.h. */ 7358127668Sbms 7359172683Smlaier/* Override any GCC internal prototype to avoid an error. 7360172683Smlaier Use char because int might match the return type of a GCC 7361172683Smlaier builtin and then its argument prototype would still apply. */ 7362127668Sbms#ifdef __cplusplus 7363127668Sbmsextern "C" 7364127668Sbms#endif 7365146773Ssamchar DES_cbc_encrypt (); 7366127668Sbmsint 7367127668Sbmsmain () 7368127668Sbms{ 7369172683Smlaierreturn DES_cbc_encrypt (); 7370127668Sbms ; 7371127668Sbms return 0; 7372127668Sbms} 7373127668Sbms_ACEOF 7374252283Sdelphijif ac_fn_c_try_link "$LINENO"; then : 7375146773Ssam ac_cv_lib_crypto_DES_cbc_encrypt=yes 737656893Sfennerelse 7377252283Sdelphij ac_cv_lib_crypto_DES_cbc_encrypt=no 737856893Sfennerfi 7379252283Sdelphijrm -f core conftest.err conftest.$ac_objext \ 7380252283Sdelphij conftest$ac_exeext conftest.$ac_ext 7381127668SbmsLIBS=$ac_check_lib_save_LIBS 7382127668Sbmsfi 7383252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 7384252283Sdelphij$as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; } 7385252283Sdelphijif test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then : 7386127668Sbms cat >>confdefs.h <<_ACEOF 7387127668Sbms#define HAVE_LIBCRYPTO 1 7388127668Sbms_ACEOF 738956893Sfenner 739056893Sfenner LIBS="-lcrypto $LIBS" 739156893Sfenner 739256893Sfennerfi 739356893Sfenner 7394252283Sdelphij for ac_header in openssl/evp.h 7395252283Sdelphijdo : 7396252283Sdelphij ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 7397252283Sdelphijif test "x$ac_cv_header_openssl_evp_h" = xyes; then : 7398127668Sbms cat >>confdefs.h <<_ACEOF 7399252283Sdelphij#define HAVE_OPENSSL_EVP_H 1 7400127668Sbms_ACEOF 7401127668Sbms 740256893Sfennerfi 740356893Sfenner 7404127668Sbmsdone 740556893Sfenner 740656893Sfennerfi 740756893Sfenner 7408146773Ssamif test "$missing_includes" = "yes"; then 7409236192Sdelphij CPPFLAGS="$CPPFLAGS -I$srcdir/missing" 7410236192Sdelphij V_INCLS="$V_INCLS -I$srcdir/missing" 7411146773Ssamfi 741217680Spst 741317680Spst 741417680Spst 741517680Spst 741617680Spst 741756893Sfenner 741875115Sfenner 7419146773Ssam 7420214478Srpaulo 7421214478Srpaulo 742217680Spst# Find a good install program. We prefer a C program (faster), 742317680Spst# so one script is as good as another. But avoid the broken or 742417680Spst# incompatible versions: 742517680Spst# SysV /etc/install, /usr/sbin/install 742617680Spst# SunOS /usr/etc/install 742717680Spst# IRIX /sbin/install 742817680Spst# AIX /bin/install 7429127668Sbms# AmigaOS /C/install, which installs bootblocks on floppy discs 743056893Sfenner# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 743117680Spst# AFS /usr/afsws/bin/install, which mishandles nonexistent args 743217680Spst# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7433172683Smlaier# OS/2's system install, which has a completely different semantic 743417680Spst# ./install, which can be erroneously created by make from ./install.sh. 7435252283Sdelphij# Reject install programs that cannot install multiple files. 7436252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 7437252283Sdelphij$as_echo_n "checking for a BSD-compatible install... " >&6; } 743817680Spstif test -z "$INSTALL"; then 7439252283Sdelphijif ${ac_cv_path_install+:} false; then : 7440252283Sdelphij $as_echo_n "(cached) " >&6 744117680Spstelse 7442127668Sbms as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7443127668Sbmsfor as_dir in $PATH 7444127668Sbmsdo 7445127668Sbms IFS=$as_save_IFS 7446127668Sbms test -z "$as_dir" && as_dir=. 7447252283Sdelphij # Account for people who put trailing slashes in PATH elements. 7448252283Sdelphijcase $as_dir/ in #(( 7449252283Sdelphij ./ | .// | /[cC]/* | \ 7450127668Sbms /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7451252283Sdelphij ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 7452127668Sbms /usr/ucb/* ) ;; 7453127668Sbms *) 7454127668Sbms # OSF1 and SCO ODT 3.0 have their own names for install. 7455127668Sbms # Don't use installbsd from OSF since it installs stuff as root 7456127668Sbms # by default. 7457127668Sbms for ac_prog in ginstall scoinst install; do 7458127668Sbms for ac_exec_ext in '' $ac_executable_extensions; do 7459172683Smlaier if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 7460172683Smlaier if test $ac_prog = install && 7461172683Smlaier grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7462172683Smlaier # AIX install. It has an incompatible calling convention. 7463172683Smlaier : 7464172683Smlaier elif test $ac_prog = install && 7465172683Smlaier grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7466172683Smlaier # program-specific install script used by HP pwplus--don't use. 7467172683Smlaier : 7468172683Smlaier else 7469252283Sdelphij rm -rf conftest.one conftest.two conftest.dir 7470252283Sdelphij echo one > conftest.one 7471252283Sdelphij echo two > conftest.two 7472252283Sdelphij mkdir conftest.dir 7473252283Sdelphij if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 7474252283Sdelphij test -s conftest.one && test -s conftest.two && 7475252283Sdelphij test -s conftest.dir/conftest.one && 7476252283Sdelphij test -s conftest.dir/conftest.two 7477252283Sdelphij then 7478252283Sdelphij ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7479252283Sdelphij break 3 7480252283Sdelphij fi 7481172683Smlaier fi 7482172683Smlaier fi 748317680Spst done 7484127668Sbms done 7485127668Sbms ;; 7486127668Sbmsesac 7487252283Sdelphij 7488252283Sdelphij done 7489172683SmlaierIFS=$as_save_IFS 749017680Spst 7491252283Sdelphijrm -rf conftest.one conftest.two conftest.dir 7492127668Sbms 749317680Spstfi 749417680Spst if test "${ac_cv_path_install+set}" = set; then 7495127668Sbms INSTALL=$ac_cv_path_install 749617680Spst else 7497172683Smlaier # As a last resort, use the slow shell script. Don't cache a 7498172683Smlaier # value for INSTALL within a source directory, because that will 749917680Spst # break other packages using the cache if that directory is 7500172683Smlaier # removed, or if the value is a relative name. 7501127668Sbms INSTALL=$ac_install_sh 750217680Spst fi 750317680Spstfi 7504252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 7505252283Sdelphij$as_echo "$INSTALL" >&6; } 750617680Spst 750717680Spst# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 750817680Spst# It thinks the first close brace ends the variable substitution. 750917680Spsttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 751017680Spst 7511127668Sbmstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 751256893Sfenner 751317680Spsttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 751417680Spst 751517680Spst 7516172683Smlaierac_config_headers="$ac_config_headers config.h" 751756893Sfenner 751856893Sfenner 7519172683Smlaierac_config_commands="$ac_config_commands default-1" 752075115Sfenner 7521214478Srpauloac_config_files="$ac_config_files Makefile tcpdump.1" 7522172683Smlaier 7523127668Sbmscat >confcache <<\_ACEOF 752417680Spst# This file is a shell script that caches the results of configure 752517680Spst# tests run on this system so they can be shared between configure 7526127668Sbms# scripts and configure runs, see configure's option --config-cache. 7527127668Sbms# It is not useful on other systems. If it contains results you don't 7528127668Sbms# want to keep, you may remove or edit it. 752917680Spst# 7530127668Sbms# config.status only pays attention to the cache file if you give it 7531127668Sbms# the --recheck option to rerun configure. 753217680Spst# 7533127668Sbms# `ac_cv_env_foo' variables (set or unset) will be overridden when 7534127668Sbms# loading this file, other *unset* `ac_cv_foo' will be assigned the 7535127668Sbms# following values. 7536127668Sbms 7537127668Sbms_ACEOF 7538127668Sbms 753926180Sfenner# The following way of writing the cache mishandles newlines in values, 754026180Sfenner# but we know of no workaround that is simple, portable, and efficient. 7541172683Smlaier# So, we kill variables containing newlines. 754217680Spst# Ultrix sh set writes to stderr and can't be redirected directly, 754317680Spst# and sets the high bit in the cache file unless we assign to the vars. 7544172683Smlaier( 7545172683Smlaier for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7546172683Smlaier eval ac_val=\$$ac_var 7547172683Smlaier case $ac_val in #( 7548172683Smlaier *${as_nl}*) 7549172683Smlaier case $ac_var in #( 7550252283Sdelphij *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7551252283Sdelphij$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7552172683Smlaier esac 7553172683Smlaier case $ac_var in #( 7554172683Smlaier _ | IFS | as_nl) ;; #( 7555252283Sdelphij BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7556252283Sdelphij *) { eval $ac_var=; unset $ac_var;} ;; 7557172683Smlaier esac ;; 7558172683Smlaier esac 7559172683Smlaier done 7560172683Smlaier 7561127668Sbms (set) 2>&1 | 7562172683Smlaier case $as_nl`(ac_space=' '; set) 2>&1` in #( 7563172683Smlaier *${as_nl}ac_space=\ *) 7564252283Sdelphij # `set' does not quote correctly, so add quotes: double-quote 7565252283Sdelphij # substitution turns \\\\ into \\, and sed turns \\ into \. 7566127668Sbms sed -n \ 7567172683Smlaier "s/'/'\\\\''/g; 7568172683Smlaier s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7569172683Smlaier ;; #( 7570127668Sbms *) 7571127668Sbms # `set' quotes correctly as required by POSIX, so do not add quotes. 7572172683Smlaier sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7573127668Sbms ;; 7574172683Smlaier esac | 7575172683Smlaier sort 7576172683Smlaier) | 7577127668Sbms sed ' 7578172683Smlaier /^ac_cv_env_/b end 7579127668Sbms t clear 7580172683Smlaier :clear 7581127668Sbms s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7582127668Sbms t end 7583172683Smlaier s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7584172683Smlaier :end' >>confcache 7585172683Smlaierif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7586172683Smlaier if test -w "$cache_file"; then 7587252283Sdelphij if test "x$cache_file" != "x/dev/null"; then 7588252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7589252283Sdelphij$as_echo "$as_me: updating cache $cache_file" >&6;} 7590252283Sdelphij if test ! -f "$cache_file" || test -h "$cache_file"; then 7591252283Sdelphij cat confcache >"$cache_file" 7592252283Sdelphij else 7593252283Sdelphij case $cache_file in #( 7594252283Sdelphij */* | ?:*) 7595252283Sdelphij mv -f confcache "$cache_file"$$ && 7596252283Sdelphij mv -f "$cache_file"$$ "$cache_file" ;; #( 7597252283Sdelphij *) 7598252283Sdelphij mv -f confcache "$cache_file" ;; 7599252283Sdelphij esac 7600252283Sdelphij fi 7601252283Sdelphij fi 760217680Spst else 7603252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7604252283Sdelphij$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 760517680Spst fi 760617680Spstfi 760717680Spstrm -f confcache 760817680Spst 760917680Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix 761017680Spst# Let make expand exec_prefix. 761117680Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 761217680Spst 761356893SfennerDEFS=-DHAVE_CONFIG_H 761417680Spst 7615127668Sbmsac_libobjs= 7616127668Sbmsac_ltlibobjs= 7617252283SdelphijU= 7618127668Sbmsfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7619127668Sbms # 1. Remove the extension, and $U if already installed. 7620172683Smlaier ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7621252283Sdelphij ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7622172683Smlaier # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7623172683Smlaier # will be set to the directory where LIBOBJS objects are built. 7624252283Sdelphij as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7625252283Sdelphij as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7626127668Sbmsdone 7627127668SbmsLIBOBJS=$ac_libobjs 7628127668Sbms 7629127668SbmsLTLIBOBJS=$ac_ltlibobjs 7630127668Sbms 7631127668Sbms 7632127668Sbms 7633252283Sdelphij: "${CONFIG_STATUS=./config.status}" 7634252283Sdelphijac_write_fail=0 7635127668Sbmsac_clean_files_save=$ac_clean_files 7636127668Sbmsac_clean_files="$ac_clean_files $CONFIG_STATUS" 7637252283Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7638252283Sdelphij$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7639252283Sdelphijas_write_fail=0 7640252283Sdelphijcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7641127668Sbms#! $SHELL 7642127668Sbms# Generated by $as_me. 764317680Spst# Run this file to recreate the current configuration. 764417680Spst# Compiler output produced by configure, useful for debugging 7645127668Sbms# configure, is in config.log if it exists. 764617680Spst 7647127668Sbmsdebug=false 7648127668Sbmsac_cs_recheck=false 7649127668Sbmsac_cs_silent=false 7650252283Sdelphij 7651127668SbmsSHELL=\${CONFIG_SHELL-$SHELL} 7652252283Sdelphijexport SHELL 7653252283Sdelphij_ASEOF 7654252283Sdelphijcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7655252283Sdelphij## -------------------- ## 7656252283Sdelphij## M4sh Initialization. ## 7657252283Sdelphij## -------------------- ## 7658127668Sbms 7659172683Smlaier# Be more Bourne compatible 7660172683SmlaierDUALCASE=1; export DUALCASE # for MKS sh 7661252283Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7662127668Sbms emulate sh 7663127668Sbms NULLCMD=: 7664252283Sdelphij # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7665127668Sbms # is contrary to our usage. Disable this feature. 7666127668Sbms alias -g '${1+"$@"}'='"$@"' 7667172683Smlaier setopt NO_GLOB_SUBST 7668172683Smlaierelse 7669252283Sdelphij case `(set -o) 2>/dev/null` in #( 7670252283Sdelphij *posix*) : 7671252283Sdelphij set -o posix ;; #( 7672252283Sdelphij *) : 7673252283Sdelphij ;; 7674172683Smlaieresac 7675127668Sbmsfi 7676127668Sbms 7677172683Smlaier 7678252283Sdelphijas_nl=' 7679252283Sdelphij' 7680252283Sdelphijexport as_nl 7681252283Sdelphij# Printing a long string crashes Solaris 7 /usr/bin/printf. 7682252283Sdelphijas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7683252283Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7684252283Sdelphijas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7685252283Sdelphij# Prefer a ksh shell builtin over an external printf program on Solaris, 7686252283Sdelphij# but without wasting forks for bash or zsh. 7687252283Sdelphijif test -z "$BASH_VERSION$ZSH_VERSION" \ 7688252283Sdelphij && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7689252283Sdelphij as_echo='print -r --' 7690252283Sdelphij as_echo_n='print -rn --' 7691252283Sdelphijelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7692252283Sdelphij as_echo='printf %s\n' 7693252283Sdelphij as_echo_n='printf %s' 7694252283Sdelphijelse 7695252283Sdelphij if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7696252283Sdelphij as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7697252283Sdelphij as_echo_n='/usr/ucb/echo -n' 7698172683Smlaier else 7699252283Sdelphij as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7700252283Sdelphij as_echo_n_body='eval 7701252283Sdelphij arg=$1; 7702252283Sdelphij case $arg in #( 7703252283Sdelphij *"$as_nl"*) 7704252283Sdelphij expr "X$arg" : "X\\(.*\\)$as_nl"; 7705252283Sdelphij arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7706252283Sdelphij esac; 7707252283Sdelphij expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7708252283Sdelphij ' 7709252283Sdelphij export as_echo_n_body 7710252283Sdelphij as_echo_n='sh -c $as_echo_n_body as_echo' 7711172683Smlaier fi 7712252283Sdelphij export as_echo_body 7713252283Sdelphij as_echo='sh -c $as_echo_body as_echo' 7714172683Smlaierfi 7715172683Smlaier 7716252283Sdelphij# The user is always right. 7717252283Sdelphijif test "${PATH_SEPARATOR+set}" != set; then 7718252283Sdelphij PATH_SEPARATOR=: 7719252283Sdelphij (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7720252283Sdelphij (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7721252283Sdelphij PATH_SEPARATOR=';' 7722252283Sdelphij } 7723127668Sbmsfi 7724127668Sbms 7725127668Sbms 7726172683Smlaier# IFS 7727172683Smlaier# We need space, tab and new line, in precisely that order. Quoting is 7728172683Smlaier# there to prevent editors from complaining about space-tab. 7729172683Smlaier# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7730172683Smlaier# splitting by setting IFS to empty value.) 7731172683SmlaierIFS=" "" $as_nl" 7732172683Smlaier 7733172683Smlaier# Find who we are. Look in the path if we contain no directory separator. 7734252283Sdelphijas_myself= 7735252283Sdelphijcase $0 in #(( 7736172683Smlaier *[\\/]* ) as_myself=$0 ;; 7737172683Smlaier *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7738172683Smlaierfor as_dir in $PATH 7739172683Smlaierdo 7740172683Smlaier IFS=$as_save_IFS 7741172683Smlaier test -z "$as_dir" && as_dir=. 7742252283Sdelphij test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7743252283Sdelphij done 7744172683SmlaierIFS=$as_save_IFS 7745172683Smlaier 7746172683Smlaier ;; 7747172683Smlaieresac 7748172683Smlaier# We did not find ourselves, most probably we were run as `sh COMMAND' 7749172683Smlaier# in which case we are not to be found in the path. 7750172683Smlaierif test "x$as_myself" = x; then 7751172683Smlaier as_myself=$0 7752172683Smlaierfi 7753172683Smlaierif test ! -f "$as_myself"; then 7754252283Sdelphij $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7755252283Sdelphij exit 1 7756172683Smlaierfi 7757172683Smlaier 7758252283Sdelphij# Unset variables that we do not need and which cause bugs (e.g. in 7759252283Sdelphij# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7760252283Sdelphij# suppresses any "Segmentation fault" message there. '((' could 7761252283Sdelphij# trigger a bug in pdksh 5.2.14. 7762252283Sdelphijfor as_var in BASH_ENV ENV MAIL MAILPATH 7763252283Sdelphijdo eval test x\${$as_var+set} = xset \ 7764252283Sdelphij && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7765172683Smlaierdone 7766127668SbmsPS1='$ ' 7767127668SbmsPS2='> ' 7768127668SbmsPS4='+ ' 7769127668Sbms 7770127668Sbms# NLS nuisances. 7771252283SdelphijLC_ALL=C 7772252283Sdelphijexport LC_ALL 7773252283SdelphijLANGUAGE=C 7774252283Sdelphijexport LANGUAGE 7775252283Sdelphij 7776252283Sdelphij# CDPATH. 7777252283Sdelphij(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7778252283Sdelphij 7779252283Sdelphij 7780252283Sdelphij# as_fn_error STATUS ERROR [LINENO LOG_FD] 7781252283Sdelphij# ---------------------------------------- 7782252283Sdelphij# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7783252283Sdelphij# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7784252283Sdelphij# script with STATUS, using 1 if that was 0. 7785252283Sdelphijas_fn_error () 7786252283Sdelphij{ 7787252283Sdelphij as_status=$1; test $as_status -eq 0 && as_status=1 7788252283Sdelphij if test "$4"; then 7789252283Sdelphij as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7790252283Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7791127668Sbms fi 7792252283Sdelphij $as_echo "$as_me: error: $2" >&2 7793252283Sdelphij as_fn_exit $as_status 7794252283Sdelphij} # as_fn_error 779517680Spst 7796252283Sdelphij 7797252283Sdelphij# as_fn_set_status STATUS 7798252283Sdelphij# ----------------------- 7799252283Sdelphij# Set $? to STATUS, without forking. 7800252283Sdelphijas_fn_set_status () 7801252283Sdelphij{ 7802252283Sdelphij return $1 7803252283Sdelphij} # as_fn_set_status 7804252283Sdelphij 7805252283Sdelphij# as_fn_exit STATUS 7806252283Sdelphij# ----------------- 7807252283Sdelphij# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7808252283Sdelphijas_fn_exit () 7809252283Sdelphij{ 7810252283Sdelphij set +e 7811252283Sdelphij as_fn_set_status $1 7812252283Sdelphij exit $1 7813252283Sdelphij} # as_fn_exit 7814252283Sdelphij 7815252283Sdelphij# as_fn_unset VAR 7816252283Sdelphij# --------------- 7817252283Sdelphij# Portably unset VAR. 7818252283Sdelphijas_fn_unset () 7819252283Sdelphij{ 7820252283Sdelphij { eval $1=; unset $1;} 7821252283Sdelphij} 7822252283Sdelphijas_unset=as_fn_unset 7823252283Sdelphij# as_fn_append VAR VALUE 7824252283Sdelphij# ---------------------- 7825252283Sdelphij# Append the text in VALUE to the end of the definition contained in VAR. Take 7826252283Sdelphij# advantage of any shell optimizations that allow amortized linear growth over 7827252283Sdelphij# repeated appends, instead of the typical quadratic growth present in naive 7828252283Sdelphij# implementations. 7829252283Sdelphijif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7830252283Sdelphij eval 'as_fn_append () 7831252283Sdelphij { 7832252283Sdelphij eval $1+=\$2 7833252283Sdelphij }' 7834252283Sdelphijelse 7835252283Sdelphij as_fn_append () 7836252283Sdelphij { 7837252283Sdelphij eval $1=\$$1\$2 7838252283Sdelphij } 7839252283Sdelphijfi # as_fn_append 7840252283Sdelphij 7841252283Sdelphij# as_fn_arith ARG... 7842252283Sdelphij# ------------------ 7843252283Sdelphij# Perform arithmetic evaluation on the ARGs, and store the result in the 7844252283Sdelphij# global $as_val. Take advantage of shells that can avoid forks. The arguments 7845252283Sdelphij# must be portable across $(()) and expr. 7846252283Sdelphijif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7847252283Sdelphij eval 'as_fn_arith () 7848252283Sdelphij { 7849252283Sdelphij as_val=$(( $* )) 7850252283Sdelphij }' 7851252283Sdelphijelse 7852252283Sdelphij as_fn_arith () 7853252283Sdelphij { 7854252283Sdelphij as_val=`expr "$@" || test $? -eq 1` 7855252283Sdelphij } 7856252283Sdelphijfi # as_fn_arith 7857252283Sdelphij 7858252283Sdelphij 7859172683Smlaierif expr a : '\(a\)' >/dev/null 2>&1 && 7860172683Smlaier test "X`expr 00001 : '.*\(...\)'`" = X001; then 7861127668Sbms as_expr=expr 7862127668Sbmselse 7863127668Sbms as_expr=false 7864127668Sbmsfi 786517680Spst 7866172683Smlaierif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7867127668Sbms as_basename=basename 7868127668Sbmselse 7869127668Sbms as_basename=false 7870127668Sbmsfi 787117680Spst 7872252283Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7873252283Sdelphij as_dirname=dirname 7874252283Sdelphijelse 7875252283Sdelphij as_dirname=false 7876252283Sdelphijfi 787717680Spst 7878172683Smlaieras_me=`$as_basename -- "$0" || 7879127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7880127668Sbms X"$0" : 'X\(//\)$' \| \ 7881172683Smlaier X"$0" : 'X\(/\)' \| . 2>/dev/null || 7882252283Sdelphij$as_echo X/"$0" | 7883172683Smlaier sed '/^.*\/\([^/][^/]*\)\/*$/{ 7884172683Smlaier s//\1/ 7885172683Smlaier q 7886172683Smlaier } 7887172683Smlaier /^X\/\(\/\/\)$/{ 7888172683Smlaier s//\1/ 7889172683Smlaier q 7890172683Smlaier } 7891172683Smlaier /^X\/\(\/\).*/{ 7892172683Smlaier s//\1/ 7893172683Smlaier q 7894172683Smlaier } 7895172683Smlaier s/.*/./; q'` 789626180Sfenner 7897252283Sdelphij# Avoid depending upon Character Ranges. 7898252283Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz' 7899252283Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7900252283Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS 7901252283Sdelphijas_cr_digits='0123456789' 7902252283Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits 790326180Sfenner 7904172683SmlaierECHO_C= ECHO_N= ECHO_T= 7905252283Sdelphijcase `echo -n x` in #((((( 7906172683Smlaier-n*) 7907252283Sdelphij case `echo 'xy\c'` in 7908172683Smlaier *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7909252283Sdelphij xy) ECHO_C='\c';; 7910252283Sdelphij *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7911252283Sdelphij ECHO_T=' ';; 7912172683Smlaier esac;; 7913172683Smlaier*) 7914172683Smlaier ECHO_N='-n';; 7915127668Sbmsesac 7916127668Sbms 7917127668Sbmsrm -f conf$$ conf$$.exe conf$$.file 7918172683Smlaierif test -d conf$$.dir; then 7919172683Smlaier rm -f conf$$.dir/conf$$.file 7920172683Smlaierelse 7921172683Smlaier rm -f conf$$.dir 7922252283Sdelphij mkdir conf$$.dir 2>/dev/null 7923172683Smlaierfi 7924252283Sdelphijif (echo >conf$$.file) 2>/dev/null; then 7925252283Sdelphij if ln -s conf$$.file conf$$ 2>/dev/null; then 7926252283Sdelphij as_ln_s='ln -s' 7927252283Sdelphij # ... but there are two gotchas: 7928252283Sdelphij # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7929252283Sdelphij # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7930252283Sdelphij # In both cases, we have to default to `cp -p'. 7931252283Sdelphij ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7932252283Sdelphij as_ln_s='cp -p' 7933252283Sdelphij elif ln conf$$.file conf$$ 2>/dev/null; then 7934252283Sdelphij as_ln_s=ln 7935252283Sdelphij else 7936127668Sbms as_ln_s='cp -p' 7937252283Sdelphij fi 7938127668Sbmselse 7939127668Sbms as_ln_s='cp -p' 7940127668Sbmsfi 7941172683Smlaierrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7942172683Smlaierrmdir conf$$.dir 2>/dev/null 7943127668Sbms 7944252283Sdelphij 7945252283Sdelphij# as_fn_mkdir_p 7946252283Sdelphij# ------------- 7947252283Sdelphij# Create "$as_dir" as a directory, including parents if necessary. 7948252283Sdelphijas_fn_mkdir_p () 7949252283Sdelphij{ 7950252283Sdelphij 7951252283Sdelphij case $as_dir in #( 7952252283Sdelphij -*) as_dir=./$as_dir;; 7953252283Sdelphij esac 7954252283Sdelphij test -d "$as_dir" || eval $as_mkdir_p || { 7955252283Sdelphij as_dirs= 7956252283Sdelphij while :; do 7957252283Sdelphij case $as_dir in #( 7958252283Sdelphij *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7959252283Sdelphij *) as_qdir=$as_dir;; 7960252283Sdelphij esac 7961252283Sdelphij as_dirs="'$as_qdir' $as_dirs" 7962252283Sdelphij as_dir=`$as_dirname -- "$as_dir" || 7963252283Sdelphij$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7964252283Sdelphij X"$as_dir" : 'X\(//\)[^/]' \| \ 7965252283Sdelphij X"$as_dir" : 'X\(//\)$' \| \ 7966252283Sdelphij X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7967252283Sdelphij$as_echo X"$as_dir" | 7968252283Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7969252283Sdelphij s//\1/ 7970252283Sdelphij q 7971252283Sdelphij } 7972252283Sdelphij /^X\(\/\/\)[^/].*/{ 7973252283Sdelphij s//\1/ 7974252283Sdelphij q 7975252283Sdelphij } 7976252283Sdelphij /^X\(\/\/\)$/{ 7977252283Sdelphij s//\1/ 7978252283Sdelphij q 7979252283Sdelphij } 7980252283Sdelphij /^X\(\/\).*/{ 7981252283Sdelphij s//\1/ 7982252283Sdelphij q 7983252283Sdelphij } 7984252283Sdelphij s/.*/./; q'` 7985252283Sdelphij test -d "$as_dir" && break 7986252283Sdelphij done 7987252283Sdelphij test -z "$as_dirs" || eval "mkdir $as_dirs" 7988252283Sdelphij } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7989252283Sdelphij 7990252283Sdelphij 7991252283Sdelphij} # as_fn_mkdir_p 7992127668Sbmsif mkdir -p . 2>/dev/null; then 7993252283Sdelphij as_mkdir_p='mkdir -p "$as_dir"' 7994127668Sbmselse 7995172683Smlaier test -d ./-p && rmdir ./-p 7996127668Sbms as_mkdir_p=false 7997127668Sbmsfi 7998127668Sbms 7999172683Smlaierif test -x / >/dev/null 2>&1; then 8000172683Smlaier as_test_x='test -x' 8001172683Smlaierelse 8002172683Smlaier if ls -dL / >/dev/null 2>&1; then 8003172683Smlaier as_ls_L_option=L 8004172683Smlaier else 8005172683Smlaier as_ls_L_option= 8006172683Smlaier fi 8007172683Smlaier as_test_x=' 8008172683Smlaier eval sh -c '\'' 8009172683Smlaier if test -d "$1"; then 8010252283Sdelphij test -d "$1/."; 8011172683Smlaier else 8012252283Sdelphij case $1 in #( 8013252283Sdelphij -*)set "./$1";; 8014172683Smlaier esac; 8015252283Sdelphij case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8016172683Smlaier ???[sx]*):;;*)false;;esac;fi 8017172683Smlaier '\'' sh 8018172683Smlaier ' 8019172683Smlaierfi 8020172683Smlaieras_executable_p=$as_test_x 8021127668Sbms 8022127668Sbms# Sed expression to map a string onto a valid CPP name. 8023172683Smlaieras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8024127668Sbms 8025127668Sbms# Sed expression to map a string onto a valid variable name. 8026172683Smlaieras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8027127668Sbms 8028127668Sbms 8029127668Sbmsexec 6>&1 8030252283Sdelphij## ----------------------------------- ## 8031252283Sdelphij## Main body of $CONFIG_STATUS script. ## 8032252283Sdelphij## ----------------------------------- ## 8033252283Sdelphij_ASEOF 8034252283Sdelphijtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8035127668Sbms 8036252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8037252283Sdelphij# Save the log message, to keep $0 and so on meaningful, and to 8038127668Sbms# report actual input values of CONFIG_FILES etc. instead of their 8039172683Smlaier# values after options handling. 8040172683Smlaierac_log=" 8041127668SbmsThis file was extended by $as_me, which was 8042252283Sdelphijgenerated by GNU Autoconf 2.68. Invocation command line was 8043127668Sbms 8044127668Sbms CONFIG_FILES = $CONFIG_FILES 8045127668Sbms CONFIG_HEADERS = $CONFIG_HEADERS 8046127668Sbms CONFIG_LINKS = $CONFIG_LINKS 8047127668Sbms CONFIG_COMMANDS = $CONFIG_COMMANDS 8048127668Sbms $ $0 $@ 8049127668Sbms 8050172683Smlaieron `(hostname || uname -n) 2>/dev/null | sed 1q` 8051172683Smlaier" 8052172683Smlaier 8053127668Sbms_ACEOF 8054127668Sbms 8055252283Sdelphijcase $ac_config_files in *" 8056252283Sdelphij"*) set x $ac_config_files; shift; ac_config_files=$*;; 8057252283Sdelphijesac 8058252283Sdelphij 8059252283Sdelphijcase $ac_config_headers in *" 8060252283Sdelphij"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8061252283Sdelphijesac 8062252283Sdelphij 8063252283Sdelphij 8064252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8065127668Sbms# Files that config.status was made for. 8066172683Smlaierconfig_files="$ac_config_files" 8067172683Smlaierconfig_headers="$ac_config_headers" 8068172683Smlaierconfig_commands="$ac_config_commands" 8069127668Sbms 8070172683Smlaier_ACEOF 8071127668Sbms 8072252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8073127668Sbmsac_cs_usage="\ 8074252283Sdelphij\`$as_me' instantiates files and other configuration actions 8075252283Sdelphijfrom templates according to the current configuration. Unless the files 8076252283Sdelphijand actions are specified as TAGs, all are instantiated by default. 8077127668Sbms 8078252283SdelphijUsage: $0 [OPTION]... [TAG]... 8079127668Sbms 8080127668Sbms -h, --help print this help, then exit 8081172683Smlaier -V, --version print version number and configuration settings, then exit 8082252283Sdelphij --config print configuration, then exit 8083252283Sdelphij -q, --quiet, --silent 8084252283Sdelphij do not print progress messages 8085127668Sbms -d, --debug don't remove temporary files 8086127668Sbms --recheck update $as_me by reconfiguring in the same conditions 8087252283Sdelphij --file=FILE[:TEMPLATE] 8088252283Sdelphij instantiate the configuration file FILE 8089252283Sdelphij --header=FILE[:TEMPLATE] 8090252283Sdelphij instantiate the configuration header FILE 8091127668Sbms 8092127668SbmsConfiguration files: 8093127668Sbms$config_files 8094127668Sbms 8095127668SbmsConfiguration headers: 8096127668Sbms$config_headers 8097127668Sbms 8098127668SbmsConfiguration commands: 8099127668Sbms$config_commands 8100127668Sbms 8101252283SdelphijReport bugs to the package provider." 8102172683Smlaier 8103127668Sbms_ACEOF 8104252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8105252283Sdelphijac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8106127668Sbmsac_cs_version="\\ 8107127668Sbmsconfig.status 8108252283Sdelphijconfigured by $0, generated by GNU Autoconf 2.68, 8109252283Sdelphij with options \\"\$ac_cs_config\\" 8110127668Sbms 8111252283SdelphijCopyright (C) 2010 Free Software Foundation, Inc. 8112127668SbmsThis config.status script is free software; the Free Software Foundation 8113127668Sbmsgives unlimited permission to copy, distribute and modify it." 8114172683Smlaier 8115172683Smlaierac_pwd='$ac_pwd' 8116172683Smlaiersrcdir='$srcdir' 8117172683SmlaierINSTALL='$INSTALL' 8118252283Sdelphijtest -n "\$AWK" || AWK=awk 8119127668Sbms_ACEOF 8120127668Sbms 8121252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8122252283Sdelphij# The default lists apply if the user does not specify any file. 8123127668Sbmsac_need_defaults=: 8124127668Sbmswhile test $# != 0 8125127668Sbmsdo 8126127668Sbms case $1 in 8127252283Sdelphij --*=?*) 8128172683Smlaier ac_option=`expr "X$1" : 'X\([^=]*\)='` 8129172683Smlaier ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8130127668Sbms ac_shift=: 8131127668Sbms ;; 8132252283Sdelphij --*=) 8133252283Sdelphij ac_option=`expr "X$1" : 'X\([^=]*\)='` 8134252283Sdelphij ac_optarg= 8135252283Sdelphij ac_shift=: 8136252283Sdelphij ;; 8137172683Smlaier *) 8138127668Sbms ac_option=$1 8139127668Sbms ac_optarg=$2 8140127668Sbms ac_shift=shift 8141127668Sbms ;; 8142127668Sbms esac 8143127668Sbms 8144127668Sbms case $ac_option in 8145127668Sbms # Handling of the options. 8146127668Sbms -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8147127668Sbms ac_cs_recheck=: ;; 8148172683Smlaier --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8149252283Sdelphij $as_echo "$ac_cs_version"; exit ;; 8150252283Sdelphij --config | --confi | --conf | --con | --co | --c ) 8151252283Sdelphij $as_echo "$ac_cs_config"; exit ;; 8152172683Smlaier --debug | --debu | --deb | --de | --d | -d ) 8153127668Sbms debug=: ;; 8154127668Sbms --file | --fil | --fi | --f ) 8155127668Sbms $ac_shift 8156252283Sdelphij case $ac_optarg in 8157252283Sdelphij *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8158252283Sdelphij '') as_fn_error $? "missing file argument" ;; 8159252283Sdelphij esac 8160252283Sdelphij as_fn_append CONFIG_FILES " '$ac_optarg'" 8161127668Sbms ac_need_defaults=false;; 8162127668Sbms --header | --heade | --head | --hea ) 8163127668Sbms $ac_shift 8164252283Sdelphij case $ac_optarg in 8165252283Sdelphij *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8166252283Sdelphij esac 8167252283Sdelphij as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8168127668Sbms ac_need_defaults=false;; 8169172683Smlaier --he | --h) 8170172683Smlaier # Conflict between --help and --header 8171252283Sdelphij as_fn_error $? "ambiguous option: \`$1' 8172252283SdelphijTry \`$0 --help' for more information.";; 8173172683Smlaier --help | --hel | -h ) 8174252283Sdelphij $as_echo "$ac_cs_usage"; exit ;; 8175127668Sbms -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8176127668Sbms | -silent | --silent | --silen | --sile | --sil | --si | --s) 8177127668Sbms ac_cs_silent=: ;; 8178127668Sbms 8179127668Sbms # This is an error. 8180252283Sdelphij -*) as_fn_error $? "unrecognized option: \`$1' 8181252283SdelphijTry \`$0 --help' for more information." ;; 8182127668Sbms 8183252283Sdelphij *) as_fn_append ac_config_targets " $1" 8184172683Smlaier ac_need_defaults=false ;; 8185127668Sbms 8186127668Sbms esac 8187127668Sbms shift 818826180Sfennerdone 8189127668Sbms 8190127668Sbmsac_configure_extra_args= 8191127668Sbms 8192127668Sbmsif $ac_cs_silent; then 8193127668Sbms exec 6>/dev/null 8194127668Sbms ac_configure_extra_args="$ac_configure_extra_args --silent" 819526180Sfennerfi 819626180Sfenner 8197127668Sbms_ACEOF 8198252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8199127668Sbmsif \$ac_cs_recheck; then 8200252283Sdelphij set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8201252283Sdelphij shift 8202252283Sdelphij \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8203252283Sdelphij CONFIG_SHELL='$SHELL' 8204172683Smlaier export CONFIG_SHELL 8205252283Sdelphij exec "\$@" 8206127668Sbmsfi 820717680Spst 8208127668Sbms_ACEOF 8209252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8210172683Smlaierexec 5>>config.log 8211172683Smlaier{ 8212172683Smlaier echo 8213172683Smlaier sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8214172683Smlaier## Running $as_me. ## 8215172683Smlaier_ASBOX 8216252283Sdelphij $as_echo "$ac_log" 8217172683Smlaier} >&5 8218127668Sbms 8219172683Smlaier_ACEOF 8220252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8221127668Sbms# 8222172683Smlaier# INIT-COMMANDS 8223127668Sbms# 8224127668Sbms 8225127668Sbms 8226127668Sbms_ACEOF 8227127668Sbms 8228252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8229127668Sbms 8230172683Smlaier# Handling of arguments. 8231127668Sbmsfor ac_config_target in $ac_config_targets 8232127668Sbmsdo 8233172683Smlaier case $ac_config_target in 8234172683Smlaier "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8235172683Smlaier "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 8236172683Smlaier "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8237214478Srpaulo "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;; 8238172683Smlaier 8239252283Sdelphij *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 824017680Spst esac 8241127668Sbmsdone 824217680Spst 8243172683Smlaier 8244127668Sbms# If the user did not use the arguments to specify the items to instantiate, 8245127668Sbms# then the envvar interface is used. Set only those that are not. 8246127668Sbms# We use the long form for the default assignment because of an extremely 8247127668Sbms# bizarre bug on SunOS 4.1.3. 8248127668Sbmsif $ac_need_defaults; then 8249127668Sbms test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8250127668Sbms test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8251127668Sbms test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8252127668Sbmsfi 825317680Spst 8254127668Sbms# Have a temporary directory for convenience. Make it in the build tree 8255172683Smlaier# simply because there is no reason against having it here, and in addition, 8256127668Sbms# creating and moving files from /tmp can sometimes cause problems. 8257172683Smlaier# Hook for its removal unless debugging. 8258172683Smlaier# Note that there is a small window in which the directory will not be cleaned: 8259172683Smlaier# after its creation but before its name has been assigned to `$tmp'. 8260127668Sbms$debug || 8261127668Sbms{ 8262252283Sdelphij tmp= ac_tmp= 8263172683Smlaier trap 'exit_status=$? 8264252283Sdelphij : "${ac_tmp:=$tmp}" 8265252283Sdelphij { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8266172683Smlaier' 0 8267252283Sdelphij trap 'as_fn_exit 1' 1 2 13 15 8268127668Sbms} 8269127668Sbms# Create a (secure) tmp directory for tmp files. 8270127668Sbms 8271127668Sbms{ 8272172683Smlaier tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8273252283Sdelphij test -d "$tmp" 8274127668Sbms} || 8275127668Sbms{ 8276172683Smlaier tmp=./conf$$-$RANDOM 8277172683Smlaier (umask 077 && mkdir "$tmp") 8278252283Sdelphij} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8279252283Sdelphijac_tmp=$tmp 8280127668Sbms 8281252283Sdelphij# Set up the scripts for CONFIG_FILES section. 8282252283Sdelphij# No need to generate them if there are no CONFIG_FILES. 8283252283Sdelphij# This happens for instance with `./config.status config.h'. 8284172683Smlaierif test -n "$CONFIG_FILES"; then 8285127668Sbms 8286252283Sdelphij 8287252283Sdelphijac_cr=`echo X | tr X '\015'` 8288252283Sdelphij# On cygwin, bash can eat \r inside `` if the user requested igncr. 8289252283Sdelphij# But we know of no other shell where ac_cr would be empty at this 8290252283Sdelphij# point, so we can use a bashism as a fallback. 8291252283Sdelphijif test "x$ac_cr" = x; then 8292252283Sdelphij eval ac_cr=\$\'\\r\' 8293252283Sdelphijfi 8294252283Sdelphijac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8295252283Sdelphijif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8296252283Sdelphij ac_cs_awk_cr='\\r' 8297252283Sdelphijelse 8298252283Sdelphij ac_cs_awk_cr=$ac_cr 8299252283Sdelphijfi 8300252283Sdelphij 8301252283Sdelphijecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 8302127668Sbms_ACEOF 8303127668Sbms 8304172683Smlaier 8305252283Sdelphij{ 8306252283Sdelphij echo "cat >conf$$subs.awk <<_ACEOF" && 8307252283Sdelphij echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8308252283Sdelphij echo "_ACEOF" 8309252283Sdelphij} >conf$$subs.sh || 8310252283Sdelphij as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8311252283Sdelphijac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8312172683Smlaierac_delim='%!_!# ' 8313172683Smlaierfor ac_last_try in false false false false false :; do 8314252283Sdelphij . ./conf$$subs.sh || 8315252283Sdelphij as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8316172683Smlaier 8317252283Sdelphij ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8318252283Sdelphij if test $ac_delim_n = $ac_delim_num; then 8319172683Smlaier break 8320172683Smlaier elif $ac_last_try; then 8321252283Sdelphij as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8322172683Smlaier else 8323172683Smlaier ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 832417680Spst fi 8325172683Smlaierdone 8326252283Sdelphijrm -f conf$$subs.sh 832717680Spst 8328252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8329252283Sdelphijcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8330252283Sdelphij_ACEOF 8331252283Sdelphijsed -n ' 8332252283Sdelphijh 8333252283Sdelphijs/^/S["/; s/!.*/"]=/ 8334252283Sdelphijp 8335252283Sdelphijg 8336252283Sdelphijs/^[^!]*!// 8337252283Sdelphij:repl 8338252283Sdelphijt repl 8339252283Sdelphijs/'"$ac_delim"'$// 8340252283Sdelphijt delim 8341252283Sdelphij:nl 8342252283Sdelphijh 8343252283Sdelphijs/\(.\{148\}\)..*/\1/ 8344252283Sdelphijt more1 8345252283Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8346252283Sdelphijp 8347252283Sdelphijn 8348252283Sdelphijb repl 8349252283Sdelphij:more1 8350252283Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8351252283Sdelphijp 8352252283Sdelphijg 8353252283Sdelphijs/.\{148\}// 8354252283Sdelphijt nl 8355252283Sdelphij:delim 8356252283Sdelphijh 8357252283Sdelphijs/\(.\{148\}\)..*/\1/ 8358252283Sdelphijt more2 8359252283Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/ 8360252283Sdelphijp 8361252283Sdelphijb 8362252283Sdelphij:more2 8363252283Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8364252283Sdelphijp 8365252283Sdelphijg 8366252283Sdelphijs/.\{148\}// 8367252283Sdelphijt delim 8368252283Sdelphij' <conf$$subs.awk | sed ' 8369252283Sdelphij/^[^""]/{ 8370252283Sdelphij N 8371252283Sdelphij s/\n// 8372252283Sdelphij} 8373252283Sdelphij' >>$CONFIG_STATUS || ac_write_fail=1 8374252283Sdelphijrm -f conf$$subs.awk 8375252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8376252283Sdelphij_ACAWK 8377252283Sdelphijcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8378252283Sdelphij for (key in S) S_is_set[key] = 1 8379252283Sdelphij FS = "" 8380172683Smlaier 8381252283Sdelphij} 8382252283Sdelphij{ 8383252283Sdelphij line = $ 0 8384252283Sdelphij nfields = split(line, field, "@") 8385252283Sdelphij substed = 0 8386252283Sdelphij len = length(field[1]) 8387252283Sdelphij for (i = 2; i < nfields; i++) { 8388252283Sdelphij key = field[i] 8389252283Sdelphij keylen = length(key) 8390252283Sdelphij if (S_is_set[key]) { 8391252283Sdelphij value = S[key] 8392252283Sdelphij line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8393252283Sdelphij len += length(value) + length(field[++i]) 8394252283Sdelphij substed = 1 8395252283Sdelphij } else 8396252283Sdelphij len += 1 + keylen 8397252283Sdelphij } 8398252283Sdelphij 8399252283Sdelphij print line 8400252283Sdelphij} 8401252283Sdelphij 8402252283Sdelphij_ACAWK 8403127668Sbms_ACEOF 8404252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8405252283Sdelphijif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8406252283Sdelphij sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8407252283Sdelphijelse 8408252283Sdelphij cat 8409252283Sdelphijfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8410252283Sdelphij || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8411172683Smlaier_ACEOF 8412172683Smlaier 8413252283Sdelphij# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8414252283Sdelphij# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8415172683Smlaier# trailing colons and then remove the whole line if VPATH becomes empty 8416172683Smlaier# (actually we leave an empty line to preserve line numbers). 8417172683Smlaierif test "x$srcdir" = x.; then 8418252283Sdelphij ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8419252283Sdelphijh 8420252283Sdelphijs/// 8421252283Sdelphijs/^/:/ 8422252283Sdelphijs/[ ]*$/:/ 8423252283Sdelphijs/:\$(srcdir):/:/g 8424252283Sdelphijs/:\${srcdir}:/:/g 8425252283Sdelphijs/:@srcdir@:/:/g 8426252283Sdelphijs/^:*// 8427172683Smlaiers/:*$// 8428252283Sdelphijx 8429252283Sdelphijs/\(=[ ]*\).*/\1/ 8430252283SdelphijG 8431252283Sdelphijs/\n// 8432172683Smlaiers/^[^=]*=[ ]*$// 8433172683Smlaier}' 8434172683Smlaierfi 8435172683Smlaier 8436252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8437172683Smlaierfi # test -n "$CONFIG_FILES" 8438172683Smlaier 8439252283Sdelphij# Set up the scripts for CONFIG_HEADERS section. 8440252283Sdelphij# No need to generate them if there are no CONFIG_HEADERS. 8441252283Sdelphij# This happens for instance with `./config.status Makefile'. 8442252283Sdelphijif test -n "$CONFIG_HEADERS"; then 8443252283Sdelphijcat >"$ac_tmp/defines.awk" <<\_ACAWK || 8444252283SdelphijBEGIN { 8445252283Sdelphij_ACEOF 8446172683Smlaier 8447252283Sdelphij# Transform confdefs.h into an awk script `defines.awk', embedded as 8448252283Sdelphij# here-document in config.status, that substitutes the proper values into 8449252283Sdelphij# config.h.in to produce config.h. 8450252283Sdelphij 8451252283Sdelphij# Create a delimiter string that does not exist in confdefs.h, to ease 8452252283Sdelphij# handling of long lines. 8453252283Sdelphijac_delim='%!_!# ' 8454252283Sdelphijfor ac_last_try in false false :; do 8455252283Sdelphij ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8456252283Sdelphij if test -z "$ac_tt"; then 8457252283Sdelphij break 8458252283Sdelphij elif $ac_last_try; then 8459252283Sdelphij as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8460252283Sdelphij else 8461252283Sdelphij ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8462252283Sdelphij fi 8463252283Sdelphijdone 8464252283Sdelphij 8465252283Sdelphij# For the awk script, D is an array of macro values keyed by name, 8466252283Sdelphij# likewise P contains macro parameters if any. Preserve backslash 8467252283Sdelphij# newline sequences. 8468252283Sdelphij 8469252283Sdelphijac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8470252283Sdelphijsed -n ' 8471252283Sdelphijs/.\{148\}/&'"$ac_delim"'/g 8472252283Sdelphijt rset 8473252283Sdelphij:rset 8474252283Sdelphijs/^[ ]*#[ ]*define[ ][ ]*/ / 8475252283Sdelphijt def 8476252283Sdelphijd 8477252283Sdelphij:def 8478252283Sdelphijs/\\$// 8479252283Sdelphijt bsnl 8480252283Sdelphijs/["\\]/\\&/g 8481252283Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8482252283SdelphijD["\1"]=" \3"/p 8483252283Sdelphijs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8484252283Sdelphijd 8485252283Sdelphij:bsnl 8486252283Sdelphijs/["\\]/\\&/g 8487252283Sdelphijs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8488252283SdelphijD["\1"]=" \3\\\\\\n"\\/p 8489252283Sdelphijt cont 8490252283Sdelphijs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8491252283Sdelphijt cont 8492252283Sdelphijd 8493252283Sdelphij:cont 8494252283Sdelphijn 8495252283Sdelphijs/.\{148\}/&'"$ac_delim"'/g 8496252283Sdelphijt clear 8497252283Sdelphij:clear 8498252283Sdelphijs/\\$// 8499252283Sdelphijt bsnlc 8500252283Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/"/p 8501252283Sdelphijd 8502252283Sdelphij:bsnlc 8503252283Sdelphijs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8504252283Sdelphijb cont 8505252283Sdelphij' <confdefs.h | sed ' 8506252283Sdelphijs/'"$ac_delim"'/"\\\ 8507252283Sdelphij"/g' >>$CONFIG_STATUS || ac_write_fail=1 8508252283Sdelphij 8509252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8510252283Sdelphij for (key in D) D_is_set[key] = 1 8511252283Sdelphij FS = "" 8512252283Sdelphij} 8513252283Sdelphij/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8514252283Sdelphij line = \$ 0 8515252283Sdelphij split(line, arg, " ") 8516252283Sdelphij if (arg[1] == "#") { 8517252283Sdelphij defundef = arg[2] 8518252283Sdelphij mac1 = arg[3] 8519252283Sdelphij } else { 8520252283Sdelphij defundef = substr(arg[1], 2) 8521252283Sdelphij mac1 = arg[2] 8522252283Sdelphij } 8523252283Sdelphij split(mac1, mac2, "(") #) 8524252283Sdelphij macro = mac2[1] 8525252283Sdelphij prefix = substr(line, 1, index(line, defundef) - 1) 8526252283Sdelphij if (D_is_set[macro]) { 8527252283Sdelphij # Preserve the white space surrounding the "#". 8528252283Sdelphij print prefix "define", macro P[macro] D[macro] 8529252283Sdelphij next 8530252283Sdelphij } else { 8531252283Sdelphij # Replace #undef with comments. This is necessary, for example, 8532252283Sdelphij # in the case of _POSIX_SOURCE, which is predefined and required 8533252283Sdelphij # on some systems where configure will not decide to define it. 8534252283Sdelphij if (defundef == "undef") { 8535252283Sdelphij print "/*", prefix defundef, macro, "*/" 8536252283Sdelphij next 8537252283Sdelphij } 8538252283Sdelphij } 8539252283Sdelphij} 8540252283Sdelphij{ print } 8541252283Sdelphij_ACAWK 8542252283Sdelphij_ACEOF 8543252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8544252283Sdelphij as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8545252283Sdelphijfi # test -n "$CONFIG_HEADERS" 8546252283Sdelphij 8547252283Sdelphij 8548252283Sdelphijeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 8549252283Sdelphijshift 8550252283Sdelphijfor ac_tag 8551172683Smlaierdo 8552172683Smlaier case $ac_tag in 8553172683Smlaier :[FHLC]) ac_mode=$ac_tag; continue;; 855417680Spst esac 8555172683Smlaier case $ac_mode$ac_tag in 8556172683Smlaier :[FHL]*:*);; 8557252283Sdelphij :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8558172683Smlaier :[FH]-) ac_tag=-:-;; 8559172683Smlaier :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8560172683Smlaier esac 8561172683Smlaier ac_save_IFS=$IFS 8562172683Smlaier IFS=: 8563172683Smlaier set x $ac_tag 8564172683Smlaier IFS=$ac_save_IFS 8565172683Smlaier shift 8566172683Smlaier ac_file=$1 8567172683Smlaier shift 856817680Spst 8569172683Smlaier case $ac_mode in 8570172683Smlaier :L) ac_source=$1;; 8571172683Smlaier :[FH]) 8572172683Smlaier ac_file_inputs= 8573172683Smlaier for ac_f 8574172683Smlaier do 8575172683Smlaier case $ac_f in 8576252283Sdelphij -) ac_f="$ac_tmp/stdin";; 8577172683Smlaier *) # Look for the file first in the build tree, then in the source tree 8578172683Smlaier # (if the path is not absolute). The absolute path cannot be DOS-style, 8579172683Smlaier # because $ac_f cannot contain `:'. 8580172683Smlaier test -f "$ac_f" || 8581172683Smlaier case $ac_f in 8582172683Smlaier [\\/$]*) false;; 8583172683Smlaier *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8584172683Smlaier esac || 8585252283Sdelphij as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8586172683Smlaier esac 8587252283Sdelphij case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8588252283Sdelphij as_fn_append ac_file_inputs " '$ac_f'" 8589172683Smlaier done 8590172683Smlaier 8591172683Smlaier # Let's still pretend it is `configure' which instantiates (i.e., don't 8592172683Smlaier # use $as_me), people would be surprised to read: 8593172683Smlaier # /* config.h. Generated by config.status. */ 8594252283Sdelphij configure_input='Generated from '` 8595252283Sdelphij $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8596252283Sdelphij `' by configure.' 8597172683Smlaier if test x"$ac_file" != x-; then 8598172683Smlaier configure_input="$ac_file. $configure_input" 8599252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8600252283Sdelphij$as_echo "$as_me: creating $ac_file" >&6;} 8601172683Smlaier fi 8602252283Sdelphij # Neutralize special characters interpreted by sed in replacement strings. 8603252283Sdelphij case $configure_input in #( 8604252283Sdelphij *\&* | *\|* | *\\* ) 8605252283Sdelphij ac_sed_conf_input=`$as_echo "$configure_input" | 8606252283Sdelphij sed 's/[\\\\&|]/\\\\&/g'`;; #( 8607252283Sdelphij *) ac_sed_conf_input=$configure_input;; 8608252283Sdelphij esac 8609172683Smlaier 8610172683Smlaier case $ac_tag in 8611252283Sdelphij *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8612252283Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8613172683Smlaier esac 8614172683Smlaier ;; 8615172683Smlaier esac 8616172683Smlaier 8617172683Smlaier ac_dir=`$as_dirname -- "$ac_file" || 8618127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8619172683Smlaier X"$ac_file" : 'X\(//\)[^/]' \| \ 8620172683Smlaier X"$ac_file" : 'X\(//\)$' \| \ 8621172683Smlaier X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8622252283Sdelphij$as_echo X"$ac_file" | 8623172683Smlaier sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8624172683Smlaier s//\1/ 8625172683Smlaier q 8626172683Smlaier } 8627172683Smlaier /^X\(\/\/\)[^/].*/{ 8628172683Smlaier s//\1/ 8629172683Smlaier q 8630172683Smlaier } 8631172683Smlaier /^X\(\/\/\)$/{ 8632172683Smlaier s//\1/ 8633172683Smlaier q 8634172683Smlaier } 8635172683Smlaier /^X\(\/\).*/{ 8636172683Smlaier s//\1/ 8637172683Smlaier q 8638172683Smlaier } 8639172683Smlaier s/.*/./; q'` 8640252283Sdelphij as_dir="$ac_dir"; as_fn_mkdir_p 8641127668Sbms ac_builddir=. 8642127668Sbms 8643172683Smlaiercase "$ac_dir" in 8644172683Smlaier.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8645172683Smlaier*) 8646252283Sdelphij ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8647172683Smlaier # A ".." for each directory in $ac_dir_suffix. 8648252283Sdelphij ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8649172683Smlaier case $ac_top_builddir_sub in 8650172683Smlaier "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8651172683Smlaier *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8652172683Smlaier esac ;; 8653172683Smlaieresac 8654172683Smlaierac_abs_top_builddir=$ac_pwd 8655172683Smlaierac_abs_builddir=$ac_pwd$ac_dir_suffix 8656172683Smlaier# for backward compatibility: 8657172683Smlaierac_top_builddir=$ac_top_build_prefix 8658127668Sbms 8659127668Sbmscase $srcdir in 8660172683Smlaier .) # We are building in place. 8661127668Sbms ac_srcdir=. 8662172683Smlaier ac_top_srcdir=$ac_top_builddir_sub 8663172683Smlaier ac_abs_top_srcdir=$ac_pwd ;; 8664172683Smlaier [\\/]* | ?:[\\/]* ) # Absolute name. 8665127668Sbms ac_srcdir=$srcdir$ac_dir_suffix; 8666172683Smlaier ac_top_srcdir=$srcdir 8667172683Smlaier ac_abs_top_srcdir=$srcdir ;; 8668172683Smlaier *) # Relative name. 8669172683Smlaier ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8670172683Smlaier ac_top_srcdir=$ac_top_build_prefix$srcdir 8671172683Smlaier ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8672127668Sbmsesac 8673172683Smlaierac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8674127668Sbms 8675127668Sbms 8676172683Smlaier case $ac_mode in 8677172683Smlaier :F) 8678172683Smlaier # 8679172683Smlaier # CONFIG_FILE 8680172683Smlaier # 8681172683Smlaier 8682127668Sbms case $INSTALL in 8683127668Sbms [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8684172683Smlaier *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 868517680Spst esac 8686172683Smlaier_ACEOF 868726180Sfenner 8688252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8689172683Smlaier# If the template does not know about datarootdir, expand it. 8690172683Smlaier# FIXME: This hack should be removed a few years after 2.60. 8691172683Smlaierac_datarootdir_hack=; ac_datarootdir_seen= 8692252283Sdelphijac_sed_dataroot=' 8693252283Sdelphij/datarootdir/ { 8694172683Smlaier p 8695172683Smlaier q 8696172683Smlaier} 8697172683Smlaier/@datadir@/p 8698172683Smlaier/@docdir@/p 8699172683Smlaier/@infodir@/p 8700172683Smlaier/@localedir@/p 8701252283Sdelphij/@mandir@/p' 8702252283Sdelphijcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8703172683Smlaier*datarootdir*) ac_datarootdir_seen=yes;; 8704172683Smlaier*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8705252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8706252283Sdelphij$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8707127668Sbms_ACEOF 8708252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8709172683Smlaier ac_datarootdir_hack=' 8710172683Smlaier s&@datadir@&$datadir&g 8711172683Smlaier s&@docdir@&$docdir&g 8712172683Smlaier s&@infodir@&$infodir&g 8713172683Smlaier s&@localedir@&$localedir&g 8714172683Smlaier s&@mandir@&$mandir&g 8715252283Sdelphij s&\\\${datarootdir}&$datarootdir&g' ;; 8716172683Smlaieresac 8717172683Smlaier_ACEOF 8718172683Smlaier 8719172683Smlaier# Neutralize VPATH when `$srcdir' = `.'. 8720172683Smlaier# Shell code in configure.ac might set extrasub. 8721172683Smlaier# FIXME: do we really want to maintain this feature? 8722252283Sdelphijcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8723252283Sdelphijac_sed_extra="$ac_vpsub 8724127668Sbms$extrasub 8725127668Sbms_ACEOF 8726252283Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8727127668Sbms:t 8728127668Sbms/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8729252283Sdelphijs|@configure_input@|$ac_sed_conf_input|;t t 8730172683Smlaiers&@top_builddir@&$ac_top_builddir_sub&;t t 8731252283Sdelphijs&@top_build_prefix@&$ac_top_build_prefix&;t t 8732172683Smlaiers&@srcdir@&$ac_srcdir&;t t 8733172683Smlaiers&@abs_srcdir@&$ac_abs_srcdir&;t t 8734172683Smlaiers&@top_srcdir@&$ac_top_srcdir&;t t 8735172683Smlaiers&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8736172683Smlaiers&@builddir@&$ac_builddir&;t t 8737172683Smlaiers&@abs_builddir@&$ac_abs_builddir&;t t 8738172683Smlaiers&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8739172683Smlaiers&@INSTALL@&$ac_INSTALL&;t t 8740172683Smlaier$ac_datarootdir_hack 8741252283Sdelphij" 8742252283Sdelphijeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8743252283Sdelphij >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8744127668Sbms 8745172683Smlaiertest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8746252283Sdelphij { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8747252283Sdelphij { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8748252283Sdelphij "$ac_tmp/out"`; test -z "$ac_out"; } && 8749252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8750252283Sdelphijwhich seems to be undefined. Please make sure it is defined" >&5 8751252283Sdelphij$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8752252283Sdelphijwhich seems to be undefined. Please make sure it is defined" >&2;} 8753127668Sbms 8754252283Sdelphij rm -f "$ac_tmp/stdin" 8755127668Sbms case $ac_file in 8756252283Sdelphij -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8757252283Sdelphij *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8758252283Sdelphij esac \ 8759252283Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8760172683Smlaier ;; 8761172683Smlaier :H) 8762172683Smlaier # 8763172683Smlaier # CONFIG_HEADER 8764172683Smlaier # 8765127668Sbms if test x"$ac_file" != x-; then 8766252283Sdelphij { 8767252283Sdelphij $as_echo "/* $configure_input */" \ 8768252283Sdelphij && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8769252283Sdelphij } >"$ac_tmp/config.h" \ 8770252283Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8771252283Sdelphij if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8772252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8773252283Sdelphij$as_echo "$as_me: $ac_file is unchanged" >&6;} 8774127668Sbms else 8775252283Sdelphij rm -f "$ac_file" 8776252283Sdelphij mv "$ac_tmp/config.h" "$ac_file" \ 8777252283Sdelphij || as_fn_error $? "could not create $ac_file" "$LINENO" 5 877856893Sfenner fi 8779127668Sbms else 8780252283Sdelphij $as_echo "/* $configure_input */" \ 8781252283Sdelphij && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8782252283Sdelphij || as_fn_error $? "could not create -" "$LINENO" 5 878356893Sfenner fi 8784172683Smlaier ;; 878517680Spst 8786252283Sdelphij :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8787252283Sdelphij$as_echo "$as_me: executing $ac_file commands" >&6;} 8788172683Smlaier ;; 8789172683Smlaier esac 879056893Sfenner 879175115Sfenner 8792172683Smlaier case $ac_file$ac_mode in 8793172683Smlaier "default-1":C) if test -f .devel; then 879475115Sfenner echo timestamp > stamp-h 879575115Sfenner cat Makefile-devel-adds >> Makefile 879675115Sfenner make depend 8797127668Sbmsfi ;; 8798172683Smlaier 8799127668Sbms esac 8800172683Smlaierdone # for ac_tag 880156893Sfenner 8802127668Sbms 8803252283Sdelphijas_fn_exit 0 8804127668Sbms_ACEOF 8805127668Sbmsac_clean_files=$ac_clean_files_save 880617680Spst 8807252283Sdelphijtest $ac_write_fail = 0 || 8808252283Sdelphij as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8809127668Sbms 8810252283Sdelphij 8811127668Sbms# configure is writing to config.log, and then calls config.status. 8812127668Sbms# config.status does its own redirection, appending to config.log. 8813127668Sbms# Unfortunately, on DOS this fails, as config.log is still kept open 8814127668Sbms# by configure, so config.status won't be able to write to it; its 8815127668Sbms# output is simply discarded. So we exec the FD to /dev/null, 8816127668Sbms# effectively closing config.log, so it can be properly (re)opened and 8817127668Sbms# appended to by config.status. When coming back to configure, we 8818127668Sbms# need to make the FD available again. 8819127668Sbmsif test "$no_create" != yes; then 8820127668Sbms ac_cs_success=: 8821127668Sbms ac_config_status_args= 8822127668Sbms test "$silent" = yes && 8823127668Sbms ac_config_status_args="$ac_config_status_args --quiet" 8824127668Sbms exec 5>/dev/null 8825127668Sbms $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8826127668Sbms exec 5>>config.log 8827127668Sbms # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8828127668Sbms # would make configure fail if this is the last instruction. 8829252283Sdelphij $ac_cs_success || as_fn_exit 1 8830127668Sbmsfi 8831252283Sdelphijif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8832252283Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8833252283Sdelphij$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8834252283Sdelphijfi 8835127668Sbms 883617680Spstexit 0 8837