diff options
author | Bruno Haible <bruno@clisp.org> | 2009-01-18 12:40:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-01-18 12:40:22 +0100 |
commit | 9d33c622ce10de9c68fdd84cb3b77c5b0a75fe02 (patch) | |
tree | 48faed02fc90ddf0e8f6a1af42aaf5f6da94d6ca /m4/alphasort.m4 | |
parent | 3806f4f65ae6cb6106c82397a4ebba739336175f (diff) | |
download | gnulib-9d33c622ce10de9c68fdd84cb3b77c5b0a75fe02.tar.gz |
New module 'alphasort'.
Diffstat (limited to 'm4/alphasort.m4')
-rw-r--r-- | m4/alphasort.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/alphasort.m4 b/m4/alphasort.m4 new file mode 100644 index 0000000000..149129d4f8 --- /dev/null +++ b/m4/alphasort.m4 @@ -0,0 +1,23 @@ +# alphasort.m4 serial 1 +dnl Copyright (C) 2009 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_ALPHASORT], +[ + AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) + + dnl Persuade glibc and Solaris <dirent.h> to declare alphasort(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + AC_CHECK_FUNCS([alphasort]) + if test $ac_cv_func_alphasort = no; then + HAVE_ALPHASORT=0 + AC_LIBOBJ([alphasort]) + gl_PREREQ_ALPHASORT + fi +]) + +# Prerequisites of lib/alphasort.c. +AC_DEFUN([gl_PREREQ_ALPHASORT], [:]) |