3 # Copyright (C) 2007 MySQL AB
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Library General Public
7 # License as published by the Free Software Foundation; version 2
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Library General Public License for more details.
15 # You should have received a copy of the GNU Library General Public
16 # License along with this library; if not, write to the Free
17 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 function _find_mysql_root
() (
21 while [ "x$PWD" != "x/" ]; do
22 # Check if some directories are present
23 if [ -d BUILD
-a -d sql
-a -d mysys
]; then
33 /bin
/rm -f */.deps
/*.P config.cache
38 warning_flags
="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused"
39 compiler_flags
="-g -O3 -fno-omit-frame-pointer"
41 export CC CXX CFLAGS CXXFLAGS LDFLAGS LIBS
44 CFLAGS
="$warning_flags $compiler_flags"
46 LDFLAGS
="-O3 -g -static-libgcc"
48 root
=$
(_find_mysql_root
)
51 --prefix=/usr
/local
/mysql \
52 --localstatedir=/usr
/local
/mysql
/data \
53 --libexecdir=/usr
/local
/mysql
/bin \
54 --with-extra-charsets=complex \
55 --enable-thread-safe-client \
56 --enable-local-infile \
57 --with-zlib-dir=bundled \
60 --with-archive-storage-engine \
61 --with-named-curses=-lcurses \
65 --with-example-storage-engine \
66 --with-blackhole-storage-engine \
68 --with-federated-storage-engine \
69 --with-csv-storage-engine \
71 --with-embedded-server \