AC_PREREQ(2.52) AC_INIT(src/udevil.c) AM_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(src) AM_INIT_AUTOMAKE(udevil, 0.3.2+) AC_PROG_INTLTOOL([0.21]) AM_MAINTAINER_MODE AC_ISC_POSIX AC_HEADER_STDC AM_PROG_LIBTOOL AC_PROG_INSTALL AC_DEFINE_UNQUOTED(UDEVIL_VERSION, "$VERSION", [udevil version]) dnl linker optimizations AC_MSG_CHECKING([whether $LD accepts --as-needed]) case `$LD --as-needed -v 2>&1 &1 &1 = 143], , [ AC_MSG_RESULT(no) AC_MSG_ERROR([ You must install libudev development headers (eg libudev-dev) to build. If you have these installed already you may need to install pkg-config so I can find them. ])]) AC_SUBST(LIBUDEV_CFLAGS) AC_SUBST(LIBUDEV_LIBS) #dnl Large file support CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64" AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits]) AC_DEFINE(_LARGEFILE_SOURCE, 1, [Whether to enable large file support]) GETTEXT_PACKAGE="udevil" AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) dnl Add the languages which your application supports here. #ALL_LINGUAS="af ar da ca cs de es et eu fa fi fr gl he hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sv tr uk ur ur_PK vi zh_CN zh_TW" ALL_LINGUAS="ru" AM_GLIB_GNU_GETTEXT AC_OUTPUT([ Makefile po/Makefile.in man/Makefile etc/Makefile src/Makefile ]) echo echo udevil....................................... : Version $VERSION BETA TEST echo echo Linux device support......................... : libudev if test x"$mountprog" != x""; then echo mount program................................ : $mountprog else echo mount program................................ : /bin/mount fi if test x"$umountprog" != x""; then echo umount program............................... : $umountprog else echo umount program............................... : /bin/umount fi if test x"$losetupprog" != x""; then echo losetup program.............................. : $losetupprog else echo losetup program.............................. : /sbin/losetup fi if test x"$setfaclprog" != x""; then echo setfacl program.............................. : $setfaclprog else echo setfacl program.............................. : /usr/bin/setfacl fi echo echo Installation Prefix.......................... : $prefix echo " The binary will be installed as $prefix/bin/udevil" echo echo 'Homepage: http://ignorantguru.github.com/udevil/' echo