pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-10-06
2001-10-06 20:55:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a1c5022594316818c68decd7643c3ddf8bfba5c2 (
204
lines) (+
138
/-
66
)
[
Show
|
Annotate
]
Branch:
7.9
Now uses MY_DESCR.
Rev: src/configure.in:1.556
1:
-
AC_REVISION("$Id: configure.in,v 1.
555
2001/10/
05
18
:
43
:
53
hubbe
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
556
2001/10/
06
20
:
55
:
26
grubba
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
52:
ldflags_is_set=yes fi
-
AC_ARG_WITH(cflags,
[
--with-cflags=cflags specify extra c compiler flags], [ CFLAGS="$with_cflags $CFLAGS" ])
-
AC_ARG_WITH(cppflags, [
--with-cppflags=cppflags specify extra c preprocessor flags], [ CPPFLAGS="$with_cppflags $CPPFLAGS" ])
-
AC_ARG_WITH(ldflags,
[
--with-ldflags=ldflags specify extra linker flags], [ LDFLAGS="$with_ldflags $LDFLAGS" ])
+
AC_ARG_WITH(cflags,
MY_DESCR(
[--with-cflags=cflags
],
+
[
specify extra c compiler flags]
)
,
+
[ CFLAGS="$with_cflags $CFLAGS" ])
+
AC_ARG_WITH(cppflags,
MY_DESCR(
[--with-cppflags=cppflags
],
+
[
specify extra c preprocessor flags]
)
,
+
[ CPPFLAGS="$with_cppflags $CPPFLAGS" ])
+
AC_ARG_WITH(ldflags,
MY_DESCR(
[--with-ldflags=ldflags
],
+
[
specify extra linker flags]
)
,
+
[ LDFLAGS="$with_ldflags $LDFLAGS" ])
for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then
66:
fi done
-
AC_ARG_ENABLE(binary,
[
--disable-binary
don't configure for binary build, only do tests for precompilation stuff], [], [enable_binary=yes])
+
AC_ARG_ENABLE(binary,
MY_DESCR(
[--disable-binary
],
+
[
don't configure for binary build, only do tests for precompilation stuff]
)
,
+
[], [enable_binary=yes])
if test "x$enable_binary" = "xno"; then AC_MSG_WARN(Short-circuiting configure tests for binary building.)
664:
#############################################################################
-
AC_ARG_WITH(patch_gcc,
[
--with-patch-gcc
attempt to patch the UA32 relocation bug.], [], [with_patch_gcc=no])
+
AC_ARG_WITH(patch_gcc,
MY_DESCR([--with-patch-gcc],
+
[
attempt to patch the UA32 relocation bug.]
)
,
+
[], [with_patch_gcc=no])
# Some sanity checks.
876:
#############################################################################
-
AC_ARG_WITH(root,
[
--with-root=path
specify a cross-compilation root-directory],[
+
AC_ARG_WITH(root,
MY_DESCR([--with-root=path],
+
[
specify a cross-compilation root-directory]
)
,[
case "$with_root" in /) with_root=""
892:
;; esac ],[with_root=""])
-
MY_AC_ARG_WITH(relocatable_dumped_modules,
[
--with-relocatable-dumped-modules make dumped modules relocatable],[with_relocatable_dumped_modules=yes])
-
AC_ARG_WITH(dynamic_modules,
[
--without-dynamic-modules link modules statically])
-
MY_AC_ARG_WITH(static_linking,
[
--with-static-linking link statically, if possible],[with_static_linking=yes])
-
AC_ARG_WITH(include-path,
[
--with-include-path
A
list of paths to search for include files.])
-
AC_ARG_WITH(lib-path,
[
--with-lib-path
A
list of paths to search for libraries.])
+
MY_AC_ARG_WITH(relocatable_dumped_modules,
+
MY_DESCR([
--with-relocatable-dumped-modules
],
+
[
make dumped modules relocatable]
)
,
+
[with_relocatable_dumped_modules=yes])
+
AC_ARG_WITH(dynamic_modules,
MY_DESCR(
[--without-dynamic-modules
],
+
[
link modules statically])
)
+
MY_AC_ARG_WITH(static_linking,
MY_DESCR(
[--with-static-linking
],
+
[
link statically, if possible]
)
,
+
[with_static_linking=yes])
+
AC_ARG_WITH(include-path,
+
MY_DESCR([
--with-include-path
],
+
[a
list of paths to search for include files.])
)
+
AC_ARG_WITH(lib-path,
+
MY_DESCR([
--with-lib-path
],
+
[a
list of paths to search for libraries.])
)
-
MY_AC_ARG_WITH(double-precision, [
--with-double-precision use double precision floats
], [ AC_DEFINE(WITH_DOUBLE_PRECISION_SVALUE) ])
-
MY_AC_ARG_WITH(long-double-precision,
[
--with-long-double-precision use long double precision floats
], [ AC_DEFINE(WITH_LONG_DOUBLE_PRECISION_SVALUE) ])
+
MY_AC_ARG_WITH(double-precision,
MY_DESCR(
[--with-double-precision
],
+
[
use double precision floats]
)
,
+
[ AC_DEFINE(WITH_DOUBLE_PRECISION_SVALUE) ])
+
MY_AC_ARG_WITH(long-double-precision,
MY_DESCR(
[--with-long-double-precision
],
+
[
use long double precision floats]
)
,
+
[ AC_DEFINE(WITH_LONG_DOUBLE_PRECISION_SVALUE) ])
-
MY_AC_ARG_WITH(long-int,
[
--with-long-int
use long native type int (EXPERIMENTAL)], [ AC_DEFINE(WITH_LONG_INT) ])
-
MY_AC_ARG_WITH(long-long-int,
[
--with-long-long-int use long long native type int (EXPERIMENTAL)], [ AC_DEFINE(WITH_LONG_LONG_INT) ])
-
MY_AC_ARG_WITH(short-int,
[
--with-short-int
use short native type int (EXPERIMENTAL)], [ AC_DEFINE(WITH_SHORT_INT) ])
-
MY_AC_ARG_WITH(int-int,
[
--with-int-int
use int native type int (EXPERIMENTAL)], [ AC_DEFINE(WITH_INT_INT) ])
+
MY_AC_ARG_WITH(long-int,
MY_DESCR([--with-long-int],
+
[
use long native type int (EXPERIMENTAL)]
)
,
+
[ AC_DEFINE(WITH_LONG_INT) ])
+
MY_AC_ARG_WITH(long-long-int,
MY_DESCR(
[--with-long-long-int
],
+
[
use long long native type int (EXPERIMENTAL)]
)
,
+
[ AC_DEFINE(WITH_LONG_LONG_INT) ])
+
MY_AC_ARG_WITH(short-int,
MY_DESCR([--with-short-int],
+
[
use short native type int (EXPERIMENTAL)]
)
,
+
[ AC_DEFINE(WITH_SHORT_INT) ])
+
MY_AC_ARG_WITH(int-int,
MY_DESCR([--with-int-int],
+
[
use int native type int (EXPERIMENTAL)]
)
,
+
[ AC_DEFINE(WITH_INT_INT) ])
-
AC_ARG_WITH(gdbm,
[
--without-gdbm
no GNU database manager support
])
-
AC_ARG_WITH(gmp,
[
--without-gmp
no support for Gmp bignums])
-
MY_AC_ARG_WITH(dmalloc,
[
--with-dmalloc
enable
memory-leak
tests],
[with_debug="yes" AC_DEFINE(DEBUG_MALLOC,10)])
-
MY_AC_ARG_WITH(dmalloc-malloc,
[
--without-dmalloc-malloc Disable overloading malloc(3)],[],[ AC_DEFINE(ENCAPSULATE_MALLOC,1) ])
-
MY_AC_ARG_WITH(dmalloc-malloc-leaks,
[
--with-malloc-leaks Report memory allocated by malloc(3) as leaks.],[ AC_DEFINE(REPORT_ENCAPSULATED_MALLOC,1) ])
-
MY_AC_ARG_WITH(dmalloc-trace,
[
--with-dmalloc-trace enable tracepoints],[with_dmalloc_trace="yes" AC_DEFINE(DMALLOC_TRACE,10)])
-
AC_ARG_WITH(debug,
[
--without-debug
disable
run
debugging],
[],[with_debug=])
-
AC_ARG_WITH(rtldebug,
[
--with-rtldebug
enable
run
time
self
tests],
[],[with_rtldebug=])
-
AC_ARG_WITH(cdebug,
[
--without-cdebug
disable -g],[],[
+
AC_ARG_WITH(gdbm,
MY_DESCR(
[--without-gdbm
],[
no GNU database manager support])
)
+
AC_ARG_WITH(gmp,
MY_DESCR(
[--without-gmp
],[
no support for Gmp bignums])
)
+
MY_AC_ARG_WITH(dmalloc,
MY_DESCR(
[--with-dmalloc
],[enable
memory-leak
tests]),
+
[with_debug="yes" AC_DEFINE(DEBUG_MALLOC,10)])
+
MY_AC_ARG_WITH(dmalloc-malloc,
MY_DESCR(
[--without-dmalloc-malloc
],
+
[
Disable overloading malloc(3)]
)
,
+
[],[ AC_DEFINE(ENCAPSULATE_MALLOC,1) ])
+
MY_AC_ARG_WITH(dmalloc-malloc-leaks,
+
MY_DESCR([
--with-malloc-leaks
],
+
[
Report memory allocated by malloc(3) as leaks.]
)
,
+
[ AC_DEFINE(REPORT_ENCAPSULATED_MALLOC,1) ])
+
MY_AC_ARG_WITH(dmalloc-trace,
MY_DESCR(
[--with-dmalloc-trace
],
+
[
enable tracepoints]
)
,
+
[with_dmalloc_trace="yes" AC_DEFINE(DMALLOC_TRACE,10)])
+
AC_ARG_WITH(debug,
MY_DESCR(
[--without-debug
],[disable
run
debugging]),
+
[],[with_debug=])
+
AC_ARG_WITH(rtldebug,
MY_DESCR(
[--with-rtldebug
],[enable
run
time
self
tests]),
+
[],[with_rtldebug=])
+
AC_ARG_WITH(cdebug,
MY_DESCR(
[--without-cdebug
],[
disable -g]
)
,[],[
case "$pike_cv_sys_os:$GCC" in Solaris:no) # Solaris/cc has problems with combining optimizations and debuginfo.
927:
;; esac ])
-
AC_ARG_WITH(copt,
[
--without-copt
disable -O2],[],[with_copt=])
-
AC_ARG_WITH(threads,
[
--without-threads
no
threads
support],
[],[
+
AC_ARG_WITH(copt,
MY_DESCR(
[--without-copt
],
[
disable -O2]
)
,
[],
[with_copt=])
+
AC_ARG_WITH(threads,
MY_DESCR(
[--without-threads
],
[disable
threads
support]),
+
[],[
case "x$pike_cv_sys_os" in xFreeBSD*) if test "`uname -r|sed -e 's/\([[0-9]]*\).*/\1/'`" -lt 4; then
945:
with_threads=yes fi ])
-
AC_ARG_WITH(zlib,
[
--without-zlib
no
gz
compression
support],
[],[with_zlib=yes])
-
AC_ARG_WITH(ssleay,
[
--with-ssleay support for the secure socket protocol (OBSOLETE)],[],[with_ssleay=no])
-
AC_ARG_WITH(mysql,
[
--without-mysql
no
support for the Mysql database],[],[with_mysql=yes])
-
AC_ARG_WITH(gif-rle,
[
--with-gif-rle use kind-of-rle packing instead of lzw])
-
AC_ARG_WITH(rsaref,
[
--with-rsaref
[
=path]
Support for RSAREF])
-
AC_ARG_WITH(checker,
[
--with-checker add extra memory checking overhead (Purify)])
-
MY_AC_ARG_WITH(profiling,
[
--with-profiling add code used to profile pike code
],[AC_DEFINE(PROFILING)])
-
AC_ARG_WITH(pg,
[
--with-pg
Use
the gcc -pg option],
-
[
-
if
test
"x$with_pg"
=
xyes;
then
-
PROFIL=-pg
-
else
-
PROFIL=
-
fi
-
],
-
[
-
PROFIL=
-
])
-
AC_ARG_WITH(poll,
[
--with-poll
use poll instead of select],[],[
+
AC_ARG_WITH(zlib,
MY_DESCR(
[--without-zlib
],[disable
gz
compression
support]),
+
[],[with_zlib=yes])
+
AC_ARG_WITH(ssleay,
+
MY_DESCR([
--with-ssleay
],
+
[
support for the secure socket protocol (OBSOLETE)]
)
,
+
[],[with_ssleay=no])
+
AC_ARG_WITH(mysql,
MY_DESCR([--without-mysql],
+
[disable
support for the Mysql database]
)
,
+
[],[with_mysql=yes])
+
AC_ARG_WITH(gif-rle,
MY_DESCR(
[--with-gif-rle
],
+
[
use kind-of-rle packing instead of lzw])
)
+
AC_ARG_WITH(rsaref,
MY_DESCR(
[--with-rsaref=path]
,[
Support for RSAREF])
)
+
AC_ARG_WITH(checker,
MY_DESCR(
[--with-checker
],
+
[
add extra memory checking overhead (Purify)])
)
+
MY_AC_ARG_WITH(profiling,
MY_DESCR(
[--with-profiling
],
+
[
add code used to profile pike code]
)
,
+
[AC_DEFINE(PROFILING)])
+
MY_
AC_ARG_WITH(pg,
MY_DESCR(
[--with-pg
],[use
the gcc -pg option]
)
,
+
[PROFIL=
-pg
])
+
AC_ARG_WITH(poll,
MY_DESCR(
[--with-poll
],
[
use poll instead of select]
)
,
[],
[
# Neither --with-poll nor --without-poll was specified case "$pike_cv_sys_os" in Solaris|HP-UX|OSF1|IRIX|Linux|Darwin|UnixWare|OpenUNIX)
984:
;; esac ])
-
AC_ARG_WITH(max-fd,
[
--with-max-fd=X set how many filedescriptors can be used at once],[pike_cv_max_open_fd=$withval])
-
AC_ARG_WITH(oob,
[
--without-oob
disable out-of-band data handling],[
+
AC_ARG_WITH(max-fd,
+
MY_DESCR([
--with-max-fd=X
],
+
[
set how many filedescriptors can be used at once]
)
,
+
[pike_cv_max_open_fd=$withval])
+
MY_
AC_ARG_WITH(oob,
MY_DESCR([--without-oob],
+
[
disable out-of-band data handling]
)
,[
],[
if test "$pike_cv_sys_os" = "Windows_NT"; then
-
if test "$with_oob" = "no"; then
+
AC_MSG_ERROR([Support for out of band data is mandatory on NT.]) else :; fi
-
else :; fi
+
],[with_oob=yes])
-
AC_ARG_WITH(thread-trace,
[
--without-thread-trace disable individual tracing of threads],[],[with_thread_trace=yes])
-
MY_AC_ARG_WITH(compiler-trace,
[
--with-compiler-trace enable tracing of the compiler],[AC_DEFINE(YYDEBUG)])
-
AC_ARG_WITH(security,
[
--with-security enable internal pike security system],[AC_DEFINE(PIKE_SECURITY)])
-
AC_ARG_WITH(bignums,
[
--without-bignums disable internal conversion to bignums],[],[with_bignums=yes])
-
AC_ARG_WITH(shared-nodes,
[
--without-shared-nodes disable the SHARED_NODES mode of the optimizer],[],[with_shared_nodes=yes])
-
AC_ARG_WITH(computed-goto,
[
--with-computed-goto
Enable
use of gcc-style computed goto (EXPERIMENTAL).], [], [with_computed_goto=no])
-
AC_ARG_WITH(machine-code,
[
--with-machine-code
Enable
use of machine code when possible (EXPERIMENTAL).])
+
AC_ARG_WITH(thread-trace,
MY_DESCR(
[--without-thread-trace
],
+
[
disable individual tracing of threads]
)
,
+
[],[with_thread_trace=yes])
+
MY_AC_ARG_WITH(compiler-trace,
MY_DESCR(
[--with-compiler-trace
],
+
[
enable tracing of the compiler]
)
,
+
[AC_DEFINE(YYDEBUG)])
+
AC_ARG_WITH(security,
MY_DESCR(
[--with-security
],
+
[
enable internal pike security system]
)
,
+
[AC_DEFINE(PIKE_SECURITY)])
+
AC_ARG_WITH(bignums,
MY_DESCR(
[--without-bignums
],
+
[
disable internal conversion to bignums]
)
,
+
[],[with_bignums=yes])
+
AC_ARG_WITH(shared-nodes,
+
MY_DESCR([
--without-shared-nodes
],
+
[
disable the SHARED_NODES mode of the optimizer]
)
,
+
[],[with_shared_nodes=yes])
+
AC_ARG_WITH(computed-goto,
+
MY_DESCR([
--with-computed-goto
],
+
[enable
use of gcc-style computed goto (EXPERIMENTAL).]
)
,
+
[], [with_computed_goto=no])
+
AC_ARG_WITH(machine-code,
+
MY_DESCR([
--with-machine-code
],
+
[enable
use of machine code when possible (EXPERIMENTAL).])
)
-
MY_AC_ARG_WITH(keypair-loop,
[
--with-keypair-loop
Enable
use of
the
keypair mapping loop method (EXPERIMENTAL).],[AC_DEFINE(PIKE_MAPPING_KEYPAIR_LOOP)])
+
MY_AC_ARG_WITH(keypair-loop,
+
MY_DESCR([
--with-keypair-loop
],
+
[enable
use of keypair mapping loop method (EXPERIMENTAL).]
)
,
+
[AC_DEFINE(PIKE_MAPPING_KEYPAIR_LOOP)])
-
MY_AC_ARG_WITH(lock,
[
--without-lock
Enable
experimental code for multicpu machines (EXPERIMENTAL).],[],[AC_DEFINE(PIKE_RUN_UNLOCKED)])
+
MY_AC_ARG_WITH(lock,
+
MY_DESCR([
--without-lock
],
+
[enable
experimental code for multicpu machines (EXPERIMENTAL).]
)
,
+
[],[AC_DEFINE(PIKE_RUN_UNLOCKED)])
# This makes configure default to --without-Perl # Remove this when the Perl module stops crashing and hanging. -Hubbe
-
AC_ARG_WITH(perl,
[
--with-perl
enable the embedded Perl module (EXPERIMENTAL)],[],
+
AC_ARG_WITH(perl,
MY_DESCR([--with-perl],
+
[
enable the embedded Perl module (EXPERIMENTAL)]
)
,
+
[],
[ac_configure_args="$ac_configure_args --without-perl" with_perl="no"
-
]
-
)
+
])
-
AC_ARG_WITH(pike-type,
[
--without-pike-type disable struct pike_type.])
+
AC_ARG_WITH(pike-type,
MY_DESCR(
[--without-pike-type
],
+
[
disable struct pike_type.])
)
if test "x$with_pike_type" = "xno"; then :; else echo 'Enabling the USE_PIKE_TYPE mode of the compiler.'