Wed Mar 3 15:50:17 2004 Michael Jennings (mej)
Ported over the autogen.sh changes from LibAST and fixed configure.in. SVN revision: 9219
This commit is contained in:
parent
e8d4086a4b
commit
ff39313277
|
@ -5186,3 +5186,7 @@ Tue Mar 2 10:56:20 2004 Michael Jennings (mej)
|
|||
|
||||
New SRPM.
|
||||
----------------------------------------------------------------------
|
||||
Wed Mar 3 15:50:17 2004 Michael Jennings (mej)
|
||||
|
||||
Ported over the autogen.sh changes from LibAST and fixed configure.in.
|
||||
----------------------------------------------------------------------
|
||||
|
|
373
acconfig.h
373
acconfig.h
|
@ -1,373 +0,0 @@
|
|||
/* acconfig.h
|
||||
This file is in the public domain.
|
||||
|
||||
Descriptive text for the C preprocessor macros that
|
||||
the distributed Autoconf macros can define.
|
||||
No software package will use all of them; autoheader copies the ones
|
||||
your configure.in uses into your configuration header file templates.
|
||||
|
||||
The entries are in sort -df order: alphabetical, case insensitive,
|
||||
ignoring punctuation (such as underscores). Although this order
|
||||
can split up related entries, it makes it easier to check whether
|
||||
a given entry is in the file.
|
||||
|
||||
Leave the following blank line there!! Autoheader needs it. */
|
||||
|
||||
|
||||
/* Define if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
#undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define if using alloca.c. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define if type char is unsigned and you are not using gcc. */
|
||||
#ifndef __CHAR_UNSIGNED__
|
||||
#undef __CHAR_UNSIGNED__
|
||||
#endif
|
||||
|
||||
/* Define if the closedir function returns void instead of int. */
|
||||
#undef CLOSEDIR_VOID
|
||||
|
||||
/* Define to empty if the keyword does not work. */
|
||||
#undef const
|
||||
|
||||
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
|
||||
This function is required for alloca.c support on those systems. */
|
||||
#undef CRAY_STACKSEG_END
|
||||
|
||||
/* Define for DGUX with <sys/dg_sys_info.h>. */
|
||||
#undef DGUX
|
||||
|
||||
/* Define if you have <dirent.h>. */
|
||||
#undef DIRENT
|
||||
|
||||
/* Define to the type of elements in the array set by `getgroups'.
|
||||
Usually this is either `int' or `gid_t'. */
|
||||
#undef GETGROUPS_T
|
||||
|
||||
/* Define if the `getloadavg' function needs to be run setuid or setgid. */
|
||||
#undef GETLOADAVG_PRIVILEGED
|
||||
|
||||
/* Define if the `getpgrp' function takes no argument. */
|
||||
#undef GETPGRP_VOID
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef gid_t
|
||||
|
||||
/* Define if you have alloca, as a function or macro. */
|
||||
#undef HAVE_ALLOCA
|
||||
|
||||
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define if you don't have vprintf but do have _doprnt. */
|
||||
#undef HAVE_DOPRNT
|
||||
|
||||
/* Define if your system has a working fnmatch function. */
|
||||
#undef HAVE_FNMATCH
|
||||
|
||||
/* Define if your system has its own `getloadavg' function. */
|
||||
#undef HAVE_GETLOADAVG
|
||||
|
||||
/* Define if you have the getmntent function. */
|
||||
#undef HAVE_GETMNTENT
|
||||
|
||||
/* Define if the `long double' type works. */
|
||||
#undef HAVE_LONG_DOUBLE
|
||||
|
||||
/* Define if you support file names longer than 14 characters. */
|
||||
#undef HAVE_LONG_FILE_NAMES
|
||||
|
||||
/* Define if you have a working `mmap' system call. */
|
||||
#undef HAVE_MMAP
|
||||
|
||||
/* Define if system calls automatically restart after interruption
|
||||
by a signal. */
|
||||
#undef HAVE_RESTARTABLE_SYSCALLS
|
||||
|
||||
/* Define if your struct stat has st_blksize. */
|
||||
#undef HAVE_ST_BLKSIZE
|
||||
|
||||
/* Define if your struct stat has st_blocks. */
|
||||
#undef HAVE_ST_BLOCKS
|
||||
|
||||
/* Define if you have the strcoll function and it is properly defined. */
|
||||
#undef HAVE_STRCOLL
|
||||
|
||||
/* Define if your struct stat has st_rdev. */
|
||||
#undef HAVE_ST_RDEV
|
||||
|
||||
/* Define if you have the strftime function. */
|
||||
#undef HAVE_STRFTIME
|
||||
|
||||
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
|
||||
/* Define if your struct tm has tm_zone. */
|
||||
#undef HAVE_TM_ZONE
|
||||
|
||||
/* Define if you don't have tm_zone but do have the external array
|
||||
tzname. */
|
||||
#undef HAVE_TZNAME
|
||||
|
||||
/* Define if you have <unistd.h>. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define if utime(file, NULL) sets file's timestamp to the present. */
|
||||
#undef HAVE_UTIME_NULL
|
||||
|
||||
/* Define if you have <vfork.h>. */
|
||||
#undef HAVE_VFORK_H
|
||||
|
||||
/* Define if you have the vprintf function. */
|
||||
#undef HAVE_VPRINTF
|
||||
|
||||
/* Define if you have the wait3 system call. */
|
||||
#undef HAVE_WAIT3
|
||||
|
||||
/* Define as __inline if that's what the C compiler calls it. */
|
||||
#undef inline
|
||||
|
||||
/* Define if int is 16 bits instead of 32. */
|
||||
#undef INT_16_BITS
|
||||
|
||||
/* Define if long int is 64 bits. */
|
||||
#undef LONG_64_BITS
|
||||
|
||||
/* Define if major, minor, and makedev are declared in <mkdev.h>. */
|
||||
#undef MAJOR_IN_MKDEV
|
||||
|
||||
/* Define if major, minor, and makedev are declared in <sysmacros.h>. */
|
||||
#undef MAJOR_IN_SYSMACROS
|
||||
|
||||
/* Define if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef mode_t
|
||||
|
||||
/* Define if you don't have <dirent.h>, but have <ndir.h>. */
|
||||
#undef NDIR
|
||||
|
||||
/* Define if you have <memory.h>, and <string.h> doesn't declare the
|
||||
mem* functions. */
|
||||
#undef NEED_MEMORY_H
|
||||
|
||||
/* Define if your struct nlist has an n_un member. */
|
||||
#undef NLIST_NAME_UNION
|
||||
|
||||
/* Define if you have <nlist.h>. */
|
||||
#undef NLIST_STRUCT
|
||||
|
||||
/* Define if your C compiler doesn't accept -c and -o together. */
|
||||
#undef NO_MINUS_C_MINUS_O
|
||||
|
||||
/* Define to `long' if <sys/types.h> doesn't define. */
|
||||
#undef off_t
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef pid_t
|
||||
|
||||
/* Define if the system does not provide POSIX.1 features except
|
||||
with this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define if you need to in order for stat and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Define as the return type of signal handlers (int or void). */
|
||||
#undef RETSIGTYPE
|
||||
|
||||
/* Define if the `setpgrp' function takes no argument. */
|
||||
#undef SETPGRP_VOID
|
||||
|
||||
/* Define if the setvbuf function takes the buffering type as its second
|
||||
argument and the buffer pointer as the third, as on System V
|
||||
before release 3. */
|
||||
#undef SETVBUF_REVERSED
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> doesn't define. */
|
||||
#undef size_t
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at run-time.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown
|
||||
*/
|
||||
#undef STACK_DIRECTION
|
||||
|
||||
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
#undef STAT_MACROS_BROKEN
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define on System V Release 4. */
|
||||
#undef SVR4
|
||||
|
||||
/* Define if you don't have <dirent.h>, but have <sys/dir.h>. */
|
||||
#undef SYSDIR
|
||||
|
||||
/* Define if you don't have <dirent.h>, but have <sys/ndir.h>. */
|
||||
#undef SYSNDIR
|
||||
|
||||
/* Define if `sys_siglist' is declared by <signal.h>. */
|
||||
#undef SYS_SIGLIST_DECLARED
|
||||
|
||||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define if your <sys/time.h> declares struct tm. */
|
||||
#undef TM_IN_SYS_TIME
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef uid_t
|
||||
|
||||
/* Define for Encore UMAX. */
|
||||
#undef UMAX
|
||||
|
||||
/* Define for Encore UMAX 4.3 that has <inq_status/cpustats.h>
|
||||
instead of <sys/cpustats.h>. */
|
||||
#undef UMAX4_3
|
||||
|
||||
/* Define if you do not have <strings.h>, index, bzero, etc.. */
|
||||
#undef USG
|
||||
|
||||
/* Define vfork as fork if vfork does not work. */
|
||||
#undef vfork
|
||||
|
||||
/* Define if the closedir function returns void instead of int. */
|
||||
#undef VOID_CLOSEDIR
|
||||
|
||||
/* Define if your processor stores words with the most significant
|
||||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||
#undef WORDS_BIGENDIAN
|
||||
|
||||
/* Define if the X Window System is missing or not being used. */
|
||||
#undef X_DISPLAY_MISSING
|
||||
|
||||
/* Define if lex declares yytext as a char * by default, not a char[]. */
|
||||
#undef YYTEXT_POINTER
|
||||
|
||||
/* Package name */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Version number */
|
||||
#undef VERSION
|
||||
|
||||
/* Do we want malloc debugging? */
|
||||
#undef WITH_DMALLOC
|
||||
|
||||
/* Linux xdm hack for higher kernel revs */
|
||||
#undef NEED_LINUX_HACK
|
||||
|
||||
/* Do we need our own nanosleep()? */
|
||||
#undef HAVE_NANOSLEEP
|
||||
|
||||
/* Is our snprintf() implementation buggy? */
|
||||
#undef HAVE_SNPRINTF_BUG
|
||||
|
||||
/* Debugging level */
|
||||
#undef DEBUG
|
||||
|
||||
/* Stack tracing tools */
|
||||
#undef NO_STACK_TRACE
|
||||
#undef DBX
|
||||
#undef GDB
|
||||
#undef GDB_CMD_FILE
|
||||
#undef PSTACK
|
||||
|
||||
/* *BSD utmp stuff */
|
||||
#undef HAVE_LOGIN
|
||||
#undef HAVE_LOGOUT
|
||||
|
||||
/* Do we have the X shape extension? */
|
||||
#undef HAVE_X_SHAPE_EXT
|
||||
|
||||
/* Support for various features */
|
||||
#undef HAVE_DEV_PTC
|
||||
#undef HAVE_DEV_PTMX
|
||||
#undef HAVE_SCO_PTYS
|
||||
#undef PIXMAP_SUPPORT
|
||||
#undef PIXMAP_OFFSET
|
||||
#undef BACKING_STORE
|
||||
#undef FORCE_BACKSPACE
|
||||
#undef FORCE_DELETE
|
||||
#undef IMLIB_TRANS
|
||||
#undef KS_DELETE
|
||||
#undef NO_DELETE_KEY
|
||||
#undef X_LOCALE
|
||||
#undef NO_XLOCALE
|
||||
#undef UTMP_SUPPORT
|
||||
#undef AUTO_ENCODING
|
||||
#undef MULTI_CHARSET
|
||||
#undef USE_XIM
|
||||
#undef USE_X11R6_XIM
|
||||
#undef NO_XLOCALE
|
||||
#undef GREEK_SUPPORT
|
||||
#undef CONFIG_SEARCH_PATH
|
||||
#undef BUILD_DATE
|
||||
#undef AUTHORS
|
||||
#undef MFONT0
|
||||
#undef MFONT1
|
||||
#undef MFONT2
|
||||
#undef MFONT3
|
||||
#undef MFONT4
|
||||
#undef FONT0
|
||||
#undef FONT1
|
||||
#undef FONT2
|
||||
#undef FONT3
|
||||
#undef FONT4
|
||||
#undef DEF_FONT_IDX
|
||||
#undef MULTICHAR_ENCODING
|
||||
#undef IOTRACE
|
||||
#undef PTY_GRP_NAME
|
||||
#undef ENABLE_PROFILE
|
||||
#undef KS_HOME
|
||||
#undef KS_END
|
||||
#undef CONFIG_BUFF
|
||||
#undef PKGDATADIR
|
||||
#undef HAVE_LIBIMLIB2
|
||||
#undef HAVE_MMX
|
||||
#undef HAVE_LIBAST
|
||||
#undef LIBAST_X11_SUPPORT
|
||||
#undef LIBAST_IMLIB2_SUPPORT
|
||||
#undef LIBAST_MMX_SUPPORT
|
||||
#undef ACTIONS_IDENT
|
||||
#undef BUTTONS_IDENT
|
||||
#undef COMMAND_IDENT
|
||||
#undef DRAW_IDENT
|
||||
#undef E_IDENT
|
||||
#undef EVENTS_IDENT
|
||||
#undef FONT_IDENT
|
||||
#undef GRKELOT_IDENT
|
||||
#undef MAIN_IDENT
|
||||
#undef MENUS_IDENT
|
||||
#undef MISC_IDENT
|
||||
#undef NETDISP_IDENT
|
||||
#undef OPTIONS_IDENT
|
||||
#undef PIXMAP_IDENT
|
||||
#undef SCREEN_IDENT
|
||||
#undef SCROLLBAR_IDENT
|
||||
#undef STARTUP_IDENT
|
||||
#undef SYSTEM_IDENT
|
||||
#undef TERM_IDENT
|
||||
#undef TIMER_IDENT
|
||||
#undef UTMP_IDENT
|
||||
#undef WINDOWS_IDENT
|
||||
#undef HAVE_SAVED_UIDS
|
||||
#undef MOUSEWHEEL
|
||||
#undef ESCREEN
|
||||
#undef STRICT_ICCCM
|
||||
|
||||
|
||||
/* Leave that blank line there!! Autoheader needs it.
|
||||
If you're adding to this file, keep in mind:
|
||||
The entries are in sort -df order: alphabetical, case insensitive,
|
||||
ignoring punctuation (such as underscores). */
|
79
autogen.sh
79
autogen.sh
|
@ -2,49 +2,60 @@
|
|||
# Run this to generate all the initial makefiles, etc.
|
||||
# $Id$
|
||||
|
||||
broken() {
|
||||
echo
|
||||
echo "You need libtool, autoconf, and automake. Install them"
|
||||
echo "and try again. Get source at ftp://ftp.gnu.org/pub/gnu/"
|
||||
echo "ERROR: $1 not found."
|
||||
exit -1
|
||||
}
|
||||
|
||||
DIE=0
|
||||
|
||||
echo "Generating configuration files for Eterm, please wait...."
|
||||
|
||||
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have autoconf installed to compile Eterm."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
LIBTOOLIZE_CHOICES="$LIBTOOLIZE libtoolize"
|
||||
AUTOHEADER_CHOICES="$AUTOHEADER autoheader213 autoheader-2.13 autoheader"
|
||||
ACLOCAL_CHOICES="$ACLOCAL aclocal14 aclocal-1.4 aclocal"
|
||||
AUTOMAKE_CHOICES="$AUTOMAKE automake14 automake-1.4 automake"
|
||||
AUTOCONF_CHOICES="$AUTOCONF autoconf213 autoconf-2.13 autoconf"
|
||||
|
||||
(libtool --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have libtool installed to compile Eterm."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
for i in $LIBTOOLIZE_CHOICES ; do
|
||||
$i --version </dev/null >/dev/null 2>&1 && LIBTOOLIZE=$i && break
|
||||
done
|
||||
[ "x$LIBTOOLIZE" = "x" ] && broken libtool
|
||||
|
||||
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have automake installed to compile Eterm."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
for i in $AUTOHEADER_CHOICES ; do
|
||||
$i --version </dev/null >/dev/null 2>&1 && AUTOHEADER=$i && break
|
||||
done
|
||||
[ "x$AUTOHEADER" = "x" ] && broken autoconf
|
||||
|
||||
if test "$DIE" -eq 1; then
|
||||
exit 1
|
||||
fi
|
||||
for i in $ACLOCAL_CHOICES ; do
|
||||
$i --version </dev/null >/dev/null 2>&1 && ACLOCAL=$i && break
|
||||
done
|
||||
[ "x$ACLOCAL" = "x" ] && broken automake
|
||||
|
||||
echo " libtoolize -c -f"
|
||||
libtoolize -c -f
|
||||
echo " aclocal -I . $ACLOCAL_FLAGS"
|
||||
aclocal -I . $ACLOCAL_FLAGS
|
||||
echo " autoconf"
|
||||
autoconf
|
||||
echo " autoheader"
|
||||
autoheader
|
||||
echo " automake -a -c"
|
||||
automake -a -c
|
||||
for i in $AUTOMAKE_CHOICES ; do
|
||||
$i --version </dev/null >/dev/null 2>&1 && AUTOMAKE=$i && break
|
||||
done
|
||||
[ "x$AUTOMAKE" = "x" ] && broken automake
|
||||
|
||||
for i in $AUTOCONF_CHOICES ; do
|
||||
$i --version </dev/null >/dev/null 2>&1 && AUTOCONF=$i && break
|
||||
done
|
||||
[ "x$AUTOCONF" = "x" ] && broken autoconf
|
||||
|
||||
# Export them so configure can AC_SUBST() them.
|
||||
export LIBTOOLIZE AUTOHEADER ACLOCAL AUTOMAKE AUTOCONF
|
||||
|
||||
# Run the stuff.
|
||||
(set -x && $LIBTOOLIZE -c -f)
|
||||
(set -x && $AUTOHEADER)
|
||||
(set -x && $ACLOCAL $ACLOCAL_FLAGS)
|
||||
(set -x && $AUTOMAKE -a -c)
|
||||
(set -x && $AUTOCONF)
|
||||
|
||||
# Run configure.
|
||||
./configure "$@"
|
||||
|
||||
if [ -f cvs.motd ]; then
|
||||
|
|
232
configure.in
232
configure.in
|
@ -3,6 +3,18 @@ dnl# $Id$
|
|||
PATH=$PATH:/usr/bin:/bin:/usr/local/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/ucb/bin
|
||||
export PATH
|
||||
|
||||
AC_SUBST(LIBTOOLIZE)
|
||||
AC_SUBST(AUTOHEADER)
|
||||
AC_SUBST(ACLOCAL)
|
||||
AC_SUBST(AUTOMAKE)
|
||||
AC_SUBST(AUTOCONF)
|
||||
|
||||
SAVE_LIBTOOLIZE="$LIBTOOLIZE"
|
||||
SAVE_AUTOHEADER="$AUTOHEADER"
|
||||
SAVE_ACLOCAL="$ACLOCAL"
|
||||
SAVE_AUTOMAKE="$AUTOMAKE"
|
||||
SAVE_AUTOCONF="$AUTOCONF"
|
||||
|
||||
AC_INIT(src/feature.h)
|
||||
AM_INIT_AUTOMAKE(Eterm, 0.9.3)
|
||||
|
||||
|
@ -10,34 +22,40 @@ dnl# Set some basic variables
|
|||
DATE="`date '+%d %B %Y'`"
|
||||
AC_SUBST(DATE)
|
||||
BUILD_DATE="`date`"
|
||||
AC_DEFINE_UNQUOTED(BUILD_DATE, "$BUILD_DATE")
|
||||
AC_DEFINE_UNQUOTED(BUILD_DATE, "$BUILD_DATE", [The date of the build.])
|
||||
AUTHORS="Michael Jennings (mej@eterm.org) "
|
||||
AC_SUBST(AUTHORS)
|
||||
AC_DEFINE_UNQUOTED(AUTHORS, "$AUTHORS")
|
||||
AC_DEFINE_UNQUOTED(AUTHORS, "$AUTHORS", [Authors])
|
||||
|
||||
LIBTOOLIZE="$SAVE_LIBTOOLIZE"
|
||||
AUTOHEADER="$SAVE_AUTOHEADER"
|
||||
ACLOCAL="$SAVE_ACLOCAL"
|
||||
AUTOMAKE="$SAVE_AUTOMAKE"
|
||||
AUTOCONF="$SAVE_AUTOCONF"
|
||||
|
||||
dnl# Find RCS Ident info from source files
|
||||
AC_DEFINE_UNQUOTED(ACTIONS_IDENT, "`grep '$''Id:' $srcdir/src/actions.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(BUTTONS_IDENT, "`grep '$''Id:' $srcdir/src/buttons.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(COMMAND_IDENT, "`grep '$''Id:' $srcdir/src/command.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(DRAW_IDENT, "`grep '$''Id:' $srcdir/src/draw.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(E_IDENT, "`grep '$''Id:' $srcdir/src/e.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(EVENTS_IDENT, "`grep '$''Id:' $srcdir/src/events.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(FONT_IDENT, "`grep '$''Id:' $srcdir/src/font.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(GRKELOT_IDENT, "`grep '$''Id:' $srcdir/src/grkelot.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(MAIN_IDENT, "`grep '$''Id:' $srcdir/src/main.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(MENUS_IDENT, "`grep '$''Id:' $srcdir/src/menus.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(MISC_IDENT, "`grep '$''Id:' $srcdir/src/misc.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(NETDISP_IDENT, "`grep '$''Id:' $srcdir/src/netdisp.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(OPTIONS_IDENT, "`grep '$''Id:' $srcdir/src/options.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(PIXMAP_IDENT, "`grep '$''Id:' $srcdir/src/pixmap.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(SCREEN_IDENT, "`grep '$''Id:' $srcdir/src/screen.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(SCROLLBAR_IDENT, "`grep '$''Id:' $srcdir/src/scrollbar.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(STARTUP_IDENT, "`grep '$''Id:' $srcdir/src/startup.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(SYSTEM_IDENT, "`grep '$''Id:' $srcdir/src/system.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(TERM_IDENT, "`grep '$''Id:' $srcdir/src/term.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(TIMER_IDENT, "`grep '$''Id:' $srcdir/src/timer.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(UTMP_IDENT, "`grep '$''Id:' $srcdir/src/utmp.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(WINDOWS_IDENT, "`grep '$''Id:' $srcdir/src/windows.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`")
|
||||
AC_DEFINE_UNQUOTED(ACTIONS_IDENT, "`grep '$''Id:' $srcdir/src/actions.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [actions.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(BUTTONS_IDENT, "`grep '$''Id:' $srcdir/src/buttons.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [buttons.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(COMMAND_IDENT, "`grep '$''Id:' $srcdir/src/command.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [command.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(DRAW_IDENT, "`grep '$''Id:' $srcdir/src/draw.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [draw.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(E_IDENT, "`grep '$''Id:' $srcdir/src/e.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [e.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(EVENTS_IDENT, "`grep '$''Id:' $srcdir/src/events.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [events.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(FONT_IDENT, "`grep '$''Id:' $srcdir/src/font.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [font.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(GRKELOT_IDENT, "`grep '$''Id:' $srcdir/src/grkelot.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [grkelot.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(MAIN_IDENT, "`grep '$''Id:' $srcdir/src/main.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [main.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(MENUS_IDENT, "`grep '$''Id:' $srcdir/src/menus.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [menus.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(MISC_IDENT, "`grep '$''Id:' $srcdir/src/misc.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [misc.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(NETDISP_IDENT, "`grep '$''Id:' $srcdir/src/netdisp.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [netdisp.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(OPTIONS_IDENT, "`grep '$''Id:' $srcdir/src/options.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [options.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(PIXMAP_IDENT, "`grep '$''Id:' $srcdir/src/pixmap.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [pixmap.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(SCREEN_IDENT, "`grep '$''Id:' $srcdir/src/screen.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [screen.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(SCROLLBAR_IDENT, "`grep '$''Id:' $srcdir/src/scrollbar.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [scrollbar.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(STARTUP_IDENT, "`grep '$''Id:' $srcdir/src/startup.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [startup.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(SYSTEM_IDENT, "`grep '$''Id:' $srcdir/src/system.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [system.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(TERM_IDENT, "`grep '$''Id:' $srcdir/src/term.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [term.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(TIMER_IDENT, "`grep '$''Id:' $srcdir/src/timer.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [timer.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(UTMP_IDENT, "`grep '$''Id:' $srcdir/src/utmp.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [utmp.c RCS ID])
|
||||
AC_DEFINE_UNQUOTED(WINDOWS_IDENT, "`grep '$''Id:' $srcdir/src/windows.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`", [windows.c RCS ID])
|
||||
|
||||
dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
|
||||
if test ! -z "${CFLAGS}" -o ! -z "${CCOPTS}"; then
|
||||
|
@ -108,10 +126,10 @@ fi
|
|||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
ASFLAGS="$ASFLAGS -I../"
|
||||
AS=$CC
|
||||
AC_SUBST(ASFLAGS)
|
||||
AC_SUBST(AS)
|
||||
CCASFLAGS="$CCASFLAGS -I.. -I."
|
||||
CCAS=$CC
|
||||
AC_SUBST(CCASFLAGS)
|
||||
AC_SUBST(CCAS)
|
||||
|
||||
dnl# Check for host system type
|
||||
AC_CANONICAL_HOST
|
||||
|
@ -145,12 +163,6 @@ AC_C_CONST
|
|||
AC_C_INLINE
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
# Keep automake >= 1.6 quiet about "assembler sources seen but no CCAS defined"
|
||||
CCAS="$CC"
|
||||
AC_SUBST(CCAS)
|
||||
CCASFLAGS="$CFLAGS"
|
||||
AC_SUBST(CCASFLAGS)
|
||||
|
||||
AC_PATH_XTRA
|
||||
|
||||
if test ! -z "$X_CFLAGS"; then
|
||||
|
@ -211,12 +223,12 @@ AC_ARG_WITH(debugging, [ --with-debugging[=num] enable debugging output, num i
|
|||
fi
|
||||
if test "$withval" != "no"; then
|
||||
echo "$withval"
|
||||
AC_DEFINE_UNQUOTED(DEBUG, $withval)
|
||||
AC_DEFINE_UNQUOTED(DEBUG, $withval, [Debugging level to compile in.])
|
||||
else
|
||||
echo "no debugging"
|
||||
AC_DEFINE_UNQUOTED(DEBUG, 0)
|
||||
AC_DEFINE_UNQUOTED(DEBUG, 0, [Debugging level to compile in.])
|
||||
fi], [echo "4"
|
||||
AC_DEFINE_UNQUOTED(DEBUG, 4)
|
||||
AC_DEFINE_UNQUOTED(DEBUG, 4, [Debugging level to compile in.])
|
||||
])
|
||||
|
||||
AC_CHECK_FUNC(ptsname,
|
||||
|
@ -232,15 +244,15 @@ dnl# Check for the appropriate pty mechanism
|
|||
AC_MSG_CHECKING(for pty mechanism)
|
||||
PTY_MECH=""
|
||||
if test -c /dev/ptc ; then
|
||||
AC_DEFINE(HAVE_DEV_PTC)
|
||||
AC_DEFINE(HAVE_DEV_PTC, , [Define for /dev/ptc support.])
|
||||
PTY_MECH="AIX $PTY_MECH"
|
||||
fi
|
||||
if test -r /dev/ptmx -a ! -z "$HAVE_PTSNAME" -a ! -z "$HAVE_GRANTPT" -a ! -z "$HAVE_UNLOCKPT"; then
|
||||
AC_DEFINE(HAVE_DEV_PTMX)
|
||||
AC_DEFINE(HAVE_DEV_PTMX, , [Define for /dev/ptmx support.])
|
||||
PTY_MECH="SVR4 $PTY_MECH"
|
||||
fi
|
||||
if test -c /dev/ptyp128 ; then
|
||||
AC_DEFINE(HAVE_SCO_PTYS)
|
||||
AC_DEFINE(HAVE_SCO_PTYS, , [Define for SCO-style pty support.])
|
||||
PTY_MECH="SCO $PTY_MECH"
|
||||
fi
|
||||
if test "X$PTY_MECH" = "X"; then
|
||||
|
@ -255,7 +267,7 @@ AC_ARG_WITH(pty-group,
|
|||
PTY_GRP_NAME=`ls -1l /dev/pty* 2>/dev/null | head -n 1 | awk '{print $4}'`
|
||||
if test ! -z "$PTY_GRP_NAME"; then
|
||||
AC_MSG_RESULT($PTY_GRP_NAME)
|
||||
AC_DEFINE_UNQUOTED(PTY_GRP_NAME, "$PTY_GRP_NAME")
|
||||
AC_DEFINE_UNQUOTED(PTY_GRP_NAME, "$PTY_GRP_NAME", [Group name for pty ownership.])
|
||||
else
|
||||
AC_MSG_RESULT(unable to determine. This feature will not be enabled.)
|
||||
fi
|
||||
|
@ -263,13 +275,13 @@ AC_ARG_WITH(pty-group,
|
|||
AC_MSG_RESULT(none)
|
||||
else
|
||||
AC_MSG_RESULT($withval)
|
||||
AC_DEFINE_UNQUOTED(PTY_GRP_NAME, "$withval")
|
||||
AC_DEFINE_UNQUOTED(PTY_GRP_NAME, "$withval", [Group name for pty ownership.])
|
||||
fi
|
||||
], [
|
||||
PTY_GRP_NAME=`ls -1l /dev/pty* 2>/dev/null | head -n 1 | awk '{print $4}'`
|
||||
if test ! -z "$PTY_GRP_NAME"; then
|
||||
AC_MSG_RESULT($PTY_GRP_NAME)
|
||||
AC_DEFINE_UNQUOTED(PTY_GRP_NAME, "$PTY_GRP_NAME")
|
||||
AC_DEFINE_UNQUOTED(PTY_GRP_NAME, "$PTY_GRP_NAME", [Group name for pty ownership.])
|
||||
else
|
||||
AC_MSG_RESULT(none)
|
||||
fi
|
||||
|
@ -297,7 +309,7 @@ if test "x$HAVE_SAVED_UIDS" = "x"; then
|
|||
HAVE_SAVED_UIDS=0
|
||||
elif test $HAVE_SAVED_UIDS -eq 1; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_SAVED_UIDS)
|
||||
AC_DEFINE(HAVE_SAVED_UIDS, , [Define if the system supports saved UID and GID.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
@ -307,7 +319,7 @@ AC_ARG_ENABLE(strict-icccm,
|
|||
[ --enable-strict-icccm compile with strict ICCCM compliant WM icon support], [
|
||||
if test "$enableval" = "yes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(STRICT_ICCCM)
|
||||
AC_DEFINE(STRICT_ICCCM, , [Define if WM cannot handle icon pixmaps.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
@ -329,7 +341,7 @@ echo " directory shown above. If it is in a different directory, try usi
|
|||
echo " the --x-libraries parameter to configure.";
|
||||
AC_MSG_ERROR([Fatal: libXext not found.])])
|
||||
|
||||
AC_CHECK_LIB(Xext, XShapeQueryExtension, AC_DEFINE(HAVE_X_SHAPE_EXT))
|
||||
AC_CHECK_LIB(Xext, XShapeQueryExtension, AC_DEFINE(HAVE_X_SHAPE_EXT, , [Define if X shaped window extension is available.]))
|
||||
|
||||
dnl#
|
||||
dnl# FEATURES
|
||||
|
@ -345,7 +357,7 @@ AC_ARG_WITH(pablo,
|
|||
fi
|
||||
AC_CHECK_HEADER(IOTrace.h, [
|
||||
AC_CHECK_LIB(PabloTraceExt, initIOTrace, [
|
||||
AC_DEFINE(IOTRACE)
|
||||
AC_DEFINE(IOTRACE, , [Define for Pablo I/O tracing support.])
|
||||
LIBS="$LIBS -lPabloTraceExt -lPabloTrace"
|
||||
echo "Pablo support enabled. Headers in ${withval}/include. Libraries in ${withval}/lib."
|
||||
], [
|
||||
|
@ -367,14 +379,14 @@ AC_ARG_ENABLE(escreen,
|
|||
[ --disable-escreen disable Eterm's built-in screen support], [
|
||||
if test "$enableval" = "yes"; then
|
||||
FOUND_SCREEN=1
|
||||
AC_DEFINE(NS_HAVE_SCREEN,1,[Support the GNU screen text windowing system?])
|
||||
AC_DEFINE(NS_HAVE_SCREEN, 1, [Define for support of the screen text windowing system.])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
], [
|
||||
FOUND_SCREEN=1
|
||||
AC_DEFINE(NS_HAVE_SCREEN,1,[Support the GNU screen text windowing system?])
|
||||
AC_DEFINE(NS_HAVE_SCREEN, 1, [Define for support of the screen text windowing system.])
|
||||
AC_MSG_RESULT(yes)
|
||||
]
|
||||
)
|
||||
|
@ -386,7 +398,7 @@ AC_ARG_ENABLE(etwin,
|
|||
if test "$FOUND_LIBTWIN" -ne "1"; then
|
||||
AC_WARN(*** Twin support has been disabled because libTw was not found ***)
|
||||
else
|
||||
AC_DEFINE(NS_HAVE_TWIN,1,[Support the twin text windowing system?])
|
||||
AC_DEFINE(NS_HAVE_TWIN, 1, [Define for support of the twin text windowing system.])
|
||||
LIBS="$LIBS -lTw"
|
||||
fi
|
||||
else
|
||||
|
@ -395,7 +407,7 @@ AC_ARG_ENABLE(etwin,
|
|||
)
|
||||
|
||||
if test ! -z "$FOUND_SCREEN" || test ! -z "$FOUND_LIBTWIN"; then
|
||||
AC_DEFINE(ESCREEN)
|
||||
AC_DEFINE(ESCREEN, , [Define for Escreen support.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(if profiling macros should be included)
|
||||
|
@ -403,7 +415,7 @@ AC_ARG_ENABLE(profile,
|
|||
[ --enable-profile compile with code profiling macros enabled], [
|
||||
if test "$enableval" = "yes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(ENABLE_PROFILE)
|
||||
AC_DEFINE(ENABLE_PROFILE, , [Define to enable code profiling macros.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi], AC_MSG_RESULT(no)
|
||||
|
@ -434,9 +446,9 @@ if test $USE_IMLIB -eq 1 ; then
|
|||
AC_CHECK_LIB(ttf, TT_Init_FreeType, GRLIBS="-lttf $GRLIBS", , $GRLIBS)
|
||||
AC_CHECK_LIB(Imlib2, imlib_create_image, [
|
||||
GRLIBS="-lImlib2 $GRLIBS"
|
||||
AC_DEFINE(HAVE_LIBIMLIB2)
|
||||
AC_DEFINE(PIXMAP_SUPPORT)
|
||||
AC_DEFINE(BACKING_STORE)
|
||||
AC_DEFINE(HAVE_LIBIMLIB2, , [Define if Imlib2 is present.])
|
||||
AC_DEFINE(PIXMAP_SUPPORT, , [Define if pixmap support is desired.])
|
||||
AC_DEFINE(BACKING_STORE, , [Define if backing store is desired.])
|
||||
], [
|
||||
AC_WARN(*** Pixmap support has been disabled because Imlib2 was not found ***)
|
||||
AC_WARN(*** or could not be linked. Eterm should still work, but it will ***)
|
||||
|
@ -451,11 +463,11 @@ AC_ARG_ENABLE(trans,
|
|||
[ --enable-trans compile with transparency support], [
|
||||
if test "$enableval" != "no"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(PIXMAP_OFFSET)
|
||||
AC_DEFINE(PIXMAP_OFFSET, , [Define for pseudo-transparency support.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi], [AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(PIXMAP_OFFSET)
|
||||
AC_DEFINE(PIXMAP_OFFSET, , [Define for pseudo-transparency support.])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING(for MMX support)
|
||||
|
@ -469,7 +481,7 @@ AC_ARG_ENABLE(mmx, [ --enable-mmx enable MMX assembly routines], [
|
|||
])
|
||||
if test "x$HAVE_MMX" = "xyes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_MMX)
|
||||
AC_DEFINE(HAVE_MMX, , [Define for MMX support.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
@ -515,19 +527,19 @@ fi
|
|||
if test "$FOUND_LIBAST" -ge "$LIBAST_MIN"; then
|
||||
if test ! -z "$LIBAST_CONFIG"; then
|
||||
#GRLIBS="-last $GRLIBS"
|
||||
AC_DEFINE(HAVE_LIBAST)
|
||||
AC_DEFINE(HAVE_LIBAST, , [Define if LibAST is present.])
|
||||
test "$prefix" = "NONE" && prefix="`$LIBAST_CONFIG --prefix`"
|
||||
SUPPORT_FLAGS="`$LIBAST_CONFIG --support`"
|
||||
for i in $SUPPORT_FLAGS ; do
|
||||
case $i in
|
||||
MMX)
|
||||
AC_DEFINE(LIBAST_MMX_SUPPORT)
|
||||
AC_DEFINE(LIBAST_MMX_SUPPORT, 1, [Defined as 1 if LibAST has MMX support.])
|
||||
;;
|
||||
X11)
|
||||
AC_DEFINE(LIBAST_X11_SUPPORT)
|
||||
AC_DEFINE(LIBAST_X11_SUPPORT, 1, [Defined as 1 if LibAST has X11 support.])
|
||||
;;
|
||||
Imlib2)
|
||||
AC_DEFINE(LIBAST_IMLIB2_SUPPORT)
|
||||
AC_DEFINE(LIBAST_IMLIB2_SUPPORT, 1, [Defined as 1 if LibAST has Imlib2 support.])
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
@ -542,12 +554,12 @@ AC_ARG_ENABLE(utmp,
|
|||
if test "$enableval" != "no"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
UTMP=1
|
||||
AC_DEFINE(UTMP_SUPPORT)
|
||||
AC_DEFINE(UTMP_SUPPORT, , [Define for utmp logging support.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
UTMP=0
|
||||
fi], [AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(UTMP_SUPPORT)
|
||||
AC_DEFINE(UTMP_SUPPORT, , [Define for utmp logging support.])
|
||||
UTMP=1
|
||||
])
|
||||
if test $UTMP -eq 1; then
|
||||
|
@ -558,17 +570,17 @@ AC_ARG_WITH(backspace,
|
|||
[ --with-backspace=KEY force backspace to send KEY (KEY is \"bs\" for ^H, \"del\" for ^?, \"auto\" to check stty)], [
|
||||
if test "$withval" = "bs"; then
|
||||
AC_MSG_RESULT(forcing Backspace to send Ctrl-H)
|
||||
AC_DEFINE(FORCE_BACKSPACE)
|
||||
AC_DEFINE(FORCE_BACKSPACE, , [Define to force Backspace to send ^H.])
|
||||
elif test "$withval" = "del"; then
|
||||
AC_MSG_RESULT(forcing Backspace to send Ctrl-?)
|
||||
AC_DEFINE(FORCE_DELETE)
|
||||
AC_DEFINE(FORCE_DELETE, , [Define to force Backspace to send ^?.])
|
||||
elif test "$withval" = "detect" -o "$withval" = "auto"; then
|
||||
AC_MSG_RESULT(attempt to auto-detect)
|
||||
else
|
||||
AC_MSG_RESULT(default)
|
||||
AC_DEFINE(FORCE_BACKSPACE)
|
||||
AC_DEFINE(FORCE_BACKSPACE, , [Define to force Backspace to send ^H.])
|
||||
fi], [AC_MSG_RESULT(default)
|
||||
AC_DEFINE(FORCE_BACKSPACE)
|
||||
AC_DEFINE(FORCE_BACKSPACE, , [Define to force Backspace to send ^H.])
|
||||
])
|
||||
AC_MSG_CHECKING(for delete key configuration)
|
||||
AC_ARG_WITH(delete,
|
||||
|
@ -577,18 +589,18 @@ AC_ARG_WITH(delete,
|
|||
or a quoted string to use a specific string)], [
|
||||
if test "$withval" = "server"; then
|
||||
AC_MSG_RESULT(X server value)
|
||||
AC_DEFINE(NO_DELETE_KEY)
|
||||
AC_DEFINE(NO_DELETE_KEY, , [Define to use the X server value for Delete.])
|
||||
elif test "$withval" = "no"; then
|
||||
AC_MSG_RESULT(X server value)
|
||||
AC_DEFINE(NO_DELETE_KEY)
|
||||
AC_DEFINE(NO_DELETE_KEY, , [Define to use the X server value for Delete.])
|
||||
elif test "$withval" = "execute"; then
|
||||
AC_MSG_RESULT(send execute sequence)
|
||||
elif test "$withval" = "del"; then
|
||||
AC_MSG_RESULT(send Ctrl-?)
|
||||
AC_DEFINE_UNQUOTED(KS_DELETE, "\177")
|
||||
AC_DEFINE_UNQUOTED(KS_DELETE, "\177", [Define to force Delete to send ^?.])
|
||||
else
|
||||
AC_MSG_RESULT(forcing Delete to send "$withval")
|
||||
AC_DEFINE_UNQUOTED(KS_DELETE, "$withval")
|
||||
AC_DEFINE_UNQUOTED(KS_DELETE, "$withval", [Define for specific Delete escape sequence.])
|
||||
fi], AC_MSG_RESULT(default)
|
||||
)
|
||||
XTERM_HOME="\033\133H"
|
||||
|
@ -598,10 +610,10 @@ AC_ARG_WITH(home,
|
|||
[ --with-home=SEQUENCE specify which sequence to use for the Home key ("xterm", "linux", or "vt102")], [
|
||||
if test "$withval" = "xterm"; then
|
||||
AC_MSG_RESULT(emulate xterm)
|
||||
AC_DEFINE_UNQUOTED(KS_HOME, "$XTERM_HOME")
|
||||
AC_DEFINE_UNQUOTED(KS_HOME, "$XTERM_HOME", [Emulate xterm for Home key.])
|
||||
elif test "$withval" = "linux"; then
|
||||
AC_MSG_RESULT(emulate linux console/vt220)
|
||||
AC_DEFINE_UNQUOTED(KS_HOME, "$LINUX_HOME")
|
||||
AC_DEFINE_UNQUOTED(KS_HOME, "$LINUX_HOME", [Emulate Linux console for Home key.])
|
||||
else
|
||||
AC_MSG_RESULT(default vt102)
|
||||
fi], AC_MSG_RESULT(default)
|
||||
|
@ -613,10 +625,10 @@ AC_ARG_WITH(end,
|
|||
[ --with-end=SEQUENCE specify which sequence to use for the End key ("xterm", "linux", or "vt102")], [
|
||||
if test "$withval" = "xterm"; then
|
||||
AC_MSG_RESULT(emulate xterm)
|
||||
AC_DEFINE_UNQUOTED(KS_END, "$XTERM_END")
|
||||
AC_DEFINE_UNQUOTED(KS_END, "$XTERM_END", [Emulate xterm for End key.])
|
||||
elif test "$withval" = "linux"; then
|
||||
AC_MSG_RESULT(emulate linux console/vt220)
|
||||
AC_DEFINE_UNQUOTED(KS_END, "$LINUX_END")
|
||||
AC_DEFINE_UNQUOTED(KS_END, "$LINUX_END", [Emulate Linux console for End key.])
|
||||
else
|
||||
AC_MSG_RESULT(default vt102)
|
||||
fi], AC_MSG_RESULT(default)
|
||||
|
@ -628,9 +640,9 @@ AC_ARG_WITH(mousewheel,
|
|||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(MOUSEWHEEL)
|
||||
AC_DEFINE(MOUSEWHEEL, , [Define for built-in mousewheel support.])
|
||||
fi], [AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(MOUSEWHEEL)
|
||||
AC_DEFINE(MOUSEWHEEL, , [Define for built-in mousewheel support.])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING(for automatic encoding)
|
||||
|
@ -640,9 +652,9 @@ AC_ARG_ENABLE(auto-encoding,
|
|||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(AUTO_ENCODING)
|
||||
AC_DEFINE(AUTO_ENCODING, 1, [Define for automatic character encoding.])
|
||||
fi, AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(AUTO_ENCODING)
|
||||
AC_DEFINE(AUTO_ENCODING, 1, [Define for automatic character encoding.])
|
||||
)
|
||||
|
||||
MULTICHAR_ENCODING=""
|
||||
|
@ -666,7 +678,7 @@ AC_ARG_ENABLE(multi-charset,
|
|||
if test "x$MULTI_CHARSET_TYPE" != "x"; then
|
||||
if test "$MULTI_CHARSET_TYPE" = "kanji"; then
|
||||
AC_MSG_RESULT(kanji)
|
||||
AC_DEFINE(MULTI_CHARSET)
|
||||
AC_DEFINE(MULTI_CHARSET, , [Define for multi-byte character set support.])
|
||||
DEF_FONT_IDX=0
|
||||
MULTICHAR_ENCODING="eucj"
|
||||
FONT0="fixed"
|
||||
|
@ -681,7 +693,7 @@ if test "x$MULTI_CHARSET_TYPE" != "x"; then
|
|||
MFONT4="jiskan26"
|
||||
elif test "$MULTI_CHARSET_TYPE" = "euc-kr" -o "$MULTI_CHARSET_TYPE" = "euckr"; then
|
||||
AC_MSG_RESULT(euckr)
|
||||
AC_DEFINE(MULTI_CHARSET)
|
||||
AC_DEFINE(MULTI_CHARSET, , [Define for multi-byte character set support.])
|
||||
DEF_FONT_IDX=1
|
||||
MULTICHAR_ENCODING="euckr"
|
||||
FONT0="7x14"
|
||||
|
@ -696,7 +708,7 @@ if test "x$MULTI_CHARSET_TYPE" != "x"; then
|
|||
MFONT4="-*-gulim-medium-r-normal--24-*-*-*-*-240-ksc5601.1987-0"
|
||||
elif test "$MULTI_CHARSET_TYPE" = "unicode" -o "$MULTI_CHARSET_TYPE" = "utf-8" -o "$MULTI_CHARSET_TYPE" = "utf8"; then
|
||||
AC_MSG_RESULT(ISO-10646)
|
||||
AC_DEFINE(MULTI_CHARSET)
|
||||
AC_DEFINE(MULTI_CHARSET, , [Define for multi-byte character set support.])
|
||||
DEF_FONT_IDX=2
|
||||
MULTICHAR_ENCODING="iso-10646"
|
||||
MFONT0="-misc-fixed-medium-r-normal--7-70-75-75-c-50-iso10646-1"
|
||||
|
@ -711,7 +723,7 @@ if test "x$MULTI_CHARSET_TYPE" != "x"; then
|
|||
FONT4="9x15"
|
||||
elif test "$MULTI_CHARSET_TYPE" = "big5"; then
|
||||
AC_MSG_RESULT(big5)
|
||||
AC_DEFINE(MULTI_CHARSET)
|
||||
AC_DEFINE(MULTI_CHARSET, , [Define for multi-byte character set support.])
|
||||
DEF_FONT_IDX=0
|
||||
MULTICHAR_ENCODING="big5"
|
||||
FONT0="8x16"
|
||||
|
@ -744,12 +756,12 @@ if test "x$MULTI_CHARSET_TYPE" = "x"; then
|
|||
FONT4="9x15"
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(DEF_FONT_IDX, $DEF_FONT_IDX)
|
||||
AC_DEFINE_UNQUOTED(FONT0, "$FONT0")
|
||||
AC_DEFINE_UNQUOTED(FONT1, "$FONT1")
|
||||
AC_DEFINE_UNQUOTED(FONT2, "$FONT2")
|
||||
AC_DEFINE_UNQUOTED(FONT3, "$FONT3")
|
||||
AC_DEFINE_UNQUOTED(FONT4, "$FONT4")
|
||||
AC_DEFINE_UNQUOTED(DEF_FONT_IDX, $DEF_FONT_IDX, [Default font index.])
|
||||
AC_DEFINE_UNQUOTED(FONT0, "$FONT0", [Font 0])
|
||||
AC_DEFINE_UNQUOTED(FONT1, "$FONT1", [Font 1])
|
||||
AC_DEFINE_UNQUOTED(FONT2, "$FONT2", [Font 2])
|
||||
AC_DEFINE_UNQUOTED(FONT3, "$FONT3", [Font 3])
|
||||
AC_DEFINE_UNQUOTED(FONT4, "$FONT4", [Font 4])
|
||||
AC_SUBST(DEF_FONT_IDX)
|
||||
AC_SUBST(FONT0)
|
||||
AC_SUBST(FONT1)
|
||||
|
@ -758,12 +770,12 @@ AC_SUBST(FONT3)
|
|||
AC_SUBST(FONT4)
|
||||
export FONT0 FONT1 FONT2 FONT3 FONT4 DEF_FONT_IDX
|
||||
|
||||
AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, "$MULTICHAR_ENCODING")
|
||||
AC_DEFINE_UNQUOTED(MFONT0, "$MFONT0")
|
||||
AC_DEFINE_UNQUOTED(MFONT1, "$MFONT1")
|
||||
AC_DEFINE_UNQUOTED(MFONT2, "$MFONT2")
|
||||
AC_DEFINE_UNQUOTED(MFONT3, "$MFONT3")
|
||||
AC_DEFINE_UNQUOTED(MFONT4, "$MFONT4")
|
||||
AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, "$MULTICHAR_ENCODING", [Multi-byte character encoding style.])
|
||||
AC_DEFINE_UNQUOTED(MFONT0, "$MFONT0", [Multibyte Font 0])
|
||||
AC_DEFINE_UNQUOTED(MFONT1, "$MFONT1", [Multibyte Font 1])
|
||||
AC_DEFINE_UNQUOTED(MFONT2, "$MFONT2", [Multibyte Font 2])
|
||||
AC_DEFINE_UNQUOTED(MFONT3, "$MFONT3", [Multibyte Font 3])
|
||||
AC_DEFINE_UNQUOTED(MFONT4, "$MFONT4", [Multibyte Font 4])
|
||||
AC_SUBST(MULTICHAR_ENCODING)
|
||||
AC_SUBST(MFONT0)
|
||||
AC_SUBST(MFONT1)
|
||||
|
@ -780,15 +792,15 @@ AC_ARG_ENABLE(xim,
|
|||
XIM="FALSE"
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(USE_XIM)
|
||||
AC_DEFINE(USE_XIM, , [Define for X Input Method support.])
|
||||
XIM="TRUE"
|
||||
fi], [AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(USE_XIM)
|
||||
AC_DEFINE(USE_XIM, , [Define for X Input Method support.])
|
||||
XIM="TRUE"
|
||||
])
|
||||
|
||||
# check if we need X_LOCALE definition
|
||||
AC_CHECK_LIB(X11, _Xsetlocale, AC_DEFINE(X_LOCALE), AC_DEFINE(NO_XLOCALE))
|
||||
AC_CHECK_LIB(X11, _Xsetlocale, AC_DEFINE(X_LOCALE, , [X locale.]), AC_DEFINE(NO_XLOCALE, , [No X locale.]))
|
||||
|
||||
# For multibyte selection handling
|
||||
#if test "$MULTICHAR_ENCODING" != "none"; then
|
||||
|
@ -797,7 +809,7 @@ AC_CHECK_LIB(X11, _Xsetlocale, AC_DEFINE(X_LOCALE), AC_DEFINE(NO_XLOCALE))
|
|||
|
||||
# check X11R6 for XIM
|
||||
if test "$XIM" = "TRUE"; then
|
||||
AC_CHECK_LIB(X11, XRegisterIMInstantiateCallback, AC_DEFINE(USE_X11R6_XIM))
|
||||
AC_CHECK_LIB(X11, XRegisterIMInstantiateCallback, AC_DEFINE(USE_X11R6_XIM, , [Define if we have X11R6 XIM.]))
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for Greek keyboard support)
|
||||
|
@ -805,7 +817,7 @@ AC_ARG_ENABLE(greek,
|
|||
[ --enable-greek compile with support for Greek keyboards], [
|
||||
if test "$enableval" = "yes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(GREEK_SUPPORT)
|
||||
AC_DEFINE(GREEK_SUPPORT, , [Define for Greek keyboard support.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi], AC_MSG_RESULT(no)
|
||||
|
@ -861,7 +873,7 @@ fi
|
|||
dnl Stack Tracing toys
|
||||
AC_ARG_ENABLE(stack-trace, [ --disable-stack-trace disable stack trace on abnormal termination], [
|
||||
if test "$enableval" = "no"; then
|
||||
AC_DEFINE(NO_STACK_TRACE)
|
||||
AC_DEFINE(NO_STACK_TRACE, , [Define to disable stack trace on abnormal termination.])
|
||||
NO_STACK_TRACE=1
|
||||
fi
|
||||
])
|
||||
|
@ -869,15 +881,15 @@ AC_ARG_ENABLE(stack-trace, [ --disable-stack-trace disable stack trace on abn
|
|||
if test "$NO_STACK_TRACE" != "1"; then
|
||||
AC_PATH_PROG(DBX, dbx, no)
|
||||
if test "$DBX" != "no"; then
|
||||
AC_DEFINE_UNQUOTED(DBX, "$DBX")
|
||||
AC_DEFINE_UNQUOTED(DBX, "$DBX", [Define for dbx support.])
|
||||
fi
|
||||
AC_PATH_PROG(GDB, gdb, no)
|
||||
if test "$GDB" != "no"; then
|
||||
AC_DEFINE_UNQUOTED(GDB, "$GDB")
|
||||
AC_DEFINE_UNQUOTED(GDB, "$GDB", [Define for gdb support.])
|
||||
fi
|
||||
AC_PATH_PROG(PSTACK, pstack, no, $PATH:/usr/proc/bin:/usr/sbin)
|
||||
if test "$PSTACK" != "no"; then
|
||||
AC_DEFINE_UNQUOTED(PSTACK, "$PSTACK")
|
||||
AC_DEFINE_UNQUOTED(PSTACK, "$PSTACK", [Define for pstack support.])
|
||||
fi
|
||||
AC_CHECK_LIB(cl, U_STACK_TRACE, LIBS="$LIBS -lcl")
|
||||
fi
|
||||
|
@ -890,7 +902,7 @@ if test "$OS_NAME" = "Linux"; then
|
|||
OS_MINOR=`echo $OS_REV | cut -d. -f2`
|
||||
if test "$OS_MAJOR" -ge "2" -a "$OS_MINOR" -ge "1"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(NEED_LINUX_HACK)
|
||||
AC_DEFINE(NEED_LINUX_HACK, , [Define if uid hack needed to open X display.])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
@ -908,23 +920,23 @@ AC_ARG_WITH(sense-of-humor, [ --without-sense-of-humor Specify this if you ha
|
|||
if test -z "$HUMOR"; then
|
||||
AC_CHECK_LIB(Kenny, life_signs, , [
|
||||
echo " Oh my god, they killed Kenny! You bastards!"
|
||||
AC_DEFINE(HAVE_HUMOR,1,[Does user have a sense of humour?])
|
||||
AC_DEFINE(HAVE_HUMOR, 1, [Defined if user has a sense of humor.])
|
||||
])
|
||||
fi
|
||||
|
||||
CONFIG_SEARCH_PATH=`eval eval eval eval eval echo "${sysconfdir}/$PACKAGE/themes:/etc/$PACKAGE/themes:${datadir}/$PACKAGE/themes"`
|
||||
CONFIG_SEARCH_PATH=`eval eval eval eval eval echo "$CONFIG_SEARCH_PATH:${sysconfdir}/$PACKAGE:/etc/$PACKAGE:${datadir}/$PACKAGE"`
|
||||
AC_DEFINE_UNQUOTED(CONFIG_SEARCH_PATH, "~/.Eterm/themes:~/.Eterm:$CONFIG_SEARCH_PATH")
|
||||
AC_DEFINE_UNQUOTED(CONFIG_SEARCH_PATH, "~/.Eterm/themes:~/.Eterm:$CONFIG_SEARCH_PATH", [Config file/theme search path.])
|
||||
# Do replacements on theme files and such. All variables to be replaced
|
||||
# by this routine MUST be exported before the awk script runs.
|
||||
if test "X$PKGDATADIR" = "X" ; then
|
||||
PKGDATADIR=`eval eval eval eval echo "$datadir/$PACKAGE"`
|
||||
fi
|
||||
export PKGDATADIR
|
||||
AC_DEFINE_UNQUOTED(PKGDATADIR, "$PKGDATADIR")
|
||||
AC_DEFINE_UNQUOTED(PKGDATADIR, "$PKGDATADIR", [Package data directory.])
|
||||
if test "$GDB" != "no"; then
|
||||
GDB_CMD_FILE="$PKGDATADIR/gdb.scr"
|
||||
AC_DEFINE_UNQUOTED(GDB_CMD_FILE, "$GDB_CMD_FILE")
|
||||
AC_DEFINE_UNQUOTED(GDB_CMD_FILE, "$GDB_CMD_FILE", [gdb command script.])
|
||||
else
|
||||
GDB_CMD_FILE=""
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue