File: autogen.sh

package info (click to toggle)
libmath++ 0.0.4-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 488 kB
  • ctags: 233
  • sloc: cpp: 1,311; makefile: 49; sh: 17
file content (23 lines) | stat: -rwxr-xr-x 878 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
#! /bin/sh

if [ "$1" = "clean" ] || [ "$1" = "-clean" ] || [ "$1" = "--clean" ]; then
  rm -f Makefile aclocal.m4 config.cache config.guess config.h config.h.in config.log config.status config.sub configure install-sh libtool ltconfig ltmain.sh missing mkinstalldirs stamp-h stamp-h.in depcomp stamp-h1 *~
  find . \( -name '*.o' -o -name '*.lo' -o -name 'Makefile.in' -o -name 'Makefile' -o -name '.libs' -o -name '.deps' \) -exec rm -rf {} \; &> /dev/null
  rm -rf autom4te*cache
  exit 0
fi

export WANT_AUTOMAKE="1.7"
export WANT_AUTOCONF_2_5=1

ACINCLUDES="-I ."
[ -d /opt/surakware/share/aclocal ] && ACINCLUDES="${ACINCLUDES} -I /opt/surakware/share/aclocal"

aclocal ${ACINCLUDES} &&
autoheader &&
autoconf &&
libtoolize --automake &&
automake -ac || exit 1

echo "Don't forget the standard procudure:"
echo "example: ./configure --prefix=/usr && make && make install"