1#! /bin/sh 2# From configure.in Revision: 1.168 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.67. 5# 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 9# Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1" 176 if (eval "$as_required") 2>/dev/null; then : 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 182 183else 184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 185as_found=false 186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 187do 188 IFS=$as_save_IFS 189 test -z "$as_dir" && as_dir=. 190 as_found=: 191 case $as_dir in #( 192 /*) 193 for as_base in sh bash ksh sh5; do 194 # Try only shells that exist, to save several forks. 195 as_shell=$as_dir/$as_base 196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 198 CONFIG_SHELL=$as_shell as_have_required=yes 199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 break 2 201fi 202fi 203 done;; 204 esac 205 as_found=false 206done 207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 209 CONFIG_SHELL=$SHELL as_have_required=yes 210fi; } 211IFS=$as_save_IFS 212 213 214 if test "x$CONFIG_SHELL" != x; then : 215 # We cannot yet assume a decent shell, so we have to provide a 216 # neutralization value for shells without unset; and this also 217 # works around shells that cannot unset nonexistent variables. 218 BASH_ENV=/dev/null 219 ENV=/dev/null 220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 221 export CONFIG_SHELL 222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 223fi 224 225 if test x$as_have_required = xno; then : 226 $as_echo "$0: This script requires a shell more modern than all" 227 $as_echo "$0: the shells that I found on your system." 228 if test x${ZSH_VERSION+set} = xset ; then 229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 230 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 231 else 232 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 233$0: including any error possibly output before this 234$0: message. Then install a modern shell, or manually run 235$0: the script under such a shell if you do have one." 236 fi 237 exit 1 238fi 239fi 240fi 241SHELL=${CONFIG_SHELL-/bin/sh} 242export SHELL 243# Unset more variables known to interfere with behavior of common tools. 244CLICOLOR_FORCE= GREP_OPTIONS= 245unset CLICOLOR_FORCE GREP_OPTIONS 246 247## --------------------- ## 248## M4sh Shell Functions. ## 249## --------------------- ## 250# as_fn_unset VAR 251# --------------- 252# Portably unset VAR. 253as_fn_unset () 254{ 255 { eval $1=; unset $1;} 256} 257as_unset=as_fn_unset 258 259# as_fn_set_status STATUS 260# ----------------------- 261# Set $? to STATUS, without forking. 262as_fn_set_status () 263{ 264 return $1 265} # as_fn_set_status 266 267# as_fn_exit STATUS 268# ----------------- 269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270as_fn_exit () 271{ 272 set +e 273 as_fn_set_status $1 274 exit $1 275} # as_fn_exit 276 277# as_fn_mkdir_p 278# ------------- 279# Create "$as_dir" as a directory, including parents if necessary. 280as_fn_mkdir_p () 281{ 282 283 case $as_dir in #( 284 -*) as_dir=./$as_dir;; 285 esac 286 test -d "$as_dir" || eval $as_mkdir_p || { 287 as_dirs= 288 while :; do 289 case $as_dir in #( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291 *) as_qdir=$as_dir;; 292 esac 293 as_dirs="'$as_qdir' $as_dirs" 294 as_dir=`$as_dirname -- "$as_dir" || 295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \ 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299$as_echo X"$as_dir" | 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301 s//\1/ 302 q 303 } 304 /^X\(\/\/\)[^/].*/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\).*/{ 313 s//\1/ 314 q 315 } 316 s/.*/./; q'` 317 test -d "$as_dir" && break 318 done 319 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 321 322 323} # as_fn_mkdir_p 324# as_fn_append VAR VALUE 325# ---------------------- 326# Append the text in VALUE to the end of the definition contained in VAR. Take 327# advantage of any shell optimizations that allow amortized linear growth over 328# repeated appends, instead of the typical quadratic growth present in naive 329# implementations. 330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331 eval 'as_fn_append () 332 { 333 eval $1+=\$2 334 }' 335else 336 as_fn_append () 337 { 338 eval $1=\$$1\$2 339 } 340fi # as_fn_append 341 342# as_fn_arith ARG... 343# ------------------ 344# Perform arithmetic evaluation on the ARGs, and store the result in the 345# global $as_val. Take advantage of shells that can avoid forks. The arguments 346# must be portable across $(()) and expr. 347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348 eval 'as_fn_arith () 349 { 350 as_val=$(( $* )) 351 }' 352else 353 as_fn_arith () 354 { 355 as_val=`expr "$@" || test $? -eq 1` 356 } 357fi # as_fn_arith 358 359 360# as_fn_error STATUS ERROR [LINENO LOG_FD] 361# ---------------------------------------- 362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364# script with STATUS, using 1 if that was 0. 365as_fn_error () 366{ 367 as_status=$1; test $as_status -eq 0 && as_status=1 368 if test "$4"; then 369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 371 fi 372 $as_echo "$as_me: error: $2" >&2 373 as_fn_exit $as_status 374} # as_fn_error 375 376if expr a : '\(a\)' >/dev/null 2>&1 && 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 378 as_expr=expr 379else 380 as_expr=false 381fi 382 383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 384 as_basename=basename 385else 386 as_basename=false 387fi 388 389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390 as_dirname=dirname 391else 392 as_dirname=false 393fi 394 395as_me=`$as_basename -- "$0" || 396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 397 X"$0" : 'X\(//\)$' \| \ 398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 399$as_echo X/"$0" | 400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 401 s//\1/ 402 q 403 } 404 /^X\/\(\/\/\)$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\).*/{ 409 s//\1/ 410 q 411 } 412 s/.*/./; q'` 413 414# Avoid depending upon Character Ranges. 415as_cr_letters='abcdefghijklmnopqrstuvwxyz' 416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 417as_cr_Letters=$as_cr_letters$as_cr_LETTERS 418as_cr_digits='0123456789' 419as_cr_alnum=$as_cr_Letters$as_cr_digits 420 421 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 427 sed -n ' 428 p 429 /[$]LINENO/= 430 ' <$as_myself | 431 sed ' 432 s/[$]LINENO.*/&-/ 433 t lineno 434 b 435 :lineno 436 N 437 :loop 438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 439 t loop 440 s/-\n.*// 441 ' >$as_me.lineno && 442 chmod +x "$as_me.lineno" || 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 444 445 # Don't try to exec as it changes $[0], causing all sort of problems 446 # (the dirname of $[0] is not the place where we might find the 447 # original and so on. Autoconf is especially sensitive to this). 448 . "./$as_me.lineno" 449 # Exit status is that of the last command. 450 exit 451} 452 453ECHO_C= ECHO_N= ECHO_T= 454case `echo -n x` in #((((( 455-n*) 456 case `echo 'xy\c'` in 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 458 xy) ECHO_C='\c';; 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460 ECHO_T=' ';; 461 esac;; 462*) 463 ECHO_N='-n';; 464esac 465 466rm -f conf$$ conf$$.exe conf$$.file 467if test -d conf$$.dir; then 468 rm -f conf$$.dir/conf$$.file 469else 470 rm -f conf$$.dir 471 mkdir conf$$.dir 2>/dev/null 472fi 473if (echo >conf$$.file) 2>/dev/null; then 474 if ln -s conf$$.file conf$$ 2>/dev/null; then 475 as_ln_s='ln -s' 476 # ... but there are two gotchas: 477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479 # In both cases, we have to default to `cp -p'. 480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481 as_ln_s='cp -p' 482 elif ln conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s=ln 484 else 485 as_ln_s='cp -p' 486 fi 487else 488 as_ln_s='cp -p' 489fi 490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 491rmdir conf$$.dir 2>/dev/null 492 493if mkdir -p . 2>/dev/null; then 494 as_mkdir_p='mkdir -p "$as_dir"' 495else 496 test -d ./-p && rmdir ./-p 497 as_mkdir_p=false 498fi 499 500if test -x / >/dev/null 2>&1; then 501 as_test_x='test -x' 502else 503 if ls -dL / >/dev/null 2>&1; then 504 as_ls_L_option=L 505 else 506 as_ls_L_option= 507 fi 508 as_test_x=' 509 eval sh -c '\'' 510 if test -d "$1"; then 511 test -d "$1/."; 512 else 513 case $1 in #( 514 -*)set "./$1";; 515 esac; 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517 ???[sx]*):;;*)false;;esac;fi 518 '\'' sh 519 ' 520fi 521as_executable_p=$as_test_x 522 523# Sed expression to map a string onto a valid CPP name. 524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 525 526# Sed expression to map a string onto a valid variable name. 527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 528 529 530test -n "$DJDIR" || exec 7<&0 </dev/null 531exec 6>&1 532 533# Name of the host. 534# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 535# so uname gets run too. 536ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 537 538# 539# Initializations. 540# 541ac_default_prefix=/usr/local 542ac_clean_files= 543ac_config_libobj_dir=. 544LIBOBJS= 545cross_compiling=no 546subdirs= 547MFLAGS= 548MAKEFLAGS= 549 550# Identity of this package. 551PACKAGE_NAME= 552PACKAGE_TARNAME= 553PACKAGE_VERSION= 554PACKAGE_STRING= 555PACKAGE_BUGREPORT= 556PACKAGE_URL= 557 558ac_unique_file="pcap.c" 559# Factoring default headers for most tests. 560ac_includes_default="\ 561#include <stdio.h> 562#ifdef HAVE_SYS_TYPES_H 563# include <sys/types.h> 564#endif 565#ifdef HAVE_SYS_STAT_H 566# include <sys/stat.h> 567#endif 568#ifdef STDC_HEADERS 569# include <stdlib.h> 570# include <stddef.h> 571#else 572# ifdef HAVE_STDLIB_H 573# include <stdlib.h> 574# endif 575#endif 576#ifdef HAVE_STRING_H 577# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 578# include <memory.h> 579# endif 580# include <string.h> 581#endif 582#ifdef HAVE_STRINGS_H 583# include <strings.h> 584#endif 585#ifdef HAVE_INTTYPES_H 586# include <inttypes.h> 587#endif 588#ifdef HAVE_STDINT_H 589# include <stdint.h> 590#endif 591#ifdef HAVE_UNISTD_H 592# include <unistd.h> 593#endif" 594 595ac_subst_vars='LTLIBOBJS 596INSTALL_DATA 597INSTALL_SCRIPT 598INSTALL_PROGRAM 599CAN_SRC 600PCAP_SUPPORT_CAN 601CANUSB_SRC 602PCAP_SUPPORT_CANUSB 603BT_SRC 604PCAP_SUPPORT_BT 605NETFILTER_SRC 606PCAP_SUPPORT_NETFILTER 607USB_SRC 608PCAP_SUPPORT_USB 609MAN_MISC_INFO 610MAN_FILE_FORMATS 611DYEXT 612SSRC 613ADDLARCHIVEOBJS 614ADDLOBJS 615V_RPATH_OPT 616V_SONAME_OPT 617V_SHLIB_OPT 618V_SHLIB_CMD 619V_PCAP 620V_INCLS 621V_FINDALLDEVS 622V_DEFS 623V_CCOPT 624AR 625RANLIB 626V_YACC 627V_LEX 628HAVE_LINUX_TPACKET_AUXDATA 629LIBOBJS 630EGREP 631GREP 632CPP 633OBJEXT 634EXEEXT 635ac_ct_CC 636CPPFLAGS 637LDFLAGS 638CFLAGS 639CC 640SHLICC2 641target_os 642target_vendor 643target_cpu 644target 645host_os 646host_vendor 647host_cpu 648host 649build_os 650build_vendor 651build_cpu 652build 653target_alias 654host_alias 655build_alias 656LIBS 657ECHO_T 658ECHO_N 659ECHO_C 660DEFS 661mandir 662localedir 663libdir 664psdir 665pdfdir 666dvidir 667htmldir 668infodir 669docdir 670oldincludedir 671includedir 672localstatedir 673sharedstatedir 674sysconfdir 675datadir 676datarootdir 677libexecdir 678sbindir 679bindir 680program_transform_name 681prefix 682exec_prefix 683PACKAGE_URL 684PACKAGE_BUGREPORT 685PACKAGE_STRING 686PACKAGE_VERSION 687PACKAGE_TARNAME 688PACKAGE_NAME 689PATH_SEPARATOR 690SHELL' 691ac_subst_files='' 692ac_user_opts=' 693enable_option_checking 694with_gcc 695enable_largefile 696enable_protochain 697with_sita 698with_pcap 699with_libnl 700enable_ipv6 701enable_optimizer_dbg 702enable_yydebug 703with_dag 704with_dag_includes 705with_dag_libraries 706with_septel 707with_snf 708with_snf_includes 709with_snf_libraries 710with_flex 711with_bison 712enable_universal 713enable_bluetooth 714enable_canusb 715enable_can 716' 717 ac_precious_vars='build_alias 718host_alias 719target_alias 720CC 721CFLAGS 722LDFLAGS 723LIBS 724CPPFLAGS 725CPP' 726 727 728# Initialize some variables set by options. 729ac_init_help= 730ac_init_version=false 731ac_unrecognized_opts= 732ac_unrecognized_sep= 733# The variables have the same names as the options, with 734# dashes changed to underlines. 735cache_file=/dev/null 736exec_prefix=NONE 737no_create= 738no_recursion= 739prefix=NONE 740program_prefix=NONE 741program_suffix=NONE 742program_transform_name=s,x,x, 743silent= 744site= 745srcdir= 746verbose= 747x_includes=NONE 748x_libraries=NONE 749 750# Installation directory options. 751# These are left unexpanded so users can "make install exec_prefix=/foo" 752# and all the variables that are supposed to be based on exec_prefix 753# by default will actually change. 754# Use braces instead of parens because sh, perl, etc. also accept them. 755# (The list follows the same order as the GNU Coding Standards.) 756bindir='${exec_prefix}/bin' 757sbindir='${exec_prefix}/sbin' 758libexecdir='${exec_prefix}/libexec' 759datarootdir='${prefix}/share' 760datadir='${datarootdir}' 761sysconfdir='${prefix}/etc' 762sharedstatedir='${prefix}/com' 763localstatedir='${prefix}/var' 764includedir='${prefix}/include' 765oldincludedir='/usr/include' 766docdir='${datarootdir}/doc/${PACKAGE}' 767infodir='${datarootdir}/info' 768htmldir='${docdir}' 769dvidir='${docdir}' 770pdfdir='${docdir}' 771psdir='${docdir}' 772libdir='${exec_prefix}/lib' 773localedir='${datarootdir}/locale' 774mandir='${datarootdir}/man' 775 776ac_prev= 777ac_dashdash= 778for ac_option 779do 780 # If the previous option needs an argument, assign it. 781 if test -n "$ac_prev"; then 782 eval $ac_prev=\$ac_option 783 ac_prev= 784 continue 785 fi 786 787 case $ac_option in 788 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 789 *=) ac_optarg= ;; 790 *) ac_optarg=yes ;; 791 esac 792 793 # Accept the important Cygnus configure options, so we can diagnose typos. 794 795 case $ac_dashdash$ac_option in 796 --) 797 ac_dashdash=yes ;; 798 799 -bindir | --bindir | --bindi | --bind | --bin | --bi) 800 ac_prev=bindir ;; 801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 802 bindir=$ac_optarg ;; 803 804 -build | --build | --buil | --bui | --bu) 805 ac_prev=build_alias ;; 806 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 807 build_alias=$ac_optarg ;; 808 809 -cache-file | --cache-file | --cache-fil | --cache-fi \ 810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 811 ac_prev=cache_file ;; 812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 814 cache_file=$ac_optarg ;; 815 816 --config-cache | -C) 817 cache_file=config.cache ;; 818 819 -datadir | --datadir | --datadi | --datad) 820 ac_prev=datadir ;; 821 -datadir=* | --datadir=* | --datadi=* | --datad=*) 822 datadir=$ac_optarg ;; 823 824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 825 | --dataroo | --dataro | --datar) 826 ac_prev=datarootdir ;; 827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 829 datarootdir=$ac_optarg ;; 830 831 -disable-* | --disable-*) 832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 833 # Reject names that are not valid shell variable names. 834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 835 as_fn_error $? "invalid feature name: $ac_useropt" 836 ac_useropt_orig=$ac_useropt 837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 838 case $ac_user_opts in 839 *" 840"enable_$ac_useropt" 841"*) ;; 842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 843 ac_unrecognized_sep=', ';; 844 esac 845 eval enable_$ac_useropt=no ;; 846 847 -docdir | --docdir | --docdi | --doc | --do) 848 ac_prev=docdir ;; 849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 850 docdir=$ac_optarg ;; 851 852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 853 ac_prev=dvidir ;; 854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 855 dvidir=$ac_optarg ;; 856 857 -enable-* | --enable-*) 858 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 859 # Reject names that are not valid shell variable names. 860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 861 as_fn_error $? "invalid feature name: $ac_useropt" 862 ac_useropt_orig=$ac_useropt 863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 864 case $ac_user_opts in 865 *" 866"enable_$ac_useropt" 867"*) ;; 868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 869 ac_unrecognized_sep=', ';; 870 esac 871 eval enable_$ac_useropt=\$ac_optarg ;; 872 873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 875 | --exec | --exe | --ex) 876 ac_prev=exec_prefix ;; 877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 879 | --exec=* | --exe=* | --ex=*) 880 exec_prefix=$ac_optarg ;; 881 882 -gas | --gas | --ga | --g) 883 # Obsolete; use --with-gas. 884 with_gas=yes ;; 885 886 -help | --help | --hel | --he | -h) 887 ac_init_help=long ;; 888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 889 ac_init_help=recursive ;; 890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 891 ac_init_help=short ;; 892 893 -host | --host | --hos | --ho) 894 ac_prev=host_alias ;; 895 -host=* | --host=* | --hos=* | --ho=*) 896 host_alias=$ac_optarg ;; 897 898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 899 ac_prev=htmldir ;; 900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 901 | --ht=*) 902 htmldir=$ac_optarg ;; 903 904 -includedir | --includedir | --includedi | --included | --include \ 905 | --includ | --inclu | --incl | --inc) 906 ac_prev=includedir ;; 907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 908 | --includ=* | --inclu=* | --incl=* | --inc=*) 909 includedir=$ac_optarg ;; 910 911 -infodir | --infodir | --infodi | --infod | --info | --inf) 912 ac_prev=infodir ;; 913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 914 infodir=$ac_optarg ;; 915 916 -libdir | --libdir | --libdi | --libd) 917 ac_prev=libdir ;; 918 -libdir=* | --libdir=* | --libdi=* | --libd=*) 919 libdir=$ac_optarg ;; 920 921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 922 | --libexe | --libex | --libe) 923 ac_prev=libexecdir ;; 924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 925 | --libexe=* | --libex=* | --libe=*) 926 libexecdir=$ac_optarg ;; 927 928 -localedir | --localedir | --localedi | --localed | --locale) 929 ac_prev=localedir ;; 930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 931 localedir=$ac_optarg ;; 932 933 -localstatedir | --localstatedir | --localstatedi | --localstated \ 934 | --localstate | --localstat | --localsta | --localst | --locals) 935 ac_prev=localstatedir ;; 936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 938 localstatedir=$ac_optarg ;; 939 940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 941 ac_prev=mandir ;; 942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 943 mandir=$ac_optarg ;; 944 945 -nfp | --nfp | --nf) 946 # Obsolete; use --without-fp. 947 with_fp=no ;; 948 949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 950 | --no-cr | --no-c | -n) 951 no_create=yes ;; 952 953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 955 no_recursion=yes ;; 956 957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 959 | --oldin | --oldi | --old | --ol | --o) 960 ac_prev=oldincludedir ;; 961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 964 oldincludedir=$ac_optarg ;; 965 966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 967 ac_prev=prefix ;; 968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 969 prefix=$ac_optarg ;; 970 971 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 972 | --program-pre | --program-pr | --program-p) 973 ac_prev=program_prefix ;; 974 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 976 program_prefix=$ac_optarg ;; 977 978 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 979 | --program-suf | --program-su | --program-s) 980 ac_prev=program_suffix ;; 981 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 983 program_suffix=$ac_optarg ;; 984 985 -program-transform-name | --program-transform-name \ 986 | --program-transform-nam | --program-transform-na \ 987 | --program-transform-n | --program-transform- \ 988 | --program-transform | --program-transfor \ 989 | --program-transfo | --program-transf \ 990 | --program-trans | --program-tran \ 991 | --progr-tra | --program-tr | --program-t) 992 ac_prev=program_transform_name ;; 993 -program-transform-name=* | --program-transform-name=* \ 994 | --program-transform-nam=* | --program-transform-na=* \ 995 | --program-transform-n=* | --program-transform-=* \ 996 | --program-transform=* | --program-transfor=* \ 997 | --program-transfo=* | --program-transf=* \ 998 | --program-trans=* | --program-tran=* \ 999 | --progr-tra=* | --program-tr=* | --program-t=*) 1000 program_transform_name=$ac_optarg ;; 1001 1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1003 ac_prev=pdfdir ;; 1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1005 pdfdir=$ac_optarg ;; 1006 1007 -psdir | --psdir | --psdi | --psd | --ps) 1008 ac_prev=psdir ;; 1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1010 psdir=$ac_optarg ;; 1011 1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1013 | -silent | --silent | --silen | --sile | --sil) 1014 silent=yes ;; 1015 1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1017 ac_prev=sbindir ;; 1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1019 | --sbi=* | --sb=*) 1020 sbindir=$ac_optarg ;; 1021 1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1024 | --sharedst | --shareds | --shared | --share | --shar \ 1025 | --sha | --sh) 1026 ac_prev=sharedstatedir ;; 1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1030 | --sha=* | --sh=*) 1031 sharedstatedir=$ac_optarg ;; 1032 1033 -site | --site | --sit) 1034 ac_prev=site ;; 1035 -site=* | --site=* | --sit=*) 1036 site=$ac_optarg ;; 1037 1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1039 ac_prev=srcdir ;; 1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1041 srcdir=$ac_optarg ;; 1042 1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1044 | --syscon | --sysco | --sysc | --sys | --sy) 1045 ac_prev=sysconfdir ;; 1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1048 sysconfdir=$ac_optarg ;; 1049 1050 -target | --target | --targe | --targ | --tar | --ta | --t) 1051 ac_prev=target_alias ;; 1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1053 target_alias=$ac_optarg ;; 1054 1055 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1056 verbose=yes ;; 1057 1058 -version | --version | --versio | --versi | --vers | -V) 1059 ac_init_version=: ;; 1060 1061 -with-* | --with-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid package name: $ac_useropt" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"with_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval with_$ac_useropt=\$ac_optarg ;; 1076 1077 -without-* | --without-*) 1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1079 # Reject names that are not valid shell variable names. 1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1081 as_fn_error $? "invalid package name: $ac_useropt" 1082 ac_useropt_orig=$ac_useropt 1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1084 case $ac_user_opts in 1085 *" 1086"with_$ac_useropt" 1087"*) ;; 1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1089 ac_unrecognized_sep=', ';; 1090 esac 1091 eval with_$ac_useropt=no ;; 1092 1093 --x) 1094 # Obsolete; use --with-x. 1095 with_x=yes ;; 1096 1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1098 | --x-incl | --x-inc | --x-in | --x-i) 1099 ac_prev=x_includes ;; 1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1102 x_includes=$ac_optarg ;; 1103 1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1106 ac_prev=x_libraries ;; 1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1109 x_libraries=$ac_optarg ;; 1110 1111 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1112Try \`$0 --help' for more information" 1113 ;; 1114 1115 *=*) 1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1117 # Reject names that are not valid shell variable names. 1118 case $ac_envvar in #( 1119 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1120 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1121 esac 1122 eval $ac_envvar=\$ac_optarg 1123 export $ac_envvar ;; 1124 1125 *) 1126 # FIXME: should be removed in autoconf 3.0. 1127 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1129 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1131 ;; 1132 1133 esac 1134done 1135 1136if test -n "$ac_prev"; then 1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1138 as_fn_error $? "missing argument to $ac_option" 1139fi 1140 1141if test -n "$ac_unrecognized_opts"; then 1142 case $enable_option_checking in 1143 no) ;; 1144 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1145 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1146 esac 1147fi 1148 1149# Check all directory arguments for consistency. 1150for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1151 datadir sysconfdir sharedstatedir localstatedir includedir \ 1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1153 libdir localedir mandir 1154do 1155 eval ac_val=\$$ac_var 1156 # Remove trailing slashes. 1157 case $ac_val in 1158 */ ) 1159 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1160 eval $ac_var=\$ac_val;; 1161 esac 1162 # Be sure to have absolute directory names. 1163 case $ac_val in 1164 [\\/$]* | ?:[\\/]* ) continue;; 1165 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1166 esac 1167 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1168done 1169 1170# There might be people who depend on the old broken behavior: `$host' 1171# used to hold the argument of --host etc. 1172# FIXME: To remove some day. 1173build=$build_alias 1174host=$host_alias 1175target=$target_alias 1176 1177# FIXME: To remove some day. 1178if test "x$host_alias" != x; then 1179 if test "x$build_alias" = x; then 1180 cross_compiling=maybe 1181 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1182 If a cross compiler is detected then cross compile mode will be used" >&2 1183 elif test "x$build_alias" != "x$host_alias"; then 1184 cross_compiling=yes 1185 fi 1186fi 1187 1188ac_tool_prefix= 1189test -n "$host_alias" && ac_tool_prefix=$host_alias- 1190 1191test "$silent" = yes && exec 6>/dev/null 1192 1193 1194ac_pwd=`pwd` && test -n "$ac_pwd" && 1195ac_ls_di=`ls -di .` && 1196ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1197 as_fn_error $? "working directory cannot be determined" 1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1199 as_fn_error $? "pwd does not report name of working directory" 1200 1201 1202# Find the source files, if location was not specified. 1203if test -z "$srcdir"; then 1204 ac_srcdir_defaulted=yes 1205 # Try the directory containing this script, then the parent directory. 1206 ac_confdir=`$as_dirname -- "$as_myself" || 1207$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1208 X"$as_myself" : 'X\(//\)[^/]' \| \ 1209 X"$as_myself" : 'X\(//\)$' \| \ 1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1211$as_echo X"$as_myself" | 1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1213 s//\1/ 1214 q 1215 } 1216 /^X\(\/\/\)[^/].*/{ 1217 s//\1/ 1218 q 1219 } 1220 /^X\(\/\/\)$/{ 1221 s//\1/ 1222 q 1223 } 1224 /^X\(\/\).*/{ 1225 s//\1/ 1226 q 1227 } 1228 s/.*/./; q'` 1229 srcdir=$ac_confdir 1230 if test ! -r "$srcdir/$ac_unique_file"; then 1231 srcdir=.. 1232 fi 1233else 1234 ac_srcdir_defaulted=no 1235fi 1236if test ! -r "$srcdir/$ac_unique_file"; then 1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1238 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1239fi 1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1241ac_abs_confdir=`( 1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1243 pwd)` 1244# When building in place, set srcdir=. 1245if test "$ac_abs_confdir" = "$ac_pwd"; then 1246 srcdir=. 1247fi 1248# Remove unnecessary trailing slashes from srcdir. 1249# Double slashes in file names in object file debugging info 1250# mess up M-x gdb in Emacs. 1251case $srcdir in 1252*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1253esac 1254for ac_var in $ac_precious_vars; do 1255 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1256 eval ac_env_${ac_var}_value=\$${ac_var} 1257 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1258 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1259done 1260 1261# 1262# Report the --help message. 1263# 1264if test "$ac_init_help" = "long"; then 1265 # Omit some internal or obsolete options to make the list less imposing. 1266 # This message is too long to be a string in the A/UX 3.1 sh. 1267 cat <<_ACEOF 1268\`configure' configures this package to adapt to many kinds of systems. 1269 1270Usage: $0 [OPTION]... [VAR=VALUE]... 1271 1272To assign environment variables (e.g., CC, CFLAGS...), specify them as 1273VAR=VALUE. See below for descriptions of some of the useful variables. 1274 1275Defaults for the options are specified in brackets. 1276 1277Configuration: 1278 -h, --help display this help and exit 1279 --help=short display options specific to this package 1280 --help=recursive display the short help of all the included packages 1281 -V, --version display version information and exit 1282 -q, --quiet, --silent do not print \`checking ...' messages 1283 --cache-file=FILE cache test results in FILE [disabled] 1284 -C, --config-cache alias for \`--cache-file=config.cache' 1285 -n, --no-create do not create output files 1286 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1287 1288Installation directories: 1289 --prefix=PREFIX install architecture-independent files in PREFIX 1290 [$ac_default_prefix] 1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1292 [PREFIX] 1293 1294By default, \`make install' will install all the files in 1295\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1296an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1297for instance \`--prefix=\$HOME'. 1298 1299For better control, use the options below. 1300 1301Fine tuning of the installation directories: 1302 --bindir=DIR user executables [EPREFIX/bin] 1303 --sbindir=DIR system admin executables [EPREFIX/sbin] 1304 --libexecdir=DIR program executables [EPREFIX/libexec] 1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1308 --libdir=DIR object code libraries [EPREFIX/lib] 1309 --includedir=DIR C header files [PREFIX/include] 1310 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1313 --infodir=DIR info documentation [DATAROOTDIR/info] 1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1315 --mandir=DIR man documentation [DATAROOTDIR/man] 1316 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1317 --htmldir=DIR html documentation [DOCDIR] 1318 --dvidir=DIR dvi documentation [DOCDIR] 1319 --pdfdir=DIR pdf documentation [DOCDIR] 1320 --psdir=DIR ps documentation [DOCDIR] 1321_ACEOF 1322 1323 cat <<\_ACEOF 1324 1325System types: 1326 --build=BUILD configure for building on BUILD [guessed] 1327 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1328 --target=TARGET configure for building compilers for TARGET [HOST] 1329_ACEOF 1330fi 1331 1332if test -n "$ac_init_help"; then 1333 1334 cat <<\_ACEOF 1335 1336Optional Features: 1337 --disable-option-checking ignore unrecognized --enable/--with options 1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1340 --disable-largefile omit support for large files 1341 --disable-protochain disable \"protochain\" insn 1342 --enable-ipv6 build IPv6-capable version [default=yes, if 1343 getaddrinfo available] 1344 --enable-optimizer-dbg build optimizer debugging code 1345 --enable-yydebug build parser debugging code 1346 --disable-universal don't build universal on OS X 1347 --enable-bluetooth enable Bluetooth support [default=yes, if support 1348 available] 1349 --enable-canusb enable canusb support [default=yes, if support 1350 available] 1351 1352 --enable-can enable CAN support [default=yes, if support 1353 available] 1354 1355Optional Packages: 1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1358 --without-gcc don't use gcc 1359 --with-sita include SITA support 1360 --with-pcap=TYPE use packet capture TYPE 1361 --without-libnl disable libnl support [default=yes, on Linux, if 1362 present] 1363 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR; 1364 default="yes" on BSD and Linux if present] 1365 --with-dag-includes=DIR Endace DAG include directory 1366 --with-dag-libraries=DIR 1367 Endace DAG library directory 1368 --with-septel[=DIR] include Septel support (located in directory DIR, if 1369 supplied). [default=yes, on Linux, if present] 1370 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR; 1371 default="yes" on BSD and Linux if present] 1372 --with-snf-includes=DIR Myricom SNF include directory 1373 --with-snf-libraries=DIR 1374 Myricom SNF library directory 1375 --without-flex don't use flex 1376 --without-bison don't use bison 1377 1378Some influential environment variables: 1379 CC C compiler command 1380 CFLAGS C compiler flags 1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1382 nonstandard directory <lib dir> 1383 LIBS libraries to pass to the linker, e.g. -l<library> 1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1385 you have headers in a nonstandard directory <include dir> 1386 CPP C preprocessor 1387 1388Use these variables to override the choices made by `configure' or to help 1389it to find libraries and programs with nonstandard names/locations. 1390 1391Report bugs to the package provider. 1392_ACEOF 1393ac_status=$? 1394fi 1395 1396if test "$ac_init_help" = "recursive"; then 1397 # If there are subdirs, report their specific --help. 1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1399 test -d "$ac_dir" || 1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1401 continue 1402 ac_builddir=. 1403 1404case "$ac_dir" in 1405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1406*) 1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1408 # A ".." for each directory in $ac_dir_suffix. 1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1410 case $ac_top_builddir_sub in 1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1413 esac ;; 1414esac 1415ac_abs_top_builddir=$ac_pwd 1416ac_abs_builddir=$ac_pwd$ac_dir_suffix 1417# for backward compatibility: 1418ac_top_builddir=$ac_top_build_prefix 1419 1420case $srcdir in 1421 .) # We are building in place. 1422 ac_srcdir=. 1423 ac_top_srcdir=$ac_top_builddir_sub 1424 ac_abs_top_srcdir=$ac_pwd ;; 1425 [\\/]* | ?:[\\/]* ) # Absolute name. 1426 ac_srcdir=$srcdir$ac_dir_suffix; 1427 ac_top_srcdir=$srcdir 1428 ac_abs_top_srcdir=$srcdir ;; 1429 *) # Relative name. 1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1431 ac_top_srcdir=$ac_top_build_prefix$srcdir 1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1433esac 1434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1435 1436 cd "$ac_dir" || { ac_status=$?; continue; } 1437 # Check for guested configure. 1438 if test -f "$ac_srcdir/configure.gnu"; then 1439 echo && 1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1441 elif test -f "$ac_srcdir/configure"; then 1442 echo && 1443 $SHELL "$ac_srcdir/configure" --help=recursive 1444 else 1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1446 fi || ac_status=$? 1447 cd "$ac_pwd" || { ac_status=$?; break; } 1448 done 1449fi 1450 1451test -n "$ac_init_help" && exit $ac_status 1452if $ac_init_version; then 1453 cat <<\_ACEOF 1454configure 1455generated by GNU Autoconf 2.67 1456 1457Copyright (C) 2010 Free Software Foundation, Inc. 1458This configure script is free software; the Free Software Foundation 1459gives unlimited permission to copy, distribute and modify it. 1460_ACEOF 1461 exit 1462fi 1463 1464## ------------------------ ## 1465## Autoconf initialization. ## 1466## ------------------------ ## 1467 1468# ac_fn_c_try_compile LINENO 1469# -------------------------- 1470# Try to compile conftest.$ac_ext, and return whether this succeeded. 1471ac_fn_c_try_compile () 1472{ 1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1474 rm -f conftest.$ac_objext 1475 if { { ac_try="$ac_compile" 1476case "(($ac_try" in 1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1478 *) ac_try_echo=$ac_try;; 1479esac 1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1481$as_echo "$ac_try_echo"; } >&5 1482 (eval "$ac_compile") 2>conftest.err 1483 ac_status=$? 1484 if test -s conftest.err; then 1485 grep -v '^ *+' conftest.err >conftest.er1 1486 cat conftest.er1 >&5 1487 mv -f conftest.er1 conftest.err 1488 fi 1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1490 test $ac_status = 0; } && { 1491 test -z "$ac_c_werror_flag" || 1492 test ! -s conftest.err 1493 } && test -s conftest.$ac_objext; then : 1494 ac_retval=0 1495else 1496 $as_echo "$as_me: failed program was:" >&5 1497sed 's/^/| /' conftest.$ac_ext >&5 1498 1499 ac_retval=1 1500fi 1501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1502 as_fn_set_status $ac_retval 1503 1504} # ac_fn_c_try_compile 1505 1506# ac_fn_c_try_cpp LINENO 1507# ---------------------- 1508# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1509ac_fn_c_try_cpp () 1510{ 1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1512 if { { ac_try="$ac_cpp conftest.$ac_ext" 1513case "(($ac_try" in 1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1515 *) ac_try_echo=$ac_try;; 1516esac 1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1518$as_echo "$ac_try_echo"; } >&5 1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1520 ac_status=$? 1521 if test -s conftest.err; then 1522 grep -v '^ *+' conftest.err >conftest.er1 1523 cat conftest.er1 >&5 1524 mv -f conftest.er1 conftest.err 1525 fi 1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1527 test $ac_status = 0; } > conftest.i && { 1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1529 test ! -s conftest.err 1530 }; then : 1531 ac_retval=0 1532else 1533 $as_echo "$as_me: failed program was:" >&5 1534sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537fi 1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1539 as_fn_set_status $ac_retval 1540 1541} # ac_fn_c_try_cpp 1542 1543# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1544# ------------------------------------------------------- 1545# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1546# the include files in INCLUDES and setting the cache variable VAR 1547# accordingly. 1548ac_fn_c_check_header_mongrel () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 if eval "test \"\${$3+set}\"" = set; then : 1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1553$as_echo_n "checking for $2... " >&6; } 1554if eval "test \"\${$3+set}\"" = set; then : 1555 $as_echo_n "(cached) " >&6 1556fi 1557eval ac_res=\$$3 1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1559$as_echo "$ac_res" >&6; } 1560else 1561 # Is the header compilable? 1562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1563$as_echo_n "checking $2 usability... " >&6; } 1564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1565/* end confdefs.h. */ 1566$4 1567#include <$2> 1568_ACEOF 1569if ac_fn_c_try_compile "$LINENO"; then : 1570 ac_header_compiler=yes 1571else 1572 ac_header_compiler=no 1573fi 1574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1576$as_echo "$ac_header_compiler" >&6; } 1577 1578# Is the header present? 1579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1580$as_echo_n "checking $2 presence... " >&6; } 1581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1582/* end confdefs.h. */ 1583#include <$2> 1584_ACEOF 1585if ac_fn_c_try_cpp "$LINENO"; then : 1586 ac_header_preproc=yes 1587else 1588 ac_header_preproc=no 1589fi 1590rm -f conftest.err conftest.i conftest.$ac_ext 1591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1592$as_echo "$ac_header_preproc" >&6; } 1593 1594# So? What about this header? 1595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1596 yes:no: ) 1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1598$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1600$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1601 ;; 1602 no:yes:* ) 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1604$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1606$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1608$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1610$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1612$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1613 ;; 1614esac 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616$as_echo_n "checking for $2... " >&6; } 1617if eval "test \"\${$3+set}\"" = set; then : 1618 $as_echo_n "(cached) " >&6 1619else 1620 eval "$3=\$ac_header_compiler" 1621fi 1622eval ac_res=\$$3 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624$as_echo "$ac_res" >&6; } 1625fi 1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1627 1628} # ac_fn_c_check_header_mongrel 1629 1630# ac_fn_c_try_run LINENO 1631# ---------------------- 1632# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1633# that executables *can* be run. 1634ac_fn_c_try_run () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_link" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_link") 2>&5 1645 ac_status=$? 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1648 { { case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_try") 2>&5 1655 ac_status=$? 1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; }; }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: program exited with status $ac_status" >&5 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=$ac_status 1665fi 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_run 1671 1672# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1673# ------------------------------------------------------- 1674# Tests whether HEADER exists and can be compiled using the include files in 1675# INCLUDES, setting the cache variable VAR accordingly. 1676ac_fn_c_check_header_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1680$as_echo_n "checking for $2... " >&6; } 1681if eval "test \"\${$3+set}\"" = set; then : 1682 $as_echo_n "(cached) " >&6 1683else 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685/* end confdefs.h. */ 1686$4 1687#include <$2> 1688_ACEOF 1689if ac_fn_c_try_compile "$LINENO"; then : 1690 eval "$3=yes" 1691else 1692 eval "$3=no" 1693fi 1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1700 1701} # ac_fn_c_check_header_compile 1702 1703# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1704# ------------------------------------------- 1705# Tests whether TYPE exists after having included INCLUDES, setting cache 1706# variable VAR accordingly. 1707ac_fn_c_check_type () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711$as_echo_n "checking for $2... " >&6; } 1712if eval "test \"\${$3+set}\"" = set; then : 1713 $as_echo_n "(cached) " >&6 1714else 1715 eval "$3=no" 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1717/* end confdefs.h. */ 1718$4 1719int 1720main () 1721{ 1722if (sizeof ($2)) 1723 return 0; 1724 ; 1725 return 0; 1726} 1727_ACEOF 1728if ac_fn_c_try_compile "$LINENO"; then : 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731$4 1732int 1733main () 1734{ 1735if (sizeof (($2))) 1736 return 0; 1737 ; 1738 return 0; 1739} 1740_ACEOF 1741if ac_fn_c_try_compile "$LINENO"; then : 1742 1743else 1744 eval "$3=yes" 1745fi 1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1747fi 1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749fi 1750eval ac_res=\$$3 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1752$as_echo "$ac_res" >&6; } 1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1754 1755} # ac_fn_c_check_type 1756 1757# ac_fn_c_try_link LINENO 1758# ----------------------- 1759# Try to link conftest.$ac_ext, and return whether this succeeded. 1760ac_fn_c_try_link () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 rm -f conftest.$ac_objext conftest$ac_exeext 1764 if { { ac_try="$ac_link" 1765case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_link") 2>conftest.err 1772 ac_status=$? 1773 if test -s conftest.err; then 1774 grep -v '^ *+' conftest.err >conftest.er1 1775 cat conftest.er1 >&5 1776 mv -f conftest.er1 conftest.err 1777 fi 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { 1780 test -z "$ac_c_werror_flag" || 1781 test ! -s conftest.err 1782 } && test -s conftest$ac_exeext && { 1783 test "$cross_compiling" = yes || 1784 $as_test_x conftest$ac_exeext 1785 }; then : 1786 ac_retval=0 1787else 1788 $as_echo "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 1792fi 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1795 # interfere with the next link command; also delete a directory that is 1796 # left behind by Apple's compiler. We do this before executing the actions. 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_link 1802 1803# ac_fn_c_check_func LINENO FUNC VAR 1804# ---------------------------------- 1805# Tests whether FUNC exists, setting the cache variable VAR accordingly 1806ac_fn_c_check_func () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval "test \"\${$3+set}\"" = set; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1818#define $2 innocuous_$2 1819 1820/* System header to define __stub macros and hopefully few prototypes, 1821 which can conflict with char $2 (); below. 1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1823 <limits.h> exists even on freestanding compilers. */ 1824 1825#ifdef __STDC__ 1826# include <limits.h> 1827#else 1828# include <assert.h> 1829#endif 1830 1831#undef $2 1832 1833/* Override any GCC internal prototype to avoid an error. 1834 Use char because int might match the return type of a GCC 1835 builtin and then its argument prototype would still apply. */ 1836#ifdef __cplusplus 1837extern "C" 1838#endif 1839char $2 (); 1840/* The GNU C library defines this for functions which it implements 1841 to always fail with ENOSYS. Some functions are actually named 1842 something starting with __ and the normal name is an alias. */ 1843#if defined __stub_$2 || defined __stub___$2 1844choke me 1845#endif 1846 1847int 1848main () 1849{ 1850return $2 (); 1851 ; 1852 return 0; 1853} 1854_ACEOF 1855if ac_fn_c_try_link "$LINENO"; then : 1856 eval "$3=yes" 1857else 1858 eval "$3=no" 1859fi 1860rm -f core conftest.err conftest.$ac_objext \ 1861 conftest$ac_exeext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1867 1868} # ac_fn_c_check_func 1869 1870# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1871# --------------------------------------------- 1872# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1873# accordingly. 1874ac_fn_c_check_decl () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 as_decl_name=`echo $2|sed 's/ *(.*//'` 1878 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1880$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1881if eval "test \"\${$3+set}\"" = set; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887int 1888main () 1889{ 1890#ifndef $as_decl_name 1891#ifdef __cplusplus 1892 (void) $as_decl_use; 1893#else 1894 (void) $as_decl_name; 1895#endif 1896#endif 1897 1898 ; 1899 return 0; 1900} 1901_ACEOF 1902if ac_fn_c_try_compile "$LINENO"; then : 1903 eval "$3=yes" 1904else 1905 eval "$3=no" 1906fi 1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1908fi 1909eval ac_res=\$$3 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911$as_echo "$ac_res" >&6; } 1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1913 1914} # ac_fn_c_check_decl 1915cat >config.log <<_ACEOF 1916This file contains any messages produced by compilers while 1917running configure, to aid debugging if configure makes a mistake. 1918 1919It was created by $as_me, which was 1920generated by GNU Autoconf 2.67. Invocation command line was 1921 1922 $ $0 $@ 1923 1924_ACEOF 1925exec 5>>config.log 1926{ 1927cat <<_ASUNAME 1928## --------- ## 1929## Platform. ## 1930## --------- ## 1931 1932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1933uname -m = `(uname -m) 2>/dev/null || echo unknown` 1934uname -r = `(uname -r) 2>/dev/null || echo unknown` 1935uname -s = `(uname -s) 2>/dev/null || echo unknown` 1936uname -v = `(uname -v) 2>/dev/null || echo unknown` 1937 1938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1939/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1940 1941/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1942/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1944/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1945/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1946/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1947/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1948 1949_ASUNAME 1950 1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1952for as_dir in $PATH 1953do 1954 IFS=$as_save_IFS 1955 test -z "$as_dir" && as_dir=. 1956 $as_echo "PATH: $as_dir" 1957 done 1958IFS=$as_save_IFS 1959 1960} >&5 1961 1962cat >&5 <<_ACEOF 1963 1964 1965## ----------- ## 1966## Core tests. ## 1967## ----------- ## 1968 1969_ACEOF 1970 1971 1972# Keep a trace of the command line. 1973# Strip out --no-create and --no-recursion so they do not pile up. 1974# Strip out --silent because we don't want to record it for future runs. 1975# Also quote any args containing shell meta-characters. 1976# Make two passes to allow for proper duplicate-argument suppression. 1977ac_configure_args= 1978ac_configure_args0= 1979ac_configure_args1= 1980ac_must_keep_next=false 1981for ac_pass in 1 2 1982do 1983 for ac_arg 1984 do 1985 case $ac_arg in 1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1988 | -silent | --silent | --silen | --sile | --sil) 1989 continue ;; 1990 *\'*) 1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1992 esac 1993 case $ac_pass in 1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1995 2) 1996 as_fn_append ac_configure_args1 " '$ac_arg'" 1997 if test $ac_must_keep_next = true; then 1998 ac_must_keep_next=false # Got value, back to normal. 1999 else 2000 case $ac_arg in 2001 *=* | --config-cache | -C | -disable-* | --disable-* \ 2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2004 | -with-* | --with-* | -without-* | --without-* | --x) 2005 case "$ac_configure_args0 " in 2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2007 esac 2008 ;; 2009 -* ) ac_must_keep_next=true ;; 2010 esac 2011 fi 2012 as_fn_append ac_configure_args " '$ac_arg'" 2013 ;; 2014 esac 2015 done 2016done 2017{ ac_configure_args0=; unset ac_configure_args0;} 2018{ ac_configure_args1=; unset ac_configure_args1;} 2019 2020# When interrupted or exit'd, cleanup temporary files, and complete 2021# config.log. We remove comments because anyway the quotes in there 2022# would cause problems or look ugly. 2023# WARNING: Use '\'' to represent an apostrophe within the trap. 2024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2025trap 'exit_status=$? 2026 # Save into config.log some information that might help in debugging. 2027 { 2028 echo 2029 2030 $as_echo "## ---------------- ## 2031## Cache variables. ## 2032## ---------------- ##" 2033 echo 2034 # The following way of writing the cache mishandles newlines in values, 2035( 2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in #( 2039 *${as_nl}*) 2040 case $ac_var in #( 2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2043 esac 2044 case $ac_var in #( 2045 _ | IFS | as_nl) ;; #( 2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2047 *) { eval $ac_var=; unset $ac_var;} ;; 2048 esac ;; 2049 esac 2050 done 2051 (set) 2>&1 | 2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2053 *${as_nl}ac_space=\ *) 2054 sed -n \ 2055 "s/'\''/'\''\\\\'\'''\''/g; 2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2057 ;; #( 2058 *) 2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2060 ;; 2061 esac | 2062 sort 2063) 2064 echo 2065 2066 $as_echo "## ----------------- ## 2067## Output variables. ## 2068## ----------------- ##" 2069 echo 2070 for ac_var in $ac_subst_vars 2071 do 2072 eval ac_val=\$$ac_var 2073 case $ac_val in 2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2075 esac 2076 $as_echo "$ac_var='\''$ac_val'\''" 2077 done | sort 2078 echo 2079 2080 if test -n "$ac_subst_files"; then 2081 $as_echo "## ------------------- ## 2082## File substitutions. ## 2083## ------------------- ##" 2084 echo 2085 for ac_var in $ac_subst_files 2086 do 2087 eval ac_val=\$$ac_var 2088 case $ac_val in 2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2090 esac 2091 $as_echo "$ac_var='\''$ac_val'\''" 2092 done | sort 2093 echo 2094 fi 2095 2096 if test -s confdefs.h; then 2097 $as_echo "## ----------- ## 2098## confdefs.h. ## 2099## ----------- ##" 2100 echo 2101 cat confdefs.h 2102 echo 2103 fi 2104 test "$ac_signal" != 0 && 2105 $as_echo "$as_me: caught signal $ac_signal" 2106 $as_echo "$as_me: exit $exit_status" 2107 } >&5 2108 rm -f core *.core core.conftest.* && 2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2110 exit $exit_status 2111' 0 2112for ac_signal in 1 2 13 15; do 2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2114done 2115ac_signal=0 2116 2117# confdefs.h avoids OS command line length limits that DEFS can exceed. 2118rm -f -r conftest* confdefs.h 2119 2120$as_echo "/* confdefs.h */" > confdefs.h 2121 2122# Predefined preprocessor variables. 2123 2124cat >>confdefs.h <<_ACEOF 2125#define PACKAGE_NAME "$PACKAGE_NAME" 2126_ACEOF 2127 2128cat >>confdefs.h <<_ACEOF 2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2130_ACEOF 2131 2132cat >>confdefs.h <<_ACEOF 2133#define PACKAGE_VERSION "$PACKAGE_VERSION" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_STRING "$PACKAGE_STRING" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_URL "$PACKAGE_URL" 2146_ACEOF 2147 2148 2149# Let the site file select an alternate cache file if it wants to. 2150# Prefer an explicitly selected file to automatically selected ones. 2151ac_site_file1=NONE 2152ac_site_file2=NONE 2153if test -n "$CONFIG_SITE"; then 2154 # We do not want a PATH search for config.site. 2155 case $CONFIG_SITE in #(( 2156 -*) ac_site_file1=./$CONFIG_SITE;; 2157 */*) ac_site_file1=$CONFIG_SITE;; 2158 *) ac_site_file1=./$CONFIG_SITE;; 2159 esac 2160elif test "x$prefix" != xNONE; then 2161 ac_site_file1=$prefix/share/config.site 2162 ac_site_file2=$prefix/etc/config.site 2163else 2164 ac_site_file1=$ac_default_prefix/share/config.site 2165 ac_site_file2=$ac_default_prefix/etc/config.site 2166fi 2167for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2168do 2169 test "x$ac_site_file" = xNONE && continue 2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2172$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2173 sed 's/^/| /' "$ac_site_file" >&5 2174 . "$ac_site_file" \ 2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2177as_fn_error $? "failed to load site script $ac_site_file 2178See \`config.log' for more details" "$LINENO" 5 ; } 2179 fi 2180done 2181 2182if test -r "$cache_file"; then 2183 # Some versions of bash will fail to source /dev/null (special files 2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2187$as_echo "$as_me: loading cache $cache_file" >&6;} 2188 case $cache_file in 2189 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2190 *) . "./$cache_file";; 2191 esac 2192 fi 2193else 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2195$as_echo "$as_me: creating cache $cache_file" >&6;} 2196 >$cache_file 2197fi 2198 2199# Check that the precious variables saved in the cache have kept the same 2200# value. 2201ac_cache_corrupted=false 2202for ac_var in $ac_precious_vars; do 2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2204 eval ac_new_set=\$ac_env_${ac_var}_set 2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2206 eval ac_new_val=\$ac_env_${ac_var}_value 2207 case $ac_old_set,$ac_new_set in 2208 set,) 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2210$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2211 ac_cache_corrupted=: ;; 2212 ,set) 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2214$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2215 ac_cache_corrupted=: ;; 2216 ,);; 2217 *) 2218 if test "x$ac_old_val" != "x$ac_new_val"; then 2219 # differences in whitespace do not lead to failure. 2220 ac_old_val_w=`echo x $ac_old_val` 2221 ac_new_val_w=`echo x $ac_new_val` 2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2224$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2225 ac_cache_corrupted=: 2226 else 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2228$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2229 eval $ac_var=\$ac_old_val 2230 fi 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2232$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2234$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2235 fi;; 2236 esac 2237 # Pass precious variables to config.status. 2238 if test "$ac_new_set" = set; then 2239 case $ac_new_val in 2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2241 *) ac_arg=$ac_var=$ac_new_val ;; 2242 esac 2243 case " $ac_configure_args " in 2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2246 esac 2247 fi 2248done 2249if $ac_cache_corrupted; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2253$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2255fi 2256## -------------------- ## 2257## Main body of script. ## 2258## -------------------- ## 2259 2260ac_ext=c 2261ac_cpp='$CPP $CPPFLAGS' 2262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2264ac_compiler_gnu=$ac_cv_c_compiler_gnu 2265 2266 2267 2268ac_aux_dir= 2269for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2270 if test -f "$ac_dir/install-sh"; then 2271 ac_aux_dir=$ac_dir 2272 ac_install_sh="$ac_aux_dir/install-sh -c" 2273 break 2274 elif test -f "$ac_dir/install.sh"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/install.sh -c" 2277 break 2278 elif test -f "$ac_dir/shtool"; then 2279 ac_aux_dir=$ac_dir 2280 ac_install_sh="$ac_aux_dir/shtool install -c" 2281 break 2282 fi 2283done 2284if test -z "$ac_aux_dir"; then 2285 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2286fi 2287 2288# These three variables are undocumented and unsupported, 2289# and are intended to be withdrawn in a future Autoconf release. 2290# They can cause serious problems if a builder's source tree is in a directory 2291# whose full name contains unusual characters. 2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2295 2296 2297# Make sure we can run config.sub. 2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2300 2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2302$as_echo_n "checking build system type... " >&6; } 2303if test "${ac_cv_build+set}" = set; then : 2304 $as_echo_n "(cached) " >&6 2305else 2306 ac_build_alias=$build_alias 2307test "x$ac_build_alias" = x && 2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2309test "x$ac_build_alias" = x && 2310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2313 2314fi 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2316$as_echo "$ac_cv_build" >&6; } 2317case $ac_cv_build in 2318*-*-*) ;; 2319*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 2320esac 2321build=$ac_cv_build 2322ac_save_IFS=$IFS; IFS='-' 2323set x $ac_cv_build 2324shift 2325build_cpu=$1 2326build_vendor=$2 2327shift; shift 2328# Remember, the first character of IFS is used to create $*, 2329# except with old shells: 2330build_os=$* 2331IFS=$ac_save_IFS 2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2333 2334 2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2336$as_echo_n "checking host system type... " >&6; } 2337if test "${ac_cv_host+set}" = set; then : 2338 $as_echo_n "(cached) " >&6 2339else 2340 if test "x$host_alias" = x; then 2341 ac_cv_host=$ac_cv_build 2342else 2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2345fi 2346 2347fi 2348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2349$as_echo "$ac_cv_host" >&6; } 2350case $ac_cv_host in 2351*-*-*) ;; 2352*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 2353esac 2354host=$ac_cv_host 2355ac_save_IFS=$IFS; IFS='-' 2356set x $ac_cv_host 2357shift 2358host_cpu=$1 2359host_vendor=$2 2360shift; shift 2361# Remember, the first character of IFS is used to create $*, 2362# except with old shells: 2363host_os=$* 2364IFS=$ac_save_IFS 2365case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2366 2367 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2369$as_echo_n "checking target system type... " >&6; } 2370if test "${ac_cv_target+set}" = set; then : 2371 $as_echo_n "(cached) " >&6 2372else 2373 if test "x$target_alias" = x; then 2374 ac_cv_target=$ac_cv_host 2375else 2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2378fi 2379 2380fi 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2382$as_echo "$ac_cv_target" >&6; } 2383case $ac_cv_target in 2384*-*-*) ;; 2385*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; 2386esac 2387target=$ac_cv_target 2388ac_save_IFS=$IFS; IFS='-' 2389set x $ac_cv_target 2390shift 2391target_cpu=$1 2392target_vendor=$2 2393shift; shift 2394# Remember, the first character of IFS is used to create $*, 2395# except with old shells: 2396target_os=$* 2397IFS=$ac_save_IFS 2398case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2399 2400 2401# The aliases save the names the user supplied, while $host etc. 2402# will get canonicalized. 2403test -n "$target_alias" && 2404 test "$program_prefix$program_suffix$program_transform_name" = \ 2405 NONENONEs,x,x, && 2406 program_prefix=${target_alias}- 2407 2408 2409 2410 2411 2412 2413 2414 2415# Check whether --with-gcc was given. 2416if test "${with_gcc+set}" = set; then : 2417 withval=$with_gcc; 2418fi 2419 2420 V_CCOPT="-O" 2421 V_INCLS="" 2422 if test "${srcdir}" != "." ; then 2423 V_INCLS="-I\$(srcdir)" 2424 fi 2425 if test "${CFLAGS+set}" = set; then 2426 LBL_CFLAGS="$CFLAGS" 2427 fi 2428 if test -z "$CC" ; then 2429 case "$host_os" in 2430 2431 bsdi*) 2432 # Extract the first word of "shlicc2", so it can be a program name with args. 2433set dummy shlicc2; ac_word=$2 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2435$as_echo_n "checking for $ac_word... " >&6; } 2436if test "${ac_cv_prog_SHLICC2+set}" = set; then : 2437 $as_echo_n "(cached) " >&6 2438else 2439 if test -n "$SHLICC2"; then 2440 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 2441else 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2449 ac_cv_prog_SHLICC2="yes" 2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2451 break 2 2452 fi 2453done 2454 done 2455IFS=$as_save_IFS 2456 2457 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 2458fi 2459fi 2460SHLICC2=$ac_cv_prog_SHLICC2 2461if test -n "$SHLICC2"; then 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5 2463$as_echo "$SHLICC2" >&6; } 2464else 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2466$as_echo "no" >&6; } 2467fi 2468 2469 2470 if test $SHLICC2 = yes ; then 2471 CC=shlicc2 2472 export CC 2473 fi 2474 ;; 2475 esac 2476 fi 2477 if test -z "$CC" -a "$with_gcc" = no ; then 2478 CC=cc 2479 export CC 2480 fi 2481 2482ac_ext=c 2483ac_cpp='$CPP $CPPFLAGS' 2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2486ac_compiler_gnu=$ac_cv_c_compiler_gnu 2487if test -n "$ac_tool_prefix"; then 2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2489set dummy ${ac_tool_prefix}gcc; ac_word=$2 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2491$as_echo_n "checking for $ac_word... " >&6; } 2492if test "${ac_cv_prog_CC+set}" = set; then : 2493 $as_echo_n "(cached) " >&6 2494else 2495 if test -n "$CC"; then 2496 ac_cv_prog_CC="$CC" # Let the user override the test. 2497else 2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499for as_dir in $PATH 2500do 2501 IFS=$as_save_IFS 2502 test -z "$as_dir" && as_dir=. 2503 for ac_exec_ext in '' $ac_executable_extensions; do 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2505 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2507 break 2 2508 fi 2509done 2510 done 2511IFS=$as_save_IFS 2512 2513fi 2514fi 2515CC=$ac_cv_prog_CC 2516if test -n "$CC"; then 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2518$as_echo "$CC" >&6; } 2519else 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2521$as_echo "no" >&6; } 2522fi 2523 2524 2525fi 2526if test -z "$ac_cv_prog_CC"; then 2527 ac_ct_CC=$CC 2528 # Extract the first word of "gcc", so it can be a program name with args. 2529set dummy gcc; ac_word=$2 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2531$as_echo_n "checking for $ac_word... " >&6; } 2532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test -n "$ac_ct_CC"; then 2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2545 ac_cv_prog_ac_ct_CC="gcc" 2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550 done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555ac_ct_CC=$ac_cv_prog_ac_ct_CC 2556if test -n "$ac_ct_CC"; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2558$as_echo "$ac_ct_CC" >&6; } 2559else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2561$as_echo "no" >&6; } 2562fi 2563 2564 if test "x$ac_ct_CC" = x; then 2565 CC="" 2566 else 2567 case $cross_compiling:$ac_tool_warned in 2568yes:) 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2571ac_tool_warned=yes ;; 2572esac 2573 CC=$ac_ct_CC 2574 fi 2575else 2576 CC="$ac_cv_prog_CC" 2577fi 2578 2579if test -z "$CC"; then 2580 if test -n "$ac_tool_prefix"; then 2581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2582set dummy ${ac_tool_prefix}cc; ac_word=$2 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2584$as_echo_n "checking for $ac_word... " >&6; } 2585if test "${ac_cv_prog_CC+set}" = set; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test -n "$CC"; then 2589 ac_cv_prog_CC="$CC" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2598 ac_cv_prog_CC="${ac_tool_prefix}cc" 2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603 done 2604IFS=$as_save_IFS 2605 2606fi 2607fi 2608CC=$ac_cv_prog_CC 2609if test -n "$CC"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2611$as_echo "$CC" >&6; } 2612else 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2614$as_echo "no" >&6; } 2615fi 2616 2617 2618 fi 2619fi 2620if test -z "$CC"; then 2621 # Extract the first word of "cc", so it can be a program name with args. 2622set dummy cc; ac_word=$2 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2624$as_echo_n "checking for $ac_word... " >&6; } 2625if test "${ac_cv_prog_CC+set}" = set; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 if test -n "$CC"; then 2629 ac_cv_prog_CC="$CC" # Let the user override the test. 2630else 2631 ac_prog_rejected=no 2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2640 ac_prog_rejected=yes 2641 continue 2642 fi 2643 ac_cv_prog_CC="cc" 2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647done 2648 done 2649IFS=$as_save_IFS 2650 2651if test $ac_prog_rejected = yes; then 2652 # We found a bogon in the path, so make sure we never use it. 2653 set dummy $ac_cv_prog_CC 2654 shift 2655 if test $# != 0; then 2656 # We chose a different compiler from the bogus one. 2657 # However, it has the same basename, so the bogon will be chosen 2658 # first if we set CC to just the basename; use the full file name. 2659 shift 2660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2661 fi 2662fi 2663fi 2664fi 2665CC=$ac_cv_prog_CC 2666if test -n "$CC"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2668$as_echo "$CC" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 2675fi 2676if test -z "$CC"; then 2677 if test -n "$ac_tool_prefix"; then 2678 for ac_prog in cl.exe 2679 do 2680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2681set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2683$as_echo_n "checking for $ac_word... " >&6; } 2684if test "${ac_cv_prog_CC+set}" = set; then : 2685 $as_echo_n "(cached) " >&6 2686else 2687 if test -n "$CC"; then 2688 ac_cv_prog_CC="$CC" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702 done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707CC=$ac_cv_prog_CC 2708if test -n "$CC"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2710$as_echo "$CC" >&6; } 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714fi 2715 2716 2717 test -n "$CC" && break 2718 done 2719fi 2720if test -z "$CC"; then 2721 ac_ct_CC=$CC 2722 for ac_prog in cl.exe 2723do 2724 # Extract the first word of "$ac_prog", so it can be a program name with args. 2725set dummy $ac_prog; ac_word=$2 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727$as_echo_n "checking for $ac_word... " >&6; } 2728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2729 $as_echo_n "(cached) " >&6 2730else 2731 if test -n "$ac_ct_CC"; then 2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2741 ac_cv_prog_ac_ct_CC="$ac_prog" 2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745done 2746 done 2747IFS=$as_save_IFS 2748 2749fi 2750fi 2751ac_ct_CC=$ac_cv_prog_ac_ct_CC 2752if test -n "$ac_ct_CC"; then 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2754$as_echo "$ac_ct_CC" >&6; } 2755else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 2761 test -n "$ac_ct_CC" && break 2762done 2763 2764 if test "x$ac_ct_CC" = x; then 2765 CC="" 2766 else 2767 case $cross_compiling:$ac_tool_warned in 2768yes:) 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2771ac_tool_warned=yes ;; 2772esac 2773 CC=$ac_ct_CC 2774 fi 2775fi 2776 2777fi 2778 2779 2780test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2782as_fn_error $? "no acceptable C compiler found in \$PATH 2783See \`config.log' for more details" "$LINENO" 5 ; } 2784 2785# Provide some information about the compiler. 2786$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2787set X $ac_compile 2788ac_compiler=$2 2789for ac_option in --version -v -V -qversion; do 2790 { { ac_try="$ac_compiler $ac_option >&5" 2791case "(($ac_try" in 2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2793 *) ac_try_echo=$ac_try;; 2794esac 2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2796$as_echo "$ac_try_echo"; } >&5 2797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2798 ac_status=$? 2799 if test -s conftest.err; then 2800 sed '10a\ 2801... rest of stderr output deleted ... 2802 10q' conftest.err >conftest.er1 2803 cat conftest.er1 >&5 2804 fi 2805 rm -f conftest.er1 conftest.err 2806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2807 test $ac_status = 0; } 2808done 2809 2810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2811/* end confdefs.h. */ 2812 2813int 2814main () 2815{ 2816 2817 ; 2818 return 0; 2819} 2820_ACEOF 2821ac_clean_files_save=$ac_clean_files 2822ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2823# Try to create an executable without -o first, disregard a.out. 2824# It will help us diagnose broken compilers, and finding out an intuition 2825# of exeext. 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2827$as_echo_n "checking whether the C compiler works... " >&6; } 2828ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2829 2830# The possible output files: 2831ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2832 2833ac_rmfiles= 2834for ac_file in $ac_files 2835do 2836 case $ac_file in 2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2838 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2839 esac 2840done 2841rm -f $ac_rmfiles 2842 2843if { { ac_try="$ac_link_default" 2844case "(($ac_try" in 2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2846 *) ac_try_echo=$ac_try;; 2847esac 2848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2849$as_echo "$ac_try_echo"; } >&5 2850 (eval "$ac_link_default") 2>&5 2851 ac_status=$? 2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2853 test $ac_status = 0; }; then : 2854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2855# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2856# in a Makefile. We should not override ac_cv_exeext if it was cached, 2857# so that the user can short-circuit this test for compilers unknown to 2858# Autoconf. 2859for ac_file in $ac_files '' 2860do 2861 test -f "$ac_file" || continue 2862 case $ac_file in 2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2864 ;; 2865 [ab].out ) 2866 # We found the default executable, but exeext='' is most 2867 # certainly right. 2868 break;; 2869 *.* ) 2870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2871 then :; else 2872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2873 fi 2874 # We set ac_cv_exeext here because the later test for it is not 2875 # safe: cross compilers may not add the suffix if given an `-o' 2876 # argument, so we may need to know it at that point already. 2877 # Even if this section looks crufty: it has the advantage of 2878 # actually working. 2879 break;; 2880 * ) 2881 break;; 2882 esac 2883done 2884test "$ac_cv_exeext" = no && ac_cv_exeext= 2885 2886else 2887 ac_file='' 2888fi 2889if test -z "$ac_file"; then : 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891$as_echo "no" >&6; } 2892$as_echo "$as_me: failed program was:" >&5 2893sed 's/^/| /' conftest.$ac_ext >&5 2894 2895{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2897as_fn_error 77 "C compiler cannot create executables 2898See \`config.log' for more details" "$LINENO" 5 ; } 2899else 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2901$as_echo "yes" >&6; } 2902fi 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2904$as_echo_n "checking for C compiler default output file name... " >&6; } 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2906$as_echo "$ac_file" >&6; } 2907ac_exeext=$ac_cv_exeext 2908 2909rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2910ac_clean_files=$ac_clean_files_save 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2912$as_echo_n "checking for suffix of executables... " >&6; } 2913if { { ac_try="$ac_link" 2914case "(($ac_try" in 2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2916 *) ac_try_echo=$ac_try;; 2917esac 2918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2919$as_echo "$ac_try_echo"; } >&5 2920 (eval "$ac_link") 2>&5 2921 ac_status=$? 2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2923 test $ac_status = 0; }; then : 2924 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2926# work properly (i.e., refer to `conftest.exe'), while it won't with 2927# `rm'. 2928for ac_file in conftest.exe conftest conftest.*; do 2929 test -f "$ac_file" || continue 2930 case $ac_file in 2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2933 break;; 2934 * ) break;; 2935 esac 2936done 2937else 2938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2940as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2941See \`config.log' for more details" "$LINENO" 5 ; } 2942fi 2943rm -f conftest conftest$ac_cv_exeext 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2945$as_echo "$ac_cv_exeext" >&6; } 2946 2947rm -f conftest.$ac_ext 2948EXEEXT=$ac_cv_exeext 2949ac_exeext=$EXEEXT 2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2951/* end confdefs.h. */ 2952#include <stdio.h> 2953int 2954main () 2955{ 2956FILE *f = fopen ("conftest.out", "w"); 2957 return ferror (f) || fclose (f) != 0; 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963ac_clean_files="$ac_clean_files conftest.out" 2964# Check that the compiler produces executables we can run. If not, either 2965# the compiler is broken, or we cross compile. 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2967$as_echo_n "checking whether we are cross compiling... " >&6; } 2968if test "$cross_compiling" != yes; then 2969 { { ac_try="$ac_link" 2970case "(($ac_try" in 2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2972 *) ac_try_echo=$ac_try;; 2973esac 2974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2975$as_echo "$ac_try_echo"; } >&5 2976 (eval "$ac_link") 2>&5 2977 ac_status=$? 2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2979 test $ac_status = 0; } 2980 if { ac_try='./conftest$ac_cv_exeext' 2981 { { case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2986$as_echo "$ac_try_echo"; } >&5 2987 (eval "$ac_try") 2>&5 2988 ac_status=$? 2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2990 test $ac_status = 0; }; }; then 2991 cross_compiling=no 2992 else 2993 if test "$cross_compiling" = maybe; then 2994 cross_compiling=yes 2995 else 2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2998as_fn_error $? "cannot run C compiled programs. 2999If you meant to cross compile, use \`--host'. 3000See \`config.log' for more details" "$LINENO" 5 ; } 3001 fi 3002 fi 3003fi 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3005$as_echo "$cross_compiling" >&6; } 3006 3007rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3008ac_clean_files=$ac_clean_files_save 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3010$as_echo_n "checking for suffix of object files... " >&6; } 3011if test "${ac_cv_objext+set}" = set; then : 3012 $as_echo_n "(cached) " >&6 3013else 3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3015/* end confdefs.h. */ 3016 3017int 3018main () 3019{ 3020 3021 ; 3022 return 0; 3023} 3024_ACEOF 3025rm -f conftest.o conftest.obj 3026if { { ac_try="$ac_compile" 3027case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030esac 3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3032$as_echo "$ac_try_echo"; } >&5 3033 (eval "$ac_compile") 2>&5 3034 ac_status=$? 3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3036 test $ac_status = 0; }; then : 3037 for ac_file in conftest.o conftest.obj conftest.*; do 3038 test -f "$ac_file" || continue; 3039 case $ac_file in 3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3042 break;; 3043 esac 3044done 3045else 3046 $as_echo "$as_me: failed program was:" >&5 3047sed 's/^/| /' conftest.$ac_ext >&5 3048 3049{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3051as_fn_error $? "cannot compute suffix of object files: cannot compile 3052See \`config.log' for more details" "$LINENO" 5 ; } 3053fi 3054rm -f conftest.$ac_cv_objext conftest.$ac_ext 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3057$as_echo "$ac_cv_objext" >&6; } 3058OBJEXT=$ac_cv_objext 3059ac_objext=$OBJEXT 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3061$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3062if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3063 $as_echo_n "(cached) " >&6 3064else 3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3066/* end confdefs.h. */ 3067 3068int 3069main () 3070{ 3071#ifndef __GNUC__ 3072 choke me 3073#endif 3074 3075 ; 3076 return 0; 3077} 3078_ACEOF 3079if ac_fn_c_try_compile "$LINENO"; then : 3080 ac_compiler_gnu=yes 3081else 3082 ac_compiler_gnu=no 3083fi 3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085ac_cv_c_compiler_gnu=$ac_compiler_gnu 3086 3087fi 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3089$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3090if test $ac_compiler_gnu = yes; then 3091 GCC=yes 3092else 3093 GCC= 3094fi 3095ac_test_CFLAGS=${CFLAGS+set} 3096ac_save_CFLAGS=$CFLAGS 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3098$as_echo_n "checking whether $CC accepts -g... " >&6; } 3099if test "${ac_cv_prog_cc_g+set}" = set; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 ac_save_c_werror_flag=$ac_c_werror_flag 3103 ac_c_werror_flag=yes 3104 ac_cv_prog_cc_g=no 3105 CFLAGS="-g" 3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117if ac_fn_c_try_compile "$LINENO"; then : 3118 ac_cv_prog_cc_g=yes 3119else 3120 CFLAGS="" 3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3122/* end confdefs.h. */ 3123 3124int 3125main () 3126{ 3127 3128 ; 3129 return 0; 3130} 3131_ACEOF 3132if ac_fn_c_try_compile "$LINENO"; then : 3133 3134else 3135 ac_c_werror_flag=$ac_save_c_werror_flag 3136 CFLAGS="-g" 3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3138/* end confdefs.h. */ 3139 3140int 3141main () 3142{ 3143 3144 ; 3145 return 0; 3146} 3147_ACEOF 3148if ac_fn_c_try_compile "$LINENO"; then : 3149 ac_cv_prog_cc_g=yes 3150fi 3151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3152fi 3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3154fi 3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3156 ac_c_werror_flag=$ac_save_c_werror_flag 3157fi 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3159$as_echo "$ac_cv_prog_cc_g" >&6; } 3160if test "$ac_test_CFLAGS" = set; then 3161 CFLAGS=$ac_save_CFLAGS 3162elif test $ac_cv_prog_cc_g = yes; then 3163 if test "$GCC" = yes; then 3164 CFLAGS="-g -O2" 3165 else 3166 CFLAGS="-g" 3167 fi 3168else 3169 if test "$GCC" = yes; then 3170 CFLAGS="-O2" 3171 else 3172 CFLAGS= 3173 fi 3174fi 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3176$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3177if test "${ac_cv_prog_cc_c89+set}" = set; then : 3178 $as_echo_n "(cached) " >&6 3179else 3180 ac_cv_prog_cc_c89=no 3181ac_save_CC=$CC 3182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3183/* end confdefs.h. */ 3184#include <stdarg.h> 3185#include <stdio.h> 3186#include <sys/types.h> 3187#include <sys/stat.h> 3188/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3189struct buf { int x; }; 3190FILE * (*rcsopen) (struct buf *, struct stat *, int); 3191static char *e (p, i) 3192 char **p; 3193 int i; 3194{ 3195 return p[i]; 3196} 3197static char *f (char * (*g) (char **, int), char **p, ...) 3198{ 3199 char *s; 3200 va_list v; 3201 va_start (v,p); 3202 s = g (p, va_arg (v,int)); 3203 va_end (v); 3204 return s; 3205} 3206 3207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3208 function prototypes and stuff, but not '\xHH' hex character constants. 3209 These don't provoke an error unfortunately, instead are silently treated 3210 as 'x'. The following induces an error, until -std is added to get 3211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3212 array size at least. It's necessary to write '\x00'==0 to get something 3213 that's true only with -std. */ 3214int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3215 3216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3217 inside strings and character constants. */ 3218#define FOO(x) 'x' 3219int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3220 3221int test (int i, double x); 3222struct s1 {int (*f) (int a);}; 3223struct s2 {int (*f) (double a);}; 3224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3225int argc; 3226char **argv; 3227int 3228main () 3229{ 3230return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3231 ; 3232 return 0; 3233} 3234_ACEOF 3235for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3237do 3238 CC="$ac_save_CC $ac_arg" 3239 if ac_fn_c_try_compile "$LINENO"; then : 3240 ac_cv_prog_cc_c89=$ac_arg 3241fi 3242rm -f core conftest.err conftest.$ac_objext 3243 test "x$ac_cv_prog_cc_c89" != "xno" && break 3244done 3245rm -f conftest.$ac_ext 3246CC=$ac_save_CC 3247 3248fi 3249# AC_CACHE_VAL 3250case "x$ac_cv_prog_cc_c89" in 3251 x) 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3253$as_echo "none needed" >&6; } ;; 3254 xno) 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3256$as_echo "unsupported" >&6; } ;; 3257 *) 3258 CC="$CC $ac_cv_prog_cc_c89" 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3260$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3261esac 3262if test "x$ac_cv_prog_cc_c89" != xno; then : 3263 3264fi 3265 3266ac_ext=c 3267ac_cpp='$CPP $CPPFLAGS' 3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3270ac_compiler_gnu=$ac_cv_c_compiler_gnu 3271 3272 3273 3274 3275 3276 if test "$GCC" = yes ; then 3277 if test "$SHLICC2" = yes ; then 3278 ac_cv_lbl_gcc_vers=2 3279 V_CCOPT="-O2" 3280 else 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 3282$as_echo_n "checking gcc version... " >&6; } 3283 if test "${ac_cv_lbl_gcc_vers+set}" = set; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 3287 sed -e '/^gcc version /!d' \ 3288 -e 's/^gcc version //' \ 3289 -e 's/ .*//' -e 's/^[^0-9]*//' \ 3290 -e 's/\..*//'` 3291fi 3292 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5 3294$as_echo "$ac_cv_lbl_gcc_vers" >&6; } 3295 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 3296 V_CCOPT="-O2" 3297 fi 3298 fi 3299 else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5 3301$as_echo_n "checking that $CC handles ansi prototypes... " >&6; } 3302 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then : 3303 $as_echo_n "(cached) " >&6 3304else 3305 3306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3307/* end confdefs.h. */ 3308#include <sys/types.h> 3309int 3310main () 3311{ 3312int frob(int, char *) 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317if ac_fn_c_try_compile "$LINENO"; then : 3318 ac_cv_lbl_cc_ansi_prototypes=yes 3319else 3320 ac_cv_lbl_cc_ansi_prototypes=no 3321fi 3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3323fi 3324 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 3326$as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; } 3327 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 3328 case "$host_os" in 3329 3330 hpux*) 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 3332$as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; } 3333 savedcflags="$CFLAGS" 3334 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 3335 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340#include <sys/types.h> 3341int 3342main () 3343{ 3344int frob(int, char *) 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349if ac_fn_c_try_compile "$LINENO"; then : 3350 ac_cv_lbl_cc_hpux_cc_aa=yes 3351else 3352 ac_cv_lbl_cc_hpux_cc_aa=no 3353fi 3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3355fi 3356 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 3358$as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; } 3359 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 3360 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 3361 fi 3362 CFLAGS="$savedcflags" 3363 V_CCOPT="-Aa $V_CCOPT" 3364 3365$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 3366 3367 ;; 3368 3369 osf*) 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5 3371$as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; } 3372 savedcflags="$CFLAGS" 3373 CFLAGS="-std1" 3374 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3378/* end confdefs.h. */ 3379#include <sys/types.h> 3380int 3381main () 3382{ 3383int frob(int, char *) 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388if ac_fn_c_try_compile "$LINENO"; then : 3389 ac_cv_lbl_cc_osf1_cc_std1=yes 3390else 3391 ac_cv_lbl_cc_osf1_cc_std1=no 3392fi 3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3394fi 3395 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5 3397$as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; } 3398 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then 3399 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 3400 fi 3401 CFLAGS="$savedcflags" 3402 V_CCOPT="-std1 $V_CCOPT" 3403 ;; 3404 3405 *) 3406 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5 3407 ;; 3408 esac 3409 fi 3410 V_INCLS="$V_INCLS -I/usr/local/include" 3411 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3412 3413 case "$host_os" in 3414 3415 irix*) 3416 V_CCOPT="$V_CCOPT -xansi -signed -g3" 3417 ;; 3418 3419 osf*) 3420 # 3421 # Presumed to be DEC OSF/1, Digital UNIX, or 3422 # Tru64 UNIX. 3423 # 3424 V_CCOPT="$V_CCOPT -g3" 3425 ;; 3426 3427 ultrix*) 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5 3429$as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; } 3430 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then : 3431 $as_echo_n "(cached) " >&6 3432else 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435#include <sys/types.h> 3436int 3437main () 3438{ 3439struct a { int b; }; 3440 void c(const struct a *) 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445if ac_fn_c_try_compile "$LINENO"; then : 3446 ac_cv_lbl_cc_const_proto=yes 3447else 3448 ac_cv_lbl_cc_const_proto=no 3449fi 3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3451fi 3452 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5 3454$as_echo "$ac_cv_lbl_cc_const_proto" >&6; } 3455 if test $ac_cv_lbl_cc_const_proto = no ; then 3456 3457$as_echo "#define const /**/" >>confdefs.h 3458 3459 fi 3460 ;; 3461 esac 3462 fi 3463 3464 3465 if test "$GCC" = yes ; then 3466 # 3467 # On platforms where we build a shared library: 3468 # 3469 # add options to generate position-independent code, 3470 # if necessary (it's the default in AIX and Darwin/OS X); 3471 # 3472 # define option to set the soname of the shared library, 3473 # if the OS supports that; 3474 # 3475 # add options to specify, at link time, a directory to 3476 # add to the run-time search path, if that's necessary. 3477 # 3478 V_SHLIB_CMD="\$(CC)" 3479 V_SHLIB_OPT="-shared" 3480 case "$host_os" in 3481 3482 aix*) 3483 ;; 3484 3485 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*) 3486 # 3487 # Platforms where the linker is the GNU linker 3488 # or accepts command-line arguments like 3489 # those the GNU linker accepts. 3490 # 3491 # Some instruction sets require -fPIC on some 3492 # operating systems. Check for them. If you 3493 # have a combination that requires it, add it 3494 # here. 3495 # 3496 PIC_OPT=-fpic 3497 case "$host_cpu" in 3498 3499 sparc64*) 3500 case "$host_os" in 3501 3502 freebsd*) 3503 PIC_OPT=-fPIC 3504 ;; 3505 esac 3506 ;; 3507 esac 3508 V_CCOPT="$V_CCOPT $PIC_OPT" 3509 V_SONAME_OPT="-Wl,-soname," 3510 V_RPATH_OPT="-Wl,-rpath," 3511 ;; 3512 3513 hpux*) 3514 V_CCOPT="$V_CCOPT -fpic" 3515 # 3516 # XXX - this assumes GCC is using the HP linker, 3517 # rather than the GNU linker, and that the "+h" 3518 # option is used on all HP-UX platforms, both .sl 3519 # and .so. 3520 # 3521 V_SONAME_OPT="-Wl,+h," 3522 # 3523 # By default, directories specifed with -L 3524 # are added to the run-time search path, so 3525 # we don't add them in pcap-config. 3526 # 3527 ;; 3528 3529 solaris*) 3530 V_CCOPT="$V_CCOPT -fpic" 3531 # 3532 # XXX - this assumes GCC is using the Sun linker, 3533 # rather than the GNU linker. 3534 # 3535 V_SONAME_OPT="-Wl,-h," 3536 V_RPATH_OPT="-Wl,-R," 3537 ;; 3538 esac 3539 else 3540 # 3541 # Set the appropriate compiler flags and, on platforms 3542 # where we build a shared library: 3543 # 3544 # add options to generate position-independent code, 3545 # if necessary (it's the default in Darwin/OS X); 3546 # 3547 # if we generate ".so" shared libraries, define the 3548 # appropriate options for building the shared library; 3549 # 3550 # add options to specify, at link time, a directory to 3551 # add to the run-time search path, if that's necessary. 3552 # 3553 # Note: spaces after V_SONAME_OPT are significant; on 3554 # some platforms the soname is passed with a GCC-like 3555 # "-Wl,-soname,{soname}" option, with the soname part 3556 # of the option, while on other platforms the C compiler 3557 # driver takes it as a regular option with the soname 3558 # following the option. The same applies to V_RPATH_OPT. 3559 # 3560 case "$host_os" in 3561 3562 aix*) 3563 V_SHLIB_CMD="\$(CC)" 3564 V_SHLIB_OPT="-G -bnoentry -bexpall" 3565 ;; 3566 3567 freebsd*|netbsd*|openbsd*|dragonfly*|linux*) 3568 # 3569 # "cc" is GCC. 3570 # 3571 V_CCOPT="$V_CCOPT -fpic" 3572 V_SHLIB_CMD="\$(CC)" 3573 V_SHLIB_OPT="-shared" 3574 V_SONAME_OPT="-Wl,-soname," 3575 V_RPATH_OPT="-Wl,-rpath," 3576 ;; 3577 3578 hpux*) 3579 V_CCOPT="$V_CCOPT +z" 3580 V_SHLIB_CMD="\$(LD)" 3581 V_SHLIB_OPT="-b" 3582 V_SONAME_OPT="+h " 3583 # 3584 # By default, directories specifed with -L 3585 # are added to the run-time search path, so 3586 # we don't add them in pcap-config. 3587 # 3588 ;; 3589 3590 osf*) 3591 # 3592 # Presumed to be DEC OSF/1, Digital UNIX, or 3593 # Tru64 UNIX. 3594 # 3595 V_SHLIB_CMD="\$(CC)" 3596 V_SHLIB_OPT="-shared" 3597 V_SONAME_OPT="-soname " 3598 V_RPATH_OPT="-rpath " 3599 ;; 3600 3601 solaris*) 3602 V_CCOPT="$V_CCOPT -Kpic" 3603 V_SHLIB_CMD="\$(CC)" 3604 V_SHLIB_OPT="-G" 3605 V_SONAME_OPT="-h " 3606 V_RPATH_OPT="-R" 3607 ;; 3608 esac 3609 fi 3610 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 3612$as_echo_n "checking for inline... " >&6; } 3613 save_CFLAGS="$CFLAGS" 3614 CFLAGS="$V_CCOPT" 3615 if test "${ac_cv_lbl_inline+set}" = set; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 3619 ac_cv_lbl_inline="" 3620 ac_lbl_cc_inline=no 3621 for ac_lbl_inline in inline __inline__ __inline 3622 do 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625#define inline $ac_lbl_inline 3626 static inline struct iltest *foo(void); 3627 struct iltest { 3628 int iltest1; 3629 int iltest2; 3630 }; 3631 3632 static inline struct iltest * 3633 foo() 3634 { 3635 static struct iltest xxx; 3636 3637 return &xxx; 3638 } 3639int 3640main () 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647if ac_fn_c_try_compile "$LINENO"; then : 3648 ac_lbl_cc_inline=yes 3649fi 3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3651 if test "$ac_lbl_cc_inline" = yes ; then 3652 break; 3653 fi 3654 done 3655 if test "$ac_lbl_cc_inline" = yes ; then 3656 ac_cv_lbl_inline=$ac_lbl_inline 3657 fi 3658fi 3659 3660 CFLAGS="$save_CFLAGS" 3661 if test ! -z "$ac_cv_lbl_inline" ; then 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5 3663$as_echo "$ac_cv_lbl_inline" >&6; } 3664 else 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3666$as_echo "no" >&6; } 3667 fi 3668 3669cat >>confdefs.h <<_ACEOF 3670#define inline $ac_cv_lbl_inline 3671_ACEOF 3672 3673 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 3675$as_echo_n "checking for __attribute__... " >&6; } 3676if test "${ac_cv___attribute__+set}" = set; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682 3683#include <stdlib.h> 3684 3685static void foo(void) __attribute__ ((noreturn)); 3686 3687static void 3688foo(void) 3689{ 3690 exit(1); 3691} 3692 3693int 3694main(int argc, char **argv) 3695{ 3696 foo(); 3697} 3698 3699_ACEOF 3700if ac_fn_c_try_compile "$LINENO"; then : 3701 ac_cv___attribute__=yes 3702else 3703 ac_cv___attribute__=no 3704fi 3705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3706fi 3707 3708if test "$ac_cv___attribute__" = "yes"; then 3709 3710$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 3711 3712 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 3713else 3714 V_DEFS="$V_DEFS -D_U_=\"\"" 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 3717$as_echo "$ac_cv___attribute__" >&6; } 3718 3719 3720ac_ext=c 3721ac_cpp='$CPP $CPPFLAGS' 3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3724ac_compiler_gnu=$ac_cv_c_compiler_gnu 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3726$as_echo_n "checking how to run the C preprocessor... " >&6; } 3727# On Suns, sometimes $CPP names a directory. 3728if test -n "$CPP" && test -d "$CPP"; then 3729 CPP= 3730fi 3731if test -z "$CPP"; then 3732 if test "${ac_cv_prog_CPP+set}" = set; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 # Double quotes because CPP needs to be expanded 3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3737 do 3738 ac_preproc_ok=false 3739for ac_c_preproc_warn_flag in '' yes 3740do 3741 # Use a header file that comes with gcc, so configuring glibc 3742 # with a fresh cross-compiler works. 3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3744 # <limits.h> exists even on freestanding compilers. 3745 # On the NeXT, cc -E runs the code through the compiler's parser, 3746 # not just through cpp. "Syntax error" is here to catch this case. 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749#ifdef __STDC__ 3750# include <limits.h> 3751#else 3752# include <assert.h> 3753#endif 3754 Syntax error 3755_ACEOF 3756if ac_fn_c_try_cpp "$LINENO"; then : 3757 3758else 3759 # Broken: fails on valid input. 3760continue 3761fi 3762rm -f conftest.err conftest.i conftest.$ac_ext 3763 3764 # OK, works on sane cases. Now check whether nonexistent headers 3765 # can be detected and how. 3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767/* end confdefs.h. */ 3768#include <ac_nonexistent.h> 3769_ACEOF 3770if ac_fn_c_try_cpp "$LINENO"; then : 3771 # Broken: success on invalid input. 3772continue 3773else 3774 # Passes both tests. 3775ac_preproc_ok=: 3776break 3777fi 3778rm -f conftest.err conftest.i conftest.$ac_ext 3779 3780done 3781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3782rm -f conftest.i conftest.err conftest.$ac_ext 3783if $ac_preproc_ok; then : 3784 break 3785fi 3786 3787 done 3788 ac_cv_prog_CPP=$CPP 3789 3790fi 3791 CPP=$ac_cv_prog_CPP 3792else 3793 ac_cv_prog_CPP=$CPP 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3796$as_echo "$CPP" >&6; } 3797ac_preproc_ok=false 3798for ac_c_preproc_warn_flag in '' yes 3799do 3800 # Use a header file that comes with gcc, so configuring glibc 3801 # with a fresh cross-compiler works. 3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3803 # <limits.h> exists even on freestanding compilers. 3804 # On the NeXT, cc -E runs the code through the compiler's parser, 3805 # not just through cpp. "Syntax error" is here to catch this case. 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#ifdef __STDC__ 3809# include <limits.h> 3810#else 3811# include <assert.h> 3812#endif 3813 Syntax error 3814_ACEOF 3815if ac_fn_c_try_cpp "$LINENO"; then : 3816 3817else 3818 # Broken: fails on valid input. 3819continue 3820fi 3821rm -f conftest.err conftest.i conftest.$ac_ext 3822 3823 # OK, works on sane cases. Now check whether nonexistent headers 3824 # can be detected and how. 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826/* end confdefs.h. */ 3827#include <ac_nonexistent.h> 3828_ACEOF 3829if ac_fn_c_try_cpp "$LINENO"; then : 3830 # Broken: success on invalid input. 3831continue 3832else 3833 # Passes both tests. 3834ac_preproc_ok=: 3835break 3836fi 3837rm -f conftest.err conftest.i conftest.$ac_ext 3838 3839done 3840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3841rm -f conftest.i conftest.err conftest.$ac_ext 3842if $ac_preproc_ok; then : 3843 3844else 3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3847as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3848See \`config.log' for more details" "$LINENO" 5 ; } 3849fi 3850 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856 3857 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3859$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3860if test "${ac_cv_path_GREP+set}" = set; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 if test -z "$GREP"; then 3864 ac_path_GREP_found=false 3865 # Loop through the user's path and test for each of PROGNAME-LIST 3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3868do 3869 IFS=$as_save_IFS 3870 test -z "$as_dir" && as_dir=. 3871 for ac_prog in grep ggrep; do 3872 for ac_exec_ext in '' $ac_executable_extensions; do 3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3874 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3875# Check for GNU ac_path_GREP and select it if it is found. 3876 # Check for GNU $ac_path_GREP 3877case `"$ac_path_GREP" --version 2>&1` in 3878*GNU*) 3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3880*) 3881 ac_count=0 3882 $as_echo_n 0123456789 >"conftest.in" 3883 while : 3884 do 3885 cat "conftest.in" "conftest.in" >"conftest.tmp" 3886 mv "conftest.tmp" "conftest.in" 3887 cp "conftest.in" "conftest.nl" 3888 $as_echo 'GREP' >> "conftest.nl" 3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3891 as_fn_arith $ac_count + 1 && ac_count=$as_val 3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3893 # Best one so far, save it but keep looking for a better one 3894 ac_cv_path_GREP="$ac_path_GREP" 3895 ac_path_GREP_max=$ac_count 3896 fi 3897 # 10*(2^10) chars as input seems more than enough 3898 test $ac_count -gt 10 && break 3899 done 3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3901esac 3902 3903 $ac_path_GREP_found && break 3 3904 done 3905 done 3906 done 3907IFS=$as_save_IFS 3908 if test -z "$ac_cv_path_GREP"; then 3909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3910 fi 3911else 3912 ac_cv_path_GREP=$GREP 3913fi 3914 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3917$as_echo "$ac_cv_path_GREP" >&6; } 3918 GREP="$ac_cv_path_GREP" 3919 3920 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3922$as_echo_n "checking for egrep... " >&6; } 3923if test "${ac_cv_path_EGREP+set}" = set; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3927 then ac_cv_path_EGREP="$GREP -E" 3928 else 3929 if test -z "$EGREP"; then 3930 ac_path_EGREP_found=false 3931 # Loop through the user's path and test for each of PROGNAME-LIST 3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_prog in egrep; do 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3940 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3941# Check for GNU ac_path_EGREP and select it if it is found. 3942 # Check for GNU $ac_path_EGREP 3943case `"$ac_path_EGREP" --version 2>&1` in 3944*GNU*) 3945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3946*) 3947 ac_count=0 3948 $as_echo_n 0123456789 >"conftest.in" 3949 while : 3950 do 3951 cat "conftest.in" "conftest.in" >"conftest.tmp" 3952 mv "conftest.tmp" "conftest.in" 3953 cp "conftest.in" "conftest.nl" 3954 $as_echo 'EGREP' >> "conftest.nl" 3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3957 as_fn_arith $ac_count + 1 && ac_count=$as_val 3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3959 # Best one so far, save it but keep looking for a better one 3960 ac_cv_path_EGREP="$ac_path_EGREP" 3961 ac_path_EGREP_max=$ac_count 3962 fi 3963 # 10*(2^10) chars as input seems more than enough 3964 test $ac_count -gt 10 && break 3965 done 3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3967esac 3968 3969 $ac_path_EGREP_found && break 3 3970 done 3971 done 3972 done 3973IFS=$as_save_IFS 3974 if test -z "$ac_cv_path_EGREP"; then 3975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3976 fi 3977else 3978 ac_cv_path_EGREP=$EGREP 3979fi 3980 3981 fi 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3984$as_echo "$ac_cv_path_EGREP" >&6; } 3985 EGREP="$ac_cv_path_EGREP" 3986 3987 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3989$as_echo_n "checking for ANSI C header files... " >&6; } 3990if test "${ac_cv_header_stdc+set}" = set; then : 3991 $as_echo_n "(cached) " >&6 3992else 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995#include <stdlib.h> 3996#include <stdarg.h> 3997#include <string.h> 3998#include <float.h> 3999 4000int 4001main () 4002{ 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008if ac_fn_c_try_compile "$LINENO"; then : 4009 ac_cv_header_stdc=yes 4010else 4011 ac_cv_header_stdc=no 4012fi 4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4014 4015if test $ac_cv_header_stdc = yes; then 4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019#include <string.h> 4020 4021_ACEOF 4022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4023 $EGREP "memchr" >/dev/null 2>&1; then : 4024 4025else 4026 ac_cv_header_stdc=no 4027fi 4028rm -f conftest* 4029 4030fi 4031 4032if test $ac_cv_header_stdc = yes; then 4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <stdlib.h> 4037 4038_ACEOF 4039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4040 $EGREP "free" >/dev/null 2>&1; then : 4041 4042else 4043 ac_cv_header_stdc=no 4044fi 4045rm -f conftest* 4046 4047fi 4048 4049if test $ac_cv_header_stdc = yes; then 4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4051 if test "$cross_compiling" = yes; then : 4052 : 4053else 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#include <ctype.h> 4057#include <stdlib.h> 4058#if ((' ' & 0x0FF) == 0x020) 4059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4061#else 4062# define ISLOWER(c) \ 4063 (('a' <= (c) && (c) <= 'i') \ 4064 || ('j' <= (c) && (c) <= 'r') \ 4065 || ('s' <= (c) && (c) <= 'z')) 4066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4067#endif 4068 4069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4070int 4071main () 4072{ 4073 int i; 4074 for (i = 0; i < 256; i++) 4075 if (XOR (islower (i), ISLOWER (i)) 4076 || toupper (i) != TOUPPER (i)) 4077 return 2; 4078 return 0; 4079} 4080_ACEOF 4081if ac_fn_c_try_run "$LINENO"; then : 4082 4083else 4084 ac_cv_header_stdc=no 4085fi 4086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4087 conftest.$ac_objext conftest.beam conftest.$ac_ext 4088fi 4089 4090fi 4091fi 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4093$as_echo "$ac_cv_header_stdc" >&6; } 4094if test $ac_cv_header_stdc = yes; then 4095 4096$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4097 4098fi 4099 4100# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4101for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4102 inttypes.h stdint.h unistd.h 4103do : 4104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4105ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4106" 4107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4108 cat >>confdefs.h <<_ACEOF 4109#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4110_ACEOF 4111 4112fi 4113 4114done 4115 4116 4117for ac_header in sys/bitypes.h 4118do : 4119 ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 4120if test "x$ac_cv_header_sys_bitypes_h" = x""yes; then : 4121 cat >>confdefs.h <<_ACEOF 4122#define HAVE_SYS_BITYPES_H 1 4123_ACEOF 4124 4125fi 4126 4127done 4128 4129 4130ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default 4131#ifdef HAVE_SYS_BITYPES_H 4132#include <sys/bitypes.h> 4133#endif 4134" 4135if test "x$ac_cv_type_int8_t" = x""yes; then : 4136 4137else 4138 4139$as_echo "#define int8_t signed char" >>confdefs.h 4140 4141fi 4142 4143ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default 4144#ifdef HAVE_SYS_BITYPES_H 4145#include <sys/bitypes.h> 4146#endif 4147" 4148if test "x$ac_cv_type_u_int8_t" = x""yes; then : 4149 4150else 4151 4152$as_echo "#define u_int8_t unsigned char" >>confdefs.h 4153 4154fi 4155 4156ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 4157if test "x$ac_cv_type_int16_t" = x""yes; then : 4158 4159else 4160 4161$as_echo "#define int16_t short" >>confdefs.h 4162 4163 $ac_includes_default 4164#ifdef HAVE_SYS_BITYPES_H 4165#include <sys/bitypes.h> 4166#endif 4167fi 4168 4169ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default 4170#ifdef HAVE_SYS_BITYPES_H 4171#include <sys/bitypes.h> 4172#endif 4173" 4174if test "x$ac_cv_type_u_int16_t" = x""yes; then : 4175 4176else 4177 4178$as_echo "#define u_int16_t unsigned short" >>confdefs.h 4179 4180fi 4181 4182ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default 4183#ifdef HAVE_SYS_BITYPES_H 4184#include <sys/bitypes.h> 4185#endif 4186" 4187if test "x$ac_cv_type_int32_t" = x""yes; then : 4188 4189else 4190 4191$as_echo "#define int32_t int" >>confdefs.h 4192 4193fi 4194 4195ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default 4196#ifdef HAVE_SYS_BITYPES_H 4197#include <sys/bitypes.h> 4198#endif 4199" 4200if test "x$ac_cv_type_u_int32_t" = x""yes; then : 4201 4202else 4203 4204$as_echo "#define u_int32_t unsigned int" >>confdefs.h 4205 4206fi 4207 4208ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default 4209#ifdef HAVE_SYS_BITYPES_H 4210#include <sys/bitypes.h> 4211#endif 4212" 4213if test "x$ac_cv_type_int64_t" = x""yes; then : 4214 4215else 4216 4217$as_echo "#define int64_t long long" >>confdefs.h 4218 4219fi 4220 4221ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default 4222#ifdef HAVE_SYS_BITYPES_H 4223#include <sys/bitypes.h> 4224#endif 4225" 4226if test "x$ac_cv_type_u_int64_t" = x""yes; then : 4227 4228else 4229 4230$as_echo "#define u_int64_t unsigned long long" >>confdefs.h 4231 4232fi 4233 4234 4235# 4236# Try to arrange for large file support. 4237# 4238# Check whether --enable-largefile was given. 4239if test "${enable_largefile+set}" = set; then : 4240 enableval=$enable_largefile; 4241fi 4242 4243if test "$enable_largefile" != no; then 4244 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4246$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4247if test "${ac_cv_sys_largefile_CC+set}" = set; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 ac_cv_sys_largefile_CC=no 4251 if test "$GCC" != yes; then 4252 ac_save_CC=$CC 4253 while :; do 4254 # IRIX 6.2 and later do not support large files by default, 4255 # so use the C compiler's -n32 option if that helps. 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257/* end confdefs.h. */ 4258#include <sys/types.h> 4259 /* Check that off_t can represent 2**63 - 1 correctly. 4260 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4261 since some C++ compilers masquerading as C compilers 4262 incorrectly reject 9223372036854775807. */ 4263#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4265 && LARGE_OFF_T % 2147483647 == 1) 4266 ? 1 : -1]; 4267int 4268main () 4269{ 4270 4271 ; 4272 return 0; 4273} 4274_ACEOF 4275 if ac_fn_c_try_compile "$LINENO"; then : 4276 break 4277fi 4278rm -f core conftest.err conftest.$ac_objext 4279 CC="$CC -n32" 4280 if ac_fn_c_try_compile "$LINENO"; then : 4281 ac_cv_sys_largefile_CC=' -n32'; break 4282fi 4283rm -f core conftest.err conftest.$ac_objext 4284 break 4285 done 4286 CC=$ac_save_CC 4287 rm -f conftest.$ac_ext 4288 fi 4289fi 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4291$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4292 if test "$ac_cv_sys_largefile_CC" != no; then 4293 CC=$CC$ac_cv_sys_largefile_CC 4294 fi 4295 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4297$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4298if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 4299 $as_echo_n "(cached) " >&6 4300else 4301 while :; do 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304#include <sys/types.h> 4305 /* Check that off_t can represent 2**63 - 1 correctly. 4306 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4307 since some C++ compilers masquerading as C compilers 4308 incorrectly reject 9223372036854775807. */ 4309#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4311 && LARGE_OFF_T % 2147483647 == 1) 4312 ? 1 : -1]; 4313int 4314main () 4315{ 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_c_try_compile "$LINENO"; then : 4322 ac_cv_sys_file_offset_bits=no; break 4323fi 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327#define _FILE_OFFSET_BITS 64 4328#include <sys/types.h> 4329 /* Check that off_t can represent 2**63 - 1 correctly. 4330 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4331 since some C++ compilers masquerading as C compilers 4332 incorrectly reject 9223372036854775807. */ 4333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4335 && LARGE_OFF_T % 2147483647 == 1) 4336 ? 1 : -1]; 4337int 4338main () 4339{ 4340 4341 ; 4342 return 0; 4343} 4344_ACEOF 4345if ac_fn_c_try_compile "$LINENO"; then : 4346 ac_cv_sys_file_offset_bits=64; break 4347fi 4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349 ac_cv_sys_file_offset_bits=unknown 4350 break 4351done 4352fi 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4354$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4355case $ac_cv_sys_file_offset_bits in #( 4356 no | unknown) ;; 4357 *) 4358cat >>confdefs.h <<_ACEOF 4359#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4360_ACEOF 4361;; 4362esac 4363rm -rf conftest* 4364 if test $ac_cv_sys_file_offset_bits = unknown; then 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4366$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4367if test "${ac_cv_sys_large_files+set}" = set; then : 4368 $as_echo_n "(cached) " >&6 4369else 4370 while :; do 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4372/* end confdefs.h. */ 4373#include <sys/types.h> 4374 /* Check that off_t can represent 2**63 - 1 correctly. 4375 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4376 since some C++ compilers masquerading as C compilers 4377 incorrectly reject 9223372036854775807. */ 4378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4380 && LARGE_OFF_T % 2147483647 == 1) 4381 ? 1 : -1]; 4382int 4383main () 4384{ 4385 4386 ; 4387 return 0; 4388} 4389_ACEOF 4390if ac_fn_c_try_compile "$LINENO"; then : 4391 ac_cv_sys_large_files=no; break 4392fi 4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395/* end confdefs.h. */ 4396#define _LARGE_FILES 1 4397#include <sys/types.h> 4398 /* Check that off_t can represent 2**63 - 1 correctly. 4399 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4400 since some C++ compilers masquerading as C compilers 4401 incorrectly reject 9223372036854775807. */ 4402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4404 && LARGE_OFF_T % 2147483647 == 1) 4405 ? 1 : -1]; 4406int 4407main () 4408{ 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414if ac_fn_c_try_compile "$LINENO"; then : 4415 ac_cv_sys_large_files=1; break 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418 ac_cv_sys_large_files=unknown 4419 break 4420done 4421fi 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4423$as_echo "$ac_cv_sys_large_files" >&6; } 4424case $ac_cv_sys_large_files in #( 4425 no | unknown) ;; 4426 *) 4427cat >>confdefs.h <<_ACEOF 4428#define _LARGE_FILES $ac_cv_sys_large_files 4429_ACEOF 4430;; 4431esac 4432rm -rf conftest* 4433 fi 4434fi 4435 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 4437$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 4438if test "${ac_cv_sys_largefile_source+set}" = set; then : 4439 $as_echo_n "(cached) " >&6 4440else 4441 while :; do 4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4443/* end confdefs.h. */ 4444#include <sys/types.h> /* for off_t */ 4445 #include <stdio.h> 4446int 4447main () 4448{ 4449int (*fp) (FILE *, off_t, int) = fseeko; 4450 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 4451 ; 4452 return 0; 4453} 4454_ACEOF 4455if ac_fn_c_try_link "$LINENO"; then : 4456 ac_cv_sys_largefile_source=no; break 4457fi 4458rm -f core conftest.err conftest.$ac_objext \ 4459 conftest$ac_exeext conftest.$ac_ext 4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461/* end confdefs.h. */ 4462#define _LARGEFILE_SOURCE 1 4463#include <sys/types.h> /* for off_t */ 4464 #include <stdio.h> 4465int 4466main () 4467{ 4468int (*fp) (FILE *, off_t, int) = fseeko; 4469 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 4470 ; 4471 return 0; 4472} 4473_ACEOF 4474if ac_fn_c_try_link "$LINENO"; then : 4475 ac_cv_sys_largefile_source=1; break 4476fi 4477rm -f core conftest.err conftest.$ac_objext \ 4478 conftest$ac_exeext conftest.$ac_ext 4479 ac_cv_sys_largefile_source=unknown 4480 break 4481done 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 4484$as_echo "$ac_cv_sys_largefile_source" >&6; } 4485case $ac_cv_sys_largefile_source in #( 4486 no | unknown) ;; 4487 *) 4488cat >>confdefs.h <<_ACEOF 4489#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 4490_ACEOF 4491;; 4492esac 4493rm -rf conftest* 4494 4495# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 4496# in glibc 2.1.3, but that breaks too many other things. 4497# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 4498if test $ac_cv_sys_largefile_source != unknown; then 4499 4500$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 4501 4502fi 4503 4504 4505for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h 4506do : 4507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4508ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4509if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4510 cat >>confdefs.h <<_ACEOF 4511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4512_ACEOF 4513 4514fi 4515 4516done 4517 4518for ac_header in linux/types.h 4519do : 4520 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" 4521if test "x$ac_cv_header_linux_types_h" = x""yes; then : 4522 cat >>confdefs.h <<_ACEOF 4523#define HAVE_LINUX_TYPES_H 1 4524_ACEOF 4525 4526fi 4527 4528done 4529 4530for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h 4531do : 4532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4533ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4534if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4535 cat >>confdefs.h <<_ACEOF 4536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4537_ACEOF 4538 4539fi 4540 4541done 4542 4543for ac_header in net/pfvar.h 4544do : 4545 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h> 4546#include <sys/socket.h> 4547#include <net/if.h> 4548" 4549if test "x$ac_cv_header_net_pfvar_h" = x""yes; then : 4550 cat >>confdefs.h <<_ACEOF 4551#define HAVE_NET_PFVAR_H 1 4552_ACEOF 4553 4554fi 4555 4556done 4557 4558if test "$ac_cv_header_net_pfvar_h" = yes; then 4559 # 4560 # Check for various PF actions. 4561 # 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5 4563$as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; } 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4565/* end confdefs.h. */ 4566#include <sys/types.h> 4567 #include <sys/socket.h> 4568 #include <net/if.h> 4569 #include <net/pfvar.h> 4570int 4571main () 4572{ 4573return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR; 4574 ; 4575 return 0; 4576} 4577_ACEOF 4578if ac_fn_c_try_compile "$LINENO"; then : 4579 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4581$as_echo "yes" >&6; } 4582 4583$as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h 4584 4585 4586else 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4588$as_echo "no" >&6; } 4589fi 4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4591fi 4592for ac_header in netinet/if_ether.h 4593do : 4594 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h> 4595#include <sys/socket.h> 4596" 4597if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then : 4598 cat >>confdefs.h <<_ACEOF 4599#define HAVE_NETINET_IF_ETHER_H 1 4600_ACEOF 4601 4602fi 4603 4604done 4605 4606if test "$ac_cv_header_netinet_if_ether_h" != yes; then 4607 # 4608 # The simple test didn't work. 4609 # Do we need to include <net/if.h> first? 4610 # Unset ac_cv_header_netinet_if_ether_h so we don't 4611 # treat the previous failure as a cached value and 4612 # suppress the next test. 4613 # 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5 4615$as_echo "$as_me: Rechecking with some additional includes" >&6;} 4616 unset ac_cv_header_netinet_if_ether_h 4617 for ac_header in netinet/if_ether.h 4618do : 4619 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h> 4620#include <sys/socket.h> 4621#include <netinet/in.h> 4622struct mbuf; 4623struct rtentry; 4624#include <net/if.h> 4625" 4626if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then : 4627 cat >>confdefs.h <<_ACEOF 4628#define HAVE_NETINET_IF_ETHER_H 1 4629_ACEOF 4630 4631fi 4632 4633done 4634 4635fi 4636 4637if test "$GCC" = yes ; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5 4639$as_echo_n "checking for ANSI ioctl definitions... " >&6; } 4640 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then : 4641 $as_echo_n "(cached) " >&6 4642else 4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4644/* end confdefs.h. */ 4645/* 4646 * This generates a "duplicate case value" when fixincludes 4647 * has not be run. 4648 */ 4649# include <sys/types.h> 4650# include <sys/time.h> 4651# include <sys/ioctl.h> 4652# ifdef HAVE_SYS_IOCCOM_H 4653# include <sys/ioccom.h> 4654# endif 4655int 4656main () 4657{ 4658switch (0) { 4659 case _IO('A', 1):; 4660 case _IO('B', 1):; 4661 } 4662 ; 4663 return 0; 4664} 4665_ACEOF 4666if ac_fn_c_try_compile "$LINENO"; then : 4667 ac_cv_lbl_gcc_fixincludes=yes 4668else 4669 ac_cv_lbl_gcc_fixincludes=no 4670fi 4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4672fi 4673 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5 4675$as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; } 4676 if test $ac_cv_lbl_gcc_fixincludes = no ; then 4677 # Don't cache failure 4678 unset ac_cv_lbl_gcc_fixincludes 4679 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5 4680 fi 4681 fi 4682 4683for ac_func in strerror strlcpy 4684do : 4685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4686ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4687if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4688 cat >>confdefs.h <<_ACEOF 4689#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4690_ACEOF 4691 4692fi 4693done 4694 4695 4696needsnprintf=no 4697for ac_func in vsnprintf snprintf 4698do : 4699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4701if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4702 cat >>confdefs.h <<_ACEOF 4703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4704_ACEOF 4705 4706else 4707 needsnprintf=yes 4708fi 4709done 4710 4711if test $needsnprintf = yes; then 4712 case " $LIBOBJS " in 4713 *" snprintf.$ac_objext "* ) ;; 4714 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 4715 ;; 4716esac 4717 4718fi 4719 4720# 4721# Do this before checking for ether_hostton(), as it's a 4722# "gethostbyname() -ish function". 4723# 4724 4725 # Most operating systems have gethostbyname() in the default searched 4726 # libraries (i.e. libc): 4727 # Some OSes (eg. Solaris) place it in libnsl 4728 # Some strange OSes (SINIX) have it in libsocket: 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 4730$as_echo_n "checking for library containing gethostbyname... " >&6; } 4731if test "${ac_cv_search_gethostbyname+set}" = set; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 ac_func_search_save_LIBS=$LIBS 4735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4736/* end confdefs.h. */ 4737 4738/* Override any GCC internal prototype to avoid an error. 4739 Use char because int might match the return type of a GCC 4740 builtin and then its argument prototype would still apply. */ 4741#ifdef __cplusplus 4742extern "C" 4743#endif 4744char gethostbyname (); 4745int 4746main () 4747{ 4748return gethostbyname (); 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753for ac_lib in '' nsl socket resolv; do 4754 if test -z "$ac_lib"; then 4755 ac_res="none required" 4756 else 4757 ac_res=-l$ac_lib 4758 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4759 fi 4760 if ac_fn_c_try_link "$LINENO"; then : 4761 ac_cv_search_gethostbyname=$ac_res 4762fi 4763rm -f core conftest.err conftest.$ac_objext \ 4764 conftest$ac_exeext 4765 if test "${ac_cv_search_gethostbyname+set}" = set; then : 4766 break 4767fi 4768done 4769if test "${ac_cv_search_gethostbyname+set}" = set; then : 4770 4771else 4772 ac_cv_search_gethostbyname=no 4773fi 4774rm conftest.$ac_ext 4775LIBS=$ac_func_search_save_LIBS 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 4778$as_echo "$ac_cv_search_gethostbyname" >&6; } 4779ac_res=$ac_cv_search_gethostbyname 4780if test "$ac_res" != no; then : 4781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4782 4783fi 4784 4785 # Unfortunately libsocket sometimes depends on libnsl and 4786 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 4787 if test "$ac_cv_search_gethostbyname" = "no" 4788 then 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 4790$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 4791if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 ac_check_lib_save_LIBS=$LIBS 4795LIBS="-lsocket -lnsl $LIBS" 4796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798 4799/* Override any GCC internal prototype to avoid an error. 4800 Use char because int might match the return type of a GCC 4801 builtin and then its argument prototype would still apply. */ 4802#ifdef __cplusplus 4803extern "C" 4804#endif 4805char gethostbyname (); 4806int 4807main () 4808{ 4809return gethostbyname (); 4810 ; 4811 return 0; 4812} 4813_ACEOF 4814if ac_fn_c_try_link "$LINENO"; then : 4815 ac_cv_lib_socket_gethostbyname=yes 4816else 4817 ac_cv_lib_socket_gethostbyname=no 4818fi 4819rm -f core conftest.err conftest.$ac_objext \ 4820 conftest$ac_exeext conftest.$ac_ext 4821LIBS=$ac_check_lib_save_LIBS 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 4824$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 4825if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then : 4826 LIBS="-lsocket -lnsl $LIBS" 4827fi 4828 4829 fi 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 4831$as_echo_n "checking for library containing socket... " >&6; } 4832if test "${ac_cv_search_socket+set}" = set; then : 4833 $as_echo_n "(cached) " >&6 4834else 4835 ac_func_search_save_LIBS=$LIBS 4836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837/* end confdefs.h. */ 4838 4839/* Override any GCC internal prototype to avoid an error. 4840 Use char because int might match the return type of a GCC 4841 builtin and then its argument prototype would still apply. */ 4842#ifdef __cplusplus 4843extern "C" 4844#endif 4845char socket (); 4846int 4847main () 4848{ 4849return socket (); 4850 ; 4851 return 0; 4852} 4853_ACEOF 4854for ac_lib in '' socket; do 4855 if test -z "$ac_lib"; then 4856 ac_res="none required" 4857 else 4858 ac_res=-l$ac_lib 4859 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4860 fi 4861 if ac_fn_c_try_link "$LINENO"; then : 4862 ac_cv_search_socket=$ac_res 4863fi 4864rm -f core conftest.err conftest.$ac_objext \ 4865 conftest$ac_exeext 4866 if test "${ac_cv_search_socket+set}" = set; then : 4867 break 4868fi 4869done 4870if test "${ac_cv_search_socket+set}" = set; then : 4871 4872else 4873 ac_cv_search_socket=no 4874fi 4875rm conftest.$ac_ext 4876LIBS=$ac_func_search_save_LIBS 4877fi 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 4879$as_echo "$ac_cv_search_socket" >&6; } 4880ac_res=$ac_cv_search_socket 4881if test "$ac_res" != no; then : 4882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4883 4884else 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 4886$as_echo_n "checking for socket in -lsocket... " >&6; } 4887if test "${ac_cv_lib_socket_socket+set}" = set; then : 4888 $as_echo_n "(cached) " >&6 4889else 4890 ac_check_lib_save_LIBS=$LIBS 4891LIBS="-lsocket -lnsl $LIBS" 4892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894 4895/* Override any GCC internal prototype to avoid an error. 4896 Use char because int might match the return type of a GCC 4897 builtin and then its argument prototype would still apply. */ 4898#ifdef __cplusplus 4899extern "C" 4900#endif 4901char socket (); 4902int 4903main () 4904{ 4905return socket (); 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910if ac_fn_c_try_link "$LINENO"; then : 4911 ac_cv_lib_socket_socket=yes 4912else 4913 ac_cv_lib_socket_socket=no 4914fi 4915rm -f core conftest.err conftest.$ac_objext \ 4916 conftest$ac_exeext conftest.$ac_ext 4917LIBS=$ac_check_lib_save_LIBS 4918fi 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 4920$as_echo "$ac_cv_lib_socket_socket" >&6; } 4921if test "x$ac_cv_lib_socket_socket" = x""yes; then : 4922 LIBS="-lsocket -lnsl $LIBS" 4923fi 4924 4925fi 4926 4927 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5 4929$as_echo_n "checking for library containing putmsg... " >&6; } 4930if test "${ac_cv_search_putmsg+set}" = set; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 ac_func_search_save_LIBS=$LIBS 4934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4935/* end confdefs.h. */ 4936 4937/* Override any GCC internal prototype to avoid an error. 4938 Use char because int might match the return type of a GCC 4939 builtin and then its argument prototype would still apply. */ 4940#ifdef __cplusplus 4941extern "C" 4942#endif 4943char putmsg (); 4944int 4945main () 4946{ 4947return putmsg (); 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952for ac_lib in '' str; do 4953 if test -z "$ac_lib"; then 4954 ac_res="none required" 4955 else 4956 ac_res=-l$ac_lib 4957 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4958 fi 4959 if ac_fn_c_try_link "$LINENO"; then : 4960 ac_cv_search_putmsg=$ac_res 4961fi 4962rm -f core conftest.err conftest.$ac_objext \ 4963 conftest$ac_exeext 4964 if test "${ac_cv_search_putmsg+set}" = set; then : 4965 break 4966fi 4967done 4968if test "${ac_cv_search_putmsg+set}" = set; then : 4969 4970else 4971 ac_cv_search_putmsg=no 4972fi 4973rm conftest.$ac_ext 4974LIBS=$ac_func_search_save_LIBS 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5 4977$as_echo "$ac_cv_search_putmsg" >&6; } 4978ac_res=$ac_cv_search_putmsg 4979if test "$ac_res" != no; then : 4980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4981 4982fi 4983 4984 4985 4986# 4987# You are in a twisty little maze of UN*Xes, all different. 4988# Some might not have ether_hostton(). 4989# Some might have it, but not declare it in any header file. 4990# Some might have it, but declare it in <netinet/if_ether.h>. 4991# Some might have it, but declare it in <netinet/ether.h> 4992# (And some might have it but document it as something declared in 4993# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 4994# 4995# Before you is a C compiler. 4996# 4997for ac_func in ether_hostton 4998do : 4999 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton" 5000if test "x$ac_cv_func_ether_hostton" = x""yes; then : 5001 cat >>confdefs.h <<_ACEOF 5002#define HAVE_ETHER_HOSTTON 1 5003_ACEOF 5004 5005fi 5006done 5007 5008if test "$ac_cv_func_ether_hostton" = yes; then 5009 # 5010 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>? 5011 # 5012 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 5013 # 5014 # Yes. Does it declare ether_hostton()? 5015 # 5016 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 5017#include <sys/types.h> 5018#include <sys/socket.h> 5019#include <netinet/in.h> 5020#include <arpa/inet.h> 5021struct mbuf; 5022struct rtentry; 5023#include <net/if.h> 5024#include <netinet/if_ether.h> 5025 5026" 5027if test "x$ac_cv_have_decl_ether_hostton" = x""yes; then : 5028 5029 5030$as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 5031 5032 5033fi 5034 5035 fi 5036 # 5037 # Did that succeed? 5038 # 5039 if test "$ac_cv_have_decl_ether_hostton" != yes; then 5040 # 5041 # No, how about <netinet/ether.h>, as on Linux? 5042 # 5043 for ac_header in netinet/ether.h 5044do : 5045 ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default" 5046if test "x$ac_cv_header_netinet_ether_h" = x""yes; then : 5047 cat >>confdefs.h <<_ACEOF 5048#define HAVE_NETINET_ETHER_H 1 5049_ACEOF 5050 5051fi 5052 5053done 5054 5055 if test "$ac_cv_header_netinet_ether_h" = yes; then 5056 # 5057 # We have it - does it declare ether_hostton()? 5058 # Unset ac_cv_have_decl_ether_hostton so we don't 5059 # treat the previous failure as a cached value and 5060 # suppress the next test. 5061 # 5062 unset ac_cv_have_decl_ether_hostton 5063 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 5064#include <netinet/ether.h> 5065 5066" 5067if test "x$ac_cv_have_decl_ether_hostton" = x""yes; then : 5068 5069 5070$as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 5071 5072 5073fi 5074 5075 fi 5076 fi 5077 # 5078 # Is ether_hostton() declared? 5079 # 5080 if test "$ac_cv_have_decl_ether_hostton" != yes; then 5081 # 5082 # No, we'll have to declare it ourselves. 5083 # Do we have "struct ether_addr"? 5084 # 5085 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " 5086#include <sys/types.h> 5087#include <sys/socket.h> 5088#include <netinet/in.h> 5089#include <arpa/inet.h> 5090struct mbuf; 5091struct rtentry; 5092#include <net/if.h> 5093#include <netinet/if_ether.h> 5094 5095" 5096if test "x$ac_cv_type_struct_ether_addr" = x""yes; then : 5097 5098cat >>confdefs.h <<_ACEOF 5099#define HAVE_STRUCT_ETHER_ADDR 1 5100_ACEOF 5101 5102 5103fi 5104 5105 5106$as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h 5107 5108 else 5109 5110$as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h 5111 5112 fi 5113fi 5114 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5 5116$as_echo_n "checking if --disable-protochain option is specified... " >&6; } 5117# Check whether --enable-protochain was given. 5118if test "${enable_protochain+set}" = set; then : 5119 enableval=$enable_protochain; 5120fi 5121 5122case "x$enable_protochain" in 5123xyes) enable_protochain=enabled ;; 5124xno) enable_protochain=disabled ;; 5125x) enable_protochain=enabled ;; 5126esac 5127 5128if test "$enable_protochain" = "disabled"; then 5129 5130$as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h 5131 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5 5134$as_echo "${enable_protochain}" >&6; } 5135 5136# 5137# SITA support is mutually exclusive with native capture support; 5138# "--with-sita" selects SITA support. 5139# 5140 5141# Check whether --with-sita was given. 5142if test "${with_sita+set}" = set; then : 5143 withval=$with_sita; 5144 if test ! "x$withval" = "xno" ; then 5145 5146$as_echo "#define SITA 1" >>confdefs.h 5147 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5 5149$as_echo "$as_me: Enabling SITA ACN support" >&6;} 5150 V_PCAP=sita 5151 V_FINDALLDEVS=sita 5152 fi 5153 5154else 5155 5156if test -z "$with_pcap" && test "$cross_compiling" = yes; then 5157 as_fn_error $? "pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5 5158fi 5159 5160# Check whether --with-pcap was given. 5161if test "${with_pcap+set}" = set; then : 5162 withval=$with_pcap; 5163fi 5164 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5 5166$as_echo_n "checking packet capture type... " >&6; } 5167if test ! -z "$with_pcap" ; then 5168 V_PCAP="$withval" 5169elif test -r /dev/bpf -o -h /dev/bpf ; then 5170 # 5171 # Cloning BPF device. 5172 # 5173 V_PCAP=bpf 5174 5175$as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h 5176 5177elif test -r /dev/bpf0 ; then 5178 V_PCAP=bpf 5179elif test -r /usr/include/net/pfilt.h ; then 5180 V_PCAP=pf 5181elif test -r /dev/enet ; then 5182 V_PCAP=enet 5183elif test -r /dev/nit ; then 5184 V_PCAP=snit 5185elif test -r /usr/include/sys/net/nit.h ; then 5186 V_PCAP=nit 5187elif test -r /usr/include/linux/socket.h ; then 5188 V_PCAP=linux 5189elif test -r /usr/include/net/raw.h ; then 5190 V_PCAP=snoop 5191elif test -r /usr/include/odmi.h ; then 5192 # 5193 # On AIX, the BPF devices might not yet be present - they're 5194 # created the first time libpcap runs after booting. 5195 # We check for odmi.h instead. 5196 # 5197 V_PCAP=bpf 5198elif test -c /dev/bpf0 ; then # check again in case not readable 5199 V_PCAP=bpf 5200elif test -r /usr/include/sys/dlpi.h ; then 5201 V_PCAP=dlpi 5202elif test -c /dev/enet ; then # check again in case not readable 5203 V_PCAP=enet 5204elif test -c /dev/nit ; then # check again in case not readable 5205 V_PCAP=snit 5206else 5207 V_PCAP=null 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5 5210$as_echo "$V_PCAP" >&6; } 5211 5212# 5213# Do capture-mechanism-dependent tests. 5214# 5215case "$V_PCAP" in 5216dlpi) 5217 # 5218 # Checks to see if Solaris has the public libdlpi(3LIB) library. 5219 # Note: The existence of /usr/include/libdlpi.h does not mean it is the 5220 # public libdlpi(3LIB) version. Before libdlpi was made public, a 5221 # private version also existed, which did not have the same APIs. 5222 # Due to a gcc bug, the default search path for 32-bit libraries does 5223 # not include /lib, we add it explicitly here. 5224 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485]. 5225 # Also, due to the bug above applications that link to libpcap with 5226 # libdlpi will have to add "-L/lib" option to "configure". 5227 # 5228 saved_ldflags=$LDFLAGS 5229 LDFLAGS="$LIBS -L/lib" 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 5231$as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; } 5232if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then : 5233 $as_echo_n "(cached) " >&6 5234else 5235 ac_check_lib_save_LIBS=$LIBS 5236LIBS="-ldlpi $LIBS" 5237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239 5240/* Override any GCC internal prototype to avoid an error. 5241 Use char because int might match the return type of a GCC 5242 builtin and then its argument prototype would still apply. */ 5243#ifdef __cplusplus 5244extern "C" 5245#endif 5246char dlpi_walk (); 5247int 5248main () 5249{ 5250return dlpi_walk (); 5251 ; 5252 return 0; 5253} 5254_ACEOF 5255if ac_fn_c_try_link "$LINENO"; then : 5256 ac_cv_lib_dlpi_dlpi_walk=yes 5257else 5258 ac_cv_lib_dlpi_dlpi_walk=no 5259fi 5260rm -f core conftest.err conftest.$ac_objext \ 5261 conftest$ac_exeext conftest.$ac_ext 5262LIBS=$ac_check_lib_save_LIBS 5263fi 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 5265$as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; } 5266if test "x$ac_cv_lib_dlpi_dlpi_walk" = x""yes; then : 5267 LIBS="-ldlpi $LIBS" 5268 V_PCAP=libdlpi 5269 5270$as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h 5271 5272else 5273 V_PCAP=dlpi 5274fi 5275 5276 LDFLAGS=$saved_ldflags 5277 5278 # 5279 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO 5280 # versions of DLPI. 5281 # 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5 5283$as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; } 5284 if test "${ac_cv_sys_dlpi_usable+set}" = set; then : 5285 $as_echo_n "(cached) " >&6 5286else 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5288/* end confdefs.h. */ 5289 5290 #include <sys/types.h> 5291 #include <sys/time.h> 5292 #include <sys/dlpi.h> 5293 5294int 5295main () 5296{ 5297int i = DL_PROMISC_PHYS; 5298 ; 5299 return 0; 5300} 5301_ACEOF 5302if ac_fn_c_try_compile "$LINENO"; then : 5303 ac_cv_sys_dlpi_usable=yes 5304else 5305 ac_cv_sys_dlpi_usable=no 5306fi 5307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5308fi 5309 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5 5311$as_echo "$ac_cv_sys_dlpi_usable" >&6; } 5312 if test $ac_cv_sys_dlpi_usable = no ; then 5313 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5 5314 fi 5315 5316 # 5317 # Check whether we have a /dev/dlpi device or have multiple devices. 5318 # 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5 5320$as_echo_n "checking for /dev/dlpi device... " >&6; } 5321 if test -c /dev/dlpi ; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5323$as_echo "yes" >&6; } 5324 5325$as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h 5326 5327 else 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329$as_echo "no" >&6; } 5330 dir="/dev/dlpi" 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5 5332$as_echo_n "checking for $dir directory... " >&6; } 5333 if test -d $dir ; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5335$as_echo "yes" >&6; } 5336 5337cat >>confdefs.h <<_ACEOF 5338#define PCAP_DEV_PREFIX "$dir" 5339_ACEOF 5340 5341 else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343$as_echo "no" >&6; } 5344 fi 5345 fi 5346 5347 # 5348 # This check is for Solaris with DLPI support for passive modes. 5349 # See dlpi(7P) for more details. 5350 # 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5 5352$as_echo_n "checking if dl_passive_req_t struct exists... " >&6; } 5353 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358 5359# include <sys/types.h> 5360# include <sys/dlpi.h> 5361int 5362main () 5363{ 5364u_int i = sizeof(dl_passive_req_t) 5365 ; 5366 return 0; 5367} 5368_ACEOF 5369if ac_fn_c_try_compile "$LINENO"; then : 5370 ac_cv_lbl_has_dl_passive_req_t=yes 5371else 5372 ac_cv_lbl_has_dl_passive_req_t=no 5373fi 5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5375fi 5376 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5 5378$as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; } 5379 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then 5380 5381$as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h 5382 5383 fi 5384 ;; 5385 5386linux) 5387 # 5388 # Do we have the wireless extensions? 5389 # 5390 for ac_header in linux/wireless.h 5391do : 5392 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " 5393#include <sys/socket.h> 5394#include <linux/if.h> 5395#include <linux/types.h> 5396 5397" 5398if test "x$ac_cv_header_linux_wireless_h" = x""yes; then : 5399 cat >>confdefs.h <<_ACEOF 5400#define HAVE_LINUX_WIRELESS_H 1 5401_ACEOF 5402 5403fi 5404 5405done 5406 5407 5408 # 5409 # Do we have libnl? 5410 # 5411 5412# Check whether --with-libnl was given. 5413if test "${with_libnl+set}" = set; then : 5414 withval=$with_libnl; with_libnl=$withval 5415fi 5416 5417 5418 if test x$with_libnl != xno ; then 5419 # 5420 # Try libnl 2.x first. 5421 # 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5 5423$as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; } 5424if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 ac_check_lib_save_LIBS=$LIBS 5428LIBS="-lnl $LIBS" 5429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431 5432/* Override any GCC internal prototype to avoid an error. 5433 Use char because int might match the return type of a GCC 5434 builtin and then its argument prototype would still apply. */ 5435#ifdef __cplusplus 5436extern "C" 5437#endif 5438char nl_socket_alloc (); 5439int 5440main () 5441{ 5442return nl_socket_alloc (); 5443 ; 5444 return 0; 5445} 5446_ACEOF 5447if ac_fn_c_try_link "$LINENO"; then : 5448 ac_cv_lib_nl_nl_socket_alloc=yes 5449else 5450 ac_cv_lib_nl_nl_socket_alloc=no 5451fi 5452rm -f core conftest.err conftest.$ac_objext \ 5453 conftest$ac_exeext conftest.$ac_ext 5454LIBS=$ac_check_lib_save_LIBS 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5 5457$as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; } 5458if test "x$ac_cv_lib_nl_nl_socket_alloc" = x""yes; then : 5459 5460 # 5461 # Yes, we have libnl 2.x. 5462 # 5463 LIBS="-lnl-genl -lnl $LIBS" 5464 5465$as_echo "#define HAVE_LIBNL 1" >>confdefs.h 5466 5467 5468$as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h 5469 5470 5471else 5472 5473 # 5474 # No, we don't; do we have libnl 1.x? 5475 # 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5 5477$as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; } 5478if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 ac_check_lib_save_LIBS=$LIBS 5482LIBS="-lnl $LIBS" 5483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485 5486/* Override any GCC internal prototype to avoid an error. 5487 Use char because int might match the return type of a GCC 5488 builtin and then its argument prototype would still apply. */ 5489#ifdef __cplusplus 5490extern "C" 5491#endif 5492char nl_handle_alloc (); 5493int 5494main () 5495{ 5496return nl_handle_alloc (); 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501if ac_fn_c_try_link "$LINENO"; then : 5502 ac_cv_lib_nl_nl_handle_alloc=yes 5503else 5504 ac_cv_lib_nl_nl_handle_alloc=no 5505fi 5506rm -f core conftest.err conftest.$ac_objext \ 5507 conftest$ac_exeext conftest.$ac_ext 5508LIBS=$ac_check_lib_save_LIBS 5509fi 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5 5511$as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; } 5512if test "x$ac_cv_lib_nl_nl_handle_alloc" = x""yes; then : 5513 5514 # 5515 # Yes. 5516 # 5517 LIBS="-lnl $LIBS" 5518 5519$as_echo "#define HAVE_LIBNL 1" >>confdefs.h 5520 5521 5522else 5523 5524 # 5525 # No, we don't have libnl at all. 5526 # 5527 if test x$with_libnl = xyes ; then 5528 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5 5529 fi 5530 5531fi 5532 5533 5534fi 5535 5536 fi 5537 5538 for ac_header in linux/ethtool.h 5539do : 5540 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" " 5541$ac_includes_default 5542#include <linux/types.h> 5543 5544" 5545if test "x$ac_cv_header_linux_ethtool_h" = x""yes; then : 5546 cat >>confdefs.h <<_ACEOF 5547#define HAVE_LINUX_ETHTOOL_H 1 5548_ACEOF 5549 5550fi 5551 5552done 5553 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5 5555$as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; } 5556 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561 5562# include <linux/if_packet.h> 5563int 5564main () 5565{ 5566struct tpacket_stats stats 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571if ac_fn_c_try_compile "$LINENO"; then : 5572 ac_cv_lbl_tpacket_stats=yes 5573else 5574 ac_cv_lbl_tpacket_stats=no 5575fi 5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5577fi 5578 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5 5580$as_echo "$ac_cv_lbl_tpacket_stats" >&6; } 5581 if test $ac_cv_lbl_tpacket_stats = yes; then 5582 5583$as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h 5584 5585 fi 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5 5587$as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; } 5588 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593 5594# include <sys/types.h> 5595# include <linux/if_packet.h> 5596int 5597main () 5598{ 5599u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci) 5600 ; 5601 return 0; 5602} 5603_ACEOF 5604if ac_fn_c_try_compile "$LINENO"; then : 5605 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes 5606else 5607 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no 5608fi 5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5610fi 5611 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5 5613$as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; } 5614 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then 5615 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci 5616 5617 5618$as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h 5619 5620 fi 5621 ;; 5622 5623bpf) 5624 # 5625 # Check whether we have the *BSD-style ioctls. 5626 # 5627 for ac_header in net/if_media.h 5628do : 5629 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default" 5630if test "x$ac_cv_header_net_if_media_h" = x""yes; then : 5631 cat >>confdefs.h <<_ACEOF 5632#define HAVE_NET_IF_MEDIA_H 1 5633_ACEOF 5634 5635fi 5636 5637done 5638 5639 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5 5641$as_echo_n "checking whether the system supports zerocopy BPF... " >&6; } 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643/* end confdefs.h. */ 5644#include <sys/socket.h> 5645 #include <sys/ioctl.h> 5646 #include <net/if.h> 5647 #include <net/bpf.h> 5648int 5649main () 5650{ 5651return (BIOCROTZBUF + BPF_BUFMODE_ZBUF); 5652 ; 5653 return 0; 5654} 5655_ACEOF 5656if ac_fn_c_try_compile "$LINENO"; then : 5657 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5659$as_echo "yes" >&6; } 5660 5661$as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h 5662 5663 5664else 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5666$as_echo "no" >&6; } 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669 5670 # 5671 # Check whether we have struct BPF_TIMEVAL. 5672 # 5673 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" " 5674#include <sys/types.h> 5675#include <sys/ioctl.h> 5676#ifdef HAVE_SYS_IOCCOM_H 5677#include <sys/ioccom.h> 5678#endif 5679#include <net/bpf.h> 5680 5681" 5682if test "x$ac_cv_type_struct_BPF_TIMEVAL" = x""yes; then : 5683 5684cat >>confdefs.h <<_ACEOF 5685#define HAVE_STRUCT_BPF_TIMEVAL 1 5686_ACEOF 5687 5688 5689fi 5690 5691 ;; 5692 5693dag) 5694 V_DEFS="$V_DEFS -DDAG_ONLY" 5695 ;; 5696 5697septel) 5698 V_DEFS="$V_DEFS -DSEPTEL_ONLY" 5699 ;; 5700 5701snf) 5702 V_DEFS="$V_DEFS -DSNF_ONLY" 5703 ;; 5704 5705null) 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5 5707$as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;} 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5 5709$as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;} 5710 ;; 5711esac 5712 5713if test "$V_PCAP" = null 5714then 5715 # 5716 # We can't capture, so we can't open any capture 5717 # devices, so we won't return any interfaces. 5718 # 5719 V_FINDALLDEVS=null 5720else 5721 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 5722if test "x$ac_cv_func_getifaddrs" = x""yes; then : 5723 5724 # 5725 # We have "getifaddrs()"; make sure we have <ifaddrs.h> 5726 # as well, just in case some platform is really weird. 5727 # 5728 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 5729if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : 5730 5731 # 5732 # We have the header, so we use "getifaddrs()" to 5733 # get the list of interfaces. 5734 # 5735 V_FINDALLDEVS=getad 5736 5737else 5738 5739 # 5740 # We don't have the header - give up. 5741 # XXX - we could also fall back on some other 5742 # mechanism, but, for now, this'll catch this 5743 # problem so that we can at least try to figure 5744 # out something to do on systems with "getifaddrs()" 5745 # but without "ifaddrs.h", if there is something 5746 # we can do on those systems. 5747 # 5748 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5 5749 5750fi 5751 5752 5753 5754else 5755 5756 # 5757 # Well, we don't have "getifaddrs()", so we have to use 5758 # some other mechanism; determine what that mechanism is. 5759 # 5760 # The first thing we use is the type of capture mechanism, 5761 # which is somewhat of a proxy for the OS we're using. 5762 # 5763 case "$V_PCAP" in 5764 5765 dlpi|libdlpi) 5766 for ac_header in sys/bufmod.h sys/dlpi_ext.h 5767do : 5768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5769ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5771 cat >>confdefs.h <<_ACEOF 5772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5773_ACEOF 5774 5775fi 5776 5777done 5778 5779 # 5780 # This might be Solaris 8 or later, with 5781 # SIOCGLIFCONF, or it might be some other OS 5782 # or some older version of Solaris, with 5783 # just SIOCGIFCONF. 5784 # 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5 5786$as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; } 5787 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792#include <sys/param.h> 5793 #include <sys/file.h> 5794 #include <sys/ioctl.h> 5795 #include <sys/socket.h> 5796 #include <sys/sockio.h> 5797int 5798main () 5799{ 5800ioctl(0, SIOCGLIFCONF, (char *)0); 5801 ; 5802 return 0; 5803} 5804_ACEOF 5805if ac_fn_c_try_compile "$LINENO"; then : 5806 ac_cv_lbl_have_siocglifconf=yes 5807else 5808 ac_cv_lbl_have_siocglifconf=no 5809fi 5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5811fi 5812 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5 5814$as_echo "$ac_cv_lbl_have_siocglifconf" >&6; } 5815 if test $ac_cv_lbl_have_siocglifconf = yes ; then 5816 V_FINDALLDEVS=glifc 5817 else 5818 V_FINDALLDEVS=gifc 5819 fi 5820 # 5821 # Needed for common functions used by pcap-[dlpi,libdlpi].c 5822 # 5823 SSRC="dlpisubs.c" 5824 ;; 5825 5826 *) 5827 # 5828 # Assume we just have SIOCGIFCONF. 5829 # (XXX - on at least later Linux kernels, there's 5830 # another mechanism, and we should be using that 5831 # instead.) 5832 # 5833 V_FINDALLDEVS=gifc 5834 ;; 5835 esac 5836fi 5837 5838fi 5839 5840fi 5841 5842 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 5844$as_echo_n "checking for socklen_t... " >&6; } 5845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847 5848 #include <sys/types.h> 5849 #include <sys/socket.h> 5850 5851int 5852main () 5853{ 5854 socklen_t x; 5855 ; 5856 return 0; 5857} 5858_ACEOF 5859if ac_fn_c_try_compile "$LINENO"; then : 5860 have_socklen_t=yes 5861else 5862 have_socklen_t=no 5863fi 5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5865if test "x$have_socklen_t" = "xyes"; then 5866 5867$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 5868 5869fi 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5 5871$as_echo "$have_socklen_t" >&6; } 5872 5873# Check whether --enable-ipv6 was given. 5874if test "${enable_ipv6+set}" = set; then : 5875 enableval=$enable_ipv6; 5876else 5877 enable_ipv6=ifavailable 5878fi 5879 5880if test "$enable_ipv6" != "no"; then 5881 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 5882if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 5883 5884 5885$as_echo "#define INET6 1" >>confdefs.h 5886 5887 5888else 5889 5890 if test "$enable_ipv6" != "ifavailable"; then 5891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5893as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available 5894See \`config.log' for more details" "$LINENO" 5 ; } 5895 fi 5896 5897fi 5898 5899fi 5900 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5 5902$as_echo_n "checking whether to build optimizer debugging code... " >&6; } 5903# Check whether --enable-optimizer-dbg was given. 5904if test "${enable_optimizer_dbg+set}" = set; then : 5905 enableval=$enable_optimizer_dbg; 5906fi 5907 5908if test "$enable_optimizer_dbg" = "yes"; then 5909 5910$as_echo "#define BDEBUG 1" >>confdefs.h 5911 5912fi 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5 5914$as_echo "${enable_optimizer_dbg-no}" >&6; } 5915 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5 5917$as_echo_n "checking whether to build parser debugging code... " >&6; } 5918# Check whether --enable-yydebug was given. 5919if test "${enable_yydebug+set}" = set; then : 5920 enableval=$enable_yydebug; 5921fi 5922 5923if test "$enable_yydebug" = "yes"; then 5924 5925$as_echo "#define YYDEBUG 1" >>confdefs.h 5926 5927fi 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5 5929$as_echo "${enable_yydebug-no}" >&6; } 5930 5931# Check for Endace DAG card support. 5932 5933# Check whether --with-dag was given. 5934if test "${with_dag+set}" = set; then : 5935 withval=$with_dag; 5936 if test "$withval" = no 5937 then 5938 # User doesn't want DAG support. 5939 want_dag=no 5940 elif test "$withval" = yes 5941 then 5942 # User wants DAG support but hasn't specified a directory. 5943 want_dag=yes 5944 else 5945 # User wants DAG support and has specified a directory, so use the provided value. 5946 want_dag=yes 5947 dag_root=$withval 5948 fi 5949 5950else 5951 5952 # 5953 # Use DAG API if present, otherwise don't 5954 # 5955 want_dag=ifpresent 5956 5957fi 5958 5959 5960 5961# Check whether --with-dag-includes was given. 5962if test "${with_dag_includes+set}" = set; then : 5963 withval=$with_dag_includes; 5964 # User wants DAG support and has specified a header directory, so use the provided value. 5965 want_dag=yes 5966 dag_include_dir=$withval 5967 5968fi 5969 5970 5971 5972# Check whether --with-dag-libraries was given. 5973if test "${with_dag_libraries+set}" = set; then : 5974 withval=$with_dag_libraries; 5975 # User wants DAG support and has specified a library directory, so use the provided value. 5976 want_dag=yes 5977 dag_lib_dir=$withval 5978 5979fi 5980 5981 5982case "$V_PCAP" in 5983linux|bpf|dag) 5984 # 5985 # We support the DAG API if we're on Linux or BSD, or if we're 5986 # building a DAG-only libpcap. 5987 # 5988 ;; 5989*) 5990 # 5991 # If the user explicitly requested DAG, tell them it's not 5992 # supported. 5993 # 5994 # If they expressed no preference, don't include it. 5995 # 5996 if test $want_dag = yes; then 5997 as_fn_error $? "DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" "$LINENO" 5 5998 elif test $want_dag = yes; then 5999 want_dag=no 6000 fi 6001 ;; 6002esac 6003 6004ac_cv_lbl_dag_api=no 6005if test "$want_dag" != no; then 6006 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5 6008$as_echo_n "checking whether we have DAG API headers... " >&6; } 6009 6010 # If necessary, set default paths for DAG API headers and libraries. 6011 if test -z "$dag_root"; then 6012 dag_root=/usr/local 6013 fi 6014 6015 if test -z "$dag_include_dir"; then 6016 dag_include_dir="$dag_root/include" 6017 fi 6018 6019 if test -z "$dag_lib_dir"; then 6020 dag_lib_dir="$dag_root/lib" 6021 fi 6022 6023 if test -z "$dag_tools_dir"; then 6024 dag_tools_dir="$dag_root/tools" 6025 fi 6026 6027 if test -r $dag_include_dir/dagapi.h; then 6028 ac_cv_lbl_dag_api=yes 6029 fi 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5 6031$as_echo "$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; } 6032fi 6033 6034if test $ac_cv_lbl_dag_api = yes; then 6035 V_INCLS="$V_INCLS -I$dag_include_dir" 6036 6037 if test $V_PCAP != dag ; then 6038 SSRC="pcap-dag.c" 6039 fi 6040 6041 # See if we can find a general version string. 6042 # Don't need to save and restore LIBS to prevent -ldag being 6043 # included if there's a found-action (arg 3). 6044 saved_ldflags=$LDFLAGS 6045 LDFLAGS="-L$dag_lib_dir" 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5 6047$as_echo_n "checking for dag_attach_stream in -ldag... " >&6; } 6048if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 ac_check_lib_save_LIBS=$LIBS 6052LIBS="-ldag $LIBS" 6053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055 6056/* Override any GCC internal prototype to avoid an error. 6057 Use char because int might match the return type of a GCC 6058 builtin and then its argument prototype would still apply. */ 6059#ifdef __cplusplus 6060extern "C" 6061#endif 6062char dag_attach_stream (); 6063int 6064main () 6065{ 6066return dag_attach_stream (); 6067 ; 6068 return 0; 6069} 6070_ACEOF 6071if ac_fn_c_try_link "$LINENO"; then : 6072 ac_cv_lib_dag_dag_attach_stream=yes 6073else 6074 ac_cv_lib_dag_dag_attach_stream=no 6075fi 6076rm -f core conftest.err conftest.$ac_objext \ 6077 conftest$ac_exeext conftest.$ac_ext 6078LIBS=$ac_check_lib_save_LIBS 6079fi 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5 6081$as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; } 6082if test "x$ac_cv_lib_dag_dag_attach_stream" = x""yes; then : 6083 dag_streams="1" 6084else 6085 dag_streams="0" 6086fi 6087 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5 6089$as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; } 6090if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 ac_check_lib_save_LIBS=$LIBS 6094LIBS="-ldag $LIBS" 6095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097 6098/* Override any GCC internal prototype to avoid an error. 6099 Use char because int might match the return type of a GCC 6100 builtin and then its argument prototype would still apply. */ 6101#ifdef __cplusplus 6102extern "C" 6103#endif 6104char dag_get_erf_types (); 6105int 6106main () 6107{ 6108return dag_get_erf_types (); 6109 ; 6110 return 0; 6111} 6112_ACEOF 6113if ac_fn_c_try_link "$LINENO"; then : 6114 ac_cv_lib_dag_dag_get_erf_types=yes 6115else 6116 ac_cv_lib_dag_dag_get_erf_types=no 6117fi 6118rm -f core conftest.err conftest.$ac_objext \ 6119 conftest$ac_exeext conftest.$ac_ext 6120LIBS=$ac_check_lib_save_LIBS 6121fi 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5 6123$as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; } 6124if test "x$ac_cv_lib_dag_dag_get_erf_types" = x""yes; then : 6125 6126 6127$as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h 6128 6129fi 6130 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5 6132$as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; } 6133if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 ac_check_lib_save_LIBS=$LIBS 6137LIBS="-ldag $LIBS" 6138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140 6141/* Override any GCC internal prototype to avoid an error. 6142 Use char because int might match the return type of a GCC 6143 builtin and then its argument prototype would still apply. */ 6144#ifdef __cplusplus 6145extern "C" 6146#endif 6147char dag_get_stream_erf_types (); 6148int 6149main () 6150{ 6151return dag_get_stream_erf_types (); 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 ac_cv_lib_dag_dag_get_stream_erf_types=yes 6158else 6159 ac_cv_lib_dag_dag_get_stream_erf_types=no 6160fi 6161rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163LIBS=$ac_check_lib_save_LIBS 6164fi 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5 6166$as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; } 6167if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = x""yes; then : 6168 6169 6170$as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h 6171 6172fi 6173 6174 6175 LDFLAGS=$saved_ldflags 6176 6177 if test "$dag_streams" = 1; then 6178 6179$as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h 6180 6181 LIBS="$LIBS -ldag" 6182 LDFLAGS="$LDFLAGS -L$dag_lib_dir" 6183 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5 6185$as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; } 6186if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 ac_check_lib_save_LIBS=$LIBS 6190LIBS="-lvdag $LIBS" 6191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6192/* end confdefs.h. */ 6193 6194/* Override any GCC internal prototype to avoid an error. 6195 Use char because int might match the return type of a GCC 6196 builtin and then its argument prototype would still apply. */ 6197#ifdef __cplusplus 6198extern "C" 6199#endif 6200char vdag_set_device_info (); 6201int 6202main () 6203{ 6204return vdag_set_device_info (); 6205 ; 6206 return 0; 6207} 6208_ACEOF 6209if ac_fn_c_try_link "$LINENO"; then : 6210 ac_cv_lib_vdag_vdag_set_device_info=yes 6211else 6212 ac_cv_lib_vdag_vdag_set_device_info=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext \ 6215 conftest$ac_exeext conftest.$ac_ext 6216LIBS=$ac_check_lib_save_LIBS 6217fi 6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5 6219$as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; } 6220if test "x$ac_cv_lib_vdag_vdag_set_device_info" = x""yes; then : 6221 ac_dag_have_vdag="1" 6222else 6223 ac_dag_have_vdag="0" 6224fi 6225 6226 if test "$ac_dag_have_vdag" = 1; then 6227 6228$as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h 6229 6230 LIBS="$LIBS -lpthread" 6231 fi 6232 fi 6233 6234 6235$as_echo "#define HAVE_DAG_API 1" >>confdefs.h 6236 6237fi 6238 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the DAG API" >&5 6240$as_echo_n "checking whether we have the DAG API... " >&6; } 6241 6242if test $ac_cv_lbl_dag_api = no; then 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244$as_echo "no" >&6; } 6245 if test "$want_dag" = yes; then 6246 # User wanted DAG support but we couldn't find it. 6247 as_fn_error $? "DAG API requested, but not found at $dag_root: use --without-dag" "$LINENO" 5 6248 fi 6249 6250 if test "$V_PCAP" = dag; then 6251 # User requested "dag" capture type but the DAG API wasn't 6252 # found. 6253 as_fn_error $? "Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" "$LINENO" 5 6254 fi 6255else 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6257$as_echo "yes" >&6; } 6258fi 6259 6260 6261# Check whether --with-septel was given. 6262if test "${with_septel+set}" = set; then : 6263 withval=$with_septel; 6264 if test "$withval" = no 6265 then 6266 want_septel=no 6267 elif test "$withval" = yes 6268 then 6269 want_septel=yes 6270 septel_root= 6271 else 6272 want_septel=yes 6273 septel_root=$withval 6274 fi 6275 6276else 6277 6278 # 6279 # Use Septel API if present, otherwise don't 6280 # 6281 want_septel=ifpresent 6282 septel_root=./../septel 6283 6284fi 6285 6286ac_cv_lbl_septel_api=no 6287case "$V_PCAP" in 6288linux|septel) 6289 # 6290 # We support the Septel API if we're on Linux, or if we're building 6291 # a Septel-only libpcap. 6292 # 6293 ;; 6294*) 6295 # 6296 # If the user explicitly requested Septel, tell them it's not 6297 # supported. 6298 # 6299 # If they expressed no preference, don't include it. 6300 # 6301 if test $want_septel = yes; then 6302 as_fn_error $? "Septel support only available with 'linux' and 'septel' packet capture types" "$LINENO" 5 6303 elif test $want_septel = yes; then 6304 want_septel=no 6305 fi 6306 ;; 6307esac 6308 6309if test "$with_septel" != no; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API" >&5 6311$as_echo_n "checking whether we have Septel API... " >&6; } 6312 6313 if test -z "$septel_root"; then 6314 septel_root=$srcdir/../septel 6315 fi 6316 6317 septel_tools_dir="$septel_root" 6318 septel_include_dir="$septel_root/INC" 6319 6320 ac_cv_lbl_septel_api=no 6321 if test -r "$septel_include_dir/msg.h"; then 6322 V_INCLS="$V_INCLS -I$septel_include_dir" 6323 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o" 6324 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o" 6325 6326 if test "$V_PCAP" != septel ; then 6327 SSRC="pcap-septel.c" 6328 fi 6329 ac_cv_lbl_septel_api=yes 6330 fi 6331 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_septel_api" >&5 6333$as_echo "$ac_cv_lbl_septel_api" >&6; } 6334 if test $ac_cv_lbl_septel_api = no; then 6335 if test "$want_septel" = yes; then 6336 as_fn_error $? "Septel API not found under directory $septel_root; use --without-septel" "$LINENO" 5 6337 fi 6338 else 6339 6340$as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h 6341 6342 fi 6343fi 6344 6345if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then 6346 as_fn_error $? "Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" "$LINENO" 5 6347fi 6348 6349# Check for Myricom SNF support. 6350 6351# Check whether --with-snf was given. 6352if test "${with_snf+set}" = set; then : 6353 withval=$with_snf; 6354 if test "$withval" = no 6355 then 6356 # User explicitly doesn't want SNF 6357 want_snf=no 6358 elif test "$withval" = yes 6359 then 6360 # User wants SNF support but hasn't specific a directory. 6361 want_snf=yes 6362 else 6363 # User wants SNF support with a specified directory. 6364 want_snf=yes 6365 snf_root=$withval 6366 fi 6367 6368else 6369 6370 # 6371 # Use Sniffer API if present, otherwise don't 6372 # 6373 want_snf=ifpresent 6374 6375fi 6376 6377 6378 6379# Check whether --with-snf-includes was given. 6380if test "${with_snf_includes+set}" = set; then : 6381 withval=$with_snf_includes; 6382 # User wants SNF with specific header directory 6383 want_snf=yes 6384 snf_include_dir=$withval 6385 6386fi 6387 6388 6389 6390# Check whether --with-snf-libraries was given. 6391if test "${with_snf_libraries+set}" = set; then : 6392 withval=$with_snf_libraries; 6393 # User wants SNF with specific lib directory 6394 want_snf=yes 6395 snf_lib_dir=$withval 6396 6397fi 6398 6399 6400case "$V_PCAP" in 6401bpf|linux|snf) 6402 # 6403 # We support the Sniffer API if we're on BSD, Linux, or if we're 6404 # building a Sniffer-only libpcap. 6405 # 6406 ;; 6407*) 6408 # 6409 # If the user explicitly requested Sniffer, tell them it's not 6410 # supported. 6411 # 6412 # If they expressed no preference, don't include it. 6413 # 6414 if test $want_snf = yes; then 6415 as_fn_error $? "Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" "$LINENO" 5 6416 elif test $want_snf = yes; then 6417 want_snf=no 6418 fi 6419 ;; 6420esac 6421 6422ac_cv_lbl_snf_api=no 6423if test "$with_snf" != no; then 6424 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5 6426$as_echo_n "checking whether we have Myricom Sniffer API... " >&6; } 6427 6428 if test -z "$snf_root"; then 6429 snf_root=/opt/snf 6430 fi 6431 6432 if test -z "$snf_include_dir"; then 6433 snf_include_dir="$snf_root/include" 6434 fi 6435 6436 if test -z "$snf_lib_dir"; then 6437 snf_lib_dir="$snf_root/lib" 6438 fi 6439 6440 if test -f "$snf_include_dir/snf.h"; then 6441 ac_cv_lbl_snf_api=yes 6442 fi 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_snf_api ($snf_root)" >&5 6444$as_echo "$ac_cv_lbl_snf_api ($snf_root)" >&6; } 6445 6446 if test $ac_cv_lbl_snf_api = no; then 6447 if test "$want_snf" = yes; then 6448 as_fn_error $? "SNF API headers not found under $snf_include_dir; use --without-snf" "$LINENO" 5 6449 fi 6450 else 6451 saved_ldflags=$LDFLAGS 6452 LDFLAGS="$LDFLAGS -L$snf_lib_dir" 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5 6454$as_echo_n "checking for snf_init in -lsnf... " >&6; } 6455if test "${ac_cv_lib_snf_snf_init+set}" = set; then : 6456 $as_echo_n "(cached) " >&6 6457else 6458 ac_check_lib_save_LIBS=$LIBS 6459LIBS="-lsnf $LIBS" 6460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461/* end confdefs.h. */ 6462 6463/* Override any GCC internal prototype to avoid an error. 6464 Use char because int might match the return type of a GCC 6465 builtin and then its argument prototype would still apply. */ 6466#ifdef __cplusplus 6467extern "C" 6468#endif 6469char snf_init (); 6470int 6471main () 6472{ 6473return snf_init (); 6474 ; 6475 return 0; 6476} 6477_ACEOF 6478if ac_fn_c_try_link "$LINENO"; then : 6479 ac_cv_lib_snf_snf_init=yes 6480else 6481 ac_cv_lib_snf_snf_init=no 6482fi 6483rm -f core conftest.err conftest.$ac_objext \ 6484 conftest$ac_exeext conftest.$ac_ext 6485LIBS=$ac_check_lib_save_LIBS 6486fi 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5 6488$as_echo "$ac_cv_lib_snf_snf_init" >&6; } 6489if test "x$ac_cv_lib_snf_snf_init" = x""yes; then : 6490 ac_cv_lbl_snf_api="yes" 6491else 6492 ac_cv_lbl_snf_api="no" 6493fi 6494 6495 LDFLAGS="$saved_ldflags" 6496 6497 if test $ac_cv_lbl_snf_api = no; then 6498 if test "$want_snf" = yes; then 6499 as_fn_error $? "SNF API cannot correctly be linked check config.log; use --without-snf" "$LINENO" 5 6500 fi 6501 else 6502 V_INCLS="$V_INCLS -I$snf_include_dir" 6503 LIBS="$LIBS -lsnf" 6504 LDFLAGS="$LDFLAGS -L$snf_lib_dir" 6505 if test "$V_PCAP" != snf ; then 6506 SSRC="pcap-snf.c" 6507 fi 6508 6509$as_echo "#define HAVE_SNF_API 1" >>confdefs.h 6510 6511 fi 6512 fi 6513fi 6514 6515if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then 6516 as_fn_error $? "Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" "$LINENO" 5 6517fi 6518 6519 6520# Check whether --with-flex was given. 6521if test "${with_flex+set}" = set; then : 6522 withval=$with_flex; 6523fi 6524 6525 6526# Check whether --with-bison was given. 6527if test "${with_bison+set}" = set; then : 6528 withval=$with_bison; 6529fi 6530 6531 if test "$with_flex" = no ; then 6532 V_LEX=lex 6533 else 6534 for ac_prog in flex 6535do 6536 # Extract the first word of "$ac_prog", so it can be a program name with args. 6537set dummy $ac_prog; ac_word=$2 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6539$as_echo_n "checking for $ac_word... " >&6; } 6540if test "${ac_cv_prog_V_LEX+set}" = set; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 if test -n "$V_LEX"; then 6544 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test. 6545else 6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6553 ac_cv_prog_V_LEX="$ac_prog" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561fi 6562fi 6563V_LEX=$ac_cv_prog_V_LEX 6564if test -n "$V_LEX"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5 6566$as_echo "$V_LEX" >&6; } 6567else 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569$as_echo "no" >&6; } 6570fi 6571 6572 6573 test -n "$V_LEX" && break 6574done 6575test -n "$V_LEX" || V_LEX="lex" 6576 6577 fi 6578 if test "$V_LEX" = flex ; then 6579 # The -V flag was added in 2.4 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5 6581$as_echo_n "checking for flex 2.4 or higher... " >&6; } 6582 if test "${ac_cv_lbl_flex_v24+set}" = set; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 if flex -V >/dev/null 2>&1; then 6586 ac_cv_lbl_flex_v24=yes 6587 else 6588 ac_cv_lbl_flex_v24=no 6589 fi 6590fi 6591 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5 6593$as_echo "$ac_cv_lbl_flex_v24" >&6; } 6594 if test $ac_cv_lbl_flex_v24 = no ; then 6595 s="2.4 or higher required" 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5 6597$as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;} 6598 V_LEX=lex 6599 fi 6600 fi 6601 if test "$with_bison" = no ; then 6602 V_YACC=yacc 6603 else 6604 for ac_prog in bison 6605do 6606 # Extract the first word of "$ac_prog", so it can be a program name with args. 6607set dummy $ac_prog; ac_word=$2 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6609$as_echo_n "checking for $ac_word... " >&6; } 6610if test "${ac_cv_prog_V_YACC+set}" = set; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -n "$V_YACC"; then 6614 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test. 6615else 6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6623 ac_cv_prog_V_YACC="$ac_prog" 6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628 done 6629IFS=$as_save_IFS 6630 6631fi 6632fi 6633V_YACC=$ac_cv_prog_V_YACC 6634if test -n "$V_YACC"; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5 6636$as_echo "$V_YACC" >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639$as_echo "no" >&6; } 6640fi 6641 6642 6643 test -n "$V_YACC" && break 6644done 6645test -n "$V_YACC" || V_YACC="yacc" 6646 6647 fi 6648 if test "$V_YACC" = bison ; then 6649 V_YACC="$V_YACC -y" 6650 fi 6651 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5 6653$as_echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;} 6654 V_LEX=lex 6655 V_YACC=yacc 6656 fi 6657 if test "$V_LEX" = flex -a -n "pcap_" ; then 6658 V_LEX="$V_LEX -Ppcap_" 6659 V_YACC="$V_YACC -p pcap_" 6660 fi 6661if test "$V_LEX" = lex ; then 6662# Some versions of lex can't handle the definitions section of scanner.l . 6663# Try lexing it and complain if it can't deal. 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5 6665$as_echo_n "checking for capable lex... " >&6; } 6666if test "${tcpdump_cv_capable_lex+set}" = set; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 if lex -t scanner.l > /dev/null 2>&1; then 6670 tcpdump_cv_capable_lex=yes 6671 else 6672 tcpdump_cv_capable_lex=insufficient 6673 fi 6674fi 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5 6676$as_echo "$tcpdump_cv_capable_lex" >&6; } 6677 if test $tcpdump_cv_capable_lex = insufficient ; then 6678 as_fn_error $? "Your operating system's lex is insufficient to compile 6679 libpcap. flex is a lex replacement that has many advantages, including 6680 being able to compile libpcap. For more information, see 6681 http://www.gnu.org/software/flex/flex.html ." "$LINENO" 5 6682 fi 6683fi 6684 6685# 6686# Assume, by default, no support for shared libraries and V7/BSD convention 6687# for man pages (file formats in section 5, miscellaneous info in section 7). 6688# Individual cases can override this. 6689# 6690DYEXT="none" 6691MAN_FILE_FORMATS=5 6692MAN_MISC_INFO=7 6693case "$host_os" in 6694 6695aix*) 6696 6697$as_echo "#define _SUN 1" >>confdefs.h 6698 6699 6700 # 6701 # AIX makes it fun to build shared and static libraries, 6702 # because they're *both* ".a" archive libraries. We 6703 # build the static library for the benefit of the traditional 6704 # scheme of building libpcap and tcpdump in subdirectories of 6705 # the same directory, with tcpdump statically linked with the 6706 # libpcap in question, but we also build a shared library as 6707 # "libpcap.shareda" and install *it*, rather than the static 6708 # library, as "libpcap.a". 6709 # 6710 DYEXT="shareda" 6711 6712 case "$V_PCAP" in 6713 6714 dlpi) 6715 # 6716 # If we're using DLPI, applications will need to 6717 # use /lib/pse.exp if present, as we use the 6718 # STREAMS routines. 6719 # 6720 pseexe="/lib/pse.exp" 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5 6722$as_echo_n "checking for $pseexe... " >&6; } 6723 if test -f $pseexe ; then 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6725$as_echo "yes" >&6; } 6726 LIBS="-I:$pseexe" 6727 fi 6728 ;; 6729 6730 bpf) 6731 # 6732 # If we're using BPF, we need "-lodm" and "-lcfg", as 6733 # we use them to load the BPF module. 6734 # 6735 LIBS="-lodm -lcfg" 6736 ;; 6737 esac 6738 ;; 6739 6740darwin*) 6741 DYEXT="dylib" 6742 V_CCOPT="$V_CCOPT -fno-common" 6743 # Check whether --enable-universal was given. 6744if test "${enable_universal+set}" = set; then : 6745 enableval=$enable_universal; 6746fi 6747 6748 if test "$enable_universal" != "no"; then 6749 case "$host_os" in 6750 6751 darwin9.*) 6752 # 6753 # Leopard. Build for 32-bit PowerPC, 64-bit 6754 # PowerPC, x86, and x86-64, with 32-bit PowerPC 6755 # first. (That's what Apple does.) 6756 # 6757 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64" 6758 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64" 6759 ;; 6760 6761 darwin10.*) 6762 # 6763 # Snow Leopard. Build for x86-64, x86, and 6764 # 32-bit PowerPC, with x86-64 first. (That's 6765 # what Apple does, even though Snow Leopard 6766 # doesn't run on PPC, so PPC libpcap runs under 6767 # Rosetta, and Rosetta doesn't support BPF 6768 # ioctls, so PPC programs can't do live 6769 # captures.) 6770 # 6771 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc" 6772 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc" 6773 ;; 6774 6775 darwin11.*) 6776 # 6777 # Lion. Build for x86-64 and x86, with x86-64 6778 # first. (That's probably what Apple does, 6779 # given that Rosetta is gone.) 6780 # 6781 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386" 6782 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386" 6783 ;; 6784 esac 6785 fi 6786 ;; 6787 6788hpux9*) 6789 6790$as_echo "#define HAVE_HPUX9 1" >>confdefs.h 6791 6792 6793 # 6794 # Use System V conventions for man pages. 6795 # 6796 MAN_FILE_FORMATS=4 6797 MAN_MISC_INFO=5 6798 ;; 6799 6800hpux10.0*) 6801 6802 # 6803 # Use System V conventions for man pages. 6804 # 6805 MAN_FILE_FORMATS=4 6806 MAN_MISC_INFO=5 6807 ;; 6808 6809hpux10.1*) 6810 6811 # 6812 # Use System V conventions for man pages. 6813 # 6814 MAN_FILE_FORMATS=4 6815 MAN_MISC_INFO=5 6816 ;; 6817 6818hpux*) 6819 6820$as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h 6821 6822 if test "`uname -m`" = "ia64"; then 6823 DYEXT="so" 6824 else 6825 DYEXT="sl" 6826 fi 6827 6828 # 6829 # "-b" builds a shared library; "+h" sets the soname. 6830 # 6831 SHLIB_OPT="-b" 6832 SONAME_OPT="+h" 6833 6834 # 6835 # Use System V conventions for man pages. 6836 # 6837 MAN_FILE_FORMATS=4 6838 MAN_MISC_INFO=5 6839 ;; 6840 6841irix*) 6842 # 6843 # Use System V conventions for man pages. 6844 # 6845 MAN_FILE_FORMATS=4 6846 MAN_MISC_INFO=5 6847 ;; 6848 6849linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*) 6850 DYEXT="so" 6851 6852 # 6853 # Compiler assumed to be GCC; run-time linker may require a -R 6854 # flag. 6855 # 6856 if test "$libdir" != "/usr/lib"; then 6857 V_RFLAGS=-Wl,-R$libdir 6858 fi 6859 ;; 6860 6861osf*) 6862 DYEXT="so" 6863 6864 # 6865 # Use System V conventions for man pages. 6866 # 6867 MAN_FILE_FORMATS=4 6868 MAN_MISC_INFO=5 6869 ;; 6870 6871sinix*) 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5 6873$as_echo_n "checking if SINIX compiler defines sinix... " >&6; } 6874 if test "${ac_cv_cc_sinix_defined+set}" = set; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6878/* end confdefs.h. */ 6879 6880int 6881main () 6882{ 6883int i = sinix; 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888if ac_fn_c_try_compile "$LINENO"; then : 6889 ac_cv_cc_sinix_defined=yes 6890else 6891 ac_cv_cc_sinix_defined=no 6892fi 6893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6894fi 6895 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5 6897$as_echo "$ac_cv_cc_sinix_defined" >&6; } 6898 if test $ac_cv_cc_sinix_defined = no ; then 6899 6900$as_echo "#define sinix 1" >>confdefs.h 6901 6902 fi 6903 ;; 6904 6905solaris*) 6906 6907$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h 6908 6909 6910 DYEXT="so" 6911 # 6912 # Use System V conventions for man pages. 6913 # 6914 MAN_FILE_FORMATS=4 6915 MAN_MISC_INFO=5 6916 ;; 6917esac 6918 6919if test -n "$ac_tool_prefix"; then 6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6921set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6923$as_echo_n "checking for $ac_word... " >&6; } 6924if test "${ac_cv_prog_RANLIB+set}" = set; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 if test -n "$RANLIB"; then 6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6929else 6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931for as_dir in $PATH 6932do 6933 IFS=$as_save_IFS 6934 test -z "$as_dir" && as_dir=. 6935 for ac_exec_ext in '' $ac_executable_extensions; do 6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6939 break 2 6940 fi 6941done 6942 done 6943IFS=$as_save_IFS 6944 6945fi 6946fi 6947RANLIB=$ac_cv_prog_RANLIB 6948if test -n "$RANLIB"; then 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6950$as_echo "$RANLIB" >&6; } 6951else 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6953$as_echo "no" >&6; } 6954fi 6955 6956 6957fi 6958if test -z "$ac_cv_prog_RANLIB"; then 6959 ac_ct_RANLIB=$RANLIB 6960 # Extract the first word of "ranlib", so it can be a program name with args. 6961set dummy ranlib; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$ac_ct_RANLIB"; then 6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6977 ac_cv_prog_ac_ct_RANLIB="ranlib" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6988if test -n "$ac_ct_RANLIB"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6990$as_echo "$ac_ct_RANLIB" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 if test "x$ac_ct_RANLIB" = x; then 6997 RANLIB=":" 6998 else 6999 case $cross_compiling:$ac_tool_warned in 7000yes:) 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7003ac_tool_warned=yes ;; 7004esac 7005 RANLIB=$ac_ct_RANLIB 7006 fi 7007else 7008 RANLIB="$ac_cv_prog_RANLIB" 7009fi 7010 7011if test -n "$ac_tool_prefix"; then 7012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7013set dummy ${ac_tool_prefix}ar; ac_word=$2 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7015$as_echo_n "checking for $ac_word... " >&6; } 7016if test "${ac_cv_prog_AR+set}" = set; then : 7017 $as_echo_n "(cached) " >&6 7018else 7019 if test -n "$AR"; then 7020 ac_cv_prog_AR="$AR" # Let the user override the test. 7021else 7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7023for as_dir in $PATH 7024do 7025 IFS=$as_save_IFS 7026 test -z "$as_dir" && as_dir=. 7027 for ac_exec_ext in '' $ac_executable_extensions; do 7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7029 ac_cv_prog_AR="${ac_tool_prefix}ar" 7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7031 break 2 7032 fi 7033done 7034 done 7035IFS=$as_save_IFS 7036 7037fi 7038fi 7039AR=$ac_cv_prog_AR 7040if test -n "$AR"; then 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7042$as_echo "$AR" >&6; } 7043else 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7045$as_echo "no" >&6; } 7046fi 7047 7048 7049fi 7050if test -z "$ac_cv_prog_AR"; then 7051 ac_ct_AR=$AR 7052 # Extract the first word of "ar", so it can be a program name with args. 7053set dummy ar; ac_word=$2 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7055$as_echo_n "checking for $ac_word... " >&6; } 7056if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 if test -n "$ac_ct_AR"; then 7060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7061else 7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_exec_ext in '' $ac_executable_extensions; do 7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7069 ac_cv_prog_ac_ct_AR="ar" 7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7071 break 2 7072 fi 7073done 7074 done 7075IFS=$as_save_IFS 7076 7077fi 7078fi 7079ac_ct_AR=$ac_cv_prog_ac_ct_AR 7080if test -n "$ac_ct_AR"; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7082$as_echo "$ac_ct_AR" >&6; } 7083else 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7085$as_echo "no" >&6; } 7086fi 7087 7088 if test "x$ac_ct_AR" = x; then 7089 AR="" 7090 else 7091 case $cross_compiling:$ac_tool_warned in 7092yes:) 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7095ac_tool_warned=yes ;; 7096esac 7097 AR=$ac_ct_AR 7098 fi 7099else 7100 AR="$ac_cv_prog_AR" 7101fi 7102 7103 7104rm -f os-proto.h 7105 if test "${LBL_CFLAGS+set}" = set; then 7106 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 7107 fi 7108 if test -f .devel ; then 7109 if test "$GCC" = yes ; then 7110 if test "${LBL_CFLAGS+set}" != set; then 7111 if test "$ac_cv_prog_cc_g" = yes ; then 7112 V_CCOPT="-g $V_CCOPT" 7113 fi 7114 V_CCOPT="$V_CCOPT -Wall" 7115 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 7116 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 7117 fi 7118 fi 7119 else 7120 case "$host_os" in 7121 7122 irix6*) 7123 V_CCOPT="$V_CCOPT -n32" 7124 ;; 7125 7126 *) 7127 ;; 7128 esac 7129 fi 7130 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 7131 name="lbl/os-$os.h" 7132 if test -f $name ; then 7133 ln -s $name os-proto.h 7134 7135$as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h 7136 7137 else 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5 7139$as_echo "$as_me: WARNING: can't find $name" >&2;} 7140 fi 7141 fi 7142 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5 7144$as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; } 7145 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149/* end confdefs.h. */ 7150 7151# include <sys/types.h> 7152# include <sys/socket.h> 7153int 7154main () 7155{ 7156u_int i = sizeof(((struct sockaddr *)0)->sa_len) 7157 ; 7158 return 0; 7159} 7160_ACEOF 7161if ac_fn_c_try_compile "$LINENO"; then : 7162 ac_cv_lbl_sockaddr_has_sa_len=yes 7163else 7164 ac_cv_lbl_sockaddr_has_sa_len=no 7165fi 7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7167fi 7168 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 7170$as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; } 7171 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 7172 7173$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 7174 7175 fi 7176 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5 7178$as_echo_n "checking if sockaddr_storage struct exists... " >&6; } 7179 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183/* end confdefs.h. */ 7184 7185# include <sys/types.h> 7186# include <sys/socket.h> 7187int 7188main () 7189{ 7190u_int i = sizeof (struct sockaddr_storage) 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195if ac_fn_c_try_compile "$LINENO"; then : 7196 ac_cv_lbl_has_sockaddr_storage=yes 7197else 7198 ac_cv_lbl_has_sockaddr_storage=no 7199fi 7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7201fi 7202 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5 7204$as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; } 7205 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then 7206 7207$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 7208 7209 fi 7210 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5 7212$as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; } 7213 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218 7219# include <sys/types.h> 7220# include <sys/dlpi.h> 7221# include <sys/dlpi_ext.h> 7222int 7223main () 7224{ 7225u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1) 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230if ac_fn_c_try_compile "$LINENO"; then : 7231 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes 7232else 7233 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236fi 7237 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5 7239$as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; } 7240 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then 7241 7242$as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h 7243 7244 fi 7245 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5 7247$as_echo_n "checking if unaligned accesses fail... " >&6; } 7248 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 case "$host_cpu" in 7252 7253 # 7254 # These are CPU types where: 7255 # 7256 # the CPU faults on an unaligned access, but at least some 7257 # OSes that support that CPU catch the fault and simulate 7258 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 7259 # the simulation is slow, so we don't want to use it; 7260 # 7261 # the CPU, I infer (from the old 7262 # 7263 # XXX: should also check that they don't do weird things (like on arm) 7264 # 7265 # comment) doesn't fault on unaligned accesses, but doesn't 7266 # do a normal unaligned fetch, either (e.g., presumably, ARM); 7267 # 7268 # for whatever reason, the test program doesn't work 7269 # (this has been claimed to be the case for several of those 7270 # CPUs - I don't know what the problem is; the problem 7271 # was reported as "the test program dumps core" for SuperH, 7272 # but that's what the test program is *supposed* to do - 7273 # it dumps core before it writes anything, so the test 7274 # for an empty output file should find an empty output 7275 # file and conclude that unaligned accesses don't work). 7276 # 7277 # This run-time test won't work if you're cross-compiling, so 7278 # in order to support cross-compiling for a particular CPU, 7279 # we have to wire in the list of CPU types anyway, as far as 7280 # I know, so perhaps we should just have a set of CPUs on 7281 # which we know it doesn't work, a set of CPUs on which we 7282 # know it does work, and have the script just fail on other 7283 # cpu types and update it when such a failure occurs. 7284 # 7285 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) 7286 ac_cv_lbl_unaligned_fail=yes 7287 ;; 7288 7289 *) 7290 cat >conftest.c <<EOF 7291# include <sys/types.h> 7292# include <sys/wait.h> 7293# include <stdio.h> 7294 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 7295 main() { 7296 unsigned int i; 7297 pid_t pid; 7298 int status; 7299 /* avoid "core dumped" message */ 7300 pid = fork(); 7301 if (pid < 0) 7302 exit(2); 7303 if (pid > 0) { 7304 /* parent */ 7305 pid = waitpid(pid, &status, 0); 7306 if (pid < 0) 7307 exit(3); 7308 exit(!WIFEXITED(status)); 7309 } 7310 /* child */ 7311 i = *(unsigned int *)&a[1]; 7312 printf("%d\n", i); 7313 exit(0); 7314 } 7315EOF 7316 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 7317 conftest.c $LIBS >/dev/null 2>&1 7318 if test ! -x conftest ; then 7319 ac_cv_lbl_unaligned_fail=yes 7320 else 7321 ./conftest >conftest.out 7322 if test ! -s conftest.out ; then 7323 ac_cv_lbl_unaligned_fail=yes 7324 else 7325 ac_cv_lbl_unaligned_fail=no 7326 fi 7327 fi 7328 rm -f -r conftest* core core.conftest 7329 ;; 7330 esac 7331fi 7332 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5 7334$as_echo "$ac_cv_lbl_unaligned_fail" >&6; } 7335 if test $ac_cv_lbl_unaligned_fail = yes ; then 7336 7337$as_echo "#define LBL_ALIGN 1" >>confdefs.h 7338 7339 fi 7340 7341# 7342# Makefile.in includes rules to generate version.h, so we assume 7343# that it will be generated if autoconf is used. 7344# 7345 7346$as_echo "#define HAVE_VERSION_H 1" >>confdefs.h 7347 7348 7349rm -f net 7350ln -s ${srcdir}/bpf/net net 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5 7371$as_echo_n "checking for USB sniffing support... " >&6; } 7372case "$host_os" in 7373linux*) 7374 7375$as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h 7376 7377 USB_SRC=pcap-usb-linux.c 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7379$as_echo "yes" >&6; } 7380 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null` 7381 if test $? -ne 0 ; then 7382 ac_usb_dev_name="usbmon" 7383 fi 7384 7385cat >>confdefs.h <<_ACEOF 7386#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name" 7387_ACEOF 7388 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5 7390$as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;} 7391 # 7392 # Do we have a version of <linux/compiler.h> available? 7393 # If so, we might need it for <linux/usbdevice_fs.h>. 7394 # 7395 for ac_header in linux/compiler.h 7396do : 7397 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default" 7398if test "x$ac_cv_header_linux_compiler_h" = x""yes; then : 7399 cat >>confdefs.h <<_ACEOF 7400#define HAVE_LINUX_COMPILER_H 1 7401_ACEOF 7402 7403fi 7404 7405done 7406 7407 if test "$ac_cv_header_linux_compiler_h" = yes; then 7408 # 7409 # Yes - include it when testing for <linux/usbdevice_fs.h>. 7410 # 7411 for ac_header in linux/usbdevice_fs.h 7412do : 7413 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h> 7414" 7415if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then : 7416 cat >>confdefs.h <<_ACEOF 7417#define HAVE_LINUX_USBDEVICE_FS_H 1 7418_ACEOF 7419 7420fi 7421 7422done 7423 7424 else 7425 for ac_header in linux/usbdevice_fs.h 7426do : 7427 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default" 7428if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then : 7429 cat >>confdefs.h <<_ACEOF 7430#define HAVE_LINUX_USBDEVICE_FS_H 1 7431_ACEOF 7432 7433fi 7434 7435done 7436 7437 fi 7438 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then 7439 # 7440 # OK, does it define bRequestType? Older versions of the kernel 7441 # define fields with names like "requesttype, "request", and 7442 # "value", rather than "bRequestType", "bRequest", and 7443 # "wValue". 7444 # 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5 7446$as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; } 7447 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452 7453$ac_includes_default 7454#ifdef HAVE_SYS_BITYPES_H 7455#include <sys/bitypes.h> 7456#endif 7457#ifdef HAVE_LINUX_COMPILER_H 7458#include <linux/compiler.h> 7459#endif 7460#include <linux/usbdevice_fs.h> 7461int 7462main () 7463{ 7464u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType) 7465 ; 7466 return 0; 7467} 7468_ACEOF 7469if ac_fn_c_try_compile "$LINENO"; then : 7470 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes 7471else 7472 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no 7473fi 7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7475fi 7476 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5 7478$as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; } 7479 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then 7480 7481$as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h 7482 7483 fi 7484 fi 7485 ;; 7486*) 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7488$as_echo "no" >&6; } 7489 ;; 7490esac 7491 7492 7493 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5 7495$as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; } 7496case "$host_os" in 7497linux*) 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7499$as_echo "yes" >&6; } 7500 # 7501 # Life's too short to deal with trying to get this to compile 7502 # if you don't get the right types defined with 7503 # __KERNEL_STRICT_NAMES getting defined by some other include. 7504 # 7505 # Check whether the includes Just Work. If not, don't turn on 7506 # netfilter support. 7507 # 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5 7509$as_echo_n "checking whether we can compile the netfilter support... " >&6; } 7510 if test "${ac_cv_netfilter_can_compile+set}" = set; then : 7511 $as_echo_n "(cached) " >&6 7512else 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515 7516$ac_includes_default 7517#include <sys/socket.h> 7518#include <linux/types.h> 7519 7520#include <linux/netlink.h> 7521#include <linux/netfilter/nfnetlink.h> 7522#include <linux/netfilter/nfnetlink_log.h> 7523int 7524main () 7525{ 7526 7527 ; 7528 return 0; 7529} 7530_ACEOF 7531if ac_fn_c_try_compile "$LINENO"; then : 7532 ac_cv_netfilter_can_compile=yes 7533else 7534 ac_cv_netfilter_can_compile=no 7535fi 7536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7537fi 7538 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5 7540$as_echo "$ac_cv_netfilter_can_compile" >&6; } 7541 if test $ac_cv_netfilter_can_compile = yes ; then 7542 7543$as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h 7544 7545 NETFILTER_SRC=pcap-netfilter-linux.c 7546 fi 7547 ;; 7548*) 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7550$as_echo "no" >&6; } 7551 ;; 7552esac 7553 7554 7555 7556# Check whether --enable-bluetooth was given. 7557if test "${enable_bluetooth+set}" = set; then : 7558 enableval=$enable_bluetooth; 7559else 7560 enable_bluetooth=yes 7561fi 7562 7563 7564if test "x$enable_bluetooth" != "xno" ; then 7565 case "$host_os" in 7566 linux*) 7567 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 7568if test "x$ac_cv_header_bluetooth_bluetooth_h" = x""yes; then : 7569 7570 7571$as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h 7572 7573 BT_SRC=pcap-bt-linux.c 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5 7575$as_echo "$as_me: Bluetooth sniffing is supported" >&6;} 7576 7577else 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5 7579$as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;} 7580 7581fi 7582 7583 7584 ;; 7585 *) 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5 7587$as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;} 7588 ;; 7589 esac 7590 7591 7592fi 7593 7594# Check whether --enable-canusb was given. 7595if test "${enable_canusb+set}" = set; then : 7596 enableval=$enable_canusb; enable_canusb=yes 7597fi 7598 7599 7600if test "x$enable_canusb" != "xno" ; then 7601 case "$host_os" in 7602 linux*) 7603 ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default" 7604if test "x$ac_cv_header_libusb_1_0_libusb_h" = x""yes; then : 7605 7606 7607$as_echo "#define PCAP_SUPPORT_CANUSB 1" >>confdefs.h 7608 7609 CANUSB_SRC=pcap-canusb-linux.c 7610 LIBS="-lusb-1.0 $LIBS" 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is supported" >&5 7612$as_echo "$as_me: canusb sniffing is supported" >&6;} 7613 7614else 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5 7616$as_echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;} 7617 7618fi 7619 7620 7621 ;; 7622 *) 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: no canusb support implemented for $host_os" >&5 7624$as_echo "$as_me: no canusb support implemented for $host_os" >&6;} 7625 ;; 7626 esac 7627 7628 7629fi 7630 7631# Check whether --enable-can was given. 7632if test "${enable_can+set}" = set; then : 7633 enableval=$enable_can; 7634else 7635 enable_can=yes 7636fi 7637 7638 7639if test "x$enable_can" != "xno" ; then 7640 case "$host_os" in 7641 linux*) 7642 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "#include <sys/socket.h> 7643 7644" 7645if test "x$ac_cv_header_linux_can_h" = x""yes; then : 7646 7647$as_echo "#define PCAP_SUPPORT_CAN 1" >>confdefs.h 7648 7649 CAN_SRC=pcap-can-linux.c 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is supported" >&5 7651$as_echo "$as_me: CAN sniffing is supported" >&6;} 7652else 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is not supported" >&5 7654$as_echo "$as_me: CAN sniffing is not supported" >&6;} 7655fi 7656 7657 7658 ;; 7659 *) 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: no CAN sniffing support implemented for $host_os" >&5 7661$as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;} 7662 ;; 7663 esac 7664 7665 7666fi 7667 7668case "$host_os" in 7669linux*) 7670 for ac_header in linux/net_tstamp.h 7671do : 7672 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default" 7673if test "x$ac_cv_header_linux_net_tstamp_h" = x""yes; then : 7674 cat >>confdefs.h <<_ACEOF 7675#define HAVE_LINUX_NET_TSTAMP_H 1 7676_ACEOF 7677 7678fi 7679 7680done 7681 7682 ;; 7683*) 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5 7685$as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;} 7686 ;; 7687esac 7688 7689# Find a good install program. We prefer a C program (faster), 7690# so one script is as good as another. But avoid the broken or 7691# incompatible versions: 7692# SysV /etc/install, /usr/sbin/install 7693# SunOS /usr/etc/install 7694# IRIX /sbin/install 7695# AIX /bin/install 7696# AmigaOS /C/install, which installs bootblocks on floppy discs 7697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7698# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7700# OS/2's system install, which has a completely different semantic 7701# ./install, which can be erroneously created by make from ./install.sh. 7702# Reject install programs that cannot install multiple files. 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 7704$as_echo_n "checking for a BSD-compatible install... " >&6; } 7705if test -z "$INSTALL"; then 7706if test "${ac_cv_path_install+set}" = set; then : 7707 $as_echo_n "(cached) " >&6 7708else 7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7710for as_dir in $PATH 7711do 7712 IFS=$as_save_IFS 7713 test -z "$as_dir" && as_dir=. 7714 # Account for people who put trailing slashes in PATH elements. 7715case $as_dir/ in #(( 7716 ./ | .// | /[cC]/* | \ 7717 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7718 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 7719 /usr/ucb/* ) ;; 7720 *) 7721 # OSF1 and SCO ODT 3.0 have their own names for install. 7722 # Don't use installbsd from OSF since it installs stuff as root 7723 # by default. 7724 for ac_prog in ginstall scoinst install; do 7725 for ac_exec_ext in '' $ac_executable_extensions; do 7726 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 7727 if test $ac_prog = install && 7728 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7729 # AIX install. It has an incompatible calling convention. 7730 : 7731 elif test $ac_prog = install && 7732 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7733 # program-specific install script used by HP pwplus--don't use. 7734 : 7735 else 7736 rm -rf conftest.one conftest.two conftest.dir 7737 echo one > conftest.one 7738 echo two > conftest.two 7739 mkdir conftest.dir 7740 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 7741 test -s conftest.one && test -s conftest.two && 7742 test -s conftest.dir/conftest.one && 7743 test -s conftest.dir/conftest.two 7744 then 7745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7746 break 3 7747 fi 7748 fi 7749 fi 7750 done 7751 done 7752 ;; 7753esac 7754 7755 done 7756IFS=$as_save_IFS 7757 7758rm -rf conftest.one conftest.two conftest.dir 7759 7760fi 7761 if test "${ac_cv_path_install+set}" = set; then 7762 INSTALL=$ac_cv_path_install 7763 else 7764 # As a last resort, use the slow shell script. Don't cache a 7765 # value for INSTALL within a source directory, because that will 7766 # break other packages using the cache if that directory is 7767 # removed, or if the value is a relative name. 7768 INSTALL=$ac_install_sh 7769 fi 7770fi 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 7772$as_echo "$INSTALL" >&6; } 7773 7774# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7775# It thinks the first close brace ends the variable substitution. 7776test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7777 7778test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7779 7780test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7781 7782 7783ac_config_headers="$ac_config_headers config.h" 7784 7785 7786ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap" 7787 7788cat >confcache <<\_ACEOF 7789# This file is a shell script that caches the results of configure 7790# tests run on this system so they can be shared between configure 7791# scripts and configure runs, see configure's option --config-cache. 7792# It is not useful on other systems. If it contains results you don't 7793# want to keep, you may remove or edit it. 7794# 7795# config.status only pays attention to the cache file if you give it 7796# the --recheck option to rerun configure. 7797# 7798# `ac_cv_env_foo' variables (set or unset) will be overridden when 7799# loading this file, other *unset* `ac_cv_foo' will be assigned the 7800# following values. 7801 7802_ACEOF 7803 7804# The following way of writing the cache mishandles newlines in values, 7805# but we know of no workaround that is simple, portable, and efficient. 7806# So, we kill variables containing newlines. 7807# Ultrix sh set writes to stderr and can't be redirected directly, 7808# and sets the high bit in the cache file unless we assign to the vars. 7809( 7810 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7811 eval ac_val=\$$ac_var 7812 case $ac_val in #( 7813 *${as_nl}*) 7814 case $ac_var in #( 7815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7816$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7817 esac 7818 case $ac_var in #( 7819 _ | IFS | as_nl) ;; #( 7820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7821 *) { eval $ac_var=; unset $ac_var;} ;; 7822 esac ;; 7823 esac 7824 done 7825 7826 (set) 2>&1 | 7827 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7828 *${as_nl}ac_space=\ *) 7829 # `set' does not quote correctly, so add quotes: double-quote 7830 # substitution turns \\\\ into \\, and sed turns \\ into \. 7831 sed -n \ 7832 "s/'/'\\\\''/g; 7833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7834 ;; #( 7835 *) 7836 # `set' quotes correctly as required by POSIX, so do not add quotes. 7837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7838 ;; 7839 esac | 7840 sort 7841) | 7842 sed ' 7843 /^ac_cv_env_/b end 7844 t clear 7845 :clear 7846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7847 t end 7848 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7849 :end' >>confcache 7850if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7851 if test -w "$cache_file"; then 7852 test "x$cache_file" != "x/dev/null" && 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7854$as_echo "$as_me: updating cache $cache_file" >&6;} 7855 cat confcache >$cache_file 7856 else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7858$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7859 fi 7860fi 7861rm -f confcache 7862 7863test "x$prefix" = xNONE && prefix=$ac_default_prefix 7864# Let make expand exec_prefix. 7865test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7866 7867DEFS=-DHAVE_CONFIG_H 7868 7869ac_libobjs= 7870ac_ltlibobjs= 7871U= 7872for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7873 # 1. Remove the extension, and $U if already installed. 7874 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7875 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7876 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7877 # will be set to the directory where LIBOBJS objects are built. 7878 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7879 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7880done 7881LIBOBJS=$ac_libobjs 7882 7883LTLIBOBJS=$ac_ltlibobjs 7884 7885 7886 7887: ${CONFIG_STATUS=./config.status} 7888ac_write_fail=0 7889ac_clean_files_save=$ac_clean_files 7890ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7892$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7893as_write_fail=0 7894cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7895#! $SHELL 7896# Generated by $as_me. 7897# Run this file to recreate the current configuration. 7898# Compiler output produced by configure, useful for debugging 7899# configure, is in config.log if it exists. 7900 7901debug=false 7902ac_cs_recheck=false 7903ac_cs_silent=false 7904 7905SHELL=\${CONFIG_SHELL-$SHELL} 7906export SHELL 7907_ASEOF 7908cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7909## -------------------- ## 7910## M4sh Initialization. ## 7911## -------------------- ## 7912 7913# Be more Bourne compatible 7914DUALCASE=1; export DUALCASE # for MKS sh 7915if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7916 emulate sh 7917 NULLCMD=: 7918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7919 # is contrary to our usage. Disable this feature. 7920 alias -g '${1+"$@"}'='"$@"' 7921 setopt NO_GLOB_SUBST 7922else 7923 case `(set -o) 2>/dev/null` in #( 7924 *posix*) : 7925 set -o posix ;; #( 7926 *) : 7927 ;; 7928esac 7929fi 7930 7931 7932as_nl=' 7933' 7934export as_nl 7935# Printing a long string crashes Solaris 7 /usr/bin/printf. 7936as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7937as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7938as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7939# Prefer a ksh shell builtin over an external printf program on Solaris, 7940# but without wasting forks for bash or zsh. 7941if test -z "$BASH_VERSION$ZSH_VERSION" \ 7942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7943 as_echo='print -r --' 7944 as_echo_n='print -rn --' 7945elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7946 as_echo='printf %s\n' 7947 as_echo_n='printf %s' 7948else 7949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7951 as_echo_n='/usr/ucb/echo -n' 7952 else 7953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7954 as_echo_n_body='eval 7955 arg=$1; 7956 case $arg in #( 7957 *"$as_nl"*) 7958 expr "X$arg" : "X\\(.*\\)$as_nl"; 7959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7960 esac; 7961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7962 ' 7963 export as_echo_n_body 7964 as_echo_n='sh -c $as_echo_n_body as_echo' 7965 fi 7966 export as_echo_body 7967 as_echo='sh -c $as_echo_body as_echo' 7968fi 7969 7970# The user is always right. 7971if test "${PATH_SEPARATOR+set}" != set; then 7972 PATH_SEPARATOR=: 7973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7975 PATH_SEPARATOR=';' 7976 } 7977fi 7978 7979 7980# IFS 7981# We need space, tab and new line, in precisely that order. Quoting is 7982# there to prevent editors from complaining about space-tab. 7983# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7984# splitting by setting IFS to empty value.) 7985IFS=" "" $as_nl" 7986 7987# Find who we are. Look in the path if we contain no directory separator. 7988case $0 in #(( 7989 *[\\/]* ) as_myself=$0 ;; 7990 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7991for as_dir in $PATH 7992do 7993 IFS=$as_save_IFS 7994 test -z "$as_dir" && as_dir=. 7995 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7996 done 7997IFS=$as_save_IFS 7998 7999 ;; 8000esac 8001# We did not find ourselves, most probably we were run as `sh COMMAND' 8002# in which case we are not to be found in the path. 8003if test "x$as_myself" = x; then 8004 as_myself=$0 8005fi 8006if test ! -f "$as_myself"; then 8007 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8008 exit 1 8009fi 8010 8011# Unset variables that we do not need and which cause bugs (e.g. in 8012# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8013# suppresses any "Segmentation fault" message there. '((' could 8014# trigger a bug in pdksh 5.2.14. 8015for as_var in BASH_ENV ENV MAIL MAILPATH 8016do eval test x\${$as_var+set} = xset \ 8017 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8018done 8019PS1='$ ' 8020PS2='> ' 8021PS4='+ ' 8022 8023# NLS nuisances. 8024LC_ALL=C 8025export LC_ALL 8026LANGUAGE=C 8027export LANGUAGE 8028 8029# CDPATH. 8030(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8031 8032 8033# as_fn_error STATUS ERROR [LINENO LOG_FD] 8034# ---------------------------------------- 8035# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8036# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8037# script with STATUS, using 1 if that was 0. 8038as_fn_error () 8039{ 8040 as_status=$1; test $as_status -eq 0 && as_status=1 8041 if test "$4"; then 8042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8043 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8044 fi 8045 $as_echo "$as_me: error: $2" >&2 8046 as_fn_exit $as_status 8047} # as_fn_error 8048 8049 8050# as_fn_set_status STATUS 8051# ----------------------- 8052# Set $? to STATUS, without forking. 8053as_fn_set_status () 8054{ 8055 return $1 8056} # as_fn_set_status 8057 8058# as_fn_exit STATUS 8059# ----------------- 8060# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8061as_fn_exit () 8062{ 8063 set +e 8064 as_fn_set_status $1 8065 exit $1 8066} # as_fn_exit 8067 8068# as_fn_unset VAR 8069# --------------- 8070# Portably unset VAR. 8071as_fn_unset () 8072{ 8073 { eval $1=; unset $1;} 8074} 8075as_unset=as_fn_unset 8076# as_fn_append VAR VALUE 8077# ---------------------- 8078# Append the text in VALUE to the end of the definition contained in VAR. Take 8079# advantage of any shell optimizations that allow amortized linear growth over 8080# repeated appends, instead of the typical quadratic growth present in naive 8081# implementations. 8082if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8083 eval 'as_fn_append () 8084 { 8085 eval $1+=\$2 8086 }' 8087else 8088 as_fn_append () 8089 { 8090 eval $1=\$$1\$2 8091 } 8092fi # as_fn_append 8093 8094# as_fn_arith ARG... 8095# ------------------ 8096# Perform arithmetic evaluation on the ARGs, and store the result in the 8097# global $as_val. Take advantage of shells that can avoid forks. The arguments 8098# must be portable across $(()) and expr. 8099if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8100 eval 'as_fn_arith () 8101 { 8102 as_val=$(( $* )) 8103 }' 8104else 8105 as_fn_arith () 8106 { 8107 as_val=`expr "$@" || test $? -eq 1` 8108 } 8109fi # as_fn_arith 8110 8111 8112if expr a : '\(a\)' >/dev/null 2>&1 && 8113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8114 as_expr=expr 8115else 8116 as_expr=false 8117fi 8118 8119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8120 as_basename=basename 8121else 8122 as_basename=false 8123fi 8124 8125if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8126 as_dirname=dirname 8127else 8128 as_dirname=false 8129fi 8130 8131as_me=`$as_basename -- "$0" || 8132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8133 X"$0" : 'X\(//\)$' \| \ 8134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8135$as_echo X/"$0" | 8136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8137 s//\1/ 8138 q 8139 } 8140 /^X\/\(\/\/\)$/{ 8141 s//\1/ 8142 q 8143 } 8144 /^X\/\(\/\).*/{ 8145 s//\1/ 8146 q 8147 } 8148 s/.*/./; q'` 8149 8150# Avoid depending upon Character Ranges. 8151as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8152as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8153as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8154as_cr_digits='0123456789' 8155as_cr_alnum=$as_cr_Letters$as_cr_digits 8156 8157ECHO_C= ECHO_N= ECHO_T= 8158case `echo -n x` in #((((( 8159-n*) 8160 case `echo 'xy\c'` in 8161 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8162 xy) ECHO_C='\c';; 8163 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8164 ECHO_T=' ';; 8165 esac;; 8166*) 8167 ECHO_N='-n';; 8168esac 8169 8170rm -f conf$$ conf$$.exe conf$$.file 8171if test -d conf$$.dir; then 8172 rm -f conf$$.dir/conf$$.file 8173else 8174 rm -f conf$$.dir 8175 mkdir conf$$.dir 2>/dev/null 8176fi 8177if (echo >conf$$.file) 2>/dev/null; then 8178 if ln -s conf$$.file conf$$ 2>/dev/null; then 8179 as_ln_s='ln -s' 8180 # ... but there are two gotchas: 8181 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8182 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8183 # In both cases, we have to default to `cp -p'. 8184 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8185 as_ln_s='cp -p' 8186 elif ln conf$$.file conf$$ 2>/dev/null; then 8187 as_ln_s=ln 8188 else 8189 as_ln_s='cp -p' 8190 fi 8191else 8192 as_ln_s='cp -p' 8193fi 8194rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8195rmdir conf$$.dir 2>/dev/null 8196 8197 8198# as_fn_mkdir_p 8199# ------------- 8200# Create "$as_dir" as a directory, including parents if necessary. 8201as_fn_mkdir_p () 8202{ 8203 8204 case $as_dir in #( 8205 -*) as_dir=./$as_dir;; 8206 esac 8207 test -d "$as_dir" || eval $as_mkdir_p || { 8208 as_dirs= 8209 while :; do 8210 case $as_dir in #( 8211 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8212 *) as_qdir=$as_dir;; 8213 esac 8214 as_dirs="'$as_qdir' $as_dirs" 8215 as_dir=`$as_dirname -- "$as_dir" || 8216$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8217 X"$as_dir" : 'X\(//\)[^/]' \| \ 8218 X"$as_dir" : 'X\(//\)$' \| \ 8219 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8220$as_echo X"$as_dir" | 8221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8222 s//\1/ 8223 q 8224 } 8225 /^X\(\/\/\)[^/].*/{ 8226 s//\1/ 8227 q 8228 } 8229 /^X\(\/\/\)$/{ 8230 s//\1/ 8231 q 8232 } 8233 /^X\(\/\).*/{ 8234 s//\1/ 8235 q 8236 } 8237 s/.*/./; q'` 8238 test -d "$as_dir" && break 8239 done 8240 test -z "$as_dirs" || eval "mkdir $as_dirs" 8241 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8242 8243 8244} # as_fn_mkdir_p 8245if mkdir -p . 2>/dev/null; then 8246 as_mkdir_p='mkdir -p "$as_dir"' 8247else 8248 test -d ./-p && rmdir ./-p 8249 as_mkdir_p=false 8250fi 8251 8252if test -x / >/dev/null 2>&1; then 8253 as_test_x='test -x' 8254else 8255 if ls -dL / >/dev/null 2>&1; then 8256 as_ls_L_option=L 8257 else 8258 as_ls_L_option= 8259 fi 8260 as_test_x=' 8261 eval sh -c '\'' 8262 if test -d "$1"; then 8263 test -d "$1/."; 8264 else 8265 case $1 in #( 8266 -*)set "./$1";; 8267 esac; 8268 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8269 ???[sx]*):;;*)false;;esac;fi 8270 '\'' sh 8271 ' 8272fi 8273as_executable_p=$as_test_x 8274 8275# Sed expression to map a string onto a valid CPP name. 8276as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8277 8278# Sed expression to map a string onto a valid variable name. 8279as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8280 8281 8282exec 6>&1 8283## ----------------------------------- ## 8284## Main body of $CONFIG_STATUS script. ## 8285## ----------------------------------- ## 8286_ASEOF 8287test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8288 8289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8290# Save the log message, to keep $0 and so on meaningful, and to 8291# report actual input values of CONFIG_FILES etc. instead of their 8292# values after options handling. 8293ac_log=" 8294This file was extended by $as_me, which was 8295generated by GNU Autoconf 2.67. Invocation command line was 8296 8297 CONFIG_FILES = $CONFIG_FILES 8298 CONFIG_HEADERS = $CONFIG_HEADERS 8299 CONFIG_LINKS = $CONFIG_LINKS 8300 CONFIG_COMMANDS = $CONFIG_COMMANDS 8301 $ $0 $@ 8302 8303on `(hostname || uname -n) 2>/dev/null | sed 1q` 8304" 8305 8306_ACEOF 8307 8308case $ac_config_files in *" 8309"*) set x $ac_config_files; shift; ac_config_files=$*;; 8310esac 8311 8312case $ac_config_headers in *" 8313"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8314esac 8315 8316 8317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8318# Files that config.status was made for. 8319config_files="$ac_config_files" 8320config_headers="$ac_config_headers" 8321 8322_ACEOF 8323 8324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8325ac_cs_usage="\ 8326\`$as_me' instantiates files and other configuration actions 8327from templates according to the current configuration. Unless the files 8328and actions are specified as TAGs, all are instantiated by default. 8329 8330Usage: $0 [OPTION]... [TAG]... 8331 8332 -h, --help print this help, then exit 8333 -V, --version print version number and configuration settings, then exit 8334 --config print configuration, then exit 8335 -q, --quiet, --silent 8336 do not print progress messages 8337 -d, --debug don't remove temporary files 8338 --recheck update $as_me by reconfiguring in the same conditions 8339 --file=FILE[:TEMPLATE] 8340 instantiate the configuration file FILE 8341 --header=FILE[:TEMPLATE] 8342 instantiate the configuration header FILE 8343 8344Configuration files: 8345$config_files 8346 8347Configuration headers: 8348$config_headers 8349 8350Report bugs to the package provider." 8351 8352_ACEOF 8353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8354ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8355ac_cs_version="\\ 8356config.status 8357configured by $0, generated by GNU Autoconf 2.67, 8358 with options \\"\$ac_cs_config\\" 8359 8360Copyright (C) 2010 Free Software Foundation, Inc. 8361This config.status script is free software; the Free Software Foundation 8362gives unlimited permission to copy, distribute and modify it." 8363 8364ac_pwd='$ac_pwd' 8365srcdir='$srcdir' 8366INSTALL='$INSTALL' 8367test -n "\$AWK" || AWK=awk 8368_ACEOF 8369 8370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8371# The default lists apply if the user does not specify any file. 8372ac_need_defaults=: 8373while test $# != 0 8374do 8375 case $1 in 8376 --*=?*) 8377 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8379 ac_shift=: 8380 ;; 8381 --*=) 8382 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8383 ac_optarg= 8384 ac_shift=: 8385 ;; 8386 *) 8387 ac_option=$1 8388 ac_optarg=$2 8389 ac_shift=shift 8390 ;; 8391 esac 8392 8393 case $ac_option in 8394 # Handling of the options. 8395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8396 ac_cs_recheck=: ;; 8397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8398 $as_echo "$ac_cs_version"; exit ;; 8399 --config | --confi | --conf | --con | --co | --c ) 8400 $as_echo "$ac_cs_config"; exit ;; 8401 --debug | --debu | --deb | --de | --d | -d ) 8402 debug=: ;; 8403 --file | --fil | --fi | --f ) 8404 $ac_shift 8405 case $ac_optarg in 8406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8407 '') as_fn_error $? "missing file argument" ;; 8408 esac 8409 as_fn_append CONFIG_FILES " '$ac_optarg'" 8410 ac_need_defaults=false;; 8411 --header | --heade | --head | --hea ) 8412 $ac_shift 8413 case $ac_optarg in 8414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8415 esac 8416 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8417 ac_need_defaults=false;; 8418 --he | --h) 8419 # Conflict between --help and --header 8420 as_fn_error $? "ambiguous option: \`$1' 8421Try \`$0 --help' for more information.";; 8422 --help | --hel | -h ) 8423 $as_echo "$ac_cs_usage"; exit ;; 8424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8425 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8426 ac_cs_silent=: ;; 8427 8428 # This is an error. 8429 -*) as_fn_error $? "unrecognized option: \`$1' 8430Try \`$0 --help' for more information." ;; 8431 8432 *) as_fn_append ac_config_targets " $1" 8433 ac_need_defaults=false ;; 8434 8435 esac 8436 shift 8437done 8438 8439ac_configure_extra_args= 8440 8441if $ac_cs_silent; then 8442 exec 6>/dev/null 8443 ac_configure_extra_args="$ac_configure_extra_args --silent" 8444fi 8445 8446_ACEOF 8447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8448if \$ac_cs_recheck; then 8449 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8450 shift 8451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8452 CONFIG_SHELL='$SHELL' 8453 export CONFIG_SHELL 8454 exec "\$@" 8455fi 8456 8457_ACEOF 8458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8459exec 5>>config.log 8460{ 8461 echo 8462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8463## Running $as_me. ## 8464_ASBOX 8465 $as_echo "$ac_log" 8466} >&5 8467 8468_ACEOF 8469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8470_ACEOF 8471 8472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8473 8474# Handling of arguments. 8475for ac_config_target in $ac_config_targets 8476do 8477 case $ac_config_target in 8478 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8479 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8480 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;; 8481 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;; 8482 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;; 8483 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;; 8484 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;; 8485 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;; 8486 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;; 8487 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;; 8488 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;; 8489 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;; 8490 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;; 8491 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;; 8492 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;; 8493 8494 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 8495 esac 8496done 8497 8498 8499# If the user did not use the arguments to specify the items to instantiate, 8500# then the envvar interface is used. Set only those that are not. 8501# We use the long form for the default assignment because of an extremely 8502# bizarre bug on SunOS 4.1.3. 8503if $ac_need_defaults; then 8504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8506fi 8507 8508# Have a temporary directory for convenience. Make it in the build tree 8509# simply because there is no reason against having it here, and in addition, 8510# creating and moving files from /tmp can sometimes cause problems. 8511# Hook for its removal unless debugging. 8512# Note that there is a small window in which the directory will not be cleaned: 8513# after its creation but before its name has been assigned to `$tmp'. 8514$debug || 8515{ 8516 tmp= 8517 trap 'exit_status=$? 8518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 8519' 0 8520 trap 'as_fn_exit 1' 1 2 13 15 8521} 8522# Create a (secure) tmp directory for tmp files. 8523 8524{ 8525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8526 test -n "$tmp" && test -d "$tmp" 8527} || 8528{ 8529 tmp=./conf$$-$RANDOM 8530 (umask 077 && mkdir "$tmp") 8531} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8532 8533# Set up the scripts for CONFIG_FILES section. 8534# No need to generate them if there are no CONFIG_FILES. 8535# This happens for instance with `./config.status config.h'. 8536if test -n "$CONFIG_FILES"; then 8537 8538 8539ac_cr=`echo X | tr X '\015'` 8540# On cygwin, bash can eat \r inside `` if the user requested igncr. 8541# But we know of no other shell where ac_cr would be empty at this 8542# point, so we can use a bashism as a fallback. 8543if test "x$ac_cr" = x; then 8544 eval ac_cr=\$\'\\r\' 8545fi 8546ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8547if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8548 ac_cs_awk_cr='\\r' 8549else 8550 ac_cs_awk_cr=$ac_cr 8551fi 8552 8553echo 'BEGIN {' >"$tmp/subs1.awk" && 8554_ACEOF 8555 8556 8557{ 8558 echo "cat >conf$$subs.awk <<_ACEOF" && 8559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8560 echo "_ACEOF" 8561} >conf$$subs.sh || 8562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8563ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8564ac_delim='%!_!# ' 8565for ac_last_try in false false false false false :; do 8566 . ./conf$$subs.sh || 8567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8568 8569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8570 if test $ac_delim_n = $ac_delim_num; then 8571 break 8572 elif $ac_last_try; then 8573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8574 else 8575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8576 fi 8577done 8578rm -f conf$$subs.sh 8579 8580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8581cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 8582_ACEOF 8583sed -n ' 8584h 8585s/^/S["/; s/!.*/"]=/ 8586p 8587g 8588s/^[^!]*!// 8589:repl 8590t repl 8591s/'"$ac_delim"'$// 8592t delim 8593:nl 8594h 8595s/\(.\{148\}\)..*/\1/ 8596t more1 8597s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8598p 8599n 8600b repl 8601:more1 8602s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8603p 8604g 8605s/.\{148\}// 8606t nl 8607:delim 8608h 8609s/\(.\{148\}\)..*/\1/ 8610t more2 8611s/["\\]/\\&/g; s/^/"/; s/$/"/ 8612p 8613b 8614:more2 8615s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8616p 8617g 8618s/.\{148\}// 8619t delim 8620' <conf$$subs.awk | sed ' 8621/^[^""]/{ 8622 N 8623 s/\n// 8624} 8625' >>$CONFIG_STATUS || ac_write_fail=1 8626rm -f conf$$subs.awk 8627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8628_ACAWK 8629cat >>"\$tmp/subs1.awk" <<_ACAWK && 8630 for (key in S) S_is_set[key] = 1 8631 FS = "" 8632 8633} 8634{ 8635 line = $ 0 8636 nfields = split(line, field, "@") 8637 substed = 0 8638 len = length(field[1]) 8639 for (i = 2; i < nfields; i++) { 8640 key = field[i] 8641 keylen = length(key) 8642 if (S_is_set[key]) { 8643 value = S[key] 8644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8645 len += length(value) + length(field[++i]) 8646 substed = 1 8647 } else 8648 len += 1 + keylen 8649 } 8650 8651 print line 8652} 8653 8654_ACAWK 8655_ACEOF 8656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8657if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8659else 8660 cat 8661fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 8662 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8663_ACEOF 8664 8665# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8666# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8667# trailing colons and then remove the whole line if VPATH becomes empty 8668# (actually we leave an empty line to preserve line numbers). 8669if test "x$srcdir" = x.; then 8670 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8671h 8672s/// 8673s/^/:/ 8674s/[ ]*$/:/ 8675s/:\$(srcdir):/:/g 8676s/:\${srcdir}:/:/g 8677s/:@srcdir@:/:/g 8678s/^:*// 8679s/:*$// 8680x 8681s/\(=[ ]*\).*/\1/ 8682G 8683s/\n// 8684s/^[^=]*=[ ]*$// 8685}' 8686fi 8687 8688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8689fi # test -n "$CONFIG_FILES" 8690 8691# Set up the scripts for CONFIG_HEADERS section. 8692# No need to generate them if there are no CONFIG_HEADERS. 8693# This happens for instance with `./config.status Makefile'. 8694if test -n "$CONFIG_HEADERS"; then 8695cat >"$tmp/defines.awk" <<\_ACAWK || 8696BEGIN { 8697_ACEOF 8698 8699# Transform confdefs.h into an awk script `defines.awk', embedded as 8700# here-document in config.status, that substitutes the proper values into 8701# config.h.in to produce config.h. 8702 8703# Create a delimiter string that does not exist in confdefs.h, to ease 8704# handling of long lines. 8705ac_delim='%!_!# ' 8706for ac_last_try in false false :; do 8707 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 8708 if test -z "$ac_t"; then 8709 break 8710 elif $ac_last_try; then 8711 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8712 else 8713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8714 fi 8715done 8716 8717# For the awk script, D is an array of macro values keyed by name, 8718# likewise P contains macro parameters if any. Preserve backslash 8719# newline sequences. 8720 8721ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8722sed -n ' 8723s/.\{148\}/&'"$ac_delim"'/g 8724t rset 8725:rset 8726s/^[ ]*#[ ]*define[ ][ ]*/ / 8727t def 8728d 8729:def 8730s/\\$// 8731t bsnl 8732s/["\\]/\\&/g 8733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8734D["\1"]=" \3"/p 8735s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8736d 8737:bsnl 8738s/["\\]/\\&/g 8739s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8740D["\1"]=" \3\\\\\\n"\\/p 8741t cont 8742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8743t cont 8744d 8745:cont 8746n 8747s/.\{148\}/&'"$ac_delim"'/g 8748t clear 8749:clear 8750s/\\$// 8751t bsnlc 8752s/["\\]/\\&/g; s/^/"/; s/$/"/p 8753d 8754:bsnlc 8755s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8756b cont 8757' <confdefs.h | sed ' 8758s/'"$ac_delim"'/"\\\ 8759"/g' >>$CONFIG_STATUS || ac_write_fail=1 8760 8761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8762 for (key in D) D_is_set[key] = 1 8763 FS = "" 8764} 8765/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8766 line = \$ 0 8767 split(line, arg, " ") 8768 if (arg[1] == "#") { 8769 defundef = arg[2] 8770 mac1 = arg[3] 8771 } else { 8772 defundef = substr(arg[1], 2) 8773 mac1 = arg[2] 8774 } 8775 split(mac1, mac2, "(") #) 8776 macro = mac2[1] 8777 prefix = substr(line, 1, index(line, defundef) - 1) 8778 if (D_is_set[macro]) { 8779 # Preserve the white space surrounding the "#". 8780 print prefix "define", macro P[macro] D[macro] 8781 next 8782 } else { 8783 # Replace #undef with comments. This is necessary, for example, 8784 # in the case of _POSIX_SOURCE, which is predefined and required 8785 # on some systems where configure will not decide to define it. 8786 if (defundef == "undef") { 8787 print "/*", prefix defundef, macro, "*/" 8788 next 8789 } 8790 } 8791} 8792{ print } 8793_ACAWK 8794_ACEOF 8795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8796 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8797fi # test -n "$CONFIG_HEADERS" 8798 8799 8800eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 8801shift 8802for ac_tag 8803do 8804 case $ac_tag in 8805 :[FHLC]) ac_mode=$ac_tag; continue;; 8806 esac 8807 case $ac_mode$ac_tag in 8808 :[FHL]*:*);; 8809 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 8810 :[FH]-) ac_tag=-:-;; 8811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8812 esac 8813 ac_save_IFS=$IFS 8814 IFS=: 8815 set x $ac_tag 8816 IFS=$ac_save_IFS 8817 shift 8818 ac_file=$1 8819 shift 8820 8821 case $ac_mode in 8822 :L) ac_source=$1;; 8823 :[FH]) 8824 ac_file_inputs= 8825 for ac_f 8826 do 8827 case $ac_f in 8828 -) ac_f="$tmp/stdin";; 8829 *) # Look for the file first in the build tree, then in the source tree 8830 # (if the path is not absolute). The absolute path cannot be DOS-style, 8831 # because $ac_f cannot contain `:'. 8832 test -f "$ac_f" || 8833 case $ac_f in 8834 [\\/$]*) false;; 8835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8836 esac || 8837 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 8838 esac 8839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8840 as_fn_append ac_file_inputs " '$ac_f'" 8841 done 8842 8843 # Let's still pretend it is `configure' which instantiates (i.e., don't 8844 # use $as_me), people would be surprised to read: 8845 # /* config.h. Generated by config.status. */ 8846 configure_input='Generated from '` 8847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8848 `' by configure.' 8849 if test x"$ac_file" != x-; then 8850 configure_input="$ac_file. $configure_input" 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8852$as_echo "$as_me: creating $ac_file" >&6;} 8853 fi 8854 # Neutralize special characters interpreted by sed in replacement strings. 8855 case $configure_input in #( 8856 *\&* | *\|* | *\\* ) 8857 ac_sed_conf_input=`$as_echo "$configure_input" | 8858 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8859 *) ac_sed_conf_input=$configure_input;; 8860 esac 8861 8862 case $ac_tag in 8863 *:-:* | *:-) cat >"$tmp/stdin" \ 8864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8865 esac 8866 ;; 8867 esac 8868 8869 ac_dir=`$as_dirname -- "$ac_file" || 8870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8871 X"$ac_file" : 'X\(//\)[^/]' \| \ 8872 X"$ac_file" : 'X\(//\)$' \| \ 8873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8874$as_echo X"$ac_file" | 8875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8876 s//\1/ 8877 q 8878 } 8879 /^X\(\/\/\)[^/].*/{ 8880 s//\1/ 8881 q 8882 } 8883 /^X\(\/\/\)$/{ 8884 s//\1/ 8885 q 8886 } 8887 /^X\(\/\).*/{ 8888 s//\1/ 8889 q 8890 } 8891 s/.*/./; q'` 8892 as_dir="$ac_dir"; as_fn_mkdir_p 8893 ac_builddir=. 8894 8895case "$ac_dir" in 8896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8897*) 8898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8899 # A ".." for each directory in $ac_dir_suffix. 8900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8901 case $ac_top_builddir_sub in 8902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8904 esac ;; 8905esac 8906ac_abs_top_builddir=$ac_pwd 8907ac_abs_builddir=$ac_pwd$ac_dir_suffix 8908# for backward compatibility: 8909ac_top_builddir=$ac_top_build_prefix 8910 8911case $srcdir in 8912 .) # We are building in place. 8913 ac_srcdir=. 8914 ac_top_srcdir=$ac_top_builddir_sub 8915 ac_abs_top_srcdir=$ac_pwd ;; 8916 [\\/]* | ?:[\\/]* ) # Absolute name. 8917 ac_srcdir=$srcdir$ac_dir_suffix; 8918 ac_top_srcdir=$srcdir 8919 ac_abs_top_srcdir=$srcdir ;; 8920 *) # Relative name. 8921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8922 ac_top_srcdir=$ac_top_build_prefix$srcdir 8923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8924esac 8925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8926 8927 8928 case $ac_mode in 8929 :F) 8930 # 8931 # CONFIG_FILE 8932 # 8933 8934 case $INSTALL in 8935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8937 esac 8938_ACEOF 8939 8940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8941# If the template does not know about datarootdir, expand it. 8942# FIXME: This hack should be removed a few years after 2.60. 8943ac_datarootdir_hack=; ac_datarootdir_seen= 8944ac_sed_dataroot=' 8945/datarootdir/ { 8946 p 8947 q 8948} 8949/@datadir@/p 8950/@docdir@/p 8951/@infodir@/p 8952/@localedir@/p 8953/@mandir@/p' 8954case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8955*datarootdir*) ac_datarootdir_seen=yes;; 8956*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8958$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8959_ACEOF 8960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8961 ac_datarootdir_hack=' 8962 s&@datadir@&$datadir&g 8963 s&@docdir@&$docdir&g 8964 s&@infodir@&$infodir&g 8965 s&@localedir@&$localedir&g 8966 s&@mandir@&$mandir&g 8967 s&\\\${datarootdir}&$datarootdir&g' ;; 8968esac 8969_ACEOF 8970 8971# Neutralize VPATH when `$srcdir' = `.'. 8972# Shell code in configure.ac might set extrasub. 8973# FIXME: do we really want to maintain this feature? 8974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8975ac_sed_extra="$ac_vpsub 8976$extrasub 8977_ACEOF 8978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8979:t 8980/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8981s|@configure_input@|$ac_sed_conf_input|;t t 8982s&@top_builddir@&$ac_top_builddir_sub&;t t 8983s&@top_build_prefix@&$ac_top_build_prefix&;t t 8984s&@srcdir@&$ac_srcdir&;t t 8985s&@abs_srcdir@&$ac_abs_srcdir&;t t 8986s&@top_srcdir@&$ac_top_srcdir&;t t 8987s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8988s&@builddir@&$ac_builddir&;t t 8989s&@abs_builddir@&$ac_abs_builddir&;t t 8990s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8991s&@INSTALL@&$ac_INSTALL&;t t 8992$ac_datarootdir_hack 8993" 8994eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 8995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8996 8997test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8998 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 8999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9001which seems to be undefined. Please make sure it is defined" >&5 9002$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9003which seems to be undefined. Please make sure it is defined" >&2;} 9004 9005 rm -f "$tmp/stdin" 9006 case $ac_file in 9007 -) cat "$tmp/out" && rm -f "$tmp/out";; 9008 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 9009 esac \ 9010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9011 ;; 9012 :H) 9013 # 9014 # CONFIG_HEADER 9015 # 9016 if test x"$ac_file" != x-; then 9017 { 9018 $as_echo "/* $configure_input */" \ 9019 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 9020 } >"$tmp/config.h" \ 9021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9022 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9024$as_echo "$as_me: $ac_file is unchanged" >&6;} 9025 else 9026 rm -f "$ac_file" 9027 mv "$tmp/config.h" "$ac_file" \ 9028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9029 fi 9030 else 9031 $as_echo "/* $configure_input */" \ 9032 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 9033 || as_fn_error $? "could not create -" "$LINENO" 5 9034 fi 9035 ;; 9036 9037 9038 esac 9039 9040done # for ac_tag 9041 9042 9043as_fn_exit 0 9044_ACEOF 9045ac_clean_files=$ac_clean_files_save 9046 9047test $ac_write_fail = 0 || 9048 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9049 9050 9051# configure is writing to config.log, and then calls config.status. 9052# config.status does its own redirection, appending to config.log. 9053# Unfortunately, on DOS this fails, as config.log is still kept open 9054# by configure, so config.status won't be able to write to it; its 9055# output is simply discarded. So we exec the FD to /dev/null, 9056# effectively closing config.log, so it can be properly (re)opened and 9057# appended to by config.status. When coming back to configure, we 9058# need to make the FD available again. 9059if test "$no_create" != yes; then 9060 ac_cs_success=: 9061 ac_config_status_args= 9062 test "$silent" = yes && 9063 ac_config_status_args="$ac_config_status_args --quiet" 9064 exec 5>/dev/null 9065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9066 exec 5>>config.log 9067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9068 # would make configure fail if this is the last instruction. 9069 $ac_cs_success || as_fn_exit 1 9070fi 9071if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9073$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9074fi 9075 9076 9077if test -f .devel ; then 9078 make depend 9079fi 9080exit 0 9081