1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(lxdream, 0.8.1)
6 AM_CONFIG_HEADER(config.h)
15 PKG_CHECK_MODULES(PACKAGE,
19 AC_CHECK_LIB(z, uncompress, [], [
20 echo "Zlib (libz.so) could not be found, but is required."
22 AC_CHECK_LIB(GL, glXQueryVersion, [], [
23 echo "The OpenGL library (libGL.so) could not be found, but is required."
25 AC_CHECK_HEADER([GL/gl.h], [], [
26 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
29 dnl Check for a supported cpu target for translation purposes
31 i386|i486|i586|i686|x86_64)
34 echo "Warning: No translator available for $host. Building emulation core only";;
36 AM_CONDITIONAL(BUILD_SH4X86, [test "$TRANSLATOR"="x86"])
38 dnl Check for cdrom device support
39 AC_CHECK_HEADER([linux/cdrom.h], [HAVE_LINUX_CDROM_H=yes], [
40 echo "Linux CDROM support not found, building without it."] )
41 AM_CONDITIONAL(CDROM_LINUX, [test "$HAVE_LINUX_CDROM_H" = "yes"])
43 dnl Check for cross-compiler availability
44 AC_PATH_PROG(SHCC, [sh-elf-gcc])
45 AC_PATH_PROG(SHLD, [sh-elf-ld])
46 AC_PATH_PROG(SHOBJCOPY, [sh-elf-objcopy])
47 AC_PATH_PROG(ARMCC, [arm-elf-gcc])
48 AC_PATH_PROG(ARMLD, [arm-elf-ld])
49 AC_PATH_PROG(ARMOBJCOPY, [arm-elf-objcopy])
51 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
53 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
57 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
59 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
63 AM_CONDITIONAL(BUILD_SYSTEST, [test "$BUILD_SH" = "yes"])
64 AM_CONDITIONAL(BUILD_ARMTEST, [test "$BUILD_ARM" = "yes"])
66 GETTEXT_PACKAGE=lxdream
67 AC_SUBST(GETTEXT_PACKAGE)
68 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
69 AC_SUBST(PACKAGE_CFLAGS)
70 AC_SUBST(PACKAGE_LIBS)
73 dnl Add the languages which your application supports here.
74 ALL_LINGUAS="de pt_BR"
.