mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[amiwm] Update to 0.22pl2
This notably includes full screen support! Addresses Issue #12
This commit is contained in:
57
configure.ac
57
configure.ac
@@ -1,10 +1,10 @@
|
||||
AC_INIT(diskobject.c)
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([diskobject.c])
|
||||
|
||||
AC_ENABLE(fontsets,
|
||||
[use_fontsets="$enableval"], [use_fontsets=auto])
|
||||
AC_ARG_ENABLE([fontsets],[ --enable-fontsets],[use_fontsets="$enableval"],[use_fontsets=auto])
|
||||
|
||||
AC_PROG_CC
|
||||
AC_ISC_POSIX
|
||||
AC_SEARCH_LIBS([strerror],[cposix])
|
||||
AC_PROG_AWK
|
||||
AC_PROG_YACC
|
||||
AC_PROG_LEX
|
||||
@@ -14,7 +14,15 @@ AC_PROG_RANLIB
|
||||
|
||||
AC_PATH_XTRA
|
||||
|
||||
AC_HEADER_STDC
|
||||
m4_warn([obsolete],
|
||||
[The preprocessor macro `STDC_HEADERS' is obsolete.
|
||||
Except in unusual embedded environments, you can safely include all
|
||||
ISO C90 headers unconditionally.])dnl
|
||||
# Autoupdate added the next two lines to ensure that your configure
|
||||
# script's behavior did not change. They are probably safe to remove.
|
||||
AC_CHECK_INCLUDES_DEFAULT
|
||||
AC_PROG_EGREP
|
||||
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h sys/types.h unistd.h sys/select.h sys/resource.h sys/stat.h termio.h)
|
||||
ac_save_CPPFLAGS="$CPPFLAGS"
|
||||
@@ -29,7 +37,19 @@ AC_TYPE_SIZE_T
|
||||
AC_STRUCT_TM
|
||||
|
||||
AC_FUNC_ALLOCA
|
||||
AC_TYPE_SIGNAL
|
||||
m4_warn([obsolete],
|
||||
[your code may safely assume C89 semantics that RETSIGTYPE is void.
|
||||
Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
|
||||
AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
],
|
||||
[return *(signal (0, 0)) (0) == 1;])],
|
||||
[ac_cv_type_signal=int],
|
||||
[ac_cv_type_signal=void])])
|
||||
AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
|
||||
(`int' or `void').])
|
||||
|
||||
AC_FUNC_WAIT3
|
||||
AC_CHECK_FUNCS(select strdup waitpid)
|
||||
|
||||
@@ -41,13 +61,13 @@ dnl libXt too, so that's what we'll do.
|
||||
AC_MSG_CHECKING([for broken libXmu])
|
||||
old_LIBS="$LIBS"
|
||||
LIBS="$X_LIBS $X_PRE_LIBS -lXext -lXmu -lX11 $X_EXTRA_LIBS $LIBS"
|
||||
AC_TRY_LINK([],[
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[
|
||||
extern void XmuCopyISOLatin1Lowered(char *,char *);
|
||||
char foo[]="FOO";
|
||||
XmuCopyISOLatin1Lowered (foo, foo);
|
||||
], AC_MSG_RESULT([no])
|
||||
XT_LIB_KLUDGE="", AC_MSG_RESULT([yes])
|
||||
XT_LIB_KLUDGE="-lXt")
|
||||
]])],[AC_MSG_RESULT(no)
|
||||
XT_LIB_KLUDGE=""],[AC_MSG_RESULT(yes)
|
||||
XT_LIB_KLUDGE="-lXt"])
|
||||
LIBS="$old_LIBS"
|
||||
AC_SUBST(XT_LIB_KLUDGE)
|
||||
|
||||
@@ -62,17 +82,17 @@ else
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([number of arguments to gettimeofday])
|
||||
AC_TRY_LINK([
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
],[
|
||||
]], [[
|
||||
struct timeval tp;
|
||||
struct timezone tz;
|
||||
gettimeofday(&tp, &tz);
|
||||
], AC_DEFINE(BSD_STYLE_GETTIMEOFDAY,1,[Define this if gettimeofday() takes two arguments.])
|
||||
AC_MSG_RESULT([2]), AC_MSG_RESULT([1]))
|
||||
]])],[AC_DEFINE(BSD_STYLE_GETTIMEOFDAY,1,Define this if gettimeofday() takes two arguments.)
|
||||
AC_MSG_RESULT(2)],[AC_MSG_RESULT(1)])
|
||||
|
||||
AC_CHECK_TYPE(caddr_t, char *)
|
||||
AC_MSG_CHECKING([for XPointer])
|
||||
@@ -97,7 +117,7 @@ else
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([byteorder])
|
||||
AC_TRY_RUN([
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <stdlib.h>
|
||||
int main()
|
||||
{
|
||||
@@ -107,9 +127,10 @@ int main()
|
||||
if(v.i==1) exit(0); else exit(1);
|
||||
return 0;
|
||||
}
|
||||
], AC_DEFINE([LAME_ENDIAN],1,[Define this is your achitecture stores integers backwards in memory])
|
||||
AC_MSG_RESULT([backward]), AC_MSG_RESULT([normal]), AC_MSG_RESULT([no idea]))
|
||||
]])],[AC_DEFINE(LAME_ENDIAN,1,Define this is your achitecture stores integers backwards in memory)
|
||||
AC_MSG_RESULT(backward)],[AC_MSG_RESULT(normal)],[AC_MSG_RESULT(no idea)])
|
||||
|
||||
AC_SUBST(x_includes)
|
||||
AC_SUBST(x_libraries)
|
||||
AC_OUTPUT(Makefile libami/Makefile)
|
||||
AC_CONFIG_FILES([Makefile libami/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user