comparison configure.ac @ 1464:969b90b1f2f9

Configuration detects proper header files for database dev libraries
author Adam Chlipala <adam@chlipala.net>
date Sun, 29 May 2011 13:31:53 -0400
parents 8524a1709821
children 3d0cc841cafd
comparison
equal deleted inserted replaced
1463:607657eb2865 1464:969b90b1f2f9
55 [], 55 [],
56 [with_emacs=yes]) 56 [with_emacs=yes])
57 57
58 AM_CONDITIONAL(USE_EMACS, test "x$with_emacs" = xyes) 58 AM_CONDITIONAL(USE_EMACS, test "x$with_emacs" = xyes)
59 59
60 if test [-z $PGHEADER]; then
61 AC_CHECK_HEADERS([postgresql/libpq-fe.h],
62 [PGHEADER=postgresql/libpq-fe.h])
63 fi
64
65 if test [-z $PGHEADER]; then
66 PGHEADER=libpq-fe.h
67 fi
68
69 if test [-z $MSHEADER]; then
70 AC_CHECK_HEADERS([mysql/mysql.h],
71 [MSHEADER=mysql/mysql.h])
72 fi
73
74 if test [-z $MSHEADER]; then
75 MSHEADER=mysql.h
76 fi
77
78 if test [-z $SQHEADER]; then
79 SQHEADER=sqlite3.h
80 fi
81
60 AC_SUBST(BIN) 82 AC_SUBST(BIN)
61 AC_SUBST(LIB) 83 AC_SUBST(LIB)
62 AC_SUBST(INCLUDE) 84 AC_SUBST(INCLUDE)
63 AC_SUBST(SITELISP) 85 AC_SUBST(SITELISP)
64 AC_SUBST(GCCARGS) 86 AC_SUBST(GCCARGS)
87 AC_SUBST(PGHEADER)
88 AC_SUBST(MSHEADER)
89 AC_SUBST(SQHEADER)
65 90
66 AC_CONFIG_FILES([ 91 AC_CONFIG_FILES([
67 Makefile 92 Makefile
68 src/c/Makefile 93 src/c/Makefile
69 src/config.sml 94 src/config.sml
77 bin directory: BIN $BIN 102 bin directory: BIN $BIN
78 lib directory: LIB $LIB 103 lib directory: LIB $LIB
79 include directory: INCLUDE $INCLUDE 104 include directory: INCLUDE $INCLUDE
80 site-lisp directory: SITELISP $SITELISP 105 site-lisp directory: SITELISP $SITELISP
81 Extra GCC args: GCCARGS $GCCARGS 106 Extra GCC args: GCCARGS $GCCARGS
107 Postgres C header: PGHEADER $PGHEADER
108 MySQL C header: MSHEADER $MSHEADER
109 SQLite C header: SQHEADER $SQHEADER
82 EOF 110 EOF