… | |
… | |
4566 | cat >>confdefs.h <<\_ACEOF |
4566 | cat >>confdefs.h <<\_ACEOF |
4567 | #define _GNU_SOURCE 1 |
4567 | #define _GNU_SOURCE 1 |
4568 | _ACEOF |
4568 | _ACEOF |
4569 | |
4569 | |
4570 | |
4570 | |
4571 | cat >>confdefs.h <<\_ACEOF |
4571 | # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
4572 | #define __USE_BSD 1 |
|
|
4573 | _ACEOF |
|
|
4574 | |
|
|
4575 | |
4572 | |
4576 | ALL_LINGUAS="" |
4573 | ALL_LINGUAS="" |
4577 | |
4574 | |
4578 | ac_ext=c |
4575 | ac_ext=c |
4579 | ac_cpp='$CPP $CPPFLAGS' |
4576 | ac_cpp='$CPP $CPPFLAGS' |
… | |
… | |
6391 | else |
6388 | else |
6392 | RANLIB="$ac_cv_prog_RANLIB" |
6389 | RANLIB="$ac_cv_prog_RANLIB" |
6393 | fi |
6390 | fi |
6394 | |
6391 | |
6395 | |
6392 | |
6396 | |
|
|
6397 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
|
|
6398 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
|
|
6399 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
|
|
6400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6401 | else |
|
|
6402 | ac_check_lib_save_LIBS=$LIBS |
|
|
6403 | LIBS="-lcposix $LIBS" |
|
|
6404 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6405 | /* confdefs.h. */ |
|
|
6406 | _ACEOF |
|
|
6407 | cat confdefs.h >>conftest.$ac_ext |
|
|
6408 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6409 | /* end confdefs.h. */ |
|
|
6410 | |
|
|
6411 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6412 | #ifdef __cplusplus |
|
|
6413 | extern "C" |
|
|
6414 | #endif |
|
|
6415 | /* We use char because int might match the return type of a gcc2 |
|
|
6416 | builtin and then its argument prototype would still apply. */ |
|
|
6417 | char strerror (); |
|
|
6418 | int |
|
|
6419 | main () |
|
|
6420 | { |
|
|
6421 | strerror (); |
|
|
6422 | ; |
|
|
6423 | return 0; |
|
|
6424 | } |
|
|
6425 | _ACEOF |
|
|
6426 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6428 | (eval $ac_link) 2>conftest.er1 |
|
|
6429 | ac_status=$? |
|
|
6430 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6431 | rm -f conftest.er1 |
|
|
6432 | cat conftest.err >&5 |
|
|
6433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6434 | (exit $ac_status); } && |
|
|
6435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
6436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6437 | (eval $ac_try) 2>&5 |
|
|
6438 | ac_status=$? |
|
|
6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6440 | (exit $ac_status); }; } && |
|
|
6441 | { ac_try='test -s conftest$ac_exeext' |
|
|
6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6443 | (eval $ac_try) 2>&5 |
|
|
6444 | ac_status=$? |
|
|
6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6446 | (exit $ac_status); }; }; then |
|
|
6447 | ac_cv_lib_cposix_strerror=yes |
|
|
6448 | else |
|
|
6449 | echo "$as_me: failed program was:" >&5 |
|
|
6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6451 | |
|
|
6452 | ac_cv_lib_cposix_strerror=no |
|
|
6453 | fi |
|
|
6454 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6455 | conftest$ac_exeext conftest.$ac_ext |
|
|
6456 | LIBS=$ac_check_lib_save_LIBS |
|
|
6457 | fi |
|
|
6458 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
|
|
6459 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
|
|
6460 | if test $ac_cv_lib_cposix_strerror = yes; then |
|
|
6461 | LIBS="$LIBS -lcposix" |
|
|
6462 | fi |
|
|
6463 | |
|
|
6464 | |
|
|
6465 | |
|
|
6466 | |
|
|
6467 | # Check whether --enable-iftype or --disable-iftype was given. |
6393 | # Check whether --enable-iftype or --disable-iftype was given. |
6468 | if test "${enable_iftype+set}" = set; then |
6394 | if test "${enable_iftype+set}" = set; then |
6469 | enableval="$enable_iftype" |
6395 | enableval="$enable_iftype" |
6470 | |
6396 | |
6471 | IFTYPE=`echo $enableval | sed s%/.*%%` |
6397 | IFTYPE=`echo $enableval | sed s%/.*%%` |
… | |
… | |
7260 | |
7186 | |
7261 | |
7187 | |
7262 | |
7188 | |
7263 | |
7189 | |
7264 | |
7190 | |
7265 | |
|
|
7266 | for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
7191 | for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
7267 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
7192 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \ |
7268 | sys/mman.h netinet/in.h |
7193 | sys/mman.h netinet/in.h |
7269 | do |
7194 | do |
7270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7195 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7197 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7416 | |
7341 | |
7417 | |
7342 | |
7418 | |
7343 | |
7419 | |
7344 | |
7420 | |
7345 | |
|
|
7346 | |
7421 | for ac_header in net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h |
7347 | for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h |
7422 | do |
7348 | do |
7423 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7424 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |