mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Support --enable-static.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
# $Id: Makefile.am,v 1.3 2011-01-03 23:54:51 tcunha Exp $
 | 
			
		||||
# $Id: Makefile.am,v 1.4 2011-01-04 09:43:14 nicm Exp $
 | 
			
		||||
 | 
			
		||||
# Obvious program stuff.
 | 
			
		||||
bin_PROGRAMS = tmux
 | 
			
		||||
@@ -39,6 +39,11 @@ CPPFLAGS += -I. -I- -I/usr/local/include
 | 
			
		||||
endif
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Set flags for static.
 | 
			
		||||
if IS_STATIC
 | 
			
		||||
LDFLAGS+= -static
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Set flags for Solaris.
 | 
			
		||||
if IS_SUNOS
 | 
			
		||||
CPPFLAGS+= -D_XPG4_2 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								configure.ac
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
# $Id: configure.ac,v 1.7 2011-01-03 23:43:35 nicm Exp $
 | 
			
		||||
# $Id: configure.ac,v 1.8 2011-01-04 09:43:14 nicm Exp $
 | 
			
		||||
 | 
			
		||||
# Miscellaneous autofoo bullshit.
 | 
			
		||||
AC_INIT(tmux, 1.5)
 | 
			
		||||
@@ -44,6 +44,14 @@ AC_ARG_ENABLE(
 | 
			
		||||
)
 | 
			
		||||
AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
 | 
			
		||||
 | 
			
		||||
# Is this a static build?
 | 
			
		||||
AC_ARG_ENABLE(
 | 
			
		||||
       static,
 | 
			
		||||
       AC_HELP_STRING(--enable-static, create a static build),
 | 
			
		||||
       [found_static=]
 | 
			
		||||
)
 | 
			
		||||
AM_CONDITIONAL(IS_STATIC, test "x" = xyes)
 | 
			
		||||
 | 
			
		||||
# Is this gcc?
 | 
			
		||||
AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes)
 | 
			
		||||
AC_MSG_CHECKING(for gcc that whines about -I)
 | 
			
		||||
@@ -89,6 +97,9 @@ AC_EGREP_CPP(
 | 
			
		||||
AM_CONDITIONAL(IS_GLIBC, test "x$found_glibc" = xyes)
 | 
			
		||||
AC_MSG_RESULT($found_glibc)
 | 
			
		||||
 | 
			
		||||
# Look for clock_gettime. Must come before event_init.
 | 
			
		||||
AC_CHECK_LIB(rt, clock_gettime)
 | 
			
		||||
 | 
			
		||||
# Look for libevent.
 | 
			
		||||
AC_SEARCH_LIBS(event_init, event, found_libevent=yes, found_libevent=no)
 | 
			
		||||
if test "x$found_libevent" = xno; then
 | 
			
		||||
@@ -107,8 +118,8 @@ if test "x$found_curses" = xno; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Look for networking libraries.
 | 
			
		||||
AC_SEARCH_LIBS([inet_ntoa], [nsl])
 | 
			
		||||
AC_SEARCH_LIBS([socket], [socket])
 | 
			
		||||
AC_SEARCH_LIBS(inet_ntoa, nsl)
 | 
			
		||||
AC_SEARCH_LIBS(socket, socket)
 | 
			
		||||
 | 
			
		||||
# Look for imsg in libutil. compat/imsg.c is linked by Makefile.am if missing.
 | 
			
		||||
AC_SEARCH_LIBS(imsg_init, util, found_imsg_init=yes, found_imsg_init=no)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user