configure revision 242485
117680Spst#! /bin/sh
2214478Srpaulo# From configure.in Revision: 1.204 .
3127668Sbms# Guess values for system-dependent variables and create Makefiles.
4172683Smlaier# Generated by GNU Autoconf 2.61.
5111726Sfenner#
6172683Smlaier# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7172683Smlaier# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8127668Sbms# This configure script is free software; the Free Software Foundation
9127668Sbms# gives unlimited permission to copy, distribute and modify it.
10127668Sbms## --------------------- ##
11127668Sbms## M4sh Initialization.  ##
12127668Sbms## --------------------- ##
1375115Sfenner
14172683Smlaier# Be more Bourne compatible
15172683SmlaierDUALCASE=1; export DUALCASE # for MKS sh
16127668Sbmsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17127668Sbms  emulate sh
18127668Sbms  NULLCMD=:
19127668Sbms  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20127668Sbms  # is contrary to our usage.  Disable this feature.
21127668Sbms  alias -g '${1+"$@"}'='"$@"'
22172683Smlaier  setopt NO_GLOB_SUBST
23172683Smlaierelse
24172683Smlaier  case `(set -o) 2>/dev/null` in
25172683Smlaier  *posix*) set -o posix ;;
26172683Smlaieresac
27172683Smlaier
28127668Sbmsfi
2975115Sfenner
30172683Smlaier
31172683Smlaier
32172683Smlaier
33172683Smlaier# PATH needs CR
34172683Smlaier# Avoid depending upon Character Ranges.
35172683Smlaieras_cr_letters='abcdefghijklmnopqrstuvwxyz'
36172683Smlaieras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37172683Smlaieras_cr_Letters=$as_cr_letters$as_cr_LETTERS
38172683Smlaieras_cr_digits='0123456789'
39172683Smlaieras_cr_alnum=$as_cr_Letters$as_cr_digits
40172683Smlaier
41172683Smlaier# The user is always right.
42172683Smlaierif test "${PATH_SEPARATOR+set}" != set; then
43172683Smlaier  echo "#! /bin/sh" >conf$$.sh
44172683Smlaier  echo  "exit 0"   >>conf$$.sh
45172683Smlaier  chmod +x conf$$.sh
46172683Smlaier  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47172683Smlaier    PATH_SEPARATOR=';'
48172683Smlaier  else
49172683Smlaier    PATH_SEPARATOR=:
50172683Smlaier  fi
51172683Smlaier  rm -f conf$$.sh
52172683Smlaierfi
53172683Smlaier
54127668Sbms# Support unset when possible.
55172683Smlaierif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56127668Sbms  as_unset=unset
57127668Sbmselse
58127668Sbms  as_unset=false
59127668Sbmsfi
6075115Sfenner
6175115Sfenner
62172683Smlaier# IFS
63172683Smlaier# We need space, tab and new line, in precisely that order.  Quoting is
64172683Smlaier# there to prevent editors from complaining about space-tab.
65172683Smlaier# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66172683Smlaier# splitting by setting IFS to empty value.)
67172683Smlaieras_nl='
68172683Smlaier'
69172683SmlaierIFS=" ""	$as_nl"
70172683Smlaier
71172683Smlaier# Find who we are.  Look in the path if we contain no directory separator.
72172683Smlaiercase $0 in
73172683Smlaier  *[\\/]* ) as_myself=$0 ;;
74172683Smlaier  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75172683Smlaierfor as_dir in $PATH
76172683Smlaierdo
77172683Smlaier  IFS=$as_save_IFS
78172683Smlaier  test -z "$as_dir" && as_dir=.
79172683Smlaier  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80172683Smlaierdone
81172683SmlaierIFS=$as_save_IFS
82172683Smlaier
83172683Smlaier     ;;
84172683Smlaieresac
85172683Smlaier# We did not find ourselves, most probably we were run as `sh COMMAND'
86172683Smlaier# in which case we are not to be found in the path.
87172683Smlaierif test "x$as_myself" = x; then
88172683Smlaier  as_myself=$0
89172683Smlaierfi
90172683Smlaierif test ! -f "$as_myself"; then
91172683Smlaier  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92172683Smlaier  { (exit 1); exit 1; }
93172683Smlaierfi
94172683Smlaier
95127668Sbms# Work around bugs in pre-3.0 UWIN ksh.
96172683Smlaierfor as_var in ENV MAIL MAILPATH
97172683Smlaierdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98172683Smlaierdone
99127668SbmsPS1='$ '
100127668SbmsPS2='> '
101127668SbmsPS4='+ '
10275115Sfenner
103127668Sbms# NLS nuisances.
104127668Sbmsfor as_var in \
105127668Sbms  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106127668Sbms  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107127668Sbms  LC_TELEPHONE LC_TIME
108127668Sbmsdo
109172683Smlaier  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110127668Sbms    eval $as_var=C; export $as_var
111127668Sbms  else
112172683Smlaier    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113127668Sbms  fi
114127668Sbmsdone
11575115Sfenner
116127668Sbms# Required to use basename.
117172683Smlaierif expr a : '\(a\)' >/dev/null 2>&1 &&
118172683Smlaier   test "X`expr 00001 : '.*\(...\)'`" = X001; then
119127668Sbms  as_expr=expr
120127668Sbmselse
121127668Sbms  as_expr=false
122127668Sbmsfi
12375115Sfenner
124172683Smlaierif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125127668Sbms  as_basename=basename
126127668Sbmselse
127127668Sbms  as_basename=false
128127668Sbmsfi
12975115Sfenner
13075115Sfenner
131127668Sbms# Name of the executable.
132172683Smlaieras_me=`$as_basename -- "$0" ||
133127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134127668Sbms	 X"$0" : 'X\(//\)$' \| \
135172683Smlaier	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136127668Sbmsecho X/"$0" |
137172683Smlaier    sed '/^.*\/\([^/][^/]*\)\/*$/{
138172683Smlaier	    s//\1/
139172683Smlaier	    q
140172683Smlaier	  }
141172683Smlaier	  /^X\/\(\/\/\)$/{
142172683Smlaier	    s//\1/
143172683Smlaier	    q
144172683Smlaier	  }
145172683Smlaier	  /^X\/\(\/\).*/{
146172683Smlaier	    s//\1/
147172683Smlaier	    q
148172683Smlaier	  }
149172683Smlaier	  s/.*/./; q'`
15075115Sfenner
151172683Smlaier# CDPATH.
152172683Smlaier$as_unset CDPATH
15375115Sfenner
15475115Sfenner
155172683Smlaierif test "x$CONFIG_SHELL" = x; then
156172683Smlaier  if (eval ":") 2>/dev/null; then
157172683Smlaier  as_have_required=yes
158172683Smlaierelse
159172683Smlaier  as_have_required=no
160127668Sbmsfi
16175115Sfenner
162172683Smlaier  if test $as_have_required = yes && 	 (eval ":
163172683Smlaier(as_func_return () {
164172683Smlaier  (exit \$1)
165172683Smlaier}
166172683Smlaieras_func_success () {
167172683Smlaier  as_func_return 0
168172683Smlaier}
169172683Smlaieras_func_failure () {
170172683Smlaier  as_func_return 1
171172683Smlaier}
172172683Smlaieras_func_ret_success () {
173172683Smlaier  return 0
174172683Smlaier}
175172683Smlaieras_func_ret_failure () {
176172683Smlaier  return 1
177172683Smlaier}
17875115Sfenner
179172683Smlaierexitcode=0
180172683Smlaierif as_func_success; then
181172683Smlaier  :
182172683Smlaierelse
183172683Smlaier  exitcode=1
184172683Smlaier  echo as_func_success failed.
185172683Smlaierfi
18675115Sfenner
187172683Smlaierif as_func_failure; then
188172683Smlaier  exitcode=1
189172683Smlaier  echo as_func_failure succeeded.
190172683Smlaierfi
191172683Smlaier
192172683Smlaierif as_func_ret_success; then
193172683Smlaier  :
194172683Smlaierelse
195172683Smlaier  exitcode=1
196172683Smlaier  echo as_func_ret_success failed.
197172683Smlaierfi
198172683Smlaier
199172683Smlaierif as_func_ret_failure; then
200172683Smlaier  exitcode=1
201172683Smlaier  echo as_func_ret_failure succeeded.
202172683Smlaierfi
203172683Smlaier
204172683Smlaierif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205172683Smlaier  :
206172683Smlaierelse
207172683Smlaier  exitcode=1
208172683Smlaier  echo positional parameters were not saved.
209172683Smlaierfi
210172683Smlaier
211172683Smlaiertest \$exitcode = 0) || { (exit 1); exit 1; }
212172683Smlaier
213172683Smlaier(
214172683Smlaier  as_lineno_1=\$LINENO
215172683Smlaier  as_lineno_2=\$LINENO
216172683Smlaier  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217172683Smlaier  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218172683Smlaier") 2> /dev/null; then
219172683Smlaier  :
220172683Smlaierelse
221172683Smlaier  as_candidate_shells=
222127668Sbms    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223127668Sbmsfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224127668Sbmsdo
225127668Sbms  IFS=$as_save_IFS
226127668Sbms  test -z "$as_dir" && as_dir=.
227172683Smlaier  case $as_dir in
228127668Sbms	 /*)
229172683Smlaier	   for as_base in sh bash ksh sh5; do
230172683Smlaier	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231172683Smlaier	   done;;
232172683Smlaier       esac
233172683Smlaierdone
234172683SmlaierIFS=$as_save_IFS
235172683Smlaier
236172683Smlaier
237172683Smlaier      for as_shell in $as_candidate_shells $SHELL; do
238172683Smlaier	 # Try only shells that exist, to save several forks.
239172683Smlaier	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240172683Smlaier		{ ("$as_shell") 2> /dev/null <<\_ASEOF
241172683Smlaierif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242172683Smlaier  emulate sh
243172683Smlaier  NULLCMD=:
244172683Smlaier  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245172683Smlaier  # is contrary to our usage.  Disable this feature.
246172683Smlaier  alias -g '${1+"$@"}'='"$@"'
247172683Smlaier  setopt NO_GLOB_SUBST
248172683Smlaierelse
249172683Smlaier  case `(set -o) 2>/dev/null` in
250172683Smlaier  *posix*) set -o posix ;;
251172683Smlaieresac
252172683Smlaier
253172683Smlaierfi
254172683Smlaier
255172683Smlaier
256172683Smlaier:
257172683Smlaier_ASEOF
258172683Smlaier}; then
259172683Smlaier  CONFIG_SHELL=$as_shell
260172683Smlaier	       as_have_required=yes
261172683Smlaier	       if { "$as_shell" 2> /dev/null <<\_ASEOF
262172683Smlaierif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263172683Smlaier  emulate sh
264172683Smlaier  NULLCMD=:
265172683Smlaier  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266172683Smlaier  # is contrary to our usage.  Disable this feature.
267172683Smlaier  alias -g '${1+"$@"}'='"$@"'
268172683Smlaier  setopt NO_GLOB_SUBST
269172683Smlaierelse
270172683Smlaier  case `(set -o) 2>/dev/null` in
271172683Smlaier  *posix*) set -o posix ;;
272172683Smlaieresac
273172683Smlaier
274172683Smlaierfi
275172683Smlaier
276172683Smlaier
277172683Smlaier:
278172683Smlaier(as_func_return () {
279172683Smlaier  (exit $1)
280172683Smlaier}
281172683Smlaieras_func_success () {
282172683Smlaier  as_func_return 0
283172683Smlaier}
284172683Smlaieras_func_failure () {
285172683Smlaier  as_func_return 1
286172683Smlaier}
287172683Smlaieras_func_ret_success () {
288172683Smlaier  return 0
289172683Smlaier}
290172683Smlaieras_func_ret_failure () {
291172683Smlaier  return 1
292172683Smlaier}
293172683Smlaier
294172683Smlaierexitcode=0
295172683Smlaierif as_func_success; then
296172683Smlaier  :
297172683Smlaierelse
298172683Smlaier  exitcode=1
299172683Smlaier  echo as_func_success failed.
300172683Smlaierfi
301172683Smlaier
302172683Smlaierif as_func_failure; then
303172683Smlaier  exitcode=1
304172683Smlaier  echo as_func_failure succeeded.
305172683Smlaierfi
306172683Smlaier
307172683Smlaierif as_func_ret_success; then
308172683Smlaier  :
309172683Smlaierelse
310172683Smlaier  exitcode=1
311172683Smlaier  echo as_func_ret_success failed.
312172683Smlaierfi
313172683Smlaier
314172683Smlaierif as_func_ret_failure; then
315172683Smlaier  exitcode=1
316172683Smlaier  echo as_func_ret_failure succeeded.
317172683Smlaierfi
318172683Smlaier
319172683Smlaierif ( set x; as_func_ret_success y && test x = "$1" ); then
320172683Smlaier  :
321172683Smlaierelse
322172683Smlaier  exitcode=1
323172683Smlaier  echo positional parameters were not saved.
324172683Smlaierfi
325172683Smlaier
326172683Smlaiertest $exitcode = 0) || { (exit 1); exit 1; }
327172683Smlaier
328172683Smlaier(
329127668Sbms  as_lineno_1=$LINENO
330127668Sbms  as_lineno_2=$LINENO
331127668Sbms  test "x$as_lineno_1" != "x$as_lineno_2" &&
332172683Smlaier  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
33375115Sfenner
334172683Smlaier_ASEOF
335172683Smlaier}; then
336172683Smlaier  break
337172683Smlaierfi
338172683Smlaier
339172683Smlaierfi
340172683Smlaier
341172683Smlaier      done
342172683Smlaier
343172683Smlaier      if test "x$CONFIG_SHELL" != x; then
344172683Smlaier  for as_var in BASH_ENV ENV
345172683Smlaier        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346172683Smlaier        done
347172683Smlaier        export CONFIG_SHELL
348172683Smlaier        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349172683Smlaierfi
350172683Smlaier
351172683Smlaier
352172683Smlaier    if test $as_have_required = no; then
353172683Smlaier  echo This script requires a shell more modern than all the
354172683Smlaier      echo shells that I found on your system.  Please install a
355172683Smlaier      echo modern shell, or manually run the script under such a
356172683Smlaier      echo shell if you do have one.
357172683Smlaier      { (exit 1); exit 1; }
358172683Smlaierfi
359172683Smlaier
360172683Smlaier
361172683Smlaierfi
362172683Smlaier
363172683Smlaierfi
364172683Smlaier
365172683Smlaier
366172683Smlaier
367172683Smlaier(eval "as_func_return () {
368172683Smlaier  (exit \$1)
369172683Smlaier}
370172683Smlaieras_func_success () {
371172683Smlaier  as_func_return 0
372172683Smlaier}
373172683Smlaieras_func_failure () {
374172683Smlaier  as_func_return 1
375172683Smlaier}
376172683Smlaieras_func_ret_success () {
377172683Smlaier  return 0
378172683Smlaier}
379172683Smlaieras_func_ret_failure () {
380172683Smlaier  return 1
381172683Smlaier}
382172683Smlaier
383172683Smlaierexitcode=0
384172683Smlaierif as_func_success; then
385172683Smlaier  :
386172683Smlaierelse
387172683Smlaier  exitcode=1
388172683Smlaier  echo as_func_success failed.
389172683Smlaierfi
390172683Smlaier
391172683Smlaierif as_func_failure; then
392172683Smlaier  exitcode=1
393172683Smlaier  echo as_func_failure succeeded.
394172683Smlaierfi
395172683Smlaier
396172683Smlaierif as_func_ret_success; then
397172683Smlaier  :
398172683Smlaierelse
399172683Smlaier  exitcode=1
400172683Smlaier  echo as_func_ret_success failed.
401172683Smlaierfi
402172683Smlaier
403172683Smlaierif as_func_ret_failure; then
404172683Smlaier  exitcode=1
405172683Smlaier  echo as_func_ret_failure succeeded.
406172683Smlaierfi
407172683Smlaier
408172683Smlaierif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409172683Smlaier  :
410172683Smlaierelse
411172683Smlaier  exitcode=1
412172683Smlaier  echo positional parameters were not saved.
413172683Smlaierfi
414172683Smlaier
415172683Smlaiertest \$exitcode = 0") || {
416172683Smlaier  echo No shell found that supports shell functions.
417172683Smlaier  echo Please tell autoconf@gnu.org about your system,
418172683Smlaier  echo including any error possibly output before this
419172683Smlaier  echo message
420172683Smlaier}
421172683Smlaier
422172683Smlaier
423172683Smlaier
424172683Smlaier  as_lineno_1=$LINENO
425172683Smlaier  as_lineno_2=$LINENO
426172683Smlaier  test "x$as_lineno_1" != "x$as_lineno_2" &&
427172683Smlaier  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428172683Smlaier
429127668Sbms  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430127668Sbms  # uniformly replaced by the line number.  The first 'sed' inserts a
431172683Smlaier  # line-number line after each line using $LINENO; the second 'sed'
432172683Smlaier  # does the real work.  The second script uses 'N' to pair each
433172683Smlaier  # line-number line with the line containing $LINENO, and appends
434172683Smlaier  # trailing '-' during substitution so that $LINENO is not a special
435172683Smlaier  # case at line end.
436127668Sbms  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437172683Smlaier  # scripts with optimization help from Paolo Bonzini.  Blame Lee
438172683Smlaier  # E. McMahon (1931-1989) for sed's syntax.  :-)
439172683Smlaier  sed -n '
440172683Smlaier    p
441172683Smlaier    /[$]LINENO/=
442172683Smlaier  ' <$as_myself |
443127668Sbms    sed '
444172683Smlaier      s/[$]LINENO.*/&-/
445172683Smlaier      t lineno
446172683Smlaier      b
447172683Smlaier      :lineno
448127668Sbms      N
449172683Smlaier      :loop
450172683Smlaier      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451127668Sbms      t loop
452172683Smlaier      s/-\n.*//
453127668Sbms    ' >$as_me.lineno &&
454172683Smlaier  chmod +x "$as_me.lineno" ||
455127668Sbms    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456127668Sbms   { (exit 1); exit 1; }; }
45775115Sfenner
458127668Sbms  # Don't try to exec as it changes $[0], causing all sort of problems
459127668Sbms  # (the dirname of $[0] is not the place where we might find the
460172683Smlaier  # original and so on.  Autoconf is especially sensitive to this).
461172683Smlaier  . "./$as_me.lineno"
462127668Sbms  # Exit status is that of the last command.
463127668Sbms  exit
464127668Sbms}
46575115Sfenner
46675115Sfenner
467172683Smlaierif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468172683Smlaier  as_dirname=dirname
469172683Smlaierelse
470172683Smlaier  as_dirname=false
471172683Smlaierfi
472172683Smlaier
473172683SmlaierECHO_C= ECHO_N= ECHO_T=
474172683Smlaiercase `echo -n x` in
475172683Smlaier-n*)
476172683Smlaier  case `echo 'x\c'` in
477172683Smlaier  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478172683Smlaier  *)   ECHO_C='\c';;
479172683Smlaier  esac;;
480172683Smlaier*)
481172683Smlaier  ECHO_N='-n';;
482127668Sbmsesac
48375115Sfenner
484172683Smlaierif expr a : '\(a\)' >/dev/null 2>&1 &&
485172683Smlaier   test "X`expr 00001 : '.*\(...\)'`" = X001; then
486127668Sbms  as_expr=expr
487127668Sbmselse
488127668Sbms  as_expr=false
489127668Sbmsfi
49075115Sfenner
491127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
492172683Smlaierif test -d conf$$.dir; then
493172683Smlaier  rm -f conf$$.dir/conf$$.file
494172683Smlaierelse
495172683Smlaier  rm -f conf$$.dir
496172683Smlaier  mkdir conf$$.dir
497172683Smlaierfi
498127668Sbmsecho >conf$$.file
499127668Sbmsif ln -s conf$$.file conf$$ 2>/dev/null; then
500172683Smlaier  as_ln_s='ln -s'
501172683Smlaier  # ... but there are two gotchas:
502172683Smlaier  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503172683Smlaier  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504172683Smlaier  # In both cases, we have to default to `cp -p'.
505172683Smlaier  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506127668Sbms    as_ln_s='cp -p'
507127668Sbmselif ln conf$$.file conf$$ 2>/dev/null; then
508127668Sbms  as_ln_s=ln
509127668Sbmselse
510127668Sbms  as_ln_s='cp -p'
511127668Sbmsfi
512172683Smlaierrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513172683Smlaierrmdir conf$$.dir 2>/dev/null
51475115Sfenner
515127668Sbmsif mkdir -p . 2>/dev/null; then
516127668Sbms  as_mkdir_p=:
517127668Sbmselse
518172683Smlaier  test -d ./-p && rmdir ./-p
519127668Sbms  as_mkdir_p=false
520127668Sbmsfi
52175115Sfenner
522172683Smlaierif test -x / >/dev/null 2>&1; then
523172683Smlaier  as_test_x='test -x'
524172683Smlaierelse
525172683Smlaier  if ls -dL / >/dev/null 2>&1; then
526172683Smlaier    as_ls_L_option=L
527172683Smlaier  else
528172683Smlaier    as_ls_L_option=
529172683Smlaier  fi
530172683Smlaier  as_test_x='
531172683Smlaier    eval sh -c '\''
532172683Smlaier      if test -d "$1"; then
533172683Smlaier        test -d "$1/.";
534172683Smlaier      else
535172683Smlaier	case $1 in
536172683Smlaier        -*)set "./$1";;
537172683Smlaier	esac;
538172683Smlaier	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539172683Smlaier	???[sx]*):;;*)false;;esac;fi
540172683Smlaier    '\'' sh
541172683Smlaier  '
542172683Smlaierfi
543172683Smlaieras_executable_p=$as_test_x
54475115Sfenner
545127668Sbms# Sed expression to map a string onto a valid CPP name.
546172683Smlaieras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54775115Sfenner
548127668Sbms# Sed expression to map a string onto a valid variable name.
549172683Smlaieras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55075115Sfenner
55175115Sfenner
55275115Sfenner
553172683Smlaierexec 7<&0 </dev/null 6>&1
55475115Sfenner
555127668Sbms# Name of the host.
556127668Sbms# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557127668Sbms# so uname gets run too.
558127668Sbmsac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
55975115Sfenner
560127668Sbms#
561127668Sbms# Initializations.
562127668Sbms#
563127668Sbmsac_default_prefix=/usr/local
564172683Smlaierac_clean_files=
565127668Sbmsac_config_libobj_dir=.
566172683SmlaierLIBOBJS=
567127668Sbmscross_compiling=no
568127668Sbmssubdirs=
569127668SbmsMFLAGS=
570127668SbmsMAKEFLAGS=
571127668SbmsSHELL=${CONFIG_SHELL-/bin/sh}
57275115Sfenner
573127668Sbms# Identity of this package.
574127668SbmsPACKAGE_NAME=
575127668SbmsPACKAGE_TARNAME=
576127668SbmsPACKAGE_VERSION=
577127668SbmsPACKAGE_STRING=
578127668SbmsPACKAGE_BUGREPORT=
57975115Sfenner
580127668Sbmsac_unique_file="tcpdump.c"
581127668Sbms# Factoring default headers for most tests.
582127668Sbmsac_includes_default="\
583127668Sbms#include <stdio.h>
584172683Smlaier#ifdef HAVE_SYS_TYPES_H
585127668Sbms# include <sys/types.h>
586127668Sbms#endif
587172683Smlaier#ifdef HAVE_SYS_STAT_H
588127668Sbms# include <sys/stat.h>
589127668Sbms#endif
590172683Smlaier#ifdef STDC_HEADERS
591127668Sbms# include <stdlib.h>
592127668Sbms# include <stddef.h>
593127668Sbms#else
594172683Smlaier# ifdef HAVE_STDLIB_H
595127668Sbms#  include <stdlib.h>
596127668Sbms# endif
597127668Sbms#endif
598172683Smlaier#ifdef HAVE_STRING_H
599172683Smlaier# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600127668Sbms#  include <memory.h>
601127668Sbms# endif
602127668Sbms# include <string.h>
603127668Sbms#endif
604172683Smlaier#ifdef HAVE_STRINGS_H
605127668Sbms# include <strings.h>
606127668Sbms#endif
607172683Smlaier#ifdef HAVE_INTTYPES_H
608127668Sbms# include <inttypes.h>
609127668Sbms#endif
610172683Smlaier#ifdef HAVE_STDINT_H
611172683Smlaier# include <stdint.h>
612172683Smlaier#endif
613172683Smlaier#ifdef HAVE_UNISTD_H
614127668Sbms# include <unistd.h>
615127668Sbms#endif"
61675115Sfenner
617172683Smlaierac_subst_vars='SHELL
618172683SmlaierPATH_SEPARATOR
619172683SmlaierPACKAGE_NAME
620172683SmlaierPACKAGE_TARNAME
621172683SmlaierPACKAGE_VERSION
622172683SmlaierPACKAGE_STRING
623172683SmlaierPACKAGE_BUGREPORT
624172683Smlaierexec_prefix
625172683Smlaierprefix
626172683Smlaierprogram_transform_name
627172683Smlaierbindir
628172683Smlaiersbindir
629172683Smlaierlibexecdir
630172683Smlaierdatarootdir
631172683Smlaierdatadir
632172683Smlaiersysconfdir
633172683Smlaiersharedstatedir
634172683Smlaierlocalstatedir
635172683Smlaierincludedir
636172683Smlaieroldincludedir
637172683Smlaierdocdir
638172683Smlaierinfodir
639172683Smlaierhtmldir
640172683Smlaierdvidir
641172683Smlaierpdfdir
642172683Smlaierpsdir
643172683Smlaierlibdir
644172683Smlaierlocaledir
645172683Smlaiermandir
646172683SmlaierDEFS
647172683SmlaierECHO_C
648172683SmlaierECHO_N
649172683SmlaierECHO_T
650172683SmlaierLIBS
651172683Smlaierbuild_alias
652172683Smlaierhost_alias
653172683Smlaiertarget_alias
654172683Smlaierbuild
655172683Smlaierbuild_cpu
656172683Smlaierbuild_vendor
657172683Smlaierbuild_os
658172683Smlaierhost
659172683Smlaierhost_cpu
660172683Smlaierhost_vendor
661172683Smlaierhost_os
662172683SmlaierSHLICC2
663172683SmlaierCC
664172683SmlaierCFLAGS
665172683SmlaierLDFLAGS
666172683SmlaierCPPFLAGS
667172683Smlaierac_ct_CC
668172683SmlaierEXEEXT
669172683SmlaierOBJEXT
670172683SmlaierCPP
671172683SmlaierGREP
672172683SmlaierEGREP
673172683SmlaierLIBOBJS
674214478SrpauloPCAP_CONFIG
675190207SrpauloRANLIB
676172683SmlaierV_CCOPT
677172683SmlaierV_DEFS
678172683SmlaierV_GROUP
679172683SmlaierV_INCLS
680172683SmlaierV_PCAPDEP
681172683SmlaierLOCALSRC
682214478SrpauloMAN_FILE_FORMATS
683214478SrpauloMAN_MISC_INFO
684172683SmlaierINSTALL_PROGRAM
685172683SmlaierINSTALL_SCRIPT
686172683SmlaierINSTALL_DATA
687172683SmlaierLTLIBOBJS'
688127668Sbmsac_subst_files=''
689172683Smlaier      ac_precious_vars='build_alias
690172683Smlaierhost_alias
691172683Smlaiertarget_alias
692172683SmlaierCC
693172683SmlaierCFLAGS
694172683SmlaierLDFLAGS
695172683SmlaierLIBS
696172683SmlaierCPPFLAGS
697172683SmlaierCPP'
69875115Sfenner
699172683Smlaier
70017680Spst# Initialize some variables set by options.
701127668Sbmsac_init_help=
702127668Sbmsac_init_version=false
70317680Spst# The variables have the same names as the options, with
70417680Spst# dashes changed to underlines.
705127668Sbmscache_file=/dev/null
70617680Spstexec_prefix=NONE
70717680Spstno_create=
70817680Spstno_recursion=
70917680Spstprefix=NONE
71017680Spstprogram_prefix=NONE
71117680Spstprogram_suffix=NONE
71217680Spstprogram_transform_name=s,x,x,
71317680Spstsilent=
71417680Spstsite=
71517680Spstsrcdir=
71617680Spstverbose=
71717680Spstx_includes=NONE
71817680Spstx_libraries=NONE
719127668Sbms
720127668Sbms# Installation directory options.
721127668Sbms# These are left unexpanded so users can "make install exec_prefix=/foo"
722127668Sbms# and all the variables that are supposed to be based on exec_prefix
723127668Sbms# by default will actually change.
724127668Sbms# Use braces instead of parens because sh, perl, etc. also accept them.
725172683Smlaier# (The list follows the same order as the GNU Coding Standards.)
72617680Spstbindir='${exec_prefix}/bin'
72717680Spstsbindir='${exec_prefix}/sbin'
72817680Spstlibexecdir='${exec_prefix}/libexec'
729172683Smlaierdatarootdir='${prefix}/share'
730172683Smlaierdatadir='${datarootdir}'
73117680Spstsysconfdir='${prefix}/etc'
73217680Spstsharedstatedir='${prefix}/com'
73317680Spstlocalstatedir='${prefix}/var'
73417680Spstincludedir='${prefix}/include'
73517680Spstoldincludedir='/usr/include'
736172683Smlaierdocdir='${datarootdir}/doc/${PACKAGE}'
737172683Smlaierinfodir='${datarootdir}/info'
738172683Smlaierhtmldir='${docdir}'
739172683Smlaierdvidir='${docdir}'
740172683Smlaierpdfdir='${docdir}'
741172683Smlaierpsdir='${docdir}'
742172683Smlaierlibdir='${exec_prefix}/lib'
743172683Smlaierlocaledir='${datarootdir}/locale'
744172683Smlaiermandir='${datarootdir}/man'
74517680Spst
74617680Spstac_prev=
747172683Smlaierac_dashdash=
74817680Spstfor ac_option
74917680Spstdo
75017680Spst  # If the previous option needs an argument, assign it.
75117680Spst  if test -n "$ac_prev"; then
752172683Smlaier    eval $ac_prev=\$ac_option
75317680Spst    ac_prev=
75417680Spst    continue
75517680Spst  fi
75617680Spst
757172683Smlaier  case $ac_option in
758172683Smlaier  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759172683Smlaier  *)	ac_optarg=yes ;;
760172683Smlaier  esac
76117680Spst
76217680Spst  # Accept the important Cygnus configure options, so we can diagnose typos.
76317680Spst
764172683Smlaier  case $ac_dashdash$ac_option in
765172683Smlaier  --)
766172683Smlaier    ac_dashdash=yes ;;
76717680Spst
76817680Spst  -bindir | --bindir | --bindi | --bind | --bin | --bi)
76917680Spst    ac_prev=bindir ;;
77017680Spst  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771127668Sbms    bindir=$ac_optarg ;;
77217680Spst
77317680Spst  -build | --build | --buil | --bui | --bu)
774127668Sbms    ac_prev=build_alias ;;
77517680Spst  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776127668Sbms    build_alias=$ac_optarg ;;
77717680Spst
77817680Spst  -cache-file | --cache-file | --cache-fil | --cache-fi \
77917680Spst  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
78017680Spst    ac_prev=cache_file ;;
78117680Spst  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
78217680Spst  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783127668Sbms    cache_file=$ac_optarg ;;
78417680Spst
785127668Sbms  --config-cache | -C)
786127668Sbms    cache_file=config.cache ;;
787127668Sbms
788172683Smlaier  -datadir | --datadir | --datadi | --datad)
78917680Spst    ac_prev=datadir ;;
790172683Smlaier  -datadir=* | --datadir=* | --datadi=* | --datad=*)
791127668Sbms    datadir=$ac_optarg ;;
79217680Spst
793172683Smlaier  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794172683Smlaier  | --dataroo | --dataro | --datar)
795172683Smlaier    ac_prev=datarootdir ;;
796172683Smlaier  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797172683Smlaier  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798172683Smlaier    datarootdir=$ac_optarg ;;
799172683Smlaier
80017680Spst  -disable-* | --disable-*)
801127668Sbms    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
80217680Spst    # Reject names that are not valid shell variable names.
803172683Smlaier    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804127668Sbms      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805127668Sbms   { (exit 1); exit 1; }; }
806172683Smlaier    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807172683Smlaier    eval enable_$ac_feature=no ;;
80817680Spst
809172683Smlaier  -docdir | --docdir | --docdi | --doc | --do)
810172683Smlaier    ac_prev=docdir ;;
811172683Smlaier  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812172683Smlaier    docdir=$ac_optarg ;;
813172683Smlaier
814172683Smlaier  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815172683Smlaier    ac_prev=dvidir ;;
816172683Smlaier  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817172683Smlaier    dvidir=$ac_optarg ;;
818172683Smlaier
81917680Spst  -enable-* | --enable-*)
820127668Sbms    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
82117680Spst    # Reject names that are not valid shell variable names.
822172683Smlaier    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823127668Sbms      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824127668Sbms   { (exit 1); exit 1; }; }
825172683Smlaier    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826172683Smlaier    eval enable_$ac_feature=\$ac_optarg ;;
82717680Spst
82817680Spst  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
82917680Spst  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
83017680Spst  | --exec | --exe | --ex)
83117680Spst    ac_prev=exec_prefix ;;
83217680Spst  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
83317680Spst  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
83417680Spst  | --exec=* | --exe=* | --ex=*)
835127668Sbms    exec_prefix=$ac_optarg ;;
83617680Spst
83717680Spst  -gas | --gas | --ga | --g)
83817680Spst    # Obsolete; use --with-gas.
83917680Spst    with_gas=yes ;;
84017680Spst
841127668Sbms  -help | --help | --hel | --he | -h)
842127668Sbms    ac_init_help=long ;;
843127668Sbms  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844127668Sbms    ac_init_help=recursive ;;
845127668Sbms  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846127668Sbms    ac_init_help=short ;;
84717680Spst
84817680Spst  -host | --host | --hos | --ho)
849127668Sbms    ac_prev=host_alias ;;
85017680Spst  -host=* | --host=* | --hos=* | --ho=*)
851127668Sbms    host_alias=$ac_optarg ;;
85217680Spst
853172683Smlaier  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854172683Smlaier    ac_prev=htmldir ;;
855172683Smlaier  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856172683Smlaier  | --ht=*)
857172683Smlaier    htmldir=$ac_optarg ;;
858172683Smlaier
85917680Spst  -includedir | --includedir | --includedi | --included | --include \
86017680Spst  | --includ | --inclu | --incl | --inc)
86117680Spst    ac_prev=includedir ;;
86217680Spst  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
86317680Spst  | --includ=* | --inclu=* | --incl=* | --inc=*)
864127668Sbms    includedir=$ac_optarg ;;
86517680Spst
86617680Spst  -infodir | --infodir | --infodi | --infod | --info | --inf)
86717680Spst    ac_prev=infodir ;;
86817680Spst  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869127668Sbms    infodir=$ac_optarg ;;
87017680Spst
87117680Spst  -libdir | --libdir | --libdi | --libd)
87217680Spst    ac_prev=libdir ;;
87317680Spst  -libdir=* | --libdir=* | --libdi=* | --libd=*)
874127668Sbms    libdir=$ac_optarg ;;
87517680Spst
87617680Spst  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
87717680Spst  | --libexe | --libex | --libe)
87817680Spst    ac_prev=libexecdir ;;
87917680Spst  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
88017680Spst  | --libexe=* | --libex=* | --libe=*)
881127668Sbms    libexecdir=$ac_optarg ;;
88217680Spst
883172683Smlaier  -localedir | --localedir | --localedi | --localed | --locale)
884172683Smlaier    ac_prev=localedir ;;
885172683Smlaier  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886172683Smlaier    localedir=$ac_optarg ;;
887172683Smlaier
88817680Spst  -localstatedir | --localstatedir | --localstatedi | --localstated \
889172683Smlaier  | --localstate | --localstat | --localsta | --localst | --locals)
89017680Spst    ac_prev=localstatedir ;;
89117680Spst  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892172683Smlaier  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893127668Sbms    localstatedir=$ac_optarg ;;
89417680Spst
89517680Spst  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
89617680Spst    ac_prev=mandir ;;
89717680Spst  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898127668Sbms    mandir=$ac_optarg ;;
89917680Spst
90017680Spst  -nfp | --nfp | --nf)
90117680Spst    # Obsolete; use --without-fp.
90217680Spst    with_fp=no ;;
90317680Spst
90417680Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905127668Sbms  | --no-cr | --no-c | -n)
90617680Spst    no_create=yes ;;
90717680Spst
90817680Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
90917680Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
91017680Spst    no_recursion=yes ;;
91117680Spst
91217680Spst  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
91317680Spst  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
91417680Spst  | --oldin | --oldi | --old | --ol | --o)
91517680Spst    ac_prev=oldincludedir ;;
91617680Spst  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
91717680Spst  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
91817680Spst  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919127668Sbms    oldincludedir=$ac_optarg ;;
92017680Spst
92117680Spst  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
92217680Spst    ac_prev=prefix ;;
92317680Spst  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924127668Sbms    prefix=$ac_optarg ;;
92517680Spst
92617680Spst  -program-prefix | --program-prefix | --program-prefi | --program-pref \
92717680Spst  | --program-pre | --program-pr | --program-p)
92817680Spst    ac_prev=program_prefix ;;
92917680Spst  -program-prefix=* | --program-prefix=* | --program-prefi=* \
93017680Spst  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931127668Sbms    program_prefix=$ac_optarg ;;
93217680Spst
93317680Spst  -program-suffix | --program-suffix | --program-suffi | --program-suff \
93417680Spst  | --program-suf | --program-su | --program-s)
93517680Spst    ac_prev=program_suffix ;;
93617680Spst  -program-suffix=* | --program-suffix=* | --program-suffi=* \
93717680Spst  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938127668Sbms    program_suffix=$ac_optarg ;;
93917680Spst
94017680Spst  -program-transform-name | --program-transform-name \
94117680Spst  | --program-transform-nam | --program-transform-na \
94217680Spst  | --program-transform-n | --program-transform- \
94317680Spst  | --program-transform | --program-transfor \
94417680Spst  | --program-transfo | --program-transf \
94517680Spst  | --program-trans | --program-tran \
94617680Spst  | --progr-tra | --program-tr | --program-t)
94717680Spst    ac_prev=program_transform_name ;;
94817680Spst  -program-transform-name=* | --program-transform-name=* \
94917680Spst  | --program-transform-nam=* | --program-transform-na=* \
95017680Spst  | --program-transform-n=* | --program-transform-=* \
95117680Spst  | --program-transform=* | --program-transfor=* \
95217680Spst  | --program-transfo=* | --program-transf=* \
95317680Spst  | --program-trans=* | --program-tran=* \
95417680Spst  | --progr-tra=* | --program-tr=* | --program-t=*)
955127668Sbms    program_transform_name=$ac_optarg ;;
95617680Spst
957172683Smlaier  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958172683Smlaier    ac_prev=pdfdir ;;
959172683Smlaier  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960172683Smlaier    pdfdir=$ac_optarg ;;
961172683Smlaier
962172683Smlaier  -psdir | --psdir | --psdi | --psd | --ps)
963172683Smlaier    ac_prev=psdir ;;
964172683Smlaier  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965172683Smlaier    psdir=$ac_optarg ;;
966172683Smlaier
96717680Spst  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
96817680Spst  | -silent | --silent | --silen | --sile | --sil)
96917680Spst    silent=yes ;;
97017680Spst
97117680Spst  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
97217680Spst    ac_prev=sbindir ;;
97317680Spst  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
97417680Spst  | --sbi=* | --sb=*)
975127668Sbms    sbindir=$ac_optarg ;;
97617680Spst
97717680Spst  -sharedstatedir | --sharedstatedir | --sharedstatedi \
97817680Spst  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
97917680Spst  | --sharedst | --shareds | --shared | --share | --shar \
98017680Spst  | --sha | --sh)
98117680Spst    ac_prev=sharedstatedir ;;
98217680Spst  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
98317680Spst  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
98417680Spst  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
98517680Spst  | --sha=* | --sh=*)
986127668Sbms    sharedstatedir=$ac_optarg ;;
98717680Spst
98817680Spst  -site | --site | --sit)
98917680Spst    ac_prev=site ;;
99017680Spst  -site=* | --site=* | --sit=*)
991127668Sbms    site=$ac_optarg ;;
99217680Spst
99317680Spst  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
99417680Spst    ac_prev=srcdir ;;
99517680Spst  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996127668Sbms    srcdir=$ac_optarg ;;
99717680Spst
99817680Spst  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
99917680Spst  | --syscon | --sysco | --sysc | --sys | --sy)
100017680Spst    ac_prev=sysconfdir ;;
100117680Spst  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
100217680Spst  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003127668Sbms    sysconfdir=$ac_optarg ;;
100417680Spst
100517680Spst  -target | --target | --targe | --targ | --tar | --ta | --t)
1006127668Sbms    ac_prev=target_alias ;;
100717680Spst  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008127668Sbms    target_alias=$ac_optarg ;;
100917680Spst
101017680Spst  -v | -verbose | --verbose | --verbos | --verbo | --verb)
101117680Spst    verbose=yes ;;
101217680Spst
1013127668Sbms  -version | --version | --versio | --versi | --vers | -V)
1014127668Sbms    ac_init_version=: ;;
101517680Spst
101617680Spst  -with-* | --with-*)
1017127668Sbms    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
101817680Spst    # Reject names that are not valid shell variable names.
1019172683Smlaier    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020127668Sbms      { echo "$as_me: error: invalid package name: $ac_package" >&2
1021127668Sbms   { (exit 1); exit 1; }; }
1022172683Smlaier    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023172683Smlaier    eval with_$ac_package=\$ac_optarg ;;
102417680Spst
102517680Spst  -without-* | --without-*)
1026127668Sbms    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
102717680Spst    # Reject names that are not valid shell variable names.
1028172683Smlaier    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029127668Sbms      { echo "$as_me: error: invalid package name: $ac_package" >&2
1030127668Sbms   { (exit 1); exit 1; }; }
1031172683Smlaier    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032172683Smlaier    eval with_$ac_package=no ;;
103317680Spst
103417680Spst  --x)
103517680Spst    # Obsolete; use --with-x.
103617680Spst    with_x=yes ;;
103717680Spst
103817680Spst  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
103917680Spst  | --x-incl | --x-inc | --x-in | --x-i)
104017680Spst    ac_prev=x_includes ;;
104117680Spst  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
104217680Spst  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043127668Sbms    x_includes=$ac_optarg ;;
104417680Spst
104517680Spst  -x-libraries | --x-libraries | --x-librarie | --x-librari \
104617680Spst  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
104717680Spst    ac_prev=x_libraries ;;
104817680Spst  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
104917680Spst  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050127668Sbms    x_libraries=$ac_optarg ;;
105117680Spst
1052127668Sbms  -*) { echo "$as_me: error: unrecognized option: $ac_option
1053127668SbmsTry \`$0 --help' for more information." >&2
1054127668Sbms   { (exit 1); exit 1; }; }
105517680Spst    ;;
105617680Spst
1057127668Sbms  *=*)
1058127668Sbms    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059127668Sbms    # Reject names that are not valid shell variable names.
1060127668Sbms    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061127668Sbms      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062127668Sbms   { (exit 1); exit 1; }; }
1063172683Smlaier    eval $ac_envvar=\$ac_optarg
1064127668Sbms    export $ac_envvar ;;
1065127668Sbms
106617680Spst  *)
1067127668Sbms    # FIXME: should be removed in autoconf 3.0.
1068127668Sbms    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069127668Sbms    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070127668Sbms      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071127668Sbms    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
107217680Spst    ;;
107317680Spst
107417680Spst  esac
107517680Spstdone
107617680Spst
107717680Spstif test -n "$ac_prev"; then
1078127668Sbms  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079127668Sbms  { echo "$as_me: error: missing argument to $ac_option" >&2
1080127668Sbms   { (exit 1); exit 1; }; }
108117680Spstfi
108217680Spst
1083172683Smlaier# Be sure to have absolute directory names.
1084172683Smlaierfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085172683Smlaier		datadir sysconfdir sharedstatedir localstatedir includedir \
1086172683Smlaier		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087172683Smlaier		libdir localedir mandir
1088127668Sbmsdo
1089172683Smlaier  eval ac_val=\$$ac_var
1090127668Sbms  case $ac_val in
1091172683Smlaier    [\\/$]* | ?:[\\/]* )  continue;;
1092172683Smlaier    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093127668Sbms  esac
1094172683Smlaier  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095172683Smlaier   { (exit 1); exit 1; }; }
1096127668Sbmsdone
109717680Spst
1098127668Sbms# There might be people who depend on the old broken behavior: `$host'
1099127668Sbms# used to hold the argument of --host etc.
1100127668Sbms# FIXME: To remove some day.
1101127668Sbmsbuild=$build_alias
1102127668Sbmshost=$host_alias
1103127668Sbmstarget=$target_alias
110417680Spst
1105127668Sbms# FIXME: To remove some day.
1106127668Sbmsif test "x$host_alias" != x; then
1107127668Sbms  if test "x$build_alias" = x; then
1108127668Sbms    cross_compiling=maybe
1109127668Sbms    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110127668Sbms    If a cross compiler is detected then cross compile mode will be used." >&2
1111127668Sbms  elif test "x$build_alias" != "x$host_alias"; then
1112127668Sbms    cross_compiling=yes
1113127668Sbms  fi
1114127668Sbmsfi
111517680Spst
1116127668Sbmsac_tool_prefix=
1117127668Sbmstest -n "$host_alias" && ac_tool_prefix=$host_alias-
111817680Spst
1119127668Sbmstest "$silent" = yes && exec 6>/dev/null
1120127668Sbms
1121127668Sbms
1122172683Smlaierac_pwd=`pwd` && test -n "$ac_pwd" &&
1123172683Smlaierac_ls_di=`ls -di .` &&
1124172683Smlaierac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125172683Smlaier  { echo "$as_me: error: Working directory cannot be determined" >&2
1126172683Smlaier   { (exit 1); exit 1; }; }
1127172683Smlaiertest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128172683Smlaier  { echo "$as_me: error: pwd does not report name of working directory" >&2
1129172683Smlaier   { (exit 1); exit 1; }; }
1130172683Smlaier
1131172683Smlaier
113217680Spst# Find the source files, if location was not specified.
113317680Spstif test -z "$srcdir"; then
113417680Spst  ac_srcdir_defaulted=yes
1135172683Smlaier  # Try the directory containing this script, then the parent directory.
1136172683Smlaier  ac_confdir=`$as_dirname -- "$0" ||
1137127668Sbms$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138172683Smlaier	 X"$0" : 'X\(//\)[^/]' \| \
1139172683Smlaier	 X"$0" : 'X\(//\)$' \| \
1140172683Smlaier	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141127668Sbmsecho X"$0" |
1142172683Smlaier    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143172683Smlaier	    s//\1/
1144172683Smlaier	    q
1145172683Smlaier	  }
1146172683Smlaier	  /^X\(\/\/\)[^/].*/{
1147172683Smlaier	    s//\1/
1148172683Smlaier	    q
1149172683Smlaier	  }
1150172683Smlaier	  /^X\(\/\/\)$/{
1151172683Smlaier	    s//\1/
1152172683Smlaier	    q
1153172683Smlaier	  }
1154172683Smlaier	  /^X\(\/\).*/{
1155172683Smlaier	    s//\1/
1156172683Smlaier	    q
1157172683Smlaier	  }
1158172683Smlaier	  s/.*/./; q'`
115917680Spst  srcdir=$ac_confdir
1160172683Smlaier  if test ! -r "$srcdir/$ac_unique_file"; then
116117680Spst    srcdir=..
116217680Spst  fi
116317680Spstelse
116417680Spst  ac_srcdir_defaulted=no
116517680Spstfi
1166172683Smlaierif test ! -r "$srcdir/$ac_unique_file"; then
1167172683Smlaier  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168172683Smlaier  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169127668Sbms   { (exit 1); exit 1; }; }
1170172683Smlaierfi
1171172683Smlaierac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172172683Smlaierac_abs_confdir=`(
1173172683Smlaier	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174127668Sbms   { (exit 1); exit 1; }; }
1175172683Smlaier	pwd)`
1176172683Smlaier# When building in place, set srcdir=.
1177172683Smlaierif test "$ac_abs_confdir" = "$ac_pwd"; then
1178172683Smlaier  srcdir=.
117917680Spstfi
1180172683Smlaier# Remove unnecessary trailing slashes from srcdir.
1181172683Smlaier# Double slashes in file names in object file debugging info
1182172683Smlaier# mess up M-x gdb in Emacs.
1183172683Smlaiercase $srcdir in
1184172683Smlaier*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185172683Smlaieresac
1186172683Smlaierfor ac_var in $ac_precious_vars; do
1187172683Smlaier  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188172683Smlaier  eval ac_env_${ac_var}_value=\$${ac_var}
1189172683Smlaier  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190172683Smlaier  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191172683Smlaierdone
119217680Spst
1193127668Sbms#
1194127668Sbms# Report the --help message.
1195127668Sbms#
1196127668Sbmsif test "$ac_init_help" = "long"; then
1197127668Sbms  # Omit some internal or obsolete options to make the list less imposing.
1198127668Sbms  # This message is too long to be a string in the A/UX 3.1 sh.
1199127668Sbms  cat <<_ACEOF
1200127668Sbms\`configure' configures this package to adapt to many kinds of systems.
1201127668Sbms
1202127668SbmsUsage: $0 [OPTION]... [VAR=VALUE]...
1203127668Sbms
1204127668SbmsTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1205127668SbmsVAR=VALUE.  See below for descriptions of some of the useful variables.
1206127668Sbms
1207127668SbmsDefaults for the options are specified in brackets.
1208127668Sbms
1209127668SbmsConfiguration:
1210127668Sbms  -h, --help              display this help and exit
1211127668Sbms      --help=short        display options specific to this package
1212127668Sbms      --help=recursive    display the short help of all the included packages
1213127668Sbms  -V, --version           display version information and exit
1214127668Sbms  -q, --quiet, --silent   do not print \`checking...' messages
1215127668Sbms      --cache-file=FILE   cache test results in FILE [disabled]
1216127668Sbms  -C, --config-cache      alias for \`--cache-file=config.cache'
1217127668Sbms  -n, --no-create         do not create output files
1218127668Sbms      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1219127668Sbms
1220127668SbmsInstallation directories:
1221127668Sbms  --prefix=PREFIX         install architecture-independent files in PREFIX
1222172683Smlaier			  [$ac_default_prefix]
1223127668Sbms  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1224172683Smlaier			  [PREFIX]
1225127668Sbms
1226127668SbmsBy default, \`make install' will install all the files in
1227127668Sbms\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1228127668Sbmsan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229127668Sbmsfor instance \`--prefix=\$HOME'.
1230127668Sbms
1231127668SbmsFor better control, use the options below.
1232127668Sbms
1233127668SbmsFine tuning of the installation directories:
1234127668Sbms  --bindir=DIR           user executables [EPREFIX/bin]
1235127668Sbms  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1236127668Sbms  --libexecdir=DIR       program executables [EPREFIX/libexec]
1237127668Sbms  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1238127668Sbms  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1239127668Sbms  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1240127668Sbms  --libdir=DIR           object code libraries [EPREFIX/lib]
1241127668Sbms  --includedir=DIR       C header files [PREFIX/include]
1242127668Sbms  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1243172683Smlaier  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1244172683Smlaier  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1245172683Smlaier  --infodir=DIR          info documentation [DATAROOTDIR/info]
1246172683Smlaier  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1247172683Smlaier  --mandir=DIR           man documentation [DATAROOTDIR/man]
1248172683Smlaier  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1249172683Smlaier  --htmldir=DIR          html documentation [DOCDIR]
1250172683Smlaier  --dvidir=DIR           dvi documentation [DOCDIR]
1251172683Smlaier  --pdfdir=DIR           pdf documentation [DOCDIR]
1252172683Smlaier  --psdir=DIR            ps documentation [DOCDIR]
1253127668Sbms_ACEOF
1254127668Sbms
1255127668Sbms  cat <<\_ACEOF
1256127668Sbms
1257127668SbmsSystem types:
1258127668Sbms  --build=BUILD     configure for building on BUILD [guessed]
1259127668Sbms  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1260127668Sbms_ACEOF
1261127668Sbmsfi
1262127668Sbms
1263127668Sbmsif test -n "$ac_init_help"; then
1264127668Sbms
1265127668Sbms  cat <<\_ACEOF
1266127668Sbms
1267127668SbmsOptional Features:
1268127668Sbms  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1269127668Sbms  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1270236192Sdelphij  --disable-universal     don't build universal on OS X
1271127668Sbms  --enable-smb            enable possibly-buggy SMB printer default=yes
1272127668Sbms  --disable-smb           disable possibly-buggy SMB printer
1273127668Sbms  --enable-ipv6           enable ipv6 (with ipv4) support
1274127668Sbms  --disable-ipv6          disable ipv6 support
1275127668Sbms
1276127668SbmsOptional Packages:
1277127668Sbms  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1278127668Sbms  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1279127668Sbms  --without-gcc           don't use gcc
1280214478Srpaulo  --with-smi              link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1281214478Srpaulo  --without-smi           don't link with libsmi
1282146773Ssam  --with-user=USERNAME    drop privileges by default to USERNAME
1283146773Ssam  --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284190207Srpaulo  --with-crypto[=PATH]    use SSLeay libcrypto (located in directory PATH, if
1285190207Srpaulo                          supplied). [default=yes, if available]
1286127668Sbms
1287127668SbmsSome influential environment variables:
1288127668Sbms  CC          C compiler command
1289127668Sbms  CFLAGS      C compiler flags
1290127668Sbms  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1291127668Sbms              nonstandard directory <lib dir>
1292172683Smlaier  LIBS        libraries to pass to the linker, e.g. -l<library>
1293172683Smlaier  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294172683Smlaier              you have headers in a nonstandard directory <include dir>
1295127668Sbms  CPP         C preprocessor
1296127668Sbms
1297127668SbmsUse these variables to override the choices made by `configure' or to help
1298127668Sbmsit to find libraries and programs with nonstandard names/locations.
1299127668Sbms
1300127668Sbms_ACEOF
1301172683Smlaierac_status=$?
1302127668Sbmsfi
1303127668Sbms
1304127668Sbmsif test "$ac_init_help" = "recursive"; then
1305127668Sbms  # If there are subdirs, report their specific --help.
1306127668Sbms  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307172683Smlaier    test -d "$ac_dir" || continue
1308127668Sbms    ac_builddir=.
1309127668Sbms
1310172683Smlaiercase "$ac_dir" in
1311172683Smlaier.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312172683Smlaier*)
1313127668Sbms  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314172683Smlaier  # A ".." for each directory in $ac_dir_suffix.
1315172683Smlaier  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316172683Smlaier  case $ac_top_builddir_sub in
1317172683Smlaier  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318172683Smlaier  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319172683Smlaier  esac ;;
1320172683Smlaieresac
1321172683Smlaierac_abs_top_builddir=$ac_pwd
1322172683Smlaierac_abs_builddir=$ac_pwd$ac_dir_suffix
1323172683Smlaier# for backward compatibility:
1324172683Smlaierac_top_builddir=$ac_top_build_prefix
1325127668Sbms
1326127668Sbmscase $srcdir in
1327172683Smlaier  .)  # We are building in place.
1328127668Sbms    ac_srcdir=.
1329172683Smlaier    ac_top_srcdir=$ac_top_builddir_sub
1330172683Smlaier    ac_abs_top_srcdir=$ac_pwd ;;
1331172683Smlaier  [\\/]* | ?:[\\/]* )  # Absolute name.
1332127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
1333172683Smlaier    ac_top_srcdir=$srcdir
1334172683Smlaier    ac_abs_top_srcdir=$srcdir ;;
1335172683Smlaier  *) # Relative name.
1336172683Smlaier    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337172683Smlaier    ac_top_srcdir=$ac_top_build_prefix$srcdir
1338172683Smlaier    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339127668Sbmsesac
1340172683Smlaierac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341127668Sbms
1342172683Smlaier    cd "$ac_dir" || { ac_status=$?; continue; }
1343172683Smlaier    # Check for guested configure.
1344172683Smlaier    if test -f "$ac_srcdir/configure.gnu"; then
1345172683Smlaier      echo &&
1346172683Smlaier      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347172683Smlaier    elif test -f "$ac_srcdir/configure"; then
1348172683Smlaier      echo &&
1349172683Smlaier      $SHELL "$ac_srcdir/configure" --help=recursive
1350127668Sbms    else
1351127668Sbms      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352172683Smlaier    fi || ac_status=$?
1353172683Smlaier    cd "$ac_pwd" || { ac_status=$?; break; }
1354127668Sbms  done
1355127668Sbmsfi
1356127668Sbms
1357172683Smlaiertest -n "$ac_init_help" && exit $ac_status
1358127668Sbmsif $ac_init_version; then
1359127668Sbms  cat <<\_ACEOF
1360172683Smlaierconfigure
1361172683Smlaiergenerated by GNU Autoconf 2.61
1362127668Sbms
1363172683SmlaierCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364172683Smlaier2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365127668SbmsThis configure script is free software; the Free Software Foundation
1366127668Sbmsgives unlimited permission to copy, distribute and modify it.
1367127668Sbms_ACEOF
1368172683Smlaier  exit
1369127668Sbmsfi
1370172683Smlaiercat >config.log <<_ACEOF
1371127668SbmsThis file contains any messages produced by compilers while
1372127668Sbmsrunning configure, to aid debugging if configure makes a mistake.
1373127668Sbms
1374127668SbmsIt was created by $as_me, which was
1375172683Smlaiergenerated by GNU Autoconf 2.61.  Invocation command line was
1376127668Sbms
1377127668Sbms  $ $0 $@
1378127668Sbms
1379127668Sbms_ACEOF
1380172683Smlaierexec 5>>config.log
1381127668Sbms{
1382127668Sbmscat <<_ASUNAME
1383127668Sbms## --------- ##
1384127668Sbms## Platform. ##
1385127668Sbms## --------- ##
1386127668Sbms
1387127668Sbmshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388127668Sbmsuname -m = `(uname -m) 2>/dev/null || echo unknown`
1389127668Sbmsuname -r = `(uname -r) 2>/dev/null || echo unknown`
1390127668Sbmsuname -s = `(uname -s) 2>/dev/null || echo unknown`
1391127668Sbmsuname -v = `(uname -v) 2>/dev/null || echo unknown`
1392127668Sbms
1393127668Sbms/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394127668Sbms/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1395127668Sbms
1396127668Sbms/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1397127668Sbms/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1398127668Sbms/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399172683Smlaier/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1400127668Sbms/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1401127668Sbms/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1402127668Sbms/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1403127668Sbms
1404127668Sbms_ASUNAME
1405127668Sbms
1406127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407127668Sbmsfor as_dir in $PATH
1408127668Sbmsdo
1409127668Sbms  IFS=$as_save_IFS
1410127668Sbms  test -z "$as_dir" && as_dir=.
1411127668Sbms  echo "PATH: $as_dir"
1412127668Sbmsdone
1413172683SmlaierIFS=$as_save_IFS
1414127668Sbms
1415127668Sbms} >&5
1416127668Sbms
1417127668Sbmscat >&5 <<_ACEOF
1418127668Sbms
1419127668Sbms
1420127668Sbms## ----------- ##
1421127668Sbms## Core tests. ##
1422127668Sbms## ----------- ##
1423127668Sbms
1424127668Sbms_ACEOF
1425127668Sbms
1426127668Sbms
1427127668Sbms# Keep a trace of the command line.
1428127668Sbms# Strip out --no-create and --no-recursion so they do not pile up.
1429127668Sbms# Strip out --silent because we don't want to record it for future runs.
1430127668Sbms# Also quote any args containing shell meta-characters.
1431127668Sbms# Make two passes to allow for proper duplicate-argument suppression.
1432127668Sbmsac_configure_args=
1433127668Sbmsac_configure_args0=
1434127668Sbmsac_configure_args1=
1435127668Sbmsac_must_keep_next=false
1436127668Sbmsfor ac_pass in 1 2
1437127668Sbmsdo
1438127668Sbms  for ac_arg
1439127668Sbms  do
1440127668Sbms    case $ac_arg in
1441127668Sbms    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442127668Sbms    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443127668Sbms    | -silent | --silent | --silen | --sile | --sil)
1444127668Sbms      continue ;;
1445172683Smlaier    *\'*)
1446127668Sbms      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447127668Sbms    esac
1448127668Sbms    case $ac_pass in
1449127668Sbms    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450127668Sbms    2)
1451127668Sbms      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452127668Sbms      if test $ac_must_keep_next = true; then
1453172683Smlaier	ac_must_keep_next=false # Got value, back to normal.
1454127668Sbms      else
1455172683Smlaier	case $ac_arg in
1456172683Smlaier	  *=* | --config-cache | -C | -disable-* | --disable-* \
1457172683Smlaier	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458172683Smlaier	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459172683Smlaier	  | -with-* | --with-* | -without-* | --without-* | --x)
1460172683Smlaier	    case "$ac_configure_args0 " in
1461172683Smlaier	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462172683Smlaier	    esac
1463172683Smlaier	    ;;
1464172683Smlaier	  -* ) ac_must_keep_next=true ;;
1465172683Smlaier	esac
1466127668Sbms      fi
1467172683Smlaier      ac_configure_args="$ac_configure_args '$ac_arg'"
1468127668Sbms      ;;
1469127668Sbms    esac
1470127668Sbms  done
1471127668Sbmsdone
1472127668Sbms$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473127668Sbms$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474127668Sbms
1475127668Sbms# When interrupted or exit'd, cleanup temporary files, and complete
1476127668Sbms# config.log.  We remove comments because anyway the quotes in there
1477127668Sbms# would cause problems or look ugly.
1478172683Smlaier# WARNING: Use '\'' to represent an apostrophe within the trap.
1479172683Smlaier# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480127668Sbmstrap 'exit_status=$?
1481127668Sbms  # Save into config.log some information that might help in debugging.
1482127668Sbms  {
1483127668Sbms    echo
1484127668Sbms
1485127668Sbms    cat <<\_ASBOX
1486127668Sbms## ---------------- ##
1487127668Sbms## Cache variables. ##
1488127668Sbms## ---------------- ##
1489127668Sbms_ASBOX
1490127668Sbms    echo
1491127668Sbms    # The following way of writing the cache mishandles newlines in values,
1492172683Smlaier(
1493172683Smlaier  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494172683Smlaier    eval ac_val=\$$ac_var
1495172683Smlaier    case $ac_val in #(
1496172683Smlaier    *${as_nl}*)
1497172683Smlaier      case $ac_var in #(
1498172683Smlaier      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499172683Smlaierecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500172683Smlaier      esac
1501172683Smlaier      case $ac_var in #(
1502172683Smlaier      _ | IFS | as_nl) ;; #(
1503172683Smlaier      *) $as_unset $ac_var ;;
1504172683Smlaier      esac ;;
1505172683Smlaier    esac
1506172683Smlaier  done
1507127668Sbms  (set) 2>&1 |
1508172683Smlaier    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509172683Smlaier    *${as_nl}ac_space=\ *)
1510127668Sbms      sed -n \
1511172683Smlaier	"s/'\''/'\''\\\\'\'''\''/g;
1512172683Smlaier	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513172683Smlaier      ;; #(
1514127668Sbms    *)
1515172683Smlaier      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516127668Sbms      ;;
1517172683Smlaier    esac |
1518172683Smlaier    sort
1519172683Smlaier)
1520127668Sbms    echo
1521127668Sbms
1522127668Sbms    cat <<\_ASBOX
1523127668Sbms## ----------------- ##
1524127668Sbms## Output variables. ##
1525127668Sbms## ----------------- ##
1526127668Sbms_ASBOX
1527127668Sbms    echo
1528127668Sbms    for ac_var in $ac_subst_vars
1529127668Sbms    do
1530172683Smlaier      eval ac_val=\$$ac_var
1531172683Smlaier      case $ac_val in
1532172683Smlaier      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533172683Smlaier      esac
1534172683Smlaier      echo "$ac_var='\''$ac_val'\''"
1535127668Sbms    done | sort
1536127668Sbms    echo
1537127668Sbms
1538127668Sbms    if test -n "$ac_subst_files"; then
1539127668Sbms      cat <<\_ASBOX
1540172683Smlaier## ------------------- ##
1541172683Smlaier## File substitutions. ##
1542172683Smlaier## ------------------- ##
1543127668Sbms_ASBOX
1544127668Sbms      echo
1545127668Sbms      for ac_var in $ac_subst_files
1546127668Sbms      do
1547172683Smlaier	eval ac_val=\$$ac_var
1548172683Smlaier	case $ac_val in
1549172683Smlaier	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550172683Smlaier	esac
1551172683Smlaier	echo "$ac_var='\''$ac_val'\''"
1552127668Sbms      done | sort
1553127668Sbms      echo
1554127668Sbms    fi
1555127668Sbms
1556127668Sbms    if test -s confdefs.h; then
1557127668Sbms      cat <<\_ASBOX
1558127668Sbms## ----------- ##
1559127668Sbms## confdefs.h. ##
1560127668Sbms## ----------- ##
1561127668Sbms_ASBOX
1562127668Sbms      echo
1563172683Smlaier      cat confdefs.h
1564127668Sbms      echo
1565127668Sbms    fi
1566127668Sbms    test "$ac_signal" != 0 &&
1567127668Sbms      echo "$as_me: caught signal $ac_signal"
1568127668Sbms    echo "$as_me: exit $exit_status"
1569127668Sbms  } >&5
1570172683Smlaier  rm -f core *.core core.conftest.* &&
1571172683Smlaier    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572127668Sbms    exit $exit_status
1573172683Smlaier' 0
1574127668Sbmsfor ac_signal in 1 2 13 15; do
1575127668Sbms  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576127668Sbmsdone
1577127668Sbmsac_signal=0
1578127668Sbms
1579127668Sbms# confdefs.h avoids OS command line length limits that DEFS can exceed.
1580172683Smlaierrm -f -r conftest* confdefs.h
1581127668Sbms
1582127668Sbms# Predefined preprocessor variables.
1583127668Sbms
1584127668Sbmscat >>confdefs.h <<_ACEOF
1585127668Sbms#define PACKAGE_NAME "$PACKAGE_NAME"
1586127668Sbms_ACEOF
1587127668Sbms
1588127668Sbms
1589127668Sbmscat >>confdefs.h <<_ACEOF
1590127668Sbms#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591127668Sbms_ACEOF
1592127668Sbms
1593127668Sbms
1594127668Sbmscat >>confdefs.h <<_ACEOF
1595127668Sbms#define PACKAGE_VERSION "$PACKAGE_VERSION"
1596127668Sbms_ACEOF
1597127668Sbms
1598127668Sbms
1599127668Sbmscat >>confdefs.h <<_ACEOF
1600127668Sbms#define PACKAGE_STRING "$PACKAGE_STRING"
1601127668Sbms_ACEOF
1602127668Sbms
1603127668Sbms
1604127668Sbmscat >>confdefs.h <<_ACEOF
1605127668Sbms#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606127668Sbms_ACEOF
1607127668Sbms
1608127668Sbms
1609127668Sbms# Let the site file select an alternate cache file if it wants to.
161017680Spst# Prefer explicitly selected file to automatically selected ones.
1611172683Smlaierif test -n "$CONFIG_SITE"; then
1612172683Smlaier  set x "$CONFIG_SITE"
1613172683Smlaierelif test "x$prefix" != xNONE; then
1614172683Smlaier  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615172683Smlaierelse
1616172683Smlaier  set x "$ac_default_prefix/share/config.site" \
1617172683Smlaier	"$ac_default_prefix/etc/config.site"
161817680Spstfi
1619172683Smlaiershift
1620172683Smlaierfor ac_site_file
1621172683Smlaierdo
162217680Spst  if test -r "$ac_site_file"; then
1623127668Sbms    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624127668Sbmsecho "$as_me: loading site script $ac_site_file" >&6;}
1625127668Sbms    sed 's/^/| /' "$ac_site_file" >&5
162617680Spst    . "$ac_site_file"
162717680Spst  fi
162817680Spstdone
162917680Spst
163017680Spstif test -r "$cache_file"; then
1631127668Sbms  # Some versions of bash will fail to source /dev/null (special
1632127668Sbms  # files actually), so we avoid doing that.
1633127668Sbms  if test -f "$cache_file"; then
1634127668Sbms    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635127668Sbmsecho "$as_me: loading cache $cache_file" >&6;}
1636127668Sbms    case $cache_file in
1637172683Smlaier      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638172683Smlaier      *)                      . "./$cache_file";;
1639127668Sbms    esac
1640127668Sbms  fi
164117680Spstelse
1642127668Sbms  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643127668Sbmsecho "$as_me: creating cache $cache_file" >&6;}
1644127668Sbms  >$cache_file
164517680Spstfi
164617680Spst
1647127668Sbms# Check that the precious variables saved in the cache have kept the same
1648127668Sbms# value.
1649127668Sbmsac_cache_corrupted=false
1650172683Smlaierfor ac_var in $ac_precious_vars; do
1651127668Sbms  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652127668Sbms  eval ac_new_set=\$ac_env_${ac_var}_set
1653172683Smlaier  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654172683Smlaier  eval ac_new_val=\$ac_env_${ac_var}_value
1655127668Sbms  case $ac_old_set,$ac_new_set in
1656127668Sbms    set,)
1657127668Sbms      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658127668Sbmsecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659127668Sbms      ac_cache_corrupted=: ;;
1660127668Sbms    ,set)
1661127668Sbms      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662127668Sbmsecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663127668Sbms      ac_cache_corrupted=: ;;
1664127668Sbms    ,);;
1665127668Sbms    *)
1666127668Sbms      if test "x$ac_old_val" != "x$ac_new_val"; then
1667172683Smlaier	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668127668Sbmsecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669172683Smlaier	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1670127668Sbmsecho "$as_me:   former value:  $ac_old_val" >&2;}
1671172683Smlaier	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1672127668Sbmsecho "$as_me:   current value: $ac_new_val" >&2;}
1673172683Smlaier	ac_cache_corrupted=:
1674127668Sbms      fi;;
1675127668Sbms  esac
1676127668Sbms  # Pass precious variables to config.status.
1677127668Sbms  if test "$ac_new_set" = set; then
1678127668Sbms    case $ac_new_val in
1679172683Smlaier    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680127668Sbms    *) ac_arg=$ac_var=$ac_new_val ;;
1681127668Sbms    esac
1682127668Sbms    case " $ac_configure_args " in
1683127668Sbms      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1684127668Sbms      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685127668Sbms    esac
1686127668Sbms  fi
1687127668Sbmsdone
1688127668Sbmsif $ac_cache_corrupted; then
1689127668Sbms  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690127668Sbmsecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1691127668Sbms  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692127668Sbmsecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693127668Sbms   { (exit 1); exit 1; }; }
1694127668Sbmsfi
1695127668Sbms
169617680Spst
169717680Spst
169817680Spst
169917680Spst
1700127668Sbms
1701127668Sbms
1702127668Sbms
1703127668Sbms
1704127668Sbms
1705127668Sbms
1706127668Sbms
1707127668Sbms
1708127668Sbms
1709127668Sbms
1710127668Sbms
1711127668Sbms
1712172683Smlaierac_ext=c
1713172683Smlaierac_cpp='$CPP $CPPFLAGS'
1714172683Smlaierac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715172683Smlaierac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716172683Smlaierac_compiler_gnu=$ac_cv_c_compiler_gnu
1717127668Sbms
1718127668Sbms
1719127668Sbms
172017680Spstac_aux_dir=
1721172683Smlaierfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722172683Smlaier  if test -f "$ac_dir/install-sh"; then
172317680Spst    ac_aux_dir=$ac_dir
172417680Spst    ac_install_sh="$ac_aux_dir/install-sh -c"
172517680Spst    break
1726172683Smlaier  elif test -f "$ac_dir/install.sh"; then
172717680Spst    ac_aux_dir=$ac_dir
172817680Spst    ac_install_sh="$ac_aux_dir/install.sh -c"
172917680Spst    break
1730172683Smlaier  elif test -f "$ac_dir/shtool"; then
1731127668Sbms    ac_aux_dir=$ac_dir
1732127668Sbms    ac_install_sh="$ac_aux_dir/shtool install -c"
1733127668Sbms    break
173417680Spst  fi
173517680Spstdone
173617680Spstif test -z "$ac_aux_dir"; then
1737172683Smlaier  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738172683Smlaierecho "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739127668Sbms   { (exit 1); exit 1; }; }
174017680Spstfi
174117680Spst
1742172683Smlaier# These three variables are undocumented and unsupported,
1743172683Smlaier# and are intended to be withdrawn in a future Autoconf release.
1744172683Smlaier# They can cause serious problems if a builder's source tree is in a directory
1745172683Smlaier# whose full name contains unusual characters.
1746172683Smlaierac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1747172683Smlaierac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1748172683Smlaierac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1749172683Smlaier
1750172683Smlaier
1751127668Sbms# Make sure we can run config.sub.
1752172683Smlaier$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1753172683Smlaier  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754172683Smlaierecho "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755127668Sbms   { (exit 1); exit 1; }; }
175617680Spst
1757172683Smlaier{ echo "$as_me:$LINENO: checking build system type" >&5
1758172683Smlaierecho $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759127668Sbmsif test "${ac_cv_build+set}" = set; then
1760127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1761127668Sbmselse
1762172683Smlaier  ac_build_alias=$build_alias
1763172683Smlaiertest "x$ac_build_alias" = x &&
1764172683Smlaier  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1765172683Smlaiertest "x$ac_build_alias" = x &&
1766127668Sbms  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767127668Sbmsecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768127668Sbms   { (exit 1); exit 1; }; }
1769172683Smlaierac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770172683Smlaier  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771172683Smlaierecho "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772127668Sbms   { (exit 1); exit 1; }; }
1773127668Sbms
177417680Spstfi
1775172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776172683Smlaierecho "${ECHO_T}$ac_cv_build" >&6; }
1777172683Smlaiercase $ac_cv_build in
1778172683Smlaier*-*-*) ;;
1779172683Smlaier*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780172683Smlaierecho "$as_me: error: invalid value of canonical build" >&2;}
1781172683Smlaier   { (exit 1); exit 1; }; };;
1782172683Smlaieresac
1783127668Sbmsbuild=$ac_cv_build
1784172683Smlaierac_save_IFS=$IFS; IFS='-'
1785172683Smlaierset x $ac_cv_build
1786172683Smlaiershift
1787172683Smlaierbuild_cpu=$1
1788172683Smlaierbuild_vendor=$2
1789172683Smlaiershift; shift
1790172683Smlaier# Remember, the first character of IFS is used to create $*,
1791172683Smlaier# except with old shells:
1792172683Smlaierbuild_os=$*
1793172683SmlaierIFS=$ac_save_IFS
1794172683Smlaiercase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
179517680Spst
179617680Spst
1797172683Smlaier{ echo "$as_me:$LINENO: checking host system type" >&5
1798172683Smlaierecho $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799127668Sbmsif test "${ac_cv_host+set}" = set; then
1800127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1801127668Sbmselse
1802172683Smlaier  if test "x$host_alias" = x; then
1803172683Smlaier  ac_cv_host=$ac_cv_build
1804172683Smlaierelse
1805172683Smlaier  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806172683Smlaier    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807172683Smlaierecho "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808127668Sbms   { (exit 1); exit 1; }; }
1809172683Smlaierfi
181017680Spst
1811127668Sbmsfi
1812172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813172683Smlaierecho "${ECHO_T}$ac_cv_host" >&6; }
1814172683Smlaiercase $ac_cv_host in
1815172683Smlaier*-*-*) ;;
1816172683Smlaier*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817172683Smlaierecho "$as_me: error: invalid value of canonical host" >&2;}
1818172683Smlaier   { (exit 1); exit 1; }; };;
1819172683Smlaieresac
1820127668Sbmshost=$ac_cv_host
1821172683Smlaierac_save_IFS=$IFS; IFS='-'
1822172683Smlaierset x $ac_cv_host
1823172683Smlaiershift
1824172683Smlaierhost_cpu=$1
1825172683Smlaierhost_vendor=$2
1826172683Smlaiershift; shift
1827172683Smlaier# Remember, the first character of IFS is used to create $*,
1828172683Smlaier# except with old shells:
1829172683Smlaierhost_os=$*
1830172683SmlaierIFS=$ac_save_IFS
1831172683Smlaiercase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
183217680Spst
183317680Spst
183417680Spst
1835127668Sbms
1836127668Sbms
1837127668Sbms
1838127668Sbms
1839127668Sbms
1840214478Srpaulo
1841172683Smlaier# Check whether --with-gcc was given.
184239297Sfennerif test "${with_gcc+set}" = set; then
1843172683Smlaier  withval=$with_gcc;
1844172683Smlaierfi
184539297Sfenner
184639297Sfenner    V_CCOPT="-O"
184717680Spst    V_INCLS=""
184839297Sfenner    if test "${srcdir}" != "." ; then
1849236192Sdelphij	    V_INCLS="-I$srcdir"
185039297Sfenner    fi
185126180Sfenner    if test "${CFLAGS+set}" = set; then
185226180Sfenner	    LBL_CFLAGS="$CFLAGS"
185326180Sfenner    fi
185417680Spst    if test -z "$CC" ; then
185598524Sfenner	    case "$host_os" in
185617680Spst
185717680Spst	    bsdi*)
185817680Spst		    # Extract the first word of "shlicc2", so it can be a program name with args.
185917680Spstset dummy shlicc2; ac_word=$2
1860172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1861172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862127668Sbmsif test "${ac_cv_prog_SHLICC2+set}" = set; then
1863127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
186417680Spstelse
186517680Spst  if test -n "$SHLICC2"; then
186617680Spst  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
186717680Spstelse
1868127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869127668Sbmsfor as_dir in $PATH
1870127668Sbmsdo
1871127668Sbms  IFS=$as_save_IFS
1872127668Sbms  test -z "$as_dir" && as_dir=.
1873127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1874172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875127668Sbms    ac_cv_prog_SHLICC2="yes"
1876127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877127668Sbms    break 2
1878127668Sbms  fi
1879127668Sbmsdone
1880127668Sbmsdone
1881172683SmlaierIFS=$as_save_IFS
1882127668Sbms
188317680Spst  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
188417680Spstfi
188517680Spstfi
1886127668SbmsSHLICC2=$ac_cv_prog_SHLICC2
188717680Spstif test -n "$SHLICC2"; then
1888172683Smlaier  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889172683Smlaierecho "${ECHO_T}$SHLICC2" >&6; }
189017680Spstelse
1891172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
1892172683Smlaierecho "${ECHO_T}no" >&6; }
189317680Spstfi
189417680Spst
1895172683Smlaier
189617680Spst		    if test $SHLICC2 = yes ; then
189717680Spst			    CC=shlicc2
189817680Spst			    export CC
189917680Spst		    fi
190017680Spst		    ;;
190117680Spst	    esac
190217680Spst    fi
190339297Sfenner    if test -z "$CC" -a "$with_gcc" = no ; then
190439297Sfenner	    CC=cc
190539297Sfenner	    export CC
190639297Sfenner    fi
1907214478Srpaulo
1908214478Srpauloac_ext=c
1909127668Sbmsac_cpp='$CPP $CPPFLAGS'
1910127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
1913127668Sbmsif test -n "$ac_tool_prefix"; then
1914127668Sbms  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915127668Sbmsset dummy ${ac_tool_prefix}gcc; ac_word=$2
1916172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1917172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
1919127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1920127668Sbmselse
1921127668Sbms  if test -n "$CC"; then
1922127668Sbms  ac_cv_prog_CC="$CC" # Let the user override the test.
1923127668Sbmselse
1924127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925127668Sbmsfor as_dir in $PATH
1926127668Sbmsdo
1927127668Sbms  IFS=$as_save_IFS
1928127668Sbms  test -z "$as_dir" && as_dir=.
1929127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1930172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931127668Sbms    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933127668Sbms    break 2
1934127668Sbms  fi
1935127668Sbmsdone
1936127668Sbmsdone
1937172683SmlaierIFS=$as_save_IFS
1938127668Sbms
1939127668Sbmsfi
1940127668Sbmsfi
1941127668SbmsCC=$ac_cv_prog_CC
1942127668Sbmsif test -n "$CC"; then
1943172683Smlaier  { echo "$as_me:$LINENO: result: $CC" >&5
1944172683Smlaierecho "${ECHO_T}$CC" >&6; }
1945127668Sbmselse
1946172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
1947172683Smlaierecho "${ECHO_T}no" >&6; }
1948127668Sbmsfi
1949127668Sbms
1950172683Smlaier
1951127668Sbmsfi
1952127668Sbmsif test -z "$ac_cv_prog_CC"; then
1953127668Sbms  ac_ct_CC=$CC
1954127668Sbms  # Extract the first word of "gcc", so it can be a program name with args.
195517680Spstset dummy gcc; ac_word=$2
1956172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1957172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
196017680Spstelse
1961127668Sbms  if test -n "$ac_ct_CC"; then
1962127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963127668Sbmselse
1964127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965127668Sbmsfor as_dir in $PATH
1966127668Sbmsdo
1967127668Sbms  IFS=$as_save_IFS
1968127668Sbms  test -z "$as_dir" && as_dir=.
1969127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
1970172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971127668Sbms    ac_cv_prog_ac_ct_CC="gcc"
1972127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973127668Sbms    break 2
1974127668Sbms  fi
1975127668Sbmsdone
1976127668Sbmsdone
1977172683SmlaierIFS=$as_save_IFS
1978127668Sbms
1979127668Sbmsfi
1980127668Sbmsfi
1981127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
1982127668Sbmsif test -n "$ac_ct_CC"; then
1983172683Smlaier  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984172683Smlaierecho "${ECHO_T}$ac_ct_CC" >&6; }
1985127668Sbmselse
1986172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
1987172683Smlaierecho "${ECHO_T}no" >&6; }
1988127668Sbmsfi
1989127668Sbms
1990172683Smlaier  if test "x$ac_ct_CC" = x; then
1991172683Smlaier    CC=""
1992172683Smlaier  else
1993172683Smlaier    case $cross_compiling:$ac_tool_warned in
1994172683Smlaieryes:)
1995172683Smlaier{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996172683Smlaierwhose name does not start with the host triplet.  If you think this
1997172683Smlaierconfiguration is useful to you, please write to autoconf@gnu.org." >&5
1998172683Smlaierecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999172683Smlaierwhose name does not start with the host triplet.  If you think this
2000172683Smlaierconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
2001172683Smlaierac_tool_warned=yes ;;
2002172683Smlaieresac
2003172683Smlaier    CC=$ac_ct_CC
2004172683Smlaier  fi
2005127668Sbmselse
2006127668Sbms  CC="$ac_cv_prog_CC"
2007127668Sbmsfi
2008127668Sbms
2009127668Sbmsif test -z "$CC"; then
2010172683Smlaier          if test -n "$ac_tool_prefix"; then
2011172683Smlaier    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012127668Sbmsset dummy ${ac_tool_prefix}cc; ac_word=$2
2013172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2014172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
2016127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2017127668Sbmselse
201817680Spst  if test -n "$CC"; then
201917680Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
202017680Spstelse
2021127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022127668Sbmsfor as_dir in $PATH
2023127668Sbmsdo
2024127668Sbms  IFS=$as_save_IFS
2025127668Sbms  test -z "$as_dir" && as_dir=.
2026127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
2027172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028127668Sbms    ac_cv_prog_CC="${ac_tool_prefix}cc"
2029127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030127668Sbms    break 2
2031127668Sbms  fi
2032127668Sbmsdone
2033127668Sbmsdone
2034172683SmlaierIFS=$as_save_IFS
2035127668Sbms
203617680Spstfi
203717680Spstfi
2038127668SbmsCC=$ac_cv_prog_CC
203917680Spstif test -n "$CC"; then
2040172683Smlaier  { echo "$as_me:$LINENO: result: $CC" >&5
2041172683Smlaierecho "${ECHO_T}$CC" >&6; }
204217680Spstelse
2043172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
2044172683Smlaierecho "${ECHO_T}no" >&6; }
204517680Spstfi
204617680Spst
2047172683Smlaier
2048127668Sbms  fi
2049127668Sbmsfi
205017680Spstif test -z "$CC"; then
205117680Spst  # Extract the first word of "cc", so it can be a program name with args.
205217680Spstset dummy cc; ac_word=$2
2053172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2054172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
2056127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
205717680Spstelse
205817680Spst  if test -n "$CC"; then
205917680Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
206017680Spstelse
206117680Spst  ac_prog_rejected=no
2062127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063127668Sbmsfor as_dir in $PATH
2064127668Sbmsdo
2065127668Sbms  IFS=$as_save_IFS
2066127668Sbms  test -z "$as_dir" && as_dir=.
2067127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
2068172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069127668Sbms    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070127668Sbms       ac_prog_rejected=yes
2071127668Sbms       continue
2072127668Sbms     fi
2073127668Sbms    ac_cv_prog_CC="cc"
2074127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075127668Sbms    break 2
2076127668Sbms  fi
2077127668Sbmsdone
2078127668Sbmsdone
2079172683SmlaierIFS=$as_save_IFS
2080127668Sbms
208117680Spstif test $ac_prog_rejected = yes; then
208217680Spst  # We found a bogon in the path, so make sure we never use it.
208317680Spst  set dummy $ac_cv_prog_CC
208417680Spst  shift
2085127668Sbms  if test $# != 0; then
208617680Spst    # We chose a different compiler from the bogus one.
208717680Spst    # However, it has the same basename, so the bogon will be chosen
208817680Spst    # first if we set CC to just the basename; use the full file name.
208917680Spst    shift
2090127668Sbms    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
209117680Spst  fi
209217680Spstfi
209317680Spstfi
209417680Spstfi
2095127668SbmsCC=$ac_cv_prog_CC
209617680Spstif test -n "$CC"; then
2097172683Smlaier  { echo "$as_me:$LINENO: result: $CC" >&5
2098172683Smlaierecho "${ECHO_T}$CC" >&6; }
209917680Spstelse
2100172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
2101172683Smlaierecho "${ECHO_T}no" >&6; }
210217680Spstfi
210317680Spst
2104172683Smlaier
2105127668Sbmsfi
2106127668Sbmsif test -z "$CC"; then
2107127668Sbms  if test -n "$ac_tool_prefix"; then
2108172683Smlaier  for ac_prog in cl.exe
2109127668Sbms  do
2110127668Sbms    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111127668Sbmsset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2113172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114127668Sbmsif test "${ac_cv_prog_CC+set}" = set; then
2115127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
211656893Sfennerelse
211756893Sfenner  if test -n "$CC"; then
211856893Sfenner  ac_cv_prog_CC="$CC" # Let the user override the test.
211956893Sfennerelse
2120127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121127668Sbmsfor as_dir in $PATH
2122127668Sbmsdo
2123127668Sbms  IFS=$as_save_IFS
2124127668Sbms  test -z "$as_dir" && as_dir=.
2125127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
2126172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127127668Sbms    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129127668Sbms    break 2
2130127668Sbms  fi
2131127668Sbmsdone
2132127668Sbmsdone
2133172683SmlaierIFS=$as_save_IFS
2134127668Sbms
213556893Sfennerfi
213656893Sfennerfi
2137127668SbmsCC=$ac_cv_prog_CC
213856893Sfennerif test -n "$CC"; then
2139172683Smlaier  { echo "$as_me:$LINENO: result: $CC" >&5
2140172683Smlaierecho "${ECHO_T}$CC" >&6; }
214156893Sfennerelse
2142172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
2143172683Smlaierecho "${ECHO_T}no" >&6; }
214456893Sfennerfi
2145127668Sbms
2146172683Smlaier
2147127668Sbms    test -n "$CC" && break
2148127668Sbms  done
2149127668Sbmsfi
2150127668Sbmsif test -z "$CC"; then
2151127668Sbms  ac_ct_CC=$CC
2152172683Smlaier  for ac_prog in cl.exe
2153127668Sbmsdo
2154127668Sbms  # Extract the first word of "$ac_prog", so it can be a program name with args.
2155127668Sbmsset dummy $ac_prog; ac_word=$2
2156172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2157172683Smlaierecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158127668Sbmsif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2160127668Sbmselse
2161127668Sbms  if test -n "$ac_ct_CC"; then
2162127668Sbms  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163127668Sbmselse
2164127668Sbmsas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165127668Sbmsfor as_dir in $PATH
2166127668Sbmsdo
2167127668Sbms  IFS=$as_save_IFS
2168127668Sbms  test -z "$as_dir" && as_dir=.
2169127668Sbms  for ac_exec_ext in '' $ac_executable_extensions; do
2170172683Smlaier  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171127668Sbms    ac_cv_prog_ac_ct_CC="$ac_prog"
2172127668Sbms    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173127668Sbms    break 2
217456893Sfenner  fi
2175127668Sbmsdone
2176127668Sbmsdone
2177172683SmlaierIFS=$as_save_IFS
2178127668Sbms
217917680Spstfi
2180127668Sbmsfi
2181127668Sbmsac_ct_CC=$ac_cv_prog_ac_ct_CC
2182127668Sbmsif test -n "$ac_ct_CC"; then
2183172683Smlaier  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184172683Smlaierecho "${ECHO_T}$ac_ct_CC" >&6; }
2185127668Sbmselse
2186172683Smlaier  { echo "$as_me:$LINENO: result: no" >&5
2187172683Smlaierecho "${ECHO_T}no" >&6; }
2188127668Sbmsfi
218917680Spst
2190172683Smlaier
2191127668Sbms  test -n "$ac_ct_CC" && break
2192127668Sbmsdone
219326180Sfenner
2194172683Smlaier  if test "x$ac_ct_CC" = x; then
2195172683Smlaier    CC=""
2196172683Smlaier  else
2197172683Smlaier    case $cross_compiling:$ac_tool_warned in
2198172683Smlaieryes:)
2199172683Smlaier{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200172683Smlaierwhose name does not start with the host triplet.  If you think this
2201172683Smlaierconfiguration is useful to you, please write to autoconf@gnu.org." >&5
2202172683Smlaierecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203172683Smlaierwhose name does not start with the host triplet.  If you think this
2204172683Smlaierconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
2205172683Smlaierac_tool_warned=yes ;;
2206172683Smlaieresac
2207172683Smlaier    CC=$ac_ct_CC
2208172683Smlaier  fi
2209127668Sbmsfi
221026180Sfenner
2211127668Sbmsfi
221256893Sfenner
221356893Sfenner
2214127668Sbmstest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215127668SbmsSee \`config.log' for more details." >&5
2216127668Sbmsecho "$as_me: error: no acceptable C compiler found in \$PATH
2217127668SbmsSee \`config.log' for more details." >&2;}
2218127668Sbms   { (exit 1); exit 1; }; }
2219127668Sbms
2220127668Sbms# Provide some information about the compiler.
2221172683Smlaierecho "$as_me:$LINENO: checking for C compiler version" >&5
2222127668Sbmsac_compiler=`set X $ac_compile; echo $2`
2223172683Smlaier{ (ac_try="$ac_compiler --version >&5"
2224172683Smlaiercase "(($ac_try" in
2225172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226172683Smlaier  *) ac_try_echo=$ac_try;;
2227172683Smlaieresac
2228172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229172683Smlaier  (eval "$ac_compiler --version >&5") 2>&5
2230127668Sbms  ac_status=$?
2231127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232127668Sbms  (exit $ac_status); }
2233172683Smlaier{ (ac_try="$ac_compiler -v >&5"
2234172683Smlaiercase "(($ac_try" in
2235172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236172683Smlaier  *) ac_try_echo=$ac_try;;
2237172683Smlaieresac
2238172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239172683Smlaier  (eval "$ac_compiler -v >&5") 2>&5
2240127668Sbms  ac_status=$?
2241127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242127668Sbms  (exit $ac_status); }
2243172683Smlaier{ (ac_try="$ac_compiler -V >&5"
2244172683Smlaiercase "(($ac_try" in
2245172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246172683Smlaier  *) ac_try_echo=$ac_try;;
2247172683Smlaieresac
2248172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249172683Smlaier  (eval "$ac_compiler -V >&5") 2>&5
2250127668Sbms  ac_status=$?
2251127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252127668Sbms  (exit $ac_status); }
2253127668Sbms
2254127668Sbmscat >conftest.$ac_ext <<_ACEOF
2255127668Sbms/* confdefs.h.  */
2256127668Sbms_ACEOF
2257127668Sbmscat confdefs.h >>conftest.$ac_ext
2258127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2259127668Sbms/* end confdefs.h.  */
2260127668Sbms
2261127668Sbmsint
2262127668Sbmsmain ()
2263127668Sbms{
2264127668Sbms
2265127668Sbms  ;
2266127668Sbms  return 0;
2267127668Sbms}
2268127668Sbms_ACEOF
2269127668Sbmsac_clean_files_save=$ac_clean_files
2270127668Sbmsac_clean_files="$ac_clean_files a.out a.exe b.out"
2271127668Sbms# Try to create an executable without -o first, disregard a.out.
2272127668Sbms# It will help us diagnose broken compilers, and finding out an intuition
2273127668Sbms# of exeext.
2274172683Smlaier{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275172683Smlaierecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276127668Sbmsac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277172683Smlaier#
2278172683Smlaier# List of possible output files, starting from the most likely.
2279172683Smlaier# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2280172683Smlaier# only as a last resort.  b.out is created by i960 compilers.
2281172683Smlaierac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282172683Smlaier#
2283172683Smlaier# The IRIX 6 linker writes into existing files which may not be
2284172683Smlaier# executable, retaining their permissions.  Remove them first so a
2285172683Smlaier# subsequent execution test works.
2286172683Smlaierac_rmfiles=
2287172683Smlaierfor ac_file in $ac_files
2288172683Smlaierdo
2289172683Smlaier  case $ac_file in
2290172683Smlaier    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291172683Smlaier    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292172683Smlaier  esac
2293172683Smlaierdone
2294172683Smlaierrm -f $ac_rmfiles
2295172683Smlaier
2296172683Smlaierif { (ac_try="$ac_link_default"
2297172683Smlaiercase "(($ac_try" in
2298172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299172683Smlaier  *) ac_try_echo=$ac_try;;
2300172683Smlaieresac
2301172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302172683Smlaier  (eval "$ac_link_default") 2>&5
2303127668Sbms  ac_status=$?
2304127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305127668Sbms  (exit $ac_status); }; then
2306172683Smlaier  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307172683Smlaier# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308172683Smlaier# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2309172683Smlaier# so that the user can short-circuit this test for compilers unknown to
2310172683Smlaier# Autoconf.
2311172683Smlaierfor ac_file in $ac_files ''
2312127668Sbmsdo
2313127668Sbms  test -f "$ac_file" || continue
2314127668Sbms  case $ac_file in
2315172683Smlaier    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316172683Smlaier	;;
2317127668Sbms    [ab].out )
2318172683Smlaier	# We found the default executable, but exeext='' is most
2319172683Smlaier	# certainly right.
2320172683Smlaier	break;;
2321127668Sbms    *.* )
2322172683Smlaier        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323172683Smlaier	then :; else
2324172683Smlaier	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325172683Smlaier	fi
2326172683Smlaier	# We set ac_cv_exeext here because the later test for it is not
2327172683Smlaier	# safe: cross compilers may not add the suffix if given an `-o'
2328172683Smlaier	# argument, so we may need to know it at that point already.
2329172683Smlaier	# Even if this section looks crufty: it has the advantage of
2330172683Smlaier	# actually working.
2331172683Smlaier	break;;
2332127668Sbms    * )
2333172683Smlaier	break;;
2334127668Sbms  esac
2335127668Sbmsdone
2336172683Smlaiertest "$ac_cv_exeext" = no && ac_cv_exeext=
2337172683Smlaier
2338127668Sbmselse
2339172683Smlaier  ac_file=''
2340172683Smlaierfi
2341172683Smlaier
2342172683Smlaier{ echo "$as_me:$LINENO: result: $ac_file" >&5
2343172683Smlaierecho "${ECHO_T}$ac_file" >&6; }
2344172683Smlaierif test -z "$ac_file"; then
2345127668Sbms  echo "$as_me: failed program was:" >&5
2346127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2347127668Sbms
2348127668Sbms{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349127668SbmsSee \`config.log' for more details." >&5
2350127668Sbmsecho "$as_me: error: C compiler cannot create executables
2351127668SbmsSee \`config.log' for more details." >&2;}
2352127668Sbms   { (exit 77); exit 77; }; }
2353127668Sbmsfi
2354127668Sbms
2355127668Sbmsac_exeext=$ac_cv_exeext
2356127668Sbms
2357172683Smlaier# Check that the compiler produces executables we can run.  If not, either
2358127668Sbms# the compiler is broken, or we cross compile.
2359172683Smlaier{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360172683Smlaierecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361127668Sbms# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362127668Sbms# If not cross compiling, check that we can run a simple program.
2363127668Sbmsif test "$cross_compiling" != yes; then
2364127668Sbms  if { ac_try='./$ac_file'
2365172683Smlaier  { (case "(($ac_try" in
2366172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367172683Smlaier  *) ac_try_echo=$ac_try;;
2368172683Smlaieresac
2369172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370172683Smlaier  (eval "$ac_try") 2>&5
2371127668Sbms  ac_status=$?
2372127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373127668Sbms  (exit $ac_status); }; }; then
2374127668Sbms    cross_compiling=no
237526180Sfenner  else
2376127668Sbms    if test "$cross_compiling" = maybe; then
2377127668Sbms	cross_compiling=yes
2378127668Sbms    else
2379127668Sbms	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380127668SbmsIf you meant to cross compile, use \`--host'.
2381127668SbmsSee \`config.log' for more details." >&5
2382127668Sbmsecho "$as_me: error: cannot run C compiled programs.
2383127668SbmsIf you meant to cross compile, use \`--host'.
2384127668SbmsSee \`config.log' for more details." >&2;}
2385127668Sbms   { (exit 1); exit 1; }; }
2386127668Sbms    fi
238726180Sfenner  fi
238826180Sfennerfi
2389172683Smlaier{ echo "$as_me:$LINENO: result: yes" >&5
2390172683Smlaierecho "${ECHO_T}yes" >&6; }
239126180Sfenner
2392127668Sbmsrm -f a.out a.exe conftest$ac_cv_exeext b.out
2393127668Sbmsac_clean_files=$ac_clean_files_save
2394172683Smlaier# Check that the compiler produces executables we can run.  If not, either
2395127668Sbms# the compiler is broken, or we cross compile.
2396172683Smlaier{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397172683Smlaierecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398172683Smlaier{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399172683Smlaierecho "${ECHO_T}$cross_compiling" >&6; }
2400127668Sbms
2401172683Smlaier{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402172683Smlaierecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403172683Smlaierif { (ac_try="$ac_link"
2404172683Smlaiercase "(($ac_try" in
2405172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406172683Smlaier  *) ac_try_echo=$ac_try;;
2407172683Smlaieresac
2408172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409172683Smlaier  (eval "$ac_link") 2>&5
2410127668Sbms  ac_status=$?
2411127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412127668Sbms  (exit $ac_status); }; then
2413127668Sbms  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2414127668Sbms# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2415127668Sbms# work properly (i.e., refer to `conftest.exe'), while it won't with
2416127668Sbms# `rm'.
2417127668Sbmsfor ac_file in conftest.exe conftest conftest.*; do
2418127668Sbms  test -f "$ac_file" || continue
2419127668Sbms  case $ac_file in
2420172683Smlaier    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421127668Sbms    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422172683Smlaier	  break;;
2423127668Sbms    * ) break;;
2424127668Sbms  esac
2425127668Sbmsdone
2426127668Sbmselse
2427127668Sbms  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428127668SbmsSee \`config.log' for more details." >&5
2429127668Sbmsecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430127668SbmsSee \`config.log' for more details." >&2;}
2431127668Sbms   { (exit 1); exit 1; }; }
243226180Sfennerfi
243326180Sfenner
2434127668Sbmsrm -f conftest$ac_cv_exeext
2435172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436172683Smlaierecho "${ECHO_T}$ac_cv_exeext" >&6; }
2437127668Sbms
2438127668Sbmsrm -f conftest.$ac_ext
2439127668SbmsEXEEXT=$ac_cv_exeext
2440127668Sbmsac_exeext=$EXEEXT
2441172683Smlaier{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442172683Smlaierecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443127668Sbmsif test "${ac_cv_objext+set}" = set; then
2444127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
244517680Spstelse
2446127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2447127668Sbms/* confdefs.h.  */
2448127668Sbms_ACEOF
2449127668Sbmscat confdefs.h >>conftest.$ac_ext
2450127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2451127668Sbms/* end confdefs.h.  */
2452127668Sbms
2453127668Sbmsint
2454127668Sbmsmain ()
2455127668Sbms{
2456127668Sbms
2457127668Sbms  ;
2458127668Sbms  return 0;
2459127668Sbms}
2460127668Sbms_ACEOF
2461127668Sbmsrm -f conftest.o conftest.obj
2462172683Smlaierif { (ac_try="$ac_compile"
2463172683Smlaiercase "(($ac_try" in
2464172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465172683Smlaier  *) ac_try_echo=$ac_try;;
2466172683Smlaieresac
2467172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468172683Smlaier  (eval "$ac_compile") 2>&5
2469127668Sbms  ac_status=$?
2470127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471127668Sbms  (exit $ac_status); }; then
2472172683Smlaier  for ac_file in conftest.o conftest.obj conftest.*; do
2473172683Smlaier  test -f "$ac_file" || continue;
2474127668Sbms  case $ac_file in
2475172683Smlaier    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476127668Sbms    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477127668Sbms       break;;
2478127668Sbms  esac
2479127668Sbmsdone
248017680Spstelse
2481127668Sbms  echo "$as_me: failed program was:" >&5
2482127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2483127668Sbms
2484127668Sbms{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485127668SbmsSee \`config.log' for more details." >&5
2486127668Sbmsecho "$as_me: error: cannot compute suffix of object files: cannot compile
2487127668SbmsSee \`config.log' for more details." >&2;}
2488127668Sbms   { (exit 1); exit 1; }; }
248917680Spstfi
2490127668Sbms
2491127668Sbmsrm -f conftest.$ac_cv_objext conftest.$ac_ext
249217680Spstfi
2493172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494172683Smlaierecho "${ECHO_T}$ac_cv_objext" >&6; }
2495127668SbmsOBJEXT=$ac_cv_objext
2496127668Sbmsac_objext=$OBJEXT
2497172683Smlaier{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498172683Smlaierecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2499127668Sbmsif test "${ac_cv_c_compiler_gnu+set}" = set; then
2500127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2501127668Sbmselse
2502127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2503127668Sbms/* confdefs.h.  */
2504127668Sbms_ACEOF
2505127668Sbmscat confdefs.h >>conftest.$ac_ext
2506127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2507127668Sbms/* end confdefs.h.  */
250817680Spst
2509127668Sbmsint
2510127668Sbmsmain ()
2511127668Sbms{
2512127668Sbms#ifndef __GNUC__
2513127668Sbms       choke me
2514127668Sbms#endif
251526180Sfenner
2516127668Sbms  ;
2517127668Sbms  return 0;
2518127668Sbms}
2519127668Sbms_ACEOF
2520127668Sbmsrm -f conftest.$ac_objext
2521172683Smlaierif { (ac_try="$ac_compile"
2522172683Smlaiercase "(($ac_try" in
2523172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524172683Smlaier  *) ac_try_echo=$ac_try;;
2525172683Smlaieresac
2526172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2528127668Sbms  ac_status=$?
2529172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2530172683Smlaier  rm -f conftest.er1
2531172683Smlaier  cat conftest.err >&5
2532127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533172683Smlaier  (exit $ac_status); } && {
2534172683Smlaier	 test -z "$ac_c_werror_flag" ||
2535172683Smlaier	 test ! -s conftest.err
2536172683Smlaier       } && test -s conftest.$ac_objext; then
2537127668Sbms  ac_compiler_gnu=yes
253856893Sfennerelse
2539127668Sbms  echo "$as_me: failed program was:" >&5
2540127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2541127668Sbms
2542172683Smlaier	ac_compiler_gnu=no
254356893Sfennerfi
2544172683Smlaier
2545172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546127668Sbmsac_cv_c_compiler_gnu=$ac_compiler_gnu
254756893Sfenner
2548127668Sbmsfi
2549172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550172683Smlaierecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551127668SbmsGCC=`test $ac_compiler_gnu = yes && echo yes`
2552127668Sbmsac_test_CFLAGS=${CFLAGS+set}
2553127668Sbmsac_save_CFLAGS=$CFLAGS
2554172683Smlaier{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555172683Smlaierecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556127668Sbmsif test "${ac_cv_prog_cc_g+set}" = set; then
2557127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
255817680Spstelse
2559172683Smlaier  ac_save_c_werror_flag=$ac_c_werror_flag
2560172683Smlaier   ac_c_werror_flag=yes
2561172683Smlaier   ac_cv_prog_cc_g=no
2562172683Smlaier   CFLAGS="-g"
2563172683Smlaier   cat >conftest.$ac_ext <<_ACEOF
2564127668Sbms/* confdefs.h.  */
2565127668Sbms_ACEOF
2566127668Sbmscat confdefs.h >>conftest.$ac_ext
2567127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2568127668Sbms/* end confdefs.h.  */
2569127668Sbms
2570127668Sbmsint
2571127668Sbmsmain ()
2572127668Sbms{
2573127668Sbms
2574127668Sbms  ;
2575127668Sbms  return 0;
2576127668Sbms}
2577127668Sbms_ACEOF
2578127668Sbmsrm -f conftest.$ac_objext
2579172683Smlaierif { (ac_try="$ac_compile"
2580172683Smlaiercase "(($ac_try" in
2581172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582172683Smlaier  *) ac_try_echo=$ac_try;;
2583172683Smlaieresac
2584172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2586127668Sbms  ac_status=$?
2587172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2588172683Smlaier  rm -f conftest.er1
2589172683Smlaier  cat conftest.err >&5
2590127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591172683Smlaier  (exit $ac_status); } && {
2592172683Smlaier	 test -z "$ac_c_werror_flag" ||
2593172683Smlaier	 test ! -s conftest.err
2594172683Smlaier       } && test -s conftest.$ac_objext; then
2595172683Smlaier  ac_cv_prog_cc_g=yes
2596172683Smlaierelse
2597172683Smlaier  echo "$as_me: failed program was:" >&5
2598172683Smlaiersed 's/^/| /' conftest.$ac_ext >&5
2599172683Smlaier
2600172683Smlaier	CFLAGS=""
2601172683Smlaier      cat >conftest.$ac_ext <<_ACEOF
2602172683Smlaier/* confdefs.h.  */
2603172683Smlaier_ACEOF
2604172683Smlaiercat confdefs.h >>conftest.$ac_ext
2605172683Smlaiercat >>conftest.$ac_ext <<_ACEOF
2606172683Smlaier/* end confdefs.h.  */
2607172683Smlaier
2608172683Smlaierint
2609172683Smlaiermain ()
2610172683Smlaier{
2611172683Smlaier
2612172683Smlaier  ;
2613172683Smlaier  return 0;
2614172683Smlaier}
2615172683Smlaier_ACEOF
2616172683Smlaierrm -f conftest.$ac_objext
2617172683Smlaierif { (ac_try="$ac_compile"
2618172683Smlaiercase "(($ac_try" in
2619172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620172683Smlaier  *) ac_try_echo=$ac_try;;
2621172683Smlaieresac
2622172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2624127668Sbms  ac_status=$?
2625172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2626172683Smlaier  rm -f conftest.er1
2627172683Smlaier  cat conftest.err >&5
2628127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629172683Smlaier  (exit $ac_status); } && {
2630172683Smlaier	 test -z "$ac_c_werror_flag" ||
2631172683Smlaier	 test ! -s conftest.err
2632172683Smlaier       } && test -s conftest.$ac_objext; then
2633172683Smlaier  :
2634172683Smlaierelse
2635172683Smlaier  echo "$as_me: failed program was:" >&5
2636172683Smlaiersed 's/^/| /' conftest.$ac_ext >&5
2637172683Smlaier
2638172683Smlaier	ac_c_werror_flag=$ac_save_c_werror_flag
2639172683Smlaier	 CFLAGS="-g"
2640172683Smlaier	 cat >conftest.$ac_ext <<_ACEOF
2641172683Smlaier/* confdefs.h.  */
2642172683Smlaier_ACEOF
2643172683Smlaiercat confdefs.h >>conftest.$ac_ext
2644172683Smlaiercat >>conftest.$ac_ext <<_ACEOF
2645172683Smlaier/* end confdefs.h.  */
2646172683Smlaier
2647172683Smlaierint
2648172683Smlaiermain ()
2649172683Smlaier{
2650172683Smlaier
2651172683Smlaier  ;
2652172683Smlaier  return 0;
2653172683Smlaier}
2654172683Smlaier_ACEOF
2655172683Smlaierrm -f conftest.$ac_objext
2656172683Smlaierif { (ac_try="$ac_compile"
2657172683Smlaiercase "(($ac_try" in
2658172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659172683Smlaier  *) ac_try_echo=$ac_try;;
2660172683Smlaieresac
2661172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2663172683Smlaier  ac_status=$?
2664172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2665172683Smlaier  rm -f conftest.er1
2666172683Smlaier  cat conftest.err >&5
2667172683Smlaier  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668172683Smlaier  (exit $ac_status); } && {
2669172683Smlaier	 test -z "$ac_c_werror_flag" ||
2670172683Smlaier	 test ! -s conftest.err
2671172683Smlaier       } && test -s conftest.$ac_objext; then
267226180Sfenner  ac_cv_prog_cc_g=yes
267317680Spstelse
2674127668Sbms  echo "$as_me: failed program was:" >&5
2675127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
267617680Spst
2677172683Smlaier
267817680Spstfi
2679172683Smlaier
2680172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681127668Sbmsfi
2682172683Smlaier
2683172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684172683Smlaierfi
2685172683Smlaier
2686172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687172683Smlaier   ac_c_werror_flag=$ac_save_c_werror_flag
2688172683Smlaierfi
2689172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2690172683Smlaierecho "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
269156893Sfennerif test "$ac_test_CFLAGS" = set; then
2692127668Sbms  CFLAGS=$ac_save_CFLAGS
269356893Sfennerelif test $ac_cv_prog_cc_g = yes; then
269456893Sfenner  if test "$GCC" = yes; then
269526180Sfenner    CFLAGS="-g -O2"
269626180Sfenner  else
269756893Sfenner    CFLAGS="-g"
269856893Sfenner  fi
269956893Sfennerelse
270056893Sfenner  if test "$GCC" = yes; then
270126180Sfenner    CFLAGS="-O2"
270256893Sfenner  else
270356893Sfenner    CFLAGS=
270417680Spst  fi
270517680Spstfi
2706172683Smlaier{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2707172683Smlaierecho $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2708172683Smlaierif test "${ac_cv_prog_cc_c89+set}" = set; then
2709127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
2710127668Sbmselse
2711172683Smlaier  ac_cv_prog_cc_c89=no
2712127668Sbmsac_save_CC=$CC
2713127668Sbmscat >conftest.$ac_ext <<_ACEOF
2714127668Sbms/* confdefs.h.  */
2715127668Sbms_ACEOF
2716127668Sbmscat confdefs.h >>conftest.$ac_ext
2717127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2718127668Sbms/* end confdefs.h.  */
2719127668Sbms#include <stdarg.h>
2720127668Sbms#include <stdio.h>
2721127668Sbms#include <sys/types.h>
2722127668Sbms#include <sys/stat.h>
2723127668Sbms/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2724127668Sbmsstruct buf { int x; };
2725127668SbmsFILE * (*rcsopen) (struct buf *, struct stat *, int);
2726127668Sbmsstatic char *e (p, i)
2727127668Sbms     char **p;
2728127668Sbms     int i;
2729127668Sbms{
2730127668Sbms  return p[i];
2731127668Sbms}
2732127668Sbmsstatic char *f (char * (*g) (char **, int), char **p, ...)
2733127668Sbms{
2734127668Sbms  char *s;
2735127668Sbms  va_list v;
2736127668Sbms  va_start (v,p);
2737127668Sbms  s = g (p, va_arg (v,int));
2738127668Sbms  va_end (v);
2739127668Sbms  return s;
2740127668Sbms}
2741172683Smlaier
2742172683Smlaier/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2743172683Smlaier   function prototypes and stuff, but not '\xHH' hex character constants.
2744172683Smlaier   These don't provoke an error unfortunately, instead are silently treated
2745172683Smlaier   as 'x'.  The following induces an error, until -std is added to get
2746172683Smlaier   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2747172683Smlaier   array size at least.  It's necessary to write '\x00'==0 to get something
2748172683Smlaier   that's true only with -std.  */
2749172683Smlaierint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750172683Smlaier
2751172683Smlaier/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752172683Smlaier   inside strings and character constants.  */
2753172683Smlaier#define FOO(x) 'x'
2754172683Smlaierint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755172683Smlaier
2756127668Sbmsint test (int i, double x);
2757127668Sbmsstruct s1 {int (*f) (int a);};
2758127668Sbmsstruct s2 {int (*f) (double a);};
2759127668Sbmsint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760127668Sbmsint argc;
2761127668Sbmschar **argv;
2762127668Sbmsint
2763127668Sbmsmain ()
2764127668Sbms{
2765127668Sbmsreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2766127668Sbms  ;
2767127668Sbms  return 0;
2768127668Sbms}
2769127668Sbms_ACEOF
2770172683Smlaierfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771172683Smlaier	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772127668Sbmsdo
2773127668Sbms  CC="$ac_save_CC $ac_arg"
2774127668Sbms  rm -f conftest.$ac_objext
2775172683Smlaierif { (ac_try="$ac_compile"
2776172683Smlaiercase "(($ac_try" in
2777172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778172683Smlaier  *) ac_try_echo=$ac_try;;
2779172683Smlaieresac
2780172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2782127668Sbms  ac_status=$?
2783172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2784172683Smlaier  rm -f conftest.er1
2785172683Smlaier  cat conftest.err >&5
2786127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787172683Smlaier  (exit $ac_status); } && {
2788172683Smlaier	 test -z "$ac_c_werror_flag" ||
2789172683Smlaier	 test ! -s conftest.err
2790172683Smlaier       } && test -s conftest.$ac_objext; then
2791172683Smlaier  ac_cv_prog_cc_c89=$ac_arg
2792127668Sbmselse
2793127668Sbms  echo "$as_me: failed program was:" >&5
2794127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
279517680Spst
2796172683Smlaier
2797127668Sbmsfi
2798172683Smlaier
2799172683Smlaierrm -f core conftest.err conftest.$ac_objext
2800172683Smlaier  test "x$ac_cv_prog_cc_c89" != "xno" && break
2801127668Sbmsdone
2802172683Smlaierrm -f conftest.$ac_ext
2803127668SbmsCC=$ac_save_CC
2804127668Sbms
2805127668Sbmsfi
2806172683Smlaier# AC_CACHE_VAL
2807172683Smlaiercase "x$ac_cv_prog_cc_c89" in
2808172683Smlaier  x)
2809172683Smlaier    { echo "$as_me:$LINENO: result: none needed" >&5
2810172683Smlaierecho "${ECHO_T}none needed" >&6; } ;;
2811172683Smlaier  xno)
2812172683Smlaier    { echo "$as_me:$LINENO: result: unsupported" >&5
2813172683Smlaierecho "${ECHO_T}unsupported" >&6; } ;;
2814127668Sbms  *)
2815172683Smlaier    CC="$CC $ac_cv_prog_cc_c89"
2816172683Smlaier    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2817172683Smlaierecho "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818127668Sbmsesac
2819127668Sbms
2820127668Sbms
2821127668Sbmsac_ext=c
2822127668Sbmsac_cpp='$CPP $CPPFLAGS'
2823127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
2826127668Sbms
2827214478Srpaulo
2828214478Srpaulo
2829214478Srpaulo
2830214478Srpaulo
283139297Sfenner    if test "$GCC" = yes ; then
283217680Spst	    if test "$SHLICC2" = yes ; then
283339297Sfenner		    ac_cv_lbl_gcc_vers=2
283439297Sfenner		    V_CCOPT="-O2"
283517680Spst	    else
2836172683Smlaier		    { echo "$as_me:$LINENO: checking gcc version" >&5
2837172683Smlaierecho $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2838127668Sbms		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
284017680Spstelse
284139297Sfenner  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
284239297Sfenner			    sed -e '/^gcc version /!d' \
284339297Sfenner				-e 's/^gcc version //' \
284439297Sfenner				-e 's/ .*//' -e 's/^[^0-9]*//' \
284539297Sfenner				-e 's/\..*//'`
284617680Spstfi
284717680Spst
2848172683Smlaier		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2849172683Smlaierecho "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
285039297Sfenner		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
285139297Sfenner			    V_CCOPT="-O2"
285217680Spst		    fi
285317680Spst	    fi
285417680Spst    else
2855172683Smlaier	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2856172683Smlaierecho $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2857127668Sbms	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2858127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
285917680Spstelse
2860127668Sbms
2861127668Sbmscat >conftest.$ac_ext <<_ACEOF
2862127668Sbms/* confdefs.h.  */
2863127668Sbms_ACEOF
2864127668Sbmscat confdefs.h >>conftest.$ac_ext
2865127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2866127668Sbms/* end confdefs.h.  */
286717680Spst#include <sys/types.h>
2868127668Sbmsint
2869127668Sbmsmain ()
2870127668Sbms{
287117680Spstint frob(int, char *)
2872127668Sbms  ;
2873127668Sbms  return 0;
2874127668Sbms}
2875127668Sbms_ACEOF
2876127668Sbmsrm -f conftest.$ac_objext
2877172683Smlaierif { (ac_try="$ac_compile"
2878172683Smlaiercase "(($ac_try" in
2879172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880172683Smlaier  *) ac_try_echo=$ac_try;;
2881172683Smlaieresac
2882172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2884127668Sbms  ac_status=$?
2885172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2886172683Smlaier  rm -f conftest.er1
2887172683Smlaier  cat conftest.err >&5
2888127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889172683Smlaier  (exit $ac_status); } && {
2890172683Smlaier	 test -z "$ac_c_werror_flag" ||
2891172683Smlaier	 test ! -s conftest.err
2892172683Smlaier       } && test -s conftest.$ac_objext; then
289339297Sfenner  ac_cv_lbl_cc_ansi_prototypes=yes
289417680Spstelse
2895127668Sbms  echo "$as_me: failed program was:" >&5
2896127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2897127668Sbms
2898172683Smlaier	ac_cv_lbl_cc_ansi_prototypes=no
289917680Spstfi
2900172683Smlaier
2901172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
290217680Spstfi
290317680Spst
2904172683Smlaier	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2905172683Smlaierecho "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
290639297Sfenner	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
290798524Sfenner		    case "$host_os" in
290817680Spst
290917680Spst		    hpux*)
2910172683Smlaier			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2911172683Smlaierecho $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
291217680Spst			    savedcflags="$CFLAGS"
291317680Spst			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2914127668Sbms			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2915127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
291617680Spstelse
2917127668Sbms  cat >conftest.$ac_ext <<_ACEOF
2918127668Sbms/* confdefs.h.  */
2919127668Sbms_ACEOF
2920127668Sbmscat confdefs.h >>conftest.$ac_ext
2921127668Sbmscat >>conftest.$ac_ext <<_ACEOF
2922127668Sbms/* end confdefs.h.  */
292317680Spst#include <sys/types.h>
2924127668Sbmsint
2925127668Sbmsmain ()
2926127668Sbms{
292717680Spstint frob(int, char *)
2928127668Sbms  ;
2929127668Sbms  return 0;
2930127668Sbms}
2931127668Sbms_ACEOF
2932127668Sbmsrm -f conftest.$ac_objext
2933172683Smlaierif { (ac_try="$ac_compile"
2934172683Smlaiercase "(($ac_try" in
2935172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936172683Smlaier  *) ac_try_echo=$ac_try;;
2937172683Smlaieresac
2938172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939172683Smlaier  (eval "$ac_compile") 2>conftest.er1
2940127668Sbms  ac_status=$?
2941172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
2942172683Smlaier  rm -f conftest.er1
2943172683Smlaier  cat conftest.err >&5
2944127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945172683Smlaier  (exit $ac_status); } && {
2946172683Smlaier	 test -z "$ac_c_werror_flag" ||
2947172683Smlaier	 test ! -s conftest.err
2948172683Smlaier       } && test -s conftest.$ac_objext; then
294939297Sfenner  ac_cv_lbl_cc_hpux_cc_aa=yes
295017680Spstelse
2951127668Sbms  echo "$as_me: failed program was:" >&5
2952127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
2953127668Sbms
2954172683Smlaier	ac_cv_lbl_cc_hpux_cc_aa=no
295517680Spstfi
2956172683Smlaier
2957172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
295817680Spstfi
295917680Spst
2960172683Smlaier			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2961172683Smlaierecho "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
296239297Sfenner			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2963127668Sbms				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2964127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;}
2965127668Sbms   { (exit 1); exit 1; }; }
296617680Spst			    fi
296717680Spst			    CFLAGS="$savedcflags"
296817680Spst			    V_CCOPT="-Aa $V_CCOPT"
2969214478Srpaulo
2970214478Srpaulocat >>confdefs.h <<\_ACEOF
297117680Spst#define _HPUX_SOURCE 1
2972127668Sbms_ACEOF
297317680Spst
297417680Spst			    ;;
297517680Spst
2976214478Srpaulo		    osf*)
2977214478Srpaulo			    { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2978214478Srpauloecho $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2979214478Srpaulo			    savedcflags="$CFLAGS"
2980214478Srpaulo			    CFLAGS="-std1"
2981214478Srpaulo			    if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2982214478Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
2983214478Srpauloelse
2984214478Srpaulo  cat >conftest.$ac_ext <<_ACEOF
2985214478Srpaulo/* confdefs.h.  */
2986214478Srpaulo_ACEOF
2987214478Srpaulocat confdefs.h >>conftest.$ac_ext
2988214478Srpaulocat >>conftest.$ac_ext <<_ACEOF
2989214478Srpaulo/* end confdefs.h.  */
2990214478Srpaulo#include <sys/types.h>
2991214478Srpauloint
2992214478Srpaulomain ()
2993214478Srpaulo{
2994214478Srpauloint frob(int, char *)
2995214478Srpaulo  ;
2996214478Srpaulo  return 0;
2997214478Srpaulo}
2998214478Srpaulo_ACEOF
2999214478Srpaulorm -f conftest.$ac_objext
3000214478Srpauloif { (ac_try="$ac_compile"
3001214478Srpaulocase "(($ac_try" in
3002214478Srpaulo  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003214478Srpaulo  *) ac_try_echo=$ac_try;;
3004214478Srpauloesac
3005214478Srpauloeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006214478Srpaulo  (eval "$ac_compile") 2>conftest.er1
3007214478Srpaulo  ac_status=$?
3008214478Srpaulo  grep -v '^ *+' conftest.er1 >conftest.err
3009214478Srpaulo  rm -f conftest.er1
3010214478Srpaulo  cat conftest.err >&5
3011214478Srpaulo  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012214478Srpaulo  (exit $ac_status); } && {
3013214478Srpaulo	 test -z "$ac_c_werror_flag" ||
3014214478Srpaulo	 test ! -s conftest.err
3015214478Srpaulo       } && test -s conftest.$ac_objext; then
3016214478Srpaulo  ac_cv_lbl_cc_osf1_cc_std1=yes
3017214478Srpauloelse
3018214478Srpaulo  echo "$as_me: failed program was:" >&5
3019214478Srpaulosed 's/^/| /' conftest.$ac_ext >&5
3020214478Srpaulo
3021214478Srpaulo	ac_cv_lbl_cc_osf1_cc_std1=no
3022214478Srpaulofi
3023214478Srpaulo
3024214478Srpaulorm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025214478Srpaulofi
3026214478Srpaulo
3027214478Srpaulo			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3028214478Srpauloecho "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3029214478Srpaulo			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3030214478Srpaulo				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031214478Srpauloecho "$as_me: error: see the INSTALL doc for more info" >&2;}
3032214478Srpaulo   { (exit 1); exit 1; }; }
3033214478Srpaulo			    fi
3034214478Srpaulo			    CFLAGS="$savedcflags"
3035214478Srpaulo			    V_CCOPT="-std1 $V_CCOPT"
3036214478Srpaulo			    ;;
3037214478Srpaulo
303817680Spst		    *)
3039127668Sbms			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3040127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;}
3041127668Sbms   { (exit 1); exit 1; }; }
304217680Spst			    ;;
304317680Spst		    esac
304417680Spst	    fi
304539297Sfenner	    V_INCLS="$V_INCLS -I/usr/local/include"
304639297Sfenner	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
304717680Spst
304898524Sfenner	    case "$host_os" in
304917680Spst
305017680Spst	    irix*)
305198524Sfenner		    V_CCOPT="$V_CCOPT -xansi -signed -O"
305217680Spst		    ;;
305317680Spst
305417680Spst	    osf*)
3055214478Srpaulo	    	    #
3056214478Srpaulo		    # Presumed to be DEC OSF/1, Digital UNIX, or
3057214478Srpaulo		    # Tru64 UNIX.
3058214478Srpaulo		    #
3059214478Srpaulo		    V_CCOPT="$V_CCOPT -O"
306017680Spst		    ;;
306117680Spst
306217680Spst	    ultrix*)
3063172683Smlaier		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3064172683Smlaierecho $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3065127668Sbms		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3066127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
306717680Spstelse
3068127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3069127668Sbms/* confdefs.h.  */
3070127668Sbms_ACEOF
3071127668Sbmscat confdefs.h >>conftest.$ac_ext
3072127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3073127668Sbms/* end confdefs.h.  */
307417680Spst#include <sys/types.h>
3075127668Sbmsint
3076127668Sbmsmain ()
3077127668Sbms{
307817680Spststruct a { int b; };
307917680Spst			    void c(const struct a *)
3080127668Sbms  ;
3081127668Sbms  return 0;
3082127668Sbms}
3083127668Sbms_ACEOF
3084127668Sbmsrm -f conftest.$ac_objext
3085172683Smlaierif { (ac_try="$ac_compile"
3086172683Smlaiercase "(($ac_try" in
3087172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088172683Smlaier  *) ac_try_echo=$ac_try;;
3089172683Smlaieresac
3090172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091172683Smlaier  (eval "$ac_compile") 2>conftest.er1
3092127668Sbms  ac_status=$?
3093172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
3094172683Smlaier  rm -f conftest.er1
3095172683Smlaier  cat conftest.err >&5
3096127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097172683Smlaier  (exit $ac_status); } && {
3098172683Smlaier	 test -z "$ac_c_werror_flag" ||
3099172683Smlaier	 test ! -s conftest.err
3100172683Smlaier       } && test -s conftest.$ac_objext; then
310139297Sfenner  ac_cv_lbl_cc_const_proto=yes
310217680Spstelse
3103127668Sbms  echo "$as_me: failed program was:" >&5
3104127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3105127668Sbms
3106172683Smlaier	ac_cv_lbl_cc_const_proto=no
310717680Spstfi
3108172683Smlaier
3109172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
311017680Spstfi
311117680Spst
3112172683Smlaier		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3113172683Smlaierecho "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
311439297Sfenner		    if test $ac_cv_lbl_cc_const_proto = no ; then
3115214478Srpaulo
3116214478Srpaulocat >>confdefs.h <<\_ACEOF
3117127668Sbms#define const
3118127668Sbms_ACEOF
311917680Spst
312017680Spst		    fi
312117680Spst		    ;;
312217680Spst	    esac
312317680Spst    fi
312417680Spst
3125172683Smlaier{ echo "$as_me:$LINENO: checking for inline" >&5
3126172683Smlaierecho $ECHO_N "checking for inline... $ECHO_C" >&6; }
3127214478Srpaulo    save_CFLAGS="$CFLAGS"
3128214478Srpaulo    CFLAGS="$V_CCOPT"
3129127668Sbms    if test "${ac_cv_lbl_inline+set}" = set; then
3130127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
313156893Sfennerelse
3132127668Sbms
3133111726Sfenner	ac_cv_lbl_inline=""
3134111726Sfenner	ac_lbl_cc_inline=no
3135111726Sfenner	for ac_lbl_inline in inline __inline__ __inline
3136111726Sfenner	do
3137127668Sbms	    cat >conftest.$ac_ext <<_ACEOF
3138127668Sbms/* confdefs.h.  */
3139127668Sbms_ACEOF
3140127668Sbmscat confdefs.h >>conftest.$ac_ext
3141127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3142127668Sbms/* end confdefs.h.  */
3143111726Sfenner#define inline $ac_lbl_inline
3144111726Sfenner		static inline struct iltest *foo(void);
3145111726Sfenner		struct iltest {
3146111726Sfenner		    int iltest1;
3147111726Sfenner		    int iltest2;
3148111726Sfenner		};
314917680Spst
3150111726Sfenner		static inline struct iltest *
3151111726Sfenner		foo()
3152111726Sfenner		{
3153111726Sfenner		    static struct iltest xxx;
3154111726Sfenner
3155111726Sfenner		    return &xxx;
3156111726Sfenner		}
3157127668Sbmsint
3158127668Sbmsmain ()
3159127668Sbms{
3160111726Sfenner
3161127668Sbms  ;
3162127668Sbms  return 0;
3163127668Sbms}
3164127668Sbms_ACEOF
3165127668Sbmsrm -f conftest.$ac_objext
3166172683Smlaierif { (ac_try="$ac_compile"
3167172683Smlaiercase "(($ac_try" in
3168172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169172683Smlaier  *) ac_try_echo=$ac_try;;
3170172683Smlaieresac
3171172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172172683Smlaier  (eval "$ac_compile") 2>conftest.er1
3173127668Sbms  ac_status=$?
3174172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
3175172683Smlaier  rm -f conftest.er1
3176172683Smlaier  cat conftest.err >&5
3177127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178172683Smlaier  (exit $ac_status); } && {
3179172683Smlaier	 test -z "$ac_c_werror_flag" ||
3180172683Smlaier	 test ! -s conftest.err
3181172683Smlaier       } && test -s conftest.$ac_objext; then
3182111726Sfenner  ac_lbl_cc_inline=yes
318356893Sfennerelse
3184127668Sbms  echo "$as_me: failed program was:" >&5
3185127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3186127668Sbms
3187172683Smlaier
318856893Sfennerfi
3189172683Smlaier
3190172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191111726Sfenner	    if test "$ac_lbl_cc_inline" = yes ; then
3192111726Sfenner		break;
3193111726Sfenner	    fi
3194111726Sfenner	done
3195111726Sfenner	if test "$ac_lbl_cc_inline" = yes ; then
3196111726Sfenner	    ac_cv_lbl_inline=$ac_lbl_inline
3197111726Sfenner	fi
319856893Sfennerfi
319956893Sfenner
3200214478Srpaulo    CFLAGS="$save_CFLAGS"
3201111726Sfenner    if test ! -z "$ac_cv_lbl_inline" ; then
3202172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3203172683Smlaierecho "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3204111726Sfenner    else
3205172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
3206172683Smlaierecho "${ECHO_T}no" >&6; }
3207111726Sfenner    fi
3208127668Sbms
3209127668Sbmscat >>confdefs.h <<_ACEOF
3210111726Sfenner#define inline $ac_cv_lbl_inline
3211127668Sbms_ACEOF
321256893Sfenner
321356893Sfenner
3214172683Smlaier{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3215172683Smlaierecho $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3216127668Sbmsif test "${ac_cv___attribute__+set}" = set; then
3217127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
321875115Sfennerelse
321975115Sfenner
3220127668Sbmscat >conftest.$ac_ext <<_ACEOF
3221236192Sdelphij
3222236192Sdelphij  /* confdefs.h.  */
3223127668Sbms_ACEOF
3224127668Sbmscat confdefs.h >>conftest.$ac_ext
3225127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3226127668Sbms/* end confdefs.h.  */
3227127668Sbms
322875115Sfenner#include <stdlib.h>
322975115Sfenner
323075115Sfennerstatic void foo(void) __attribute__ ((noreturn));
323175115Sfenner
323275115Sfennerstatic void
323375115Sfennerfoo(void)
323475115Sfenner{
323575115Sfenner  exit(1);
323675115Sfenner}
323775115Sfenner
3238147899Ssamint
3239147899Ssammain(int argc, char **argv)
3240147899Ssam{
3241147899Ssam  foo();
3242127668Sbms}
3243147899Ssam
3244127668Sbms_ACEOF
3245127668Sbmsrm -f conftest.$ac_objext
3246172683Smlaierif { (ac_try="$ac_compile"
3247172683Smlaiercase "(($ac_try" in
3248172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249172683Smlaier  *) ac_try_echo=$ac_try;;
3250172683Smlaieresac
3251172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252172683Smlaier  (eval "$ac_compile") 2>conftest.er1
3253127668Sbms  ac_status=$?
3254172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
3255172683Smlaier  rm -f conftest.er1
3256172683Smlaier  cat conftest.err >&5
3257127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258172683Smlaier  (exit $ac_status); } && {
3259172683Smlaier	 test -z "$ac_c_werror_flag" ||
3260172683Smlaier	 test ! -s conftest.err
3261172683Smlaier       } && test -s conftest.$ac_objext; then
326275115Sfenner  ac_cv___attribute__=yes
326375115Sfennerelse
3264127668Sbms  echo "$as_me: failed program was:" >&5
3265127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3266127668Sbms
3267172683Smlaier	ac_cv___attribute__=no
326875115Sfennerfi
3269172683Smlaier
3270172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
327175115Sfennerfi
327275115Sfenner
327375115Sfennerif test "$ac_cv___attribute__" = "yes"; then
3274127668Sbms
3275127668Sbmscat >>confdefs.h <<\_ACEOF
327675115Sfenner#define HAVE___ATTRIBUTE__ 1
3277127668Sbms_ACEOF
327875115Sfenner
3279127668Sbms  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3280127668Sbmselse
3281127668Sbms  V_DEFS="$V_DEFS -D_U_=\"\""
328275115Sfennerfi
3283172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3284172683Smlaierecho "${ECHO_T}$ac_cv___attribute__" >&6; }
328575115Sfenner
3286214478Srpauloif test "$ac_cv___attribute__" = "yes"; then
3287214478Srpaulo
3288214478Srpaulo{ echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3289214478Srpauloecho $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3290214478Srpauloif test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3291214478Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
3292214478Srpauloelse
3293214478Srpaulo
3294214478Srpaulocat >conftest.$ac_ext <<_ACEOF
3295236192Sdelphij
3296236192Sdelphij  /* confdefs.h.  */
3297214478Srpaulo_ACEOF
3298214478Srpaulocat confdefs.h >>conftest.$ac_ext
3299214478Srpaulocat >>conftest.$ac_ext <<_ACEOF
3300214478Srpaulo/* end confdefs.h.  */
3301214478Srpaulo
3302214478Srpaulo#include <stdlib.h>
3303214478Srpaulo
3304214478Srpauloextern int (*foo)(const char *fmt, ...)
3305214478Srpaulo		  __attribute__ ((format (printf, 1, 2)));
3306214478Srpaulo
3307214478Srpauloint
3308214478Srpaulomain(int argc, char **argv)
3309214478Srpaulo{
3310214478Srpaulo  (*foo)("%s", "test");
3311214478Srpaulo}
3312214478Srpaulo
3313214478Srpaulo_ACEOF
3314214478Srpaulorm -f conftest.$ac_objext
3315214478Srpauloif { (ac_try="$ac_compile"
3316214478Srpaulocase "(($ac_try" in
3317214478Srpaulo  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318214478Srpaulo  *) ac_try_echo=$ac_try;;
3319214478Srpauloesac
3320214478Srpauloeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321214478Srpaulo  (eval "$ac_compile") 2>conftest.er1
3322214478Srpaulo  ac_status=$?
3323214478Srpaulo  grep -v '^ *+' conftest.er1 >conftest.err
3324214478Srpaulo  rm -f conftest.er1
3325214478Srpaulo  cat conftest.err >&5
3326214478Srpaulo  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327214478Srpaulo  (exit $ac_status); } && {
3328214478Srpaulo	 test -z "$ac_c_werror_flag" ||
3329214478Srpaulo	 test ! -s conftest.err
3330214478Srpaulo       } && test -s conftest.$ac_objext; then
3331214478Srpaulo  ac_cv___attribute___format_function_pointer=yes
3332214478Srpauloelse
3333214478Srpaulo  echo "$as_me: failed program was:" >&5
3334214478Srpaulosed 's/^/| /' conftest.$ac_ext >&5
3335214478Srpaulo
3336214478Srpaulo	ac_cv___attribute___format_function_pointer=no
3337214478Srpaulofi
3338214478Srpaulo
3339214478Srpaulorm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340214478Srpaulofi
3341214478Srpaulo
3342214478Srpauloif test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3343214478Srpaulo
3344214478Srpaulocat >>confdefs.h <<\_ACEOF
3345214478Srpaulo#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3346214478Srpaulo_ACEOF
3347214478Srpaulo
3348214478Srpaulofi
3349214478Srpaulo{ echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3350214478Srpauloecho "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3351214478Srpaulo
3352214478Srpaulofi
3353127668Sbmsac_ext=c
3354127668Sbmsac_cpp='$CPP $CPPFLAGS'
3355127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
3358172683Smlaier{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359172683Smlaierecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
336017680Spst# On Suns, sometimes $CPP names a directory.
336117680Spstif test -n "$CPP" && test -d "$CPP"; then
336217680Spst  CPP=
336317680Spstfi
336417680Spstif test -z "$CPP"; then
3365127668Sbms  if test "${ac_cv_prog_CPP+set}" = set; then
3366127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
336717680Spstelse
3368127668Sbms      # Double quotes because CPP needs to be expanded
3369127668Sbms    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370127668Sbms    do
3371127668Sbms      ac_preproc_ok=false
3372127668Sbmsfor ac_c_preproc_warn_flag in '' yes
3373127668Sbmsdo
3374127668Sbms  # Use a header file that comes with gcc, so configuring glibc
3375127668Sbms  # with a fresh cross-compiler works.
3376127668Sbms  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377127668Sbms  # <limits.h> exists even on freestanding compilers.
337817680Spst  # On the NeXT, cc -E runs the code through the compiler's parser,
3379127668Sbms  # not just through cpp. "Syntax error" is here to catch this case.
3380127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3381127668Sbms/* confdefs.h.  */
3382127668Sbms_ACEOF
3383127668Sbmscat confdefs.h >>conftest.$ac_ext
3384127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3385127668Sbms/* end confdefs.h.  */
3386127668Sbms#ifdef __STDC__
3387127668Sbms# include <limits.h>
3388127668Sbms#else
3389127668Sbms# include <assert.h>
3390127668Sbms#endif
3391172683Smlaier		     Syntax error
3392127668Sbms_ACEOF
3393172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
3394172683Smlaiercase "(($ac_try" in
3395172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396172683Smlaier  *) ac_try_echo=$ac_try;;
3397172683Smlaieresac
3398172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400127668Sbms  ac_status=$?
3401127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
3402127668Sbms  rm -f conftest.er1
3403127668Sbms  cat conftest.err >&5
3404127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405172683Smlaier  (exit $ac_status); } >/dev/null && {
3406172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3407172683Smlaier	 test ! -s conftest.err
3408172683Smlaier       }; then
340917680Spst  :
341017680Spstelse
3411127668Sbms  echo "$as_me: failed program was:" >&5
3412127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3413127668Sbms
3414127668Sbms  # Broken: fails on valid input.
3415127668Sbmscontinue
3416127668Sbmsfi
3417172683Smlaier
3418127668Sbmsrm -f conftest.err conftest.$ac_ext
3419127668Sbms
3420172683Smlaier  # OK, works on sane cases.  Now check whether nonexistent headers
3421127668Sbms  # can be detected and how.
3422127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3423127668Sbms/* confdefs.h.  */
3424127668Sbms_ACEOF
3425127668Sbmscat confdefs.h >>conftest.$ac_ext
3426127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3427127668Sbms/* end confdefs.h.  */
3428127668Sbms#include <ac_nonexistent.h>
3429127668Sbms_ACEOF
3430172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
3431172683Smlaiercase "(($ac_try" in
3432172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433172683Smlaier  *) ac_try_echo=$ac_try;;
3434172683Smlaieresac
3435172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437127668Sbms  ac_status=$?
3438127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
3439127668Sbms  rm -f conftest.er1
3440127668Sbms  cat conftest.err >&5
3441127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442172683Smlaier  (exit $ac_status); } >/dev/null && {
3443172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444172683Smlaier	 test ! -s conftest.err
3445172683Smlaier       }; then
3446127668Sbms  # Broken: success on invalid input.
3447127668Sbmscontinue
3448127668Sbmselse
3449127668Sbms  echo "$as_me: failed program was:" >&5
3450127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3451127668Sbms
3452127668Sbms  # Passes both tests.
3453127668Sbmsac_preproc_ok=:
3454127668Sbmsbreak
3455127668Sbmsfi
3456172683Smlaier
3457127668Sbmsrm -f conftest.err conftest.$ac_ext
3458127668Sbms
3459127668Sbmsdone
3460127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461127668Sbmsrm -f conftest.err conftest.$ac_ext
3462127668Sbmsif $ac_preproc_ok; then
3463127668Sbms  break
3464127668Sbmsfi
3465127668Sbms
3466127668Sbms    done
3467127668Sbms    ac_cv_prog_CPP=$CPP
3468127668Sbms
3469127668Sbmsfi
3470127668Sbms  CPP=$ac_cv_prog_CPP
3471127668Sbmselse
3472127668Sbms  ac_cv_prog_CPP=$CPP
3473127668Sbmsfi
3474172683Smlaier{ echo "$as_me:$LINENO: result: $CPP" >&5
3475172683Smlaierecho "${ECHO_T}$CPP" >&6; }
3476127668Sbmsac_preproc_ok=false
3477127668Sbmsfor ac_c_preproc_warn_flag in '' yes
3478127668Sbmsdo
3479127668Sbms  # Use a header file that comes with gcc, so configuring glibc
3480127668Sbms  # with a fresh cross-compiler works.
3481127668Sbms  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482127668Sbms  # <limits.h> exists even on freestanding compilers.
3483127668Sbms  # On the NeXT, cc -E runs the code through the compiler's parser,
3484127668Sbms  # not just through cpp. "Syntax error" is here to catch this case.
3485127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3486127668Sbms/* confdefs.h.  */
3487127668Sbms_ACEOF
3488127668Sbmscat confdefs.h >>conftest.$ac_ext
3489127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3490127668Sbms/* end confdefs.h.  */
3491127668Sbms#ifdef __STDC__
3492127668Sbms# include <limits.h>
3493127668Sbms#else
3494127668Sbms# include <assert.h>
3495127668Sbms#endif
3496172683Smlaier		     Syntax error
3497127668Sbms_ACEOF
3498172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
3499172683Smlaiercase "(($ac_try" in
3500172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501172683Smlaier  *) ac_try_echo=$ac_try;;
3502172683Smlaieresac
3503172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505127668Sbms  ac_status=$?
3506127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
3507127668Sbms  rm -f conftest.er1
3508127668Sbms  cat conftest.err >&5
3509127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510172683Smlaier  (exit $ac_status); } >/dev/null && {
3511172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512172683Smlaier	 test ! -s conftest.err
3513172683Smlaier       }; then
351417680Spst  :
351517680Spstelse
3516127668Sbms  echo "$as_me: failed program was:" >&5
3517127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3518127668Sbms
3519127668Sbms  # Broken: fails on valid input.
3520127668Sbmscontinue
3521127668Sbmsfi
3522172683Smlaier
3523127668Sbmsrm -f conftest.err conftest.$ac_ext
3524127668Sbms
3525172683Smlaier  # OK, works on sane cases.  Now check whether nonexistent headers
3526127668Sbms  # can be detected and how.
3527127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3528127668Sbms/* confdefs.h.  */
3529127668Sbms_ACEOF
3530127668Sbmscat confdefs.h >>conftest.$ac_ext
3531127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3532127668Sbms/* end confdefs.h.  */
3533127668Sbms#include <ac_nonexistent.h>
3534127668Sbms_ACEOF
3535172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
3536172683Smlaiercase "(($ac_try" in
3537172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538172683Smlaier  *) ac_try_echo=$ac_try;;
3539172683Smlaieresac
3540172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3542127668Sbms  ac_status=$?
3543127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
3544127668Sbms  rm -f conftest.er1
3545127668Sbms  cat conftest.err >&5
3546127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547172683Smlaier  (exit $ac_status); } >/dev/null && {
3548172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3549172683Smlaier	 test ! -s conftest.err
3550172683Smlaier       }; then
3551127668Sbms  # Broken: success on invalid input.
3552127668Sbmscontinue
3553127668Sbmselse
3554127668Sbms  echo "$as_me: failed program was:" >&5
3555127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3556127668Sbms
3557127668Sbms  # Passes both tests.
3558127668Sbmsac_preproc_ok=:
3559127668Sbmsbreak
3560127668Sbmsfi
3561172683Smlaier
3562127668Sbmsrm -f conftest.err conftest.$ac_ext
3563127668Sbms
3564127668Sbmsdone
3565127668Sbms# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3566127668Sbmsrm -f conftest.err conftest.$ac_ext
3567127668Sbmsif $ac_preproc_ok; then
356856893Sfenner  :
356956893Sfennerelse
3570127668Sbms  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3571127668SbmsSee \`config.log' for more details." >&5
3572127668Sbmsecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3573127668SbmsSee \`config.log' for more details." >&2;}
3574127668Sbms   { (exit 1); exit 1; }; }
357517680Spstfi
3576127668Sbms
3577127668Sbmsac_ext=c
3578127668Sbmsac_cpp='$CPP $CPPFLAGS'
3579127668Sbmsac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580127668Sbmsac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581127668Sbmsac_compiler_gnu=$ac_cv_c_compiler_gnu
3582127668Sbms
3583127668Sbms
3584172683Smlaier{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3585172683Smlaierecho $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3586172683Smlaierif test "${ac_cv_path_GREP+set}" = set; then
3587127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3588127668Sbmselse
3589172683Smlaier  # Extract the first word of "grep ggrep" to use in msg output
3590172683Smlaierif test -z "$GREP"; then
3591172683Smlaierset dummy grep ggrep; ac_prog_name=$2
3592172683Smlaierif test "${ac_cv_path_GREP+set}" = set; then
3593172683Smlaier  echo $ECHO_N "(cached) $ECHO_C" >&6
3594172683Smlaierelse
3595172683Smlaier  ac_path_GREP_found=false
3596172683Smlaier# Loop through the user's path and test for each of PROGNAME-LIST
3597172683Smlaieras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598172683Smlaierfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3599172683Smlaierdo
3600172683Smlaier  IFS=$as_save_IFS
3601172683Smlaier  test -z "$as_dir" && as_dir=.
3602172683Smlaier  for ac_prog in grep ggrep; do
3603172683Smlaier  for ac_exec_ext in '' $ac_executable_extensions; do
3604172683Smlaier    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3605172683Smlaier    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3606172683Smlaier    # Check for GNU ac_path_GREP and select it if it is found.
3607172683Smlaier  # Check for GNU $ac_path_GREP
3608172683Smlaiercase `"$ac_path_GREP" --version 2>&1` in
3609172683Smlaier*GNU*)
3610172683Smlaier  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3611172683Smlaier*)
3612172683Smlaier  ac_count=0
3613172683Smlaier  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3614172683Smlaier  while :
3615172683Smlaier  do
3616172683Smlaier    cat "conftest.in" "conftest.in" >"conftest.tmp"
3617172683Smlaier    mv "conftest.tmp" "conftest.in"
3618172683Smlaier    cp "conftest.in" "conftest.nl"
3619172683Smlaier    echo 'GREP' >> "conftest.nl"
3620172683Smlaier    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3621172683Smlaier    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3622172683Smlaier    ac_count=`expr $ac_count + 1`
3623172683Smlaier    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3624172683Smlaier      # Best one so far, save it but keep looking for a better one
3625172683Smlaier      ac_cv_path_GREP="$ac_path_GREP"
3626172683Smlaier      ac_path_GREP_max=$ac_count
3627127668Sbms    fi
3628172683Smlaier    # 10*(2^10) chars as input seems more than enough
3629172683Smlaier    test $ac_count -gt 10 && break
3630172683Smlaier  done
3631172683Smlaier  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3632172683Smlaieresac
3633172683Smlaier
3634172683Smlaier
3635172683Smlaier    $ac_path_GREP_found && break 3
3636172683Smlaier  done
3637172683Smlaierdone
3638172683Smlaier
3639172683Smlaierdone
3640172683SmlaierIFS=$as_save_IFS
3641172683Smlaier
3642172683Smlaier
364317680Spstfi
3644127668Sbms
3645172683SmlaierGREP="$ac_cv_path_GREP"
3646172683Smlaierif test -z "$GREP"; then
3647172683Smlaier  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3648172683Smlaierecho "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3649172683Smlaier   { (exit 1); exit 1; }; }
3650172683Smlaierfi
3651127668Sbms
3652172683Smlaierelse
3653172683Smlaier  ac_cv_path_GREP=$GREP
3654172683Smlaierfi
3655172683Smlaier
3656172683Smlaier
3657172683Smlaierfi
3658172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3659172683Smlaierecho "${ECHO_T}$ac_cv_path_GREP" >&6; }
3660172683Smlaier GREP="$ac_cv_path_GREP"
3661172683Smlaier
3662172683Smlaier
3663172683Smlaier{ echo "$as_me:$LINENO: checking for egrep" >&5
3664172683Smlaierecho $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3665172683Smlaierif test "${ac_cv_path_EGREP+set}" = set; then
3666172683Smlaier  echo $ECHO_N "(cached) $ECHO_C" >&6
3667172683Smlaierelse
3668172683Smlaier  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669172683Smlaier   then ac_cv_path_EGREP="$GREP -E"
3670172683Smlaier   else
3671172683Smlaier     # Extract the first word of "egrep" to use in msg output
3672172683Smlaierif test -z "$EGREP"; then
3673172683Smlaierset dummy egrep; ac_prog_name=$2
3674172683Smlaierif test "${ac_cv_path_EGREP+set}" = set; then
3675172683Smlaier  echo $ECHO_N "(cached) $ECHO_C" >&6
3676172683Smlaierelse
3677172683Smlaier  ac_path_EGREP_found=false
3678172683Smlaier# Loop through the user's path and test for each of PROGNAME-LIST
3679172683Smlaieras_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680172683Smlaierfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681172683Smlaierdo
3682172683Smlaier  IFS=$as_save_IFS
3683172683Smlaier  test -z "$as_dir" && as_dir=.
3684172683Smlaier  for ac_prog in egrep; do
3685172683Smlaier  for ac_exec_ext in '' $ac_executable_extensions; do
3686172683Smlaier    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3687172683Smlaier    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3688172683Smlaier    # Check for GNU ac_path_EGREP and select it if it is found.
3689172683Smlaier  # Check for GNU $ac_path_EGREP
3690172683Smlaiercase `"$ac_path_EGREP" --version 2>&1` in
3691172683Smlaier*GNU*)
3692172683Smlaier  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3693172683Smlaier*)
3694172683Smlaier  ac_count=0
3695172683Smlaier  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696172683Smlaier  while :
3697172683Smlaier  do
3698172683Smlaier    cat "conftest.in" "conftest.in" >"conftest.tmp"
3699172683Smlaier    mv "conftest.tmp" "conftest.in"
3700172683Smlaier    cp "conftest.in" "conftest.nl"
3701172683Smlaier    echo 'EGREP' >> "conftest.nl"
3702172683Smlaier    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703172683Smlaier    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704172683Smlaier    ac_count=`expr $ac_count + 1`
3705172683Smlaier    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706172683Smlaier      # Best one so far, save it but keep looking for a better one
3707172683Smlaier      ac_cv_path_EGREP="$ac_path_EGREP"
3708172683Smlaier      ac_path_EGREP_max=$ac_count
3709172683Smlaier    fi
3710172683Smlaier    # 10*(2^10) chars as input seems more than enough
3711172683Smlaier    test $ac_count -gt 10 && break
3712172683Smlaier  done
3713172683Smlaier  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714172683Smlaieresac
3715172683Smlaier
3716172683Smlaier
3717172683Smlaier    $ac_path_EGREP_found && break 3
3718172683Smlaier  done
3719172683Smlaierdone
3720172683Smlaier
3721172683Smlaierdone
3722172683SmlaierIFS=$as_save_IFS
3723172683Smlaier
3724172683Smlaier
3725172683Smlaierfi
3726172683Smlaier
3727172683SmlaierEGREP="$ac_cv_path_EGREP"
3728172683Smlaierif test -z "$EGREP"; then
3729172683Smlaier  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730172683Smlaierecho "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731172683Smlaier   { (exit 1); exit 1; }; }
3732172683Smlaierfi
3733172683Smlaier
3734172683Smlaierelse
3735172683Smlaier  ac_cv_path_EGREP=$EGREP
3736172683Smlaierfi
3737172683Smlaier
3738172683Smlaier
3739172683Smlaier   fi
3740172683Smlaierfi
3741172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3742172683Smlaierecho "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3743172683Smlaier EGREP="$ac_cv_path_EGREP"
3744172683Smlaier
3745172683Smlaier
3746172683Smlaier{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747172683Smlaierecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3748127668Sbmsif test "${ac_cv_header_stdc+set}" = set; then
3749127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
3750127668Sbmselse
3751127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3752127668Sbms/* confdefs.h.  */
3753127668Sbms_ACEOF
3754127668Sbmscat confdefs.h >>conftest.$ac_ext
3755127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3756127668Sbms/* end confdefs.h.  */
3757127668Sbms#include <stdlib.h>
3758127668Sbms#include <stdarg.h>
3759127668Sbms#include <string.h>
3760127668Sbms#include <float.h>
3761127668Sbms
3762127668Sbmsint
3763127668Sbmsmain ()
3764127668Sbms{
3765127668Sbms
3766127668Sbms  ;
3767127668Sbms  return 0;
3768127668Sbms}
3769127668Sbms_ACEOF
3770127668Sbmsrm -f conftest.$ac_objext
3771172683Smlaierif { (ac_try="$ac_compile"
3772172683Smlaiercase "(($ac_try" in
3773172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774172683Smlaier  *) ac_try_echo=$ac_try;;
3775172683Smlaieresac
3776172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777172683Smlaier  (eval "$ac_compile") 2>conftest.er1
3778127668Sbms  ac_status=$?
3779172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
3780172683Smlaier  rm -f conftest.er1
3781172683Smlaier  cat conftest.err >&5
3782127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783172683Smlaier  (exit $ac_status); } && {
3784172683Smlaier	 test -z "$ac_c_werror_flag" ||
3785172683Smlaier	 test ! -s conftest.err
3786172683Smlaier       } && test -s conftest.$ac_objext; then
3787127668Sbms  ac_cv_header_stdc=yes
3788127668Sbmselse
3789127668Sbms  echo "$as_me: failed program was:" >&5
3790127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3791127668Sbms
3792172683Smlaier	ac_cv_header_stdc=no
3793127668Sbmsfi
3794127668Sbms
3795172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796172683Smlaier
3797127668Sbmsif test $ac_cv_header_stdc = yes; then
3798127668Sbms  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3800127668Sbms/* confdefs.h.  */
3801127668Sbms_ACEOF
3802127668Sbmscat confdefs.h >>conftest.$ac_ext
3803127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3804127668Sbms/* end confdefs.h.  */
3805127668Sbms#include <string.h>
3806127668Sbms
3807127668Sbms_ACEOF
3808127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809127668Sbms  $EGREP "memchr" >/dev/null 2>&1; then
3810127668Sbms  :
3811127668Sbmselse
3812127668Sbms  ac_cv_header_stdc=no
3813127668Sbmsfi
3814214478Srpaulorm -f -r conftest*
3815127668Sbms
381656893Sfennerfi
3817127668Sbms
3818127668Sbmsif test $ac_cv_header_stdc = yes; then
3819127668Sbms  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3820127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3821127668Sbms/* confdefs.h.  */
3822127668Sbms_ACEOF
3823127668Sbmscat confdefs.h >>conftest.$ac_ext
3824127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3825127668Sbms/* end confdefs.h.  */
3826127668Sbms#include <stdlib.h>
3827127668Sbms
3828127668Sbms_ACEOF
3829127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830127668Sbms  $EGREP "free" >/dev/null 2>&1; then
3831127668Sbms  :
3832127668Sbmselse
3833127668Sbms  ac_cv_header_stdc=no
3834127668Sbmsfi
3835214478Srpaulorm -f -r conftest*
3836127668Sbms
383717680Spstfi
3838127668Sbms
3839127668Sbmsif test $ac_cv_header_stdc = yes; then
3840127668Sbms  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3841127668Sbms  if test "$cross_compiling" = yes; then
3842127668Sbms  :
384317680Spstelse
3844127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3845127668Sbms/* confdefs.h.  */
3846127668Sbms_ACEOF
3847127668Sbmscat confdefs.h >>conftest.$ac_ext
3848127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3849127668Sbms/* end confdefs.h.  */
3850127668Sbms#include <ctype.h>
3851172683Smlaier#include <stdlib.h>
3852127668Sbms#if ((' ' & 0x0FF) == 0x020)
3853127668Sbms# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3854127668Sbms# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3855127668Sbms#else
3856127668Sbms# define ISLOWER(c) \
3857172683Smlaier		   (('a' <= (c) && (c) <= 'i') \
3858172683Smlaier		     || ('j' <= (c) && (c) <= 'r') \
3859172683Smlaier		     || ('s' <= (c) && (c) <= 'z'))
3860127668Sbms# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3861127668Sbms#endif
3862127668Sbms
3863127668Sbms#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3864127668Sbmsint
3865127668Sbmsmain ()
3866127668Sbms{
3867127668Sbms  int i;
3868127668Sbms  for (i = 0; i < 256; i++)
3869127668Sbms    if (XOR (islower (i), ISLOWER (i))
3870172683Smlaier	|| toupper (i) != TOUPPER (i))
3871172683Smlaier      return 2;
3872172683Smlaier  return 0;
3873127668Sbms}
3874127668Sbms_ACEOF
3875127668Sbmsrm -f conftest$ac_exeext
3876172683Smlaierif { (ac_try="$ac_link"
3877172683Smlaiercase "(($ac_try" in
3878172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879172683Smlaier  *) ac_try_echo=$ac_try;;
3880172683Smlaieresac
3881172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882172683Smlaier  (eval "$ac_link") 2>&5
3883127668Sbms  ac_status=$?
3884127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3886172683Smlaier  { (case "(($ac_try" in
3887172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888172683Smlaier  *) ac_try_echo=$ac_try;;
3889172683Smlaieresac
3890172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891172683Smlaier  (eval "$ac_try") 2>&5
3892127668Sbms  ac_status=$?
3893127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894127668Sbms  (exit $ac_status); }; }; then
3895127668Sbms  :
3896127668Sbmselse
3897127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
3898127668Sbmsecho "$as_me: failed program was:" >&5
3899127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3900127668Sbms
3901127668Sbms( exit $ac_status )
3902127668Sbmsac_cv_header_stdc=no
390317680Spstfi
3904172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3905127668Sbmsfi
3906172683Smlaier
3907172683Smlaier
3908127668Sbmsfi
3909127668Sbmsfi
3910172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3911172683Smlaierecho "${ECHO_T}$ac_cv_header_stdc" >&6; }
3912127668Sbmsif test $ac_cv_header_stdc = yes; then
391317680Spst
3914127668Sbmscat >>confdefs.h <<\_ACEOF
3915127668Sbms#define STDC_HEADERS 1
3916127668Sbms_ACEOF
3917127668Sbms
3918127668Sbmsfi
3919127668Sbms
3920127668Sbms# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3921127668Sbms
3922127668Sbms
3923127668Sbms
3924127668Sbms
3925127668Sbms
3926127668Sbms
3927127668Sbms
3928127668Sbms
3929127668Sbms
3930127668Sbmsfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3931172683Smlaier		  inttypes.h stdint.h unistd.h
393217680Spstdo
3933127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3934172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3935172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3936172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3937127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
393817680Spstelse
3939127668Sbms  cat >conftest.$ac_ext <<_ACEOF
3940127668Sbms/* confdefs.h.  */
3941127668Sbms_ACEOF
3942127668Sbmscat confdefs.h >>conftest.$ac_ext
3943127668Sbmscat >>conftest.$ac_ext <<_ACEOF
3944127668Sbms/* end confdefs.h.  */
3945127668Sbms$ac_includes_default
3946127668Sbms
3947127668Sbms#include <$ac_header>
3948127668Sbms_ACEOF
3949127668Sbmsrm -f conftest.$ac_objext
3950172683Smlaierif { (ac_try="$ac_compile"
3951172683Smlaiercase "(($ac_try" in
3952172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953172683Smlaier  *) ac_try_echo=$ac_try;;
3954172683Smlaieresac
3955172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956172683Smlaier  (eval "$ac_compile") 2>conftest.er1
3957127668Sbms  ac_status=$?
3958172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
3959172683Smlaier  rm -f conftest.er1
3960172683Smlaier  cat conftest.err >&5
3961127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962172683Smlaier  (exit $ac_status); } && {
3963172683Smlaier	 test -z "$ac_c_werror_flag" ||
3964172683Smlaier	 test ! -s conftest.err
3965172683Smlaier       } && test -s conftest.$ac_objext; then
3966127668Sbms  eval "$as_ac_Header=yes"
396717680Spstelse
3968127668Sbms  echo "$as_me: failed program was:" >&5
3969127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
3970127668Sbms
3971172683Smlaier	eval "$as_ac_Header=no"
397217680Spstfi
3973172683Smlaier
3974172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
397517680Spstfi
3976172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
3977172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3978172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
3979127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
3980127668Sbms  cat >>confdefs.h <<_ACEOF
3981127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3982127668Sbms_ACEOF
3983127668Sbms
3984127668Sbmsfi
3985127668Sbms
3986127668Sbmsdone
3987127668Sbms
3988127668Sbms
3989127668Sbms
3990127668Sbms
3991127668Sbms
3992236192Sdelphij
3993236192Sdelphijfor ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
3994127668Sbmsdo
3995127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997172683Smlaier  { echo "$as_me:$LINENO: checking for $ac_header" >&5
3998172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
4001127668Sbmsfi
4002172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4003172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4004172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
400517680Spstelse
4006127668Sbms  # Is the header compilable?
4007172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4008172683Smlaierecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4009127668Sbmscat >conftest.$ac_ext <<_ACEOF
4010127668Sbms/* confdefs.h.  */
4011127668Sbms_ACEOF
4012127668Sbmscat confdefs.h >>conftest.$ac_ext
4013127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4014127668Sbms/* end confdefs.h.  */
4015127668Sbms$ac_includes_default
4016127668Sbms#include <$ac_header>
4017127668Sbms_ACEOF
4018127668Sbmsrm -f conftest.$ac_objext
4019172683Smlaierif { (ac_try="$ac_compile"
4020172683Smlaiercase "(($ac_try" in
4021172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022172683Smlaier  *) ac_try_echo=$ac_try;;
4023172683Smlaieresac
4024172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025172683Smlaier  (eval "$ac_compile") 2>conftest.er1
4026127668Sbms  ac_status=$?
4027172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4028172683Smlaier  rm -f conftest.er1
4029172683Smlaier  cat conftest.err >&5
4030127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031172683Smlaier  (exit $ac_status); } && {
4032172683Smlaier	 test -z "$ac_c_werror_flag" ||
4033172683Smlaier	 test ! -s conftest.err
4034172683Smlaier       } && test -s conftest.$ac_objext; then
4035127668Sbms  ac_header_compiler=yes
4036127668Sbmselse
4037127668Sbms  echo "$as_me: failed program was:" >&5
4038127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4039127668Sbms
4040172683Smlaier	ac_header_compiler=no
404117680Spstfi
4042127668Sbms
4043172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045172683Smlaierecho "${ECHO_T}$ac_header_compiler" >&6; }
4046172683Smlaier
4047127668Sbms# Is the header present?
4048172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049172683Smlaierecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4050127668Sbmscat >conftest.$ac_ext <<_ACEOF
4051127668Sbms/* confdefs.h.  */
4052127668Sbms_ACEOF
4053127668Sbmscat confdefs.h >>conftest.$ac_ext
4054127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4055127668Sbms/* end confdefs.h.  */
4056127668Sbms#include <$ac_header>
4057127668Sbms_ACEOF
4058172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
4059172683Smlaiercase "(($ac_try" in
4060172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061172683Smlaier  *) ac_try_echo=$ac_try;;
4062172683Smlaieresac
4063172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065127668Sbms  ac_status=$?
4066127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
4067127668Sbms  rm -f conftest.er1
4068127668Sbms  cat conftest.err >&5
4069127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070172683Smlaier  (exit $ac_status); } >/dev/null && {
4071172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072172683Smlaier	 test ! -s conftest.err
4073172683Smlaier       }; then
4074127668Sbms  ac_header_preproc=yes
4075127668Sbmselse
4076127668Sbms  echo "$as_me: failed program was:" >&5
4077127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4078127668Sbms
4079127668Sbms  ac_header_preproc=no
4080127668Sbmsfi
4081172683Smlaier
4082127668Sbmsrm -f conftest.err conftest.$ac_ext
4083172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4084172683Smlaierecho "${ECHO_T}$ac_header_preproc" >&6; }
4085127668Sbms
4086127668Sbms# So?  What about this header?
4087172683Smlaiercase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4088172683Smlaier  yes:no: )
4089127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4090127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4091172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4092172683Smlaierecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4093172683Smlaier    ac_header_preproc=yes
4094127668Sbms    ;;
4095172683Smlaier  no:yes:* )
4096127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4097127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4098172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4099172683Smlaierecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4100172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4101172683Smlaierecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4102172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4103172683Smlaierecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4104127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4105127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4106172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4107172683Smlaierecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4108172683Smlaier
4109127668Sbms    ;;
4110127668Sbmsesac
4111172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4112172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4113172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4114127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
4115127668Sbmselse
4116172683Smlaier  eval "$as_ac_Header=\$ac_header_preproc"
4117127668Sbmsfi
4118172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4119172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4120172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
4121127668Sbms
4122127668Sbmsfi
4123127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
4124127668Sbms  cat >>confdefs.h <<_ACEOF
4125127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4126127668Sbms_ACEOF
4127127668Sbms
4128127668Sbmsfi
4129127668Sbms
413017680Spstdone
413117680Spst
4132127668Sbms
4133172683Smlaierfor ac_header in net/pfvar.h
4134127668Sbmsdo
4135127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4137172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4138172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4139127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
414017680Spstelse
4141127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4142127668Sbms/* confdefs.h.  */
4143127668Sbms_ACEOF
4144127668Sbmscat confdefs.h >>conftest.$ac_ext
4145127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4146127668Sbms/* end confdefs.h.  */
414717680Spst#include <sys/types.h>
4148127668Sbms#include <sys/socket.h>
4149172683Smlaier#include <net/if.h>
4150127668Sbms
4151127668Sbms#include <$ac_header>
4152127668Sbms_ACEOF
4153127668Sbmsrm -f conftest.$ac_objext
4154172683Smlaierif { (ac_try="$ac_compile"
4155172683Smlaiercase "(($ac_try" in
4156172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157172683Smlaier  *) ac_try_echo=$ac_try;;
4158172683Smlaieresac
4159172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160172683Smlaier  (eval "$ac_compile") 2>conftest.er1
4161127668Sbms  ac_status=$?
4162172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4163172683Smlaier  rm -f conftest.er1
4164172683Smlaier  cat conftest.err >&5
4165127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166172683Smlaier  (exit $ac_status); } && {
4167172683Smlaier	 test -z "$ac_c_werror_flag" ||
4168172683Smlaier	 test ! -s conftest.err
4169172683Smlaier       } && test -s conftest.$ac_objext; then
4170172683Smlaier  eval "$as_ac_Header=yes"
4171172683Smlaierelse
4172172683Smlaier  echo "$as_me: failed program was:" >&5
4173172683Smlaiersed 's/^/| /' conftest.$ac_ext >&5
4174172683Smlaier
4175172683Smlaier	eval "$as_ac_Header=no"
4176172683Smlaierfi
4177172683Smlaier
4178172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179172683Smlaierfi
4180172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4181172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4182172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
4183172683Smlaierif test `eval echo '${'$as_ac_Header'}'` = yes; then
4184172683Smlaier  cat >>confdefs.h <<_ACEOF
4185172683Smlaier#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186172683Smlaier_ACEOF
4187172683Smlaier
4188172683Smlaierfi
4189172683Smlaier
4190172683Smlaierdone
4191172683Smlaier
4192190207Srpauloif test "$ac_cv_header_net_pfvar_h" = yes; then
4193172683Smlaier	LOCALSRC="print-pflog.c $LOCALSRC"
4194172683Smlaierfi
4195172683Smlaier
4196172683Smlaierfor ac_header in netinet/if_ether.h
4197172683Smlaierdo
4198172683Smlaieras_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4200172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4201172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4202172683Smlaier  echo $ECHO_N "(cached) $ECHO_C" >&6
4203172683Smlaierelse
4204172683Smlaier  cat >conftest.$ac_ext <<_ACEOF
4205172683Smlaier/* confdefs.h.  */
4206172683Smlaier_ACEOF
4207172683Smlaiercat confdefs.h >>conftest.$ac_ext
4208172683Smlaiercat >>conftest.$ac_ext <<_ACEOF
4209172683Smlaier/* end confdefs.h.  */
4210172683Smlaier#include <sys/types.h>
4211172683Smlaier#include <sys/socket.h>
4212172683Smlaier
4213172683Smlaier#include <$ac_header>
4214172683Smlaier_ACEOF
4215172683Smlaierrm -f conftest.$ac_objext
4216172683Smlaierif { (ac_try="$ac_compile"
4217172683Smlaiercase "(($ac_try" in
4218172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219172683Smlaier  *) ac_try_echo=$ac_try;;
4220172683Smlaieresac
4221172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222172683Smlaier  (eval "$ac_compile") 2>conftest.er1
4223127668Sbms  ac_status=$?
4224172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4225172683Smlaier  rm -f conftest.er1
4226172683Smlaier  cat conftest.err >&5
4227127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228172683Smlaier  (exit $ac_status); } && {
4229172683Smlaier	 test -z "$ac_c_werror_flag" ||
4230172683Smlaier	 test ! -s conftest.err
4231172683Smlaier       } && test -s conftest.$ac_objext; then
4232127668Sbms  eval "$as_ac_Header=yes"
4233127668Sbmselse
4234127668Sbms  echo "$as_me: failed program was:" >&5
4235127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4236127668Sbms
4237172683Smlaier	eval "$as_ac_Header=no"
4238127668Sbmsfi
4239172683Smlaier
4240172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241127668Sbmsfi
4242172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4243172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4244172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
4245127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
4246127668Sbms  cat >>confdefs.h <<_ACEOF
4247127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248127668Sbms_ACEOF
4249127668Sbms
4250127668Sbmsfi
4251127668Sbms
4252127668Sbmsdone
4253127668Sbms
4254146773Ssamif test "$ac_cv_header_netinet_if_ether_h" != yes; then
4255146773Ssam	#
4256146773Ssam	# The simple test didn't work.
4257146773Ssam	# Do we need to include <net/if.h> first?
4258146773Ssam	# Unset ac_cv_header_netinet_if_ether_h so we don't
4259146773Ssam	# treat the previous failure as a cached value and
4260146773Ssam	# suppress the next test.
4261146773Ssam	#
4262146773Ssam	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4263146773Ssamecho "$as_me: Rechecking with some additional includes" >&6;}
4264146773Ssam	unset ac_cv_header_netinet_if_ether_h
4265146773Ssam
4266146773Ssamfor ac_header in netinet/if_ether.h
4267146773Ssamdo
4268146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4270172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4271172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4272146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
4273146773Ssamelse
4274146773Ssam  cat >conftest.$ac_ext <<_ACEOF
4275146773Ssam/* confdefs.h.  */
4276146773Ssam_ACEOF
4277146773Ssamcat confdefs.h >>conftest.$ac_ext
4278146773Ssamcat >>conftest.$ac_ext <<_ACEOF
4279146773Ssam/* end confdefs.h.  */
4280146773Ssam#include <sys/types.h>
4281146773Ssam#include <sys/socket.h>
4282146773Ssam#include <netinet/in.h>
4283146773Ssamstruct mbuf;
4284146773Ssamstruct rtentry;
4285146773Ssam#include <net/if.h>
4286146773Ssam
4287146773Ssam#include <$ac_header>
4288146773Ssam_ACEOF
4289146773Ssamrm -f conftest.$ac_objext
4290172683Smlaierif { (ac_try="$ac_compile"
4291172683Smlaiercase "(($ac_try" in
4292172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293172683Smlaier  *) ac_try_echo=$ac_try;;
4294172683Smlaieresac
4295172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296172683Smlaier  (eval "$ac_compile") 2>conftest.er1
4297146773Ssam  ac_status=$?
4298172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4299172683Smlaier  rm -f conftest.er1
4300172683Smlaier  cat conftest.err >&5
4301146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302172683Smlaier  (exit $ac_status); } && {
4303172683Smlaier	 test -z "$ac_c_werror_flag" ||
4304172683Smlaier	 test ! -s conftest.err
4305172683Smlaier       } && test -s conftest.$ac_objext; then
4306146773Ssam  eval "$as_ac_Header=yes"
4307146773Ssamelse
4308146773Ssam  echo "$as_me: failed program was:" >&5
4309146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
4310146773Ssam
4311172683Smlaier	eval "$as_ac_Header=no"
4312146773Ssamfi
4313172683Smlaier
4314172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315146773Ssamfi
4316172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4317172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4318172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
4319146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
4320146773Ssam  cat >>confdefs.h <<_ACEOF
4321146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322146773Ssam_ACEOF
4323146773Ssam
4324146773Ssamfi
4325146773Ssam
4326146773Ssamdone
4327146773Ssam
4328146773Ssamfi
4329146773Ssam
4330172683Smlaier{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4331172683Smlaierecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4332127668Sbmsif test "${ac_cv_header_time+set}" = set; then
4333127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
4334127668Sbmselse
4335127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4336127668Sbms/* confdefs.h.  */
4337127668Sbms_ACEOF
4338127668Sbmscat confdefs.h >>conftest.$ac_ext
4339127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4340127668Sbms/* end confdefs.h.  */
4341127668Sbms#include <sys/types.h>
434217680Spst#include <sys/time.h>
434317680Spst#include <time.h>
4344127668Sbms
4345127668Sbmsint
4346127668Sbmsmain ()
4347127668Sbms{
4348127668Sbmsif ((struct tm *) 0)
4349127668Sbmsreturn 0;
4350127668Sbms  ;
4351127668Sbms  return 0;
4352127668Sbms}
4353127668Sbms_ACEOF
4354127668Sbmsrm -f conftest.$ac_objext
4355172683Smlaierif { (ac_try="$ac_compile"
4356172683Smlaiercase "(($ac_try" in
4357172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358172683Smlaier  *) ac_try_echo=$ac_try;;
4359172683Smlaieresac
4360172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361172683Smlaier  (eval "$ac_compile") 2>conftest.er1
4362127668Sbms  ac_status=$?
4363172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4364172683Smlaier  rm -f conftest.er1
4365172683Smlaier  cat conftest.err >&5
4366127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367172683Smlaier  (exit $ac_status); } && {
4368172683Smlaier	 test -z "$ac_c_werror_flag" ||
4369172683Smlaier	 test ! -s conftest.err
4370172683Smlaier       } && test -s conftest.$ac_objext; then
437117680Spst  ac_cv_header_time=yes
437217680Spstelse
4373127668Sbms  echo "$as_me: failed program was:" >&5
4374127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4375127668Sbms
4376172683Smlaier	ac_cv_header_time=no
437717680Spstfi
4378172683Smlaier
4379172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
438017680Spstfi
4381172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4382172683Smlaierecho "${ECHO_T}$ac_cv_header_time" >&6; }
4383127668Sbmsif test $ac_cv_header_time = yes; then
438417680Spst
4385127668Sbmscat >>confdefs.h <<\_ACEOF
438617680Spst#define TIME_WITH_SYS_TIME 1
4387127668Sbms_ACEOF
438817680Spst
438917680Spstfi
439017680Spst
439117680Spst
439298524Sfennercase "$host_os" in
439339297Sfenner
4394236192Sdelphijdarwin*)
4395236192Sdelphij	# Check whether --enable-universal was given.
4396236192Sdelphijif test "${enable_universal+set}" = set; then
4397236192Sdelphij  enableval=$enable_universal;
4398236192Sdelphijfi
4399236192Sdelphij
4400236192Sdelphij	if test "$enable_universal" != "no"; then
4401236192Sdelphij		case "$host_os" in
4402236192Sdelphij
4403236192Sdelphij		darwin9.*)
4404236192Sdelphij			#
4405236192Sdelphij			# Leopard.  Build for x86 and 32-bit PowerPC, with
4406236192Sdelphij			# x86 first.  (That's what Apple does.)
4407236192Sdelphij			#
4408236192Sdelphij			V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4409236192Sdelphij			LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4410236192Sdelphij			;;
4411236192Sdelphij
4412236192Sdelphij		darwin10.*)
4413236192Sdelphij			#
4414236192Sdelphij			# Snow Leopard.  Build for x86-64 and x86, with
4415236192Sdelphij			# x86-64 first.  (That's what Apple does.)
4416236192Sdelphij			#
4417236192Sdelphij			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4418236192Sdelphij			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4419236192Sdelphij			;;
4420236192Sdelphij		esac
4421236192Sdelphij	fi
4422236192Sdelphij	;;
4423236192Sdelphij
442439297Sfennerlinux*)
4425172683Smlaier	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
4426172683Smlaierecho $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
442775115Sfenner 	if test "$cross_compiling" = yes; then
4428127668Sbms 		if test "${ac_cv_linux_vers+set}" = set; then
4429127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
443039297Sfennerelse
443175115Sfenner  ac_cv_linux_vers=unknown
443275115Sfennerfi
443375115Sfenner
443475115Sfenner 	else
4435127668Sbms 		if test "${ac_cv_linux_vers+set}" = set; then
4436127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
443775115Sfennerelse
443839297Sfenner  ac_cv_linux_vers=`uname -r 2>&1 | \
443975115Sfenner 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
444039297Sfennerfi
444139297Sfenner
444275115Sfenner 	fi
4443172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4444172683Smlaierecho "${ECHO_T}$ac_cv_linux_vers" >&6; }
444575115Sfenner 	if test $ac_cv_linux_vers = unknown ; then
4446127668Sbms 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4447127668Sbmsecho "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4448127668Sbms   { (exit 1); exit 1; }; }
444975115Sfenner 	fi
445039297Sfenner	if test $ac_cv_linux_vers -lt 2 ; then
4451127668Sbms		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4452127668Sbmsecho "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4453127668Sbms   { (exit 1); exit 1; }; }
445439297Sfenner	fi
445539297Sfenner	;;
445639297Sfenner
445739297Sfenner*)
445839297Sfenner	;;
445939297Sfenneresac
446039297Sfenner
446156893Sfenner
4462127668Sbms
4463214478Srpaulo# Check whether --with-smi was given.
4464214478Srpauloif test "${with_smi+set}" = set; then
4465214478Srpaulo  withval=$with_smi;
4466214478Srpauloelse
4467214478Srpaulo  with_smi=yes
4468214478Srpaulofi
4469214478Srpaulo
4470214478Srpaulo
4471214478Srpauloif test "x$with_smi" != "xno" ; then
4472214478Srpaulo
4473127668Sbmsfor ac_header in smi.h
447456893Sfennerdo
4475127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477172683Smlaier  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4478172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
4481127668Sbmsfi
4482172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4483172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4484172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
448556893Sfennerelse
4486127668Sbms  # Is the header compilable?
4487172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488172683Smlaierecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4489127668Sbmscat >conftest.$ac_ext <<_ACEOF
4490127668Sbms/* confdefs.h.  */
4491127668Sbms_ACEOF
4492127668Sbmscat confdefs.h >>conftest.$ac_ext
4493127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4494127668Sbms/* end confdefs.h.  */
4495127668Sbms$ac_includes_default
4496127668Sbms#include <$ac_header>
4497127668Sbms_ACEOF
4498127668Sbmsrm -f conftest.$ac_objext
4499172683Smlaierif { (ac_try="$ac_compile"
4500172683Smlaiercase "(($ac_try" in
4501172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502172683Smlaier  *) ac_try_echo=$ac_try;;
4503172683Smlaieresac
4504172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505172683Smlaier  (eval "$ac_compile") 2>conftest.er1
4506127668Sbms  ac_status=$?
4507172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4508172683Smlaier  rm -f conftest.er1
4509172683Smlaier  cat conftest.err >&5
4510127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511172683Smlaier  (exit $ac_status); } && {
4512172683Smlaier	 test -z "$ac_c_werror_flag" ||
4513172683Smlaier	 test ! -s conftest.err
4514172683Smlaier       } && test -s conftest.$ac_objext; then
4515127668Sbms  ac_header_compiler=yes
451656893Sfennerelse
4517127668Sbms  echo "$as_me: failed program was:" >&5
4518127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4519127668Sbms
4520172683Smlaier	ac_header_compiler=no
452156893Sfennerfi
4522127668Sbms
4523172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525172683Smlaierecho "${ECHO_T}$ac_header_compiler" >&6; }
4526172683Smlaier
4527127668Sbms# Is the header present?
4528172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529172683Smlaierecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4530127668Sbmscat >conftest.$ac_ext <<_ACEOF
4531127668Sbms/* confdefs.h.  */
4532127668Sbms_ACEOF
4533127668Sbmscat confdefs.h >>conftest.$ac_ext
4534127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4535127668Sbms/* end confdefs.h.  */
4536127668Sbms#include <$ac_header>
4537127668Sbms_ACEOF
4538172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
4539172683Smlaiercase "(($ac_try" in
4540172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541172683Smlaier  *) ac_try_echo=$ac_try;;
4542172683Smlaieresac
4543172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545127668Sbms  ac_status=$?
4546127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
4547127668Sbms  rm -f conftest.er1
4548127668Sbms  cat conftest.err >&5
4549127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550172683Smlaier  (exit $ac_status); } >/dev/null && {
4551172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552172683Smlaier	 test ! -s conftest.err
4553172683Smlaier       }; then
4554127668Sbms  ac_header_preproc=yes
455556893Sfennerelse
4556127668Sbms  echo "$as_me: failed program was:" >&5
4557127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4558127668Sbms
4559127668Sbms  ac_header_preproc=no
456056893Sfennerfi
4561172683Smlaier
4562127668Sbmsrm -f conftest.err conftest.$ac_ext
4563172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564172683Smlaierecho "${ECHO_T}$ac_header_preproc" >&6; }
4565127668Sbms
4566127668Sbms# So?  What about this header?
4567172683Smlaiercase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4568172683Smlaier  yes:no: )
4569127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572172683Smlaierecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573172683Smlaier    ac_header_preproc=yes
4574127668Sbms    ;;
4575172683Smlaier  no:yes:* )
4576127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4579172683Smlaierecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4580172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581172683Smlaierecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4583172683Smlaierecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4584127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587172683Smlaierecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4588172683Smlaier
4589127668Sbms    ;;
4590127668Sbmsesac
4591172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4592172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4593172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4594127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
4595127668Sbmselse
4596172683Smlaier  eval "$as_ac_Header=\$ac_header_preproc"
4597127668Sbmsfi
4598172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
4599172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4600172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
4601127668Sbms
4602127668Sbmsfi
4603127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
4604127668Sbms  cat >>confdefs.h <<_ACEOF
4605127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606127668Sbms_ACEOF
4607127668Sbms
4608127668Sbmsfi
4609127668Sbms
461056893Sfennerdone
461156893Sfenner
4612127668Sbms
4613172683Smlaier{ echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4614172683Smlaierecho $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4615127668Sbmsif test "${ac_cv_lib_smi_smiInit+set}" = set; then
4616127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
461756893Sfennerelse
4618127668Sbms  ac_check_lib_save_LIBS=$LIBS
461956893SfennerLIBS="-lsmi  $LIBS"
4620127668Sbmscat >conftest.$ac_ext <<_ACEOF
4621127668Sbms/* confdefs.h.  */
4622127668Sbms_ACEOF
4623127668Sbmscat confdefs.h >>conftest.$ac_ext
4624127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4625127668Sbms/* end confdefs.h.  */
4626127668Sbms
4627172683Smlaier/* Override any GCC internal prototype to avoid an error.
4628172683Smlaier   Use char because int might match the return type of a GCC
4629172683Smlaier   builtin and then its argument prototype would still apply.  */
4630127668Sbms#ifdef __cplusplus
4631127668Sbmsextern "C"
4632127668Sbms#endif
4633127668Sbmschar smiInit ();
4634127668Sbmsint
4635127668Sbmsmain ()
4636127668Sbms{
4637172683Smlaierreturn smiInit ();
4638127668Sbms  ;
4639127668Sbms  return 0;
4640127668Sbms}
4641127668Sbms_ACEOF
4642127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
4643172683Smlaierif { (ac_try="$ac_link"
4644172683Smlaiercase "(($ac_try" in
4645172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646172683Smlaier  *) ac_try_echo=$ac_try;;
4647172683Smlaieresac
4648172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649172683Smlaier  (eval "$ac_link") 2>conftest.er1
4650127668Sbms  ac_status=$?
4651172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
4652172683Smlaier  rm -f conftest.er1
4653172683Smlaier  cat conftest.err >&5
4654127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655172683Smlaier  (exit $ac_status); } && {
4656172683Smlaier	 test -z "$ac_c_werror_flag" ||
4657172683Smlaier	 test ! -s conftest.err
4658172683Smlaier       } && test -s conftest$ac_exeext &&
4659172683Smlaier       $as_test_x conftest$ac_exeext; then
4660127668Sbms  ac_cv_lib_smi_smiInit=yes
466156893Sfennerelse
4662127668Sbms  echo "$as_me: failed program was:" >&5
4663127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
466456893Sfenner
4665172683Smlaier	ac_cv_lib_smi_smiInit=no
466656893Sfennerfi
4667172683Smlaier
4668172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4669172683Smlaier      conftest$ac_exeext conftest.$ac_ext
4670127668SbmsLIBS=$ac_check_lib_save_LIBS
4671127668Sbmsfi
4672172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4673172683Smlaierecho "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4674127668Sbmsif test $ac_cv_lib_smi_smiInit = yes; then
4675127668Sbms  cat >>confdefs.h <<_ACEOF
4676127668Sbms#define HAVE_LIBSMI 1
4677127668Sbms_ACEOF
467856893Sfenner
467956893Sfenner  LIBS="-lsmi $LIBS"
468056893Sfenner
468156893Sfennerfi
468256893Sfenner
468398524Sfennerif test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
468498524Sfennerthen
4685172683Smlaier{ echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4686172683Smlaierecho $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
468756893Sfenner        if test "$cross_compiling" = yes; then
4688172683Smlaier   { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4689172683Smlaierecho "${ECHO_T}not when cross-compiling" >&6; }
469075115Sfenner  libsmi=no
469175115Sfenner
469256893Sfennerelse
4693127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4694127668Sbms/* confdefs.h.  */
4695127668Sbms_ACEOF
4696127668Sbmscat confdefs.h >>conftest.$ac_ext
4697127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4698127668Sbms/* end confdefs.h.  */
469956893Sfenner /* libsmi available check */
470056893Sfenner#include <smi.h>
470156893Sfennermain()
470256893Sfenner{
470375115Sfenner  int current, revision, age, n;
470475115Sfenner  const int required = 2;
4705127668Sbms  if (smiInit(""))
470656893Sfenner    exit(1);
470775115Sfenner  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
470875115Sfenner    exit(2);
470975115Sfenner  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
471075115Sfenner  if (n != 3)
471175115Sfenner    exit(3);
471275115Sfenner  if (required < current - age || required > current)
471375115Sfenner    exit(4);
471475115Sfenner  exit(0);
471556893Sfenner}
471656893Sfenner
4717127668Sbms_ACEOF
4718127668Sbmsrm -f conftest$ac_exeext
4719172683Smlaierif { (ac_try="$ac_link"
4720172683Smlaiercase "(($ac_try" in
4721172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722172683Smlaier  *) ac_try_echo=$ac_try;;
4723172683Smlaieresac
4724172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725172683Smlaier  (eval "$ac_link") 2>&5
4726127668Sbms  ac_status=$?
4727127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4729172683Smlaier  { (case "(($ac_try" in
4730172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731172683Smlaier  *) ac_try_echo=$ac_try;;
4732172683Smlaieresac
4733172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734172683Smlaier  (eval "$ac_try") 2>&5
4735127668Sbms  ac_status=$?
4736127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737127668Sbms  (exit $ac_status); }; }; then
4738172683Smlaier   { echo "$as_me:$LINENO: result: yes" >&5
4739172683Smlaierecho "${ECHO_T}yes" >&6; }
4740127668Sbms  cat >>confdefs.h <<\_ACEOF
474156893Sfenner#define LIBSMI 1
4742127668Sbms_ACEOF
474356893Sfenner
474456893Sfenner  libsmi=yes
474556893Sfennerelse
4746127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
4747127668Sbmsecho "$as_me: failed program was:" >&5
4748127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4749127668Sbms
4750127668Sbms( exit $ac_status )
4751127668Sbms case $? in
4752172683Smlaier  1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4753172683Smlaierecho "${ECHO_T}no - smiInit failed" >&6; } ;;
4754172683Smlaier  2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4755172683Smlaierecho "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4756172683Smlaier  3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4757172683Smlaierecho "${ECHO_T}no - can't determine library version" >&6; } ;;
4758172683Smlaier  4) { echo "$as_me:$LINENO: result: no - too old" >&5
4759172683Smlaierecho "${ECHO_T}no - too old" >&6; } ;;
4760172683Smlaier  *) { echo "$as_me:$LINENO: result: no" >&5
4761172683Smlaierecho "${ECHO_T}no" >&6; } ;;
476298524Sfenner  esac
476356893Sfenner  libsmi=no
476456893Sfennerfi
4765172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
476656893Sfennerfi
4767172683Smlaier
4768172683Smlaier
476998524Sfennerfi
4770214478Srpaulofi
477156893Sfenner
4772172683Smlaier{ echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4773172683Smlaierecho $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4774172683Smlaier# Check whether --enable-smb was given.
477598524Sfennerif test "${enable_smb+set}" = set; then
4776172683Smlaier  enableval=$enable_smb;
477798524Sfennerelse
477898524Sfenner  enableval=yes
4779172683Smlaierfi
4780172683Smlaier
478198524Sfennercase "$enableval" in
4782172683Smlaieryes)	{ echo "$as_me:$LINENO: result: yes" >&5
4783172683Smlaierecho "${ECHO_T}yes" >&6; }
4784127668Sbms	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4785127668Sbmsecho "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4786127668Sbms	cat >>confdefs.h <<\_ACEOF
478798524Sfenner#define TCPDUMP_DO_SMB 1
4788127668Sbms_ACEOF
478998524Sfenner
479098524Sfenner	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
479198524Sfenner	;;
4792172683Smlaier*)	{ echo "$as_me:$LINENO: result: no" >&5
4793172683Smlaierecho "${ECHO_T}no" >&6; }
479498524Sfenner	;;
479598524Sfenneresac
479698524Sfenner
4797146773Ssam
4798172683Smlaier# Check whether --with-user was given.
4799146773Ssamif test "${with_user+set}" = set; then
4800172683Smlaier  withval=$with_user;
4801172683Smlaierfi
4802146773Ssam
4803172683Smlaier{ echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4804172683Smlaierecho $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4805146773Ssamif test ! -z "$with_user" ; then
4806146773Ssam        cat >>confdefs.h <<_ACEOF
4807146773Ssam#define WITH_USER "$withval"
4808146773Ssam_ACEOF
4809146773Ssam
4810172683Smlaier       { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4811172683Smlaierecho "${ECHO_T}to \"$withval\"" >&6; }
4812146773Ssamelse
4813172683Smlaier       { echo "$as_me:$LINENO: result: no" >&5
4814172683Smlaierecho "${ECHO_T}no" >&6; }
4815146773Ssamfi
4816146773Ssam
4817146773Ssam
4818172683Smlaier# Check whether --with-chroot was given.
4819146773Ssamif test "${with_chroot+set}" = set; then
4820172683Smlaier  withval=$with_chroot;
4821172683Smlaierfi
4822146773Ssam
4823172683Smlaier{ echo "$as_me:$LINENO: checking whether to chroot" >&5
4824172683Smlaierecho $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4825214478Srpauloif test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4826146773Ssam        cat >>confdefs.h <<_ACEOF
4827146773Ssam#define WITH_CHROOT "$withval"
4828146773Ssam_ACEOF
4829146773Ssam
4830172683Smlaier       { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4831172683Smlaierecho "${ECHO_T}to \"$withval\"" >&6; }
4832146773Ssamelse
4833172683Smlaier       { echo "$as_me:$LINENO: result: no" >&5
4834172683Smlaierecho "${ECHO_T}no" >&6; }
4835146773Ssamfi
4836146773Ssam
4837172683Smlaier{ echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4838172683Smlaierecho $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4839172683Smlaier# Check whether --enable-ipv6 was given.
484056893Sfennerif test "${enable_ipv6+set}" = set; then
4841172683Smlaier  enableval=$enable_ipv6;  case "$enableval" in
4842172683Smlaieryes)   { echo "$as_me:$LINENO: result: yes" >&5
4843172683Smlaierecho "${ECHO_T}yes" >&6; }
4844236192Sdelphij       LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
4845127668Sbms       cat >>confdefs.h <<\_ACEOF
484656893Sfenner#define INET6 1
4847127668Sbms_ACEOF
484856893Sfenner
484956893Sfenner       ipv6=yes
485056893Sfenner       ;;
485156893Sfenner*)
4852172683Smlaier       { echo "$as_me:$LINENO: result: no" >&5
4853172683Smlaierecho "${ECHO_T}no" >&6; }
485456893Sfenner       ipv6=no
485556893Sfenner       ;;
4856127668Sbms  esac
485756893Sfennerelse
485856893Sfenner  if test "$cross_compiling" = yes; then
4859172683Smlaier   { echo "$as_me:$LINENO: result: no" >&5
4860172683Smlaierecho "${ECHO_T}no" >&6; }
486156893Sfenner  ipv6=no
486256893Sfenner
486356893Sfennerelse
4864127668Sbms  cat >conftest.$ac_ext <<_ACEOF
4865127668Sbms/* confdefs.h.  */
4866127668Sbms_ACEOF
4867127668Sbmscat confdefs.h >>conftest.$ac_ext
4868127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4869127668Sbms/* end confdefs.h.  */
487056893Sfenner /* AF_INET6 available check */
487156893Sfenner#include <sys/types.h>
487256893Sfenner#include <sys/socket.h>
487356893Sfennermain()
487456893Sfenner{
487556893Sfenner if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
487656893Sfenner   exit(1);
487756893Sfenner else
487856893Sfenner   exit(0);
487956893Sfenner}
488056893Sfenner
4881127668Sbms_ACEOF
4882127668Sbmsrm -f conftest$ac_exeext
4883172683Smlaierif { (ac_try="$ac_link"
4884172683Smlaiercase "(($ac_try" in
4885172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886172683Smlaier  *) ac_try_echo=$ac_try;;
4887172683Smlaieresac
4888172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889172683Smlaier  (eval "$ac_link") 2>&5
4890127668Sbms  ac_status=$?
4891127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893172683Smlaier  { (case "(($ac_try" in
4894172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895172683Smlaier  *) ac_try_echo=$ac_try;;
4896172683Smlaieresac
4897172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898172683Smlaier  (eval "$ac_try") 2>&5
4899127668Sbms  ac_status=$?
4900127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901127668Sbms  (exit $ac_status); }; }; then
4902172683Smlaier   { echo "$as_me:$LINENO: result: yes" >&5
4903172683Smlaierecho "${ECHO_T}yes" >&6; }
4904236192Sdelphij  LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
4905127668Sbms  cat >>confdefs.h <<\_ACEOF
490656893Sfenner#define INET6 1
4907127668Sbms_ACEOF
490856893Sfenner
490956893Sfenner  ipv6=yes
491056893Sfennerelse
4911127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
4912127668Sbmsecho "$as_me: failed program was:" >&5
4913127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
4914127668Sbms
4915127668Sbms( exit $ac_status )
4916172683Smlaier { echo "$as_me:$LINENO: result: no" >&5
4917172683Smlaierecho "${ECHO_T}no" >&6; }
491856893Sfenner  ipv6=no
491956893Sfennerfi
4920172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
492156893Sfennerfi
492256893Sfenner
4923172683Smlaier
4924172683Smlaierfi
4925172683Smlaier
4926172683Smlaier
492756893Sfenneripv6type=unknown
492856893Sfenneripv6lib=none
492956893Sfenneripv6trylibc=no
493056893Sfenner
493156893Sfennerif test "$ipv6" = "yes"; then
4932172683Smlaier	{ echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4933172683Smlaierecho $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
493456893Sfenner	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
493556893Sfenner		case $i in
493656893Sfenner		inria)
4937127668Sbms						cat >conftest.$ac_ext <<_ACEOF
4938127668Sbms/* confdefs.h.  */
4939127668Sbms_ACEOF
4940127668Sbmscat confdefs.h >>conftest.$ac_ext
4941127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4942127668Sbms/* end confdefs.h.  */
494356893Sfenner#include <netinet/in.h>
494456893Sfenner#ifdef IPV6_INRIA_VERSION
494556893Sfenneryes
494656893Sfenner#endif
4947127668Sbms_ACEOF
494856893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
495056893Sfenner  ipv6type=$i;
495156893Sfenner				CFLAGS="-DINET6 $CFLAGS"
495256893Sfennerfi
4953214478Srpaulorm -f -r conftest*
495456893Sfenner
495556893Sfenner			;;
495656893Sfenner		kame)
4957127668Sbms						cat >conftest.$ac_ext <<_ACEOF
4958127668Sbms/* confdefs.h.  */
4959127668Sbms_ACEOF
4960127668Sbmscat confdefs.h >>conftest.$ac_ext
4961127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4962127668Sbms/* end confdefs.h.  */
496356893Sfenner#include <netinet/in.h>
496456893Sfenner#ifdef __KAME__
496556893Sfenneryes
496656893Sfenner#endif
4967127668Sbms_ACEOF
496856893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
497056893Sfenner  ipv6type=$i;
497156893Sfenner				ipv6lib=inet6;
497256893Sfenner				ipv6libdir=/usr/local/v6/lib;
497356893Sfenner				ipv6trylibc=yes;
497456893Sfenner				CFLAGS="-DINET6 $CFLAGS"
497556893Sfennerfi
4976214478Srpaulorm -f -r conftest*
497756893Sfenner
497856893Sfenner			;;
497956893Sfenner		linux-glibc)
4980127668Sbms						cat >conftest.$ac_ext <<_ACEOF
4981127668Sbms/* confdefs.h.  */
4982127668Sbms_ACEOF
4983127668Sbmscat confdefs.h >>conftest.$ac_ext
4984127668Sbmscat >>conftest.$ac_ext <<_ACEOF
4985127668Sbms/* end confdefs.h.  */
498656893Sfenner#include <features.h>
498756893Sfenner#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
498856893Sfenneryes
498956893Sfenner#endif
4990127668Sbms_ACEOF
499156893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
499356893Sfenner  ipv6type=$i;
499456893Sfenner				CFLAGS="-DINET6 $CFLAGS"
499556893Sfennerfi
4996214478Srpaulorm -f -r conftest*
499756893Sfenner
499856893Sfenner			;;
499956893Sfenner		linux-libinet6)
5000127668Sbms																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
500156893Sfenner				ipv6type=$i
500256893Sfenner				ipv6lib=inet6
500356893Sfenner				ipv6libdir=/usr/inet6/lib
500456893Sfenner				ipv6trylibc=yes;
500556893Sfenner				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
500656893Sfenner			fi
500756893Sfenner			;;
500856893Sfenner		toshiba)
5009127668Sbms			cat >conftest.$ac_ext <<_ACEOF
5010127668Sbms/* confdefs.h.  */
5011127668Sbms_ACEOF
5012127668Sbmscat confdefs.h >>conftest.$ac_ext
5013127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5014127668Sbms/* end confdefs.h.  */
501556893Sfenner#include <sys/param.h>
501656893Sfenner#ifdef _TOSHIBA_INET6
501756893Sfenneryes
501856893Sfenner#endif
5019127668Sbms_ACEOF
502056893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
502256893Sfenner  ipv6type=$i;
502356893Sfenner				ipv6lib=inet6;
502456893Sfenner				ipv6libdir=/usr/local/v6/lib;
502556893Sfenner				CFLAGS="-DINET6 $CFLAGS"
502656893Sfennerfi
5027214478Srpaulorm -f -r conftest*
502856893Sfenner
502956893Sfenner			;;
503056893Sfenner		v6d)
5031127668Sbms			cat >conftest.$ac_ext <<_ACEOF
5032127668Sbms/* confdefs.h.  */
5033127668Sbms_ACEOF
5034127668Sbmscat confdefs.h >>conftest.$ac_ext
5035127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5036127668Sbms/* end confdefs.h.  */
503756893Sfenner#include </usr/local/v6/include/sys/v6config.h>
503856893Sfenner#ifdef __V6D__
503956893Sfenneryes
504056893Sfenner#endif
5041127668Sbms_ACEOF
504256893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
504456893Sfenner  ipv6type=$i;
504556893Sfenner				ipv6lib=v6;
504656893Sfenner				ipv6libdir=/usr/local/v6/lib;
504756893Sfenner				CFLAGS="-I/usr/local/v6/include $CFLAGS"
504856893Sfennerfi
5049214478Srpaulorm -f -r conftest*
505056893Sfenner
505156893Sfenner			;;
505256893Sfenner		zeta)
5053127668Sbms			cat >conftest.$ac_ext <<_ACEOF
5054127668Sbms/* confdefs.h.  */
5055127668Sbms_ACEOF
5056127668Sbmscat confdefs.h >>conftest.$ac_ext
5057127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5058127668Sbms/* end confdefs.h.  */
505956893Sfenner#include <sys/param.h>
506056893Sfenner#ifdef _ZETA_MINAMI_INET6
506156893Sfenneryes
506256893Sfenner#endif
5063127668Sbms_ACEOF
506456893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
506656893Sfenner  ipv6type=$i;
506756893Sfenner				ipv6lib=inet6;
506856893Sfenner				ipv6libdir=/usr/local/v6/lib;
506956893Sfenner				CFLAGS="-DINET6 $CFLAGS"
507056893Sfennerfi
5071214478Srpaulorm -f -r conftest*
507256893Sfenner
507356893Sfenner			;;
507456893Sfenner		esac
507556893Sfenner		if test "$ipv6type" != "unknown"; then
507656893Sfenner			break
507756893Sfenner		fi
507856893Sfenner	done
5079172683Smlaier	{ echo "$as_me:$LINENO: result: $ipv6type" >&5
5080172683Smlaierecho "${ECHO_T}$ipv6type" >&6; }
508156893Sfennerfi
508256893Sfenner
508356893Sfennerif test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
508456893Sfenner	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
508556893Sfenner		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
508656893Sfenner		echo "You have $ipv6lib library, using it"
508756893Sfenner	else
508856893Sfenner		if test "$ipv6trylibc" = "yes"; then
508956893Sfenner			echo "You do not have $ipv6lib library, using libc"
509056893Sfenner		else
509156893Sfenner			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
509256893Sfenner			echo "You need to fetch lib$ipv6lib.a from appropriate"
509356893Sfenner			echo 'ipv6 kit and compile beforehand.'
509456893Sfenner			exit 1
509556893Sfenner		fi
509656893Sfenner	fi
509756893Sfennerfi
509856893Sfenner
509956893Sfenner
510056893Sfennerif test "$ipv6" = "yes"; then
5101127668Sbms	#
5102127668Sbms	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5103127668Sbms	# function in libc; there are "ngetaddrinfo()" and
5104127668Sbms	# "ogetaddrinfo()" functions, and <netdb.h> #defines
5105127668Sbms	# "getaddrinfo" to be either "ngetaddrinfo" or
5106127668Sbms	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5107127668Sbms	# or _XOPEN_SOURCE_EXTENDED are defined or not.
5108127668Sbms	#
5109127668Sbms	# So this test doesn't work on Tru64 5.1, and possibly
5110127668Sbms	# on other 5.x releases.  This causes the configure
5111127668Sbms	# script to become confused, and results in libpcap
5112127668Sbms	# being unbuildable.
5113127668Sbms	#
5114172683Smlaier	{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5115172683Smlaierecho $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5116127668Sbmsif test "${ac_cv_search_getaddrinfo+set}" = set; then
5117127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
511856893Sfennerelse
5119127668Sbms  ac_func_search_save_LIBS=$LIBS
5120127668Sbmscat >conftest.$ac_ext <<_ACEOF
5121127668Sbms/* confdefs.h.  */
5122127668Sbms_ACEOF
5123127668Sbmscat confdefs.h >>conftest.$ac_ext
5124127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5125127668Sbms/* end confdefs.h.  */
5126127668Sbms
5127172683Smlaier/* Override any GCC internal prototype to avoid an error.
5128172683Smlaier   Use char because int might match the return type of a GCC
5129172683Smlaier   builtin and then its argument prototype would still apply.  */
5130127668Sbms#ifdef __cplusplus
5131127668Sbmsextern "C"
5132127668Sbms#endif
5133127668Sbmschar getaddrinfo ();
5134127668Sbmsint
5135127668Sbmsmain ()
5136127668Sbms{
5137172683Smlaierreturn getaddrinfo ();
5138127668Sbms  ;
5139127668Sbms  return 0;
5140127668Sbms}
5141127668Sbms_ACEOF
5142172683Smlaierfor ac_lib in '' socket; do
5143172683Smlaier  if test -z "$ac_lib"; then
5144172683Smlaier    ac_res="none required"
5145172683Smlaier  else
5146172683Smlaier    ac_res=-l$ac_lib
5147172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5148172683Smlaier  fi
5149172683Smlaier  rm -f conftest.$ac_objext conftest$ac_exeext
5150172683Smlaierif { (ac_try="$ac_link"
5151172683Smlaiercase "(($ac_try" in
5152172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153172683Smlaier  *) ac_try_echo=$ac_try;;
5154172683Smlaieresac
5155172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156172683Smlaier  (eval "$ac_link") 2>conftest.er1
5157127668Sbms  ac_status=$?
5158172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5159172683Smlaier  rm -f conftest.er1
5160172683Smlaier  cat conftest.err >&5
5161127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162172683Smlaier  (exit $ac_status); } && {
5163172683Smlaier	 test -z "$ac_c_werror_flag" ||
5164172683Smlaier	 test ! -s conftest.err
5165172683Smlaier       } && test -s conftest$ac_exeext &&
5166172683Smlaier       $as_test_x conftest$ac_exeext; then
5167172683Smlaier  ac_cv_search_getaddrinfo=$ac_res
516875115Sfennerelse
5169127668Sbms  echo "$as_me: failed program was:" >&5
5170127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5171127668Sbms
5172172683Smlaier
517375115Sfennerfi
5174127668Sbms
5175172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5176172683Smlaier      conftest$ac_exeext
5177172683Smlaier  if test "${ac_cv_search_getaddrinfo+set}" = set; then
5178172683Smlaier  break
5179172683Smlaierfi
5180172683Smlaierdone
5181172683Smlaierif test "${ac_cv_search_getaddrinfo+set}" = set; then
5182172683Smlaier  :
518356893Sfennerelse
5184172683Smlaier  ac_cv_search_getaddrinfo=no
518556893Sfennerfi
5186172683Smlaierrm conftest.$ac_ext
5187127668SbmsLIBS=$ac_func_search_save_LIBS
5188127668Sbmsfi
5189172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5190172683Smlaierecho "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5191172683Smlaierac_res=$ac_cv_search_getaddrinfo
5192172683Smlaierif test "$ac_res" != no; then
5193172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5194172683Smlaier  	{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5195172683Smlaierecho $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5196127668Sbms	if test "${td_cv_buggygetaddrinfo+set}" = set; then
5197127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
519856893Sfennerelse
5199127668Sbms  if test "$cross_compiling" = yes; then
5200127668Sbms  td_cv_buggygetaddrinfo=yes
5201127668Sbmselse
5202127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5203127668Sbms/* confdefs.h.  */
5204127668Sbms_ACEOF
5205127668Sbmscat confdefs.h >>conftest.$ac_ext
5206127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5207127668Sbms/* end confdefs.h.  */
520856893Sfenner
520956893Sfenner#include <sys/types.h>
521056893Sfenner#include <netdb.h>
521156893Sfenner#include <string.h>
521256893Sfenner#include <sys/socket.h>
521356893Sfenner#include <netinet/in.h>
521456893Sfenner
521556893Sfennermain()
521656893Sfenner{
521756893Sfenner  int passive, gaierr, inet4 = 0, inet6 = 0;
521856893Sfenner  struct addrinfo hints, *ai, *aitop;
521956893Sfenner  char straddr[INET6_ADDRSTRLEN], strport[16];
522056893Sfenner
522156893Sfenner  for (passive = 0; passive <= 1; passive++) {
522256893Sfenner    memset(&hints, 0, sizeof(hints));
522356893Sfenner    hints.ai_family = AF_UNSPEC;
522456893Sfenner    hints.ai_flags = passive ? AI_PASSIVE : 0;
522556893Sfenner    hints.ai_socktype = SOCK_STREAM;
5226127668Sbms    hints.ai_protocol = IPPROTO_TCP;
522756893Sfenner    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
522856893Sfenner      (void)gai_strerror(gaierr);
522956893Sfenner      goto bad;
523056893Sfenner    }
523156893Sfenner    for (ai = aitop; ai; ai = ai->ai_next) {
523256893Sfenner      if (ai->ai_addr == NULL ||
523356893Sfenner          ai->ai_addrlen == 0 ||
523456893Sfenner          getnameinfo(ai->ai_addr, ai->ai_addrlen,
523556893Sfenner                      straddr, sizeof(straddr), strport, sizeof(strport),
523656893Sfenner                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
523756893Sfenner        goto bad;
523856893Sfenner      }
523956893Sfenner      switch (ai->ai_family) {
524056893Sfenner      case AF_INET:
524156893Sfenner        if (strcmp(strport, "54321") != 0) {
524256893Sfenner          goto bad;
524356893Sfenner        }
524456893Sfenner        if (passive) {
524556893Sfenner          if (strcmp(straddr, "0.0.0.0") != 0) {
524656893Sfenner            goto bad;
524756893Sfenner          }
524856893Sfenner        } else {
524956893Sfenner          if (strcmp(straddr, "127.0.0.1") != 0) {
525056893Sfenner            goto bad;
525156893Sfenner          }
525256893Sfenner        }
525356893Sfenner        inet4++;
525456893Sfenner        break;
525556893Sfenner      case AF_INET6:
525656893Sfenner        if (strcmp(strport, "54321") != 0) {
525756893Sfenner          goto bad;
525856893Sfenner        }
525956893Sfenner        if (passive) {
526056893Sfenner          if (strcmp(straddr, "::") != 0) {
526156893Sfenner            goto bad;
526256893Sfenner          }
526356893Sfenner        } else {
526456893Sfenner          if (strcmp(straddr, "::1") != 0) {
526556893Sfenner            goto bad;
526656893Sfenner          }
526756893Sfenner        }
526856893Sfenner        inet6++;
526956893Sfenner        break;
527056893Sfenner      case AF_UNSPEC:
527156893Sfenner        goto bad;
527256893Sfenner        break;
527356893Sfenner#ifdef AF_UNIX
527456893Sfenner      case AF_UNIX:
527556893Sfenner#else
527656893Sfenner#ifdef AF_LOCAL
527756893Sfenner      case AF_LOCAL:
527856893Sfenner#endif
527956893Sfenner#endif
528056893Sfenner      default:
528156893Sfenner        /* another family support? */
528256893Sfenner        break;
528356893Sfenner      }
528456893Sfenner    }
528556893Sfenner  }
528656893Sfenner
528756893Sfenner  /* supported family should be 2, unsupported family should be 0 */
528856893Sfenner  if (!(inet4 == 0 || inet4 == 2))
528956893Sfenner    goto bad;
529056893Sfenner  if (!(inet6 == 0 || inet6 == 2))
529156893Sfenner    goto bad;
529256893Sfenner
529356893Sfenner  if (aitop)
529456893Sfenner    freeaddrinfo(aitop);
529556893Sfenner  exit(0);
529656893Sfenner
529756893Sfenner bad:
529856893Sfenner  if (aitop)
529956893Sfenner    freeaddrinfo(aitop);
530056893Sfenner  exit(1);
530156893Sfenner}
530256893Sfenner
5303127668Sbms_ACEOF
5304127668Sbmsrm -f conftest$ac_exeext
5305172683Smlaierif { (ac_try="$ac_link"
5306172683Smlaiercase "(($ac_try" in
5307172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308172683Smlaier  *) ac_try_echo=$ac_try;;
5309172683Smlaieresac
5310172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311172683Smlaier  (eval "$ac_link") 2>&5
5312127668Sbms  ac_status=$?
5313127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314127668Sbms  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5315172683Smlaier  { (case "(($ac_try" in
5316172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317172683Smlaier  *) ac_try_echo=$ac_try;;
5318172683Smlaieresac
5319172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320172683Smlaier  (eval "$ac_try") 2>&5
5321127668Sbms  ac_status=$?
5322127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323127668Sbms  (exit $ac_status); }; }; then
5324127668Sbms  td_cv_buggygetaddrinfo=no
532556893Sfennerelse
5326127668Sbms  echo "$as_me: program exited with status $ac_status" >&5
5327127668Sbmsecho "$as_me: failed program was:" >&5
5328127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5329127668Sbms
5330127668Sbms( exit $ac_status )
5331127668Sbmstd_cv_buggygetaddrinfo=yes
533256893Sfennerfi
5333172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
533456893Sfennerfi
5335172683Smlaier
5336172683Smlaier
533756893Sfennerfi
533856893Sfenner
5339127668Sbms	if test "$td_cv_buggygetaddrinfo" = no; then
5340172683Smlaier		{ echo "$as_me:$LINENO: result: good" >&5
5341172683Smlaierecho "${ECHO_T}good" >&6; }
5342127668Sbms	else
5343172683Smlaier		{ echo "$as_me:$LINENO: result: buggy" >&5
5344172683Smlaierecho "${ECHO_T}buggy" >&6; }
5345127668Sbms	fi
5346127668Sbms
5347127668Sbms	if test "$td_cv_buggygetaddrinfo" = "yes"; then
5348127668Sbms		#
5349127668Sbms		# XXX - it doesn't appear that "ipv6type" can ever be
5350127668Sbms		# set to "linux".  Should this be testing for
5351127668Sbms		# "linux-glibc", or for that *or* "linux-libinet6"?
5352127668Sbms		# If the latter, note that "linux-libinet6" is also
5353127668Sbms		# the type given to some non-Linux OSes.
5354127668Sbms		#
535556893Sfenner		if test "$ipv6type" != "linux"; then
535656893Sfenner			echo 'Fatal: You must get working getaddrinfo() function.'
535756893Sfenner			echo '       or you can specify "--disable-ipv6"'.
535856893Sfenner			exit 1
535956893Sfenner		else
536056893Sfenner			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5361127668Sbms			echo '         Better upgrade your system library to newest version'
536256893Sfenner			echo '         of GNU C library (aka glibc).'
536356893Sfenner		fi
536456893Sfenner	fi
5365127668Sbms
5366127668Sbmsfi
5367127668Sbms
5368127668Sbms
5369214478Srpaulofor ac_func in getnameinfo
537056893Sfennerdo
5371127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5372172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5373172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5374172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5375127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
537656893Sfennerelse
5377127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5378127668Sbms/* confdefs.h.  */
5379127668Sbms_ACEOF
5380127668Sbmscat confdefs.h >>conftest.$ac_ext
5381127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5382127668Sbms/* end confdefs.h.  */
5383172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5384172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5385172683Smlaier#define $ac_func innocuous_$ac_func
5386172683Smlaier
538756893Sfenner/* System header to define __stub macros and hopefully few prototypes,
5388127668Sbms    which can conflict with char $ac_func (); below.
5389127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390127668Sbms    <limits.h> exists even on freestanding compilers.  */
5391172683Smlaier
5392127668Sbms#ifdef __STDC__
5393127668Sbms# include <limits.h>
5394127668Sbms#else
5395127668Sbms# include <assert.h>
5396127668Sbms#endif
5397172683Smlaier
5398172683Smlaier#undef $ac_func
5399172683Smlaier
5400172683Smlaier/* Override any GCC internal prototype to avoid an error.
5401172683Smlaier   Use char because int might match the return type of a GCC
5402172683Smlaier   builtin and then its argument prototype would still apply.  */
5403127668Sbms#ifdef __cplusplus
5404127668Sbmsextern "C"
5405127668Sbms#endif
5406127668Sbmschar $ac_func ();
540756893Sfenner/* The GNU C library defines this for functions which it implements
540856893Sfenner    to always fail with ENOSYS.  Some functions are actually named
540956893Sfenner    something starting with __ and the normal name is an alias.  */
5410172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
541156893Sfennerchoke me
541256893Sfenner#endif
541356893Sfenner
5414127668Sbmsint
5415127668Sbmsmain ()
5416127668Sbms{
5417172683Smlaierreturn $ac_func ();
5418127668Sbms  ;
5419127668Sbms  return 0;
5420127668Sbms}
5421127668Sbms_ACEOF
5422127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
5423172683Smlaierif { (ac_try="$ac_link"
5424172683Smlaiercase "(($ac_try" in
5425172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426172683Smlaier  *) ac_try_echo=$ac_try;;
5427172683Smlaieresac
5428172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429172683Smlaier  (eval "$ac_link") 2>conftest.er1
5430127668Sbms  ac_status=$?
5431172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5432172683Smlaier  rm -f conftest.er1
5433172683Smlaier  cat conftest.err >&5
5434127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435172683Smlaier  (exit $ac_status); } && {
5436172683Smlaier	 test -z "$ac_c_werror_flag" ||
5437172683Smlaier	 test ! -s conftest.err
5438172683Smlaier       } && test -s conftest$ac_exeext &&
5439172683Smlaier       $as_test_x conftest$ac_exeext; then
5440127668Sbms  eval "$as_ac_var=yes"
544156893Sfennerelse
5442127668Sbms  echo "$as_me: failed program was:" >&5
5443127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5444127668Sbms
5445172683Smlaier	eval "$as_ac_var=no"
544656893Sfennerfi
5447172683Smlaier
5448172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5449172683Smlaier      conftest$ac_exeext conftest.$ac_ext
545056893Sfennerfi
5451172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
5452172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5453172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
5454127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
5455127668Sbms  cat >>confdefs.h <<_ACEOF
5456127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5457127668Sbms_ACEOF
545856893Sfenner
545956893Sfennerelse
5460172683Smlaier  case " $LIBOBJS " in
5461172683Smlaier  *" $ac_func.$ac_objext "* ) ;;
5462172683Smlaier  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5463172683Smlaier ;;
5464172683Smlaieresac
5465172683Smlaier
546656893Sfennerfi
546756893Sfennerdone
546856893Sfenner
546956893Sfenner
547056893Sfennerfi
5471127668Sbms
5472172683Smlaier{ echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5473172683Smlaierecho $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5474127668Sbmsif test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5475127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
547675115Sfennerelse
5477127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5478127668Sbms/* confdefs.h.  */
5479127668Sbms_ACEOF
5480127668Sbmscat confdefs.h >>conftest.$ac_ext
5481127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5482127668Sbms/* end confdefs.h.  */
5483127668Sbms#include <netdnet/dnetdb.h>
5484127668Sbms
5485127668Sbms_ACEOF
5486127668Sbmsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487127668Sbms  $EGREP "dnet_htoa" >/dev/null 2>&1; then
5488127668Sbms  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
548956893Sfennerelse
5490127668Sbms  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5491127668Sbmsfi
5492214478Srpaulorm -f -r conftest*
549356893Sfenner
5494127668Sbmsfi
5495172683Smlaier{ echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5496172683Smlaierecho "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5497127668Sbmsif test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5498127668Sbms	cat >>confdefs.h <<\_ACEOF
5499127668Sbms#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5500127668Sbms_ACEOF
550156893Sfenner
5502127668Sbmsfi
550356893Sfenner
5504127668Sbms
5505172683Smlaier	{ echo "$as_me:$LINENO: checking for addrinfo" >&5
5506172683Smlaierecho $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5507127668Sbms	if test "${ac_cv_addrinfo+set}" = set; then
5508127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
550956893Sfennerelse
5510127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5511127668Sbms/* confdefs.h.  */
5512127668Sbms_ACEOF
5513127668Sbmscat confdefs.h >>conftest.$ac_ext
5514127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5515127668Sbms/* end confdefs.h.  */
551656893Sfenner
551756893Sfenner#		include <netdb.h>
5518127668Sbmsint
5519127668Sbmsmain ()
5520127668Sbms{
552156893Sfennerstruct addrinfo a
5522127668Sbms  ;
5523127668Sbms  return 0;
5524127668Sbms}
5525127668Sbms_ACEOF
5526127668Sbmsrm -f conftest.$ac_objext
5527172683Smlaierif { (ac_try="$ac_compile"
5528172683Smlaiercase "(($ac_try" in
5529172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530172683Smlaier  *) ac_try_echo=$ac_try;;
5531172683Smlaieresac
5532172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533172683Smlaier  (eval "$ac_compile") 2>conftest.er1
5534127668Sbms  ac_status=$?
5535172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5536172683Smlaier  rm -f conftest.er1
5537172683Smlaier  cat conftest.err >&5
5538127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539172683Smlaier  (exit $ac_status); } && {
5540172683Smlaier	 test -z "$ac_c_werror_flag" ||
5541172683Smlaier	 test ! -s conftest.err
5542172683Smlaier       } && test -s conftest.$ac_objext; then
554356893Sfenner  ac_cv_addrinfo=yes
554456893Sfennerelse
5545127668Sbms  echo "$as_me: failed program was:" >&5
5546127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5547127668Sbms
5548172683Smlaier	ac_cv_addrinfo=no
554956893Sfennerfi
5550172683Smlaier
5551172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
555256893Sfennerfi
555356893Sfenner
5554172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5555172683Smlaierecho "${ECHO_T}$ac_cv_addrinfo" >&6; }
555656893Sfenner	if test $ac_cv_addrinfo = yes; then
5557127668Sbms		cat >>confdefs.h <<\_ACEOF
555856893Sfenner#define HAVE_ADDRINFO 1
5559127668Sbms_ACEOF
556056893Sfenner
556156893Sfenner	else
5562127668Sbms		cat >>confdefs.h <<\_ACEOF
556356893Sfenner#define NEED_ADDRINFO_H 1
5564127668Sbms_ACEOF
556556893Sfenner
556656893Sfenner	fi
556756893Sfenner
556856893Sfennerif test "$ac_cv_addrinfo" = no; then
556956893Sfenner	missing_includes=yes
557056893Sfennerfi
557156893Sfenner
557256893Sfenner
5573172683Smlaier	{ echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5574172683Smlaierecho $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5575127668Sbms	if test "${ac_cv_maxserv+set}" = set; then
5576127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
557756893Sfennerelse
5578127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5579127668Sbms/* confdefs.h.  */
5580127668Sbms_ACEOF
5581127668Sbmscat confdefs.h >>conftest.$ac_ext
5582127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5583127668Sbms/* end confdefs.h.  */
558456893Sfenner#include <netdb.h>
558556893Sfenner#ifdef NI_MAXSERV
558656893Sfenneryes
558756893Sfenner#endif
5588127668Sbms_ACEOF
558956893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
559156893Sfenner  ac_cv_maxserv=yes
559256893Sfennerelse
559356893Sfenner  ac_cv_maxserv=no
559456893Sfennerfi
5595214478Srpaulorm -f -r conftest*
559656893Sfenner
559756893Sfennerfi
559856893Sfenner
5599172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5600172683Smlaierecho "${ECHO_T}$ac_cv_maxserv" >&6; }
560156893Sfenner	if test $ac_cv_maxserv != yes; then
5602127668Sbms		cat >>confdefs.h <<\_ACEOF
560356893Sfenner#define NEED_ADDRINFO_H 1
5604127668Sbms_ACEOF
560556893Sfenner
560656893Sfenner	fi
560756893Sfenner
560856893Sfennerif test "$ac_cv_maxserv" = no; then
560956893Sfenner	missing_includes=yes
561056893Sfennerfi
561156893Sfenner
561256893Sfenner
5613172683Smlaier	{ echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5614172683Smlaierecho $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5615127668Sbms	if test "${ac_cv_namereqd+set}" = set; then
5616127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
561756893Sfennerelse
5618127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5619127668Sbms/* confdefs.h.  */
5620127668Sbms_ACEOF
5621127668Sbmscat confdefs.h >>conftest.$ac_ext
5622127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5623127668Sbms/* end confdefs.h.  */
562456893Sfenner#include <netdb.h>
562556893Sfenner#ifdef NI_NOFQDN
562656893Sfenneryes
562756893Sfenner#endif
5628127668Sbms_ACEOF
562956893Sfennerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630127668Sbms  $EGREP "yes" >/dev/null 2>&1; then
563156893Sfenner  ac_cv_namereqd=yes
563256893Sfennerelse
563356893Sfenner  ac_cv_namereqd=no
563456893Sfennerfi
5635214478Srpaulorm -f -r conftest*
563656893Sfenner
563756893Sfennerfi
563856893Sfenner
5639172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5640172683Smlaierecho "${ECHO_T}$ac_cv_namereqd" >&6; }
564156893Sfenner	if test $ac_cv_namereqd != yes; then
5642127668Sbms		cat >>confdefs.h <<\_ACEOF
564356893Sfenner#define NEED_ADDRINFO_H 1
5644127668Sbms_ACEOF
564556893Sfenner
564656893Sfenner	fi
564756893Sfenner
564856893Sfennerif test "$ac_cv_namereqd" = no; then
564956893Sfenner	missing_includes=yes
565056893Sfennerfi
565156893Sfenner
565256893Sfenner
5653172683Smlaier	{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5654172683Smlaierecho $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5655127668Sbms	if test "${ac_cv_sa_storage+set}" = set; then
5656127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
565756893Sfennerelse
5658127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5659127668Sbms/* confdefs.h.  */
5660127668Sbms_ACEOF
5661127668Sbmscat confdefs.h >>conftest.$ac_ext
5662127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5663127668Sbms/* end confdefs.h.  */
566456893Sfenner
566556893Sfenner#		include <sys/types.h>
566656893Sfenner#		include <sys/socket.h>
5667127668Sbmsint
5668127668Sbmsmain ()
5669127668Sbms{
567056893Sfennerstruct sockaddr_storage s
5671127668Sbms  ;
5672127668Sbms  return 0;
5673127668Sbms}
5674127668Sbms_ACEOF
5675127668Sbmsrm -f conftest.$ac_objext
5676172683Smlaierif { (ac_try="$ac_compile"
5677172683Smlaiercase "(($ac_try" in
5678172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679172683Smlaier  *) ac_try_echo=$ac_try;;
5680172683Smlaieresac
5681172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682172683Smlaier  (eval "$ac_compile") 2>conftest.er1
5683127668Sbms  ac_status=$?
5684172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5685172683Smlaier  rm -f conftest.er1
5686172683Smlaier  cat conftest.err >&5
5687127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688172683Smlaier  (exit $ac_status); } && {
5689172683Smlaier	 test -z "$ac_c_werror_flag" ||
5690172683Smlaier	 test ! -s conftest.err
5691172683Smlaier       } && test -s conftest.$ac_objext; then
569256893Sfenner  ac_cv_sa_storage=yes
569356893Sfennerelse
5694127668Sbms  echo "$as_me: failed program was:" >&5
5695127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5696127668Sbms
5697172683Smlaier	ac_cv_sa_storage=no
569856893Sfennerfi
5699172683Smlaier
5700172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
570156893Sfennerfi
570256893Sfenner
5703172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5704172683Smlaierecho "${ECHO_T}$ac_cv_sa_storage" >&6; }
570556893Sfenner	if test $ac_cv_sa_storage = yes; then
5706127668Sbms		cat >>confdefs.h <<\_ACEOF
570756893Sfenner#define HAVE_SOCKADDR_STORAGE 1
5708127668Sbms_ACEOF
570956893Sfenner
571056893Sfenner	fi
571156893Sfenner
571256893Sfennerif test "$ac_cv_sa_storage" = no; then
571356893Sfenner	missing_includes=yes
571456893Sfennerfi
571556893Sfenner
571656893Sfenner
571756893Sfenner
5718127668Sbms
5719172683Smlaier
572056893Sfenner
572156893Sfenner
5722127668Sbmsfor ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
572317680Spstdo
5724127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5725172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5726172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5727172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5728127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
572917680Spstelse
5730127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5731127668Sbms/* confdefs.h.  */
5732127668Sbms_ACEOF
5733127668Sbmscat confdefs.h >>conftest.$ac_ext
5734127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5735127668Sbms/* end confdefs.h.  */
5736172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5737172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5738172683Smlaier#define $ac_func innocuous_$ac_func
5739172683Smlaier
574017680Spst/* System header to define __stub macros and hopefully few prototypes,
5741127668Sbms    which can conflict with char $ac_func (); below.
5742127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5743127668Sbms    <limits.h> exists even on freestanding compilers.  */
5744172683Smlaier
5745127668Sbms#ifdef __STDC__
5746127668Sbms# include <limits.h>
5747127668Sbms#else
5748127668Sbms# include <assert.h>
5749127668Sbms#endif
5750172683Smlaier
5751172683Smlaier#undef $ac_func
5752172683Smlaier
5753172683Smlaier/* Override any GCC internal prototype to avoid an error.
5754172683Smlaier   Use char because int might match the return type of a GCC
5755172683Smlaier   builtin and then its argument prototype would still apply.  */
5756127668Sbms#ifdef __cplusplus
5757127668Sbmsextern "C"
5758127668Sbms#endif
5759127668Sbmschar $ac_func ();
5760127668Sbms/* The GNU C library defines this for functions which it implements
5761127668Sbms    to always fail with ENOSYS.  Some functions are actually named
5762127668Sbms    something starting with __ and the normal name is an alias.  */
5763172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
5764127668Sbmschoke me
5765127668Sbms#endif
576617680Spst
5767127668Sbmsint
5768127668Sbmsmain ()
5769127668Sbms{
5770172683Smlaierreturn $ac_func ();
5771127668Sbms  ;
5772127668Sbms  return 0;
5773127668Sbms}
5774127668Sbms_ACEOF
5775127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
5776172683Smlaierif { (ac_try="$ac_link"
5777172683Smlaiercase "(($ac_try" in
5778172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779172683Smlaier  *) ac_try_echo=$ac_try;;
5780172683Smlaieresac
5781172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782172683Smlaier  (eval "$ac_link") 2>conftest.er1
5783127668Sbms  ac_status=$?
5784172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5785172683Smlaier  rm -f conftest.er1
5786172683Smlaier  cat conftest.err >&5
5787127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788172683Smlaier  (exit $ac_status); } && {
5789172683Smlaier	 test -z "$ac_c_werror_flag" ||
5790172683Smlaier	 test ! -s conftest.err
5791172683Smlaier       } && test -s conftest$ac_exeext &&
5792172683Smlaier       $as_test_x conftest$ac_exeext; then
5793127668Sbms  eval "$as_ac_var=yes"
5794127668Sbmselse
5795127668Sbms  echo "$as_me: failed program was:" >&5
5796127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
579717680Spst
5798172683Smlaier	eval "$as_ac_var=no"
5799127668Sbmsfi
5800172683Smlaier
5801172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802172683Smlaier      conftest$ac_exeext conftest.$ac_ext
5803127668Sbmsfi
5804172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
5805172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5806172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
5807127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
5808127668Sbms  cat >>confdefs.h <<_ACEOF
5809127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5810127668Sbms_ACEOF
5811127668Sbms
5812127668Sbmselse
5813172683Smlaier  case " $LIBOBJS " in
5814172683Smlaier  *" $ac_func.$ac_objext "* ) ;;
5815172683Smlaier  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5816172683Smlaier ;;
5817172683Smlaieresac
5818172683Smlaier
5819127668Sbmsfi
5820127668Sbmsdone
5821127668Sbms
5822127668Sbms
5823127668Sbms
5824236192Sdelphij
5825236192Sdelphij
5826236192Sdelphijfor ac_func in fork vfork strftime
5827127668Sbmsdo
5828127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5829172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5830172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5831172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5832127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
5833127668Sbmselse
5834127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5835127668Sbms/* confdefs.h.  */
5836127668Sbms_ACEOF
5837127668Sbmscat confdefs.h >>conftest.$ac_ext
5838127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5839127668Sbms/* end confdefs.h.  */
5840172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5841172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5842172683Smlaier#define $ac_func innocuous_$ac_func
5843172683Smlaier
5844127668Sbms/* System header to define __stub macros and hopefully few prototypes,
5845127668Sbms    which can conflict with char $ac_func (); below.
5846127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847127668Sbms    <limits.h> exists even on freestanding compilers.  */
5848172683Smlaier
5849127668Sbms#ifdef __STDC__
5850127668Sbms# include <limits.h>
5851127668Sbms#else
5852127668Sbms# include <assert.h>
5853127668Sbms#endif
5854172683Smlaier
5855172683Smlaier#undef $ac_func
5856172683Smlaier
5857172683Smlaier/* Override any GCC internal prototype to avoid an error.
5858172683Smlaier   Use char because int might match the return type of a GCC
5859172683Smlaier   builtin and then its argument prototype would still apply.  */
5860127668Sbms#ifdef __cplusplus
5861127668Sbmsextern "C"
5862127668Sbms#endif
5863127668Sbmschar $ac_func ();
586417680Spst/* The GNU C library defines this for functions which it implements
586517680Spst    to always fail with ENOSYS.  Some functions are actually named
586617680Spst    something starting with __ and the normal name is an alias.  */
5867172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
586817680Spstchoke me
586917680Spst#endif
587017680Spst
5871127668Sbmsint
5872127668Sbmsmain ()
5873127668Sbms{
5874172683Smlaierreturn $ac_func ();
5875127668Sbms  ;
5876127668Sbms  return 0;
5877127668Sbms}
5878127668Sbms_ACEOF
5879127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
5880172683Smlaierif { (ac_try="$ac_link"
5881172683Smlaiercase "(($ac_try" in
5882172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883172683Smlaier  *) ac_try_echo=$ac_try;;
5884172683Smlaieresac
5885172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886172683Smlaier  (eval "$ac_link") 2>conftest.er1
5887127668Sbms  ac_status=$?
5888172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5889172683Smlaier  rm -f conftest.er1
5890172683Smlaier  cat conftest.err >&5
5891127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892172683Smlaier  (exit $ac_status); } && {
5893172683Smlaier	 test -z "$ac_c_werror_flag" ||
5894172683Smlaier	 test ! -s conftest.err
5895172683Smlaier       } && test -s conftest$ac_exeext &&
5896172683Smlaier       $as_test_x conftest$ac_exeext; then
5897127668Sbms  eval "$as_ac_var=yes"
589817680Spstelse
5899127668Sbms  echo "$as_me: failed program was:" >&5
5900127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5901127668Sbms
5902172683Smlaier	eval "$as_ac_var=no"
590317680Spstfi
5904172683Smlaier
5905172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906172683Smlaier      conftest$ac_exeext conftest.$ac_ext
590726180Sfennerfi
5908172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
5909172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5910172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
5911127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
5912127668Sbms  cat >>confdefs.h <<_ACEOF
5913127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5914127668Sbms_ACEOF
591517680Spst
591617680Spstfi
591717680Spstdone
591817680Spst
591926180Sfenner
592017680Spst
5921146773Ssamfor ac_func in setlinebuf alarm
592275115Sfennerdo
5923127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5924172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5925172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5926172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5927127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
592875115Sfennerelse
5929127668Sbms  cat >conftest.$ac_ext <<_ACEOF
5930127668Sbms/* confdefs.h.  */
5931127668Sbms_ACEOF
5932127668Sbmscat confdefs.h >>conftest.$ac_ext
5933127668Sbmscat >>conftest.$ac_ext <<_ACEOF
5934127668Sbms/* end confdefs.h.  */
5935172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5936172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5937172683Smlaier#define $ac_func innocuous_$ac_func
5938172683Smlaier
593975115Sfenner/* System header to define __stub macros and hopefully few prototypes,
5940127668Sbms    which can conflict with char $ac_func (); below.
5941127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5942127668Sbms    <limits.h> exists even on freestanding compilers.  */
5943172683Smlaier
5944127668Sbms#ifdef __STDC__
5945127668Sbms# include <limits.h>
5946127668Sbms#else
5947127668Sbms# include <assert.h>
5948127668Sbms#endif
5949172683Smlaier
5950172683Smlaier#undef $ac_func
5951172683Smlaier
5952172683Smlaier/* Override any GCC internal prototype to avoid an error.
5953172683Smlaier   Use char because int might match the return type of a GCC
5954172683Smlaier   builtin and then its argument prototype would still apply.  */
5955127668Sbms#ifdef __cplusplus
5956127668Sbmsextern "C"
5957127668Sbms#endif
5958127668Sbmschar $ac_func ();
595975115Sfenner/* The GNU C library defines this for functions which it implements
596075115Sfenner    to always fail with ENOSYS.  Some functions are actually named
596175115Sfenner    something starting with __ and the normal name is an alias.  */
5962172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
596375115Sfennerchoke me
596475115Sfenner#endif
596575115Sfenner
5966127668Sbmsint
5967127668Sbmsmain ()
5968127668Sbms{
5969172683Smlaierreturn $ac_func ();
5970127668Sbms  ;
5971127668Sbms  return 0;
5972127668Sbms}
5973127668Sbms_ACEOF
5974127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
5975172683Smlaierif { (ac_try="$ac_link"
5976172683Smlaiercase "(($ac_try" in
5977172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978172683Smlaier  *) ac_try_echo=$ac_try;;
5979172683Smlaieresac
5980172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981172683Smlaier  (eval "$ac_link") 2>conftest.er1
5982127668Sbms  ac_status=$?
5983172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
5984172683Smlaier  rm -f conftest.er1
5985172683Smlaier  cat conftest.err >&5
5986127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987172683Smlaier  (exit $ac_status); } && {
5988172683Smlaier	 test -z "$ac_c_werror_flag" ||
5989172683Smlaier	 test ! -s conftest.err
5990172683Smlaier       } && test -s conftest$ac_exeext &&
5991172683Smlaier       $as_test_x conftest$ac_exeext; then
5992127668Sbms  eval "$as_ac_var=yes"
599375115Sfennerelse
5994127668Sbms  echo "$as_me: failed program was:" >&5
5995127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
5996127668Sbms
5997172683Smlaier	eval "$as_ac_var=no"
599875115Sfennerfi
5999172683Smlaier
6000172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001172683Smlaier      conftest$ac_exeext conftest.$ac_ext
600275115Sfennerfi
6003172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
6004172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6005172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
6006127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
6007127668Sbms  cat >>confdefs.h <<_ACEOF
6008127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6009127668Sbms_ACEOF
601075115Sfenner
601175115Sfennerfi
601275115Sfennerdone
601375115Sfenner
601475115Sfenner
601575115Sfennerneedsnprintf=no
6016127668Sbms
6017127668Sbms
601875115Sfennerfor ac_func in vsnprintf snprintf
601975115Sfennerdo
6020127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6021172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6022172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6023172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6024127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
602575115Sfennerelse
6026127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6027127668Sbms/* confdefs.h.  */
6028127668Sbms_ACEOF
6029127668Sbmscat confdefs.h >>conftest.$ac_ext
6030127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6031127668Sbms/* end confdefs.h.  */
6032172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6033172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6034172683Smlaier#define $ac_func innocuous_$ac_func
6035172683Smlaier
603675115Sfenner/* System header to define __stub macros and hopefully few prototypes,
6037127668Sbms    which can conflict with char $ac_func (); below.
6038127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039127668Sbms    <limits.h> exists even on freestanding compilers.  */
6040172683Smlaier
6041127668Sbms#ifdef __STDC__
6042127668Sbms# include <limits.h>
6043127668Sbms#else
6044127668Sbms# include <assert.h>
6045127668Sbms#endif
6046172683Smlaier
6047172683Smlaier#undef $ac_func
6048172683Smlaier
6049172683Smlaier/* Override any GCC internal prototype to avoid an error.
6050172683Smlaier   Use char because int might match the return type of a GCC
6051172683Smlaier   builtin and then its argument prototype would still apply.  */
6052127668Sbms#ifdef __cplusplus
6053127668Sbmsextern "C"
6054127668Sbms#endif
6055127668Sbmschar $ac_func ();
605675115Sfenner/* The GNU C library defines this for functions which it implements
605775115Sfenner    to always fail with ENOSYS.  Some functions are actually named
605875115Sfenner    something starting with __ and the normal name is an alias.  */
6059172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
606075115Sfennerchoke me
606175115Sfenner#endif
606275115Sfenner
6063127668Sbmsint
6064127668Sbmsmain ()
6065127668Sbms{
6066172683Smlaierreturn $ac_func ();
6067127668Sbms  ;
6068127668Sbms  return 0;
6069127668Sbms}
6070127668Sbms_ACEOF
6071127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6072172683Smlaierif { (ac_try="$ac_link"
6073172683Smlaiercase "(($ac_try" in
6074172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075172683Smlaier  *) ac_try_echo=$ac_try;;
6076172683Smlaieresac
6077172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078172683Smlaier  (eval "$ac_link") 2>conftest.er1
6079127668Sbms  ac_status=$?
6080172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6081172683Smlaier  rm -f conftest.er1
6082172683Smlaier  cat conftest.err >&5
6083127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084172683Smlaier  (exit $ac_status); } && {
6085172683Smlaier	 test -z "$ac_c_werror_flag" ||
6086172683Smlaier	 test ! -s conftest.err
6087172683Smlaier       } && test -s conftest$ac_exeext &&
6088172683Smlaier       $as_test_x conftest$ac_exeext; then
6089127668Sbms  eval "$as_ac_var=yes"
609075115Sfennerelse
6091127668Sbms  echo "$as_me: failed program was:" >&5
6092127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6093127668Sbms
6094172683Smlaier	eval "$as_ac_var=no"
609575115Sfennerfi
6096172683Smlaier
6097172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098172683Smlaier      conftest$ac_exeext conftest.$ac_ext
609975115Sfennerfi
6100172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
6101172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6102172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
6103127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
6104127668Sbms  cat >>confdefs.h <<_ACEOF
6105127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6106127668Sbms_ACEOF
610775115Sfenner
610875115Sfennerelse
6109127668Sbms  needsnprintf=yes
611075115Sfennerfi
611175115Sfennerdone
611275115Sfenner
611375115Sfennerif test $needsnprintf = yes; then
6114172683Smlaier	case " $LIBOBJS " in
6115172683Smlaier  *" snprintf.$ac_objext "* ) ;;
6116172683Smlaier  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6117172683Smlaier ;;
6118172683Smlaieresac
6119172683Smlaier
612075115Sfennerfi
612175115Sfenner
612226180Sfenner
6123172683Smlaier    { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6124172683Smlaierecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6125127668Sbmsif test "${ac_cv_type_signal+set}" = set; then
6126127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
612717680Spstelse
6128127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6129127668Sbms/* confdefs.h.  */
6130127668Sbms_ACEOF
6131127668Sbmscat confdefs.h >>conftest.$ac_ext
6132127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6133127668Sbms/* end confdefs.h.  */
613439297Sfenner#include <sys/types.h>
613539297Sfenner#include <signal.h>
613639297Sfenner
6137127668Sbmsint
6138127668Sbmsmain ()
6139127668Sbms{
6140172683Smlaierreturn *(signal (0, 0)) (0) == 1;
6141127668Sbms  ;
6142127668Sbms  return 0;
6143127668Sbms}
6144127668Sbms_ACEOF
6145127668Sbmsrm -f conftest.$ac_objext
6146172683Smlaierif { (ac_try="$ac_compile"
6147172683Smlaiercase "(($ac_try" in
6148172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149172683Smlaier  *) ac_try_echo=$ac_try;;
6150172683Smlaieresac
6151172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152172683Smlaier  (eval "$ac_compile") 2>conftest.er1
6153127668Sbms  ac_status=$?
6154172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6155172683Smlaier  rm -f conftest.er1
6156172683Smlaier  cat conftest.err >&5
6157127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158172683Smlaier  (exit $ac_status); } && {
6159172683Smlaier	 test -z "$ac_c_werror_flag" ||
6160172683Smlaier	 test ! -s conftest.err
6161172683Smlaier       } && test -s conftest.$ac_objext; then
6162172683Smlaier  ac_cv_type_signal=int
616339297Sfennerelse
6164127668Sbms  echo "$as_me: failed program was:" >&5
6165127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6166127668Sbms
6167172683Smlaier	ac_cv_type_signal=void
616839297Sfennerfi
6169172683Smlaier
6170172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
617139297Sfennerfi
6172172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6173172683Smlaierecho "${ECHO_T}$ac_cv_type_signal" >&6; }
617439297Sfenner
6175127668Sbmscat >>confdefs.h <<_ACEOF
617639297Sfenner#define RETSIGTYPE $ac_cv_type_signal
6177127668Sbms_ACEOF
617839297Sfenner
617939297Sfenner
618039297Sfenner    if test "$ac_cv_type_signal" = void ; then
6181214478Srpaulo
6182214478Srpaulocat >>confdefs.h <<\_ACEOF
6183127668Sbms#define RETSIGVAL
6184127668Sbms_ACEOF
618539297Sfenner
618639297Sfenner    else
6187214478Srpaulo
6188214478Srpaulocat >>confdefs.h <<\_ACEOF
618939297Sfenner#define RETSIGVAL (0)
6190127668Sbms_ACEOF
619139297Sfenner
619239297Sfenner    fi
619398524Sfenner    case "$host_os" in
619439297Sfenner
619539297Sfenner    irix*)
6196214478Srpaulo
6197214478Srpaulocat >>confdefs.h <<\_ACEOF
619839297Sfenner#define _BSD_SIGNALS 1
6199127668Sbms_ACEOF
620039297Sfenner
620139297Sfenner	    ;;
620239297Sfenner
620339297Sfenner    *)
6204127668Sbms
6205127668Sbmsfor ac_func in sigaction
620639297Sfennerdo
6207127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6208172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6209172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6210172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6211127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
621239297Sfennerelse
6213127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6214127668Sbms/* confdefs.h.  */
6215127668Sbms_ACEOF
6216127668Sbmscat confdefs.h >>conftest.$ac_ext
6217127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6218127668Sbms/* end confdefs.h.  */
6219172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6220172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6221172683Smlaier#define $ac_func innocuous_$ac_func
6222172683Smlaier
622339297Sfenner/* System header to define __stub macros and hopefully few prototypes,
6224127668Sbms    which can conflict with char $ac_func (); below.
6225127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226127668Sbms    <limits.h> exists even on freestanding compilers.  */
6227172683Smlaier
6228127668Sbms#ifdef __STDC__
6229127668Sbms# include <limits.h>
6230127668Sbms#else
6231127668Sbms# include <assert.h>
6232127668Sbms#endif
6233172683Smlaier
6234172683Smlaier#undef $ac_func
6235172683Smlaier
6236172683Smlaier/* Override any GCC internal prototype to avoid an error.
6237172683Smlaier   Use char because int might match the return type of a GCC
6238172683Smlaier   builtin and then its argument prototype would still apply.  */
6239127668Sbms#ifdef __cplusplus
6240127668Sbmsextern "C"
6241127668Sbms#endif
6242127668Sbmschar $ac_func ();
624339297Sfenner/* The GNU C library defines this for functions which it implements
624439297Sfenner    to always fail with ENOSYS.  Some functions are actually named
624539297Sfenner    something starting with __ and the normal name is an alias.  */
6246172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
624739297Sfennerchoke me
624839297Sfenner#endif
624939297Sfenner
6250127668Sbmsint
6251127668Sbmsmain ()
6252127668Sbms{
6253172683Smlaierreturn $ac_func ();
6254127668Sbms  ;
6255127668Sbms  return 0;
6256127668Sbms}
6257127668Sbms_ACEOF
6258127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6259172683Smlaierif { (ac_try="$ac_link"
6260172683Smlaiercase "(($ac_try" in
6261172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262172683Smlaier  *) ac_try_echo=$ac_try;;
6263172683Smlaieresac
6264172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265172683Smlaier  (eval "$ac_link") 2>conftest.er1
6266127668Sbms  ac_status=$?
6267172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6268172683Smlaier  rm -f conftest.er1
6269172683Smlaier  cat conftest.err >&5
6270127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271172683Smlaier  (exit $ac_status); } && {
6272172683Smlaier	 test -z "$ac_c_werror_flag" ||
6273172683Smlaier	 test ! -s conftest.err
6274172683Smlaier       } && test -s conftest$ac_exeext &&
6275172683Smlaier       $as_test_x conftest$ac_exeext; then
6276127668Sbms  eval "$as_ac_var=yes"
627739297Sfennerelse
6278127668Sbms  echo "$as_me: failed program was:" >&5
6279127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6280127668Sbms
6281172683Smlaier	eval "$as_ac_var=no"
628239297Sfennerfi
6283172683Smlaier
6284172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6285172683Smlaier      conftest$ac_exeext conftest.$ac_ext
628639297Sfennerfi
6287172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
6288172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6289172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
6290127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
6291127668Sbms  cat >>confdefs.h <<_ACEOF
6292127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6293127668Sbms_ACEOF
629439297Sfenner
629539297Sfennerfi
629639297Sfennerdone
629739297Sfenner
6298127668Sbms	    if test $ac_cv_func_sigaction = no ; then
6299127668Sbms
6300127668Sbmsfor ac_func in sigset
630139297Sfennerdo
6302127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6303172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6304172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6305172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6306127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
630739297Sfennerelse
6308127668Sbms  cat >conftest.$ac_ext <<_ACEOF
6309127668Sbms/* confdefs.h.  */
6310127668Sbms_ACEOF
6311127668Sbmscat confdefs.h >>conftest.$ac_ext
6312127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6313127668Sbms/* end confdefs.h.  */
6314172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6315172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6316172683Smlaier#define $ac_func innocuous_$ac_func
6317172683Smlaier
631839297Sfenner/* System header to define __stub macros and hopefully few prototypes,
6319127668Sbms    which can conflict with char $ac_func (); below.
6320127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6321127668Sbms    <limits.h> exists even on freestanding compilers.  */
6322172683Smlaier
6323127668Sbms#ifdef __STDC__
6324127668Sbms# include <limits.h>
6325127668Sbms#else
6326127668Sbms# include <assert.h>
6327127668Sbms#endif
6328172683Smlaier
6329172683Smlaier#undef $ac_func
6330172683Smlaier
6331172683Smlaier/* Override any GCC internal prototype to avoid an error.
6332172683Smlaier   Use char because int might match the return type of a GCC
6333172683Smlaier   builtin and then its argument prototype would still apply.  */
6334127668Sbms#ifdef __cplusplus
6335127668Sbmsextern "C"
6336127668Sbms#endif
6337127668Sbmschar $ac_func ();
633839297Sfenner/* The GNU C library defines this for functions which it implements
633939297Sfenner    to always fail with ENOSYS.  Some functions are actually named
634039297Sfenner    something starting with __ and the normal name is an alias.  */
6341172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
634239297Sfennerchoke me
634339297Sfenner#endif
634439297Sfenner
6345127668Sbmsint
6346127668Sbmsmain ()
6347127668Sbms{
6348172683Smlaierreturn $ac_func ();
6349127668Sbms  ;
6350127668Sbms  return 0;
6351127668Sbms}
6352127668Sbms_ACEOF
6353127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6354172683Smlaierif { (ac_try="$ac_link"
6355172683Smlaiercase "(($ac_try" in
6356172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357172683Smlaier  *) ac_try_echo=$ac_try;;
6358172683Smlaieresac
6359172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360172683Smlaier  (eval "$ac_link") 2>conftest.er1
6361127668Sbms  ac_status=$?
6362172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6363172683Smlaier  rm -f conftest.er1
6364172683Smlaier  cat conftest.err >&5
6365127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366172683Smlaier  (exit $ac_status); } && {
6367172683Smlaier	 test -z "$ac_c_werror_flag" ||
6368172683Smlaier	 test ! -s conftest.err
6369172683Smlaier       } && test -s conftest$ac_exeext &&
6370172683Smlaier       $as_test_x conftest$ac_exeext; then
6371127668Sbms  eval "$as_ac_var=yes"
637239297Sfennerelse
6373127668Sbms  echo "$as_me: failed program was:" >&5
6374127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6375127668Sbms
6376172683Smlaier	eval "$as_ac_var=no"
637739297Sfennerfi
6378172683Smlaier
6379172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6380172683Smlaier      conftest$ac_exeext conftest.$ac_ext
638139297Sfennerfi
6382172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
6383172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6384172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
6385127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
6386127668Sbms  cat >>confdefs.h <<_ACEOF
6387127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6388127668Sbms_ACEOF
638939297Sfenner
639039297Sfennerfi
639139297Sfennerdone
639239297Sfenner
639339297Sfenner	    fi
639439297Sfenner	    ;;
639539297Sfenner    esac
639639297Sfenner
6397172683Smlaier{ echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6398172683Smlaierecho $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6399127668Sbmsif test "${ac_cv_search_dnet_htoa+set}" = set; then
6400127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
640139297Sfennerelse
6402127668Sbms  ac_func_search_save_LIBS=$LIBS
6403127668Sbmscat >conftest.$ac_ext <<_ACEOF
6404127668Sbms/* confdefs.h.  */
6405127668Sbms_ACEOF
6406127668Sbmscat confdefs.h >>conftest.$ac_ext
6407127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6408127668Sbms/* end confdefs.h.  */
6409127668Sbms
6410172683Smlaier/* Override any GCC internal prototype to avoid an error.
6411172683Smlaier   Use char because int might match the return type of a GCC
6412172683Smlaier   builtin and then its argument prototype would still apply.  */
6413127668Sbms#ifdef __cplusplus
6414127668Sbmsextern "C"
6415127668Sbms#endif
6416127668Sbmschar dnet_htoa ();
6417127668Sbmsint
6418127668Sbmsmain ()
6419127668Sbms{
6420172683Smlaierreturn dnet_htoa ();
6421127668Sbms  ;
6422127668Sbms  return 0;
6423127668Sbms}
6424127668Sbms_ACEOF
6425172683Smlaierfor ac_lib in '' dnet; do
6426172683Smlaier  if test -z "$ac_lib"; then
6427172683Smlaier    ac_res="none required"
6428172683Smlaier  else
6429172683Smlaier    ac_res=-l$ac_lib
6430172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6431172683Smlaier  fi
6432172683Smlaier  rm -f conftest.$ac_objext conftest$ac_exeext
6433172683Smlaierif { (ac_try="$ac_link"
6434172683Smlaiercase "(($ac_try" in
6435172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436172683Smlaier  *) ac_try_echo=$ac_try;;
6437172683Smlaieresac
6438172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439172683Smlaier  (eval "$ac_link") 2>conftest.er1
6440127668Sbms  ac_status=$?
6441172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6442172683Smlaier  rm -f conftest.er1
6443172683Smlaier  cat conftest.err >&5
6444127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445172683Smlaier  (exit $ac_status); } && {
6446172683Smlaier	 test -z "$ac_c_werror_flag" ||
6447172683Smlaier	 test ! -s conftest.err
6448172683Smlaier       } && test -s conftest$ac_exeext &&
6449172683Smlaier       $as_test_x conftest$ac_exeext; then
6450172683Smlaier  ac_cv_search_dnet_htoa=$ac_res
6451127668Sbmselse
6452127668Sbms  echo "$as_me: failed program was:" >&5
6453127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
645439297Sfenner
6455172683Smlaier
6456127668Sbmsfi
6457127668Sbms
6458172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6459172683Smlaier      conftest$ac_exeext
6460172683Smlaier  if test "${ac_cv_search_dnet_htoa+set}" = set; then
6461172683Smlaier  break
6462172683Smlaierfi
6463172683Smlaierdone
6464172683Smlaierif test "${ac_cv_search_dnet_htoa+set}" = set; then
6465172683Smlaier  :
646639297Sfennerelse
6467172683Smlaier  ac_cv_search_dnet_htoa=no
646839297Sfennerfi
6469172683Smlaierrm conftest.$ac_ext
6470127668SbmsLIBS=$ac_func_search_save_LIBS
6471127668Sbmsfi
6472172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6473172683Smlaierecho "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6474172683Smlaierac_res=$ac_cv_search_dnet_htoa
6475172683Smlaierif test "$ac_res" != no; then
6476172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6477127668Sbms  cat >>confdefs.h <<\_ACEOF
6478127668Sbms#define HAVE_DNET_HTOA 1
6479127668Sbms_ACEOF
648098524Sfenner
648139297Sfennerfi
648239297Sfenner
648398524Sfenner
648498524Sfenner
6485172683Smlaier{ echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6486172683Smlaierecho $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6487127668Sbmsif test "${ac_cv_lib_rpc_main+set}" = set; then
6488127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
648939297Sfennerelse
6490127668Sbms  ac_check_lib_save_LIBS=$LIBS
649198524SfennerLIBS="-lrpc  $LIBS"
6492127668Sbmscat >conftest.$ac_ext <<_ACEOF
6493127668Sbms/* confdefs.h.  */
6494127668Sbms_ACEOF
6495127668Sbmscat confdefs.h >>conftest.$ac_ext
6496127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6497127668Sbms/* end confdefs.h.  */
649817680Spst
6499127668Sbms
6500127668Sbmsint
6501127668Sbmsmain ()
6502127668Sbms{
6503172683Smlaierreturn main ();
6504127668Sbms  ;
6505127668Sbms  return 0;
6506127668Sbms}
6507127668Sbms_ACEOF
6508127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6509172683Smlaierif { (ac_try="$ac_link"
6510172683Smlaiercase "(($ac_try" in
6511172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512172683Smlaier  *) ac_try_echo=$ac_try;;
6513172683Smlaieresac
6514172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515172683Smlaier  (eval "$ac_link") 2>conftest.er1
6516127668Sbms  ac_status=$?
6517172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6518172683Smlaier  rm -f conftest.er1
6519172683Smlaier  cat conftest.err >&5
6520127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521172683Smlaier  (exit $ac_status); } && {
6522172683Smlaier	 test -z "$ac_c_werror_flag" ||
6523172683Smlaier	 test ! -s conftest.err
6524172683Smlaier       } && test -s conftest$ac_exeext &&
6525172683Smlaier       $as_test_x conftest$ac_exeext; then
6526127668Sbms  ac_cv_lib_rpc_main=yes
652717680Spstelse
6528127668Sbms  echo "$as_me: failed program was:" >&5
6529127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
653017680Spst
6531172683Smlaier	ac_cv_lib_rpc_main=no
653217680Spstfi
6533172683Smlaier
6534172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535172683Smlaier      conftest$ac_exeext conftest.$ac_ext
6536127668SbmsLIBS=$ac_check_lib_save_LIBS
6537127668Sbmsfi
6538172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6539172683Smlaierecho "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6540127668Sbmsif test $ac_cv_lib_rpc_main = yes; then
6541127668Sbms  cat >>confdefs.h <<_ACEOF
6542127668Sbms#define HAVE_LIBRPC 1
6543127668Sbms_ACEOF
654417680Spst
654598524Sfenner  LIBS="-lrpc $LIBS"
654617680Spst
654798524Sfennerfi
654898524Sfenner
6549172683Smlaier{ echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6550172683Smlaierecho $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6551127668Sbmsif test "${ac_cv_search_getrpcbynumber+set}" = set; then
6552127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
655339297Sfennerelse
6554127668Sbms  ac_func_search_save_LIBS=$LIBS
6555127668Sbmscat >conftest.$ac_ext <<_ACEOF
6556127668Sbms/* confdefs.h.  */
6557127668Sbms_ACEOF
6558127668Sbmscat confdefs.h >>conftest.$ac_ext
6559127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6560127668Sbms/* end confdefs.h.  */
6561127668Sbms
6562172683Smlaier/* Override any GCC internal prototype to avoid an error.
6563172683Smlaier   Use char because int might match the return type of a GCC
6564172683Smlaier   builtin and then its argument prototype would still apply.  */
6565127668Sbms#ifdef __cplusplus
6566127668Sbmsextern "C"
6567127668Sbms#endif
6568127668Sbmschar getrpcbynumber ();
6569127668Sbmsint
6570127668Sbmsmain ()
6571127668Sbms{
6572172683Smlaierreturn getrpcbynumber ();
6573127668Sbms  ;
6574127668Sbms  return 0;
6575127668Sbms}
6576127668Sbms_ACEOF
6577172683Smlaierfor ac_lib in '' nsl; do
6578172683Smlaier  if test -z "$ac_lib"; then
6579172683Smlaier    ac_res="none required"
6580172683Smlaier  else
6581172683Smlaier    ac_res=-l$ac_lib
6582172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6583172683Smlaier  fi
6584172683Smlaier  rm -f conftest.$ac_objext conftest$ac_exeext
6585172683Smlaierif { (ac_try="$ac_link"
6586172683Smlaiercase "(($ac_try" in
6587172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588172683Smlaier  *) ac_try_echo=$ac_try;;
6589172683Smlaieresac
6590172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591172683Smlaier  (eval "$ac_link") 2>conftest.er1
6592127668Sbms  ac_status=$?
6593172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6594172683Smlaier  rm -f conftest.er1
6595172683Smlaier  cat conftest.err >&5
6596127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597172683Smlaier  (exit $ac_status); } && {
6598172683Smlaier	 test -z "$ac_c_werror_flag" ||
6599172683Smlaier	 test ! -s conftest.err
6600172683Smlaier       } && test -s conftest$ac_exeext &&
6601172683Smlaier       $as_test_x conftest$ac_exeext; then
6602172683Smlaier  ac_cv_search_getrpcbynumber=$ac_res
660339297Sfennerelse
6604127668Sbms  echo "$as_me: failed program was:" >&5
6605127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6606127668Sbms
6607172683Smlaier
660898524Sfennerfi
6609127668Sbms
6610172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6611172683Smlaier      conftest$ac_exeext
6612172683Smlaier  if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6613172683Smlaier  break
6614172683Smlaierfi
6615172683Smlaierdone
6616172683Smlaierif test "${ac_cv_search_getrpcbynumber+set}" = set; then
6617172683Smlaier  :
661898524Sfennerelse
6619172683Smlaier  ac_cv_search_getrpcbynumber=no
662017680Spstfi
6621172683Smlaierrm conftest.$ac_ext
6622127668SbmsLIBS=$ac_func_search_save_LIBS
6623127668Sbmsfi
6624172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6625172683Smlaierecho "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6626172683Smlaierac_res=$ac_cv_search_getrpcbynumber
6627172683Smlaierif test "$ac_res" != no; then
6628172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6629146773Ssam  cat >>confdefs.h <<\_ACEOF
6630146773Ssam#define HAVE_GETRPCBYNUMBER 1
6631146773Ssam_ACEOF
663217680Spst
663339297Sfennerfi
663439297Sfenner
663539297Sfenner
663698524Sfenner
6637127668Sbms
663898524Sfenner    # Most operating systems have gethostbyname() in the default searched
663998524Sfenner    # libraries (i.e. libc):
664098524Sfenner    # Some OSes (eg. Solaris) place it in libnsl
664198524Sfenner    # Some strange OSes (SINIX) have it in libsocket:
6642172683Smlaier    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6643172683Smlaierecho $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6644127668Sbmsif test "${ac_cv_search_gethostbyname+set}" = set; then
6645127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
664639297Sfennerelse
6647127668Sbms  ac_func_search_save_LIBS=$LIBS
6648127668Sbmscat >conftest.$ac_ext <<_ACEOF
6649127668Sbms/* confdefs.h.  */
6650127668Sbms_ACEOF
6651127668Sbmscat confdefs.h >>conftest.$ac_ext
6652127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6653127668Sbms/* end confdefs.h.  */
6654127668Sbms
6655172683Smlaier/* Override any GCC internal prototype to avoid an error.
6656172683Smlaier   Use char because int might match the return type of a GCC
6657172683Smlaier   builtin and then its argument prototype would still apply.  */
6658127668Sbms#ifdef __cplusplus
6659127668Sbmsextern "C"
6660127668Sbms#endif
6661127668Sbmschar gethostbyname ();
6662127668Sbmsint
6663127668Sbmsmain ()
6664127668Sbms{
6665172683Smlaierreturn gethostbyname ();
6666127668Sbms  ;
6667127668Sbms  return 0;
6668127668Sbms}
6669127668Sbms_ACEOF
6670172683Smlaierfor ac_lib in '' nsl socket resolv; do
6671172683Smlaier  if test -z "$ac_lib"; then
6672172683Smlaier    ac_res="none required"
6673172683Smlaier  else
6674172683Smlaier    ac_res=-l$ac_lib
6675172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6676172683Smlaier  fi
6677172683Smlaier  rm -f conftest.$ac_objext conftest$ac_exeext
6678172683Smlaierif { (ac_try="$ac_link"
6679172683Smlaiercase "(($ac_try" in
6680172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681172683Smlaier  *) ac_try_echo=$ac_try;;
6682172683Smlaieresac
6683172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684172683Smlaier  (eval "$ac_link") 2>conftest.er1
6685127668Sbms  ac_status=$?
6686172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6687172683Smlaier  rm -f conftest.er1
6688172683Smlaier  cat conftest.err >&5
6689127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690172683Smlaier  (exit $ac_status); } && {
6691172683Smlaier	 test -z "$ac_c_werror_flag" ||
6692172683Smlaier	 test ! -s conftest.err
6693172683Smlaier       } && test -s conftest$ac_exeext &&
6694172683Smlaier       $as_test_x conftest$ac_exeext; then
6695172683Smlaier  ac_cv_search_gethostbyname=$ac_res
669639297Sfennerelse
6697127668Sbms  echo "$as_me: failed program was:" >&5
6698127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6699127668Sbms
6700172683Smlaier
670198524Sfennerfi
6702127668Sbms
6703172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704172683Smlaier      conftest$ac_exeext
6705172683Smlaier  if test "${ac_cv_search_gethostbyname+set}" = set; then
6706172683Smlaier  break
6707172683Smlaierfi
6708172683Smlaierdone
6709172683Smlaierif test "${ac_cv_search_gethostbyname+set}" = set; then
6710172683Smlaier  :
671198524Sfennerelse
6712172683Smlaier  ac_cv_search_gethostbyname=no
671339297Sfennerfi
6714172683Smlaierrm conftest.$ac_ext
6715127668SbmsLIBS=$ac_func_search_save_LIBS
6716127668Sbmsfi
6717172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6718172683Smlaierecho "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6719172683Smlaierac_res=$ac_cv_search_gethostbyname
6720172683Smlaierif test "$ac_res" != no; then
6721172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
672239297Sfenner
672339297Sfennerfi
6724127668Sbms
672598524Sfenner    # Unfortunately libsocket sometimes depends on libnsl and
672698524Sfenner    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
672798524Sfenner    if test "$ac_cv_search_gethostbyname" = "no"
672898524Sfenner    then
6729172683Smlaier	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6730172683Smlaierecho $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6731127668Sbmsif test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6732127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
673317680Spstelse
6734127668Sbms  ac_check_lib_save_LIBS=$LIBS
673598524SfennerLIBS="-lsocket -lnsl $LIBS"
6736127668Sbmscat >conftest.$ac_ext <<_ACEOF
6737127668Sbms/* confdefs.h.  */
6738127668Sbms_ACEOF
6739127668Sbmscat confdefs.h >>conftest.$ac_ext
6740127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6741127668Sbms/* end confdefs.h.  */
6742127668Sbms
6743172683Smlaier/* Override any GCC internal prototype to avoid an error.
6744172683Smlaier   Use char because int might match the return type of a GCC
6745172683Smlaier   builtin and then its argument prototype would still apply.  */
6746127668Sbms#ifdef __cplusplus
6747127668Sbmsextern "C"
6748127668Sbms#endif
6749127668Sbmschar gethostbyname ();
6750127668Sbmsint
6751127668Sbmsmain ()
6752127668Sbms{
6753172683Smlaierreturn gethostbyname ();
6754127668Sbms  ;
6755127668Sbms  return 0;
6756127668Sbms}
6757127668Sbms_ACEOF
6758127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6759172683Smlaierif { (ac_try="$ac_link"
6760172683Smlaiercase "(($ac_try" in
6761172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762172683Smlaier  *) ac_try_echo=$ac_try;;
6763172683Smlaieresac
6764172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765172683Smlaier  (eval "$ac_link") 2>conftest.er1
6766127668Sbms  ac_status=$?
6767172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6768172683Smlaier  rm -f conftest.er1
6769172683Smlaier  cat conftest.err >&5
6770127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771172683Smlaier  (exit $ac_status); } && {
6772172683Smlaier	 test -z "$ac_c_werror_flag" ||
6773172683Smlaier	 test ! -s conftest.err
6774172683Smlaier       } && test -s conftest$ac_exeext &&
6775172683Smlaier       $as_test_x conftest$ac_exeext; then
6776127668Sbms  ac_cv_lib_socket_gethostbyname=yes
677717680Spstelse
6778127668Sbms  echo "$as_me: failed program was:" >&5
6779127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
678017680Spst
6781172683Smlaier	ac_cv_lib_socket_gethostbyname=no
678217680Spstfi
6783172683Smlaier
6784172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6785172683Smlaier      conftest$ac_exeext conftest.$ac_ext
6786127668SbmsLIBS=$ac_check_lib_save_LIBS
6787127668Sbmsfi
6788172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6789172683Smlaierecho "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6790127668Sbmsif test $ac_cv_lib_socket_gethostbyname = yes; then
679198524Sfenner  LIBS="-lsocket -lnsl $LIBS"
679217680Spstfi
679317680Spst
679498524Sfenner    fi
6795172683Smlaier    { echo "$as_me:$LINENO: checking for library containing socket" >&5
6796172683Smlaierecho $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6797127668Sbmsif test "${ac_cv_search_socket+set}" = set; then
6798127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
679939297Sfennerelse
6800127668Sbms  ac_func_search_save_LIBS=$LIBS
6801127668Sbmscat >conftest.$ac_ext <<_ACEOF
6802127668Sbms/* confdefs.h.  */
6803127668Sbms_ACEOF
6804127668Sbmscat confdefs.h >>conftest.$ac_ext
6805127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6806127668Sbms/* end confdefs.h.  */
6807127668Sbms
6808172683Smlaier/* Override any GCC internal prototype to avoid an error.
6809172683Smlaier   Use char because int might match the return type of a GCC
6810172683Smlaier   builtin and then its argument prototype would still apply.  */
6811127668Sbms#ifdef __cplusplus
6812127668Sbmsextern "C"
6813127668Sbms#endif
6814127668Sbmschar socket ();
6815127668Sbmsint
6816127668Sbmsmain ()
6817127668Sbms{
6818172683Smlaierreturn socket ();
6819127668Sbms  ;
6820127668Sbms  return 0;
6821127668Sbms}
6822127668Sbms_ACEOF
6823172683Smlaierfor ac_lib in '' socket; do
6824172683Smlaier  if test -z "$ac_lib"; then
6825172683Smlaier    ac_res="none required"
6826172683Smlaier  else
6827172683Smlaier    ac_res=-l$ac_lib
6828172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6829172683Smlaier  fi
6830172683Smlaier  rm -f conftest.$ac_objext conftest$ac_exeext
6831172683Smlaierif { (ac_try="$ac_link"
6832172683Smlaiercase "(($ac_try" in
6833172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834172683Smlaier  *) ac_try_echo=$ac_try;;
6835172683Smlaieresac
6836172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837172683Smlaier  (eval "$ac_link") 2>conftest.er1
6838127668Sbms  ac_status=$?
6839172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6840172683Smlaier  rm -f conftest.er1
6841172683Smlaier  cat conftest.err >&5
6842127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843172683Smlaier  (exit $ac_status); } && {
6844172683Smlaier	 test -z "$ac_c_werror_flag" ||
6845172683Smlaier	 test ! -s conftest.err
6846172683Smlaier       } && test -s conftest$ac_exeext &&
6847172683Smlaier       $as_test_x conftest$ac_exeext; then
6848172683Smlaier  ac_cv_search_socket=$ac_res
684939297Sfennerelse
6850127668Sbms  echo "$as_me: failed program was:" >&5
6851127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
6852127668Sbms
6853172683Smlaier
685439297Sfennerfi
6855127668Sbms
6856172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6857172683Smlaier      conftest$ac_exeext
6858172683Smlaier  if test "${ac_cv_search_socket+set}" = set; then
6859172683Smlaier  break
6860172683Smlaierfi
6861172683Smlaierdone
6862172683Smlaierif test "${ac_cv_search_socket+set}" = set; then
6863172683Smlaier  :
686417680Spstelse
6865172683Smlaier  ac_cv_search_socket=no
686617680Spstfi
6867172683Smlaierrm conftest.$ac_ext
6868127668SbmsLIBS=$ac_func_search_save_LIBS
6869127668Sbmsfi
6870172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6871172683Smlaierecho "${ECHO_T}$ac_cv_search_socket" >&6; }
6872172683Smlaierac_res=$ac_cv_search_socket
6873172683Smlaierif test "$ac_res" != no; then
6874172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
687517680Spst
687639297Sfennerelse
6877172683Smlaier  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6878172683Smlaierecho $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6879127668Sbmsif test "${ac_cv_lib_socket_socket+set}" = set; then
6880127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
6881127668Sbmselse
6882127668Sbms  ac_check_lib_save_LIBS=$LIBS
688339297SfennerLIBS="-lsocket -lnsl $LIBS"
6884127668Sbmscat >conftest.$ac_ext <<_ACEOF
6885127668Sbms/* confdefs.h.  */
6886127668Sbms_ACEOF
6887127668Sbmscat confdefs.h >>conftest.$ac_ext
6888127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6889127668Sbms/* end confdefs.h.  */
6890127668Sbms
6891172683Smlaier/* Override any GCC internal prototype to avoid an error.
6892172683Smlaier   Use char because int might match the return type of a GCC
6893172683Smlaier   builtin and then its argument prototype would still apply.  */
6894127668Sbms#ifdef __cplusplus
6895127668Sbmsextern "C"
6896127668Sbms#endif
6897127668Sbmschar socket ();
6898127668Sbmsint
6899127668Sbmsmain ()
6900127668Sbms{
6901172683Smlaierreturn socket ();
6902127668Sbms  ;
6903127668Sbms  return 0;
6904127668Sbms}
6905127668Sbms_ACEOF
6906127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
6907172683Smlaierif { (ac_try="$ac_link"
6908172683Smlaiercase "(($ac_try" in
6909172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910172683Smlaier  *) ac_try_echo=$ac_try;;
6911172683Smlaieresac
6912172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913172683Smlaier  (eval "$ac_link") 2>conftest.er1
6914127668Sbms  ac_status=$?
6915172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6916172683Smlaier  rm -f conftest.er1
6917172683Smlaier  cat conftest.err >&5
6918127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919172683Smlaier  (exit $ac_status); } && {
6920172683Smlaier	 test -z "$ac_c_werror_flag" ||
6921172683Smlaier	 test ! -s conftest.err
6922172683Smlaier       } && test -s conftest$ac_exeext &&
6923172683Smlaier       $as_test_x conftest$ac_exeext; then
6924127668Sbms  ac_cv_lib_socket_socket=yes
692539297Sfennerelse
6926127668Sbms  echo "$as_me: failed program was:" >&5
6927127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
692817680Spst
6929172683Smlaier	ac_cv_lib_socket_socket=no
693039297Sfennerfi
6931172683Smlaier
6932172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6933172683Smlaier      conftest$ac_exeext conftest.$ac_ext
6934127668SbmsLIBS=$ac_check_lib_save_LIBS
6935127668Sbmsfi
6936172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6937172683Smlaierecho "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6938127668Sbmsif test $ac_cv_lib_socket_socket = yes; then
693939297Sfenner  LIBS="-lsocket -lnsl $LIBS"
694039297Sfennerfi
694117680Spst
694239297Sfennerfi
6943127668Sbms
694439297Sfenner    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6945172683Smlaier    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6946172683Smlaierecho $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6947127668Sbmsif test "${ac_cv_search_putmsg+set}" = set; then
6948127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
694939297Sfennerelse
6950127668Sbms  ac_func_search_save_LIBS=$LIBS
6951127668Sbmscat >conftest.$ac_ext <<_ACEOF
6952127668Sbms/* confdefs.h.  */
6953127668Sbms_ACEOF
6954127668Sbmscat confdefs.h >>conftest.$ac_ext
6955127668Sbmscat >>conftest.$ac_ext <<_ACEOF
6956127668Sbms/* end confdefs.h.  */
6957127668Sbms
6958172683Smlaier/* Override any GCC internal prototype to avoid an error.
6959172683Smlaier   Use char because int might match the return type of a GCC
6960172683Smlaier   builtin and then its argument prototype would still apply.  */
6961127668Sbms#ifdef __cplusplus
6962127668Sbmsextern "C"
6963127668Sbms#endif
6964127668Sbmschar putmsg ();
6965127668Sbmsint
6966127668Sbmsmain ()
6967127668Sbms{
6968172683Smlaierreturn putmsg ();
6969127668Sbms  ;
6970127668Sbms  return 0;
6971127668Sbms}
6972127668Sbms_ACEOF
6973172683Smlaierfor ac_lib in '' str; do
6974172683Smlaier  if test -z "$ac_lib"; then
6975172683Smlaier    ac_res="none required"
6976172683Smlaier  else
6977172683Smlaier    ac_res=-l$ac_lib
6978172683Smlaier    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6979172683Smlaier  fi
6980172683Smlaier  rm -f conftest.$ac_objext conftest$ac_exeext
6981172683Smlaierif { (ac_try="$ac_link"
6982172683Smlaiercase "(($ac_try" in
6983172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984172683Smlaier  *) ac_try_echo=$ac_try;;
6985172683Smlaieresac
6986172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987172683Smlaier  (eval "$ac_link") 2>conftest.er1
6988127668Sbms  ac_status=$?
6989172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
6990172683Smlaier  rm -f conftest.er1
6991172683Smlaier  cat conftest.err >&5
6992127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993172683Smlaier  (exit $ac_status); } && {
6994172683Smlaier	 test -z "$ac_c_werror_flag" ||
6995172683Smlaier	 test ! -s conftest.err
6996172683Smlaier       } && test -s conftest$ac_exeext &&
6997172683Smlaier       $as_test_x conftest$ac_exeext; then
6998172683Smlaier  ac_cv_search_putmsg=$ac_res
699939297Sfennerelse
7000127668Sbms  echo "$as_me: failed program was:" >&5
7001127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7002127668Sbms
7003172683Smlaier
700439297Sfennerfi
7005127668Sbms
7006172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7007172683Smlaier      conftest$ac_exeext
7008172683Smlaier  if test "${ac_cv_search_putmsg+set}" = set; then
7009172683Smlaier  break
7010172683Smlaierfi
7011172683Smlaierdone
7012172683Smlaierif test "${ac_cv_search_putmsg+set}" = set; then
7013172683Smlaier  :
701439297Sfennerelse
7015172683Smlaier  ac_cv_search_putmsg=no
701639297Sfennerfi
7017172683Smlaierrm conftest.$ac_ext
7018127668SbmsLIBS=$ac_func_search_save_LIBS
7019127668Sbmsfi
7020172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7021172683Smlaierecho "${ECHO_T}$ac_cv_search_putmsg" >&6; }
7022172683Smlaierac_res=$ac_cv_search_putmsg
7023172683Smlaierif test "$ac_res" != no; then
7024172683Smlaier  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
702539297Sfenner
702698524Sfennerfi
702739297Sfenner
7028127668Sbms
7029127668Sbms
703039297Sfenner                LBL_LIBS="$LIBS"
703139297Sfenner    pfopen=/usr/examples/packetfilter/pfopen.c
703217680Spst    if test -f $pfopen ; then
7033127668Sbms
7034127668Sbmsfor ac_func in pfopen
703517680Spstdo
7036127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7037172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7038172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7039172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7040127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
704117680Spstelse
7042127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7043127668Sbms/* confdefs.h.  */
7044127668Sbms_ACEOF
7045127668Sbmscat confdefs.h >>conftest.$ac_ext
7046127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7047127668Sbms/* end confdefs.h.  */
7048172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7049172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7050172683Smlaier#define $ac_func innocuous_$ac_func
7051172683Smlaier
705217680Spst/* System header to define __stub macros and hopefully few prototypes,
7053127668Sbms    which can conflict with char $ac_func (); below.
7054127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055127668Sbms    <limits.h> exists even on freestanding compilers.  */
7056172683Smlaier
7057127668Sbms#ifdef __STDC__
7058127668Sbms# include <limits.h>
7059127668Sbms#else
7060127668Sbms# include <assert.h>
7061127668Sbms#endif
7062172683Smlaier
7063172683Smlaier#undef $ac_func
7064172683Smlaier
7065172683Smlaier/* Override any GCC internal prototype to avoid an error.
7066172683Smlaier   Use char because int might match the return type of a GCC
7067172683Smlaier   builtin and then its argument prototype would still apply.  */
7068127668Sbms#ifdef __cplusplus
7069127668Sbmsextern "C"
7070127668Sbms#endif
7071127668Sbmschar $ac_func ();
707217680Spst/* The GNU C library defines this for functions which it implements
707317680Spst    to always fail with ENOSYS.  Some functions are actually named
707417680Spst    something starting with __ and the normal name is an alias.  */
7075172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
707617680Spstchoke me
707717680Spst#endif
707817680Spst
7079127668Sbmsint
7080127668Sbmsmain ()
7081127668Sbms{
7082172683Smlaierreturn $ac_func ();
7083127668Sbms  ;
7084127668Sbms  return 0;
7085127668Sbms}
7086127668Sbms_ACEOF
7087127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7088172683Smlaierif { (ac_try="$ac_link"
7089172683Smlaiercase "(($ac_try" in
7090172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091172683Smlaier  *) ac_try_echo=$ac_try;;
7092172683Smlaieresac
7093172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094172683Smlaier  (eval "$ac_link") 2>conftest.er1
7095127668Sbms  ac_status=$?
7096172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
7097172683Smlaier  rm -f conftest.er1
7098172683Smlaier  cat conftest.err >&5
7099127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100172683Smlaier  (exit $ac_status); } && {
7101172683Smlaier	 test -z "$ac_c_werror_flag" ||
7102172683Smlaier	 test ! -s conftest.err
7103172683Smlaier       } && test -s conftest$ac_exeext &&
7104172683Smlaier       $as_test_x conftest$ac_exeext; then
7105127668Sbms  eval "$as_ac_var=yes"
710617680Spstelse
7107127668Sbms  echo "$as_me: failed program was:" >&5
7108127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7109127668Sbms
7110172683Smlaier	eval "$as_ac_var=no"
711117680Spstfi
7112172683Smlaier
7113172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7114172683Smlaier      conftest$ac_exeext conftest.$ac_ext
711526180Sfennerfi
7116172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
7117172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7118172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
7119127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
7120127668Sbms  cat >>confdefs.h <<_ACEOF
7121127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7122127668Sbms_ACEOF
712317680Spst
712417680Spstfi
712517680Spstdone
712617680Spst
712717680Spst	    if test $ac_cv_func_pfopen = "no" ; then
7128172683Smlaier		    { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7129172683Smlaierecho "${ECHO_T}Using $pfopen" >&6; }
713017680Spst		    LIBS="$LIBS $pfopen"
713117680Spst	    fi
713217680Spst    fi
7133172683Smlaier    { echo "$as_me:$LINENO: checking for local pcap library" >&5
7134172683Smlaierecho $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
713517680Spst    libpcap=FAIL
713626180Sfenner    lastdir=FAIL
7137127668Sbms    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7138214478Srpaulo	egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7139127668Sbms    for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7140214478Srpaulo	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7141214478Srpaulo	        sed -e 's/-PRE-GIT$//' `
714226180Sfenner	    if test $lastdir = $basedir ; then
714326180Sfenner		    		    continue;
714426180Sfenner	    fi
714526180Sfenner	    lastdir=$dir
714656893Sfenner	    if test -r $dir/libpcap.a ; then
714717680Spst		    libpcap=$dir/libpcap.a
714817680Spst		    d=$dir
714917680Spst		    	    fi
715017680Spst    done
715117680Spst    if test $libpcap = FAIL ; then
7152172683Smlaier	    { echo "$as_me:$LINENO: result: not found" >&5
7153172683Smlaierecho "${ECHO_T}not found" >&6; }
7154214478Srpaulo
7155214478Srpaulo	    #
7156214478Srpaulo	    # Look for pcap-config.
7157214478Srpaulo	    #
7158236192Sdelphij	    if test -n "$ac_tool_prefix"; then
7159236192Sdelphij  # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7160236192Sdelphijset dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7161214478Srpaulo{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7162214478Srpauloecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163214478Srpauloif test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7164214478Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
7165214478Srpauloelse
7166214478Srpaulo  case $PCAP_CONFIG in
7167214478Srpaulo  [\\/]* | ?:[\\/]*)
7168214478Srpaulo  ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7169214478Srpaulo  ;;
7170214478Srpaulo  *)
7171214478Srpaulo  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172214478Srpaulofor as_dir in $PATH
7173214478Srpaulodo
7174214478Srpaulo  IFS=$as_save_IFS
7175214478Srpaulo  test -z "$as_dir" && as_dir=.
7176214478Srpaulo  for ac_exec_ext in '' $ac_executable_extensions; do
7177214478Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178214478Srpaulo    ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7179214478Srpaulo    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180214478Srpaulo    break 2
7181214478Srpaulo  fi
7182214478Srpaulodone
7183214478Srpaulodone
7184214478SrpauloIFS=$as_save_IFS
7185214478Srpaulo
7186214478Srpaulo  ;;
7187214478Srpauloesac
7188214478Srpaulofi
7189214478SrpauloPCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7190214478Srpauloif test -n "$PCAP_CONFIG"; then
7191214478Srpaulo  { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7192214478Srpauloecho "${ECHO_T}$PCAP_CONFIG" >&6; }
7193214478Srpauloelse
7194214478Srpaulo  { echo "$as_me:$LINENO: result: no" >&5
7195214478Srpauloecho "${ECHO_T}no" >&6; }
7196214478Srpaulofi
7197214478Srpaulo
7198214478Srpaulo
7199236192Sdelphijfi
7200236192Sdelphijif test -z "$ac_cv_path_PCAP_CONFIG"; then
7201236192Sdelphij  ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7202236192Sdelphij  # Extract the first word of "pcap-config", so it can be a program name with args.
7203236192Sdelphijset dummy pcap-config; ac_word=$2
7204236192Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205236192Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206236192Sdelphijif test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7207236192Sdelphij  echo $ECHO_N "(cached) $ECHO_C" >&6
7208236192Sdelphijelse
7209236192Sdelphij  case $ac_pt_PCAP_CONFIG in
7210236192Sdelphij  [\\/]* | ?:[\\/]*)
7211236192Sdelphij  ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7212236192Sdelphij  ;;
7213236192Sdelphij  *)
7214236192Sdelphij  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215236192Sdelphijfor as_dir in $PATH
7216236192Sdelphijdo
7217236192Sdelphij  IFS=$as_save_IFS
7218236192Sdelphij  test -z "$as_dir" && as_dir=.
7219236192Sdelphij  for ac_exec_ext in '' $ac_executable_extensions; do
7220236192Sdelphij  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221236192Sdelphij    ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7222236192Sdelphij    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223236192Sdelphij    break 2
7224236192Sdelphij  fi
7225236192Sdelphijdone
7226236192Sdelphijdone
7227236192SdelphijIFS=$as_save_IFS
7228236192Sdelphij
7229236192Sdelphij  ;;
7230236192Sdelphijesac
7231236192Sdelphijfi
7232236192Sdelphijac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7233236192Sdelphijif test -n "$ac_pt_PCAP_CONFIG"; then
7234236192Sdelphij  { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7235236192Sdelphijecho "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7236236192Sdelphijelse
7237236192Sdelphij  { echo "$as_me:$LINENO: result: no" >&5
7238236192Sdelphijecho "${ECHO_T}no" >&6; }
7239236192Sdelphijfi
7240236192Sdelphij
7241236192Sdelphij  if test "x$ac_pt_PCAP_CONFIG" = x; then
7242236192Sdelphij    PCAP_CONFIG=""
7243236192Sdelphij  else
7244236192Sdelphij    case $cross_compiling:$ac_tool_warned in
7245236192Sdelphijyes:)
7246236192Sdelphij{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7247236192Sdelphijwhose name does not start with the host triplet.  If you think this
7248236192Sdelphijconfiguration is useful to you, please write to autoconf@gnu.org." >&5
7249236192Sdelphijecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7250236192Sdelphijwhose name does not start with the host triplet.  If you think this
7251236192Sdelphijconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
7252236192Sdelphijac_tool_warned=yes ;;
7253236192Sdelphijesac
7254236192Sdelphij    PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7255236192Sdelphij  fi
7256236192Sdelphijelse
7257236192Sdelphij  PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7258236192Sdelphijfi
7259236192Sdelphij
7260214478Srpaulo	    if test -n "$PCAP_CONFIG" ; then
7261214478Srpaulo		#
7262214478Srpaulo		# Found - use it to get the include flags for
7263214478Srpaulo		# libpcap and the flags to link with libpcap.
7264214478Srpaulo		#
7265236192Sdelphij		# Please read section 11.6 "Shell Substitutions"
7266236192Sdelphij		# in the autoconf manual before doing anything
7267236192Sdelphij		# to this that involves quoting.  Especially note
7268236192Sdelphij		# the statement "There is just no portable way to use
7269236192Sdelphij		# double-quoted strings inside double-quoted back-quoted
7270236192Sdelphij		# expressions (pfew!)."
7271236192Sdelphij		#
7272236192Sdelphij		cflags=`"$PCAP_CONFIG" --cflags`
7273236192Sdelphij		V_INCLS="$cflags $V_INCLS"
7274236192Sdelphij		libpcap=`"$PCAP_CONFIG" --libs`
7275214478Srpaulo	    else
7276214478Srpaulo		#
7277214478Srpaulo		# Not found; look for pcap.
7278214478Srpaulo		#
7279214478Srpaulo		{ echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7280172683Smlaierecho $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7281127668Sbmsif test "${ac_cv_lib_pcap_main+set}" = set; then
7282127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
728317680Spstelse
7284127668Sbms  ac_check_lib_save_LIBS=$LIBS
728517680SpstLIBS="-lpcap  $LIBS"
7286127668Sbmscat >conftest.$ac_ext <<_ACEOF
7287127668Sbms/* confdefs.h.  */
7288127668Sbms_ACEOF
7289127668Sbmscat confdefs.h >>conftest.$ac_ext
7290127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7291127668Sbms/* end confdefs.h.  */
729217680Spst
7293127668Sbms
7294127668Sbmsint
7295127668Sbmsmain ()
7296127668Sbms{
7297172683Smlaierreturn main ();
7298127668Sbms  ;
7299127668Sbms  return 0;
7300127668Sbms}
7301127668Sbms_ACEOF
7302127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7303172683Smlaierif { (ac_try="$ac_link"
7304172683Smlaiercase "(($ac_try" in
7305172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306172683Smlaier  *) ac_try_echo=$ac_try;;
7307172683Smlaieresac
7308172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309172683Smlaier  (eval "$ac_link") 2>conftest.er1
7310127668Sbms  ac_status=$?
7311172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
7312172683Smlaier  rm -f conftest.er1
7313172683Smlaier  cat conftest.err >&5
7314127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315172683Smlaier  (exit $ac_status); } && {
7316172683Smlaier	 test -z "$ac_c_werror_flag" ||
7317172683Smlaier	 test ! -s conftest.err
7318172683Smlaier       } && test -s conftest$ac_exeext &&
7319172683Smlaier       $as_test_x conftest$ac_exeext; then
7320127668Sbms  ac_cv_lib_pcap_main=yes
732117680Spstelse
7322127668Sbms  echo "$as_me: failed program was:" >&5
7323127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
732417680Spst
7325172683Smlaier	ac_cv_lib_pcap_main=no
732617680Spstfi
7327172683Smlaier
7328172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7329172683Smlaier      conftest$ac_exeext conftest.$ac_ext
7330127668SbmsLIBS=$ac_check_lib_save_LIBS
7331127668Sbmsfi
7332172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7333172683Smlaierecho "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7334127668Sbmsif test $ac_cv_lib_pcap_main = yes; then
733517680Spst  libpcap="-lpcap"
733617680Spstfi
733717680Spst
7338214478Srpaulo		if test $libpcap = FAIL ; then
7339127668Sbms		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7340127668Sbmsecho "$as_me: error: see the INSTALL doc for more info" >&2;}
7341127668Sbms   { (exit 1); exit 1; }; }
7342214478Srpaulo		fi
7343214478Srpaulo																																								{ echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7344172683Smlaierecho $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7345214478Srpaulo		if test \( ! -r /usr/local/include/pcap.h \) -a \
7346127668Sbms			\( ! -r /usr/include/pcap.h \); then
7347214478Srpaulo		    if test -r /usr/local/include/pcap/pcap.h; then
7348214478Srpaulo			d="/usr/local/include/pcap"
7349214478Srpaulo		    elif test -r /usr/include/pcap/pcap.h; then
7350214478Srpaulo			d="/usr/include/pcap"
7351214478Srpaulo		    fi
7352127668Sbms		fi
7353214478Srpaulo		if test -z "$d" ; then
7354214478Srpaulo		    { echo "$as_me:$LINENO: result: not found" >&5
7355172683Smlaierecho "${ECHO_T}not found" >&6; }
7356214478Srpaulo		else
7357214478Srpaulo		    V_INCLS="-I$d $V_INCLS"
7358214478Srpaulo		    { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7359172683Smlaierecho "${ECHO_T}found -- -I$d added" >&6; }
7360214478Srpaulo		fi
7361127668Sbms	    fi
736217680Spst    else
736317680Spst	    V_PCAPDEP=$libpcap
736498524Sfenner	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
736598524Sfenner    	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
736656893Sfenner	    if test -r $d/pcap.h; then
736775115Sfenner		    V_INCLS="-I$d $V_INCLS"
736898524Sfenner	    elif test -r $places/pcap.h; then
736998524Sfenner		    V_INCLS="-I$places $V_INCLS"
737056893Sfenner	    else
7371127668Sbms                    { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7372127668Sbmsecho "$as_me: error: cannot find pcap.h" >&2;}
7373127668Sbms   { (exit see INSTALL); exit see INSTALL; }; }
737456893Sfenner 	    fi
7375172683Smlaier	    { echo "$as_me:$LINENO: result: $libpcap" >&5
7376172683Smlaierecho "${ECHO_T}$libpcap" >&6; }
7377214478Srpaulo	    # Extract the first word of "pcap-config", so it can be a program name with args.
7378214478Srpauloset dummy pcap-config; ac_word=$2
7379214478Srpaulo{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380214478Srpauloecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381214478Srpauloif test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7382214478Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
7383214478Srpauloelse
7384214478Srpaulo  case $PCAP_CONFIG in
7385214478Srpaulo  [\\/]* | ?:[\\/]*)
7386214478Srpaulo  ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7387214478Srpaulo  ;;
7388214478Srpaulo  *)
7389214478Srpaulo  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390214478Srpaulofor as_dir in $d
7391214478Srpaulodo
7392214478Srpaulo  IFS=$as_save_IFS
7393214478Srpaulo  test -z "$as_dir" && as_dir=.
7394214478Srpaulo  for ac_exec_ext in '' $ac_executable_extensions; do
7395214478Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396214478Srpaulo    ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7397214478Srpaulo    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398214478Srpaulo    break 2
7399214478Srpaulo  fi
7400214478Srpaulodone
7401214478Srpaulodone
7402214478SrpauloIFS=$as_save_IFS
7403214478Srpaulo
7404214478Srpaulo  ;;
7405214478Srpauloesac
7406214478Srpaulofi
7407214478SrpauloPCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7408214478Srpauloif test -n "$PCAP_CONFIG"; then
7409214478Srpaulo  { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7410214478Srpauloecho "${ECHO_T}$PCAP_CONFIG" >&6; }
7411214478Srpauloelse
7412214478Srpaulo  { echo "$as_me:$LINENO: result: no" >&5
7413214478Srpauloecho "${ECHO_T}no" >&6; }
7414214478Srpaulofi
7415214478Srpaulo
7416214478Srpaulo
7417214478Srpaulo	    if test -n "$PCAP_CONFIG"; then
7418214478Srpaulo		#
7419214478Srpaulo		# The libpcap directory has a pcap-config script.
7420214478Srpaulo		# Use it to get any additioal libraries needed
7421214478Srpaulo		# to link with the libpcap archive library in
7422236192Sdelphij		# that directory.
7423214478Srpaulo		#
7424236192Sdelphij		# Please read section 11.6 "Shell Substitutions"
7425236192Sdelphij		# in the autoconf manual before doing anything
7426236192Sdelphij		# to this that involves quoting.  Especially note
7427236192Sdelphij		# the statement "There is just no portable way to use
7428236192Sdelphij		# double-quoted strings inside double-quoted back-quoted
7429236192Sdelphij		# expressions (pfew!)."
7430236192Sdelphij		#
7431236192Sdelphij		additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7432236192Sdelphij		libpcap="$libpcap $additional_libs"
7433214478Srpaulo	    fi
743417680Spst    fi
743517680Spst    LIBS="$libpcap $LIBS"
7436214478Srpaulo    if ! test -n "$PCAP_CONFIG" ; then
7437214478Srpaulo	#
7438214478Srpaulo	# We don't have pcap-config; find out any additional link flags
7439214478Srpaulo	# we need.  (If we have pcap-config, we assume it tells us what
7440214478Srpaulo	# we need.)
7441214478Srpaulo	#
7442214478Srpaulo	case "$host_os" in
744317680Spst
7444214478Srpaulo	aix*)
7445214478Srpaulo	    #
7446214478Srpaulo	    # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7447214478Srpaulo	    # present, as we use the STREAMS routines.
7448214478Srpaulo	    #
7449214478Srpaulo	    # (XXX - true only if we're linking with a static libpcap?)
7450214478Srpaulo	    #
745139297Sfenner	    pseexe="/lib/pse.exp"
7452172683Smlaier	    { echo "$as_me:$LINENO: checking for $pseexe" >&5
7453172683Smlaierecho $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
745439297Sfenner	    if test -f $pseexe ; then
7455172683Smlaier		    { echo "$as_me:$LINENO: result: yes" >&5
7456172683Smlaierecho "${ECHO_T}yes" >&6; }
745739297Sfenner		    LIBS="$LIBS -I:$pseexe"
745839297Sfenner	    fi
7459214478Srpaulo
7460127668Sbms	    #
7461214478Srpaulo	    # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7462214478Srpaulo	    # we use them to load the BPF module.
7463127668Sbms	    #
7464214478Srpaulo	    # (XXX - true only if we're linking with a static libpcap?)
7465214478Srpaulo	    #
7466127668Sbms	    LIBS="$LIBS -lodm -lcfg"
746739297Sfenner	    ;;
7468214478Srpaulo	esac
7469214478Srpaulo    fi
747039297Sfenner
7471236192Sdelphij                                    { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7472236192Sdelphijecho $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7473236192Sdelphijif test "${ac_cv_func_pcap_loop+set}" = set; then
7474236192Sdelphij  echo $ECHO_N "(cached) $ECHO_C" >&6
7475236192Sdelphijelse
7476236192Sdelphij  cat >conftest.$ac_ext <<_ACEOF
7477236192Sdelphij/* confdefs.h.  */
7478236192Sdelphij_ACEOF
7479236192Sdelphijcat confdefs.h >>conftest.$ac_ext
7480236192Sdelphijcat >>conftest.$ac_ext <<_ACEOF
7481236192Sdelphij/* end confdefs.h.  */
7482236192Sdelphij/* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7483236192Sdelphij   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7484236192Sdelphij#define pcap_loop innocuous_pcap_loop
7485236192Sdelphij
7486236192Sdelphij/* System header to define __stub macros and hopefully few prototypes,
7487236192Sdelphij    which can conflict with char pcap_loop (); below.
7488236192Sdelphij    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7489236192Sdelphij    <limits.h> exists even on freestanding compilers.  */
7490236192Sdelphij
7491236192Sdelphij#ifdef __STDC__
7492236192Sdelphij# include <limits.h>
7493236192Sdelphij#else
7494236192Sdelphij# include <assert.h>
7495236192Sdelphij#endif
7496236192Sdelphij
7497236192Sdelphij#undef pcap_loop
7498236192Sdelphij
7499236192Sdelphij/* Override any GCC internal prototype to avoid an error.
7500236192Sdelphij   Use char because int might match the return type of a GCC
7501236192Sdelphij   builtin and then its argument prototype would still apply.  */
7502236192Sdelphij#ifdef __cplusplus
7503236192Sdelphijextern "C"
7504236192Sdelphij#endif
7505236192Sdelphijchar pcap_loop ();
7506236192Sdelphij/* The GNU C library defines this for functions which it implements
7507236192Sdelphij    to always fail with ENOSYS.  Some functions are actually named
7508236192Sdelphij    something starting with __ and the normal name is an alias.  */
7509236192Sdelphij#if defined __stub_pcap_loop || defined __stub___pcap_loop
7510236192Sdelphijchoke me
7511236192Sdelphij#endif
7512236192Sdelphij
7513236192Sdelphijint
7514236192Sdelphijmain ()
7515236192Sdelphij{
7516236192Sdelphijreturn pcap_loop ();
7517236192Sdelphij  ;
7518236192Sdelphij  return 0;
7519236192Sdelphij}
7520236192Sdelphij_ACEOF
7521236192Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext
7522236192Sdelphijif { (ac_try="$ac_link"
7523236192Sdelphijcase "(($ac_try" in
7524236192Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525236192Sdelphij  *) ac_try_echo=$ac_try;;
7526236192Sdelphijesac
7527236192Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528236192Sdelphij  (eval "$ac_link") 2>conftest.er1
7529236192Sdelphij  ac_status=$?
7530236192Sdelphij  grep -v '^ *+' conftest.er1 >conftest.err
7531236192Sdelphij  rm -f conftest.er1
7532236192Sdelphij  cat conftest.err >&5
7533236192Sdelphij  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534236192Sdelphij  (exit $ac_status); } && {
7535236192Sdelphij	 test -z "$ac_c_werror_flag" ||
7536236192Sdelphij	 test ! -s conftest.err
7537236192Sdelphij       } && test -s conftest$ac_exeext &&
7538236192Sdelphij       $as_test_x conftest$ac_exeext; then
7539236192Sdelphij  ac_cv_func_pcap_loop=yes
7540236192Sdelphijelse
7541236192Sdelphij  echo "$as_me: failed program was:" >&5
7542236192Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
7543236192Sdelphij
7544236192Sdelphij	ac_cv_func_pcap_loop=no
7545236192Sdelphijfi
7546236192Sdelphij
7547236192Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548236192Sdelphij      conftest$ac_exeext conftest.$ac_ext
7549236192Sdelphijfi
7550236192Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7551236192Sdelphijecho "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7552236192Sdelphijif test $ac_cv_func_pcap_loop = yes; then
7553236192Sdelphij  :
7554236192Sdelphijelse
7555236192Sdelphij
7556236192Sdelphij	    { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7557242485Sdelphijconfig.log file in your report.  If you have downloaded libpcap from
7558242485Sdelphijtcpdump.org, and built it yourself, please also include the config.log
7559242485Sdelphijfile from the libpcap source directory, the Makefile from the libpcap
7560242485Sdelphijsource directory, and the output of the make process for libpcap, as
7561242485Sdelphijthis could be a problem with the libpcap that was built, and we will
7562242485Sdelphijnot be able to determine why this is happening, and thus will not be
7563242485Sdelphijable to fix it, without that information, as we have not been able to
7564242485Sdelphijreproduce this problem ourselves." >&5
7565236192Sdelphijecho "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7566242485Sdelphijconfig.log file in your report.  If you have downloaded libpcap from
7567242485Sdelphijtcpdump.org, and built it yourself, please also include the config.log
7568242485Sdelphijfile from the libpcap source directory, the Makefile from the libpcap
7569242485Sdelphijsource directory, and the output of the make process for libpcap, as
7570242485Sdelphijthis could be a problem with the libpcap that was built, and we will
7571242485Sdelphijnot be able to determine why this is happening, and thus will not be
7572242485Sdelphijable to fix it, without that information, as we have not been able to
7573242485Sdelphijreproduce this problem ourselves." >&2;}
7574236192Sdelphij   { (exit 1); exit 1; }; }
7575236192Sdelphij
7576236192Sdelphijfi
7577236192Sdelphij
7578236192Sdelphij
7579172683Smlaier                        { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7580172683Smlaierecho $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7581127668Sbmsif test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7582127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
7583127668Sbmselse
7584127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7585127668Sbms/* confdefs.h.  */
7586127668Sbms_ACEOF
7587127668Sbmscat confdefs.h >>conftest.$ac_ext
7588127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7589127668Sbms/* end confdefs.h.  */
7590172683Smlaier/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7591172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7592172683Smlaier#define pcap_list_datalinks innocuous_pcap_list_datalinks
7593172683Smlaier
7594127668Sbms/* System header to define __stub macros and hopefully few prototypes,
7595127668Sbms    which can conflict with char pcap_list_datalinks (); below.
7596127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7597127668Sbms    <limits.h> exists even on freestanding compilers.  */
7598172683Smlaier
7599127668Sbms#ifdef __STDC__
7600127668Sbms# include <limits.h>
7601127668Sbms#else
7602127668Sbms# include <assert.h>
7603127668Sbms#endif
7604172683Smlaier
7605172683Smlaier#undef pcap_list_datalinks
7606172683Smlaier
7607172683Smlaier/* Override any GCC internal prototype to avoid an error.
7608172683Smlaier   Use char because int might match the return type of a GCC
7609172683Smlaier   builtin and then its argument prototype would still apply.  */
7610127668Sbms#ifdef __cplusplus
7611127668Sbmsextern "C"
7612127668Sbms#endif
7613127668Sbmschar pcap_list_datalinks ();
7614127668Sbms/* The GNU C library defines this for functions which it implements
7615127668Sbms    to always fail with ENOSYS.  Some functions are actually named
7616127668Sbms    something starting with __ and the normal name is an alias.  */
7617172683Smlaier#if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7618127668Sbmschoke me
7619127668Sbms#endif
7620127668Sbms
7621127668Sbmsint
7622127668Sbmsmain ()
7623127668Sbms{
7624172683Smlaierreturn pcap_list_datalinks ();
7625127668Sbms  ;
7626127668Sbms  return 0;
7627127668Sbms}
7628127668Sbms_ACEOF
7629127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7630172683Smlaierif { (ac_try="$ac_link"
7631172683Smlaiercase "(($ac_try" in
7632172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633172683Smlaier  *) ac_try_echo=$ac_try;;
7634172683Smlaieresac
7635172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636172683Smlaier  (eval "$ac_link") 2>conftest.er1
7637127668Sbms  ac_status=$?
7638172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
7639172683Smlaier  rm -f conftest.er1
7640172683Smlaier  cat conftest.err >&5
7641127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642172683Smlaier  (exit $ac_status); } && {
7643172683Smlaier	 test -z "$ac_c_werror_flag" ||
7644172683Smlaier	 test ! -s conftest.err
7645172683Smlaier       } && test -s conftest$ac_exeext &&
7646172683Smlaier       $as_test_x conftest$ac_exeext; then
7647127668Sbms  ac_cv_func_pcap_list_datalinks=yes
7648127668Sbmselse
7649127668Sbms  echo "$as_me: failed program was:" >&5
7650127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7651127668Sbms
7652172683Smlaier	ac_cv_func_pcap_list_datalinks=no
7653127668Sbmsfi
7654172683Smlaier
7655172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7656172683Smlaier      conftest$ac_exeext conftest.$ac_ext
7657127668Sbmsfi
7658172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7659172683Smlaierecho "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7660127668Sbmsif test $ac_cv_func_pcap_list_datalinks = yes; then
7661127668Sbms  cat >>confdefs.h <<\_ACEOF
7662127668Sbms#define HAVE_PCAP_LIST_DATALINKS 1
7663127668Sbms_ACEOF
7664127668Sbms
7665127668Sbmselse
7666147899Ssam
7667172683Smlaier	    case " $LIBOBJS " in
7668172683Smlaier  *" datalinks.$ac_objext "* ) ;;
7669172683Smlaier  *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7670172683Smlaier ;;
7671172683Smlaieresac
7672147899Ssam
7673172683Smlaier
7674127668Sbmsfi
7675127668Sbms
7676172683Smlaier    { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7677172683Smlaierecho $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7678127668Sbmsif test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7679127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
7680127668Sbmselse
7681127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7682127668Sbms/* confdefs.h.  */
7683127668Sbms_ACEOF
7684127668Sbmscat confdefs.h >>conftest.$ac_ext
7685127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7686127668Sbms/* end confdefs.h.  */
7687172683Smlaier/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7688172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7689172683Smlaier#define pcap_set_datalink innocuous_pcap_set_datalink
7690172683Smlaier
7691127668Sbms/* System header to define __stub macros and hopefully few prototypes,
7692127668Sbms    which can conflict with char pcap_set_datalink (); below.
7693127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7694127668Sbms    <limits.h> exists even on freestanding compilers.  */
7695172683Smlaier
7696127668Sbms#ifdef __STDC__
7697127668Sbms# include <limits.h>
7698127668Sbms#else
7699127668Sbms# include <assert.h>
7700127668Sbms#endif
7701172683Smlaier
7702172683Smlaier#undef pcap_set_datalink
7703172683Smlaier
7704172683Smlaier/* Override any GCC internal prototype to avoid an error.
7705172683Smlaier   Use char because int might match the return type of a GCC
7706172683Smlaier   builtin and then its argument prototype would still apply.  */
7707127668Sbms#ifdef __cplusplus
7708127668Sbmsextern "C"
7709127668Sbms#endif
7710127668Sbmschar pcap_set_datalink ();
7711127668Sbms/* The GNU C library defines this for functions which it implements
7712127668Sbms    to always fail with ENOSYS.  Some functions are actually named
7713127668Sbms    something starting with __ and the normal name is an alias.  */
7714172683Smlaier#if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7715127668Sbmschoke me
7716127668Sbms#endif
7717127668Sbms
7718127668Sbmsint
7719127668Sbmsmain ()
7720127668Sbms{
7721172683Smlaierreturn pcap_set_datalink ();
7722127668Sbms  ;
7723127668Sbms  return 0;
7724127668Sbms}
7725127668Sbms_ACEOF
7726127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7727172683Smlaierif { (ac_try="$ac_link"
7728172683Smlaiercase "(($ac_try" in
7729172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730172683Smlaier  *) ac_try_echo=$ac_try;;
7731172683Smlaieresac
7732172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733172683Smlaier  (eval "$ac_link") 2>conftest.er1
7734127668Sbms  ac_status=$?
7735172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
7736172683Smlaier  rm -f conftest.er1
7737172683Smlaier  cat conftest.err >&5
7738127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739172683Smlaier  (exit $ac_status); } && {
7740172683Smlaier	 test -z "$ac_c_werror_flag" ||
7741172683Smlaier	 test ! -s conftest.err
7742172683Smlaier       } && test -s conftest$ac_exeext &&
7743172683Smlaier       $as_test_x conftest$ac_exeext; then
7744127668Sbms  ac_cv_func_pcap_set_datalink=yes
7745127668Sbmselse
7746127668Sbms  echo "$as_me: failed program was:" >&5
7747127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7748127668Sbms
7749172683Smlaier	ac_cv_func_pcap_set_datalink=no
7750127668Sbmsfi
7751172683Smlaier
7752172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7753172683Smlaier      conftest$ac_exeext conftest.$ac_ext
7754127668Sbmsfi
7755172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7756172683Smlaierecho "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7757127668Sbmsif test $ac_cv_func_pcap_set_datalink = yes; then
7758127668Sbms  cat >>confdefs.h <<\_ACEOF
7759127668Sbms#define HAVE_PCAP_SET_DATALINK 1
7760127668Sbms_ACEOF
7761127668Sbms
7762127668Sbmsfi
7763127668Sbms
7764172683Smlaier    { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7765172683Smlaierecho $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7766127668Sbmsif test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7767127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
7768127668Sbmselse
7769127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7770127668Sbms/* confdefs.h.  */
7771127668Sbms_ACEOF
7772127668Sbmscat confdefs.h >>conftest.$ac_ext
7773127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7774127668Sbms/* end confdefs.h.  */
7775172683Smlaier/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7776172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7777172683Smlaier#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7778172683Smlaier
7779127668Sbms/* System header to define __stub macros and hopefully few prototypes,
7780127668Sbms    which can conflict with char pcap_datalink_name_to_val (); below.
7781127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7782127668Sbms    <limits.h> exists even on freestanding compilers.  */
7783172683Smlaier
7784127668Sbms#ifdef __STDC__
7785127668Sbms# include <limits.h>
7786127668Sbms#else
7787127668Sbms# include <assert.h>
7788127668Sbms#endif
7789172683Smlaier
7790172683Smlaier#undef pcap_datalink_name_to_val
7791172683Smlaier
7792172683Smlaier/* Override any GCC internal prototype to avoid an error.
7793172683Smlaier   Use char because int might match the return type of a GCC
7794172683Smlaier   builtin and then its argument prototype would still apply.  */
7795127668Sbms#ifdef __cplusplus
7796127668Sbmsextern "C"
7797127668Sbms#endif
7798127668Sbmschar pcap_datalink_name_to_val ();
7799127668Sbms/* The GNU C library defines this for functions which it implements
7800127668Sbms    to always fail with ENOSYS.  Some functions are actually named
7801127668Sbms    something starting with __ and the normal name is an alias.  */
7802172683Smlaier#if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7803127668Sbmschoke me
7804127668Sbms#endif
7805127668Sbms
7806127668Sbmsint
7807127668Sbmsmain ()
7808127668Sbms{
7809172683Smlaierreturn pcap_datalink_name_to_val ();
7810127668Sbms  ;
7811127668Sbms  return 0;
7812127668Sbms}
7813127668Sbms_ACEOF
7814127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7815172683Smlaierif { (ac_try="$ac_link"
7816172683Smlaiercase "(($ac_try" in
7817172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818172683Smlaier  *) ac_try_echo=$ac_try;;
7819172683Smlaieresac
7820172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821172683Smlaier  (eval "$ac_link") 2>conftest.er1
7822127668Sbms  ac_status=$?
7823172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
7824172683Smlaier  rm -f conftest.er1
7825172683Smlaier  cat conftest.err >&5
7826127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827172683Smlaier  (exit $ac_status); } && {
7828172683Smlaier	 test -z "$ac_c_werror_flag" ||
7829172683Smlaier	 test ! -s conftest.err
7830172683Smlaier       } && test -s conftest$ac_exeext &&
7831172683Smlaier       $as_test_x conftest$ac_exeext; then
7832127668Sbms  ac_cv_func_pcap_datalink_name_to_val=yes
7833127668Sbmselse
7834127668Sbms  echo "$as_me: failed program was:" >&5
7835127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7836127668Sbms
7837172683Smlaier	ac_cv_func_pcap_datalink_name_to_val=no
7838127668Sbmsfi
7839172683Smlaier
7840172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7841172683Smlaier      conftest$ac_exeext conftest.$ac_ext
7842127668Sbmsfi
7843172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7844172683Smlaierecho "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7845127668Sbmsif test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7846127668Sbms
7847127668Sbms	    cat >>confdefs.h <<\_ACEOF
7848127668Sbms#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7849127668Sbms_ACEOF
7850127668Sbms
7851172683Smlaier	    { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7852172683Smlaierecho $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7853127668Sbmsif test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7854127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
7855127668Sbmselse
7856127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7857127668Sbms/* confdefs.h.  */
7858127668Sbms_ACEOF
7859127668Sbmscat confdefs.h >>conftest.$ac_ext
7860127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7861127668Sbms/* end confdefs.h.  */
7862172683Smlaier/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7863172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7864172683Smlaier#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7865172683Smlaier
7866127668Sbms/* System header to define __stub macros and hopefully few prototypes,
7867127668Sbms    which can conflict with char pcap_datalink_val_to_description (); below.
7868127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869127668Sbms    <limits.h> exists even on freestanding compilers.  */
7870172683Smlaier
7871127668Sbms#ifdef __STDC__
7872127668Sbms# include <limits.h>
7873127668Sbms#else
7874127668Sbms# include <assert.h>
7875127668Sbms#endif
7876172683Smlaier
7877172683Smlaier#undef pcap_datalink_val_to_description
7878172683Smlaier
7879172683Smlaier/* Override any GCC internal prototype to avoid an error.
7880172683Smlaier   Use char because int might match the return type of a GCC
7881172683Smlaier   builtin and then its argument prototype would still apply.  */
7882127668Sbms#ifdef __cplusplus
7883127668Sbmsextern "C"
7884127668Sbms#endif
7885127668Sbmschar pcap_datalink_val_to_description ();
7886127668Sbms/* The GNU C library defines this for functions which it implements
7887127668Sbms    to always fail with ENOSYS.  Some functions are actually named
7888127668Sbms    something starting with __ and the normal name is an alias.  */
7889172683Smlaier#if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7890127668Sbmschoke me
7891127668Sbms#endif
7892127668Sbms
7893127668Sbmsint
7894127668Sbmsmain ()
7895127668Sbms{
7896172683Smlaierreturn pcap_datalink_val_to_description ();
7897127668Sbms  ;
7898127668Sbms  return 0;
7899127668Sbms}
7900127668Sbms_ACEOF
7901127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
7902172683Smlaierif { (ac_try="$ac_link"
7903172683Smlaiercase "(($ac_try" in
7904172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905172683Smlaier  *) ac_try_echo=$ac_try;;
7906172683Smlaieresac
7907172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908172683Smlaier  (eval "$ac_link") 2>conftest.er1
7909127668Sbms  ac_status=$?
7910172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
7911172683Smlaier  rm -f conftest.er1
7912172683Smlaier  cat conftest.err >&5
7913127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914172683Smlaier  (exit $ac_status); } && {
7915172683Smlaier	 test -z "$ac_c_werror_flag" ||
7916172683Smlaier	 test ! -s conftest.err
7917172683Smlaier       } && test -s conftest$ac_exeext &&
7918172683Smlaier       $as_test_x conftest$ac_exeext; then
7919127668Sbms  ac_cv_func_pcap_datalink_val_to_description=yes
7920127668Sbmselse
7921127668Sbms  echo "$as_me: failed program was:" >&5
7922127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
7923127668Sbms
7924172683Smlaier	ac_cv_func_pcap_datalink_val_to_description=no
7925127668Sbmsfi
7926172683Smlaier
7927172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928172683Smlaier      conftest$ac_exeext conftest.$ac_ext
7929127668Sbmsfi
7930172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7931172683Smlaierecho "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7932127668Sbmsif test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7933127668Sbms  cat >>confdefs.h <<\_ACEOF
7934127668Sbms#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7935127668Sbms_ACEOF
7936127668Sbms
7937127668Sbmselse
7938147899Ssam
7939172683Smlaier		    case " $LIBOBJS " in
7940172683Smlaier  *" dlnames.$ac_objext "* ) ;;
7941172683Smlaier  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7942172683Smlaier ;;
7943172683Smlaieresac
7944147899Ssam
7945172683Smlaier
7946127668Sbmsfi
7947127668Sbms
7948127668Sbms
7949127668Sbmselse
7950147899Ssam
7951172683Smlaier	    case " $LIBOBJS " in
7952172683Smlaier  *" dlnames.$ac_objext "* ) ;;
7953172683Smlaier  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7954172683Smlaier ;;
7955172683Smlaieresac
7956147899Ssam
7957172683Smlaier
7958127668Sbmsfi
7959127668Sbms
7960127668Sbms
7961127668Sbms
7962127668Sbmsfor ac_func in pcap_breakloop
796375115Sfennerdo
7964127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7965172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7966172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7967172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7968127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
796975115Sfennerelse
7970127668Sbms  cat >conftest.$ac_ext <<_ACEOF
7971127668Sbms/* confdefs.h.  */
7972127668Sbms_ACEOF
7973127668Sbmscat confdefs.h >>conftest.$ac_ext
7974127668Sbmscat >>conftest.$ac_ext <<_ACEOF
7975127668Sbms/* end confdefs.h.  */
7976172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7977172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7978172683Smlaier#define $ac_func innocuous_$ac_func
7979172683Smlaier
798075115Sfenner/* System header to define __stub macros and hopefully few prototypes,
7981127668Sbms    which can conflict with char $ac_func (); below.
7982127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7983127668Sbms    <limits.h> exists even on freestanding compilers.  */
7984172683Smlaier
7985127668Sbms#ifdef __STDC__
7986127668Sbms# include <limits.h>
7987127668Sbms#else
7988127668Sbms# include <assert.h>
7989127668Sbms#endif
7990172683Smlaier
7991172683Smlaier#undef $ac_func
7992172683Smlaier
7993172683Smlaier/* Override any GCC internal prototype to avoid an error.
7994172683Smlaier   Use char because int might match the return type of a GCC
7995172683Smlaier   builtin and then its argument prototype would still apply.  */
7996127668Sbms#ifdef __cplusplus
7997127668Sbmsextern "C"
7998127668Sbms#endif
7999127668Sbmschar $ac_func ();
8000127668Sbms/* The GNU C library defines this for functions which it implements
8001127668Sbms    to always fail with ENOSYS.  Some functions are actually named
8002127668Sbms    something starting with __ and the normal name is an alias.  */
8003172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
8004127668Sbmschoke me
8005127668Sbms#endif
800675115Sfenner
8007127668Sbmsint
8008127668Sbmsmain ()
8009127668Sbms{
8010172683Smlaierreturn $ac_func ();
8011127668Sbms  ;
8012127668Sbms  return 0;
8013127668Sbms}
8014127668Sbms_ACEOF
8015127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8016172683Smlaierif { (ac_try="$ac_link"
8017172683Smlaiercase "(($ac_try" in
8018172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019172683Smlaier  *) ac_try_echo=$ac_try;;
8020172683Smlaieresac
8021172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022172683Smlaier  (eval "$ac_link") 2>conftest.er1
8023127668Sbms  ac_status=$?
8024172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8025172683Smlaier  rm -f conftest.er1
8026172683Smlaier  cat conftest.err >&5
8027127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028172683Smlaier  (exit $ac_status); } && {
8029172683Smlaier	 test -z "$ac_c_werror_flag" ||
8030172683Smlaier	 test ! -s conftest.err
8031172683Smlaier       } && test -s conftest$ac_exeext &&
8032172683Smlaier       $as_test_x conftest$ac_exeext; then
8033127668Sbms  eval "$as_ac_var=yes"
8034127668Sbmselse
8035127668Sbms  echo "$as_me: failed program was:" >&5
8036127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
803775115Sfenner
8038172683Smlaier	eval "$as_ac_var=no"
8039127668Sbmsfi
8040172683Smlaier
8041172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8042172683Smlaier      conftest$ac_exeext conftest.$ac_ext
8043127668Sbmsfi
8044172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
8045172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8046172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
8047127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
8048127668Sbms  cat >>confdefs.h <<_ACEOF
8049127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8050127668Sbms_ACEOF
8051127668Sbms
8052127668Sbmsfi
8053127668Sbmsdone
8054127668Sbms
8055127668Sbms
8056172683Smlaier                { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8057172683Smlaierecho $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8058147899Ssamif test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8059147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8060147899Ssamelse
8061147899Ssam  cat >conftest.$ac_ext <<_ACEOF
8062147899Ssam/* confdefs.h.  */
8063147899Ssam_ACEOF
8064147899Ssamcat confdefs.h >>conftest.$ac_ext
8065147899Ssamcat >>conftest.$ac_ext <<_ACEOF
8066147899Ssam/* end confdefs.h.  */
8067172683Smlaier/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8068172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8069172683Smlaier#define pcap_dump_ftell innocuous_pcap_dump_ftell
8070172683Smlaier
8071147899Ssam/* System header to define __stub macros and hopefully few prototypes,
8072147899Ssam    which can conflict with char pcap_dump_ftell (); below.
8073147899Ssam    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074147899Ssam    <limits.h> exists even on freestanding compilers.  */
8075172683Smlaier
8076147899Ssam#ifdef __STDC__
8077147899Ssam# include <limits.h>
8078147899Ssam#else
8079147899Ssam# include <assert.h>
8080147899Ssam#endif
8081172683Smlaier
8082172683Smlaier#undef pcap_dump_ftell
8083172683Smlaier
8084172683Smlaier/* Override any GCC internal prototype to avoid an error.
8085172683Smlaier   Use char because int might match the return type of a GCC
8086172683Smlaier   builtin and then its argument prototype would still apply.  */
8087147899Ssam#ifdef __cplusplus
8088147899Ssamextern "C"
8089147899Ssam#endif
8090147899Ssamchar pcap_dump_ftell ();
8091147899Ssam/* The GNU C library defines this for functions which it implements
8092147899Ssam    to always fail with ENOSYS.  Some functions are actually named
8093147899Ssam    something starting with __ and the normal name is an alias.  */
8094172683Smlaier#if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8095147899Ssamchoke me
8096147899Ssam#endif
8097127668Sbms
8098147899Ssamint
8099147899Ssammain ()
8100147899Ssam{
8101172683Smlaierreturn pcap_dump_ftell ();
8102147899Ssam  ;
8103147899Ssam  return 0;
8104147899Ssam}
8105147899Ssam_ACEOF
8106147899Ssamrm -f conftest.$ac_objext conftest$ac_exeext
8107172683Smlaierif { (ac_try="$ac_link"
8108172683Smlaiercase "(($ac_try" in
8109172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110172683Smlaier  *) ac_try_echo=$ac_try;;
8111172683Smlaieresac
8112172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113172683Smlaier  (eval "$ac_link") 2>conftest.er1
8114147899Ssam  ac_status=$?
8115172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8116172683Smlaier  rm -f conftest.er1
8117172683Smlaier  cat conftest.err >&5
8118147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119172683Smlaier  (exit $ac_status); } && {
8120172683Smlaier	 test -z "$ac_c_werror_flag" ||
8121172683Smlaier	 test ! -s conftest.err
8122172683Smlaier       } && test -s conftest$ac_exeext &&
8123172683Smlaier       $as_test_x conftest$ac_exeext; then
8124147899Ssam  ac_cv_func_pcap_dump_ftell=yes
8125147899Ssamelse
8126147899Ssam  echo "$as_me: failed program was:" >&5
8127147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
8128147899Ssam
8129172683Smlaier	ac_cv_func_pcap_dump_ftell=no
8130147899Ssamfi
8131172683Smlaier
8132172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8133172683Smlaier      conftest$ac_exeext conftest.$ac_ext
8134147899Ssamfi
8135172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8136172683Smlaierecho "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8137147899Ssamif test $ac_cv_func_pcap_dump_ftell = yes; then
8138147899Ssam  cat >>confdefs.h <<\_ACEOF
8139147899Ssam#define HAVE_PCAP_DUMP_FTELL 1
8140147899Ssam_ACEOF
8141147899Ssam
8142147899Ssamelse
8143147899Ssam
8144172683Smlaier	    case " $LIBOBJS " in
8145172683Smlaier  *" pcap_dump_ftell.$ac_objext "* ) ;;
8146172683Smlaier  *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8147172683Smlaier ;;
8148172683Smlaieresac
8149147899Ssam
8150172683Smlaier
8151147899Ssamfi
8152147899Ssam
8153147899Ssam
8154147899Ssam
8155127668Sbms#
8156127668Sbms# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8157127668Sbms# libraries (e.g., "-lsocket -lnsl" on Solaris).
8158127668Sbms#
8159127668Sbms# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8160127668Sbms# use AC_CHECK_FUNC which doesn't let us specify the right #includes
8161127668Sbms# to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
8162127668Sbms# resolver, and the way it defines inet_{ntop,pton} is rather strange;
8163127668Sbms# it does not ship with a libc symbol "inet_ntop()", it ships with
8164127668Sbms# "_inet_ntop()", and has a #define macro in one of the system headers
8165127668Sbms# to rename it.
8166127668Sbms#
8167172683Smlaier{ echo "$as_me:$LINENO: checking for inet_ntop" >&5
8168172683Smlaierecho $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8169127668Sbmscat >conftest.$ac_ext <<_ACEOF
8170127668Sbms/* confdefs.h.  */
8171127668Sbms_ACEOF
8172127668Sbmscat confdefs.h >>conftest.$ac_ext
8173127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8174127668Sbms/* end confdefs.h.  */
8175127668Sbms#include <sys/types.h>
8176127668Sbms#include <sys/socket.h>
8177127668Sbms#include <netinet/in.h>
8178127668Sbms#include <arpa/inet.h>
8179127668Sbmsint
8180127668Sbmsmain ()
8181127668Sbms{
8182127668Sbmschar src[4], dst[128];
8183127668Sbmsinet_ntop(AF_INET, src, dst, sizeof(dst));
8184127668Sbms  ;
8185127668Sbms  return 0;
8186127668Sbms}
8187127668Sbms_ACEOF
8188127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8189172683Smlaierif { (ac_try="$ac_link"
8190172683Smlaiercase "(($ac_try" in
8191172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192172683Smlaier  *) ac_try_echo=$ac_try;;
8193172683Smlaieresac
8194172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195172683Smlaier  (eval "$ac_link") 2>conftest.er1
8196127668Sbms  ac_status=$?
8197172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8198172683Smlaier  rm -f conftest.er1
8199172683Smlaier  cat conftest.err >&5
8200127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201172683Smlaier  (exit $ac_status); } && {
8202172683Smlaier	 test -z "$ac_c_werror_flag" ||
8203172683Smlaier	 test ! -s conftest.err
8204172683Smlaier       } && test -s conftest$ac_exeext &&
8205172683Smlaier       $as_test_x conftest$ac_exeext; then
8206172683Smlaier  { echo "$as_me:$LINENO: result: yes" >&5
8207172683Smlaierecho "${ECHO_T}yes" >&6; }
8208127668Sbmselse
8209127668Sbms  echo "$as_me: failed program was:" >&5
8210127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8211127668Sbms
8212172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
8213172683Smlaierecho "${ECHO_T}no" >&6; }
8214172683Smlaier	case " $LIBOBJS " in
8215172683Smlaier  *" inet_ntop.$ac_objext "* ) ;;
8216172683Smlaier  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8217172683Smlaier ;;
8218172683Smlaieresac
8219172683Smlaier
8220127668Sbmsfi
8221172683Smlaier
8222172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8223172683Smlaier      conftest$ac_exeext conftest.$ac_ext
8224172683Smlaier{ echo "$as_me:$LINENO: checking for inet_pton" >&5
8225172683Smlaierecho $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8226127668Sbmscat >conftest.$ac_ext <<_ACEOF
8227127668Sbms/* confdefs.h.  */
8228127668Sbms_ACEOF
8229127668Sbmscat confdefs.h >>conftest.$ac_ext
8230127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8231127668Sbms/* end confdefs.h.  */
8232127668Sbms#include <sys/types.h>
8233127668Sbms#include <sys/socket.h>
8234127668Sbms#include <netinet/in.h>
8235127668Sbms#include <arpa/inet.h>
8236127668Sbmsint
8237127668Sbmsmain ()
8238127668Sbms{
8239127668Sbmschar src[128], dst[4];
8240127668Sbmsinet_pton(AF_INET, src, dst);
8241127668Sbms  ;
8242127668Sbms  return 0;
8243127668Sbms}
8244127668Sbms_ACEOF
8245127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8246172683Smlaierif { (ac_try="$ac_link"
8247172683Smlaiercase "(($ac_try" in
8248172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249172683Smlaier  *) ac_try_echo=$ac_try;;
8250172683Smlaieresac
8251172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252172683Smlaier  (eval "$ac_link") 2>conftest.er1
8253127668Sbms  ac_status=$?
8254172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8255172683Smlaier  rm -f conftest.er1
8256172683Smlaier  cat conftest.err >&5
8257127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258172683Smlaier  (exit $ac_status); } && {
8259172683Smlaier	 test -z "$ac_c_werror_flag" ||
8260172683Smlaier	 test ! -s conftest.err
8261172683Smlaier       } && test -s conftest$ac_exeext &&
8262172683Smlaier       $as_test_x conftest$ac_exeext; then
8263172683Smlaier  { echo "$as_me:$LINENO: result: yes" >&5
8264172683Smlaierecho "${ECHO_T}yes" >&6; }
8265127668Sbmselse
8266127668Sbms  echo "$as_me: failed program was:" >&5
8267127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8268127668Sbms
8269172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
8270172683Smlaierecho "${ECHO_T}no" >&6; }
8271172683Smlaier	case " $LIBOBJS " in
8272172683Smlaier  *" inet_pton.$ac_objext "* ) ;;
8273172683Smlaier  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8274172683Smlaier ;;
8275172683Smlaieresac
8276172683Smlaier
8277127668Sbmsfi
8278172683Smlaier
8279172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8280172683Smlaier      conftest$ac_exeext conftest.$ac_ext
8281172683Smlaier{ echo "$as_me:$LINENO: checking for inet_aton" >&5
8282172683Smlaierecho $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8283127668Sbmscat >conftest.$ac_ext <<_ACEOF
8284127668Sbms/* confdefs.h.  */
8285127668Sbms_ACEOF
8286127668Sbmscat confdefs.h >>conftest.$ac_ext
8287127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8288127668Sbms/* end confdefs.h.  */
8289127668Sbms#include <sys/types.h>
8290127668Sbms#include <netinet/in.h>
8291127668Sbms#include <arpa/inet.h>
8292127668Sbmsint
8293127668Sbmsmain ()
8294127668Sbms{
8295127668Sbmschar src[128];
8296127668Sbmsstruct in_addr dst;
8297127668Sbmsinet_aton(src, &dst);
8298127668Sbms  ;
8299127668Sbms  return 0;
8300127668Sbms}
8301127668Sbms_ACEOF
8302127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
8303172683Smlaierif { (ac_try="$ac_link"
8304172683Smlaiercase "(($ac_try" in
8305172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306172683Smlaier  *) ac_try_echo=$ac_try;;
8307172683Smlaieresac
8308172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309172683Smlaier  (eval "$ac_link") 2>conftest.er1
8310127668Sbms  ac_status=$?
8311172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8312172683Smlaier  rm -f conftest.er1
8313172683Smlaier  cat conftest.err >&5
8314127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315172683Smlaier  (exit $ac_status); } && {
8316172683Smlaier	 test -z "$ac_c_werror_flag" ||
8317172683Smlaier	 test ! -s conftest.err
8318172683Smlaier       } && test -s conftest$ac_exeext &&
8319172683Smlaier       $as_test_x conftest$ac_exeext; then
8320172683Smlaier  { echo "$as_me:$LINENO: result: yes" >&5
8321172683Smlaierecho "${ECHO_T}yes" >&6; }
8322127668Sbmselse
8323127668Sbms  echo "$as_me: failed program was:" >&5
8324127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
8325127668Sbms
8326172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
8327172683Smlaierecho "${ECHO_T}no" >&6; }
8328172683Smlaier	case " $LIBOBJS " in
8329172683Smlaier  *" inet_aton.$ac_objext "* ) ;;
8330172683Smlaier  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8331172683Smlaier ;;
8332172683Smlaieresac
8333172683Smlaier
8334127668Sbmsfi
8335127668Sbms
8336172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8337172683Smlaier      conftest$ac_exeext conftest.$ac_ext
8338172683Smlaier
8339146773Ssam#
8340146773Ssam# Check for these after AC_LBL_LIBPCAP, for the same reason.
8341146773Ssam#
8342146773Ssam# You are in a twisty little maze of UN*Xes, all different.
8343146773Ssam# Some might not have ether_ntohost().
8344146773Ssam# Some might have it, but not declare it in any header file.
8345146773Ssam# Some might have it, but declare it in <netinet/if_ether.h>.
8346146773Ssam# Some might have it, but declare it in <netinet/ether.h>
8347146773Ssam# (And some might have it but document it as something declared in
8348146773Ssam# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8349146773Ssam#
8350146773Ssam# Before you is a C compiler.
8351146773Ssam#
8352127668Sbms
8353146773Ssamfor ac_func in ether_ntohost
8354146773Ssamdo
8355146773Ssamas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8356172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8357172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8358172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8359146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8360146773Ssamelse
8361146773Ssam  cat >conftest.$ac_ext <<_ACEOF
8362146773Ssam/* confdefs.h.  */
8363146773Ssam_ACEOF
8364146773Ssamcat confdefs.h >>conftest.$ac_ext
8365146773Ssamcat >>conftest.$ac_ext <<_ACEOF
8366146773Ssam/* end confdefs.h.  */
8367172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8368172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8369172683Smlaier#define $ac_func innocuous_$ac_func
8370172683Smlaier
8371146773Ssam/* System header to define __stub macros and hopefully few prototypes,
8372146773Ssam    which can conflict with char $ac_func (); below.
8373146773Ssam    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8374146773Ssam    <limits.h> exists even on freestanding compilers.  */
8375172683Smlaier
8376146773Ssam#ifdef __STDC__
8377146773Ssam# include <limits.h>
8378146773Ssam#else
8379146773Ssam# include <assert.h>
8380146773Ssam#endif
8381172683Smlaier
8382172683Smlaier#undef $ac_func
8383172683Smlaier
8384172683Smlaier/* Override any GCC internal prototype to avoid an error.
8385172683Smlaier   Use char because int might match the return type of a GCC
8386172683Smlaier   builtin and then its argument prototype would still apply.  */
8387146773Ssam#ifdef __cplusplus
8388146773Ssamextern "C"
8389146773Ssam#endif
8390146773Ssamchar $ac_func ();
8391146773Ssam/* The GNU C library defines this for functions which it implements
8392146773Ssam    to always fail with ENOSYS.  Some functions are actually named
8393146773Ssam    something starting with __ and the normal name is an alias.  */
8394172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
8395146773Ssamchoke me
8396146773Ssam#endif
8397146773Ssam
8398146773Ssamint
8399146773Ssammain ()
8400146773Ssam{
8401172683Smlaierreturn $ac_func ();
8402146773Ssam  ;
8403146773Ssam  return 0;
8404146773Ssam}
8405146773Ssam_ACEOF
8406146773Ssamrm -f conftest.$ac_objext conftest$ac_exeext
8407172683Smlaierif { (ac_try="$ac_link"
8408172683Smlaiercase "(($ac_try" in
8409172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410172683Smlaier  *) ac_try_echo=$ac_try;;
8411172683Smlaieresac
8412172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413172683Smlaier  (eval "$ac_link") 2>conftest.er1
8414146773Ssam  ac_status=$?
8415172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8416172683Smlaier  rm -f conftest.er1
8417172683Smlaier  cat conftest.err >&5
8418146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419172683Smlaier  (exit $ac_status); } && {
8420172683Smlaier	 test -z "$ac_c_werror_flag" ||
8421172683Smlaier	 test ! -s conftest.err
8422172683Smlaier       } && test -s conftest$ac_exeext &&
8423172683Smlaier       $as_test_x conftest$ac_exeext; then
8424146773Ssam  eval "$as_ac_var=yes"
8425146773Ssamelse
8426146773Ssam  echo "$as_me: failed program was:" >&5
8427146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
8428146773Ssam
8429172683Smlaier	eval "$as_ac_var=no"
8430146773Ssamfi
8431172683Smlaier
8432172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433172683Smlaier      conftest$ac_exeext conftest.$ac_ext
8434146773Ssamfi
8435172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
8436172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8437172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
8438146773Ssamif test `eval echo '${'$as_ac_var'}'` = yes; then
8439146773Ssam  cat >>confdefs.h <<_ACEOF
8440146773Ssam#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8441146773Ssam_ACEOF
8442146773Ssam
8443172683Smlaier    { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8444172683Smlaierecho $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8445146773Ssamif test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8446146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8447146773Ssamelse
8448146773Ssam
8449146773Ssam	if test "$cross_compiling" = yes; then
8450146773Ssam  ac_cv_buggy_ether_ntohost="not while cross-compiling"
8451146773Ssamelse
8452146773Ssam  cat >conftest.$ac_ext <<_ACEOF
8453146773Ssam/* confdefs.h.  */
8454146773Ssam_ACEOF
8455146773Ssamcat confdefs.h >>conftest.$ac_ext
8456146773Ssamcat >>conftest.$ac_ext <<_ACEOF
8457146773Ssam/* end confdefs.h.  */
8458146773Ssam
8459146773Ssam		#include <netdb.h>
8460146773Ssam		#include <sys/types.h>
8461146773Ssam		#include <sys/param.h>
8462146773Ssam		#include <sys/socket.h>
8463146773Ssam
8464146773Ssam		int
8465146773Ssam		main(int argc, char **argv)
8466146773Ssam		{
8467146773Ssam			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8468146773Ssam			char name[MAXHOSTNAMELEN];
8469146773Ssam
8470146773Ssam			ether_ntohost(name, (struct ether_addr *)ea);
8471146773Ssam			exit(0);
8472146773Ssam		}
8473146773Ssam
8474146773Ssam_ACEOF
8475146773Ssamrm -f conftest$ac_exeext
8476172683Smlaierif { (ac_try="$ac_link"
8477172683Smlaiercase "(($ac_try" in
8478172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479172683Smlaier  *) ac_try_echo=$ac_try;;
8480172683Smlaieresac
8481172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482172683Smlaier  (eval "$ac_link") 2>&5
8483146773Ssam  ac_status=$?
8484146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8486172683Smlaier  { (case "(($ac_try" in
8487172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488172683Smlaier  *) ac_try_echo=$ac_try;;
8489172683Smlaieresac
8490172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491172683Smlaier  (eval "$ac_try") 2>&5
8492146773Ssam  ac_status=$?
8493146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494146773Ssam  (exit $ac_status); }; }; then
8495146773Ssam  ac_cv_buggy_ether_ntohost=no
8496146773Ssamelse
8497146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
8498146773Ssamecho "$as_me: failed program was:" >&5
8499146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
8500146773Ssam
8501146773Ssam( exit $ac_status )
8502146773Ssamac_cv_buggy_ether_ntohost=yes
8503146773Ssamfi
8504172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8505146773Ssamfi
8506172683Smlaier
8507172683Smlaier
8508146773Ssamfi
8509172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8510172683Smlaierecho "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8511146773Ssam    if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8512146773Ssam	cat >>confdefs.h <<\_ACEOF
8513146773Ssam#define USE_ETHER_NTOHOST 1
8514146773Ssam_ACEOF
8515146773Ssam
8516146773Ssam    fi
8517146773Ssam
8518146773Ssamfi
8519146773Ssamdone
8520146773Ssam
8521146773Ssamif test "$ac_cv_func_ether_ntohost" = yes -a \
8522146773Ssam    "$ac_cv_buggy_ether_ntohost" = "no"; then
8523146773Ssam	#
8524146773Ssam	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
8525146773Ssam	#
8526146773Ssam	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8527146773Ssam		#
8528146773Ssam		# Yes.  Does it declare ether_ntohost()?
8529146773Ssam		#
8530172683Smlaier		{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8531172683Smlaierecho $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8532146773Ssamif test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8533146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8534146773Ssamelse
8535146773Ssam  cat >conftest.$ac_ext <<_ACEOF
8536146773Ssam/* confdefs.h.  */
8537146773Ssam_ACEOF
8538146773Ssamcat confdefs.h >>conftest.$ac_ext
8539146773Ssamcat >>conftest.$ac_ext <<_ACEOF
8540146773Ssam/* end confdefs.h.  */
8541146773Ssam
8542146773Ssam#include <sys/types.h>
8543146773Ssam#include <sys/socket.h>
8544146773Ssam#include <netinet/in.h>
8545147899Ssam#include <arpa/inet.h>
8546146773Ssamstruct mbuf;
8547146773Ssamstruct rtentry;
8548146773Ssam#include <net/if.h>
8549146773Ssam#include <netinet/if_ether.h>
8550146773Ssam
8551146773Ssam
8552146773Ssamint
8553146773Ssammain ()
8554146773Ssam{
8555146773Ssam#ifndef ether_ntohost
8556172683Smlaier  (void) ether_ntohost;
8557146773Ssam#endif
8558146773Ssam
8559146773Ssam  ;
8560146773Ssam  return 0;
8561146773Ssam}
8562146773Ssam_ACEOF
8563146773Ssamrm -f conftest.$ac_objext
8564172683Smlaierif { (ac_try="$ac_compile"
8565172683Smlaiercase "(($ac_try" in
8566172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567172683Smlaier  *) ac_try_echo=$ac_try;;
8568172683Smlaieresac
8569172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570172683Smlaier  (eval "$ac_compile") 2>conftest.er1
8571146773Ssam  ac_status=$?
8572172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8573172683Smlaier  rm -f conftest.er1
8574172683Smlaier  cat conftest.err >&5
8575146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576172683Smlaier  (exit $ac_status); } && {
8577172683Smlaier	 test -z "$ac_c_werror_flag" ||
8578172683Smlaier	 test ! -s conftest.err
8579172683Smlaier       } && test -s conftest.$ac_objext; then
8580146773Ssam  ac_cv_have_decl_ether_ntohost=yes
8581146773Ssamelse
8582146773Ssam  echo "$as_me: failed program was:" >&5
8583146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
8584146773Ssam
8585172683Smlaier	ac_cv_have_decl_ether_ntohost=no
8586146773Ssamfi
8587172683Smlaier
8588172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589146773Ssamfi
8590172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8591172683Smlaierecho "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8592146773Ssamif test $ac_cv_have_decl_ether_ntohost = yes; then
8593146773Ssam
8594146773Ssam
8595146773Ssamcat >>confdefs.h <<\_ACEOF
8596146773Ssam#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8597146773Ssam_ACEOF
8598146773Ssam
8599146773Ssam
8600146773Ssamfi
8601146773Ssam
8602146773Ssam	fi
8603146773Ssam	#
8604146773Ssam	# Did that succeed?
8605146773Ssam	#
8606146773Ssam	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8607146773Ssam		#
8608146773Ssam		# No, how about <netinet/ether.h>, as on Linux?
8609146773Ssam		#
8610146773Ssam
8611146773Ssamfor ac_header in netinet/ether.h
8612146773Ssamdo
8613146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8615172683Smlaier  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8616172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8617172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8618146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8619146773Ssamfi
8620172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
8621172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8622172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
8623146773Ssamelse
8624146773Ssam  # Is the header compilable?
8625172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626172683Smlaierecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8627146773Ssamcat >conftest.$ac_ext <<_ACEOF
8628146773Ssam/* confdefs.h.  */
8629146773Ssam_ACEOF
8630146773Ssamcat confdefs.h >>conftest.$ac_ext
8631146773Ssamcat >>conftest.$ac_ext <<_ACEOF
8632146773Ssam/* end confdefs.h.  */
8633146773Ssam$ac_includes_default
8634146773Ssam#include <$ac_header>
8635146773Ssam_ACEOF
8636146773Ssamrm -f conftest.$ac_objext
8637172683Smlaierif { (ac_try="$ac_compile"
8638172683Smlaiercase "(($ac_try" in
8639172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640172683Smlaier  *) ac_try_echo=$ac_try;;
8641172683Smlaieresac
8642172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643172683Smlaier  (eval "$ac_compile") 2>conftest.er1
8644146773Ssam  ac_status=$?
8645172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8646172683Smlaier  rm -f conftest.er1
8647172683Smlaier  cat conftest.err >&5
8648146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649172683Smlaier  (exit $ac_status); } && {
8650172683Smlaier	 test -z "$ac_c_werror_flag" ||
8651172683Smlaier	 test ! -s conftest.err
8652172683Smlaier       } && test -s conftest.$ac_objext; then
8653146773Ssam  ac_header_compiler=yes
8654146773Ssamelse
8655146773Ssam  echo "$as_me: failed program was:" >&5
8656146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
8657146773Ssam
8658172683Smlaier	ac_header_compiler=no
8659146773Ssamfi
8660146773Ssam
8661172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663172683Smlaierecho "${ECHO_T}$ac_header_compiler" >&6; }
8664172683Smlaier
8665146773Ssam# Is the header present?
8666172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667172683Smlaierecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8668146773Ssamcat >conftest.$ac_ext <<_ACEOF
8669146773Ssam/* confdefs.h.  */
8670146773Ssam_ACEOF
8671146773Ssamcat confdefs.h >>conftest.$ac_ext
8672146773Ssamcat >>conftest.$ac_ext <<_ACEOF
8673146773Ssam/* end confdefs.h.  */
8674146773Ssam#include <$ac_header>
8675146773Ssam_ACEOF
8676172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
8677172683Smlaiercase "(($ac_try" in
8678172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679172683Smlaier  *) ac_try_echo=$ac_try;;
8680172683Smlaieresac
8681172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8683146773Ssam  ac_status=$?
8684146773Ssam  grep -v '^ *+' conftest.er1 >conftest.err
8685146773Ssam  rm -f conftest.er1
8686146773Ssam  cat conftest.err >&5
8687146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688172683Smlaier  (exit $ac_status); } >/dev/null && {
8689172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8690172683Smlaier	 test ! -s conftest.err
8691172683Smlaier       }; then
8692146773Ssam  ac_header_preproc=yes
8693146773Ssamelse
8694146773Ssam  echo "$as_me: failed program was:" >&5
8695146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
8696146773Ssam
8697146773Ssam  ac_header_preproc=no
8698146773Ssamfi
8699172683Smlaier
8700146773Ssamrm -f conftest.err conftest.$ac_ext
8701172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8702172683Smlaierecho "${ECHO_T}$ac_header_preproc" >&6; }
8703146773Ssam
8704146773Ssam# So?  What about this header?
8705172683Smlaiercase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8706172683Smlaier  yes:no: )
8707146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8708146773Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8709172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8710172683Smlaierecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8711172683Smlaier    ac_header_preproc=yes
8712146773Ssam    ;;
8713172683Smlaier  no:yes:* )
8714146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8715146773Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8716172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8717172683Smlaierecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8718172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8719172683Smlaierecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8720172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8721172683Smlaierecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8722146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8723146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8724172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8725172683Smlaierecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8726172683Smlaier
8727146773Ssam    ;;
8728146773Ssamesac
8729172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8730172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8731172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8732146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8733146773Ssamelse
8734172683Smlaier  eval "$as_ac_Header=\$ac_header_preproc"
8735146773Ssamfi
8736172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
8737172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8738172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
8739146773Ssam
8740146773Ssamfi
8741146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
8742146773Ssam  cat >>confdefs.h <<_ACEOF
8743146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8744146773Ssam_ACEOF
8745146773Ssam
8746146773Ssamfi
8747146773Ssam
8748146773Ssamdone
8749146773Ssam
8750146773Ssam		if test "$ac_cv_header_netinet_ether_h" = yes; then
8751146773Ssam			#
8752146773Ssam			# We have it - does it declare ether_ntohost()?
8753146773Ssam			# Unset ac_cv_have_decl_ether_ntohost so we don't
8754146773Ssam			# treat the previous failure as a cached value and
8755146773Ssam			# suppress the next test.
8756146773Ssam			#
8757146773Ssam			unset ac_cv_have_decl_ether_ntohost
8758172683Smlaier			{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8759172683Smlaierecho $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8760146773Ssamif test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8761146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8762146773Ssamelse
8763146773Ssam  cat >conftest.$ac_ext <<_ACEOF
8764146773Ssam/* confdefs.h.  */
8765146773Ssam_ACEOF
8766146773Ssamcat confdefs.h >>conftest.$ac_ext
8767146773Ssamcat >>conftest.$ac_ext <<_ACEOF
8768146773Ssam/* end confdefs.h.  */
8769146773Ssam
8770146773Ssam#include <netinet/ether.h>
8771146773Ssam
8772146773Ssam
8773146773Ssamint
8774146773Ssammain ()
8775146773Ssam{
8776146773Ssam#ifndef ether_ntohost
8777172683Smlaier  (void) ether_ntohost;
8778146773Ssam#endif
8779146773Ssam
8780146773Ssam  ;
8781146773Ssam  return 0;
8782146773Ssam}
8783146773Ssam_ACEOF
8784146773Ssamrm -f conftest.$ac_objext
8785172683Smlaierif { (ac_try="$ac_compile"
8786172683Smlaiercase "(($ac_try" in
8787172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788172683Smlaier  *) ac_try_echo=$ac_try;;
8789172683Smlaieresac
8790172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791172683Smlaier  (eval "$ac_compile") 2>conftest.er1
8792146773Ssam  ac_status=$?
8793172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8794172683Smlaier  rm -f conftest.er1
8795172683Smlaier  cat conftest.err >&5
8796146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797172683Smlaier  (exit $ac_status); } && {
8798172683Smlaier	 test -z "$ac_c_werror_flag" ||
8799172683Smlaier	 test ! -s conftest.err
8800172683Smlaier       } && test -s conftest.$ac_objext; then
8801146773Ssam  ac_cv_have_decl_ether_ntohost=yes
8802146773Ssamelse
8803146773Ssam  echo "$as_me: failed program was:" >&5
8804146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
8805146773Ssam
8806172683Smlaier	ac_cv_have_decl_ether_ntohost=no
8807146773Ssamfi
8808172683Smlaier
8809172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810146773Ssamfi
8811172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8812172683Smlaierecho "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8813146773Ssamif test $ac_cv_have_decl_ether_ntohost = yes; then
8814146773Ssam
8815147899Ssam
8816147899Ssamcat >>confdefs.h <<\_ACEOF
8817147899Ssam#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8818146773Ssam_ACEOF
8819146773Ssam
8820146773Ssam
8821147899Ssamfi
8822146773Ssam
8823147899Ssam		fi
8824147899Ssam	fi
8825147899Ssam	#
8826147899Ssam	# Is ether_ntohost() declared?
8827147899Ssam	#
8828147899Ssam	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8829147899Ssam		#
8830147899Ssam		# No, we'll have to declare it ourselves.
8831147899Ssam		# Do we have "struct ether_addr"?
8832147899Ssam		#
8833172683Smlaier		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8834172683Smlaierecho $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8835147899Ssamif test "${ac_cv_type_struct_ether_addr+set}" = set; then
8836147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
8837147899Ssamelse
8838147899Ssam  cat >conftest.$ac_ext <<_ACEOF
8839147899Ssam/* confdefs.h.  */
8840146773Ssam_ACEOF
8841147899Ssamcat confdefs.h >>conftest.$ac_ext
8842147899Ssamcat >>conftest.$ac_ext <<_ACEOF
8843147899Ssam/* end confdefs.h.  */
8844146773Ssam
8845147899Ssam#include <sys/types.h>
8846147899Ssam#include <sys/socket.h>
8847147899Ssam#include <netinet/in.h>
8848147899Ssam#include <arpa/inet.h>
8849147899Ssamstruct mbuf;
8850147899Ssamstruct rtentry;
8851147899Ssam#include <net/if.h>
8852147899Ssam#include <netinet/if_ether.h>
8853146773Ssam
8854147899Ssam
8855172683Smlaiertypedef struct ether_addr ac__type_new_;
8856147899Ssamint
8857147899Ssammain ()
8858147899Ssam{
8859172683Smlaierif ((ac__type_new_ *) 0)
8860147899Ssam  return 0;
8861172683Smlaierif (sizeof (ac__type_new_))
8862147899Ssam  return 0;
8863147899Ssam  ;
8864147899Ssam  return 0;
8865147899Ssam}
8866147899Ssam_ACEOF
8867147899Ssamrm -f conftest.$ac_objext
8868172683Smlaierif { (ac_try="$ac_compile"
8869172683Smlaiercase "(($ac_try" in
8870172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871172683Smlaier  *) ac_try_echo=$ac_try;;
8872172683Smlaieresac
8873172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874172683Smlaier  (eval "$ac_compile") 2>conftest.er1
8875147899Ssam  ac_status=$?
8876172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
8877172683Smlaier  rm -f conftest.er1
8878172683Smlaier  cat conftest.err >&5
8879147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880172683Smlaier  (exit $ac_status); } && {
8881172683Smlaier	 test -z "$ac_c_werror_flag" ||
8882172683Smlaier	 test ! -s conftest.err
8883172683Smlaier       } && test -s conftest.$ac_objext; then
8884147899Ssam  ac_cv_type_struct_ether_addr=yes
8885146773Ssamelse
8886147899Ssam  echo "$as_me: failed program was:" >&5
8887147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
8888147899Ssam
8889172683Smlaier	ac_cv_type_struct_ether_addr=no
8890147899Ssamfi
8891172683Smlaier
8892172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893147899Ssamfi
8894172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8895172683Smlaierecho "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8896147899Ssamif test $ac_cv_type_struct_ether_addr = yes; then
8897147899Ssam
8898147899Ssamcat >>confdefs.h <<_ACEOF
8899147899Ssam#define HAVE_STRUCT_ETHER_ADDR 1
8900146773Ssam_ACEOF
8901146773Ssam
8902146773Ssam
8903146773Ssamfi
8904146773Ssam
8905146773Ssam
8906147899Ssamcat >>confdefs.h <<\_ACEOF
8907147899Ssam#define HAVE_DECL_ETHER_NTOHOST 0
8908147899Ssam_ACEOF
8909147899Ssam
8910147899Ssam	else
8911147899Ssam
8912147899Ssamcat >>confdefs.h <<\_ACEOF
8913147899Ssam#define HAVE_DECL_ETHER_NTOHOST 1
8914147899Ssam_ACEOF
8915147899Ssam
8916146773Ssam	fi
8917146773Ssamfi
8918146773Ssam
8919190207Srpaulo# libdlpi is needed for Solaris 11 and later.
8920190207Srpaulo{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8921190207Srpauloecho $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8922190207Srpauloif test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8923190207Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
8924190207Srpauloelse
8925190207Srpaulo  ac_check_lib_save_LIBS=$LIBS
8926190207SrpauloLIBS="-ldlpi -L/lib $LIBS"
8927190207Srpaulocat >conftest.$ac_ext <<_ACEOF
8928190207Srpaulo/* confdefs.h.  */
8929190207Srpaulo_ACEOF
8930190207Srpaulocat confdefs.h >>conftest.$ac_ext
8931190207Srpaulocat >>conftest.$ac_ext <<_ACEOF
8932190207Srpaulo/* end confdefs.h.  */
8933146773Ssam
8934190207Srpaulo/* Override any GCC internal prototype to avoid an error.
8935190207Srpaulo   Use char because int might match the return type of a GCC
8936190207Srpaulo   builtin and then its argument prototype would still apply.  */
8937190207Srpaulo#ifdef __cplusplus
8938190207Srpauloextern "C"
8939190207Srpaulo#endif
8940190207Srpaulochar dlpi_walk ();
8941190207Srpauloint
8942190207Srpaulomain ()
8943190207Srpaulo{
8944190207Srpauloreturn dlpi_walk ();
8945190207Srpaulo  ;
8946190207Srpaulo  return 0;
8947190207Srpaulo}
8948190207Srpaulo_ACEOF
8949190207Srpaulorm -f conftest.$ac_objext conftest$ac_exeext
8950190207Srpauloif { (ac_try="$ac_link"
8951190207Srpaulocase "(($ac_try" in
8952190207Srpaulo  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953190207Srpaulo  *) ac_try_echo=$ac_try;;
8954190207Srpauloesac
8955190207Srpauloeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956190207Srpaulo  (eval "$ac_link") 2>conftest.er1
8957190207Srpaulo  ac_status=$?
8958190207Srpaulo  grep -v '^ *+' conftest.er1 >conftest.err
8959190207Srpaulo  rm -f conftest.er1
8960190207Srpaulo  cat conftest.err >&5
8961190207Srpaulo  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962190207Srpaulo  (exit $ac_status); } && {
8963190207Srpaulo	 test -z "$ac_c_werror_flag" ||
8964190207Srpaulo	 test ! -s conftest.err
8965190207Srpaulo       } && test -s conftest$ac_exeext &&
8966190207Srpaulo       $as_test_x conftest$ac_exeext; then
8967190207Srpaulo  ac_cv_lib_dlpi_dlpi_walk=yes
8968190207Srpauloelse
8969190207Srpaulo  echo "$as_me: failed program was:" >&5
8970190207Srpaulosed 's/^/| /' conftest.$ac_ext >&5
8971190207Srpaulo
8972190207Srpaulo	ac_cv_lib_dlpi_dlpi_walk=no
8973190207Srpaulofi
8974190207Srpaulo
8975190207Srpaulorm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976190207Srpaulo      conftest$ac_exeext conftest.$ac_ext
8977190207SrpauloLIBS=$ac_check_lib_save_LIBS
8978190207Srpaulofi
8979190207Srpaulo{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8980190207Srpauloecho "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8981190207Srpauloif test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8982190207Srpaulo  LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8983190207Srpaulofi
8984190207Srpaulo
8985190207Srpaulo
8986190207Srpaulo
8987172683Smlaier	{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8988172683Smlaierecho $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8989127668Sbms	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8990127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
8991127668Sbmselse
8992127668Sbms  cat >conftest.$ac_ext <<_ACEOF
8993127668Sbms/* confdefs.h.  */
8994127668Sbms_ACEOF
8995127668Sbmscat confdefs.h >>conftest.$ac_ext
8996127668Sbmscat >>conftest.$ac_ext <<_ACEOF
8997127668Sbms/* end confdefs.h.  */
8998127668Sbms
8999127668Sbms#		include <sys/types.h>
9000127668Sbms#		include <sys/socket.h>
9001127668Sbmsint
9002127668Sbmsmain ()
9003127668Sbms{
9004127668Sbmsu_int i = sizeof(((struct sockaddr *)0)->sa_len)
9005127668Sbms  ;
9006127668Sbms  return 0;
9007127668Sbms}
9008127668Sbms_ACEOF
9009127668Sbmsrm -f conftest.$ac_objext
9010172683Smlaierif { (ac_try="$ac_compile"
9011172683Smlaiercase "(($ac_try" in
9012172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013172683Smlaier  *) ac_try_echo=$ac_try;;
9014172683Smlaieresac
9015172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016172683Smlaier  (eval "$ac_compile") 2>conftest.er1
9017127668Sbms  ac_status=$?
9018172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9019172683Smlaier  rm -f conftest.er1
9020172683Smlaier  cat conftest.err >&5
9021127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022172683Smlaier  (exit $ac_status); } && {
9023172683Smlaier	 test -z "$ac_c_werror_flag" ||
9024172683Smlaier	 test ! -s conftest.err
9025172683Smlaier       } && test -s conftest.$ac_objext; then
9026127668Sbms  ac_cv_sockaddr_has_sa_len=yes
9027127668Sbmselse
9028127668Sbms  echo "$as_me: failed program was:" >&5
9029127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9030127668Sbms
9031172683Smlaier	ac_cv_sockaddr_has_sa_len=no
9032127668Sbmsfi
9033172683Smlaier
9034172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035127668Sbmsfi
9036127668Sbms
9037172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9038172683Smlaierecho "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9039127668Sbms		if test $ac_cv_sockaddr_has_sa_len = yes ; then
9040127668Sbms			cat >>confdefs.h <<\_ACEOF
9041127668Sbms#define HAVE_SOCKADDR_SA_LEN 1
9042127668Sbms_ACEOF
9043127668Sbms
9044127668Sbms	fi
9045127668Sbms
9046127668Sbmsif test "$ac_cv_sockaddr_has_sa_len" = no; then
9047127668Sbms	missing_includes=yes
9048127668Sbmsfi
9049127668Sbms
9050190207Srpaulo#
9051190207Srpaulo# Do we have the new open API?  Check for pcap_create, and assume that,
9052236192Sdelphij# if we do, we also have pcap_activate() and the other new routines
9053236192Sdelphij# introduced in libpcap 1.0.0.
9054236192Sdelphij#
9055127668Sbms
9056190207Srpaulofor ac_func in pcap_create
9057190207Srpaulodo
9058190207Srpauloas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9059190207Srpaulo{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9060190207Srpauloecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9061190207Srpauloif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9062190207Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
9063190207Srpauloelse
9064190207Srpaulo  cat >conftest.$ac_ext <<_ACEOF
9065190207Srpaulo/* confdefs.h.  */
9066190207Srpaulo_ACEOF
9067190207Srpaulocat confdefs.h >>conftest.$ac_ext
9068190207Srpaulocat >>conftest.$ac_ext <<_ACEOF
9069190207Srpaulo/* end confdefs.h.  */
9070190207Srpaulo/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9071190207Srpaulo   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9072190207Srpaulo#define $ac_func innocuous_$ac_func
9073127668Sbms
9074190207Srpaulo/* System header to define __stub macros and hopefully few prototypes,
9075190207Srpaulo    which can conflict with char $ac_func (); below.
9076190207Srpaulo    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077190207Srpaulo    <limits.h> exists even on freestanding compilers.  */
9078127668Sbms
9079190207Srpaulo#ifdef __STDC__
9080190207Srpaulo# include <limits.h>
9081190207Srpaulo#else
9082190207Srpaulo# include <assert.h>
9083190207Srpaulo#endif
9084190207Srpaulo
9085190207Srpaulo#undef $ac_func
9086190207Srpaulo
9087190207Srpaulo/* Override any GCC internal prototype to avoid an error.
9088190207Srpaulo   Use char because int might match the return type of a GCC
9089190207Srpaulo   builtin and then its argument prototype would still apply.  */
9090190207Srpaulo#ifdef __cplusplus
9091190207Srpauloextern "C"
9092190207Srpaulo#endif
9093190207Srpaulochar $ac_func ();
9094190207Srpaulo/* The GNU C library defines this for functions which it implements
9095190207Srpaulo    to always fail with ENOSYS.  Some functions are actually named
9096190207Srpaulo    something starting with __ and the normal name is an alias.  */
9097190207Srpaulo#if defined __stub_$ac_func || defined __stub___$ac_func
9098190207Srpaulochoke me
9099190207Srpaulo#endif
9100190207Srpaulo
9101190207Srpauloint
9102190207Srpaulomain ()
9103190207Srpaulo{
9104190207Srpauloreturn $ac_func ();
9105190207Srpaulo  ;
9106190207Srpaulo  return 0;
9107190207Srpaulo}
9108190207Srpaulo_ACEOF
9109190207Srpaulorm -f conftest.$ac_objext conftest$ac_exeext
9110190207Srpauloif { (ac_try="$ac_link"
9111190207Srpaulocase "(($ac_try" in
9112190207Srpaulo  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113190207Srpaulo  *) ac_try_echo=$ac_try;;
9114190207Srpauloesac
9115190207Srpauloeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116190207Srpaulo  (eval "$ac_link") 2>conftest.er1
9117190207Srpaulo  ac_status=$?
9118190207Srpaulo  grep -v '^ *+' conftest.er1 >conftest.err
9119190207Srpaulo  rm -f conftest.er1
9120190207Srpaulo  cat conftest.err >&5
9121190207Srpaulo  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122190207Srpaulo  (exit $ac_status); } && {
9123190207Srpaulo	 test -z "$ac_c_werror_flag" ||
9124190207Srpaulo	 test ! -s conftest.err
9125190207Srpaulo       } && test -s conftest$ac_exeext &&
9126190207Srpaulo       $as_test_x conftest$ac_exeext; then
9127190207Srpaulo  eval "$as_ac_var=yes"
9128190207Srpauloelse
9129190207Srpaulo  echo "$as_me: failed program was:" >&5
9130190207Srpaulosed 's/^/| /' conftest.$ac_ext >&5
9131190207Srpaulo
9132190207Srpaulo	eval "$as_ac_var=no"
9133190207Srpaulofi
9134190207Srpaulo
9135190207Srpaulorm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136190207Srpaulo      conftest$ac_exeext conftest.$ac_ext
9137190207Srpaulofi
9138190207Srpauloac_res=`eval echo '${'$as_ac_var'}'`
9139190207Srpaulo	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9140190207Srpauloecho "${ECHO_T}$ac_res" >&6; }
9141190207Srpauloif test `eval echo '${'$as_ac_var'}'` = yes; then
9142190207Srpaulo  cat >>confdefs.h <<_ACEOF
9143190207Srpaulo#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9144190207Srpaulo_ACEOF
9145190207Srpaulo
9146190207Srpaulofi
9147190207Srpaulodone
9148190207Srpaulo
9149236192Sdelphijif test $ac_cv_func_pcap_create = "yes" ; then
9150236192Sdelphij	#
9151236192Sdelphij	# OK, do we have pcap_set_tstamp_type?  If so, assume we have
9152236192Sdelphij	# pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9153236192Sdelphij	#
9154190207Srpaulo
9155236192Sdelphijfor ac_func in pcap_set_tstamp_type
9156236192Sdelphijdo
9157236192Sdelphijas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9158236192Sdelphij{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9159236192Sdelphijecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9160236192Sdelphijif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9161236192Sdelphij  echo $ECHO_N "(cached) $ECHO_C" >&6
9162236192Sdelphijelse
9163236192Sdelphij  cat >conftest.$ac_ext <<_ACEOF
9164236192Sdelphij/* confdefs.h.  */
9165236192Sdelphij_ACEOF
9166236192Sdelphijcat confdefs.h >>conftest.$ac_ext
9167236192Sdelphijcat >>conftest.$ac_ext <<_ACEOF
9168236192Sdelphij/* end confdefs.h.  */
9169236192Sdelphij/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9170236192Sdelphij   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9171236192Sdelphij#define $ac_func innocuous_$ac_func
9172190207Srpaulo
9173236192Sdelphij/* System header to define __stub macros and hopefully few prototypes,
9174236192Sdelphij    which can conflict with char $ac_func (); below.
9175236192Sdelphij    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9176236192Sdelphij    <limits.h> exists even on freestanding compilers.  */
9177190207Srpaulo
9178236192Sdelphij#ifdef __STDC__
9179236192Sdelphij# include <limits.h>
9180236192Sdelphij#else
9181236192Sdelphij# include <assert.h>
9182236192Sdelphij#endif
9183190207Srpaulo
9184236192Sdelphij#undef $ac_func
9185236192Sdelphij
9186236192Sdelphij/* Override any GCC internal prototype to avoid an error.
9187236192Sdelphij   Use char because int might match the return type of a GCC
9188236192Sdelphij   builtin and then its argument prototype would still apply.  */
9189236192Sdelphij#ifdef __cplusplus
9190236192Sdelphijextern "C"
9191236192Sdelphij#endif
9192236192Sdelphijchar $ac_func ();
9193236192Sdelphij/* The GNU C library defines this for functions which it implements
9194236192Sdelphij    to always fail with ENOSYS.  Some functions are actually named
9195236192Sdelphij    something starting with __ and the normal name is an alias.  */
9196236192Sdelphij#if defined __stub_$ac_func || defined __stub___$ac_func
9197236192Sdelphijchoke me
9198236192Sdelphij#endif
9199236192Sdelphij
9200236192Sdelphijint
9201236192Sdelphijmain ()
9202236192Sdelphij{
9203236192Sdelphijreturn $ac_func ();
9204236192Sdelphij  ;
9205236192Sdelphij  return 0;
9206236192Sdelphij}
9207236192Sdelphij_ACEOF
9208236192Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext
9209236192Sdelphijif { (ac_try="$ac_link"
9210236192Sdelphijcase "(($ac_try" in
9211236192Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212236192Sdelphij  *) ac_try_echo=$ac_try;;
9213236192Sdelphijesac
9214236192Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215236192Sdelphij  (eval "$ac_link") 2>conftest.er1
9216236192Sdelphij  ac_status=$?
9217236192Sdelphij  grep -v '^ *+' conftest.er1 >conftest.err
9218236192Sdelphij  rm -f conftest.er1
9219236192Sdelphij  cat conftest.err >&5
9220236192Sdelphij  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221236192Sdelphij  (exit $ac_status); } && {
9222236192Sdelphij	 test -z "$ac_c_werror_flag" ||
9223236192Sdelphij	 test ! -s conftest.err
9224236192Sdelphij       } && test -s conftest$ac_exeext &&
9225236192Sdelphij       $as_test_x conftest$ac_exeext; then
9226236192Sdelphij  eval "$as_ac_var=yes"
9227236192Sdelphijelse
9228236192Sdelphij  echo "$as_me: failed program was:" >&5
9229236192Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
9230236192Sdelphij
9231236192Sdelphij	eval "$as_ac_var=no"
9232236192Sdelphijfi
9233236192Sdelphij
9234236192Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9235236192Sdelphij      conftest$ac_exeext conftest.$ac_ext
9236236192Sdelphijfi
9237236192Sdelphijac_res=`eval echo '${'$as_ac_var'}'`
9238236192Sdelphij	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9239236192Sdelphijecho "${ECHO_T}$ac_res" >&6; }
9240236192Sdelphijif test `eval echo '${'$as_ac_var'}'` = yes; then
9241236192Sdelphij  cat >>confdefs.h <<_ACEOF
9242236192Sdelphij#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9243236192Sdelphij_ACEOF
9244236192Sdelphij
9245236192Sdelphijfi
9246236192Sdelphijdone
9247236192Sdelphij
9248236192Sdelphijfi
9249236192Sdelphij
9250236192Sdelphij
9251236192Sdelphij
9252236192Sdelphij
9253127668Sbmsfor ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9254127668Sbmsdo
9255127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9256172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9257172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9258172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9259127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9260127668Sbmselse
9261127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9262127668Sbms/* confdefs.h.  */
9263127668Sbms_ACEOF
9264127668Sbmscat confdefs.h >>conftest.$ac_ext
9265127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9266127668Sbms/* end confdefs.h.  */
9267172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9268172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9269172683Smlaier#define $ac_func innocuous_$ac_func
9270172683Smlaier
9271127668Sbms/* System header to define __stub macros and hopefully few prototypes,
9272127668Sbms    which can conflict with char $ac_func (); below.
9273127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9274127668Sbms    <limits.h> exists even on freestanding compilers.  */
9275172683Smlaier
9276127668Sbms#ifdef __STDC__
9277127668Sbms# include <limits.h>
9278127668Sbms#else
9279127668Sbms# include <assert.h>
9280127668Sbms#endif
9281172683Smlaier
9282172683Smlaier#undef $ac_func
9283172683Smlaier
9284172683Smlaier/* Override any GCC internal prototype to avoid an error.
9285172683Smlaier   Use char because int might match the return type of a GCC
9286172683Smlaier   builtin and then its argument prototype would still apply.  */
9287127668Sbms#ifdef __cplusplus
9288127668Sbmsextern "C"
9289127668Sbms#endif
9290127668Sbmschar $ac_func ();
929175115Sfenner/* The GNU C library defines this for functions which it implements
929275115Sfenner    to always fail with ENOSYS.  Some functions are actually named
929375115Sfenner    something starting with __ and the normal name is an alias.  */
9294172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
929575115Sfennerchoke me
929675115Sfenner#endif
929775115Sfenner
9298127668Sbmsint
9299127668Sbmsmain ()
9300127668Sbms{
9301172683Smlaierreturn $ac_func ();
9302127668Sbms  ;
9303127668Sbms  return 0;
9304127668Sbms}
9305127668Sbms_ACEOF
9306127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9307172683Smlaierif { (ac_try="$ac_link"
9308172683Smlaiercase "(($ac_try" in
9309172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310172683Smlaier  *) ac_try_echo=$ac_try;;
9311172683Smlaieresac
9312172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313172683Smlaier  (eval "$ac_link") 2>conftest.er1
9314127668Sbms  ac_status=$?
9315172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9316172683Smlaier  rm -f conftest.er1
9317172683Smlaier  cat conftest.err >&5
9318127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319172683Smlaier  (exit $ac_status); } && {
9320172683Smlaier	 test -z "$ac_c_werror_flag" ||
9321172683Smlaier	 test ! -s conftest.err
9322172683Smlaier       } && test -s conftest$ac_exeext &&
9323172683Smlaier       $as_test_x conftest$ac_exeext; then
9324127668Sbms  eval "$as_ac_var=yes"
932575115Sfennerelse
9326127668Sbms  echo "$as_me: failed program was:" >&5
9327127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9328127668Sbms
9329172683Smlaier	eval "$as_ac_var=no"
933075115Sfennerfi
9331172683Smlaier
9332172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333172683Smlaier      conftest$ac_exeext conftest.$ac_ext
933475115Sfennerfi
9335172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
9336172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9337172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
9338127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
9339127668Sbms  cat >>confdefs.h <<_ACEOF
9340127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9341127668Sbms_ACEOF
934275115Sfenner
9343127668Sbmsfi
9344127668Sbmsdone
9345127668Sbms
9346127668Sbmsif test $ac_cv_func_pcap_findalldevs = "yes" ; then
9347242485Sdelphij    savedcppflags="$CPPFLAGS"
9348190207Srpaulo    CPPFLAGS="$CPPFLAGS $V_INCLS"
9349172683Smlaier    { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9350172683Smlaierecho $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9351127668Sbmsif test "${ac_cv_type_pcap_if_t+set}" = set; then
9352127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
935375115Sfennerelse
9354127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9355127668Sbms/* confdefs.h.  */
9356127668Sbms_ACEOF
9357127668Sbmscat confdefs.h >>conftest.$ac_ext
9358127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9359127668Sbms/* end confdefs.h.  */
9360127668Sbms#include <pcap.h>
9361127668Sbms
9362172683Smlaiertypedef pcap_if_t ac__type_new_;
9363127668Sbmsint
9364127668Sbmsmain ()
9365127668Sbms{
9366172683Smlaierif ((ac__type_new_ *) 0)
9367127668Sbms  return 0;
9368172683Smlaierif (sizeof (ac__type_new_))
9369127668Sbms  return 0;
9370127668Sbms  ;
9371127668Sbms  return 0;
9372127668Sbms}
9373127668Sbms_ACEOF
9374127668Sbmsrm -f conftest.$ac_objext
9375172683Smlaierif { (ac_try="$ac_compile"
9376172683Smlaiercase "(($ac_try" in
9377172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378172683Smlaier  *) ac_try_echo=$ac_try;;
9379172683Smlaieresac
9380172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381172683Smlaier  (eval "$ac_compile") 2>conftest.er1
9382127668Sbms  ac_status=$?
9383172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9384172683Smlaier  rm -f conftest.er1
9385172683Smlaier  cat conftest.err >&5
9386127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387172683Smlaier  (exit $ac_status); } && {
9388172683Smlaier	 test -z "$ac_c_werror_flag" ||
9389172683Smlaier	 test ! -s conftest.err
9390172683Smlaier       } && test -s conftest.$ac_objext; then
9391127668Sbms  ac_cv_type_pcap_if_t=yes
9392127668Sbmselse
9393127668Sbms  echo "$as_me: failed program was:" >&5
9394127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9395127668Sbms
9396172683Smlaier	ac_cv_type_pcap_if_t=no
939775115Sfennerfi
9398172683Smlaier
9399172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400127668Sbmsfi
9401172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9402172683Smlaierecho "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9403127668Sbmsif test $ac_cv_type_pcap_if_t = yes; then
9404127668Sbms
9405127668Sbmscat >>confdefs.h <<_ACEOF
9406127668Sbms#define HAVE_PCAP_IF_T 1
9407127668Sbms_ACEOF
9408127668Sbms
9409127668Sbms
9410127668Sbmsfi
9411127668Sbms
9412190207Srpaulo    CPPFLAGS="$savedcppflags"
9413127668Sbmsfi
9414146773Ssam
9415127668Sbmsif test $ac_cv_func_pcap_lib_version = "no" ; then
9416172683Smlaier    { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9417172683Smlaierecho $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9418127668Sbms    cat >conftest.$ac_ext <<_ACEOF
9419127668Sbms/* confdefs.h.  */
9420127668Sbms_ACEOF
9421127668Sbmscat confdefs.h >>conftest.$ac_ext
9422127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9423127668Sbms/* end confdefs.h.  */
9424127668Sbms
9425127668Sbmsint
9426127668Sbmsmain ()
9427127668Sbms{
9428127668Sbms
9429127668Sbms	extern char pcap_version[];
9430127668Sbms
9431146773Ssam	return (int)pcap_version;
9432127668Sbms
9433127668Sbms  ;
9434127668Sbms  return 0;
9435127668Sbms}
9436127668Sbms_ACEOF
9437127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9438172683Smlaierif { (ac_try="$ac_link"
9439172683Smlaiercase "(($ac_try" in
9440172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441172683Smlaier  *) ac_try_echo=$ac_try;;
9442172683Smlaieresac
9443172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444172683Smlaier  (eval "$ac_link") 2>conftest.er1
9445127668Sbms  ac_status=$?
9446172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9447172683Smlaier  rm -f conftest.er1
9448172683Smlaier  cat conftest.err >&5
9449127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450172683Smlaier  (exit $ac_status); } && {
9451172683Smlaier	 test -z "$ac_c_werror_flag" ||
9452172683Smlaier	 test ! -s conftest.err
9453172683Smlaier       } && test -s conftest$ac_exeext &&
9454172683Smlaier       $as_test_x conftest$ac_exeext; then
9455127668Sbms  ac_lbl_cv_pcap_version_defined=yes
9456127668Sbmselse
9457127668Sbms  echo "$as_me: failed program was:" >&5
9458127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9459127668Sbms
9460172683Smlaier	ac_lbl_cv_pcap_version_defined=no
9461127668Sbmsfi
9462172683Smlaier
9463172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9464172683Smlaier      conftest$ac_exeext conftest.$ac_ext
9465127668Sbms    if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9466172683Smlaier    	{ echo "$as_me:$LINENO: result: yes" >&5
9467172683Smlaierecho "${ECHO_T}yes" >&6; }
9468127668Sbms	cat >>confdefs.h <<\_ACEOF
9469127668Sbms#define HAVE_PCAP_VERSION 1
9470127668Sbms_ACEOF
9471127668Sbms
9472127668Sbms    else
9473172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
9474172683Smlaierecho "${ECHO_T}no" >&6; }
9475127668Sbms    fi
9476127668Sbmsfi
9477172683Smlaier{ echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9478172683Smlaierecho $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9479127668Sbmscat >conftest.$ac_ext <<_ACEOF
9480127668Sbms/* confdefs.h.  */
9481127668Sbms_ACEOF
9482127668Sbmscat confdefs.h >>conftest.$ac_ext
9483127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9484127668Sbms/* end confdefs.h.  */
9485127668Sbms
9486127668Sbmsint
9487127668Sbmsmain ()
9488127668Sbms{
9489127668Sbms
9490127668Sbms	extern int pcap_debug;
9491127668Sbms
9492127668Sbms	return pcap_debug;
9493127668Sbms
9494127668Sbms  ;
9495127668Sbms  return 0;
9496127668Sbms}
9497127668Sbms_ACEOF
9498127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9499172683Smlaierif { (ac_try="$ac_link"
9500172683Smlaiercase "(($ac_try" in
9501172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502172683Smlaier  *) ac_try_echo=$ac_try;;
9503172683Smlaieresac
9504172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505172683Smlaier  (eval "$ac_link") 2>conftest.er1
9506127668Sbms  ac_status=$?
9507172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9508172683Smlaier  rm -f conftest.er1
9509172683Smlaier  cat conftest.err >&5
9510127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511172683Smlaier  (exit $ac_status); } && {
9512172683Smlaier	 test -z "$ac_c_werror_flag" ||
9513172683Smlaier	 test ! -s conftest.err
9514172683Smlaier       } && test -s conftest$ac_exeext &&
9515172683Smlaier       $as_test_x conftest$ac_exeext; then
9516127668Sbms  ac_lbl_cv_pcap_debug_defined=yes
9517127668Sbmselse
9518127668Sbms  echo "$as_me: failed program was:" >&5
9519127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9520127668Sbms
9521172683Smlaier	ac_lbl_cv_pcap_debug_defined=no
9522127668Sbmsfi
9523172683Smlaier
9524172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525172683Smlaier      conftest$ac_exeext conftest.$ac_ext
9526127668Sbmsif test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9527172683Smlaier	{ echo "$as_me:$LINENO: result: yes" >&5
9528172683Smlaierecho "${ECHO_T}yes" >&6; }
9529127668Sbms	cat >>confdefs.h <<\_ACEOF
9530127668Sbms#define HAVE_PCAP_DEBUG 1
9531127668Sbms_ACEOF
9532127668Sbms
9533127668Sbmselse
9534172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
9535172683Smlaierecho "${ECHO_T}no" >&6; }
9536127668Sbms	#
9537127668Sbms	# OK, what about "yydebug"?
9538127668Sbms	#
9539172683Smlaier	{ echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9540172683Smlaierecho $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9541127668Sbms	cat >conftest.$ac_ext <<_ACEOF
9542127668Sbms/* confdefs.h.  */
9543127668Sbms_ACEOF
9544127668Sbmscat confdefs.h >>conftest.$ac_ext
9545127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9546127668Sbms/* end confdefs.h.  */
9547127668Sbms
9548127668Sbmsint
9549127668Sbmsmain ()
9550127668Sbms{
9551127668Sbms
9552127668Sbms		extern int yydebug;
9553127668Sbms
9554127668Sbms		return yydebug;
9555127668Sbms
9556127668Sbms  ;
9557127668Sbms  return 0;
9558127668Sbms}
9559127668Sbms_ACEOF
9560127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9561172683Smlaierif { (ac_try="$ac_link"
9562172683Smlaiercase "(($ac_try" in
9563172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564172683Smlaier  *) ac_try_echo=$ac_try;;
9565172683Smlaieresac
9566172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567172683Smlaier  (eval "$ac_link") 2>conftest.er1
9568127668Sbms  ac_status=$?
9569172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9570172683Smlaier  rm -f conftest.er1
9571172683Smlaier  cat conftest.err >&5
9572127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573172683Smlaier  (exit $ac_status); } && {
9574172683Smlaier	 test -z "$ac_c_werror_flag" ||
9575172683Smlaier	 test ! -s conftest.err
9576172683Smlaier       } && test -s conftest$ac_exeext &&
9577172683Smlaier       $as_test_x conftest$ac_exeext; then
9578127668Sbms  ac_lbl_cv_yydebug_defined=yes
9579127668Sbmselse
9580127668Sbms  echo "$as_me: failed program was:" >&5
9581127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9582127668Sbms
9583172683Smlaier	ac_lbl_cv_yydebug_defined=no
9584127668Sbmsfi
9585172683Smlaier
9586172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587172683Smlaier      conftest$ac_exeext conftest.$ac_ext
9588127668Sbms	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9589172683Smlaier		{ echo "$as_me:$LINENO: result: yes" >&5
9590172683Smlaierecho "${ECHO_T}yes" >&6; }
9591127668Sbms		cat >>confdefs.h <<\_ACEOF
9592127668Sbms#define HAVE_YYDEBUG 1
9593127668Sbms_ACEOF
9594127668Sbms
9595127668Sbms	else
9596172683Smlaier		{ echo "$as_me:$LINENO: result: no" >&5
9597172683Smlaierecho "${ECHO_T}no" >&6; }
9598127668Sbms	fi
9599127668Sbmsfi
9600127668Sbms
9601127668Sbmsfor ac_func in bpf_dump
9602127668Sbmsdo
9603127668Sbmsas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9605172683Smlaierecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9606172683Smlaierif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9607127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9608127668Sbmselse
9609127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9610127668Sbms/* confdefs.h.  */
9611127668Sbms_ACEOF
9612127668Sbmscat confdefs.h >>conftest.$ac_ext
9613127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9614127668Sbms/* end confdefs.h.  */
9615172683Smlaier/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9616172683Smlaier   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9617172683Smlaier#define $ac_func innocuous_$ac_func
9618172683Smlaier
9619127668Sbms/* System header to define __stub macros and hopefully few prototypes,
9620127668Sbms    which can conflict with char $ac_func (); below.
9621127668Sbms    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622127668Sbms    <limits.h> exists even on freestanding compilers.  */
9623172683Smlaier
9624127668Sbms#ifdef __STDC__
9625127668Sbms# include <limits.h>
9626127668Sbms#else
9627127668Sbms# include <assert.h>
9628127668Sbms#endif
9629172683Smlaier
9630172683Smlaier#undef $ac_func
9631172683Smlaier
9632172683Smlaier/* Override any GCC internal prototype to avoid an error.
9633172683Smlaier   Use char because int might match the return type of a GCC
9634172683Smlaier   builtin and then its argument prototype would still apply.  */
9635127668Sbms#ifdef __cplusplus
9636127668Sbmsextern "C"
9637127668Sbms#endif
9638127668Sbmschar $ac_func ();
9639127668Sbms/* The GNU C library defines this for functions which it implements
9640127668Sbms    to always fail with ENOSYS.  Some functions are actually named
9641127668Sbms    something starting with __ and the normal name is an alias.  */
9642172683Smlaier#if defined __stub_$ac_func || defined __stub___$ac_func
9643127668Sbmschoke me
9644127668Sbms#endif
9645127668Sbms
9646127668Sbmsint
9647127668Sbmsmain ()
9648127668Sbms{
9649172683Smlaierreturn $ac_func ();
9650127668Sbms  ;
9651127668Sbms  return 0;
9652127668Sbms}
9653127668Sbms_ACEOF
9654127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
9655172683Smlaierif { (ac_try="$ac_link"
9656172683Smlaiercase "(($ac_try" in
9657172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658172683Smlaier  *) ac_try_echo=$ac_try;;
9659172683Smlaieresac
9660172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661172683Smlaier  (eval "$ac_link") 2>conftest.er1
9662127668Sbms  ac_status=$?
9663172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9664172683Smlaier  rm -f conftest.er1
9665172683Smlaier  cat conftest.err >&5
9666127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667172683Smlaier  (exit $ac_status); } && {
9668172683Smlaier	 test -z "$ac_c_werror_flag" ||
9669172683Smlaier	 test ! -s conftest.err
9670172683Smlaier       } && test -s conftest$ac_exeext &&
9671172683Smlaier       $as_test_x conftest$ac_exeext; then
9672127668Sbms  eval "$as_ac_var=yes"
9673127668Sbmselse
9674127668Sbms  echo "$as_me: failed program was:" >&5
9675127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9676127668Sbms
9677172683Smlaier	eval "$as_ac_var=no"
9678127668Sbmsfi
9679172683Smlaier
9680172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681172683Smlaier      conftest$ac_exeext conftest.$ac_ext
9682127668Sbmsfi
9683172683Smlaierac_res=`eval echo '${'$as_ac_var'}'`
9684172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9685172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
9686127668Sbmsif test `eval echo '${'$as_ac_var'}'` = yes; then
9687127668Sbms  cat >>confdefs.h <<_ACEOF
9688127668Sbms#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9689127668Sbms_ACEOF
9690127668Sbms
9691127668Sbmselse
9692172683Smlaier  case " $LIBOBJS " in
9693172683Smlaier  *" $ac_func.$ac_objext "* ) ;;
9694172683Smlaier  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9695172683Smlaier ;;
9696172683Smlaieresac
9697172683Smlaier
9698127668Sbmsfi
969975115Sfennerdone
970075115Sfenner
9701127668Sbms
970217680SpstV_GROUP=0
970339297Sfennerif test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
970439297Sfenner	V_GROUP=wheel
970539297Sfennerfi
9706214478Srpaulo#
9707214478Srpaulo# Assume V7/BSD convention for man pages (file formats in section 5,
9708214478Srpaulo# miscellaneous info in section 7).
9709214478Srpaulo#
9710214478SrpauloMAN_FILE_FORMATS=5
9711214478SrpauloMAN_MISC_INFO=7
971298524Sfennercase "$host_os" in
971317680Spst
971417680Spstaix*)
9715236192Sdelphij
9716236192Sdelphijcat >>confdefs.h <<\_ACEOF
971717680Spst#define _SUN 1
9718127668Sbms_ACEOF
971917680Spst
972017680Spst	;;
972117680Spst
9722214478Srpaulohpux*)
9723214478Srpaulo	#
9724214478Srpaulo	# Use System V conventions for man pages.
9725214478Srpaulo	#
9726214478Srpaulo	MAN_FILE_FORMATS=4
9727214478Srpaulo	MAN_MISC_INFO=5
9728214478Srpaulo	;;
9729214478Srpaulo
973017680Spstirix*)
973117680Spst	V_GROUP=sys
9732214478Srpaulo
9733214478Srpaulo	#
9734214478Srpaulo	# Use System V conventions for man pages.
9735214478Srpaulo	#
9736214478Srpaulo	MAN_FILE_FORMATS=4
9737214478Srpaulo	MAN_MISC_INFO=5
973817680Spst	;;
973917680Spst
974017680Spstosf*)
974117680Spst	V_GROUP=system
9742214478Srpaulo
9743214478Srpaulo	#
9744214478Srpaulo	# Use System V conventions for man pages.
9745214478Srpaulo	#
9746214478Srpaulo	MAN_FILE_FORMATS=4
9747214478Srpaulo	MAN_MISC_INFO=5
974817680Spst	;;
974917680Spst
975017680Spstsolaris*)
975117680Spst	V_GROUP=sys
9752214478Srpaulo
9753214478Srpaulo	#
9754214478Srpaulo	# Use System V conventions for man pages.
9755214478Srpaulo	#
9756214478Srpaulo	MAN_FILE_FORMATS=4
9757214478Srpaulo	MAN_MISC_INFO=5
975817680Spst	;;
975917680Spstesac
976017680Spst
976117680Spstif test -f /dev/bpf0 ; then
976217680Spst	V_GROUP=bpf
976317680Spstfi
976417680Spst
9765147899Ssam
9766147899Ssamfor ac_header in sys/bitypes.h
9767147899Ssamdo
9768147899Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9769172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770172683Smlaier  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9771172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9772172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9773127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9774147899Ssamfi
9775172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
9776172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9777172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
977856893Sfennerelse
9779147899Ssam  # Is the header compilable?
9780172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781172683Smlaierecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9782147899Ssamcat >conftest.$ac_ext <<_ACEOF
9783147899Ssam/* confdefs.h.  */
9784147899Ssam_ACEOF
9785147899Ssamcat confdefs.h >>conftest.$ac_ext
9786147899Ssamcat >>conftest.$ac_ext <<_ACEOF
9787147899Ssam/* end confdefs.h.  */
9788147899Ssam$ac_includes_default
9789147899Ssam#include <$ac_header>
9790147899Ssam_ACEOF
9791147899Ssamrm -f conftest.$ac_objext
9792172683Smlaierif { (ac_try="$ac_compile"
9793172683Smlaiercase "(($ac_try" in
9794172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795172683Smlaier  *) ac_try_echo=$ac_try;;
9796172683Smlaieresac
9797172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798172683Smlaier  (eval "$ac_compile") 2>conftest.er1
9799147899Ssam  ac_status=$?
9800172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9801172683Smlaier  rm -f conftest.er1
9802172683Smlaier  cat conftest.err >&5
9803147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804172683Smlaier  (exit $ac_status); } && {
9805172683Smlaier	 test -z "$ac_c_werror_flag" ||
9806172683Smlaier	 test ! -s conftest.err
9807172683Smlaier       } && test -s conftest.$ac_objext; then
9808147899Ssam  ac_header_compiler=yes
9809147899Ssamelse
9810147899Ssam  echo "$as_me: failed program was:" >&5
9811147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
9812147899Ssam
9813172683Smlaier	ac_header_compiler=no
9814147899Ssamfi
9815147899Ssam
9816172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818172683Smlaierecho "${ECHO_T}$ac_header_compiler" >&6; }
9819172683Smlaier
9820147899Ssam# Is the header present?
9821172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9822172683Smlaierecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9823147899Ssamcat >conftest.$ac_ext <<_ACEOF
9824147899Ssam/* confdefs.h.  */
9825147899Ssam_ACEOF
9826147899Ssamcat confdefs.h >>conftest.$ac_ext
9827147899Ssamcat >>conftest.$ac_ext <<_ACEOF
9828147899Ssam/* end confdefs.h.  */
9829147899Ssam#include <$ac_header>
9830147899Ssam_ACEOF
9831172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
9832172683Smlaiercase "(($ac_try" in
9833172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834172683Smlaier  *) ac_try_echo=$ac_try;;
9835172683Smlaieresac
9836172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838147899Ssam  ac_status=$?
9839147899Ssam  grep -v '^ *+' conftest.er1 >conftest.err
9840147899Ssam  rm -f conftest.er1
9841147899Ssam  cat conftest.err >&5
9842147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843172683Smlaier  (exit $ac_status); } >/dev/null && {
9844172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845172683Smlaier	 test ! -s conftest.err
9846172683Smlaier       }; then
9847147899Ssam  ac_header_preproc=yes
9848147899Ssamelse
9849147899Ssam  echo "$as_me: failed program was:" >&5
9850147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
9851147899Ssam
9852147899Ssam  ac_header_preproc=no
9853147899Ssamfi
9854172683Smlaier
9855147899Ssamrm -f conftest.err conftest.$ac_ext
9856172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857172683Smlaierecho "${ECHO_T}$ac_header_preproc" >&6; }
9858147899Ssam
9859147899Ssam# So?  What about this header?
9860172683Smlaiercase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861172683Smlaier  yes:no: )
9862147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863147899Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865172683Smlaierecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866172683Smlaier    ac_header_preproc=yes
9867147899Ssam    ;;
9868172683Smlaier  no:yes:* )
9869147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870147899Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9872172683Smlaierecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9873172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874172683Smlaierecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9876172683Smlaierecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9877147899Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878147899Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880172683Smlaierecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9881172683Smlaier
9882147899Ssam    ;;
9883147899Ssamesac
9884172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9885172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9886172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9888147899Ssamelse
9889172683Smlaier  eval "$as_ac_Header=\$ac_header_preproc"
9890147899Ssamfi
9891172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
9892172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9893172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
9894147899Ssam
9895147899Ssamfi
9896147899Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
9897147899Ssam  cat >>confdefs.h <<_ACEOF
9898147899Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9899147899Ssam_ACEOF
9900147899Ssam
9901147899Ssamfi
9902147899Ssam
9903147899Ssamdone
9904147899Ssam
9905147899Ssam
9906172683Smlaier{ echo "$as_me:$LINENO: checking for int8_t" >&5
9907172683Smlaierecho $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9908147899Ssamif test "${ac_cv_type_int8_t+set}" = set; then
9909147899Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
9910147899Ssamelse
9911127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9912127668Sbms/* confdefs.h.  */
9913127668Sbms_ACEOF
9914127668Sbmscat confdefs.h >>conftest.$ac_ext
9915127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9916127668Sbms/* end confdefs.h.  */
9917147899Ssam$ac_includes_default
9918214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
9919214478Srpaulo#include <sys/bitypes.h>
9920214478Srpaulo#endif
9921214478Srpaulo
9922172683Smlaiertypedef int8_t ac__type_new_;
9923127668Sbmsint
9924127668Sbmsmain ()
9925127668Sbms{
9926172683Smlaierif ((ac__type_new_ *) 0)
9927147899Ssam  return 0;
9928172683Smlaierif (sizeof (ac__type_new_))
9929147899Ssam  return 0;
9930127668Sbms  ;
9931127668Sbms  return 0;
9932127668Sbms}
9933127668Sbms_ACEOF
9934127668Sbmsrm -f conftest.$ac_objext
9935172683Smlaierif { (ac_try="$ac_compile"
9936172683Smlaiercase "(($ac_try" in
9937172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938172683Smlaier  *) ac_try_echo=$ac_try;;
9939172683Smlaieresac
9940172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941172683Smlaier  (eval "$ac_compile") 2>conftest.er1
9942127668Sbms  ac_status=$?
9943172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
9944172683Smlaier  rm -f conftest.er1
9945172683Smlaier  cat conftest.err >&5
9946127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947172683Smlaier  (exit $ac_status); } && {
9948172683Smlaier	 test -z "$ac_c_werror_flag" ||
9949172683Smlaier	 test ! -s conftest.err
9950172683Smlaier       } && test -s conftest.$ac_objext; then
9951147899Ssam  ac_cv_type_int8_t=yes
9952127668Sbmselse
9953127668Sbms  echo "$as_me: failed program was:" >&5
9954127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
9955127668Sbms
9956172683Smlaier	ac_cv_type_int8_t=no
9957127668Sbmsfi
9958172683Smlaier
9959172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960127668Sbmsfi
9961172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9962172683Smlaierecho "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9963147899Ssamif test $ac_cv_type_int8_t = yes; then
9964147899Ssam  :
9965147899Ssamelse
9966127668Sbms
9967147899Ssamcat >>confdefs.h <<\_ACEOF
9968127668Sbms#define int8_t signed char
9969127668Sbms_ACEOF
9970127668Sbms
9971147899Ssamfi
9972147899Ssam
9973172683Smlaier{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
9974172683Smlaierecho $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9975147899Ssamif test "${ac_cv_type_u_int8_t+set}" = set; then
9976127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
9977127668Sbmselse
9978127668Sbms  cat >conftest.$ac_ext <<_ACEOF
9979127668Sbms/* confdefs.h.  */
9980127668Sbms_ACEOF
9981127668Sbmscat confdefs.h >>conftest.$ac_ext
9982127668Sbmscat >>conftest.$ac_ext <<_ACEOF
9983127668Sbms/* end confdefs.h.  */
9984147899Ssam$ac_includes_default
9985147899Ssam#ifdef HAVE_SYS_BITYPES_H
9986147899Ssam#include <sys/bitypes.h>
9987147899Ssam#endif
9988127668Sbms
9989172683Smlaiertypedef u_int8_t ac__type_new_;
9990127668Sbmsint
9991127668Sbmsmain ()
9992127668Sbms{
9993172683Smlaierif ((ac__type_new_ *) 0)
9994147899Ssam  return 0;
9995172683Smlaierif (sizeof (ac__type_new_))
9996147899Ssam  return 0;
9997127668Sbms  ;
9998127668Sbms  return 0;
9999127668Sbms}
10000127668Sbms_ACEOF
10001127668Sbmsrm -f conftest.$ac_objext
10002172683Smlaierif { (ac_try="$ac_compile"
10003172683Smlaiercase "(($ac_try" in
10004172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005172683Smlaier  *) ac_try_echo=$ac_try;;
10006172683Smlaieresac
10007172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10009127668Sbms  ac_status=$?
10010172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10011172683Smlaier  rm -f conftest.er1
10012172683Smlaier  cat conftest.err >&5
10013127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014172683Smlaier  (exit $ac_status); } && {
10015172683Smlaier	 test -z "$ac_c_werror_flag" ||
10016172683Smlaier	 test ! -s conftest.err
10017172683Smlaier       } && test -s conftest.$ac_objext; then
10018147899Ssam  ac_cv_type_u_int8_t=yes
1001956893Sfennerelse
10020127668Sbms  echo "$as_me: failed program was:" >&5
10021127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10022127668Sbms
10023172683Smlaier	ac_cv_type_u_int8_t=no
1002456893Sfennerfi
10025172683Smlaier
10026172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1002756893Sfennerfi
10028172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10029172683Smlaierecho "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10030147899Ssamif test $ac_cv_type_u_int8_t = yes; then
10031147899Ssam  :
10032147899Ssamelse
1003356893Sfenner
10034147899Ssamcat >>confdefs.h <<\_ACEOF
10035147899Ssam#define u_int8_t unsigned char
10036127668Sbms_ACEOF
1003756893Sfenner
10038147899Ssamfi
10039147899Ssam
10040172683Smlaier{ echo "$as_me:$LINENO: checking for int16_t" >&5
10041172683Smlaierecho $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10042147899Ssamif test "${ac_cv_type_int16_t+set}" = set; then
10043127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1004456893Sfennerelse
10045127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10046127668Sbms/* confdefs.h.  */
10047127668Sbms_ACEOF
10048127668Sbmscat confdefs.h >>conftest.$ac_ext
10049127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10050127668Sbms/* end confdefs.h.  */
10051147899Ssam$ac_includes_default
10052172683Smlaiertypedef int16_t ac__type_new_;
10053127668Sbmsint
10054127668Sbmsmain ()
10055127668Sbms{
10056172683Smlaierif ((ac__type_new_ *) 0)
10057147899Ssam  return 0;
10058172683Smlaierif (sizeof (ac__type_new_))
10059147899Ssam  return 0;
10060127668Sbms  ;
10061127668Sbms  return 0;
10062127668Sbms}
10063127668Sbms_ACEOF
10064127668Sbmsrm -f conftest.$ac_objext
10065172683Smlaierif { (ac_try="$ac_compile"
10066172683Smlaiercase "(($ac_try" in
10067172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068172683Smlaier  *) ac_try_echo=$ac_try;;
10069172683Smlaieresac
10070172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10072127668Sbms  ac_status=$?
10073172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10074172683Smlaier  rm -f conftest.er1
10075172683Smlaier  cat conftest.err >&5
10076127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077172683Smlaier  (exit $ac_status); } && {
10078172683Smlaier	 test -z "$ac_c_werror_flag" ||
10079172683Smlaier	 test ! -s conftest.err
10080172683Smlaier       } && test -s conftest.$ac_objext; then
10081147899Ssam  ac_cv_type_int16_t=yes
1008256893Sfennerelse
10083127668Sbms  echo "$as_me: failed program was:" >&5
10084127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10085127668Sbms
10086172683Smlaier	ac_cv_type_int16_t=no
1008756893Sfennerfi
10088172683Smlaier
10089172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1009056893Sfennerfi
10091172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10092172683Smlaierecho "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10093147899Ssamif test $ac_cv_type_int16_t = yes; then
10094147899Ssam  :
10095147899Ssamelse
1009656893Sfenner
10097147899Ssamcat >>confdefs.h <<\_ACEOF
1009856893Sfenner#define int16_t short
10099127668Sbms_ACEOF
1010056893Sfenner
10101214478Srpaulo	$ac_includes_default
10102214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
10103214478Srpaulo#include <sys/bitypes.h>
10104214478Srpaulo#endif
10105147899Ssamfi
10106147899Ssam
10107172683Smlaier{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
10108172683Smlaierecho $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10109147899Ssamif test "${ac_cv_type_u_int16_t+set}" = set; then
10110127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1011156893Sfennerelse
10112127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10113127668Sbms/* confdefs.h.  */
10114127668Sbms_ACEOF
10115127668Sbmscat confdefs.h >>conftest.$ac_ext
10116127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10117127668Sbms/* end confdefs.h.  */
10118147899Ssam$ac_includes_default
10119147899Ssam#ifdef HAVE_SYS_BITYPES_H
10120147899Ssam#include <sys/bitypes.h>
10121147899Ssam#endif
1012256893Sfenner
10123172683Smlaiertypedef u_int16_t ac__type_new_;
10124127668Sbmsint
10125127668Sbmsmain ()
10126127668Sbms{
10127172683Smlaierif ((ac__type_new_ *) 0)
10128147899Ssam  return 0;
10129172683Smlaierif (sizeof (ac__type_new_))
10130147899Ssam  return 0;
10131127668Sbms  ;
10132127668Sbms  return 0;
10133127668Sbms}
10134127668Sbms_ACEOF
10135127668Sbmsrm -f conftest.$ac_objext
10136172683Smlaierif { (ac_try="$ac_compile"
10137172683Smlaiercase "(($ac_try" in
10138172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139172683Smlaier  *) ac_try_echo=$ac_try;;
10140172683Smlaieresac
10141172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10143127668Sbms  ac_status=$?
10144172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10145172683Smlaier  rm -f conftest.er1
10146172683Smlaier  cat conftest.err >&5
10147127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148172683Smlaier  (exit $ac_status); } && {
10149172683Smlaier	 test -z "$ac_c_werror_flag" ||
10150172683Smlaier	 test ! -s conftest.err
10151172683Smlaier       } && test -s conftest.$ac_objext; then
10152147899Ssam  ac_cv_type_u_int16_t=yes
1015356893Sfennerelse
10154127668Sbms  echo "$as_me: failed program was:" >&5
10155127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10156127668Sbms
10157172683Smlaier	ac_cv_type_u_int16_t=no
1015856893Sfennerfi
10159172683Smlaier
10160172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1016156893Sfennerfi
10162172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10163172683Smlaierecho "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10164147899Ssamif test $ac_cv_type_u_int16_t = yes; then
10165147899Ssam  :
10166147899Ssamelse
1016756893Sfenner
10168147899Ssamcat >>confdefs.h <<\_ACEOF
10169147899Ssam#define u_int16_t unsigned short
10170127668Sbms_ACEOF
1017156893Sfenner
10172147899Ssamfi
10173147899Ssam
10174172683Smlaier{ echo "$as_me:$LINENO: checking for int32_t" >&5
10175172683Smlaierecho $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10176147899Ssamif test "${ac_cv_type_int32_t+set}" = set; then
10177127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1017817680Spstelse
10179127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10180127668Sbms/* confdefs.h.  */
10181127668Sbms_ACEOF
10182127668Sbmscat confdefs.h >>conftest.$ac_ext
10183127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10184127668Sbms/* end confdefs.h.  */
10185147899Ssam$ac_includes_default
10186214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
10187214478Srpaulo#include <sys/bitypes.h>
10188214478Srpaulo#endif
10189214478Srpaulo
10190172683Smlaiertypedef int32_t ac__type_new_;
10191127668Sbmsint
10192127668Sbmsmain ()
10193127668Sbms{
10194172683Smlaierif ((ac__type_new_ *) 0)
10195147899Ssam  return 0;
10196172683Smlaierif (sizeof (ac__type_new_))
10197147899Ssam  return 0;
10198127668Sbms  ;
10199127668Sbms  return 0;
10200127668Sbms}
10201127668Sbms_ACEOF
10202127668Sbmsrm -f conftest.$ac_objext
10203172683Smlaierif { (ac_try="$ac_compile"
10204172683Smlaiercase "(($ac_try" in
10205172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206172683Smlaier  *) ac_try_echo=$ac_try;;
10207172683Smlaieresac
10208172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10210127668Sbms  ac_status=$?
10211172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10212172683Smlaier  rm -f conftest.er1
10213172683Smlaier  cat conftest.err >&5
10214127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215172683Smlaier  (exit $ac_status); } && {
10216172683Smlaier	 test -z "$ac_c_werror_flag" ||
10217172683Smlaier	 test ! -s conftest.err
10218172683Smlaier       } && test -s conftest.$ac_objext; then
10219147899Ssam  ac_cv_type_int32_t=yes
1022017680Spstelse
10221127668Sbms  echo "$as_me: failed program was:" >&5
10222127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10223127668Sbms
10224172683Smlaier	ac_cv_type_int32_t=no
1022517680Spstfi
10226172683Smlaier
10227172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1022817680Spstfi
10229172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10230172683Smlaierecho "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10231147899Ssamif test $ac_cv_type_int32_t = yes; then
10232147899Ssam  :
10233147899Ssamelse
1023417680Spst
10235147899Ssamcat >>confdefs.h <<\_ACEOF
1023639297Sfenner#define int32_t int
10237127668Sbms_ACEOF
1023817680Spst
10239147899Ssamfi
10240147899Ssam
10241172683Smlaier{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
10242172683Smlaierecho $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10243147899Ssamif test "${ac_cv_type_u_int32_t+set}" = set; then
10244127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1024517680Spstelse
10246127668Sbms  cat >conftest.$ac_ext <<_ACEOF
10247127668Sbms/* confdefs.h.  */
10248127668Sbms_ACEOF
10249127668Sbmscat confdefs.h >>conftest.$ac_ext
10250127668Sbmscat >>conftest.$ac_ext <<_ACEOF
10251127668Sbms/* end confdefs.h.  */
10252147899Ssam$ac_includes_default
10253147899Ssam#ifdef HAVE_SYS_BITYPES_H
10254147899Ssam#include <sys/bitypes.h>
10255147899Ssam#endif
1025617680Spst
10257172683Smlaiertypedef u_int32_t ac__type_new_;
10258127668Sbmsint
10259127668Sbmsmain ()
10260127668Sbms{
10261172683Smlaierif ((ac__type_new_ *) 0)
10262147899Ssam  return 0;
10263172683Smlaierif (sizeof (ac__type_new_))
10264147899Ssam  return 0;
10265127668Sbms  ;
10266127668Sbms  return 0;
10267127668Sbms}
10268127668Sbms_ACEOF
10269127668Sbmsrm -f conftest.$ac_objext
10270172683Smlaierif { (ac_try="$ac_compile"
10271172683Smlaiercase "(($ac_try" in
10272172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273172683Smlaier  *) ac_try_echo=$ac_try;;
10274172683Smlaieresac
10275172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10277127668Sbms  ac_status=$?
10278172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10279172683Smlaier  rm -f conftest.er1
10280172683Smlaier  cat conftest.err >&5
10281127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282172683Smlaier  (exit $ac_status); } && {
10283172683Smlaier	 test -z "$ac_c_werror_flag" ||
10284172683Smlaier	 test ! -s conftest.err
10285172683Smlaier       } && test -s conftest.$ac_objext; then
10286147899Ssam  ac_cv_type_u_int32_t=yes
1028717680Spstelse
10288127668Sbms  echo "$as_me: failed program was:" >&5
10289127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
10290127668Sbms
10291172683Smlaier	ac_cv_type_u_int32_t=no
1029217680Spstfi
10293172683Smlaier
10294172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1029517680Spstfi
10296172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10297172683Smlaierecho "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10298147899Ssamif test $ac_cv_type_u_int32_t = yes; then
10299147899Ssam  :
10300147899Ssamelse
1030117680Spst
10302147899Ssamcat >>confdefs.h <<\_ACEOF
10303147899Ssam#define u_int32_t unsigned int
10304127668Sbms_ACEOF
1030517680Spst
10306147899Ssamfi
10307147899Ssam
10308172683Smlaier{ echo "$as_me:$LINENO: checking for int64_t" >&5
10309172683Smlaierecho $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10310147899Ssamif test "${ac_cv_type_int64_t+set}" = set; then
10311146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10312146773Ssamelse
10313146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10314146773Ssam/* confdefs.h.  */
10315146773Ssam_ACEOF
10316146773Ssamcat confdefs.h >>conftest.$ac_ext
10317146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10318146773Ssam/* end confdefs.h.  */
10319147899Ssam$ac_includes_default
10320214478Srpaulo#ifdef HAVE_SYS_BITYPES_H
10321214478Srpaulo#include <sys/bitypes.h>
10322214478Srpaulo#endif
10323214478Srpaulo
10324172683Smlaiertypedef int64_t ac__type_new_;
10325146773Ssamint
10326146773Ssammain ()
10327146773Ssam{
10328172683Smlaierif ((ac__type_new_ *) 0)
10329147899Ssam  return 0;
10330172683Smlaierif (sizeof (ac__type_new_))
10331147899Ssam  return 0;
10332146773Ssam  ;
10333146773Ssam  return 0;
10334146773Ssam}
10335146773Ssam_ACEOF
10336146773Ssamrm -f conftest.$ac_objext
10337172683Smlaierif { (ac_try="$ac_compile"
10338172683Smlaiercase "(($ac_try" in
10339172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340172683Smlaier  *) ac_try_echo=$ac_try;;
10341172683Smlaieresac
10342172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10344146773Ssam  ac_status=$?
10345172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10346172683Smlaier  rm -f conftest.er1
10347172683Smlaier  cat conftest.err >&5
10348146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349172683Smlaier  (exit $ac_status); } && {
10350172683Smlaier	 test -z "$ac_c_werror_flag" ||
10351172683Smlaier	 test ! -s conftest.err
10352172683Smlaier       } && test -s conftest.$ac_objext; then
10353147899Ssam  ac_cv_type_int64_t=yes
10354146773Ssamelse
10355146773Ssam  echo "$as_me: failed program was:" >&5
10356146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10357146773Ssam
10358172683Smlaier	ac_cv_type_int64_t=no
10359146773Ssamfi
10360172683Smlaier
10361172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10362146773Ssamfi
10363172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10364172683Smlaierecho "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10365147899Ssamif test $ac_cv_type_int64_t = yes; then
10366147899Ssam  :
10367147899Ssamelse
10368146773Ssam
10369147899Ssamcat >>confdefs.h <<\_ACEOF
10370146773Ssam#define int64_t long long
10371146773Ssam_ACEOF
10372146773Ssam
10373147899Ssamfi
10374147899Ssam
10375172683Smlaier{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
10376172683Smlaierecho $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10377147899Ssamif test "${ac_cv_type_u_int64_t+set}" = set; then
10378146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10379146773Ssamelse
10380146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10381146773Ssam/* confdefs.h.  */
10382146773Ssam_ACEOF
10383146773Ssamcat confdefs.h >>conftest.$ac_ext
10384146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10385146773Ssam/* end confdefs.h.  */
10386147899Ssam$ac_includes_default
10387147899Ssam#ifdef HAVE_SYS_BITYPES_H
10388147899Ssam#include <sys/bitypes.h>
10389147899Ssam#endif
10390146773Ssam
10391172683Smlaiertypedef u_int64_t ac__type_new_;
10392146773Ssamint
10393146773Ssammain ()
10394146773Ssam{
10395172683Smlaierif ((ac__type_new_ *) 0)
10396147899Ssam  return 0;
10397172683Smlaierif (sizeof (ac__type_new_))
10398147899Ssam  return 0;
10399146773Ssam  ;
10400146773Ssam  return 0;
10401146773Ssam}
10402146773Ssam_ACEOF
10403146773Ssamrm -f conftest.$ac_objext
10404172683Smlaierif { (ac_try="$ac_compile"
10405172683Smlaiercase "(($ac_try" in
10406172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407172683Smlaier  *) ac_try_echo=$ac_try;;
10408172683Smlaieresac
10409172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10411146773Ssam  ac_status=$?
10412172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10413172683Smlaier  rm -f conftest.er1
10414172683Smlaier  cat conftest.err >&5
10415146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416172683Smlaier  (exit $ac_status); } && {
10417172683Smlaier	 test -z "$ac_c_werror_flag" ||
10418172683Smlaier	 test ! -s conftest.err
10419172683Smlaier       } && test -s conftest.$ac_objext; then
10420147899Ssam  ac_cv_type_u_int64_t=yes
10421146773Ssamelse
10422146773Ssam  echo "$as_me: failed program was:" >&5
10423146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10424146773Ssam
10425172683Smlaier	ac_cv_type_u_int64_t=no
10426146773Ssamfi
10427172683Smlaier
10428172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429146773Ssamfi
10430172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10431172683Smlaierecho "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10432147899Ssamif test $ac_cv_type_u_int64_t = yes; then
10433147899Ssam  :
10434147899Ssamelse
10435146773Ssam
10436147899Ssamcat >>confdefs.h <<\_ACEOF
10437146773Ssam#define u_int64_t unsigned long long
10438146773Ssam_ACEOF
10439146773Ssam
10440147899Ssamfi
10441146773Ssam
10442147899Ssam
10443146773Ssam#
10444146773Ssam# We can't just check for <inttypes.h> - some systems have one that
10445146773Ssam# doesn't define all the PRI[doxu]64 macros.
10446146773Ssam#
10447146773Ssam
10448146773Ssamfor ac_header in inttypes.h
10449146773Ssamdo
10450146773Ssamas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10451172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10452172683Smlaier  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10453172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10454172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10455146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10456146773Ssamfi
10457172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
10458172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10459172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
10460146773Ssamelse
10461146773Ssam  # Is the header compilable?
10462172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10463172683Smlaierecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10464146773Ssamcat >conftest.$ac_ext <<_ACEOF
10465146773Ssam/* confdefs.h.  */
10466146773Ssam_ACEOF
10467146773Ssamcat confdefs.h >>conftest.$ac_ext
10468146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10469146773Ssam/* end confdefs.h.  */
10470146773Ssam$ac_includes_default
10471146773Ssam#include <$ac_header>
10472146773Ssam_ACEOF
10473146773Ssamrm -f conftest.$ac_objext
10474172683Smlaierif { (ac_try="$ac_compile"
10475172683Smlaiercase "(($ac_try" in
10476172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477172683Smlaier  *) ac_try_echo=$ac_try;;
10478172683Smlaieresac
10479172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10481146773Ssam  ac_status=$?
10482172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10483172683Smlaier  rm -f conftest.er1
10484172683Smlaier  cat conftest.err >&5
10485146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486172683Smlaier  (exit $ac_status); } && {
10487172683Smlaier	 test -z "$ac_c_werror_flag" ||
10488172683Smlaier	 test ! -s conftest.err
10489172683Smlaier       } && test -s conftest.$ac_objext; then
10490146773Ssam  ac_header_compiler=yes
10491146773Ssamelse
10492146773Ssam  echo "$as_me: failed program was:" >&5
10493146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10494146773Ssam
10495172683Smlaier	ac_header_compiler=no
10496146773Ssamfi
10497146773Ssam
10498172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10500172683Smlaierecho "${ECHO_T}$ac_header_compiler" >&6; }
10501172683Smlaier
10502146773Ssam# Is the header present?
10503172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10504172683Smlaierecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10505146773Ssamcat >conftest.$ac_ext <<_ACEOF
10506146773Ssam/* confdefs.h.  */
10507146773Ssam_ACEOF
10508146773Ssamcat confdefs.h >>conftest.$ac_ext
10509146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10510146773Ssam/* end confdefs.h.  */
10511146773Ssam#include <$ac_header>
10512146773Ssam_ACEOF
10513172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
10514172683Smlaiercase "(($ac_try" in
10515172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516172683Smlaier  *) ac_try_echo=$ac_try;;
10517172683Smlaieresac
10518172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10520146773Ssam  ac_status=$?
10521146773Ssam  grep -v '^ *+' conftest.er1 >conftest.err
10522146773Ssam  rm -f conftest.er1
10523146773Ssam  cat conftest.err >&5
10524146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525172683Smlaier  (exit $ac_status); } >/dev/null && {
10526172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10527172683Smlaier	 test ! -s conftest.err
10528172683Smlaier       }; then
10529146773Ssam  ac_header_preproc=yes
10530146773Ssamelse
10531146773Ssam  echo "$as_me: failed program was:" >&5
10532146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10533146773Ssam
10534146773Ssam  ac_header_preproc=no
10535146773Ssamfi
10536172683Smlaier
10537146773Ssamrm -f conftest.err conftest.$ac_ext
10538172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10539172683Smlaierecho "${ECHO_T}$ac_header_preproc" >&6; }
10540146773Ssam
10541146773Ssam# So?  What about this header?
10542172683Smlaiercase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10543172683Smlaier  yes:no: )
10544146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10545146773Ssamecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10546172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10547172683Smlaierecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10548172683Smlaier    ac_header_preproc=yes
10549146773Ssam    ;;
10550172683Smlaier  no:yes:* )
10551146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10552146773Ssamecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10553172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10554172683Smlaierecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10555172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10556172683Smlaierecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10557172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10558172683Smlaierecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10559146773Ssam    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10560146773Ssamecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10561172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10562172683Smlaierecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10563172683Smlaier
10564146773Ssam    ;;
10565146773Ssamesac
10566172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10567172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10568172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569146773Ssam  echo $ECHO_N "(cached) $ECHO_C" >&6
10570146773Ssamelse
10571172683Smlaier  eval "$as_ac_Header=\$ac_header_preproc"
10572146773Ssamfi
10573172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
10574172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10575172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
10576146773Ssam
10577146773Ssamfi
10578146773Ssamif test `eval echo '${'$as_ac_Header'}'` = yes; then
10579146773Ssam  cat >>confdefs.h <<_ACEOF
10580146773Ssam#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10581146773Ssam_ACEOF
10582146773Ssam
10583146773Ssam    #
10584146773Ssam    # OK, we have inttypes.h, but does it define those macros?
10585146773Ssam    #
10586172683Smlaier    { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10587172683Smlaierecho $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10588146773Ssam    cat >conftest.$ac_ext <<_ACEOF
10589146773Ssam
10590172683Smlaier	/* confdefs.h.  */
10591146773Ssam_ACEOF
10592146773Ssamcat confdefs.h >>conftest.$ac_ext
10593146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10594146773Ssam/* end confdefs.h.  */
10595146773Ssam
10596146773Ssam	    #include <inttypes.h>
10597146773Ssam	    #include <stdio.h>
10598146773Ssam	    #include <sys/types.h>
10599147899Ssam	    #ifdef HAVE_SYS_BITYPES_H
10600147899Ssam	    #include <sys/bitypes.h>
10601147899Ssam	    #endif
10602146773Ssam
10603146773Ssam	    main()
10604146773Ssam	    {
10605146773Ssam	      printf("%" PRId64 "\n", (u_int64_t)1);
10606146773Ssam	      printf("%" PRIo64 "\n", (u_int64_t)1);
10607146773Ssam	      printf("%" PRIx64 "\n", (u_int64_t)1);
10608146773Ssam	      printf("%" PRIu64 "\n", (u_int64_t)1);
10609146773Ssam	    }
10610146773Ssam
10611146773Ssam
10612146773Ssam_ACEOF
10613146773Ssamrm -f conftest.$ac_objext
10614172683Smlaierif { (ac_try="$ac_compile"
10615172683Smlaiercase "(($ac_try" in
10616172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617172683Smlaier  *) ac_try_echo=$ac_try;;
10618172683Smlaieresac
10619172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620172683Smlaier  (eval "$ac_compile") 2>conftest.er1
10621146773Ssam  ac_status=$?
10622172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
10623172683Smlaier  rm -f conftest.er1
10624172683Smlaier  cat conftest.err >&5
10625146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626172683Smlaier  (exit $ac_status); } && {
10627172683Smlaier	 test -z "$ac_c_werror_flag" ||
10628172683Smlaier	 test ! -s conftest.err
10629172683Smlaier       } && test -s conftest.$ac_objext; then
10630146773Ssam
10631172683Smlaier	{ echo "$as_me:$LINENO: result: yes" >&5
10632172683Smlaierecho "${ECHO_T}yes" >&6; }
10633146773Ssam	ac_lbl_inttypes_h_defines_formats=yes
10634146773Ssam
10635146773Ssamelse
10636146773Ssam  echo "$as_me: failed program was:" >&5
10637146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10638146773Ssam
10639146773Ssam
10640172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
10641172683Smlaierecho "${ECHO_T}no" >&6; }
10642146773Ssam	ac_lbl_inttypes_h_defines_formats=no
10643146773Ssam
10644146773Ssamfi
10645146773Ssam
10646172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647172683Smlaier
10648146773Ssamelse
10649146773Ssam
10650146773Ssam    #
10651146773Ssam    # We don't have inttypes.h, so it obviously can't define those
10652146773Ssam    # macros.
10653146773Ssam    #
10654146773Ssam    ac_lbl_inttypes_h_defines_formats=no
10655146773Ssam
10656146773Ssamfi
10657146773Ssam
10658146773Ssamdone
10659146773Ssam
10660147899Ssamif test "$ac_lbl_inttypes_h_defines_formats" = no; then
10661147899Ssam
10662172683Smlaier    { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10663172683Smlaierecho $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10664147899Ssam    if test "$cross_compiling" = yes; then
10665147899Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10666147899SsamSee \`config.log' for more details." >&5
10667147899Ssamecho "$as_me: error: cannot run test program while cross compiling
10668147899SsamSee \`config.log' for more details." >&2;}
10669147899Ssam   { (exit 1); exit 1; }; }
10670147899Ssamelse
10671147899Ssam  cat >conftest.$ac_ext <<_ACEOF
10672147899Ssam
10673172683Smlaier	/* confdefs.h.  */
10674146773Ssam_ACEOF
10675147899Ssamcat confdefs.h >>conftest.$ac_ext
10676147899Ssamcat >>conftest.$ac_ext <<_ACEOF
10677147899Ssam/* end confdefs.h.  */
10678146773Ssam
10679147899Ssam#	    ifdef HAVE_INTTYPES_H
10680147899Ssam	    #include <inttypes.h>
10681147899Ssam#	    endif
10682147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
10683147899Ssam            #include <sys/bitypes.h>
10684147899Ssam#	    endif
10685147899Ssam	    #include <stdio.h>
10686147899Ssam	    #include <sys/types.h>
10687147899Ssam
10688147899Ssam	    main()
10689147899Ssam	    {
10690147899Ssam	      u_int64_t t = 1;
10691147899Ssam	      char strbuf[16+1];
10692147899Ssam	      sprintf(strbuf, "%016lx", t << 32);
10693147899Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
10694147899Ssam		exit(0);
10695147899Ssam	      else
10696147899Ssam		exit(1);
10697147899Ssam	    }
10698147899Ssam
10699147899Ssam
10700147899Ssam_ACEOF
10701147899Ssamrm -f conftest$ac_exeext
10702172683Smlaierif { (ac_try="$ac_link"
10703172683Smlaiercase "(($ac_try" in
10704172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705172683Smlaier  *) ac_try_echo=$ac_try;;
10706172683Smlaieresac
10707172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708172683Smlaier  (eval "$ac_link") 2>&5
10709147899Ssam  ac_status=$?
10710147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711147899Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10712172683Smlaier  { (case "(($ac_try" in
10713172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714172683Smlaier  *) ac_try_echo=$ac_try;;
10715172683Smlaieresac
10716172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717172683Smlaier  (eval "$ac_try") 2>&5
10718147899Ssam  ac_status=$?
10719147899Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720147899Ssam  (exit $ac_status); }; }; then
10721147899Ssam
10722147899Ssam	cat >>confdefs.h <<\_ACEOF
10723147899Ssam#define PRId64 "ld"
10724147899Ssam_ACEOF
10725147899Ssam
10726147899Ssam	cat >>confdefs.h <<\_ACEOF
10727147899Ssam#define PRIo64 "lo"
10728147899Ssam_ACEOF
10729147899Ssam
10730147899Ssam	cat >>confdefs.h <<\_ACEOF
10731147899Ssam#define PRIx64 "lx"
10732147899Ssam_ACEOF
10733147899Ssam
10734147899Ssam	cat >>confdefs.h <<\_ACEOF
10735147899Ssam#define PRIu64 "lu"
10736147899Ssam_ACEOF
10737147899Ssam
10738172683Smlaier	{ echo "$as_me:$LINENO: result: yes" >&5
10739172683Smlaierecho "${ECHO_T}yes" >&6; }
10740147899Ssam
10741146773Ssamelse
10742147899Ssam  echo "$as_me: program exited with status $ac_status" >&5
10743147899Ssamecho "$as_me: failed program was:" >&5
10744147899Ssamsed 's/^/| /' conftest.$ac_ext >&5
10745146773Ssam
10746147899Ssam( exit $ac_status )
10747147899Ssam
10748172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
10749172683Smlaierecho "${ECHO_T}no" >&6; }
10750147899Ssam
10751147899Ssam
10752172683Smlaier    { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10753172683Smlaierecho $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10754146773Ssam    if test "$cross_compiling" = yes; then
10755146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10756146773SsamSee \`config.log' for more details." >&5
10757146773Ssamecho "$as_me: error: cannot run test program while cross compiling
10758146773SsamSee \`config.log' for more details." >&2;}
10759146773Ssam   { (exit 1); exit 1; }; }
10760146773Ssamelse
10761146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10762146773Ssam
10763172683Smlaier	/* confdefs.h.  */
10764146773Ssam_ACEOF
10765146773Ssamcat confdefs.h >>conftest.$ac_ext
10766146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10767146773Ssam/* end confdefs.h.  */
10768146773Ssam
10769146773Ssam#	    ifdef HAVE_INTTYPES_H
10770146773Ssam	    #include <inttypes.h>
10771146773Ssam#	    endif
10772147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
10773147899Ssam            #include <sys/bitypes.h>
10774147899Ssam#	    endif
10775146773Ssam	    #include <stdio.h>
10776146773Ssam	    #include <sys/types.h>
10777146773Ssam
10778146773Ssam	    main()
10779146773Ssam	    {
10780146773Ssam	      u_int64_t t = 1;
10781146773Ssam	      char strbuf[16+1];
10782146773Ssam	      sprintf(strbuf, "%016llx", t << 32);
10783146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
10784146773Ssam		exit(0);
10785146773Ssam	      else
10786146773Ssam		exit(1);
10787146773Ssam	    }
10788146773Ssam
10789146773Ssam
10790146773Ssam_ACEOF
10791146773Ssamrm -f conftest$ac_exeext
10792172683Smlaierif { (ac_try="$ac_link"
10793172683Smlaiercase "(($ac_try" in
10794172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795172683Smlaier  *) ac_try_echo=$ac_try;;
10796172683Smlaieresac
10797172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798172683Smlaier  (eval "$ac_link") 2>&5
10799146773Ssam  ac_status=$?
10800146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10802172683Smlaier  { (case "(($ac_try" in
10803172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804172683Smlaier  *) ac_try_echo=$ac_try;;
10805172683Smlaieresac
10806172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807172683Smlaier  (eval "$ac_try") 2>&5
10808146773Ssam  ac_status=$?
10809146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810146773Ssam  (exit $ac_status); }; }; then
10811146773Ssam
10812146773Ssam	cat >>confdefs.h <<\_ACEOF
10813146773Ssam#define PRId64 "lld"
10814146773Ssam_ACEOF
10815146773Ssam
10816146773Ssam	cat >>confdefs.h <<\_ACEOF
10817146773Ssam#define PRIo64 "llo"
10818146773Ssam_ACEOF
10819146773Ssam
10820146773Ssam	cat >>confdefs.h <<\_ACEOF
10821146773Ssam#define PRIx64 "llx"
10822146773Ssam_ACEOF
10823146773Ssam
10824146773Ssam	cat >>confdefs.h <<\_ACEOF
10825146773Ssam#define PRIu64 "llu"
10826146773Ssam_ACEOF
10827146773Ssam
10828172683Smlaier	{ echo "$as_me:$LINENO: result: yes" >&5
10829172683Smlaierecho "${ECHO_T}yes" >&6; }
10830146773Ssam
10831146773Ssamelse
10832146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
10833146773Ssamecho "$as_me: failed program was:" >&5
10834146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10835146773Ssam
10836146773Ssam( exit $ac_status )
10837146773Ssam
10838172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
10839172683Smlaierecho "${ECHO_T}no" >&6; }
10840146773Ssam
10841146773Ssam
10842172683Smlaier    { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10843172683Smlaierecho $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10844146773Ssam    if test "$cross_compiling" = yes; then
10845146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10846146773SsamSee \`config.log' for more details." >&5
10847146773Ssamecho "$as_me: error: cannot run test program while cross compiling
10848146773SsamSee \`config.log' for more details." >&2;}
10849146773Ssam   { (exit 1); exit 1; }; }
10850146773Ssamelse
10851146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10852146773Ssam
10853172683Smlaier	/* confdefs.h.  */
10854146773Ssam_ACEOF
10855146773Ssamcat confdefs.h >>conftest.$ac_ext
10856146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10857146773Ssam/* end confdefs.h.  */
10858146773Ssam
10859146773Ssam#	    ifdef HAVE_INTTYPES_H
10860146773Ssam	    #include <inttypes.h>
10861146773Ssam#	    endif
10862147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
10863147899Ssam            #include <sys/bitypes.h>
10864147899Ssam#	    endif
10865146773Ssam	    #include <stdio.h>
10866146773Ssam	    #include <sys/types.h>
10867146773Ssam
10868146773Ssam	    main()
10869146773Ssam	    {
10870146773Ssam	      u_int64_t t = 1;
10871146773Ssam	      char strbuf[16+1];
10872146773Ssam	      sprintf(strbuf, "%016Lx", t << 32);
10873146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
10874146773Ssam		exit(0);
10875146773Ssam	      else
10876146773Ssam		exit(1);
10877146773Ssam	    }
10878146773Ssam
10879146773Ssam
10880146773Ssam_ACEOF
10881146773Ssamrm -f conftest$ac_exeext
10882172683Smlaierif { (ac_try="$ac_link"
10883172683Smlaiercase "(($ac_try" in
10884172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885172683Smlaier  *) ac_try_echo=$ac_try;;
10886172683Smlaieresac
10887172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888172683Smlaier  (eval "$ac_link") 2>&5
10889146773Ssam  ac_status=$?
10890146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10892172683Smlaier  { (case "(($ac_try" in
10893172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894172683Smlaier  *) ac_try_echo=$ac_try;;
10895172683Smlaieresac
10896172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897172683Smlaier  (eval "$ac_try") 2>&5
10898146773Ssam  ac_status=$?
10899146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900146773Ssam  (exit $ac_status); }; }; then
10901146773Ssam
10902146773Ssam	cat >>confdefs.h <<\_ACEOF
10903146773Ssam#define PRId64 "Ld"
10904146773Ssam_ACEOF
10905146773Ssam
10906146773Ssam	cat >>confdefs.h <<\_ACEOF
10907146773Ssam#define PRIo64 "Lo"
10908146773Ssam_ACEOF
10909146773Ssam
10910146773Ssam	cat >>confdefs.h <<\_ACEOF
10911146773Ssam#define PRIx64 "Lx"
10912146773Ssam_ACEOF
10913146773Ssam
10914146773Ssam	cat >>confdefs.h <<\_ACEOF
10915146773Ssam#define PRIu64 "Lu"
10916146773Ssam_ACEOF
10917146773Ssam
10918172683Smlaier	{ echo "$as_me:$LINENO: result: yes" >&5
10919172683Smlaierecho "${ECHO_T}yes" >&6; }
10920146773Ssam
10921146773Ssamelse
10922146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
10923146773Ssamecho "$as_me: failed program was:" >&5
10924146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
10925146773Ssam
10926146773Ssam( exit $ac_status )
10927146773Ssam
10928172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
10929172683Smlaierecho "${ECHO_T}no" >&6; }
10930146773Ssam
10931146773Ssam
10932172683Smlaier    { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10933172683Smlaierecho $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10934146773Ssam    if test "$cross_compiling" = yes; then
10935146773Ssam  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10936146773SsamSee \`config.log' for more details." >&5
10937146773Ssamecho "$as_me: error: cannot run test program while cross compiling
10938146773SsamSee \`config.log' for more details." >&2;}
10939146773Ssam   { (exit 1); exit 1; }; }
10940146773Ssamelse
10941146773Ssam  cat >conftest.$ac_ext <<_ACEOF
10942146773Ssam
10943172683Smlaier	/* confdefs.h.  */
10944146773Ssam_ACEOF
10945146773Ssamcat confdefs.h >>conftest.$ac_ext
10946146773Ssamcat >>conftest.$ac_ext <<_ACEOF
10947146773Ssam/* end confdefs.h.  */
10948146773Ssam
10949146773Ssam#	    ifdef HAVE_INTTYPES_H
10950146773Ssam	    #include <inttypes.h>
10951146773Ssam#	    endif
10952147899Ssam#	    ifdef HAVE_SYS_BITYPES_H
10953147899Ssam            #include <sys/bitypes.h>
10954147899Ssam#	    endif
10955146773Ssam	    #include <stdio.h>
10956146773Ssam	    #include <sys/types.h>
10957146773Ssam
10958146773Ssam	    main()
10959146773Ssam	    {
10960146773Ssam	      u_int64_t t = 1;
10961146773Ssam	      char strbuf[16+1];
10962146773Ssam	      sprintf(strbuf, "%016qx", t << 32);
10963146773Ssam	      if (strcmp(strbuf, "0000000100000000") == 0)
10964146773Ssam		exit(0);
10965146773Ssam	      else
10966146773Ssam		exit(1);
10967146773Ssam	    }
10968146773Ssam
10969146773Ssam
10970146773Ssam_ACEOF
10971146773Ssamrm -f conftest$ac_exeext
10972172683Smlaierif { (ac_try="$ac_link"
10973172683Smlaiercase "(($ac_try" in
10974172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975172683Smlaier  *) ac_try_echo=$ac_try;;
10976172683Smlaieresac
10977172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978172683Smlaier  (eval "$ac_link") 2>&5
10979146773Ssam  ac_status=$?
10980146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981146773Ssam  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10982172683Smlaier  { (case "(($ac_try" in
10983172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984172683Smlaier  *) ac_try_echo=$ac_try;;
10985172683Smlaieresac
10986172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987172683Smlaier  (eval "$ac_try") 2>&5
10988146773Ssam  ac_status=$?
10989146773Ssam  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990146773Ssam  (exit $ac_status); }; }; then
10991146773Ssam
10992146773Ssam	cat >>confdefs.h <<\_ACEOF
10993146773Ssam#define PRId64 "qd"
10994146773Ssam_ACEOF
10995146773Ssam
10996146773Ssam	cat >>confdefs.h <<\_ACEOF
10997146773Ssam#define PRIo64 "qo"
10998146773Ssam_ACEOF
10999146773Ssam
11000146773Ssam	cat >>confdefs.h <<\_ACEOF
11001146773Ssam#define PRIx64 "qx"
11002146773Ssam_ACEOF
11003146773Ssam
11004146773Ssam	cat >>confdefs.h <<\_ACEOF
11005146773Ssam#define PRIu64 "qu"
11006146773Ssam_ACEOF
11007146773Ssam
11008172683Smlaier	{ echo "$as_me:$LINENO: result: yes" >&5
11009172683Smlaierecho "${ECHO_T}yes" >&6; }
11010146773Ssam
11011146773Ssamelse
11012146773Ssam  echo "$as_me: program exited with status $ac_status" >&5
11013146773Ssamecho "$as_me: failed program was:" >&5
11014146773Ssamsed 's/^/| /' conftest.$ac_ext >&5
11015146773Ssam
11016146773Ssam( exit $ac_status )
11017146773Ssam
11018172683Smlaier	{ echo "$as_me:$LINENO: result: no" >&5
11019172683Smlaierecho "${ECHO_T}no" >&6; }
11020146773Ssam
11021147899Ssam	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11022146773Ssamecho "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11023146773Ssam   { (exit 1); exit 1; }; }
11024146773Ssam
11025146773Ssam
11026146773Ssamfi
11027172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11028146773Ssamfi
11029146773Ssam
11030146773Ssam
11031146773Ssam
11032172683Smlaier
11033172683Smlaier
11034146773Ssamfi
11035172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11036146773Ssamfi
11037146773Ssam
11038146773Ssam
11039146773Ssam
11040172683Smlaier
11041172683Smlaier
11042146773Ssamfi
11043172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11044146773Ssamfi
11045146773Ssam
11046147899Ssam
11047147899Ssam
11048172683Smlaier
11049172683Smlaier
11050146773Ssamfi
11051172683Smlaierrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11052147899Ssamfi
11053146773Ssam
11054172683Smlaier
11055172683Smlaier
11056147899Ssamfi
11057147899Ssam
11058236192Sdelphij#
11059236192Sdelphij# Check for some headers introduced in later versions of libpcap
11060236192Sdelphij# and used by some printers.
11061236192Sdelphij#
11062236192Sdelphij# Those headers use the {u_}intN_t types, so we must do this after
11063236192Sdelphij# we check for what's needed to get them defined.
11064236192Sdelphij#
11065236192Sdelphijsavedcppflags="$CPPFLAGS"
11066236192SdelphijCPPFLAGS="$CPPFLAGS $V_INCLS"
11067236192Sdelphij
11068236192Sdelphijfor ac_header in pcap/bluetooth.h
11069236192Sdelphijdo
11070236192Sdelphijas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11071236192Sdelphij{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11072236192Sdelphijecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11073236192Sdelphijif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11074236192Sdelphij  echo $ECHO_N "(cached) $ECHO_C" >&6
11075236192Sdelphijelse
11076236192Sdelphij  cat >conftest.$ac_ext <<_ACEOF
11077236192Sdelphij/* confdefs.h.  */
11078236192Sdelphij_ACEOF
11079236192Sdelphijcat confdefs.h >>conftest.$ac_ext
11080236192Sdelphijcat >>conftest.$ac_ext <<_ACEOF
11081236192Sdelphij/* end confdefs.h.  */
11082236192Sdelphij#include <tcpdump-stdinc.h>
11083236192Sdelphij
11084236192Sdelphij#include <$ac_header>
11085236192Sdelphij_ACEOF
11086236192Sdelphijrm -f conftest.$ac_objext
11087236192Sdelphijif { (ac_try="$ac_compile"
11088236192Sdelphijcase "(($ac_try" in
11089236192Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090236192Sdelphij  *) ac_try_echo=$ac_try;;
11091236192Sdelphijesac
11092236192Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093236192Sdelphij  (eval "$ac_compile") 2>conftest.er1
11094236192Sdelphij  ac_status=$?
11095236192Sdelphij  grep -v '^ *+' conftest.er1 >conftest.err
11096236192Sdelphij  rm -f conftest.er1
11097236192Sdelphij  cat conftest.err >&5
11098236192Sdelphij  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099236192Sdelphij  (exit $ac_status); } && {
11100236192Sdelphij	 test -z "$ac_c_werror_flag" ||
11101236192Sdelphij	 test ! -s conftest.err
11102236192Sdelphij       } && test -s conftest.$ac_objext; then
11103236192Sdelphij  eval "$as_ac_Header=yes"
11104236192Sdelphijelse
11105236192Sdelphij  echo "$as_me: failed program was:" >&5
11106236192Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
11107236192Sdelphij
11108236192Sdelphij	eval "$as_ac_Header=no"
11109236192Sdelphijfi
11110236192Sdelphij
11111236192Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112236192Sdelphijfi
11113236192Sdelphijac_res=`eval echo '${'$as_ac_Header'}'`
11114236192Sdelphij	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11115236192Sdelphijecho "${ECHO_T}$ac_res" >&6; }
11116236192Sdelphijif test `eval echo '${'$as_ac_Header'}'` = yes; then
11117236192Sdelphij  cat >>confdefs.h <<_ACEOF
11118236192Sdelphij#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119236192Sdelphij_ACEOF
11120236192Sdelphij
11121236192Sdelphijfi
11122236192Sdelphij
11123236192Sdelphijdone
11124236192Sdelphij
11125236192Sdelphij
11126236192Sdelphijfor ac_header in pcap/usb.h
11127236192Sdelphijdo
11128236192Sdelphijas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11129236192Sdelphij{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11130236192Sdelphijecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11131236192Sdelphijif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132236192Sdelphij  echo $ECHO_N "(cached) $ECHO_C" >&6
11133236192Sdelphijelse
11134236192Sdelphij  cat >conftest.$ac_ext <<_ACEOF
11135236192Sdelphij/* confdefs.h.  */
11136236192Sdelphij_ACEOF
11137236192Sdelphijcat confdefs.h >>conftest.$ac_ext
11138236192Sdelphijcat >>conftest.$ac_ext <<_ACEOF
11139236192Sdelphij/* end confdefs.h.  */
11140236192Sdelphij#include <tcpdump-stdinc.h>
11141236192Sdelphij
11142236192Sdelphij#include <$ac_header>
11143236192Sdelphij_ACEOF
11144236192Sdelphijrm -f conftest.$ac_objext
11145236192Sdelphijif { (ac_try="$ac_compile"
11146236192Sdelphijcase "(($ac_try" in
11147236192Sdelphij  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148236192Sdelphij  *) ac_try_echo=$ac_try;;
11149236192Sdelphijesac
11150236192Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151236192Sdelphij  (eval "$ac_compile") 2>conftest.er1
11152236192Sdelphij  ac_status=$?
11153236192Sdelphij  grep -v '^ *+' conftest.er1 >conftest.err
11154236192Sdelphij  rm -f conftest.er1
11155236192Sdelphij  cat conftest.err >&5
11156236192Sdelphij  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157236192Sdelphij  (exit $ac_status); } && {
11158236192Sdelphij	 test -z "$ac_c_werror_flag" ||
11159236192Sdelphij	 test ! -s conftest.err
11160236192Sdelphij       } && test -s conftest.$ac_objext; then
11161236192Sdelphij  eval "$as_ac_Header=yes"
11162236192Sdelphijelse
11163236192Sdelphij  echo "$as_me: failed program was:" >&5
11164236192Sdelphijsed 's/^/| /' conftest.$ac_ext >&5
11165236192Sdelphij
11166236192Sdelphij	eval "$as_ac_Header=no"
11167236192Sdelphijfi
11168236192Sdelphij
11169236192Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170236192Sdelphijfi
11171236192Sdelphijac_res=`eval echo '${'$as_ac_Header'}'`
11172236192Sdelphij	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11173236192Sdelphijecho "${ECHO_T}$ac_res" >&6; }
11174236192Sdelphijif test `eval echo '${'$as_ac_Header'}'` = yes; then
11175236192Sdelphij  cat >>confdefs.h <<_ACEOF
11176236192Sdelphij#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11177236192Sdelphij_ACEOF
11178236192Sdelphij
11179236192Sdelphijfi
11180236192Sdelphij
11181236192Sdelphijdone
11182236192Sdelphij
11183236192SdelphijCPPFLAGS="$savedcppflags"
11184236192Sdelphij
11185190207Srpauloif test -n "$ac_tool_prefix"; then
11186190207Srpaulo  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11187190207Srpauloset dummy ${ac_tool_prefix}ranlib; ac_word=$2
11188190207Srpaulo{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11189190207Srpauloecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11190190207Srpauloif test "${ac_cv_prog_RANLIB+set}" = set; then
11191190207Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
11192190207Srpauloelse
11193190207Srpaulo  if test -n "$RANLIB"; then
11194190207Srpaulo  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11195190207Srpauloelse
11196190207Srpauloas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197190207Srpaulofor as_dir in $PATH
11198190207Srpaulodo
11199190207Srpaulo  IFS=$as_save_IFS
11200190207Srpaulo  test -z "$as_dir" && as_dir=.
11201190207Srpaulo  for ac_exec_ext in '' $ac_executable_extensions; do
11202190207Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203190207Srpaulo    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11204190207Srpaulo    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205190207Srpaulo    break 2
11206190207Srpaulo  fi
11207190207Srpaulodone
11208190207Srpaulodone
11209190207SrpauloIFS=$as_save_IFS
11210190207Srpaulo
11211190207Srpaulofi
11212190207Srpaulofi
11213190207SrpauloRANLIB=$ac_cv_prog_RANLIB
11214190207Srpauloif test -n "$RANLIB"; then
11215190207Srpaulo  { echo "$as_me:$LINENO: result: $RANLIB" >&5
11216190207Srpauloecho "${ECHO_T}$RANLIB" >&6; }
11217190207Srpauloelse
11218190207Srpaulo  { echo "$as_me:$LINENO: result: no" >&5
11219190207Srpauloecho "${ECHO_T}no" >&6; }
11220190207Srpaulofi
11221190207Srpaulo
11222190207Srpaulo
11223190207Srpaulofi
11224190207Srpauloif test -z "$ac_cv_prog_RANLIB"; then
11225190207Srpaulo  ac_ct_RANLIB=$RANLIB
11226190207Srpaulo  # Extract the first word of "ranlib", so it can be a program name with args.
11227190207Srpauloset dummy ranlib; ac_word=$2
11228190207Srpaulo{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11229190207Srpauloecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11230190207Srpauloif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11231190207Srpaulo  echo $ECHO_N "(cached) $ECHO_C" >&6
11232190207Srpauloelse
11233190207Srpaulo  if test -n "$ac_ct_RANLIB"; then
11234190207Srpaulo  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11235190207Srpauloelse
11236190207Srpauloas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237190207Srpaulofor as_dir in $PATH
11238190207Srpaulodo
11239190207Srpaulo  IFS=$as_save_IFS
11240190207Srpaulo  test -z "$as_dir" && as_dir=.
11241190207Srpaulo  for ac_exec_ext in '' $ac_executable_extensions; do
11242190207Srpaulo  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243190207Srpaulo    ac_cv_prog_ac_ct_RANLIB="ranlib"
11244190207Srpaulo    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11245190207Srpaulo    break 2
11246190207Srpaulo  fi
11247190207Srpaulodone
11248190207Srpaulodone
11249190207SrpauloIFS=$as_save_IFS
11250190207Srpaulo
11251190207Srpaulofi
11252190207Srpaulofi
11253190207Srpauloac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11254190207Srpauloif test -n "$ac_ct_RANLIB"; then
11255190207Srpaulo  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11256190207Srpauloecho "${ECHO_T}$ac_ct_RANLIB" >&6; }
11257190207Srpauloelse
11258190207Srpaulo  { echo "$as_me:$LINENO: result: no" >&5
11259190207Srpauloecho "${ECHO_T}no" >&6; }
11260190207Srpaulofi
11261190207Srpaulo
11262190207Srpaulo  if test "x$ac_ct_RANLIB" = x; then
11263190207Srpaulo    RANLIB=":"
11264190207Srpaulo  else
11265190207Srpaulo    case $cross_compiling:$ac_tool_warned in
11266190207Srpauloyes:)
11267190207Srpaulo{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11268190207Srpaulowhose name does not start with the host triplet.  If you think this
11269190207Srpauloconfiguration is useful to you, please write to autoconf@gnu.org." >&5
11270190207Srpauloecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11271190207Srpaulowhose name does not start with the host triplet.  If you think this
11272190207Srpauloconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
11273190207Srpauloac_tool_warned=yes ;;
11274190207Srpauloesac
11275190207Srpaulo    RANLIB=$ac_ct_RANLIB
11276190207Srpaulo  fi
11277190207Srpauloelse
11278190207Srpaulo  RANLIB="$ac_cv_prog_RANLIB"
11279190207Srpaulofi
11280190207Srpaulo
11281190207Srpaulo
1128226180Sfennerrm -f os-proto.h
1128326180Sfenner    if test "${LBL_CFLAGS+set}" = set; then
1128426180Sfenner	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
1128526180Sfenner    fi
1128639297Sfenner    if test -f .devel ; then
1128739297Sfenner	    if test "$GCC" = yes ; then
1128839297Sfenner		    if test "${LBL_CFLAGS+set}" != set; then
1128939297Sfenner			    if test "$ac_cv_prog_cc_g" = yes ; then
1129039297Sfenner				    V_CCOPT="-g $V_CCOPT"
1129139297Sfenner			    fi
1129239297Sfenner			    V_CCOPT="$V_CCOPT -Wall"
1129339297Sfenner			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11294172683Smlaier				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
1129539297Sfenner			    fi
1129626180Sfenner		    fi
1129739297Sfenner	    else
1129898524Sfenner		    case "$host_os" in
1129939297Sfenner
1130039297Sfenner		    irix6*)
1130139297Sfenner			    V_CCOPT="$V_CCOPT -n32"
1130239297Sfenner			    ;;
1130339297Sfenner
1130439297Sfenner		    *)
1130539297Sfenner			    ;;
1130639297Sfenner		    esac
1130726180Sfenner	    fi
1130898524Sfenner	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
1130926180Sfenner	    name="lbl/os-$os.h"
1131026180Sfenner	    if test -f $name ; then
1131126180Sfenner		    ln -s $name os-proto.h
11312214478Srpaulo
11313214478Srpaulocat >>confdefs.h <<\_ACEOF
1131426180Sfenner#define HAVE_OS_PROTO_H 1
11315127668Sbms_ACEOF
1131626180Sfenner
1131726180Sfenner	    else
11318127668Sbms		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11319127668Sbmsecho "$as_me: WARNING: can't find $name" >&2;}
1132026180Sfenner	    fi
1132126180Sfenner    fi
1132226180Sfenner
11323214478Srpaulo{ echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11324214478Srpauloecho $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11325127668Sbms    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11326127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1132717680Spstelse
11328127668Sbms  cat >conftest.$ac_ext <<_ACEOF
11329127668Sbms/* confdefs.h.  */
11330127668Sbms_ACEOF
11331127668Sbmscat confdefs.h >>conftest.$ac_ext
11332127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11333127668Sbms/* end confdefs.h.  */
1133417680Spst
1133517680Spst#	include <sys/types.h>
1133617680Spst#	include <sys/socket.h>
11337127668Sbmsint
11338127668Sbmsmain ()
11339127668Sbms{
1134017680Spstu_int i = sizeof(((struct sockaddr *)0)->sa_len)
11341127668Sbms  ;
11342127668Sbms  return 0;
11343127668Sbms}
11344127668Sbms_ACEOF
11345127668Sbmsrm -f conftest.$ac_objext
11346172683Smlaierif { (ac_try="$ac_compile"
11347172683Smlaiercase "(($ac_try" in
11348172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349172683Smlaier  *) ac_try_echo=$ac_try;;
11350172683Smlaieresac
11351172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352172683Smlaier  (eval "$ac_compile") 2>conftest.er1
11353127668Sbms  ac_status=$?
11354172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
11355172683Smlaier  rm -f conftest.er1
11356172683Smlaier  cat conftest.err >&5
11357127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358172683Smlaier  (exit $ac_status); } && {
11359172683Smlaier	 test -z "$ac_c_werror_flag" ||
11360172683Smlaier	 test ! -s conftest.err
11361172683Smlaier       } && test -s conftest.$ac_objext; then
1136239297Sfenner  ac_cv_lbl_sockaddr_has_sa_len=yes
1136317680Spstelse
11364127668Sbms  echo "$as_me: failed program was:" >&5
11365127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11366127668Sbms
11367172683Smlaier	ac_cv_lbl_sockaddr_has_sa_len=no
1136817680Spstfi
11369172683Smlaier
11370172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1137117680Spstfi
1137217680Spst
11373172683Smlaier    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11374172683Smlaierecho "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
1137539297Sfenner    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11376214478Srpaulo
11377214478Srpaulocat >>confdefs.h <<\_ACEOF
1137817680Spst#define HAVE_SOCKADDR_SA_LEN 1
11379127668Sbms_ACEOF
1138017680Spst
1138117680Spst    fi
1138217680Spst
11383172683Smlaier{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11384172683Smlaierecho $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11385127668Sbms    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11386127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1138717680Spstelse
1138898524Sfenner  case "$host_cpu" in
1138917680Spst
11390127668Sbms	#
11391127668Sbms	# These are CPU types where:
11392127668Sbms	#
11393127668Sbms	#	the CPU faults on an unaligned access, but at least some
11394127668Sbms	#	OSes that support that CPU catch the fault and simulate
11395127668Sbms	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11396127668Sbms	#	the simulation is slow, so we don't want to use it;
11397127668Sbms	#
11398127668Sbms	#	the CPU, I infer (from the old
11399127668Sbms	#
1140075115Sfenner	# XXX: should also check that they don't do weird things (like on arm)
11401127668Sbms	#
11402127668Sbms	#	comment) doesn't fault on unaligned accesses, but doesn't
11403127668Sbms	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
11404127668Sbms	#
11405127668Sbms	#	for whatever reason, the test program doesn't work
11406127668Sbms	#	(this has been claimed to be the case for several of those
11407127668Sbms	#	CPUs - I don't know what the problem is; the problem
11408127668Sbms	#	was reported as "the test program dumps core" for SuperH,
11409127668Sbms	#	but that's what the test program is *supposed* to do -
11410127668Sbms	#	it dumps core before it writes anything, so the test
11411127668Sbms	#	for an empty output file should find an empty output
11412127668Sbms	#	file and conclude that unaligned accesses don't work).
11413127668Sbms	#
11414127668Sbms	# This run-time test won't work if you're cross-compiling, so
11415127668Sbms	# in order to support cross-compiling for a particular CPU,
11416127668Sbms	# we have to wire in the list of CPU types anyway, as far as
11417127668Sbms	# I know, so perhaps we should just have a set of CPUs on
11418127668Sbms	# which we know it doesn't work, a set of CPUs on which we
11419127668Sbms	# know it does work, and have the script just fail on other
11420127668Sbms	# cpu types and update it when such a failure occurs.
11421127668Sbms	#
11422190207Srpaulo	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
1142339297Sfenner		ac_cv_lbl_unaligned_fail=yes
1142417680Spst		;;
1142517680Spst
1142617680Spst	*)
1142717680Spst		cat >conftest.c <<EOF
1142817680Spst#		include <sys/types.h>
1142917680Spst#		include <sys/wait.h>
1143017680Spst#		include <stdio.h>
1143117680Spst		unsigned char a[5] = { 1, 2, 3, 4, 5 };
1143217680Spst		main() {
1143317680Spst		unsigned int i;
1143417680Spst		pid_t pid;
1143517680Spst		int status;
1143617680Spst		/* avoid "core dumped" message */
1143717680Spst		pid = fork();
1143817680Spst		if (pid <  0)
1143917680Spst			exit(2);
1144017680Spst		if (pid > 0) {
1144117680Spst			/* parent */
1144217680Spst			pid = waitpid(pid, &status, 0);
1144317680Spst			if (pid < 0)
1144417680Spst				exit(3);
1144517680Spst			exit(!WIFEXITED(status));
1144617680Spst		}
1144717680Spst		/* child */
1144826180Sfenner		i = *(unsigned int *)&a[1];
1144917680Spst		printf("%d\n", i);
1145017680Spst		exit(0);
1145117680Spst		}
1145217680SpstEOF
1145317680Spst		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
1145417680Spst		    conftest.c $LIBS >/dev/null 2>&1
1145517680Spst		if test ! -x conftest ; then
1145639297Sfenner						ac_cv_lbl_unaligned_fail=yes
1145717680Spst		else
1145817680Spst			./conftest >conftest.out
1145917680Spst			if test ! -s conftest.out ; then
1146039297Sfenner				ac_cv_lbl_unaligned_fail=yes
1146117680Spst			else
1146239297Sfenner				ac_cv_lbl_unaligned_fail=no
1146317680Spst			fi
1146417680Spst		fi
11465214478Srpaulo		rm -f -r conftest* core core.conftest
1146617680Spst		;;
1146717680Spst	esac
1146817680Spstfi
1146917680Spst
11470172683Smlaier    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11471172683Smlaierecho "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
1147239297Sfenner    if test $ac_cv_lbl_unaligned_fail = yes ; then
11473214478Srpaulo
11474214478Srpaulocat >>confdefs.h <<\_ACEOF
1147517680Spst#define LBL_ALIGN 1
11476127668Sbms_ACEOF
1147717680Spst
1147817680Spst    fi
1147917680Spst
1148056893Sfenner
11481172683Smlaier	{ echo "$as_me:$LINENO: checking for h_errno" >&5
11482172683Smlaierecho $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11483127668Sbms	if test "${ac_cv_var_h_errno+set}" = set; then
11484127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1148539297Sfennerelse
11486127668Sbms  cat >conftest.$ac_ext <<_ACEOF
11487127668Sbms/* confdefs.h.  */
11488127668Sbms_ACEOF
11489127668Sbmscat confdefs.h >>conftest.$ac_ext
11490127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11491127668Sbms/* end confdefs.h.  */
1149256893Sfenner
1149356893Sfenner#		include <sys/types.h>
1149456893Sfenner#		include <netdb.h>
11495127668Sbmsint
11496127668Sbmsmain ()
11497127668Sbms{
1149856893Sfennerint foo = h_errno;
11499127668Sbms  ;
11500127668Sbms  return 0;
11501127668Sbms}
11502127668Sbms_ACEOF
11503127668Sbmsrm -f conftest.$ac_objext
11504172683Smlaierif { (ac_try="$ac_compile"
11505172683Smlaiercase "(($ac_try" in
11506172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507172683Smlaier  *) ac_try_echo=$ac_try;;
11508172683Smlaieresac
11509172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510172683Smlaier  (eval "$ac_compile") 2>conftest.er1
11511127668Sbms  ac_status=$?
11512172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
11513172683Smlaier  rm -f conftest.er1
11514172683Smlaier  cat conftest.err >&5
11515127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516172683Smlaier  (exit $ac_status); } && {
11517172683Smlaier	 test -z "$ac_c_werror_flag" ||
11518172683Smlaier	 test ! -s conftest.err
11519172683Smlaier       } && test -s conftest.$ac_objext; then
1152056893Sfenner  ac_cv_var_h_errno=yes
1152156893Sfennerelse
11522127668Sbms  echo "$as_me: failed program was:" >&5
11523127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11524127668Sbms
11525172683Smlaier	ac_cv_var_h_errno=no
1152639297Sfennerfi
11527172683Smlaier
11528172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1152956893Sfennerfi
1153039297Sfenner
11531172683Smlaier	{ echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11532172683Smlaierecho "${ECHO_T}$ac_cv_var_h_errno" >&6; }
1153356893Sfenner	if test "$ac_cv_var_h_errno" = "yes"; then
11534127668Sbms		cat >>confdefs.h <<\_ACEOF
1153556893Sfenner#define HAVE_H_ERRNO 1
11536127668Sbms_ACEOF
1153756893Sfenner
1153856893Sfenner	fi
1153956893Sfenner
1154056893Sfenner
11541190207Srpaulo# Check for SSLeay
11542190207Srpaulo{ echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
11543190207Srpauloecho $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
11544190207Srpaulo# Specify location for both includes and libraries.
11545190207Srpaulowant_libcrypto=youmama
11546127668Sbms
11547172683Smlaier# Check whether --with-crypto was given.
1154875115Sfennerif test "${with_crypto+set}" = set; then
11549172683Smlaier  withval=$with_crypto;
11550190207Srpaulo	if test $withval = no
11551190207Srpaulo	then
11552190207Srpaulo		want_libcrypto=no
11553190207Srpaulo		{ echo "$as_me:$LINENO: result: no" >&5
11554190207Srpauloecho "${ECHO_T}no" >&6; }
11555190207Srpaulo	elif test $withval = yes
11556190207Srpaulo	then
11557190207Srpaulo		want_libcrypto=yes
11558190207Srpaulo		{ echo "$as_me:$LINENO: result: yes" >&5
11559190207Srpauloecho "${ECHO_T}yes" >&6; }
11560190207Srpaulo	else
11561190207Srpaulo		want_libcrypto=yes
11562190207Srpaulo		{ echo "$as_me:$LINENO: result: yes" >&5
11563190207Srpauloecho "${ECHO_T}yes" >&6; }
11564190207Srpaulo		crypto_dir=$withval
11565190207Srpaulo	fi
11566190207Srpaulo
1156775115Sfennerelse
11568127668Sbms
11569190207Srpaulo	#
11570190207Srpaulo	# Use libcrypto if it's present, otherwise don't.
11571190207Srpaulo	#
11572190207Srpaulo	want_libcrypto=ifavailable
11573190207Srpaulo	{ echo "$as_me:$LINENO: result: yes, if available" >&5
11574190207Srpauloecho "${ECHO_T}yes, if available" >&6; }
11575146773Ssam
11576162017Ssamfi
11577146773Ssam
11578190207Srpauloif test "$want_libcrypto" != "no"; then
11579190207Srpaulo	ac_cv_ssleay_path=no
11580190207Srpaulo	incdir=no
11581190207Srpaulo	if test "x$crypto_dir" = x; then
11582190207Srpaulo		#
11583190207Srpaulo		# Location not specified; check the default locations.
11584190207Srpaulo		#
11585190207Srpaulo		{ echo "$as_me:$LINENO: checking where SSLeay is located" >&5
11586190207Srpauloecho $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
11587190207Srpaulo		dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
11588190207Srpaulo		if test "x${host_alias}" != x; then
11589190207Srpaulo			dirs="/usr/${host_alias} $dirs"
11590190207Srpaulo		fi
11591190207Srpaulo		for dir in $dirs; do
11592190207Srpaulo
11593127668Sbms	#
11594214478Srpaulo	# Find the last component of $libdir; it's not necessarily
11595214478Srpaulo	# "lib" - it might be "lib64" on, for example, x86-64
11596214478Srpaulo	# Linux systems.
11597214478Srpaulo	#
11598214478Srpaulo	# We assume the directory in which we're looking for
11599214478Srpaulo	# libcrypto has a subdirectory with that as its name.
11600214478Srpaulo	#
11601214478Srpaulo	tmplib=`echo "$libdir" | sed 's,.*/,,'`
11602214478Srpaulo
11603214478Srpaulo	#
11604127668Sbms	# XXX - is there a better way to check if a given library is
11605127668Sbms	# in a given directory than checking each of the possible
11606127668Sbms	# shared library suffixes?
11607127668Sbms	#
11608190207Srpaulo	# Are there any other suffixes we need to look for?  Do we
11609190207Srpaulo	# have to worry about ".so.{version}"?
11610127668Sbms	#
11611127668Sbms	# Or should we just look for "libcrypto.*"?
11612127668Sbms	#
11613214478Srpaulo	if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
11614214478Srpaulo		          	    -f "$dir/$tmplib/libcrypto.so" -o \
11615214478Srpaulo		          	    -f "$dir/$tmplib/libcrypto.sl" -o \
11616214478Srpaulo			  	    -f "$dir/$tmplib/libcrypto.dylib" \); then
11617190207Srpaulo		ac_cv_ssleay_path="$dir"
1161856893Sfenner	fi
11619190207Srpaulo
11620190207Srpaulo	#
11621190207Srpaulo	# Make sure we have the headers as well.
11622190207Srpaulo	#
11623190207Srpaulo	if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
1162456893Sfenner		incdir="-I$dir/include"
1162556893Sfenner	fi
11626190207Srpaulo
11627190207Srpaulo
11628190207Srpaulo			if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11629190207Srpaulo				break;
11630190207Srpaulo			else
11631190207Srpaulo				ac_cv_ssleay_path=no
11632190207Srpaulo				incdir=no
11633190207Srpaulo			fi
11634190207Srpaulo		done
11635190207Srpaulo		if test "$ac_cv_ssleay_path" != no; then
11636190207Srpaulo			{ echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11637190207Srpauloecho "${ECHO_T}$ac_cv_ssleay_path" >&6; }
11638190207Srpaulo		fi
1163956893Sfenner	else
11640190207Srpaulo		{ echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
11641190207Srpauloecho $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
11642190207Srpaulo
11643190207Srpaulo	#
11644214478Srpaulo	# Find the last component of $libdir; it's not necessarily
11645214478Srpaulo	# "lib" - it might be "lib64" on, for example, x86-64
11646214478Srpaulo	# Linux systems.
11647214478Srpaulo	#
11648214478Srpaulo	# We assume the directory in which we're looking for
11649214478Srpaulo	# libcrypto has a subdirectory with that as its name.
11650214478Srpaulo	#
11651214478Srpaulo	tmplib=`echo "$libdir" | sed 's,.*/,,'`
11652214478Srpaulo
11653214478Srpaulo	#
11654190207Srpaulo	# XXX - is there a better way to check if a given library is
11655190207Srpaulo	# in a given directory than checking each of the possible
11656190207Srpaulo	# shared library suffixes?
11657190207Srpaulo	#
11658190207Srpaulo	# Are there any other suffixes we need to look for?  Do we
11659190207Srpaulo	# have to worry about ".so.{version}"?
11660190207Srpaulo	#
11661190207Srpaulo	# Or should we just look for "libcrypto.*"?
11662190207Srpaulo	#
11663214478Srpaulo	if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
11664214478Srpaulo		          	    -f "$crypto_dir/$tmplib/libcrypto.so" -o \
11665214478Srpaulo		          	    -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
11666214478Srpaulo			  	    -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
11667190207Srpaulo		ac_cv_ssleay_path="$crypto_dir"
1166856893Sfenner	fi
11669190207Srpaulo
11670190207Srpaulo	#
11671190207Srpaulo	# Make sure we have the headers as well.
11672190207Srpaulo	#
11673190207Srpaulo	if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
11674190207Srpaulo		incdir="-I$crypto_dir/include"
1167556893Sfenner	fi
11676190207Srpaulo
11677190207Srpaulo		if test "$ac_cv_ssleay_path" != no; then
11678190207Srpaulo			{ echo "$as_me:$LINENO: result: found" >&5
11679190207Srpauloecho "${ECHO_T}found" >&6; }
11680190207Srpaulo		fi
1168156893Sfenner	fi
11682190207Srpaulo	if test "$ac_cv_ssleay_path" != no; then
11683190207Srpaulo		V_INCLS="$V_INCLS $incdir"
11684214478Srpaulo		if test "$dir" != "/usr"; then
11685214478Srpaulo			LDFLAGS="-L$dir/lib $LDFLAGS"
11686214478Srpaulo		fi
11687190207Srpaulo		if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11688190207Srpaulo			LIBS="$LIBS -lRSAglue"
11689190207Srpaulo		fi
11690190207Srpaulo		if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11691190207Srpaulo			LIBS="$LIBS -lrsaref"
11692190207Srpaulo		fi
11693127668Sbms
11694172683Smlaier{ echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11695172683Smlaierecho $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
11696146773Ssamif test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11697127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1169856893Sfennerelse
11699127668Sbms  ac_check_lib_save_LIBS=$LIBS
1170056893SfennerLIBS="-lcrypto  $LIBS"
11701127668Sbmscat >conftest.$ac_ext <<_ACEOF
11702127668Sbms/* confdefs.h.  */
11703127668Sbms_ACEOF
11704127668Sbmscat confdefs.h >>conftest.$ac_ext
11705127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11706127668Sbms/* end confdefs.h.  */
11707127668Sbms
11708172683Smlaier/* Override any GCC internal prototype to avoid an error.
11709172683Smlaier   Use char because int might match the return type of a GCC
11710172683Smlaier   builtin and then its argument prototype would still apply.  */
11711127668Sbms#ifdef __cplusplus
11712127668Sbmsextern "C"
11713127668Sbms#endif
11714146773Ssamchar DES_cbc_encrypt ();
11715127668Sbmsint
11716127668Sbmsmain ()
11717127668Sbms{
11718172683Smlaierreturn DES_cbc_encrypt ();
11719127668Sbms  ;
11720127668Sbms  return 0;
11721127668Sbms}
11722127668Sbms_ACEOF
11723127668Sbmsrm -f conftest.$ac_objext conftest$ac_exeext
11724172683Smlaierif { (ac_try="$ac_link"
11725172683Smlaiercase "(($ac_try" in
11726172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727172683Smlaier  *) ac_try_echo=$ac_try;;
11728172683Smlaieresac
11729172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730172683Smlaier  (eval "$ac_link") 2>conftest.er1
11731127668Sbms  ac_status=$?
11732172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
11733172683Smlaier  rm -f conftest.er1
11734172683Smlaier  cat conftest.err >&5
11735127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736172683Smlaier  (exit $ac_status); } && {
11737172683Smlaier	 test -z "$ac_c_werror_flag" ||
11738172683Smlaier	 test ! -s conftest.err
11739172683Smlaier       } && test -s conftest$ac_exeext &&
11740172683Smlaier       $as_test_x conftest$ac_exeext; then
11741146773Ssam  ac_cv_lib_crypto_DES_cbc_encrypt=yes
1174256893Sfennerelse
11743127668Sbms  echo "$as_me: failed program was:" >&5
11744127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
1174556893Sfenner
11746172683Smlaier	ac_cv_lib_crypto_DES_cbc_encrypt=no
1174756893Sfennerfi
11748172683Smlaier
11749172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750172683Smlaier      conftest$ac_exeext conftest.$ac_ext
11751127668SbmsLIBS=$ac_check_lib_save_LIBS
11752127668Sbmsfi
11753172683Smlaier{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11754172683Smlaierecho "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
11755146773Ssamif test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11756127668Sbms  cat >>confdefs.h <<_ACEOF
11757127668Sbms#define HAVE_LIBCRYPTO 1
11758127668Sbms_ACEOF
1175956893Sfenner
1176056893Sfenner  LIBS="-lcrypto $LIBS"
1176156893Sfenner
1176256893Sfennerfi
1176356893Sfenner
1176456893Sfenner
11765242485Sdelphij		savedcppflags="$CPPFLAGS"
11766190207Srpaulo		CPPFLAGS="$CPPFLAGS $V_INCLS"
11767127668Sbms
11768127668Sbmsfor ac_header in openssl/evp.h
1176956893Sfennerdo
11770127668Sbmsas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11771172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772172683Smlaier  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11773172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11774172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11775127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
11776127668Sbmsfi
11777172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
11778172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11779172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
1178056893Sfennerelse
11781127668Sbms  # Is the header compilable?
11782172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11783172683Smlaierecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11784127668Sbmscat >conftest.$ac_ext <<_ACEOF
11785127668Sbms/* confdefs.h.  */
11786127668Sbms_ACEOF
11787127668Sbmscat confdefs.h >>conftest.$ac_ext
11788127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11789127668Sbms/* end confdefs.h.  */
11790127668Sbms$ac_includes_default
11791127668Sbms#include <$ac_header>
11792127668Sbms_ACEOF
11793127668Sbmsrm -f conftest.$ac_objext
11794172683Smlaierif { (ac_try="$ac_compile"
11795172683Smlaiercase "(($ac_try" in
11796172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797172683Smlaier  *) ac_try_echo=$ac_try;;
11798172683Smlaieresac
11799172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800172683Smlaier  (eval "$ac_compile") 2>conftest.er1
11801127668Sbms  ac_status=$?
11802172683Smlaier  grep -v '^ *+' conftest.er1 >conftest.err
11803172683Smlaier  rm -f conftest.er1
11804172683Smlaier  cat conftest.err >&5
11805127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806172683Smlaier  (exit $ac_status); } && {
11807172683Smlaier	 test -z "$ac_c_werror_flag" ||
11808172683Smlaier	 test ! -s conftest.err
11809172683Smlaier       } && test -s conftest.$ac_objext; then
11810127668Sbms  ac_header_compiler=yes
1181156893Sfennerelse
11812127668Sbms  echo "$as_me: failed program was:" >&5
11813127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11814127668Sbms
11815172683Smlaier	ac_header_compiler=no
1181656893Sfennerfi
11817127668Sbms
11818172683Smlaierrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820172683Smlaierecho "${ECHO_T}$ac_header_compiler" >&6; }
11821172683Smlaier
11822127668Sbms# Is the header present?
11823172683Smlaier{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11824172683Smlaierecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11825127668Sbmscat >conftest.$ac_ext <<_ACEOF
11826127668Sbms/* confdefs.h.  */
11827127668Sbms_ACEOF
11828127668Sbmscat confdefs.h >>conftest.$ac_ext
11829127668Sbmscat >>conftest.$ac_ext <<_ACEOF
11830127668Sbms/* end confdefs.h.  */
11831127668Sbms#include <$ac_header>
11832127668Sbms_ACEOF
11833172683Smlaierif { (ac_try="$ac_cpp conftest.$ac_ext"
11834172683Smlaiercase "(($ac_try" in
11835172683Smlaier  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836172683Smlaier  *) ac_try_echo=$ac_try;;
11837172683Smlaieresac
11838172683Smlaiereval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839172683Smlaier  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11840127668Sbms  ac_status=$?
11841127668Sbms  grep -v '^ *+' conftest.er1 >conftest.err
11842127668Sbms  rm -f conftest.er1
11843127668Sbms  cat conftest.err >&5
11844127668Sbms  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845172683Smlaier  (exit $ac_status); } >/dev/null && {
11846172683Smlaier	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11847172683Smlaier	 test ! -s conftest.err
11848172683Smlaier       }; then
11849127668Sbms  ac_header_preproc=yes
1185056893Sfennerelse
11851127668Sbms  echo "$as_me: failed program was:" >&5
11852127668Sbmssed 's/^/| /' conftest.$ac_ext >&5
11853127668Sbms
11854127668Sbms  ac_header_preproc=no
1185556893Sfennerfi
11856172683Smlaier
11857127668Sbmsrm -f conftest.err conftest.$ac_ext
11858172683Smlaier{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11859172683Smlaierecho "${ECHO_T}$ac_header_preproc" >&6; }
1186056893Sfenner
11861127668Sbms# So?  What about this header?
11862172683Smlaiercase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11863172683Smlaier  yes:no: )
11864127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11865127668Sbmsecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11866172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11867172683Smlaierecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11868172683Smlaier    ac_header_preproc=yes
11869127668Sbms    ;;
11870172683Smlaier  no:yes:* )
11871127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11872127668Sbmsecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11873172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11874172683Smlaierecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11875172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11876172683Smlaierecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11877172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11878172683Smlaierecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11879127668Sbms    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11880127668Sbmsecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11881172683Smlaier    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11882172683Smlaierecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11883172683Smlaier
11884127668Sbms    ;;
11885127668Sbmsesac
11886172683Smlaier{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11887172683Smlaierecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11888172683Smlaierif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11889127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1189056893Sfennerelse
11891172683Smlaier  eval "$as_ac_Header=\$ac_header_preproc"
11892127668Sbmsfi
11893172683Smlaierac_res=`eval echo '${'$as_ac_Header'}'`
11894172683Smlaier	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11895172683Smlaierecho "${ECHO_T}$ac_res" >&6; }
1189656893Sfenner
1189756893Sfennerfi
11898127668Sbmsif test `eval echo '${'$as_ac_Header'}'` = yes; then
11899127668Sbms  cat >>confdefs.h <<_ACEOF
11900127668Sbms#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11901127668Sbms_ACEOF
11902127668Sbms
1190356893Sfennerfi
1190456893Sfenner
11905127668Sbmsdone
1190656893Sfenner
11907236192Sdelphij		CPPFLAGS="$savedcppflags"
11908190207Srpaulo	else
11909190207Srpaulo		#
11910190207Srpaulo		# Not found.  Did the user explicitly ask for it?
11911190207Srpaulo		#
11912190207Srpaulo		{ echo "$as_me:$LINENO: result: not found" >&5
11913190207Srpauloecho "${ECHO_T}not found" >&6; }
11914190207Srpaulo		if test "$want_libcrypto" = yes; then
11915190207Srpaulo			{ { echo "$as_me:$LINENO: error: SSLeay not found" >&5
11916190207Srpauloecho "$as_me: error: SSLeay not found" >&2;}
11917190207Srpaulo   { (exit 1); exit 1; }; }
11918190207Srpaulo		fi
11919190207Srpaulo	fi
1192056893Sfennerfi
1192156893Sfenner
11922146773Ssamif test "$missing_includes" = "yes"; then
11923236192Sdelphij	CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
11924236192Sdelphij	V_INCLS="$V_INCLS -I$srcdir/missing"
11925146773Ssamfi
1192617680Spst
1192717680Spst
1192817680Spst
1192917680Spst
1193017680Spst
1193156893Sfenner
1193275115Sfenner
11933146773Ssam
11934214478Srpaulo
11935214478Srpaulo
1193617680Spst# Find a good install program.  We prefer a C program (faster),
1193717680Spst# so one script is as good as another.  But avoid the broken or
1193817680Spst# incompatible versions:
1193917680Spst# SysV /etc/install, /usr/sbin/install
1194017680Spst# SunOS /usr/etc/install
1194117680Spst# IRIX /sbin/install
1194217680Spst# AIX /bin/install
11943127668Sbms# AmigaOS /C/install, which installs bootblocks on floppy discs
1194456893Sfenner# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1194517680Spst# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1194617680Spst# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11947172683Smlaier# OS/2's system install, which has a completely different semantic
1194817680Spst# ./install, which can be erroneously created by make from ./install.sh.
11949172683Smlaier{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11950172683Smlaierecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1195117680Spstif test -z "$INSTALL"; then
11952127668Sbmsif test "${ac_cv_path_install+set}" = set; then
11953127668Sbms  echo $ECHO_N "(cached) $ECHO_C" >&6
1195417680Spstelse
11955127668Sbms  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956127668Sbmsfor as_dir in $PATH
11957127668Sbmsdo
11958127668Sbms  IFS=$as_save_IFS
11959127668Sbms  test -z "$as_dir" && as_dir=.
11960127668Sbms  # Account for people who put trailing slashes in PATH elements.
11961127668Sbmscase $as_dir/ in
11962127668Sbms  ./ | .// | /cC/* | \
11963127668Sbms  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11964172683Smlaier  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11965127668Sbms  /usr/ucb/* ) ;;
11966127668Sbms  *)
11967127668Sbms    # OSF1 and SCO ODT 3.0 have their own names for install.
11968127668Sbms    # Don't use installbsd from OSF since it installs stuff as root
11969127668Sbms    # by default.
11970127668Sbms    for ac_prog in ginstall scoinst install; do
11971127668Sbms      for ac_exec_ext in '' $ac_executable_extensions; do
11972172683Smlaier	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11973172683Smlaier	  if test $ac_prog = install &&
11974172683Smlaier	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11975172683Smlaier	    # AIX install.  It has an incompatible calling convention.
11976172683Smlaier	    :
11977172683Smlaier	  elif test $ac_prog = install &&
11978172683Smlaier	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11979172683Smlaier	    # program-specific install script used by HP pwplus--don't use.
11980172683Smlaier	    :
11981172683Smlaier	  else
11982172683Smlaier	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11983172683Smlaier	    break 3
11984172683Smlaier	  fi
11985172683Smlaier	fi
1198617680Spst      done
11987127668Sbms    done
11988127668Sbms    ;;
11989127668Sbmsesac
11990127668Sbmsdone
11991172683SmlaierIFS=$as_save_IFS
1199217680Spst
11993127668Sbms
1199417680Spstfi
1199517680Spst  if test "${ac_cv_path_install+set}" = set; then
11996127668Sbms    INSTALL=$ac_cv_path_install
1199717680Spst  else
11998172683Smlaier    # As a last resort, use the slow shell script.  Don't cache a
11999172683Smlaier    # value for INSTALL within a source directory, because that will
1200017680Spst    # break other packages using the cache if that directory is
12001172683Smlaier    # removed, or if the value is a relative name.
12002127668Sbms    INSTALL=$ac_install_sh
1200317680Spst  fi
1200417680Spstfi
12005172683Smlaier{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12006172683Smlaierecho "${ECHO_T}$INSTALL" >&6; }
1200717680Spst
1200817680Spst# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200917680Spst# It thinks the first close brace ends the variable substitution.
1201017680Spsttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1201117680Spst
12012127668Sbmstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1201356893Sfenner
1201417680Spsttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1201517680Spst
1201617680Spst
12017172683Smlaierac_config_headers="$ac_config_headers config.h"
1201856893Sfenner
1201956893Sfenner
12020172683Smlaierac_config_commands="$ac_config_commands default-1"
1202175115Sfenner
12022214478Srpauloac_config_files="$ac_config_files Makefile tcpdump.1"
12023172683Smlaier
12024127668Sbmscat >confcache <<\_ACEOF
1202517680Spst# This file is a shell script that caches the results of configure
1202617680Spst# tests run on this system so they can be shared between configure
12027127668Sbms# scripts and configure runs, see configure's option --config-cache.
12028127668Sbms# It is not useful on other systems.  If it contains results you don't
12029127668Sbms# want to keep, you may remove or edit it.
1203017680Spst#
12031127668Sbms# config.status only pays attention to the cache file if you give it
12032127668Sbms# the --recheck option to rerun configure.
1203317680Spst#
12034127668Sbms# `ac_cv_env_foo' variables (set or unset) will be overridden when
12035127668Sbms# loading this file, other *unset* `ac_cv_foo' will be assigned the
12036127668Sbms# following values.
12037127668Sbms
12038127668Sbms_ACEOF
12039127668Sbms
1204026180Sfenner# The following way of writing the cache mishandles newlines in values,
1204126180Sfenner# but we know of no workaround that is simple, portable, and efficient.
12042172683Smlaier# So, we kill variables containing newlines.
1204317680Spst# Ultrix sh set writes to stderr and can't be redirected directly,
1204417680Spst# and sets the high bit in the cache file unless we assign to the vars.
12045172683Smlaier(
12046172683Smlaier  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12047172683Smlaier    eval ac_val=\$$ac_var
12048172683Smlaier    case $ac_val in #(
12049172683Smlaier    *${as_nl}*)
12050172683Smlaier      case $ac_var in #(
12051172683Smlaier      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12052172683Smlaierecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12053172683Smlaier      esac
12054172683Smlaier      case $ac_var in #(
12055172683Smlaier      _ | IFS | as_nl) ;; #(
12056172683Smlaier      *) $as_unset $ac_var ;;
12057172683Smlaier      esac ;;
12058172683Smlaier    esac
12059172683Smlaier  done
12060172683Smlaier
12061127668Sbms  (set) 2>&1 |
12062172683Smlaier    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12063172683Smlaier    *${as_nl}ac_space=\ *)
12064127668Sbms      # `set' does not quote correctly, so add quotes (double-quote
12065127668Sbms      # substitution turns \\\\ into \\, and sed turns \\ into \).
12066127668Sbms      sed -n \
12067172683Smlaier	"s/'/'\\\\''/g;
12068172683Smlaier	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12069172683Smlaier      ;; #(
12070127668Sbms    *)
12071127668Sbms      # `set' quotes correctly as required by POSIX, so do not add quotes.
12072172683Smlaier      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12073127668Sbms      ;;
12074172683Smlaier    esac |
12075172683Smlaier    sort
12076172683Smlaier) |
12077127668Sbms  sed '
12078172683Smlaier     /^ac_cv_env_/b end
12079127668Sbms     t clear
12080172683Smlaier     :clear
12081127668Sbms     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12082127668Sbms     t end
12083172683Smlaier     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12084172683Smlaier     :end' >>confcache
12085172683Smlaierif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12086172683Smlaier  if test -w "$cache_file"; then
12087172683Smlaier    test "x$cache_file" != "x/dev/null" &&
12088172683Smlaier      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12089172683Smlaierecho "$as_me: updating cache $cache_file" >&6;}
12090127668Sbms    cat confcache >$cache_file
1209117680Spst  else
12092172683Smlaier    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12093172683Smlaierecho "$as_me: not updating unwritable cache $cache_file" >&6;}
1209417680Spst  fi
1209517680Spstfi
1209617680Spstrm -f confcache
1209717680Spst
1209817680Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix
1209917680Spst# Let make expand exec_prefix.
1210017680Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1210117680Spst
1210256893SfennerDEFS=-DHAVE_CONFIG_H
1210317680Spst
12104127668Sbmsac_libobjs=
12105127668Sbmsac_ltlibobjs=
12106127668Sbmsfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12107127668Sbms  # 1. Remove the extension, and $U if already installed.
12108172683Smlaier  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12109172683Smlaier  ac_i=`echo "$ac_i" | sed "$ac_script"`
12110172683Smlaier  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12111172683Smlaier  #    will be set to the directory where LIBOBJS objects are built.
12112172683Smlaier  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12113172683Smlaier  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12114127668Sbmsdone
12115127668SbmsLIBOBJS=$ac_libobjs
12116127668Sbms
12117127668SbmsLTLIBOBJS=$ac_ltlibobjs
12118127668Sbms
12119127668Sbms
12120127668Sbms
1212117680Spst: ${CONFIG_STATUS=./config.status}
12122127668Sbmsac_clean_files_save=$ac_clean_files
12123127668Sbmsac_clean_files="$ac_clean_files $CONFIG_STATUS"
12124127668Sbms{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12125127668Sbmsecho "$as_me: creating $CONFIG_STATUS" >&6;}
12126127668Sbmscat >$CONFIG_STATUS <<_ACEOF
12127127668Sbms#! $SHELL
12128127668Sbms# Generated by $as_me.
1212917680Spst# Run this file to recreate the current configuration.
1213017680Spst# Compiler output produced by configure, useful for debugging
12131127668Sbms# configure, is in config.log if it exists.
1213217680Spst
12133127668Sbmsdebug=false
12134127668Sbmsac_cs_recheck=false
12135127668Sbmsac_cs_silent=false
12136127668SbmsSHELL=\${CONFIG_SHELL-$SHELL}
12137127668Sbms_ACEOF
12138127668Sbms
12139127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12140127668Sbms## --------------------- ##
12141127668Sbms## M4sh Initialization.  ##
12142127668Sbms## --------------------- ##
12143127668Sbms
12144172683Smlaier# Be more Bourne compatible
12145172683SmlaierDUALCASE=1; export DUALCASE # for MKS sh
12146127668Sbmsif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12147127668Sbms  emulate sh
12148127668Sbms  NULLCMD=:
12149127668Sbms  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12150127668Sbms  # is contrary to our usage.  Disable this feature.
12151127668Sbms  alias -g '${1+"$@"}'='"$@"'
12152172683Smlaier  setopt NO_GLOB_SUBST
12153172683Smlaierelse
12154172683Smlaier  case `(set -o) 2>/dev/null` in
12155172683Smlaier  *posix*) set -o posix ;;
12156172683Smlaieresac
12157172683Smlaier
12158127668Sbmsfi
12159127668Sbms
12160172683Smlaier
12161172683Smlaier
12162172683Smlaier
12163172683Smlaier# PATH needs CR
12164172683Smlaier# Avoid depending upon Character Ranges.
12165172683Smlaieras_cr_letters='abcdefghijklmnopqrstuvwxyz'
12166172683Smlaieras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12167172683Smlaieras_cr_Letters=$as_cr_letters$as_cr_LETTERS
12168172683Smlaieras_cr_digits='0123456789'
12169172683Smlaieras_cr_alnum=$as_cr_Letters$as_cr_digits
12170172683Smlaier
12171172683Smlaier# The user is always right.
12172172683Smlaierif test "${PATH_SEPARATOR+set}" != set; then
12173172683Smlaier  echo "#! /bin/sh" >conf$$.sh
12174172683Smlaier  echo  "exit 0"   >>conf$$.sh
12175172683Smlaier  chmod +x conf$$.sh
12176172683Smlaier  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12177172683Smlaier    PATH_SEPARATOR=';'
12178172683Smlaier  else
12179172683Smlaier    PATH_SEPARATOR=:
12180172683Smlaier  fi
12181172683Smlaier  rm -f conf$$.sh
12182172683Smlaierfi
12183172683Smlaier
12184127668Sbms# Support unset when possible.
12185172683Smlaierif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12186127668Sbms  as_unset=unset
12187127668Sbmselse
12188127668Sbms  as_unset=false
12189127668Sbmsfi
12190127668Sbms
12191127668Sbms
12192172683Smlaier# IFS
12193172683Smlaier# We need space, tab and new line, in precisely that order.  Quoting is
12194172683Smlaier# there to prevent editors from complaining about space-tab.
12195172683Smlaier# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12196172683Smlaier# splitting by setting IFS to empty value.)
12197172683Smlaieras_nl='
12198172683Smlaier'
12199172683SmlaierIFS=" ""	$as_nl"
12200172683Smlaier
12201172683Smlaier# Find who we are.  Look in the path if we contain no directory separator.
12202172683Smlaiercase $0 in
12203172683Smlaier  *[\\/]* ) as_myself=$0 ;;
12204172683Smlaier  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205172683Smlaierfor as_dir in $PATH
12206172683Smlaierdo
12207172683Smlaier  IFS=$as_save_IFS
12208172683Smlaier  test -z "$as_dir" && as_dir=.
12209172683Smlaier  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12210172683Smlaierdone
12211172683SmlaierIFS=$as_save_IFS
12212172683Smlaier
12213172683Smlaier     ;;
12214172683Smlaieresac
12215172683Smlaier# We did not find ourselves, most probably we were run as `sh COMMAND'
12216172683Smlaier# in which case we are not to be found in the path.
12217172683Smlaierif test "x$as_myself" = x; then
12218172683Smlaier  as_myself=$0
12219172683Smlaierfi
12220172683Smlaierif test ! -f "$as_myself"; then
12221172683Smlaier  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12222172683Smlaier  { (exit 1); exit 1; }
12223172683Smlaierfi
12224172683Smlaier
12225127668Sbms# Work around bugs in pre-3.0 UWIN ksh.
12226172683Smlaierfor as_var in ENV MAIL MAILPATH
12227172683Smlaierdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12228172683Smlaierdone
12229127668SbmsPS1='$ '
12230127668SbmsPS2='> '
12231127668SbmsPS4='+ '
12232127668Sbms
12233127668Sbms# NLS nuisances.
12234127668Sbmsfor as_var in \
12235127668Sbms  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12236127668Sbms  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12237127668Sbms  LC_TELEPHONE LC_TIME
1223817680Spstdo
12239172683Smlaier  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12240127668Sbms    eval $as_var=C; export $as_var
12241127668Sbms  else
12242172683Smlaier    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12243127668Sbms  fi
1224417680Spstdone
1224517680Spst
12246127668Sbms# Required to use basename.
12247172683Smlaierif expr a : '\(a\)' >/dev/null 2>&1 &&
12248172683Smlaier   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12249127668Sbms  as_expr=expr
12250127668Sbmselse
12251127668Sbms  as_expr=false
12252127668Sbmsfi
1225317680Spst
12254172683Smlaierif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12255127668Sbms  as_basename=basename
12256127668Sbmselse
12257127668Sbms  as_basename=false
12258127668Sbmsfi
1225917680Spst
1226017680Spst
12261127668Sbms# Name of the executable.
12262172683Smlaieras_me=`$as_basename -- "$0" ||
12263127668Sbms$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12264127668Sbms	 X"$0" : 'X\(//\)$' \| \
12265172683Smlaier	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12266127668Sbmsecho X/"$0" |
12267172683Smlaier    sed '/^.*\/\([^/][^/]*\)\/*$/{
12268172683Smlaier	    s//\1/
12269172683Smlaier	    q
12270172683Smlaier	  }
12271172683Smlaier	  /^X\/\(\/\/\)$/{
12272172683Smlaier	    s//\1/
12273172683Smlaier	    q
12274172683Smlaier	  }
12275172683Smlaier	  /^X\/\(\/\).*/{
12276172683Smlaier	    s//\1/
12277172683Smlaier	    q
12278172683Smlaier	  }
12279172683Smlaier	  s/.*/./; q'`
1228026180Sfenner
12281172683Smlaier# CDPATH.
12282172683Smlaier$as_unset CDPATH
1228326180Sfenner
12284127668Sbms
12285127668Sbms
12286127668Sbms  as_lineno_1=$LINENO
12287127668Sbms  as_lineno_2=$LINENO
12288127668Sbms  test "x$as_lineno_1" != "x$as_lineno_2" &&
12289172683Smlaier  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12290127668Sbms
12291127668Sbms  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12292127668Sbms  # uniformly replaced by the line number.  The first 'sed' inserts a
12293172683Smlaier  # line-number line after each line using $LINENO; the second 'sed'
12294172683Smlaier  # does the real work.  The second script uses 'N' to pair each
12295172683Smlaier  # line-number line with the line containing $LINENO, and appends
12296172683Smlaier  # trailing '-' during substitution so that $LINENO is not a special
12297172683Smlaier  # case at line end.
12298127668Sbms  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12299172683Smlaier  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12300172683Smlaier  # E. McMahon (1931-1989) for sed's syntax.  :-)
12301172683Smlaier  sed -n '
12302172683Smlaier    p
12303172683Smlaier    /[$]LINENO/=
12304172683Smlaier  ' <$as_myself |
12305127668Sbms    sed '
12306172683Smlaier      s/[$]LINENO.*/&-/
12307172683Smlaier      t lineno
12308172683Smlaier      b
12309172683Smlaier      :lineno
12310127668Sbms      N
12311172683Smlaier      :loop
12312172683Smlaier      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12313127668Sbms      t loop
12314172683Smlaier      s/-\n.*//
12315127668Sbms    ' >$as_me.lineno &&
12316172683Smlaier  chmod +x "$as_me.lineno" ||
12317172683Smlaier    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12318127668Sbms   { (exit 1); exit 1; }; }
12319127668Sbms
12320127668Sbms  # Don't try to exec as it changes $[0], causing all sort of problems
12321127668Sbms  # (the dirname of $[0] is not the place where we might find the
12322172683Smlaier  # original and so on.  Autoconf is especially sensitive to this).
12323172683Smlaier  . "./$as_me.lineno"
12324127668Sbms  # Exit status is that of the last command.
12325127668Sbms  exit
12326127668Sbms}
12327127668Sbms
12328127668Sbms
12329172683Smlaierif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12330172683Smlaier  as_dirname=dirname
12331172683Smlaierelse
12332172683Smlaier  as_dirname=false
12333172683Smlaierfi
12334172683Smlaier
12335172683SmlaierECHO_C= ECHO_N= ECHO_T=
12336172683Smlaiercase `echo -n x` in
12337172683Smlaier-n*)
12338172683Smlaier  case `echo 'x\c'` in
12339172683Smlaier  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12340172683Smlaier  *)   ECHO_C='\c';;
12341172683Smlaier  esac;;
12342172683Smlaier*)
12343172683Smlaier  ECHO_N='-n';;
12344127668Sbmsesac
12345127668Sbms
12346172683Smlaierif expr a : '\(a\)' >/dev/null 2>&1 &&
12347172683Smlaier   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12348127668Sbms  as_expr=expr
12349127668Sbmselse
12350127668Sbms  as_expr=false
12351127668Sbmsfi
12352127668Sbms
12353127668Sbmsrm -f conf$$ conf$$.exe conf$$.file
12354172683Smlaierif test -d conf$$.dir; then
12355172683Smlaier  rm -f conf$$.dir/conf$$.file
12356172683Smlaierelse
12357172683Smlaier  rm -f conf$$.dir
12358172683Smlaier  mkdir conf$$.dir
12359172683Smlaierfi
12360127668Sbmsecho >conf$$.file
12361127668Sbmsif ln -s conf$$.file conf$$ 2>/dev/null; then
12362172683Smlaier  as_ln_s='ln -s'
12363172683Smlaier  # ... but there are two gotchas:
12364172683Smlaier  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12365172683Smlaier  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12366172683Smlaier  # In both cases, we have to default to `cp -p'.
12367172683Smlaier  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12368127668Sbms    as_ln_s='cp -p'
12369127668Sbmselif ln conf$$.file conf$$ 2>/dev/null; then
12370127668Sbms  as_ln_s=ln
12371127668Sbmselse
12372127668Sbms  as_ln_s='cp -p'
12373127668Sbmsfi
12374172683Smlaierrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12375172683Smlaierrmdir conf$$.dir 2>/dev/null
12376127668Sbms
12377127668Sbmsif mkdir -p . 2>/dev/null; then
12378127668Sbms  as_mkdir_p=:
12379127668Sbmselse
12380172683Smlaier  test -d ./-p && rmdir ./-p
12381127668Sbms  as_mkdir_p=false
12382127668Sbmsfi
12383127668Sbms
12384172683Smlaierif test -x / >/dev/null 2>&1; then
12385172683Smlaier  as_test_x='test -x'
12386172683Smlaierelse
12387172683Smlaier  if ls -dL / >/dev/null 2>&1; then
12388172683Smlaier    as_ls_L_option=L
12389172683Smlaier  else
12390172683Smlaier    as_ls_L_option=
12391172683Smlaier  fi
12392172683Smlaier  as_test_x='
12393172683Smlaier    eval sh -c '\''
12394172683Smlaier      if test -d "$1"; then
12395172683Smlaier        test -d "$1/.";
12396172683Smlaier      else
12397172683Smlaier	case $1 in
12398172683Smlaier        -*)set "./$1";;
12399172683Smlaier	esac;
12400172683Smlaier	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12401172683Smlaier	???[sx]*):;;*)false;;esac;fi
12402172683Smlaier    '\'' sh
12403172683Smlaier  '
12404172683Smlaierfi
12405172683Smlaieras_executable_p=$as_test_x
12406127668Sbms
12407127668Sbms# Sed expression to map a string onto a valid CPP name.
12408172683Smlaieras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12409127668Sbms
12410127668Sbms# Sed expression to map a string onto a valid variable name.
12411172683Smlaieras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12412127668Sbms
12413127668Sbms
12414127668Sbmsexec 6>&1
12415127668Sbms
12416172683Smlaier# Save the log message, to keep $[0] and so on meaningful, and to
12417127668Sbms# report actual input values of CONFIG_FILES etc. instead of their
12418172683Smlaier# values after options handling.
12419172683Smlaierac_log="
12420127668SbmsThis file was extended by $as_me, which was
12421172683Smlaiergenerated by GNU Autoconf 2.61.  Invocation command line was
12422127668Sbms
12423127668Sbms  CONFIG_FILES    = $CONFIG_FILES
12424127668Sbms  CONFIG_HEADERS  = $CONFIG_HEADERS
12425127668Sbms  CONFIG_LINKS    = $CONFIG_LINKS
12426127668Sbms  CONFIG_COMMANDS = $CONFIG_COMMANDS
12427127668Sbms  $ $0 $@
12428127668Sbms
12429172683Smlaieron `(hostname || uname -n) 2>/dev/null | sed 1q`
12430172683Smlaier"
12431172683Smlaier
12432127668Sbms_ACEOF
12433127668Sbms
12434172683Smlaiercat >>$CONFIG_STATUS <<_ACEOF
12435127668Sbms# Files that config.status was made for.
12436172683Smlaierconfig_files="$ac_config_files"
12437172683Smlaierconfig_headers="$ac_config_headers"
12438172683Smlaierconfig_commands="$ac_config_commands"
12439127668Sbms
12440172683Smlaier_ACEOF
12441127668Sbms
12442127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12443127668Sbmsac_cs_usage="\
12444127668Sbms\`$as_me' instantiates files from templates according to the
12445127668Sbmscurrent configuration.
12446127668Sbms
12447127668SbmsUsage: $0 [OPTIONS] [FILE]...
12448127668Sbms
12449127668Sbms  -h, --help       print this help, then exit
12450172683Smlaier  -V, --version    print version number and configuration settings, then exit
12451127668Sbms  -q, --quiet      do not print progress messages
12452127668Sbms  -d, --debug      don't remove temporary files
12453127668Sbms      --recheck    update $as_me by reconfiguring in the same conditions
12454127668Sbms  --file=FILE[:TEMPLATE]
12455172683Smlaier		   instantiate the configuration file FILE
12456127668Sbms  --header=FILE[:TEMPLATE]
12457172683Smlaier		   instantiate the configuration header FILE
12458127668Sbms
12459127668SbmsConfiguration files:
12460127668Sbms$config_files
12461127668Sbms
12462127668SbmsConfiguration headers:
12463127668Sbms$config_headers
12464127668Sbms
12465127668SbmsConfiguration commands:
12466127668Sbms$config_commands
12467127668Sbms
12468127668SbmsReport bugs to <bug-autoconf@gnu.org>."
12469172683Smlaier
12470127668Sbms_ACEOF
12471127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12472127668Sbmsac_cs_version="\\
12473127668Sbmsconfig.status
12474172683Smlaierconfigured by $0, generated by GNU Autoconf 2.61,
12475172683Smlaier  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12476127668Sbms
12477172683SmlaierCopyright (C) 2006 Free Software Foundation, Inc.
12478127668SbmsThis config.status script is free software; the Free Software Foundation
12479127668Sbmsgives unlimited permission to copy, distribute and modify it."
12480172683Smlaier
12481172683Smlaierac_pwd='$ac_pwd'
12482172683Smlaiersrcdir='$srcdir'
12483172683SmlaierINSTALL='$INSTALL'
12484127668Sbms_ACEOF
12485127668Sbms
12486127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12487127668Sbms# If no file are specified by the user, then we need to provide default
12488127668Sbms# value.  By we need to know if files were specified by the user.
12489127668Sbmsac_need_defaults=:
12490127668Sbmswhile test $# != 0
12491127668Sbmsdo
12492127668Sbms  case $1 in
12493127668Sbms  --*=*)
12494172683Smlaier    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12495172683Smlaier    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12496127668Sbms    ac_shift=:
12497127668Sbms    ;;
12498172683Smlaier  *)
12499127668Sbms    ac_option=$1
12500127668Sbms    ac_optarg=$2
12501127668Sbms    ac_shift=shift
12502127668Sbms    ;;
12503127668Sbms  esac
12504127668Sbms
12505127668Sbms  case $ac_option in
12506127668Sbms  # Handling of the options.
12507127668Sbms  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12508127668Sbms    ac_cs_recheck=: ;;
12509172683Smlaier  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12510172683Smlaier    echo "$ac_cs_version"; exit ;;
12511172683Smlaier  --debug | --debu | --deb | --de | --d | -d )
12512127668Sbms    debug=: ;;
12513127668Sbms  --file | --fil | --fi | --f )
12514127668Sbms    $ac_shift
12515127668Sbms    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12516127668Sbms    ac_need_defaults=false;;
12517127668Sbms  --header | --heade | --head | --hea )
12518127668Sbms    $ac_shift
12519127668Sbms    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12520127668Sbms    ac_need_defaults=false;;
12521172683Smlaier  --he | --h)
12522172683Smlaier    # Conflict between --help and --header
12523172683Smlaier    { echo "$as_me: error: ambiguous option: $1
12524172683SmlaierTry \`$0 --help' for more information." >&2
12525172683Smlaier   { (exit 1); exit 1; }; };;
12526172683Smlaier  --help | --hel | -h )
12527172683Smlaier    echo "$ac_cs_usage"; exit ;;
12528127668Sbms  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12529127668Sbms  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12530127668Sbms    ac_cs_silent=: ;;
12531127668Sbms
12532127668Sbms  # This is an error.
12533172683Smlaier  -*) { echo "$as_me: error: unrecognized option: $1
12534172683SmlaierTry \`$0 --help' for more information." >&2
12535127668Sbms   { (exit 1); exit 1; }; } ;;
12536127668Sbms
12537172683Smlaier  *) ac_config_targets="$ac_config_targets $1"
12538172683Smlaier     ac_need_defaults=false ;;
12539127668Sbms
12540127668Sbms  esac
12541127668Sbms  shift
1254226180Sfennerdone
12543127668Sbms
12544127668Sbmsac_configure_extra_args=
12545127668Sbms
12546127668Sbmsif $ac_cs_silent; then
12547127668Sbms  exec 6>/dev/null
12548127668Sbms  ac_configure_extra_args="$ac_configure_extra_args --silent"
1254926180Sfennerfi
1255026180Sfenner
12551127668Sbms_ACEOF
12552127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12553127668Sbmsif \$ac_cs_recheck; then
12554172683Smlaier  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12555172683Smlaier  CONFIG_SHELL=$SHELL
12556172683Smlaier  export CONFIG_SHELL
12557172683Smlaier  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12558127668Sbmsfi
1255917680Spst
12560127668Sbms_ACEOF
12561172683Smlaiercat >>$CONFIG_STATUS <<\_ACEOF
12562172683Smlaierexec 5>>config.log
12563172683Smlaier{
12564172683Smlaier  echo
12565172683Smlaier  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12566172683Smlaier## Running $as_me. ##
12567172683Smlaier_ASBOX
12568172683Smlaier  echo "$ac_log"
12569172683Smlaier} >&5
12570127668Sbms
12571172683Smlaier_ACEOF
12572127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12573127668Sbms#
12574172683Smlaier# INIT-COMMANDS
12575127668Sbms#
12576127668Sbms
12577127668Sbms
12578127668Sbms_ACEOF
12579127668Sbms
12580172683Smlaiercat >>$CONFIG_STATUS <<\_ACEOF
12581127668Sbms
12582172683Smlaier# Handling of arguments.
12583127668Sbmsfor ac_config_target in $ac_config_targets
12584127668Sbmsdo
12585172683Smlaier  case $ac_config_target in
12586172683Smlaier    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12587172683Smlaier    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12588172683Smlaier    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12589214478Srpaulo    "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
12590172683Smlaier
12591127668Sbms  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12592127668Sbmsecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
12593127668Sbms   { (exit 1); exit 1; }; };;
1259417680Spst  esac
12595127668Sbmsdone
1259617680Spst
12597172683Smlaier
12598127668Sbms# If the user did not use the arguments to specify the items to instantiate,
12599127668Sbms# then the envvar interface is used.  Set only those that are not.
12600127668Sbms# We use the long form for the default assignment because of an extremely
12601127668Sbms# bizarre bug on SunOS 4.1.3.
12602127668Sbmsif $ac_need_defaults; then
12603127668Sbms  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12604127668Sbms  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12605127668Sbms  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12606127668Sbmsfi
1260717680Spst
12608127668Sbms# Have a temporary directory for convenience.  Make it in the build tree
12609172683Smlaier# simply because there is no reason against having it here, and in addition,
12610127668Sbms# creating and moving files from /tmp can sometimes cause problems.
12611172683Smlaier# Hook for its removal unless debugging.
12612172683Smlaier# Note that there is a small window in which the directory will not be cleaned:
12613172683Smlaier# after its creation but before its name has been assigned to `$tmp'.
12614127668Sbms$debug ||
12615127668Sbms{
12616172683Smlaier  tmp=
12617172683Smlaier  trap 'exit_status=$?
12618172683Smlaier  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12619172683Smlaier' 0
12620127668Sbms  trap '{ (exit 1); exit 1; }' 1 2 13 15
12621127668Sbms}
12622127668Sbms# Create a (secure) tmp directory for tmp files.
12623127668Sbms
12624127668Sbms{
12625172683Smlaier  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12626127668Sbms  test -n "$tmp" && test -d "$tmp"
12627127668Sbms}  ||
12628127668Sbms{
12629172683Smlaier  tmp=./conf$$-$RANDOM
12630172683Smlaier  (umask 077 && mkdir "$tmp")
12631127668Sbms} ||
12632127668Sbms{
12633127668Sbms   echo "$me: cannot create a temporary directory in ." >&2
12634127668Sbms   { (exit 1); exit 1; }
12635127668Sbms}
12636127668Sbms
12637127668Sbms#
12638172683Smlaier# Set up the sed scripts for CONFIG_FILES section.
12639127668Sbms#
12640127668Sbms
12641127668Sbms# No need to generate the scripts if there are no CONFIG_FILES.
12642127668Sbms# This happens for instance when ./config.status config.h
12643172683Smlaierif test -n "$CONFIG_FILES"; then
12644127668Sbms
12645127668Sbms_ACEOF
12646127668Sbms
12647172683Smlaier
12648172683Smlaier
12649172683Smlaierac_delim='%!_!# '
12650172683Smlaierfor ac_last_try in false false false false false :; do
12651172683Smlaier  cat >conf$$subs.sed <<_ACEOF
12652172683SmlaierSHELL!$SHELL$ac_delim
12653172683SmlaierPATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12654172683SmlaierPACKAGE_NAME!$PACKAGE_NAME$ac_delim
12655172683SmlaierPACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12656172683SmlaierPACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12657172683SmlaierPACKAGE_STRING!$PACKAGE_STRING$ac_delim
12658172683SmlaierPACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12659172683Smlaierexec_prefix!$exec_prefix$ac_delim
12660172683Smlaierprefix!$prefix$ac_delim
12661172683Smlaierprogram_transform_name!$program_transform_name$ac_delim
12662172683Smlaierbindir!$bindir$ac_delim
12663172683Smlaiersbindir!$sbindir$ac_delim
12664172683Smlaierlibexecdir!$libexecdir$ac_delim
12665172683Smlaierdatarootdir!$datarootdir$ac_delim
12666172683Smlaierdatadir!$datadir$ac_delim
12667172683Smlaiersysconfdir!$sysconfdir$ac_delim
12668172683Smlaiersharedstatedir!$sharedstatedir$ac_delim
12669172683Smlaierlocalstatedir!$localstatedir$ac_delim
12670172683Smlaierincludedir!$includedir$ac_delim
12671172683Smlaieroldincludedir!$oldincludedir$ac_delim
12672172683Smlaierdocdir!$docdir$ac_delim
12673172683Smlaierinfodir!$infodir$ac_delim
12674172683Smlaierhtmldir!$htmldir$ac_delim
12675172683Smlaierdvidir!$dvidir$ac_delim
12676172683Smlaierpdfdir!$pdfdir$ac_delim
12677172683Smlaierpsdir!$psdir$ac_delim
12678172683Smlaierlibdir!$libdir$ac_delim
12679172683Smlaierlocaledir!$localedir$ac_delim
12680172683Smlaiermandir!$mandir$ac_delim
12681172683SmlaierDEFS!$DEFS$ac_delim
12682172683SmlaierECHO_C!$ECHO_C$ac_delim
12683172683SmlaierECHO_N!$ECHO_N$ac_delim
12684172683SmlaierECHO_T!$ECHO_T$ac_delim
12685172683SmlaierLIBS!$LIBS$ac_delim
12686172683Smlaierbuild_alias!$build_alias$ac_delim
12687172683Smlaierhost_alias!$host_alias$ac_delim
12688172683Smlaiertarget_alias!$target_alias$ac_delim
12689172683Smlaierbuild!$build$ac_delim
12690172683Smlaierbuild_cpu!$build_cpu$ac_delim
12691172683Smlaierbuild_vendor!$build_vendor$ac_delim
12692172683Smlaierbuild_os!$build_os$ac_delim
12693172683Smlaierhost!$host$ac_delim
12694172683Smlaierhost_cpu!$host_cpu$ac_delim
12695172683Smlaierhost_vendor!$host_vendor$ac_delim
12696172683Smlaierhost_os!$host_os$ac_delim
12697172683SmlaierSHLICC2!$SHLICC2$ac_delim
12698172683SmlaierCC!$CC$ac_delim
12699172683SmlaierCFLAGS!$CFLAGS$ac_delim
12700172683SmlaierLDFLAGS!$LDFLAGS$ac_delim
12701172683SmlaierCPPFLAGS!$CPPFLAGS$ac_delim
12702172683Smlaierac_ct_CC!$ac_ct_CC$ac_delim
12703172683SmlaierEXEEXT!$EXEEXT$ac_delim
12704172683SmlaierOBJEXT!$OBJEXT$ac_delim
12705172683SmlaierCPP!$CPP$ac_delim
12706172683SmlaierGREP!$GREP$ac_delim
12707172683SmlaierEGREP!$EGREP$ac_delim
12708172683SmlaierLIBOBJS!$LIBOBJS$ac_delim
12709214478SrpauloPCAP_CONFIG!$PCAP_CONFIG$ac_delim
12710190207SrpauloRANLIB!$RANLIB$ac_delim
12711172683SmlaierV_CCOPT!$V_CCOPT$ac_delim
12712172683SmlaierV_DEFS!$V_DEFS$ac_delim
12713172683SmlaierV_GROUP!$V_GROUP$ac_delim
12714172683SmlaierV_INCLS!$V_INCLS$ac_delim
12715172683SmlaierV_PCAPDEP!$V_PCAPDEP$ac_delim
12716172683SmlaierLOCALSRC!$LOCALSRC$ac_delim
12717214478SrpauloMAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12718214478SrpauloMAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12719172683SmlaierINSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12720172683SmlaierINSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12721172683SmlaierINSTALL_DATA!$INSTALL_DATA$ac_delim
12722172683SmlaierLTLIBOBJS!$LTLIBOBJS$ac_delim
12723172683Smlaier_ACEOF
12724172683Smlaier
12725214478Srpaulo  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
12726172683Smlaier    break
12727172683Smlaier  elif $ac_last_try; then
12728172683Smlaier    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12729172683Smlaierecho "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12730172683Smlaier   { (exit 1); exit 1; }; }
12731172683Smlaier  else
12732172683Smlaier    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1273317680Spst  fi
12734172683Smlaierdone
1273517680Spst
12736172683Smlaierac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12737172683Smlaierif test -n "$ac_eof"; then
12738172683Smlaier  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12739172683Smlaier  ac_eof=`expr $ac_eof + 1`
12740172683Smlaierfi
12741172683Smlaier
12742172683Smlaiercat >>$CONFIG_STATUS <<_ACEOF
12743172683Smlaiercat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12744172683Smlaier/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12745127668Sbms_ACEOF
12746172683Smlaiersed '
12747172683Smlaiers/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12748172683Smlaiers/^/s,@/; s/!/@,|#_!!_#|/
12749172683Smlaier:n
12750172683Smlaiert n
12751172683Smlaiers/'"$ac_delim"'$/,g/; t
12752172683Smlaiers/$/\\/; p
12753172683SmlaierN; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12754172683Smlaier' >>$CONFIG_STATUS <conf$$subs.sed
12755172683Smlaierrm -f conf$$subs.sed
12756172683Smlaiercat >>$CONFIG_STATUS <<_ACEOF
12757172683Smlaier:end
12758172683Smlaiers/|#_!!_#|//g
12759172683SmlaierCEOF$ac_eof
12760172683Smlaier_ACEOF
12761172683Smlaier
12762172683Smlaier
12763172683Smlaier# VPATH may cause trouble with some makes, so we remove $(srcdir),
12764172683Smlaier# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12765172683Smlaier# trailing colons and then remove the whole line if VPATH becomes empty
12766172683Smlaier# (actually we leave an empty line to preserve line numbers).
12767172683Smlaierif test "x$srcdir" = x.; then
12768172683Smlaier  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12769172683Smlaiers/:*\$(srcdir):*/:/
12770172683Smlaiers/:*\${srcdir}:*/:/
12771172683Smlaiers/:*@srcdir@:*/:/
12772172683Smlaiers/^\([^=]*=[	 ]*\):*/\1/
12773172683Smlaiers/:*$//
12774172683Smlaiers/^[^=]*=[	 ]*$//
12775172683Smlaier}'
12776172683Smlaierfi
12777172683Smlaier
12778127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12779172683Smlaierfi # test -n "$CONFIG_FILES"
12780172683Smlaier
12781172683Smlaier
12782172683Smlaierfor ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12783172683Smlaierdo
12784172683Smlaier  case $ac_tag in
12785172683Smlaier  :[FHLC]) ac_mode=$ac_tag; continue;;
1278617680Spst  esac
12787172683Smlaier  case $ac_mode$ac_tag in
12788172683Smlaier  :[FHL]*:*);;
12789172683Smlaier  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12790172683Smlaierecho "$as_me: error: Invalid tag $ac_tag." >&2;}
12791172683Smlaier   { (exit 1); exit 1; }; };;
12792172683Smlaier  :[FH]-) ac_tag=-:-;;
12793172683Smlaier  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12794172683Smlaier  esac
12795172683Smlaier  ac_save_IFS=$IFS
12796172683Smlaier  IFS=:
12797172683Smlaier  set x $ac_tag
12798172683Smlaier  IFS=$ac_save_IFS
12799172683Smlaier  shift
12800172683Smlaier  ac_file=$1
12801172683Smlaier  shift
1280217680Spst
12803172683Smlaier  case $ac_mode in
12804172683Smlaier  :L) ac_source=$1;;
12805172683Smlaier  :[FH])
12806172683Smlaier    ac_file_inputs=
12807172683Smlaier    for ac_f
12808172683Smlaier    do
12809172683Smlaier      case $ac_f in
12810172683Smlaier      -) ac_f="$tmp/stdin";;
12811172683Smlaier      *) # Look for the file first in the build tree, then in the source tree
12812172683Smlaier	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12813172683Smlaier	 # because $ac_f cannot contain `:'.
12814172683Smlaier	 test -f "$ac_f" ||
12815172683Smlaier	   case $ac_f in
12816172683Smlaier	   [\\/$]*) false;;
12817172683Smlaier	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12818172683Smlaier	   esac ||
12819172683Smlaier	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12820172683Smlaierecho "$as_me: error: cannot find input file: $ac_f" >&2;}
12821172683Smlaier   { (exit 1); exit 1; }; };;
12822172683Smlaier      esac
12823172683Smlaier      ac_file_inputs="$ac_file_inputs $ac_f"
12824172683Smlaier    done
12825172683Smlaier
12826172683Smlaier    # Let's still pretend it is `configure' which instantiates (i.e., don't
12827172683Smlaier    # use $as_me), people would be surprised to read:
12828172683Smlaier    #    /* config.h.  Generated by config.status.  */
12829172683Smlaier    configure_input="Generated from "`IFS=:
12830172683Smlaier	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12831172683Smlaier    if test x"$ac_file" != x-; then
12832172683Smlaier      configure_input="$ac_file.  $configure_input"
12833172683Smlaier      { echo "$as_me:$LINENO: creating $ac_file" >&5
12834172683Smlaierecho "$as_me: creating $ac_file" >&6;}
12835172683Smlaier    fi
12836172683Smlaier
12837172683Smlaier    case $ac_tag in
12838172683Smlaier    *:-:* | *:-) cat >"$tmp/stdin";;
12839172683Smlaier    esac
12840172683Smlaier    ;;
12841172683Smlaier  esac
12842172683Smlaier
12843172683Smlaier  ac_dir=`$as_dirname -- "$ac_file" ||
12844127668Sbms$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12845172683Smlaier	 X"$ac_file" : 'X\(//\)[^/]' \| \
12846172683Smlaier	 X"$ac_file" : 'X\(//\)$' \| \
12847172683Smlaier	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12848127668Sbmsecho X"$ac_file" |
12849172683Smlaier    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12850172683Smlaier	    s//\1/
12851172683Smlaier	    q
12852172683Smlaier	  }
12853172683Smlaier	  /^X\(\/\/\)[^/].*/{
12854172683Smlaier	    s//\1/
12855172683Smlaier	    q
12856172683Smlaier	  }
12857172683Smlaier	  /^X\(\/\/\)$/{
12858172683Smlaier	    s//\1/
12859172683Smlaier	    q
12860172683Smlaier	  }
12861172683Smlaier	  /^X\(\/\).*/{
12862172683Smlaier	    s//\1/
12863172683Smlaier	    q
12864172683Smlaier	  }
12865172683Smlaier	  s/.*/./; q'`
12866172683Smlaier  { as_dir="$ac_dir"
12867172683Smlaier  case $as_dir in #(
12868172683Smlaier  -*) as_dir=./$as_dir;;
12869172683Smlaier  esac
12870172683Smlaier  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12871127668Sbms    as_dirs=
12872172683Smlaier    while :; do
12873172683Smlaier      case $as_dir in #(
12874172683Smlaier      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12875172683Smlaier      *) as_qdir=$as_dir;;
12876172683Smlaier      esac
12877172683Smlaier      as_dirs="'$as_qdir' $as_dirs"
12878172683Smlaier      as_dir=`$as_dirname -- "$as_dir" ||
12879127668Sbms$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12880172683Smlaier	 X"$as_dir" : 'X\(//\)[^/]' \| \
12881172683Smlaier	 X"$as_dir" : 'X\(//\)$' \| \
12882172683Smlaier	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12883127668Sbmsecho X"$as_dir" |
12884172683Smlaier    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12885172683Smlaier	    s//\1/
12886172683Smlaier	    q
12887172683Smlaier	  }
12888172683Smlaier	  /^X\(\/\/\)[^/].*/{
12889172683Smlaier	    s//\1/
12890172683Smlaier	    q
12891172683Smlaier	  }
12892172683Smlaier	  /^X\(\/\/\)$/{
12893172683Smlaier	    s//\1/
12894172683Smlaier	    q
12895172683Smlaier	  }
12896172683Smlaier	  /^X\(\/\).*/{
12897172683Smlaier	    s//\1/
12898172683Smlaier	    q
12899172683Smlaier	  }
12900172683Smlaier	  s/.*/./; q'`
12901172683Smlaier      test -d "$as_dir" && break
12902127668Sbms    done
12903172683Smlaier    test -z "$as_dirs" || eval "mkdir $as_dirs"
12904172683Smlaier  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12905172683Smlaierecho "$as_me: error: cannot create directory $as_dir" >&2;}
12906127668Sbms   { (exit 1); exit 1; }; }; }
12907127668Sbms  ac_builddir=.
12908127668Sbms
12909172683Smlaiercase "$ac_dir" in
12910172683Smlaier.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12911172683Smlaier*)
12912127668Sbms  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12913172683Smlaier  # A ".." for each directory in $ac_dir_suffix.
12914172683Smlaier  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12915172683Smlaier  case $ac_top_builddir_sub in
12916172683Smlaier  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12917172683Smlaier  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12918172683Smlaier  esac ;;
12919172683Smlaieresac
12920172683Smlaierac_abs_top_builddir=$ac_pwd
12921172683Smlaierac_abs_builddir=$ac_pwd$ac_dir_suffix
12922172683Smlaier# for backward compatibility:
12923172683Smlaierac_top_builddir=$ac_top_build_prefix
12924127668Sbms
12925127668Sbmscase $srcdir in
12926172683Smlaier  .)  # We are building in place.
12927127668Sbms    ac_srcdir=.
12928172683Smlaier    ac_top_srcdir=$ac_top_builddir_sub
12929172683Smlaier    ac_abs_top_srcdir=$ac_pwd ;;
12930172683Smlaier  [\\/]* | ?:[\\/]* )  # Absolute name.
12931127668Sbms    ac_srcdir=$srcdir$ac_dir_suffix;
12932172683Smlaier    ac_top_srcdir=$srcdir
12933172683Smlaier    ac_abs_top_srcdir=$srcdir ;;
12934172683Smlaier  *) # Relative name.
12935172683Smlaier    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12936172683Smlaier    ac_top_srcdir=$ac_top_build_prefix$srcdir
12937172683Smlaier    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12938127668Sbmsesac
12939172683Smlaierac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12940127668Sbms
12941127668Sbms
12942172683Smlaier  case $ac_mode in
12943172683Smlaier  :F)
12944172683Smlaier  #
12945172683Smlaier  # CONFIG_FILE
12946172683Smlaier  #
12947172683Smlaier
12948127668Sbms  case $INSTALL in
12949127668Sbms  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12950172683Smlaier  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1295117680Spst  esac
12952172683Smlaier_ACEOF
1295326180Sfenner
12954172683Smlaiercat >>$CONFIG_STATUS <<\_ACEOF
12955172683Smlaier# If the template does not know about datarootdir, expand it.
12956172683Smlaier# FIXME: This hack should be removed a few years after 2.60.
12957172683Smlaierac_datarootdir_hack=; ac_datarootdir_seen=
1295817680Spst
12959172683Smlaiercase `sed -n '/datarootdir/ {
12960172683Smlaier  p
12961172683Smlaier  q
12962172683Smlaier}
12963172683Smlaier/@datadir@/p
12964172683Smlaier/@docdir@/p
12965172683Smlaier/@infodir@/p
12966172683Smlaier/@localedir@/p
12967172683Smlaier/@mandir@/p
12968172683Smlaier' $ac_file_inputs` in
12969172683Smlaier*datarootdir*) ac_datarootdir_seen=yes;;
12970172683Smlaier*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12971172683Smlaier  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12972172683Smlaierecho "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12973127668Sbms_ACEOF
12974127668Sbmscat >>$CONFIG_STATUS <<_ACEOF
12975172683Smlaier  ac_datarootdir_hack='
12976172683Smlaier  s&@datadir@&$datadir&g
12977172683Smlaier  s&@docdir@&$docdir&g
12978172683Smlaier  s&@infodir@&$infodir&g
12979172683Smlaier  s&@localedir@&$localedir&g
12980172683Smlaier  s&@mandir@&$mandir&g
12981172683Smlaier    s&\\\${datarootdir}&$datarootdir&g' ;;
12982172683Smlaieresac
12983172683Smlaier_ACEOF
12984172683Smlaier
12985172683Smlaier# Neutralize VPATH when `$srcdir' = `.'.
12986172683Smlaier# Shell code in configure.ac might set extrasub.
12987172683Smlaier# FIXME: do we really want to maintain this feature?
12988172683Smlaiercat >>$CONFIG_STATUS <<_ACEOF
12989127668Sbms  sed "$ac_vpsub
12990127668Sbms$extrasub
12991127668Sbms_ACEOF
12992127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
12993127668Sbms:t
12994127668Sbms/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12995172683Smlaiers&@configure_input@&$configure_input&;t t
12996172683Smlaiers&@top_builddir@&$ac_top_builddir_sub&;t t
12997172683Smlaiers&@srcdir@&$ac_srcdir&;t t
12998172683Smlaiers&@abs_srcdir@&$ac_abs_srcdir&;t t
12999172683Smlaiers&@top_srcdir@&$ac_top_srcdir&;t t
13000172683Smlaiers&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13001172683Smlaiers&@builddir@&$ac_builddir&;t t
13002172683Smlaiers&@abs_builddir@&$ac_abs_builddir&;t t
13003172683Smlaiers&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13004172683Smlaiers&@INSTALL@&$ac_INSTALL&;t t
13005172683Smlaier$ac_datarootdir_hack
13006172683Smlaier" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13007127668Sbms
13008172683Smlaiertest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13009172683Smlaier  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13010172683Smlaier  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13011172683Smlaier  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13012172683Smlaierwhich seems to be undefined.  Please make sure it is defined." >&5
13013172683Smlaierecho "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13014172683Smlaierwhich seems to be undefined.  Please make sure it is defined." >&2;}
13015127668Sbms
13016172683Smlaier  rm -f "$tmp/stdin"
13017127668Sbms  case $ac_file in
13018172683Smlaier  -) cat "$tmp/out"; rm -f "$tmp/out";;
13019172683Smlaier  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1302056893Sfenner  esac
13021172683Smlaier ;;
13022172683Smlaier  :H)
13023172683Smlaier  #
13024172683Smlaier  # CONFIG_HEADER
13025172683Smlaier  #
13026172683Smlaier_ACEOF
1302717680Spst
13028172683Smlaier# Transform confdefs.h into a sed script `conftest.defines', that
13029172683Smlaier# substitutes the proper values into config.h.in to produce config.h.
13030172683Smlaierrm -f conftest.defines conftest.tail
13031172683Smlaier# First, append a space to every undef/define line, to ease matching.
13032172683Smlaierecho 's/$/ /' >conftest.defines
13033172683Smlaier# Then, protect against being on the right side of a sed subst, or in
13034172683Smlaier# an unquoted here document, in config.status.  If some macros were
13035172683Smlaier# called several times there might be several #defines for the same
13036172683Smlaier# symbol, which is useless.  But do not sort them, since the last
13037172683Smlaier# AC_DEFINE must be honored.
13038172683Smlaierac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13039172683Smlaier# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13040172683Smlaier# NAME is the cpp macro being defined, VALUE is the value it is being given.
13041172683Smlaier# PARAMS is the parameter list in the macro definition--in most cases, it's
13042172683Smlaier# just an empty string.
13043172683Smlaierac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
13044172683Smlaierac_dB='\\)[	 (].*,\\1define\\2'
13045172683Smlaierac_dC=' '
13046172683Smlaierac_dD=' ,'
1304756893Sfenner
13048172683Smlaieruniq confdefs.h |
13049172683Smlaier  sed -n '
13050172683Smlaier	t rset
13051172683Smlaier	:rset
13052172683Smlaier	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
13053172683Smlaier	t ok
13054172683Smlaier	d
13055172683Smlaier	:ok
13056172683Smlaier	s/[\\&,]/\\&/g
13057172683Smlaier	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13058172683Smlaier	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13059172683Smlaier  ' >>conftest.defines
1306056893Sfenner
13061172683Smlaier# Remove the space that was appended to ease matching.
13062172683Smlaier# Then replace #undef with comments.  This is necessary, for
1306356893Sfenner# example, in the case of _POSIX_SOURCE, which is predefined and required
1306456893Sfenner# on some systems where configure will not decide to define it.
13065172683Smlaier# (The regexp can be short, since the line contains either #define or #undef.)
13066172683Smlaierecho 's/ $//
13067172683Smlaiers,^[	 #]*u.*,/* & */,' >>conftest.defines
1306856893Sfenner
13069172683Smlaier# Break up conftest.defines:
13070172683Smlaierac_max_sed_lines=50
13071172683Smlaier
13072172683Smlaier# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13073172683Smlaier# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13074172683Smlaier# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13075172683Smlaier# et cetera.
13076172683Smlaierac_in='$ac_file_inputs'
13077172683Smlaierac_out='"$tmp/out1"'
13078172683Smlaierac_nxt='"$tmp/out2"'
13079172683Smlaier
13080172683Smlaierwhile :
13081127668Sbmsdo
13082172683Smlaier  # Write a here document:
13083172683Smlaier    cat >>$CONFIG_STATUS <<_ACEOF
13084172683Smlaier    # First, check the format of the line:
13085172683Smlaier    cat >"\$tmp/defines.sed" <<\\CEOF
13086172683Smlaier/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
13087172683Smlaier/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
13088172683Smlaierb
13089172683Smlaier:def
13090172683Smlaier_ACEOF
13091172683Smlaier  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13092127668Sbms  echo 'CEOF
13093172683Smlaier    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13094172683Smlaier  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13095172683Smlaier  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13096172683Smlaier  grep . conftest.tail >/dev/null || break
13097127668Sbms  rm -f conftest.defines
13098127668Sbms  mv conftest.tail conftest.defines
13099127668Sbmsdone
13100172683Smlaierrm -f conftest.defines conftest.tail
1310156893Sfenner
13102172683Smlaierecho "ac_result=$ac_in" >>$CONFIG_STATUS
13103127668Sbmscat >>$CONFIG_STATUS <<\_ACEOF
13104127668Sbms  if test x"$ac_file" != x-; then
13105172683Smlaier    echo "/* $configure_input  */" >"$tmp/config.h"
13106172683Smlaier    cat "$ac_result" >>"$tmp/config.h"
13107172683Smlaier    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13108127668Sbms      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13109127668Sbmsecho "$as_me: $ac_file is unchanged" >&6;}
13110127668Sbms    else
13111127668Sbms      rm -f $ac_file
13112172683Smlaier      mv "$tmp/config.h" $ac_file
1311356893Sfenner    fi
13114127668Sbms  else
13115172683Smlaier    echo "/* $configure_input  */"
13116172683Smlaier    cat "$ac_result"
1311756893Sfenner  fi
13118172683Smlaier  rm -f "$tmp/out12"
13119172683Smlaier ;;
1312017680Spst
13121172683Smlaier  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13122172683Smlaierecho "$as_me: executing $ac_file commands" >&6;}
13123172683Smlaier ;;
13124172683Smlaier  esac
1312556893Sfenner
1312675115Sfenner
13127172683Smlaier  case $ac_file$ac_mode in
13128172683Smlaier    "default-1":C) if test -f .devel; then
1312975115Sfenner	echo timestamp > stamp-h
1313075115Sfenner	cat Makefile-devel-adds >> Makefile
1313175115Sfenner	make depend
13132127668Sbmsfi ;;
13133172683Smlaier
13134127668Sbms  esac
13135172683Smlaierdone # for ac_tag
1313656893Sfenner
13137127668Sbms
13138127668Sbms{ (exit 0); exit 0; }
13139127668Sbms_ACEOF
1314017680Spstchmod +x $CONFIG_STATUS
13141127668Sbmsac_clean_files=$ac_clean_files_save
1314217680Spst
13143127668Sbms
13144127668Sbms# configure is writing to config.log, and then calls config.status.
13145127668Sbms# config.status does its own redirection, appending to config.log.
13146127668Sbms# Unfortunately, on DOS this fails, as config.log is still kept open
13147127668Sbms# by configure, so config.status won't be able to write to it; its
13148127668Sbms# output is simply discarded.  So we exec the FD to /dev/null,
13149127668Sbms# effectively closing config.log, so it can be properly (re)opened and
13150127668Sbms# appended to by config.status.  When coming back to configure, we
13151127668Sbms# need to make the FD available again.
13152127668Sbmsif test "$no_create" != yes; then
13153127668Sbms  ac_cs_success=:
13154127668Sbms  ac_config_status_args=
13155127668Sbms  test "$silent" = yes &&
13156127668Sbms    ac_config_status_args="$ac_config_status_args --quiet"
13157127668Sbms  exec 5>/dev/null
13158127668Sbms  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13159127668Sbms  exec 5>>config.log
13160127668Sbms  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13161127668Sbms  # would make configure fail if this is the last instruction.
13162127668Sbms  $ac_cs_success || { (exit 1); exit 1; }
13163127668Sbmsfi
13164127668Sbms
1316517680Spstexit 0
13166