Signed-off-by: Anders Kaseorg <andersk@mit.edu>
AC_INIT([nss_nonlocal], [1.7], [andersk@mit.edu])
+AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PREFIX_DEFAULT([/])
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])
AC_OUTPUT
#ifndef NSSWITCH_INTERNAL_H
#define NSSWITCH_INTERNAL_H
+#include "config.h"
+
+/* glibc/config.h.in */
+#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
+# define internal_function __attribute__ ((regparm (3), stdcall))
+#else
+# define internal_function
+#endif
+
/* glibc/nss/nsswitch.h */
typedef struct service_user service_user;