mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r. (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R. * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R. * lib/stdlib.in.h (qsort_r): Provide declaration if the function does not exist. * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether the function exists. * modules/qsort_r: Add comments.
34 lines
526 B
Plaintext
34 lines
526 B
Plaintext
Description:
|
|
Reentrant sort function with GNU signature
|
|
|
|
Files:
|
|
lib/qsort.c
|
|
lib/qsort_r.c
|
|
m4/qsort_r.m4
|
|
|
|
Depends-on:
|
|
extensions
|
|
stdlib
|
|
|
|
configure.ac:
|
|
gl_FUNC_QSORT_R
|
|
if test $HAVE_QSORT_R = 0; then
|
|
# The function is missing from the system or has an unknown signature.
|
|
AC_LIBOBJ([qsort])
|
|
elif test $REPLACE_QSORT_R = 1; then
|
|
# The function exists, but it has the BSD signature.
|
|
AC_LIBOBJ([qsort_r])
|
|
fi
|
|
gl_STDLIB_MODULE_INDICATOR([qsort_r])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<stdlib.h>
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
Paul Eggert
|