PageRenderTime 40ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 1ms

/libpcap/configure

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