File: configure.in

package info (click to toggle)
mysql-navigator 1.4.2-12
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,540 kB
  • ctags: 1,571
  • sloc: cpp: 17,298; sh: 9,505; makefile: 270; xml: 7
file content (107 lines) | stat: -rw-r--r-- 2,577 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/main/main.cxx)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mysqlnavigator, 1.4.2)
AM_MAINTAINER_MODE

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AM_PROG_LIBTOOL
AC_PROG_INSTALL

CXXFLAGS="-O2 -Wall"

AC_ARG_WITH(mysql, [  --with-mysql=PREFIX		prefix where MySQL is installed])
AC_ARG_WITH(mysql-includes, [  --with-mysql-includes=DIR	MySQL include files are in DIR])
AC_ARG_WITH(mysql-libraries, [  --with-mysql-libraries=DIR	MySQL library files are in DIR])
AC_ARG_WITH(qt, [  --with-qt=PREFIX		prefix where Qt is installed])
AC_ARG_WITH(qt-includes, [  --with-qt-includes=DIR	Qt include files are in DIR])
AC_ARG_WITH(qt-libraries, [  --with-qt-libraries=DIR	Qt library files are in DIR])

MYSQL_INCLUDE=""
MYSQL_LDFLAG=""
QT_INCLUDE=""
QT_LDFLAG=""

dnl MySQL
if test "x$with_mysql_includes" != "x"; then
	MYSQL_INCLUDE="-I$with_mysql_includes"
else
	MYSQL_INCLUDE="-I/usr/local/mysql/include/mysql"
fi

if test "x$with_mysql_libraries" != "x"; then
	MYSQL_LDFLAG="-L$with_mysql_libraries"
else
	MYSQL_LDFLAG="-L/usr/local/mysql/lib/mysql"
fi

if test "x$with_mysql" != "x"; then
	MYSQL_INCLUDE="-I$with_mysql/include"
	MYSQL_LDFLAG="-L$with_mysql/lib"
fi

dnl Qt 
if test "x$with_qt_includes" != "x"; then
	QT_INCLUDE="-I$with_qt_includes"
else
	QT_INCLUDE="-I$QTDIR/include"
fi

if test "x$with_qt_libraries" != "x"; then
	QT_LDFLAG="-L$with_qt_libraries"
else
	QT_LDFLAG="-L$QTDIR/lib"
fi

if test "x$with_qt" != "x"; then
	QT_INCLUDE="-I$with_qt/include"
	QT_LDFLAG="-L$with_qt/lib"
fi

AC_SUBST(MYSQL_INCLUDE)
AC_SUBST(MYSQL_LDFLAG)
AC_SUBST(QT_INCLUDE)
AC_SUBST(QT_LDFLAG)

dnl Checks for libraries.

dnl Checks for header files.

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Checks for library functions.

AC_OUTPUT(	\
Makefile \
include/Makefile \
src/Makefile \
src/main/Makefile \
src/mysql/Makefile \
src/mysql/about/Makefile \
src/mysql/server/Makefile \
src/mysql/edit/Makefile \
src/mysql/field/Makefile \
src/mysql/find/Makefile \
src/mysql/flush/Makefile \
src/mysql/log/Makefile \
src/mysql/mainwindow/Makefile \
src/mysql/password/Makefile \
src/mysql/privilege/Makefile \
src/mysql/process/Makefile \
src/mysql/query/Makefile \
src/mysql/schema/Makefile \
src/mysql/script/Makefile \
src/mysql/table/Makefile \
src/mysql/user/Makefile \
src/mysql/widget/Makefile \
src/mysql/xml/Makefile \
src/mysql/option/Makefile \
src/mysql/xport/Makefile \
src/mysql/sql/Makefile \
src/mysql/copy/Makefile \
src/mysql/key/Makefile
)