3 # This file is part of libatasmart.
5 # Copyright 2008-2011 Lennart Poettering
7 # libatasmart is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation, either version 2.1 of the
10 # License, or (at your option) any later version.
12 # libatasmart is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with libatasmart; If not, see
19 # <http://www.gnu.org/licenses/>.
21 if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
22 cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
23 chmod +x .git/hooks/pre-commit && \
24 echo "Activated pre-commit hook."
27 autoreconf --force --install --symlink
30 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
35 --localstatedir=/var \
36 --libdir=$(libdir /usr/lib) \
37 --libexecdir=/usr/lib"
39 if [ "x$1" == "xc" ]; then
40 ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args
44 echo "----------------------------------------------------------------"
45 echo "Initialized build system. For a common configuration please run:"
46 echo "----------------------------------------------------------------"
48 echo "./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args"