Check for both uuid_create() and uuid_generate() to solve a compilation issue on Mac OS X 10.8
This commit is contained in:
parent
bfa7d012cf
commit
3773e2905e
1 changed files with 8 additions and 10 deletions
12
configure.ac
12
configure.ac
|
@ -617,22 +617,20 @@ AC_CHECK_FUNCS([uuidgen],,[found_uuid_function=no])
|
|||
if test "${found_uuid_function}" = "no";
|
||||
then
|
||||
found_uuid_function=yes
|
||||
AC_SEARCH_LIBS(uuid_create, uuid, , [found_uuid_function=no])
|
||||
if test "${found_uuid_function}" = "yes";
|
||||
then
|
||||
AC_CHECK_FUNCS([uuid_create])
|
||||
fi
|
||||
AC_SEARCH_LIBS(uuid_generate, uuid, , [ found_uuid_function=no ])
|
||||
fi
|
||||
|
||||
if test "${found_uuid_function}" = "no";
|
||||
then
|
||||
found_uuid_function=yes
|
||||
AC_SEARCH_LIBS(uuid_generate, uuid, , [ found_uuid_function=no ])
|
||||
AC_SEARCH_LIBS(uuid_create, uuid, , [found_uuid_function=no])
|
||||
fi
|
||||
|
||||
if test "${found_uuid_function}" = "yes";
|
||||
then
|
||||
AC_CHECK_FUNCS([uuid_create])
|
||||
AC_CHECK_FUNCS([uuid_generate])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "${found_uuid_function}" = "no";
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue