Commit 4e6a14dd authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Enable support for OSSP UUID library.

parent ab5aef3b
......@@ -322,6 +322,9 @@ NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSSP_UUIDROOT = @OSSP_UUIDROOT@
OSSP_UUID_C_INCLUDE = @OSSP_UUID_C_INCLUDE@
OSSP_UUID_C_LIB = @OSSP_UUID_C_LIB@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
......@@ -355,6 +358,9 @@ THREADS_INCLUDE = @THREADS_INCLUDE@
THREADS_LIBS = @THREADS_LIBS@
USER_NAME = @USER_NAME@
USE_MPI = @USE_MPI@
UTIL_LINUX_UUIDROOT = @UTIL_LINUX_UUIDROOT@
UTIL_LINUX_UUID_C_INCLUDE = @UTIL_LINUX_UUID_C_INCLUDE@
UTIL_LINUX_UUID_C_LIB = @UTIL_LINUX_UUID_C_LIB@
UUID_C_LIB = @UUID_C_LIB@
VERSION = @VERSION@
YAXT_CFLAGS = @YAXT_CFLAGS@
......
......@@ -295,6 +295,9 @@ NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSSP_UUIDROOT = @OSSP_UUIDROOT@
OSSP_UUID_C_INCLUDE = @OSSP_UUID_C_INCLUDE@
OSSP_UUID_C_LIB = @OSSP_UUID_C_LIB@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
......@@ -328,6 +331,9 @@ THREADS_INCLUDE = @THREADS_INCLUDE@
THREADS_LIBS = @THREADS_LIBS@
USER_NAME = @USER_NAME@
USE_MPI = @USE_MPI@
UTIL_LINUX_UUIDROOT = @UTIL_LINUX_UUIDROOT@
UTIL_LINUX_UUID_C_INCLUDE = @UTIL_LINUX_UUID_C_INCLUDE@
UTIL_LINUX_UUID_C_LIB = @UTIL_LINUX_UUID_C_LIB@
UUID_C_LIB = @UUID_C_LIB@
VERSION = @VERSION@
YAXT_CFLAGS = @YAXT_CFLAGS@
......
......@@ -712,6 +712,12 @@ SYSTEM_TYPE
HOST_NAME
USER_NAME
UUID_C_LIB
OSSP_UUID_C_LIB
OSSP_UUID_C_INCLUDE
OSSP_UUIDROOT
UTIL_LINUX_UUID_C_LIB
UTIL_LINUX_UUID_C_INCLUDE
UTIL_LINUX_UUIDROOT
CXXCPP
CPP
OTOOL64
......@@ -859,6 +865,12 @@ with_gnu_ld
with_sysroot
enable_libtool_lock
enable_largefile
with_util_linux_uuid_root
with_util_linux_uuid_include
with_util_linux_uuid_lib
with_ossp_uuid_root
with_ossp_uuid_include
with_ossp_uuid_lib
with_threads
with_szlib
with_netcdf
......@@ -900,6 +912,10 @@ CXXFLAGS
CCC
CPP
CXXCPP
UTIL_LINUX_UUID_C_INCLUDE
UTIL_LINUX_UUID_C_LIB
OSSP_UUID_C_INCLUDE
OSSP_UUID_C_LIB
MPI_C_INCLUDE
MPI_C_LIB
MPI_FC_INCLUDE
......@@ -1586,6 +1602,24 @@ Optional Packages:
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot=DIR Search for dependent libraries within DIR
(or the compiler's sysroot if not specified).
--with-util-linux-uuid-root
set directory to search for util-linux-uuid headers
and library
--with-util-linux-uuid-include
specifically set directory to search for
util-linux-uuid headers,
[default=$with_util_linux_uuid_root/include]
--with-util-linux-uuid-lib
specifically set directory to search for
util-linux-uuid library,
[default=$with_util_linux_uuid_root/lib]
--with-ossp-uuid-root set directory to search for ossp-uuid headers and
library
--with-ossp-uuid-include
specifically set directory to search for ossp-uuid
headers, [default=$with_ossp_uuid_root/include]
--with-ossp-uuid-lib specifically set directory to search for ossp-uuid
library, [default=$with_ossp_uuid_root/lib]
--with-threads=<yes/no/directory>
Compile + link for multithreading [default=yes]
--with-szlib=<yes|no|directory> (default=no)
......@@ -1625,6 +1659,16 @@ Some influential environment variables:
CXXFLAGS C++ compiler flags
CPP C preprocessor
CXXCPP C++ preprocessor
UTIL_LINUX_UUID_C_INCLUDE
specifically set flags to use when compiling sources using
util-linux-uuid includes.
UTIL_LINUX_UUID_C_LIB
specifically set flags to use when linking util-linux-uuid.
OSSP_UUID_C_INCLUDE
specifically set flags to use when compiling sources using
ossp-uuid includes.
OSSP_UUID_C_LIB
specifically set flags to use when linking ossp-uuid.
MPI_C_INCLUDE
specifically set flags to use when compiling sources using MPI
includes.
......@@ -26019,7 +26063,488 @@ _ACEOF
fi
done
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
# Sed expression to map a string onto a valid argument string part.
asx_tr_arg="eval sed 'y%*+%pp%;s%[^-$as_cr_alnum]%-%g'"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_link="./libtool --mode=link --tag=CC $ac_link"
have_util_linux_uuid_c_bindings=yes
# Check whether --with-util-linux-uuid-root was given.
if test "${with_util_linux_uuid_root+set}" = set; then :
withval=$with_util_linux_uuid_root; UTIL_LINUX_UUIDROOT="$with_util_linux_uuid_root"
fi
if ${UTIL_LINUX_UUIDROOT+:} false; then :
if ${UTIL_LINUX_UUID_C_LIB+:} false; then :
else
acx_temp=$UTIL_LINUX_UUIDROOT
UTIL_LINUX_UUID_C_LIB="-L$acx_temp/lib"
fi
if ${UTIL_LINUX_UUID_C_INCLUDE+:} false; then :
else
acx_temp=$UTIL_LINUX_UUIDROOT
UTIL_LINUX_UUID_C_INCLUDE="-I$acx_temp/include"
fi
fi
# Check whether --with-util-linux-uuid-include was given.
if test "${with_util_linux_uuid_include+set}" = set; then :
withval=$with_util_linux_uuid_include; UTIL_LINUX_UUID_C_INCLUDE="-I$with_util_linux_uuid_include"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid/uuid.h extra include path" >&5
$as_echo_n "checking for uuid/uuid.h extra include path... " >&6; }
if ${acx_cv_c_include_uuid_uuid_h+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_include_search_uuid_uuid_h_SAVE="$CPPFLAGS"
while :; do
for ac_incdir in ''; do
if test -z "$ac_incdir"; then :
ac_res="none required"
CPPFLAGS="$UTIL_LINUX_UUID_C_INCLUDE $ac_include_search_uuid_uuid_h_SAVE"
else
ac_res="-I$ac_incdir"
CPPFLAGS="$UTIL_LINUX_UUID_C_INCLUDE $ac_res $ac_include_search_uuid_uuid_h_SAVE"
fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
#include <uuid/uuid.h>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
acx_cv_c_include_uuid_uuid_h=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if ${acx_cv_c_include_uuid_uuid_h+:} false; then :
if test -z "$ac_incdir"; then :
acx_cv_c_include_uuid_uuid_h="$UTIL_LINUX_UUID_C_INCLUDE"
else
acx_cv_c_include_uuid_uuid_h="$UTIL_LINUX_UUID_C_INCLUDE -I$ac_incdir"
fi
fi
if ${acx_cv_c_include_uuid_uuid_h+:} false; then :
break
fi
done
if ${acx_cv_c_include_uuid_uuid_h+:} false; then :
break
fi
break
done
CPPFLAGS=$ac_include_search_uuid_uuid_h_SAVE
fi
if ${acx_cv_c_include_uuid_uuid_h+:} false; then :
acx_temp=$acx_cv_c_include_uuid_uuid_h
if test x"$acx_temp" = x; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5
$as_echo "(none required)" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5
$as_echo "$acx_temp" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
if ${acx_cv_c_include_uuid_uuid_h+:} false; then :
acx_temp=$acx_cv_c_include_uuid_uuid_h
acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'`
UTIL_LINUX_UUID_C_INCLUDE=$acx_temp
else
have_util_linux_uuid_c_bindings=no
fi
# Check whether --with-util-linux-uuid-lib was given.
if test "${with_util_linux_uuid_lib+set}" = set; then :
withval=$with_util_linux_uuid_lib; UTIL_LINUX_UUID_C_LIB="-L$with_util_linux_uuid_lib"
fi
if test "x$have_util_linux_uuid_c_bindings" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
$as_echo_n "checking for library containing uuid_generate... " >&6; }
if ${acx_cv_option_search_uuid_generate_c+:} false; then :
$as_echo_n "(cached) " >&6
else
while :; do
acx_option_func_search_save_LIBS="$LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char uuid_generate ();
int
main ()
{
return uuid_generate ();
;
return 0;
}
_ACEOF
for ac_lib in '' uuid; do
if test -z "$ac_lib"; then :
ac_res="none required"
LIBS="$UTIL_LINUX_UUID_C_LIB $acx_option_func_search_save_LIBS"
else
ac_res="-l$ac_lib"
LIBS="$UTIL_LINUX_UUID_C_LIB $ac_res $acx_option_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
if test x"$ac_res" = x"none required"; then :
acx_cv_option_search_uuid_generate_c="$UTIL_LINUX_UUID_C_LIB "
else
acx_cv_option_search_uuid_generate_c="$UTIL_LINUX_UUID_C_LIB -l$ac_lib "
fi
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${acx_cv_option_search_uuid_generate_c+:} false; then :
break
fi
done
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"
if ${acx_cv_option_search_uuid_generate_c+:} false; then :
break
fi
break
done
fi
if ${acx_cv_option_search_uuid_generate_c+:} false; then :
if test x"$acx_cv_option_search_uuid_generate_c" = x; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5
$as_echo "(none required)" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_uuid_generate_c" >&5
$as_echo "$acx_cv_option_search_uuid_generate_c" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
if ${acx_cv_option_search_uuid_generate_c+:} false; then :
else
have_util_linux_uuid_c_bindings=no
fi
acx_temp=$acx_cv_option_search_uuid_generate_c
acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'`
UTIL_LINUX_UUID_C_LIB=$acx_temp
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_link="./libtool --mode=link --tag=CC $ac_link"
if test x"$have_util_linux_uuid_c_bindings" = xyes; then :
CPPFLAGS="${CPPFLAGS+$CPPFLAGS }$UTIL_LINUX_UUID_C_INCLUDE"
UUID_C_LIB=$UTIL_LINUX_UUID_C_LIB
else
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_link="./libtool --mode=link --tag=CC $ac_link"
have_ossp_uuid_c_bindings=yes
# Check whether --with-ossp-uuid-root was given.
if test "${with_ossp_uuid_root+set}" = set; then :
withval=$with_ossp_uuid_root; OSSP_UUIDROOT="$with_ossp_uuid_root"
fi
if ${OSSP_UUIDROOT+:} false; then :
if ${OSSP_UUID_C_LIB+:} false; then :
else
acx_temp=$OSSP_UUIDROOT
OSSP_UUID_C_LIB="-L$acx_temp/lib"
fi
if ${OSSP_UUID_C_INCLUDE+:} false; then :
else
acx_temp=$OSSP_UUIDROOT
OSSP_UUID_C_INCLUDE="-I$acx_temp/include"
fi
fi
# Check whether --with-ossp-uuid-include was given.
if test "${with_ossp_uuid_include+set}" = set; then :
withval=$with_ossp_uuid_include; OSSP_UUID_C_INCLUDE="-I$with_ossp_uuid_include"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid.h extra include path" >&5
$as_echo_n "checking for uuid.h extra include path... " >&6; }
if ${acx_cv_c_include_uuid_h+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_include_search_uuid_h_SAVE="$CPPFLAGS"
while :; do
for ac_incdir in ''; do
if test -z "$ac_incdir"; then :
ac_res="none required"
CPPFLAGS="-I/usr/include/ossp $OSSP_UUID_C_INCLUDE $ac_include_search_uuid_h_SAVE"
else
ac_res="-I$ac_incdir"
CPPFLAGS="-I/usr/include/ossp $OSSP_UUID_C_INCLUDE $ac_res $ac_include_search_uuid_h_SAVE"
fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
#include <uuid.h>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
acx_cv_c_include_uuid_h=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if ${acx_cv_c_include_uuid_h+:} false; then :
if test -z "$ac_incdir"; then :
acx_cv_c_include_uuid_h="-I/usr/include/ossp $OSSP_UUID_C_INCLUDE"
else
acx_cv_c_include_uuid_h="-I/usr/include/ossp $OSSP_UUID_C_INCLUDE -I$ac_incdir"
fi
fi
if ${acx_cv_c_include_uuid_h+:} false; then :
break
fi
done
if ${acx_cv_c_include_uuid_h+:} false; then :
break
fi
break
done
CPPFLAGS=$ac_include_search_uuid_h_SAVE
fi
if ${acx_cv_c_include_uuid_h+:} false; then :
acx_temp=$acx_cv_c_include_uuid_h
if test x"$acx_temp" = x; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5
$as_echo "(none required)" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5
$as_echo "$acx_temp" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
if ${acx_cv_c_include_uuid_h+:} false; then :
acx_temp=$acx_cv_c_include_uuid_h
acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'`
OSSP_UUID_C_INCLUDE=$acx_temp
else
have_ossp_uuid_c_bindings=no
fi
# Check whether --with-ossp-uuid-lib was given.
if test "${with_ossp_uuid_lib+set}" = set; then :
withval=$with_ossp_uuid_lib; OSSP_UUID_C_LIB="-L$with_ossp_uuid_lib"
fi
if test "x$have_ossp_uuid_c_bindings" = xyes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
$as_echo_n "checking for library containing uuid_create... " >&6; }
if ${acx_cv_option_search_uuid_create_c+:} false; then :
$as_echo_n "(cached) " >&6
else
while :; do
acx_option_func_search_save_LIBS="$LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char uuid_create ();
int
main ()
{
return uuid_create ();
;
return 0;
}
_ACEOF
for ac_lib in '' ossp-uuid; do
if test -z "$ac_lib"; then :
ac_res="none required"
LIBS="$OSSP_UUID_C_LIB $acx_option_func_search_save_LIBS"
else
ac_res="-l$ac_lib"
LIBS="$OSSP_UUID_C_LIB $ac_res $acx_option_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
if test x"$ac_res" = x"none required"; then :
acx_cv_option_search_uuid_create_c="$OSSP_UUID_C_LIB "
else
acx_cv_option_search_uuid_create_c="$OSSP_UUID_C_LIB -l$ac_lib "
fi
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${acx_cv_option_search_uuid_create_c+:} false; then :
break
fi
done
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"
if ${acx_cv_option_search_uuid_create_c+:} false; then :
break
fi
break
done
fi
if ${acx_cv_option_search_uuid_create_c+:} false; then :
if test x"$acx_cv_option_search_uuid_create_c" = x; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5
$as_echo "(none required)" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_uuid_create_c" >&5
$as_echo "$acx_cv_option_search_uuid_create_c" >&6; }
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
fi
if ${acx_cv_option_search_uuid_create_c+:} false; then :
else
have_ossp_uuid_c_bindings=no
fi
acx_temp=$acx_cv_option_search_uuid_create_c
acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'`
OSSP_UUID_C_LIB=$acx_temp
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_link="./libtool --mode=link --tag=CC $ac_link"
if test x"$have_ossp_uuid_c_bindings" = xyes; then :
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="${CPPFLAGS+$CPPFLAGS }$OSSP_UUID_C_INCLUDE"
UUID_C_LIB=$OSSP_UUID_C_LIB
for ac_header in uuid.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
if test "x$ac_cv_header_uuid_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_UUID_H 1
_ACEOF
ac_fn_c_check_decl "$LINENO" "uuid_create" "ac_cv_have_decl_uuid_create" "$ac_includes_default
#include <uuid.h>
"
if test "x$ac_cv_have_decl_uuid_create" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_UUID_CREATE $ac_have_decl
_ACEOF
if test $ac_have_decl = 1; then :
ac_fn_c_check_decl "$LINENO" "UUID_MAKE_V5" "ac_cv_have_decl_UUID_MAKE_V5" "$ac_includes_default
#include <uuid.h>
"
if test "x$ac_cv_have_decl_UUID_MAKE_V5" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_UUID_MAKE_V5 $ac_have_decl
_ACEOF
else
have_ossp_uuid_c_bindings=no
fi
else
have_ossp_uuid_c_bindings=no
fi
done
if test x"$have_ossp_uuid_c_bindings" = xno; then :
UUID_C_LIB=
CPPFLAGS=$CPPFLAGS_save
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
$as_echo_n "(cached) " >&6
......@@ -26101,6 +26626,8 @@ done
 
