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,53 +14,63 @@ 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 \ [ \
curses.h \ bitstring.h \
dirent.h \ curses.h \
fcntl.h \ dirent.h \
inttypes.h \ fcntl.h \
libutil.h \ inttypes.h \
ncurses.h \ libutil.h \
ndir.h \ ncurses.h \
paths.h \ ndir.h \
pty.h \ paths.h \
stdint.h \ pty.h \
sys/dir.h \ stdint.h \
sys/ndir.h \ sys/dir.h \
sys/tree.h \ sys/ndir.h \
term.h \ sys/tree.h \
util.h \ term.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(
AC_HELP_STRING(--enable-debug, create a debug build), debug,
found_debug=$enable_debug) AC_HELP_STRING(--enable-debug, create a debug build),
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(
#if __GNUC__ > 3 yes,
yes [
#endif #if __GNUC__ > 3
yes
#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(
#ifdef __SUNPRO_C yes,
yes [
#endif #ifdef __SUNPRO_C
yes
#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,48 +203,58 @@ 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 \ [ \
setproctitle \ bzero \
sysconf \ setproctitle \
]) 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> [
#ifdef HAVE_STDINT_H #include <sys/types.h>
#include <stdint.h> #ifdef HAVE_STDINT_H
#else #include <stdint.h>
#include <inttypes.h> #else
#endif #include <inttypes.h>
int main(void) { #endif
u_int8_t u8; u_int16_t u16; u_int32_t u32; u_int64_t u64; } int main(void) {
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; [
int main(void) { const char *cp = __progname; } extern char *__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,
@ -263,34 +283,34 @@ fi
AC_MSG_CHECKING(platform) AC_MSG_CHECKING(platform)
case "$host_os" in case "$host_os" in
*darwin*) *darwin*)
AC_MSG_RESULT(darwin) AC_MSG_RESULT(darwin)
AC_DEFINE(BROKEN_CMSG_FIRSTHDR) AC_DEFINE(BROKEN_CMSG_FIRSTHDR)
PLATFORM=darwin PLATFORM=darwin
;; ;;
*linux*) *linux*)
AC_MSG_RESULT(linux) AC_MSG_RESULT(linux)
PLATFORM=linux PLATFORM=linux
;; ;;
*freebsd*|*dragonfly*) *freebsd*|*dragonfly*)
AC_MSG_RESULT(freebsd) AC_MSG_RESULT(freebsd)
PLATFORM=freebsd PLATFORM=freebsd
;; ;;
*netbsd*) *netbsd*)
AC_MSG_RESULT(netbsd) AC_MSG_RESULT(netbsd)
PLATFORM=netbsd PLATFORM=netbsd
;; ;;
*openbsd*) *openbsd*)
AC_MSG_RESULT(openbsd) AC_MSG_RESULT(openbsd)
PLATFORM=openbsd PLATFORM=openbsd
;; ;;
*sunos*) *sunos*)
AC_MSG_RESULT(sunos) AC_MSG_RESULT(sunos)
PLATFORM=sunos PLATFORM=sunos
;; ;;
*) *)
AC_MSG_RESULT(unknown) AC_MSG_RESULT(unknown)
PLATFORM=unknown PLATFORM=unknown
;; ;;
esac esac
AC_SUBST(PLATFORM) AC_SUBST(PLATFORM)
AM_CONDITIONAL(IS_DARWIN, test "x$PLATFORM" = xdarwin) AM_CONDITIONAL(IS_DARWIN, test "x$PLATFORM" = xdarwin)