head 1.21; access; symbols OSSP_RC_0_7_3:1.21 OSSP_RC_0_7_2:1.21 OSSP_RC_0_7_1:1.20 OSSP_RC_ALPHA_06:1.18 OSSP_RC_EXBROKEN:1.18 OSSP_RC_SPEC:1.5; locks; strict; comment @# @; 1.21 date 2003.07.08.15.09.50; author mlelstv; state Exp; branches; next 1.20; 1.20 date 2003.07.07.13.30.51; author ms; state Exp; branches; next 1.19; 1.19 date 2003.07.07.12.55.42; author ms; state Exp; branches; next 1.18; 1.18 date 2002.04.24.16.49.08; author ms; state Exp; branches; next 1.17; 1.17 date 2002.04.23.12.30.29; author ms; state Exp; branches; next 1.16; 1.16 date 2002.04.08.15.37.10; author ms; state Exp; branches; next 1.15; 1.15 date 2002.03.26.17.11.06; author ms; state Exp; branches; next 1.14; 1.14 date 2002.02.12.17.59.50; author ms; state Exp; branches; next 1.13; 1.13 date 2002.02.08.18.35.03; author ms; state Exp; branches; next 1.12; 1.12 date 2002.02.07.15.37.09; author ms; state Exp; branches; next 1.11; 1.11 date 2002.02.06.16.56.33; author ms; state Exp; branches; next 1.10; 1.10 date 2002.02.05.19.11.45; author ms; state Exp; branches; next 1.9; 1.9 date 2002.02.05.17.29.17; author ms; state Exp; branches; next 1.8; 1.8 date 2002.02.04.22.35.20; author ms; state Exp; branches; next 1.7; 1.7 date 2002.02.04.22.19.29; author ms; state Exp; branches; next 1.6; 1.6 date 2002.02.04.21.46.00; author ms; state Exp; branches; next 1.5; 1.5 date 2002.01.30.17.29.15; author ms; state Exp; branches; next 1.4; 1.4 date 2002.01.25.16.02.42; author ms; state Exp; branches; next 1.3; 1.3 date 2002.01.17.15.47.10; author ms; state Exp; branches; next 1.2; 1.2 date 2002.01.10.20.05.35; author ms; state Exp; branches; next 1.1; 1.1 date 2002.01.08.15.47.11; author ms; state Exp; branches; next ; desc @@ 1.21 log @flush audit comments and changes @ text @dnl ## dnl ## OSSP rc - Run-Command Processor dnl ## Copyright (c) 2002-2003 Ralf S. Engelschall dnl ## Copyright (c) 2002-2003 Cable & Wireless Deutschland GmbH dnl ## Copyright (c) 2002-2003 The OSSP Project dnl ## dnl ## This file is part of OSSP rc, a portable run-command processor dnl ## which can be found at http://www.ossp.org/pkg/lib/rc/ dnl ## dnl ## Permission to use, copy, modify, and distribute this software for dnl ## any purpose with or without fee is hereby granted, provided that dnl ## the above copyright notice and this permission notice appear in all dnl ## copies. dnl ## dnl ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED dnl ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF dnl ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. dnl ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR dnl ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, dnl ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT dnl ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF dnl ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND dnl ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, dnl ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT dnl ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF dnl ## SUCH DAMAGE. dnl ## dnl ## configure.in: GNU Autoconf source script dnl ## dnl Version requirement and information AC_PREREQ(2.53)dnl AC_REVISION(1.0) dnl Announce the product and version V=`./shtool version -lc -dlong rc_version.c` ./shtool echo -e "Configuring %BOSSP rc%b, version %B${V}%b" echo "Copyright (c) 2002-2003 The OSSP Project " echo "Copyright (c) 2002-2003 Cable & Wireless Deutschland " dnl Process this file with autoconf AC_INIT(rc.h) AC_CONFIG_HEADER(ac_config.h) AC_LANG_C dnl Checks basic requirements AC_PROG_CC AC_PROG_CPP AC_PROG_CC_STDC AC_HEADER_STDC AC_PROG_INSTALL dnl Check for libtool dnl sinclude(libtool.m4) dnl AC_PROG_LIBTOOL dnl Check other requirements AC_PROG_MAKE_SET AC_CHECK_DEBUGGING AC_CHECK_LIB(socket, getprotobyname) AC_CHECK_LIB(nsl, gethostbyname) AC_CHECK_FUNCS(inet_pton inet_aton) AC_CHECK_FUNCS(setsid) AC_CHECK_HEADERS(sys/termios.h) dnl Check for Dmalloc library AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, [AC_DEFINE(DMALLOC, 1, [Define to 1 if building with dmalloc])]) dnl Check for OSSP popt library AC_CHECK_EXTLIB([OSSP popt], popt, popt_getcontext, popt.h, [SUBDIR_POPT=""], [SUBDIR_POPT="lib_popt" CPPFLAGS="$CPPFLAGS -Ilib_popt" CFLAGS="$CFLAGS -Ilib_popt" LDFLAGS="$LDFLAGS -Llib_popt/.libs" LIBS_EXTRA="$LIBS_EXTRA -lpopt"]) AC_SUBST(SUBDIR_POPT) dnl Check for OSSP ex library AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h, [SUBDIR_EX=""], [SUBDIR_EX="lib_ex" CPPFLAGS="$CPPFLAGS -Ilib_ex" CFLAGS="$CFLAGS -Ilib_ex" LDFLAGS="$LDFLAGS -Llib_ex/.libs" LIBS_EXTRA="$LIBS_EXTRA -lex"]) AC_SUBST(SUBDIR_EX) #dnl Check for OSSP str library #AC_CHECK_EXTLIB([OSSP str], # str, str_parse, str.h, # [SUBDIR_STR=""], # [SUBDIR_STR="rc_str" # CPPFLAGS="$CPPFLAGS -Irc_str" # CFLAGS="$CFLAGS -Irc_str" # LDFLAGS="$LDFLAGS -Lrc_str/.libs" # LIBS_EXTRA="$LIBS_EXTRA -lstr"]) #AC_SUBST(SUBDIR_STR) #dnl Check for OSSP var library #AC_CHECK_EXTLIB([OSSP var], # var, var_expand, var.h, # [SUBDIR_VAR=""], # [SUBDIR_VAR="rc_var" # CPPFLAGS="$CPPFLAGS -Irc_var" # CFLAGS="$CFLAGS -Irc_var" # LDFLAGS="$LDFLAGS -Lrc_var/.libs" # LIBS_EXTRA="$LIBS_EXTRA -lvar"]) #AC_SUBST(SUBDIR_VAR) #dnl Check for OSSP val library #AC_CHECK_EXTLIB([OSSP val], # val, val_expand, val.h, # [SUBDIR_VAL=""], # [SUBDIR_VAL="rc_val" # CPPFLAGS="$CPPFLAGS -Irc_val" # CFLAGS="$CFLAGS -Irc_val" # LDFLAGS="$LDFLAGS -Lrc_val/.libs" # LIBS_EXTRA="$LIBS_EXTRA -lval"]) #AC_SUBST(SUBDIR_VAL) dnl Extra library handling LIBS="$LIBS $LIBS_EXTRA" enable_shared=no export enable_shared enable_headline=no export enable_headline dnl Call other configure scripts AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_POPT]) #AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_STR $SUBDIR_VAR $SUBDIR_VAL $SUBDIR_POPT]) dnl Make all the necessary Makefiles #AC_CONFIG_FILES(Makefile) AC_OUTPUT(Makefile) dnl Remove these placeholders AC_PATH_PROG(FLEX, flex, true) AC_CHECK_LIB(nsl, gethostname) AC_CHECK_LIB(socket, accept) AC_CHECK_HEADERS(sys/time.h) AC_CHECK_FUNCS(inet_aton inet_pton inet_ntoa inet_ntop setitimer) @ 1.20 log @More header corrections and improvements. @ text @d75 4 a78 4 [SUBDIR_POPT="rc_popt" CPPFLAGS="$CPPFLAGS -Irc_popt" CFLAGS="$CFLAGS -Irc_popt" LDFLAGS="$LDFLAGS -Lrc_popt/.libs" d86 4 a89 4 [SUBDIR_EX="rc_ex" CPPFLAGS="$CPPFLAGS -Irc_ex" CFLAGS="$CFLAGS -Irc_ex" LDFLAGS="$LDFLAGS -Lrc_ex/.libs" @ 1.19 log @Correct and update copyrights and source headers. @ text @d2 1 a2 1 dnl ## OSSP rc - Run-command processor d7 1 a7 1 dnl ## This file is part of OSSP rc, a portable Run-command processor @ 1.18 log @Remove OSSP str from build configuration, because it is not used. @ text @d3 3 a5 3 dnl ## Copyright (c) 2002 Ralf S. Engelschall dnl ## Copyright (c) 2002 Cable & Wireless Deutschland GmbH dnl ## Copyright (c) 2002 The OSSP Project d38 2 a39 2 echo "Copyright (c) 2002 The OSSP Project " echo "Copyright (c) 2002 Cable & Wireless Deutschland " @ 1.17 log @Added OSSP str back to build configuration, and used it for output formatting. Added pieces of rc file and section command line parsing logic. @ text @d93 10 a102 10 dnl Check for OSSP str library AC_CHECK_EXTLIB([OSSP str], str, str_parse, str.h, [SUBDIR_STR=""], [SUBDIR_STR="rc_str" CPPFLAGS="$CPPFLAGS -Irc_str" CFLAGS="$CFLAGS -Irc_str" LDFLAGS="$LDFLAGS -Lrc_str/.libs" LIBS_EXTRA="$LIBS_EXTRA -lstr"]) AC_SUBST(SUBDIR_STR) d134 1 a134 1 AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_STR $SUBDIR_POPT]) @ 1.16 log @Bring build back to life and remove val code. @ text @d93 10 a102 10 #dnl Check for OSSP str library #AC_CHECK_EXTLIB([OSSP str], # str, str_parse, str.h, # [SUBDIR_STR=""], # [SUBDIR_STR="rc_str" # CPPFLAGS="$CPPFLAGS -Irc_str" # CFLAGS="$CFLAGS -Irc_str" # LDFLAGS="$LDFLAGS -Lrc_str/.libs" # LIBS_EXTRA="$LIBS_EXTRA -lstr"]) #AC_SUBST(SUBDIR_STR) d134 1 a134 1 AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_POPT]) @ 1.15 log @Vacation flush, mostly build configuration details. Its not building very clean right now. @ text @d93 10 a102 10 dnl Check for OSSP str library AC_CHECK_EXTLIB([OSSP str], str, str_parse, str.h, [SUBDIR_STR=""], [SUBDIR_STR="rc_str" CPPFLAGS="$CPPFLAGS -Irc_str" CFLAGS="$CFLAGS -Irc_str" LDFLAGS="$LDFLAGS -Lrc_str/.libs" LIBS_EXTRA="$LIBS_EXTRA -lstr"]) AC_SUBST(SUBDIR_STR) d104 10 a113 10 dnl Check for OSSP var library AC_CHECK_EXTLIB([OSSP var], var, var_expand, var.h, [SUBDIR_VAR=""], [SUBDIR_VAR="rc_var" CPPFLAGS="$CPPFLAGS -Irc_var" CFLAGS="$CFLAGS -Irc_var" LDFLAGS="$LDFLAGS -Lrc_var/.libs" LIBS_EXTRA="$LIBS_EXTRA -lvar"]) AC_SUBST(SUBDIR_VAR) d115 10 a124 10 dnl Check for OSSP val library AC_CHECK_EXTLIB([OSSP val], val, val_expand, val.h, [SUBDIR_VAL=""], [SUBDIR_VAL="rc_val" CPPFLAGS="$CPPFLAGS -Irc_val" CFLAGS="$CFLAGS -Irc_val" LDFLAGS="$LDFLAGS -Lrc_val/.libs" LIBS_EXTRA="$LIBS_EXTRA -lval"]) AC_SUBST(SUBDIR_VAL) d134 2 a135 1 AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_STR $SUBDIR_VAR $SUBDIR_VAL $SUBDIR_POPT]) @ 1.14 log @Cleanup. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d3 1 a5 1 dnl ## Copyright (c) 2002 Ralf S. Engelschall d8 1 a8 1 dnl ## which can be found at http://www.ossp.org/pkg/rc/ d32 1 a32 1 AC_PREREQ(2.52)dnl a35 1 AC_DIVERT_PUSH(NOTICE) d37 1 a37 1 ./shtool echo -e "Configuring %BOSSP rc%b, Version %B${V}%b" a39 1 AC_DIVERT_POP() d58 1 a58 1 AC_SET_MAKE d69 1 a69 1 AC_DEFINE(DMALLOC)) @ 1.13 log @Use OSSP val library. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d96 1 a96 1 AC_CHECK_EXTLIB([OSSP Str], d107 1 a107 1 AC_CHECK_EXTLIB([OSSP Var], d118 1 a118 1 AC_CHECK_EXTLIB([OSSP Val], @ 1.12 log @Fix build configuration. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d45 1 a45 1 AC_CONFIG_HEADER(rc_config.h) d117 11 d136 1 a136 1 AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_STR $SUBDIR_VAR $SUBDIR_POPT]) @ 1.11 log @Small build configuration changes, including some building with OSSP ex. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @a60 2 AC_PROG_CC AC_PROG_CPP @ 1.10 log @Rc can build again, at least with static library linking. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d39 2 a40 2 echo "Copyright (c) 2001-2002 The OSSP Project " echo "Copyright (c) 2001-2002 Cable & Wireless Deutschland " d54 4 @ 1.9 log @Transition flush. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @a54 3 sinclude(libtool.m4) AC_PROG_LIBTOOL d118 4 @ 1.8 log @Fixed copyright. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d37 1 a37 1 V=`./shtool version -lc -dlong version.c` d54 3 @ 1.7 log @More configuration changes, trying to fix the build. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d2 1 a2 1 dnl ## OSSP rc - Runcommand processor d7 1 a7 1 dnl ## This file is part of OSSP rc, a portable Runcommand processor @ 1.6 log @Changed to rc_config.h.in and some other build configuration corrections. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d80 1 a80 1 AC_SUBST(SUBDIR_EX) @ 1.5 log @Refresh current project state, add OSSP ex library, corrections. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d45 1 a45 1 AC_CONFIG_HEADER(config.h) d71 11 d86 4 a89 4 [SUBDIR_EX="lib_ex" CPPFLAGS="$CPPFLAGS -Ilib_ex" CFLAGS="$CFLAGS -Ilib_ex" LDFLAGS="$LDFLAGS -Llib_ex/.libs" d119 1 a119 1 AC_CONFIG_SUBDIRS([@@SUBDIR_EX@@ $SUBDIR_STR $SUBDIR_VAR]) @ 1.4 log @Undo still more automake logic, add build system macros and autoconf logic. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d71 12 a82 1 dnl Check for OSSP Str library d93 1 a93 1 dnl Check for OSSP Var library d108 1 a108 1 AC_CONFIG_SUBDIRS([$SUBDIR_STR $SUBDIR_VAR]) @ 1.3 log @Documentation and small configuration changes. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d35 9 a43 1 dnl Process this file with autoconf to produce a configure script d45 1 a45 2 AM_INIT_AUTOMAKE(rc, 0.0.1) AM_CONFIG_HEADER(config.h) d48 1 a48 1 dnl Checks requirements d50 2 a51 2 AM_PROG_LIBTOOL AM_PROG_CC_STDC d55 44 d100 1 d103 1 a103 1 dnl Remove me @ 1.2 log @Build configuration corrections and small cleanups. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d41 1 a41 1 dnl Checks for programs d44 2 d51 1 a51 1 dnl Checking existence @ 1.1 log @Second birth of project OSSP rc. PR: Submitted by: Reviewed by: Approved by: Obtained from: @ text @d2 1 a2 1 dnl ## rc - OSSP Runcommand processor @