File: acinclude.m4

package info (click to toggle)
apple2 0.7.4-5
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k, lenny
  • size: 984 kB
  • ctags: 1,067
  • sloc: ansic: 6,694; asm: 4,018; sh: 331; makefile: 102
file content (12 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
dnl This was cribbed from GNU libc (notice the symbol choices), but highly 
dnl simplified since we can assume linking is working.
dnl A2_ASM_UNDERSCORES
AC_DEFUN(A2_ASM_UNDERSCORES,[
AC_CACHE_CHECK(for _ prefix on C symbol names, a2_cv_asm_underscores,
		   [AC_TRY_LINK([asm ("_glibc_foobar:");], [glibc_foobar ();],
			        a2_cv_asm_underscores=yes,
			        a2_cv_asm_underscores=no)])
if test $a2_cv_asm_underscores = no; then
  AC_DEFINE(NO_UNDERSCORES)
fi
])