BUILT_SOURCES = $(ioctlent_h) native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h .version
CLEANFILES = $(ioctlent_h) native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h
+DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h
# defines mpers_source_files
include mpers.am
case "$arch" in
[$2])
+ AH_TEMPLATE([HAVE_GNU_STUBS_32_H],
+ [Define to 1 if you have the <gnu/stubs-32.h> header file.])
+ AH_TEMPLATE([HAVE_GNU_STUBS_X32_H],
+ [Define to 1 if you have the <gnu/stubs-x32.h> header file.])
+ pushdef([gnu_stubs], [gnu/stubs-][m4_substr([$1], 1)][.h])
+ AC_CHECK_HEADERS([gnu_stubs], [IFLAG=],
+ [mkdir -p gnu
+ : > gnu_stubs
+ AC_MSG_NOTICE([Created empty gnu_stubs])
+ IFLAG=-I.])
+ popdef([gnu_stubs])
saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS CFLAG"
+ CFLAGS="$CFLAGS CFLAG $IFLAG"
AC_CACHE_CHECK([for CFLAG compile support], [st_cv_cc],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
int main(){return 0;}]])],