Make indentation better.

This commit is contained in:
Nicholas Marriott 2010-12-31 22:31:45 +00:00
parent b066ad0fd8
commit d5a63c21b4

View File

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.2 2010-12-31 22:18:35 nicm Exp $ # $Id: configure.ac,v 1.3 2010-12-31 22:31:45 nicm Exp $
# Miscellaneous autofoo bullshit. # Miscellaneous autofoo bullshit.
AC_INIT(tmux, 1.5) AC_INIT(tmux, 1.5)
@ -14,7 +14,8 @@ AM_PROG_CC_C_O
AC_PROG_INSTALL AC_PROG_INSTALL
# Check for various headers. Alternatives included from compat.h. # Check for various headers. Alternatives included from compat.h.
AC_CHECK_HEADERS([ \ AC_CHECK_HEADERS(
[ \
bitstring.h \ bitstring.h \
curses.h \ curses.h \
dirent.h \ dirent.h \
@ -31,36 +32,45 @@ AC_CHECK_HEADERS([ \
sys/tree.h \ sys/tree.h \
term.h \ term.h \
util.h \ util.h \
]) ]
)
# Is this a debug build? # Is this a debug build?
found_debug=yes found_debug=yes
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(
debug,
AC_HELP_STRING(--enable-debug, create a debug build), AC_HELP_STRING(--enable-debug, create a debug build),
found_debug=$enable_debug) found_debug=$enable_debug
)
AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes) AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
# Is this gcc? # Is this gcc?
AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes) AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes)
AC_MSG_CHECKING(for gcc that whines about -I) AC_MSG_CHECKING(for gcc that whines about -I)
AC_EGREP_CPP(yes, [ AC_EGREP_CPP(
yes,
[
#if __GNUC__ > 3 #if __GNUC__ > 3
yes yes
#endif #endif
], ],
found_gcc4=yes, found_gcc4=yes,
found_gcc4=no) found_gcc4=no
)
AM_CONDITIONAL(IS_GCC4, test "x$found_gcc4" = xyes) AM_CONDITIONAL(IS_GCC4, test "x$found_gcc4" = xyes)
AC_MSG_RESULT($found_gcc4) AC_MSG_RESULT($found_gcc4)
# Is this Sun CC? # Is this Sun CC?
AC_EGREP_CPP(yes, [ AC_EGREP_CPP(
yes,
[
#ifdef __SUNPRO_C #ifdef __SUNPRO_C
yes yes
#endif #endif
], ],
found_suncc=yes, found_suncc=yes,
found_suncc=no) found_suncc=no
)
AM_CONDITIONAL(IS_SUNCC, test "x$found_suncc" = xyes) AM_CONDITIONAL(IS_SUNCC, test "x$found_suncc" = xyes)
# Is this glibc? # Is this glibc?
@ -193,15 +203,18 @@ fi
AM_CONDITIONAL(NO_GETOPT, [test "x$found_getopt" = xno]) AM_CONDITIONAL(NO_GETOPT, [test "x$found_getopt" = xno])
# Check for some functions that are replaced or omitted. # Check for some functions that are replaced or omitted.
AC_CHECK_FUNCS([ \ AC_CHECK_FUNCS(
[ \
bzero \ bzero \
setproctitle \ setproctitle \
sysconf \ sysconf \
]) ]
)
# Check for BSD-style integer types. # Check for BSD-style integer types.
AC_MSG_CHECKING(for BSD-style unsigned types) AC_MSG_CHECKING(for BSD-style unsigned types)
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE(
[
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_STDINT_H #ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
@ -212,29 +225,36 @@ AC_COMPILE_IFELSE([
u_int8_t u8; u_int16_t u16; u_int32_t u32; u_int64_t u64; } u_int8_t u8; u_int16_t u16; u_int32_t u32; u_int64_t u64; }
], ],
[AC_DEFINE(HAVE_BSD_TYPES) AC_MSG_RESULT(yes)], [AC_DEFINE(HAVE_BSD_TYPES) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no)) AC_MSG_RESULT(no)
)
# Look for a suitable queue.h. # Look for a suitable queue.h.
AC_CHECK_DECL(TAILQ_PREV, AC_CHECK_DECL(
TAILQ_PREV,
found_queue_h=yes, found_queue_h=yes,
found_queue_h=no, found_queue_h=no,
[#include <sys/queue.h>]) [#include <sys/queue.h>]
AC_CHECK_DECL(TAILQ_REPLACE, )
AC_CHECK_DECL(
TAILQ_REPLACE,
, ,
found_queue_h=no, found_queue_h=no,
[#include <sys/queue.h>]) [#include <sys/queue.h>]
)
if test "x$found_queue_h" = xyes; then if test "x$found_queue_h" = xyes; then
AC_DEFINE(HAVE_QUEUE_H) AC_DEFINE(HAVE_QUEUE_H)
fi fi
# Look for __progname. # Look for __progname.
AC_MSG_CHECKING(for __progname) AC_MSG_CHECKING(for __progname)
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE(
[
extern char *__progname; extern char *__progname;
int main(void) { const char *cp = __progname; } int main(void) { const char *cp = __progname; }
], ],
[AC_DEFINE(HAVE___PROGNAME) AC_MSG_RESULT(yes)], [AC_DEFINE(HAVE___PROGNAME) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no)) AC_MSG_RESULT(no)
)
# Look for fcntl(F_CLOSEM). # Look for fcntl(F_CLOSEM).
AC_CHECK_DECL(F_CLOSEM, AC_CHECK_DECL(F_CLOSEM,