summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-07-31 10:38:21 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-07-31 10:38:21 +0200
commit3773e2905e299e371530727f0f8a9e7ce2e1af3a (patch)
tree3ee2188140703167870416a5ae0f4006e874a531 /configure.ac
parentbfa7d012cffb1b6ef60fba4c8b526ef9c3aaad4f (diff)
Check for both uuid_create() and uuid_generate() to solve a compilation issue on Mac OS X 10.8
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 8 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 160132d..3248224 100644
--- a/configure.ac
+++ b/configure.ac
@@ -617,21 +617,19 @@ 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 ])
- if test "${found_uuid_function}" = "yes";
- then
- AC_CHECK_FUNCS([uuid_generate])
- fi
+ 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
if test "${found_uuid_function}" = "no";