From: David Hankins Date: Tue, 6 Oct 2009 23:06:00 +0000 (+0000) Subject: - ./configure now checks to ensure the intX_t and u_intX_t types are defined, X-Git-Tag: v4_2_0a1~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd3f0b9bd5010166fedef10d9b6121e472da527f;p=thirdparty%2Fdhcp.git - ./configure now checks to ensure the intX_t and u_intX_t types are defined, correcting a compilation failure when using Sun's compiler. [ISC-Bugs #20370] --- diff --git a/RELNOTES b/RELNOTES index 8708c35fa..3fd283550 100644 --- a/RELNOTES +++ b/RELNOTES @@ -202,6 +202,9 @@ work on other platforms. Please report any problems and suggested fixes to over-riding vlaues were not present in a matching fixed-address6 host configuration. +- ./configure now checks to ensure the intX_t and u_intX_t types are defined, + correcting a compilation failure when using Sun's compiler. + Changes since 4.1.0b1 - A missing "else" in dhcrelay.c could have caused an interface not to diff --git a/configure.ac b/configure.ac index e62c689bf..1643f622d 100644 --- a/configure.ac +++ b/configure.ac @@ -318,6 +318,28 @@ AC_ARG_WITH(relay-pid-file, AC_DEFINE_UNQUOTED([_PATH_DHCRELAY_PID], ["$withval"], [File for dhcrelay process information.])) +# Check basic types. +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T + +# Some systems need the u_intX_t types defined across. +AC_CHECK_TYPE([u_int8_t], [], [ + AC_TYPE_UINT8_T + AC_DEFINE(u_int8_t, [uint8_t], [Define a type for 8-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int16_t], [], [ + AC_TYPE_UINT16_T + AC_DEFINE(u_int16_t, [uint16_t], [Define a type for 16-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int32_t], [], [ + AC_TYPE_UINT32_T + AC_DEFINE(u_int32_t, [uint32_t], [Define a type for 32-bit unsigned + integers.]) +]) + # see if ifaddrs.h is available AC_CHECK_HEADERS(ifaddrs.h)