summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-27 10:40:10 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-27 10:48:40 -0800
commite5c801fbd2f8341e67600fd38b1f3ef8fc82030f (patch)
tree5fe06b11395da677d0dc0e52acbd02e0f0a0601d
parentc6c878fa6985a84181ebd44abc9de6aa74268024 (diff)
Check for strdup & strcasecmp in configure before defining our own
The HAVE_STRDUP & HAVE_STRCASECMP checks were already in the code, just not the configure checks to define them or the #include "config.h" to find the definitions. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--utils.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 73bc3c4..1741ebd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,6 +45,8 @@ if test ! -f "cfgparse.c"; then
fi
fi
+AC_CHECK_FUNCS([strdup strcasecmp])
+
# Checks for pkg-config packages
PKG_CHECK_MODULES(XKBEVD, xkbfile x11)
diff --git a/utils.h b/utils.h
index a9dcee3..ecbf8ff 100644
--- a/utils.h
+++ b/utils.h
@@ -29,6 +29,10 @@
/***====================================================================***/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <X11/Xos.h>
#include <X11/Xfuncproto.h>