]> andersk Git - nss_nonlocal.git/blobdiff - configure.ac
glibc uses regparms for internal functions on i386.
[nss_nonlocal.git] / configure.ac
index 241f2c4cd266d94dd637befb6fe23c5d5a35b59e..5940f39cd4548e1b24133ce1794f8cfcfeb4d4fc 100644 (file)
@@ -1,8 +1,19 @@
 AC_INIT([nss_nonlocal], [1.7], [andersk@mit.edu])
+AC_CANONICAL_TARGET
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_PREFIX_DEFAULT([/])
+AC_DISABLE_STATIC
 AC_PROG_CC
 AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+
+case "$target_cpu" in
+    i386 | i486 | i586 | i686 | i786)
+       AC_DEFINE([USE_REGPARMS], [],
+                 [Define if the regparm attribute shall be used for local functions (gcc on ix86 only).])
+       ;;
+esac
 
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile])
This page took 0.264193 seconds and 4 git commands to generate.