-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-32399: Starting with AIX6.1 there is support in libc.a for uuid (RFC4122) #4974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cb89ed6
e49eef0
a471c96
93101c8
62d142d
938ce02
7740fc6
c933229
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add AIX uuid library support for RFC4122 using uuid_create() in libc.a |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9125,7 +9125,7 @@ then | |
LDCXXSHARED='$(CXX) -shared' | ||
else | ||
LDSHARED='$(CC) -b' | ||
LDCXXSHARED='$(CXX) -shared' | ||
LDCXXSHARED='$(CXX) -b' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't look related. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note those lines originate from #2519. Perhaps @datalogics-robb can comment on why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I looked at #2519 and it looks like the changes in configure were editted manually, rather than generated from configure.ac (my two cents). If the line is suppossed to be with -shared, then configure.ac needs to be fixed. I do not know HPUX, so cannot help. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I've been AFK for a week, but yes this change looks good. -shared is a gcc/g++ flag and should definitely not be in a non-gcc clause. |
||
fi ;; | ||
Darwin/1.3*) | ||
LDSHARED='$(CC) -bundle' | ||
|
@@ -9504,6 +9504,21 @@ _ACEOF | |
fi | ||
# Dynamic linking for HP-UX | ||
|
||
# checks for uuid.h location | ||
for ac_header in uuid/uuid.h uuid.h | ||
do : | ||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
_ACEOF | ||
|
||
fi | ||
|
||
done | ||
|
||
|
||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 | ||
$as_echo_n "checking for uuid_generate_time_safe... " >&6; } | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
|
@@ -9534,6 +9549,37 @@ $as_echo "no" >&6; } | |
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
|
||
# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC4122 - uuid support on AIX" >&5 | ||
$as_echo_n "checking for RFC4122 - uuid support on AIX... " >&6; } | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
#include <uuid.h> | ||
int | ||
main () | ||
{ | ||
|
||
#ifndef uuid_create | ||
void *x = uuid_create | ||
#endif | ||
|
||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
|
||
$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h | ||
|
||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
|
||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
|
||
# 'Real Time' functions on Solaris | ||
# posix4 on Solaris 2.6 | ||
# pthread (first!) on Linux | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a comment that this is AIX-specific?