summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-05-29 13:31:53 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-05-29 13:31:53 -0400
commitac03a2629057969e5aaf707c3af3123b74617af3 (patch)
tree76290b06cad4c9de9bc458c5ae7372f666d98226 /configure
parentc6b4e9ff771cf8e697ea36dd31230c03cacf5442 (diff)
Configuration detects proper header files for database dev libraries
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure51
1 files changed, 51 insertions, 0 deletions
diff --git a/configure b/configure
index 43639cb7..91229159 100755
--- a/configure
+++ b/configure
@@ -612,6 +612,9 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
+SQHEADER
+MSHEADER
+PGHEADER
GCCARGS
SITELISP
INCLUDE
@@ -12130,6 +12133,51 @@ else
fi
+if test -z $PGHEADER; then
+ for ac_header in postgresql/libpq-fe.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
+if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_POSTGRESQL_LIBPQ_FE_H 1
+_ACEOF
+ PGHEADER=postgresql/libpq-fe.h
+fi
+
+done
+
+fi
+
+if test -z $PGHEADER; then
+ PGHEADER=libpq-fe.h
+fi
+
+if test -z $MSHEADER; then
+ for ac_header in mysql/mysql.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
+if test "x$ac_cv_header_mysql_mysql_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_MYSQL_MYSQL_H 1
+_ACEOF
+ MSHEADER=mysql/mysql.h
+fi
+
+done
+
+fi
+
+if test -z $MSHEADER; then
+ MSHEADER=mysql.h
+fi
+
+if test -z $SQHEADER; then
+ SQHEADER=sqlite3.h
+fi
+
+
+
+
@@ -14523,4 +14571,7 @@ Ur/Web configuration:
include directory: INCLUDE $INCLUDE
site-lisp directory: SITELISP $SITELISP
Extra GCC args: GCCARGS $GCCARGS
+ Postgres C header: PGHEADER $PGHEADER
+ MySQL C header: MSHEADER $MSHEADER
+ SQLite C header: SQHEADER $SQHEADER
EOF