fi
 
fi
fi
 
# ----------------------------------------------------------------------
# Checks for the availability of ANSI-C99 functions
......@@ -28169,9 +28696,6 @@ done
 
# ----------------------------------------------------------------------
# Compile with MPI support
# Sed expression to map a string onto a valid argument string part.
asx_tr_arg="eval sed 'y%*+%pp%;s%[^-$as_cr_alnum]%-%g'"
# Check whether --enable-mpi was given.
if test "${enable_mpi+set}" = set; then :
enableval=$enable_mpi; enable_mpi=yes
......@@ -73,14 +73,34 @@ AX_EXECINFO
# Checks for the availability of functions
AC_CHECK_FUNCS([mallinfo])
AC_CHECK_FUNCS([getline])
AC_CHECK_LIB([uuid],[uuid_generate],
[AC_CHECK_DECLS([uuid_generate],
[UUID_C_LIB=-luuid],,[AC_INCLUDES_DEFAULT
ACX_C_PACKAGE([util-linux-uuid],[uuid/uuid.h],,,[],
[uuid_generate],[[uuid]],,,[])
AS_IF([test x"$have_util_linux_uuid_c_bindings" = xyes],
[CPPFLAGS="${CPPFLAGS+$CPPFLAGS }$UTIL_LINUX_UUID_C_INCLUDE"
UUID_C_LIB=$UTIL_LINUX_UUID_C_LIB],
[ACX_C_PACKAGE([ossp-uuid],[uuid.h],,[-I/usr/include/ossp],[],
[uuid_create],[[ossp-uuid]],,,[])
AS_IF([test x"$have_ossp_uuid_c_bindings" = xyes],
[CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="${CPPFLAGS+$CPPFLAGS }$OSSP_UUID_C_INCLUDE"
UUID_C_LIB=$OSSP_UUID_C_LIB
AC_CHECK_HEADERS([uuid.h],
[AC_CHECK_DECLS([uuid_create],
[AC_CHECK_DECLS([UUID_MAKE_V5],,,[AC_INCLUDES_DEFAULT
@%:@include <uuid.h>])],[have_ossp_uuid_c_bindings=no],
[AC_INCLUDES_DEFAULT
@%:@include <uuid.h>])],[have_ossp_uuid_c_bindings=no])
AS_IF([test x"$have_ossp_uuid_c_bindings" = xno],
[UUID_C_LIB=
CPPFLAGS=$CPPFLAGS_save])],
[AC_CHECK_LIB([uuid],[uuid_generate],
[AC_CHECK_DECLS([uuid_generate],
[UUID_C_LIB=-luuid],,[AC_INCLUDES_DEFAULT
@%:@include <uuid/uuid.h>])],
[AC_CHECK_FUNCS([uuid_create],
[AC_CHECK_DECLS([uuid_create],
[UUID_C_LIB=""],,[AC_INCLUDES_DEFAULT
@%:@include <uuid.h>])])])
[AC_CHECK_FUNCS([uuid_create],
[AC_CHECK_DECLS([uuid_create],
[UUID_C_LIB=""],,[AC_INCLUDES_DEFAULT