summaryrefslogtreecommitdiff
path: root/m4/alphasort.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/alphasort.m4')
-rw-r--r--m4/alphasort.m423
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], [:])