Fix libparted detection in case --as-needed flag is passed (#357679)

* configure.in: Fix libparted detection in case --as-needed flag is
  passed (#357679)
This commit is contained in:
Bart Hakvoort 2006-09-26 19:02:15 +00:00
parent e9aa28fff9
commit ecd3caee17
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-09-26 Bart Hakvoort <hakvoort@cvs.gnome.org>
* configure.in: Fix libparted detection in case --as-needed flag is
passed (#357679)
2006-09-25 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/jfs.cc: added support for reading of volumelabel

View File

@ -35,7 +35,8 @@ AC_CHECK_LIB(dl, dlopen, [], AC_MSG_ERROR([*** dl library (libdl) not f
dnl libparted
LIBPARTED_VERSION=1.7.1
AC_MSG_CHECKING(for libparted >= $LIBPARTED_VERSION)
LDFLAGS=-lparted
LIBS_save="$LIBS"
LIBS="-lparted"
AC_TRY_RUN(
#include <stdio.h>
#include <parted/parted.h>
@ -64,6 +65,7 @@ int main ()
return 1 ;
}
,AC_MSG_RESULT(OK),AC_MSG_ERROR(*** Requires libparted >= $LIBPARTED_VERSION) )
LIBS="$LIBS_save"
dnl GTKMM