summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-12-23 21:24:37 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-12-23 21:24:37 +0800
commit469fad86703e8dc8177dc9f1a768571105292344 (patch)
treeb1a9ba02237d1d960b22ef7e2b24e0a7c1f67687 /configure.ac
parent[BUILTIN] Add set +o support (diff)
downloaddash-469fad86703e8dc8177dc9f1a768571105292344.tar.gz
dash-469fad86703e8dc8177dc9f1a768571105292344.zip
[ARITH] If imaxdiv() isn't available, use / and % operators
Although in posix, imaxdiv() isn't implemented on Debian/alpha, causing
dash to fail to build.  So use / and % operators if imaxdiv() isn't
available.

 http://bugs.debian.org/456398

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ccc4ac1..4d739c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,8 +33,9 @@ dnl Checks for libraries.
 dnl Checks for header files.
 
 dnl Checks for library functions.
-AC_CHECK_FUNCS(bsearch getpwnam getrlimit isalpha killpg mempcpy sigsetmask \
-	       stpcpy strchrnul strsignal strtod strtoimax strtoumax sysconf)
+AC_CHECK_FUNCS(bsearch getpwnam getrlimit imaxdiv isalpha killpg mempcpy \
+	       sigsetmask stpcpy strchrnul strsignal strtod strtoimax \
+	       strtoumax sysconf)
 
 if test "$enable_fnmatch" = yes; then
 	use_fnmatch=