summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-14 14:46:33 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-10-14 14:46:33 +0300
commitb03953e551e4e3597b22cca71bfb583162187e9d (patch)
tree4cab186f2a0fc8523c9bd66d78ae3c2b7e18c1c6 /autogen.sh
parent9fe51e6e2844a5b1d7d4d4116f15449d0f327b35 (diff)
downloadlibrpm-tizen-b03953e551e4e3597b22cca71bfb583162187e9d.tar.gz
librpm-tizen-b03953e551e4e3597b22cca71bfb583162187e9d.tar.bz2
librpm-tizen-b03953e551e4e3597b22cca71bfb583162187e9d.zip
Tweak autogen a bit more
- lose hardcoded paths based on platform - add --rpmconfigure that can be used if rpm is already present
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh38
1 files changed, 12 insertions, 26 deletions
diff --git a/autogen.sh b/autogen.sh
index e685f6477..b23f45817 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,6 @@
#!/bin/sh
+export CPPFLAGS
export CFLAGS
export LDFLAGS
@@ -13,12 +14,6 @@ case $libtoolize in
esac
esac
-myopts=
-if [ X"$@" = X -a "X`uname -s`" = "XDarwin" -a -d /opt/local ]; then
- export myopts="--prefix=/usr --disable-nls"
- export CPPFLAGS="-I${myprefix}/include"
-fi
-
$libtoolize --copy --force
autopoint --force
aclocal
@@ -26,24 +21,15 @@ autoheader
automake -a -c
autoconf
-if [ "$1" = "--noconfigure" ]; then
+case "$1" in
+ "--noconfigure")
exit 0;
-fi
-
-if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
- if [ -d /usr/share/man ]; then
- mandir=/usr/share/man
- infodir=/usr/share/info
- else
- mandir=/usr/man
- infodir=/usr/info
- fi
- if [ -d /usr/lib/nptl ]; then
- enable_posixmutexes="--enable-posixmutexes"
- else
- enable_posixmutexes=
- fi
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} ${enable_posixmutexes} "$@"
-else
- ./configure ${myopts} "$@"
-fi
+ ;;
+ "--rpmconfigure")
+ shift
+ eval "`rpm --eval %configure`" "$@"
+ ;;
+ *)
+ ./configure "$@"
+ ;;
+esac