]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
sol9 tweaks
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 6 Dec 2005 14:32:43 +0000 (14:32 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 6 Dec 2005 14:32:43 +0000 (14:32 +0000)
Changelog
configure.ac
drill/configure.ac
examples/configure.ac
ldns/util.h.in

index 414477cff282c4b3b1e5d72f700346af5073750b..076aafb303d60748b213a3cd9d1087b4af34eae9 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -2,7 +2,9 @@ December??? 2005: 1.0.1: ldns-team
        * Added include/ and lib/ dirs so that you can compile against ldns
          without installing ldns on your system
        * Makefile updates
-       * assert is used throughout the library to catch illegal library calls
+       * Assert is used throughout the library to catch illegal library calls
+       * Solaris 9 testing was carried out. Ldns now compiles on that
+         platform; some gnuism were identified and fixed.
 
        Drill:
        * -r was killed in favor of -o <header bit mnemonic> which 
index 4a61cc9c6cfb6ece990382c39e371fdfa0637a1c..3c389f294645f2e4e6ab98a30f19d2373cc9f955 100644 (file)
@@ -127,21 +127,8 @@ AC_CHECK_HEADERS(sys/param.h sys/mount.h,,,
   ]
 ])
 
-# I don't use these
-# Checks for typedefs, structures, and compiler characteristics.
-#AC_TYPE_UID_T
-#AC_TYPE_MODE_T
-#AC_TYPE_OFF_T
-#AC_TYPE_SIZE_T
-#AC_STRUCT_TM
-
-# Checks for library functions.
-#AC_FUNC_CHOWN
-#AC_FUNC_FORK
 AC_FUNC_MALLOC
-#AC_FUNC_MKTIME
-#AC_FUNC_STAT
-#AC_CHECK_FUNCS([mkdir rmdir strchr strrchr strstr])
+AC_CHECK_FUNCS(isblank)
 
 AC_REPLACE_FUNCS(b64_pton)
 AC_REPLACE_FUNCS(b64_ntop)
@@ -155,7 +142,6 @@ AC_CHECK_UNUSED_ATTRIBUTE
 AC_DEFINE([SYSCONFDIR], [sysconfdir], [System configuration dir])
 
 AH_BOTTOM([
-
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
index 612f8c47f96d0582c6dfd0c4d874c6cc967e52f2..46039cacd6d81c1e3119e57880bca49f7368e384 100644 (file)
@@ -2,27 +2,21 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.57)
-AC_INIT(drill, 1.0.1, drill@nlnetlabs.nl, drill)
+AC_INIT(drill, 1.0.1, libdns@nlnetlabs.nl, drill)
 AC_CONFIG_SRCDIR([drill_util.h])
 
 AC_AIX
-# Checks for programs.
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-# Checks for libraries.
-# Checks for header files.
-#AC_HEADER_STDC
-#AC_HEADER_SYS_WAIT
-# do the very minimum - we can always extend this
-AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h time.h])
-AC_CHECK_HEADERS(sys/param.h sys/mount.h,,,
-[
+AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h time.h],,, [AC_INCLUDES_DEFAULT])
+AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [AC_INCLUDES_DEFAULT]
+[ 
   [
    #if HAVE_SYS_PARAM_H
    # include <sys/param.h>
    #endif
-  ]
+  ] 
 ])
 
 # check for ldns
@@ -45,15 +39,10 @@ AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATHNAME],[]))
 
 AC_CHECK_HEADER(ldns/dns.h,,  [
        AC_MSG_ERROR([Can't find ldns headers])
-       ]
+       ], [AC_INCLUDES_DEFAULT]
 )
 
-#AC_CHECK_FUNCS([mkdir rmdir strchr strrchr strstr])
-
-#AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir")
-
 AH_BOTTOM([
-
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
index a318ef19493e074add62f4a27edebef505693c5d..5c5f58998a5542c2f84f7d8eec4978beb344c75e 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.57)
-AC_INIT(drill, 1.0.1, drill@nlnetlabs.nl, drill)
+AC_INIT(libdns, 1.0.1, libdns@nlnetlabs.nl,libdns)
 AC_CONFIG_SRCDIR([ldns-read-zone.c])
 
 AC_AIX
@@ -10,15 +10,9 @@ AC_AIX
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-# Checks for libraries.
-# Checks for header files.
-#AC_HEADER_STDC
-#AC_HEADER_SYS_WAIT
-# do the very minimum - we can always extend this
-#AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h time.h])
-AC_CHECK_HEADERS([sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h netinet/udp.h time.h pcap.h net/bpf.h arpa/inet.h sys/time.h sys/socket.h netinet/in.h netinet/ip.h netinet/if_ether.h ])
+AC_CHECK_HEADERS([sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h netinet/udp.h time.h pcap.h net/bpf.h arpa/inet.h sys/time.h sys/socket.h netinet/in.h netinet/ip.h netinet/if_ether.h])
 AC_CHECK_HEADERS([sys/param.h sys/mount.h],,,
-[
+[ [AC_INCLUDES_DEFAULT]
   [
    #if HAVE_SYS_PARAM_H
    # include <sys/param.h>
@@ -44,7 +38,7 @@ AC_CHECK_LIB(ldns, ldns_rr_new,, [
 
 AC_CHECK_HEADER(ldns/dns.h,,  [
        AC_MSG_ERROR([Can't find ldns headers])
-       ]
+       ], [AC_INCLUDES_DEFAULT]
 )
 
 AC_CHECK_LIB(pcap, pcap_open_offline,, [
@@ -54,7 +48,7 @@ AC_CHECK_LIB(pcap, pcap_open_offline,, [
 
 AC_CHECK_HEADER(pcap.h,,  [
        AC_MSG_ERROR([Can't find pcap library headers (needed for dpa)])
-       ]
+       ], [AC_INCLUDES_DEFAULT]
 )
 
 AH_BOTTOM([
index 91bb742372ab7cb3554094a46a7d3c40dfb535d3..d0cc64dcc434b829914ae162cca19101df6d1d3d 100644 (file)
@@ -105,6 +105,15 @@ ldns_write_uint32(void *dst, uint32_t data)
 #endif
 }
 
+#ifndef HAVE_ISBLANK
+/* gnuism */
+static int 
+isblank(int c)
+{
+ return (c==' ') || (c=='\t');
+}
+#endif
+
 /* warning. */
 INLINE void
 ldns_write_uint64_as_uint48(void *dst, uint64_t data)