From: Mathieu Desnoyers Date: Wed, 22 Feb 2012 22:10:27 +0000 (-0500) Subject: Revert "configure.ac: check for both libuuid/libc uuid APIs" X-Git-Tag: v2.0.0-rc2~29 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1fb77d30adb9175a84a4c4b7fc6f575c62b22463;p=lttng-ust.git Revert "configure.ac: check for both libuuid/libc uuid APIs" This reverts commit eade58d0cba1a300e37a4b1fd4b2588f134d08c9. Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index f9738a7e..0bcc4081 100644 --- a/configure.ac +++ b/configure.ac @@ -46,20 +46,8 @@ AC_CHECK_LIB([dl], [dlopen]) AC_CHECK_LIB([pthread], [pthread_create]) # Check for libuuid -AC_CHECK_LIB([uuid], [uuid_generate], -[ - AC_DEFINE_UNQUOTED([LTTNG_UST_HAVE_LIBUUID], 1, [Has libuuid support.]) -], -[ - # libuuid not found, check for uuid_create in libc. - AC_CHECK_LIB([c], [uuid_create], - [ - AC_DEFINE_UNQUOTED([LTTNG_UST_HAVE_LIBC_UUID], 1, [Has libc uuid support.]) - ], - [ - AC_MSG_ERROR([Cannot find libuuid uuid_generate nor libc uuid_create. Use [LDFLAGS]=-Ldir to specify its location.]) - ]) -] +AC_CHECK_LIB([uuid], [uuid_generate], [], + [AC_MSG_ERROR([Cannot find libuuid. Use [LDFLAGS]=-Ldir to specify its location.])] ) # Checks for header files.