X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=autogen.sh;h=55ee03afd14b562438d5f67030d7e336dd7a36a3;hb=481dcf7c8fa8fd9fd181b59443b7e30e9b42add4;hp=180e423c4d294ebe3f608a1b2dd69015985ad2e1;hpb=dc401e018940ccd94b9648eeab25f5ae204e5b30;p=elogind.git diff --git a/autogen.sh b/autogen.sh index 180e423c4..55ee03afd 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,18 +13,28 @@ libdir() { echo $(cd $1/$(gcc -print-multi-os-directory); pwd) } -args="\ +args="$args \ --prefix=/usr \ ---with-rootprefix= \ --sysconfdir=/etc \ ---bindir=/sbin \ --libdir=$(libdir /usr/lib) \ ---with-rootlibdir=$(libdir /lib) \ ---libexecdir=/lib \ ---with-systemdsystemunitdir=/lib/systemd/system \ --with-selinux \ --enable-gtk-doc" +if [ -L /bin ]; then +args="$args \ +--libexecdir=/usr/lib \ +--with-systemdsystemunitdir=/usr/lib/systemd/system \ +" +else +args="$args \ +--with-rootprefix= \ +---with-rootlibdir=$(libdir /lib) \ +--bindir=/sbin \ +--libexecdir=/lib \ +--with-systemdsystemunitdir=/lib/systemd/system \ +" +fi + echo echo "----------------------------------------------------------------" echo "Initialized build system. For a common configuration please run:"