"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "aclocal.m4" between
c_count-7.15.tgz and c_count-7.16.tgz

About: c_count counts lines, statements, other simple measures of C/C++ source programs.

aclocal.m4  (c_count-7.15.tgz):aclocal.m4  (c_count-7.16.tgz)
dnl $Id: aclocal.m4,v 7.13 2014/09/22 20:02:10 tom Exp $ dnl $Id: aclocal.m4,v 7.15 2015/07/06 00:04:29 tom Exp $
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl dnl
dnl See also dnl See also
dnl http://invisible-island.net/autoconf/ dnl http://invisible-island.net/autoconf/
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_ADD_CFLAGS version: 11 updated: 2014/07/22 05:32:57 dnl CF_ADD_CFLAGS version: 12 updated: 2015/04/12 15:39:00
dnl ------------- dnl -------------
dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS
dnl The second parameter if given makes this macro verbose. dnl The second parameter if given makes this macro verbose.
dnl dnl
dnl Put any preprocessor definitions that use quoted strings in $EXTRA_CPPFLAGS, dnl Put any preprocessor definitions that use quoted strings in $EXTRA_CPPFLAGS,
dnl to simplify use of $CPPFLAGS in compiler checks, etc., that are easily dnl to simplify use of $CPPFLAGS in compiler checks, etc., that are easily
dnl confused by the quotes (which require backslashes to keep them usable). dnl confused by the quotes (which require backslashes to keep them usable).
AC_DEFUN([CF_ADD_CFLAGS], AC_DEFUN([CF_ADD_CFLAGS],
[ [
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
for cf_add_cflags in $1 for cf_add_cflags in $1
do do
case $cf_fix_cppflags in case $cf_fix_cppflags in
no) (no)
case $cf_add_cflags in #(vi case $cf_add_cflags in
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
case $cf_add_cflags in case $cf_add_cflags in
-D*) (-D*)
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[[^=]] *='\''\"[[^"]]*//'` cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[[^=]] *='\''\"[[^"]]*//'`
test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
&& test -z "${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \
&& cf_fix_cppflags=yes && cf_fix_cppflags=yes
if test $cf_fix_cppflags = yes ; then if test $cf_fix_cppflags = yes ; then
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf _add_cflags" cf_new_extra_cppflags="$cf_new_extra_cppflags $cf _add_cflags"
continue continue
elif test "${cf_tst_cflags}" = "\"'" ; then elif test "${cf_tst_cflags}" = "\"'" ; then
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf _add_cflags" cf_new_extra_cppflags="$cf_new_extra_cppflags $cf _add_cflags"
continue continue
fi fi
;; ;;
esac esac
case "$CPPFLAGS" in case "$CPPFLAGS" in
*$cf_add_cflags) #(vi (*$cf_add_cflags)
;; ;;
*) #(vi (*)
case $cf_add_cflags in #(vi case $cf_add_cflags in
-D*) (-D*)
cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,$cf_tst_cppfl ags) CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,$cf_tst_cppfl ags)
;; ;;
esac esac
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
;; ;;
esac esac
;; ;;
*) (*)
cf_new_cflags="$cf_new_cflags $cf_add_cflags" cf_new_cflags="$cf_new_cflags $cf_add_cflags"
;; ;;
esac esac
;; ;;
yes) (yes)
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[[^"]]*"'\''//'` cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[[^"]]*"'\''//'`
test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
&& test -z "${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \
&& cf_fix_cppflags=no && cf_fix_cppflags=no
;; ;;
esac esac
done done
skipping to change at line 180 skipping to change at line 180
dnl Allow user to disable a normally-on option. dnl Allow user to disable a normally-on option.
AC_DEFUN([CF_ARG_DISABLE], AC_DEFUN([CF_ARG_DISABLE],
[CF_ARG_OPTION($1,[$2],[$3],[$4],yes)])dnl [CF_ARG_OPTION($1,[$2],[$3],[$4],yes)])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_ARG_ENABLE version: 3 updated: 1999/03/30 17:24:31 dnl CF_ARG_ENABLE version: 3 updated: 1999/03/30 17:24:31
dnl ------------- dnl -------------
dnl Allow user to enable a normally-off option. dnl Allow user to enable a normally-off option.
AC_DEFUN([CF_ARG_ENABLE], AC_DEFUN([CF_ARG_ENABLE],
[CF_ARG_OPTION($1,[$2],[$3],[$4],no)])dnl [CF_ARG_OPTION($1,[$2],[$3],[$4],no)])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_ARG_OPTION version: 4 updated: 2010/05/26 05:38:42 dnl CF_ARG_OPTION version: 5 updated: 2015/05/10 19:52:14
dnl ------------- dnl -------------
dnl Restricted form of AC_ARG_ENABLE that ensures user doesn't give bogus dnl Restricted form of AC_ARG_ENABLE that ensures user doesn't give bogus
dnl values. dnl values.
dnl dnl
dnl Parameters: dnl Parameters:
dnl $1 = option name dnl $1 = option name
dnl $2 = help-string dnl $2 = help-string
dnl $3 = action to perform if option is not default dnl $3 = action to perform if option is not default
dnl $4 = action if perform if option is default dnl $4 = action if perform if option is default
dnl $5 = default option value (either 'yes' or 'no') dnl $5 = default option value (either 'yes' or 'no')
AC_DEFUN([CF_ARG_OPTION], AC_DEFUN([CF_ARG_OPTION],
[AC_ARG_ENABLE([$1],[$2],[test "$enableval" != ifelse([$5],no,yes,no) && enablev al=ifelse([$5],no,no,yes) [AC_ARG_ENABLE([$1],[$2],[test "$enableval" != ifelse([$5],no,yes,no) && enablev al=ifelse([$5],no,no,yes)
if test "$enableval" != "$5" ; then if test "$enableval" != "$5" ; then
ifelse([$3],,[ :]dnl ifelse([$3],,[ :]dnl
,[ $3]) ifelse([$4],,,[ ,[ $3]) ifelse([$4],,,[
else else
$4]) $4])
fi],[enableval=$5 ifelse([$4],,,[ fi],[enableval=$5 ifelse([$4],,,[
$4 $4
])dnl ])dnl
])])dnl ])])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_CC_ENV_FLAGS version: 1 updated: 2012/10/03 05:25:49 dnl CF_CC_ENV_FLAGS version: 2 updated: 2015/04/12 15:39:00
dnl --------------- dnl ---------------
dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
dnl into CC. This will not help with broken scripts that wrap the compiler with dnl into CC. This will not help with broken scripts that wrap the compiler with
dnl options, but eliminates a more common category of user confusion. dnl options, but eliminates a more common category of user confusion.
AC_DEFUN([CF_CC_ENV_FLAGS], AC_DEFUN([CF_CC_ENV_FLAGS],
[ [
# This should have been defined by AC_PROG_CC # This should have been defined by AC_PROG_CC
: ${CC:=cc} : ${CC:=cc}
AC_MSG_CHECKING(\$CC variable) AC_MSG_CHECKING(\$CC variable)
case "$CC" in #(vi case "$CC" in
*[[\ \ ]]-[[IUD]]*) (*[[\ \ ]]-[[IUD]]*)
AC_MSG_RESULT(broken) AC_MSG_RESULT(broken)
AC_MSG_WARN(your environment misuses the CC variable to hold CFLAGS/CPPFL AGS options) AC_MSG_WARN(your environment misuses the CC variable to hold CFLAGS/CPPFL AGS options)
# humor him... # humor him...
cf_flags=`echo "$CC" | sed -e 's/^[[^ ]]*[[ ]]//'` cf_flags=`echo "$CC" | sed -e 's/^[[^ ]]*[[ ]]//'`
CC=`echo "$CC" | sed -e 's/[[ ]].*//'` CC=`echo "$CC" | sed -e 's/[[ ]].*//'`
CF_ADD_CFLAGS($cf_flags) CF_ADD_CFLAGS($cf_flags)
;; ;;
*) (*)
AC_MSG_RESULT(ok) AC_MSG_RESULT(ok)
;; ;;
esac esac
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_CHECK_CACHE version: 12 updated: 2012/10/02 20:55:03 dnl CF_CHECK_CACHE version: 12 updated: 2012/10/02 20:55:03
dnl -------------- dnl --------------
dnl Check if we're accidentally using a cache from a different machine. dnl Check if we're accidentally using a cache from a different machine.
dnl Derive the system name, as a check for reusing the autoconf cache. dnl Derive the system name, as a check for reusing the autoconf cache.
dnl dnl
skipping to change at line 297 skipping to change at line 297
make an error make an error
#endif #endif
],[ifelse([$2],,CLANG_COMPILER,[$2])=yes ],[ifelse([$2],,CLANG_COMPILER,[$2])=yes
cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
],[]) ],[])
ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS" ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS"
AC_MSG_RESULT($ifelse([$2],,CLANG_COMPILER,[$2])) AC_MSG_RESULT($ifelse([$2],,CLANG_COMPILER,[$2]))
fi fi
]) ])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_DISABLE_ECHO version: 12 updated: 2012/10/06 16:30:28 dnl CF_DISABLE_ECHO version: 13 updated: 2015/04/18 08:56:57
dnl --------------- dnl ---------------
dnl You can always use "make -n" to see the actual options, but it's hard to dnl You can always use "make -n" to see the actual options, but it's hard to
dnl pick out/analyze warning messages when the compile-line is long. dnl pick out/analyze warning messages when the compile-line is long.
dnl dnl
dnl Sets: dnl Sets:
dnl ECHO_LT - symbol to control if libtool is verbose dnl ECHO_LT - symbol to control if libtool is verbose
dnl ECHO_LD - symbol to prefix "cc -o" lines dnl ECHO_LD - symbol to prefix "cc -o" lines
dnl RULE_CC - symbol to put before implicit "cc -c" lines (e.g., .c.o) dnl RULE_CC - symbol to put before implicit "cc -c" lines (e.g., .c.o)
dnl SHOW_CC - symbol to put before explicit "cc -c" lines dnl SHOW_CC - symbol to put before explicit "cc -c" lines
dnl ECHO_CC - symbol to put before any "cc" line dnl ECHO_CC - symbol to put before any "cc" line
dnl dnl
AC_DEFUN([CF_DISABLE_ECHO],[ AC_DEFUN([CF_DISABLE_ECHO],[
AC_MSG_CHECKING(if you want to see long compiling messages) AC_MSG_CHECKING(if you want to see long compiling messages)
CF_ARG_DISABLE(echo, CF_ARG_DISABLE(echo,
[ --disable-echo do not display "compiling" commands], [ --disable-echo do not display "compiling" commands],
[ [
ECHO_LT='--silent' ECHO_LT='--silent'
ECHO_LD='@echo linking [$]@;' ECHO_LD='@echo linking [$]@;'
RULE_CC='@echo compiling [$]<' RULE_CC='@echo compiling [$]<'
SHOW_CC='@echo compiling [$]@' SHOW_CC='@echo compiling [$]@'
ECHO_CC='@' ECHO_CC='@'
],[ ],[
ECHO_LT='' ECHO_LT=''
ECHO_LD='' ECHO_LD=''
RULE_CC='' RULE_CC=''
SHOW_CC='' SHOW_CC=''
ECHO_CC='' ECHO_CC=''
]) ])
AC_MSG_RESULT($enableval) AC_MSG_RESULT($enableval)
AC_SUBST(ECHO_LT) AC_SUBST(ECHO_LT)
AC_SUBST(ECHO_LD) AC_SUBST(ECHO_LD)
AC_SUBST(RULE_CC) AC_SUBST(RULE_CC)
AC_SUBST(SHOW_CC) AC_SUBST(SHOW_CC)
AC_SUBST(ECHO_CC) AC_SUBST(ECHO_CC)
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_DISABLE_LEAKS version: 7 updated: 2012/10/02 20:55:03 dnl CF_DISABLE_LEAKS version: 7 updated: 2012/10/02 20:55:03
skipping to change at line 377 skipping to change at line 377
[with_warnings=no]) [with_warnings=no])
AC_MSG_RESULT($with_warnings) AC_MSG_RESULT($with_warnings)
if test "$with_warnings" = "yes" if test "$with_warnings" = "yes"
then then
CF_GCC_ATTRIBUTES CF_GCC_ATTRIBUTES
CF_GCC_WARNINGS CF_GCC_WARNINGS
fi fi
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_GCC_ATTRIBUTES version: 16 updated: 2012/10/02 20:55:03 dnl CF_GCC_ATTRIBUTES version: 17 updated: 2015/04/12 15:39:00
dnl ----------------- dnl -----------------
dnl Test for availability of useful gcc __attribute__ directives to quiet dnl Test for availability of useful gcc __attribute__ directives to quiet
dnl compiler warnings. Though useful, not all are supported -- and contrary dnl compiler warnings. Though useful, not all are supported -- and contrary
dnl to documentation, unrecognized directives cause older compilers to barf. dnl to documentation, unrecognized directives cause older compilers to barf.
AC_DEFUN([CF_GCC_ATTRIBUTES], AC_DEFUN([CF_GCC_ATTRIBUTES],
[ [
if test "$GCC" = yes if test "$GCC" = yes
then then
cat > conftest.i <<EOF cat > conftest.i <<EOF
#ifndef GCC_PRINTF #ifndef GCC_PRINTF
skipping to change at line 431 skipping to change at line 431
int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { return 0; } int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { return 0; }
EOF EOF
cf_printf_attribute=no cf_printf_attribute=no
cf_scanf_attribute=no cf_scanf_attribute=no
for cf_attribute in scanf printf unused noreturn for cf_attribute in scanf printf unused noreturn
do do
CF_UPPER(cf_ATTRIBUTE,$cf_attribute) CF_UPPER(cf_ATTRIBUTE,$cf_attribute)
cf_directive="__attribute__(($cf_attribute))" cf_directive="__attribute__(($cf_attribute))"
echo "checking for $CC $cf_directive" 1>&AC_FD_CC echo "checking for $CC $cf_directive" 1>&AC_FD_CC
case $cf_attribute in #(vi case $cf_attribute in
printf) #(vi (printf)
cf_printf_attribute=yes cf_printf_attribute=yes
cat >conftest.h <<EOF cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE 1 #define GCC_$cf_ATTRIBUTE 1
EOF EOF
;; ;;
scanf) #(vi (scanf)
cf_scanf_attribute=yes cf_scanf_attribute=yes
cat >conftest.h <<EOF cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE 1 #define GCC_$cf_ATTRIBUTE 1
EOF EOF
;; ;;
*) #(vi (*)
cat >conftest.h <<EOF cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE $cf_directive #define GCC_$cf_ATTRIBUTE $cf_directive
EOF EOF
;; ;;
esac esac
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
test -n "$verbose" && AC_MSG_RESULT(... $cf_attribute) test -n "$verbose" && AC_MSG_RESULT(... $cf_attribute)
cat conftest.h >>confdefs.h cat conftest.h >>confdefs.h
case $cf_attribute in #(vi case $cf_attribute in
noreturn) #(vi (noreturn)
AC_DEFINE_UNQUOTED(GCC_NORETURN,$cf_directive,[De fine to noreturn-attribute for gcc]) AC_DEFINE_UNQUOTED(GCC_NORETURN,$cf_directive,[De fine to noreturn-attribute for gcc])
;; ;;
printf) #(vi (printf)
cf_value='/* nothing */' cf_value='/* nothing */'
if test "$cf_printf_attribute" != no ; then if test "$cf_printf_attribute" != no ; then
cf_value='__attribute__((format(printf,fm t,var)))' cf_value='__attribute__((format(printf,fm t,var)))'
AC_DEFINE(GCC_PRINTF,1,[Define to 1 if th e compiler supports gcc-like printf attribute.]) AC_DEFINE(GCC_PRINTF,1,[Define to 1 if th e compiler supports gcc-like printf attribute.])
fi fi
AC_DEFINE_UNQUOTED(GCC_PRINTFLIKE(fmt,var),$cf_va lue,[Define to printf-attribute for gcc]) AC_DEFINE_UNQUOTED(GCC_PRINTFLIKE(fmt,var),$cf_va lue,[Define to printf-attribute for gcc])
;; ;;
scanf) #(vi (scanf)
cf_value='/* nothing */' cf_value='/* nothing */'
if test "$cf_scanf_attribute" != no ; then if test "$cf_scanf_attribute" != no ; then
cf_value='__attribute__((format(scanf,fmt ,var)))' cf_value='__attribute__((format(scanf,fmt ,var)))'
AC_DEFINE(GCC_SCANF,1,[Define to 1 if the compiler supports gcc-like scanf attribute.]) AC_DEFINE(GCC_SCANF,1,[Define to 1 if the compiler supports gcc-like scanf attribute.])
fi fi
AC_DEFINE_UNQUOTED(GCC_SCANFLIKE(fmt,var),$cf_val ue,[Define to sscanf-attribute for gcc]) AC_DEFINE_UNQUOTED(GCC_SCANFLIKE(fmt,var),$cf_val ue,[Define to sscanf-attribute for gcc])
;; ;;
unused) #(vi (unused)
AC_DEFINE_UNQUOTED(GCC_UNUSED,$cf_directive,[Defi ne to unused-attribute for gcc]) AC_DEFINE_UNQUOTED(GCC_UNUSED,$cf_directive,[Defi ne to unused-attribute for gcc])
;; ;;
esac esac
fi fi
done done
else else
fgrep define conftest.i >>confdefs.h fgrep define conftest.i >>confdefs.h
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
skipping to change at line 501 skipping to change at line 501
AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_CC])
GCC_VERSION=none GCC_VERSION=none
if test "$GCC" = yes ; then if test "$GCC" = yes ; then
AC_MSG_CHECKING(version of $CC) AC_MSG_CHECKING(version of $CC)
GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[[ ^)]]*) //' -e 's/^.*(Debian[[^)]]*) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*// '`" GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[[ ^)]]*) //' -e 's/^.*(Debian[[^)]]*) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*// '`"
test -z "$GCC_VERSION" && GCC_VERSION=unknown test -z "$GCC_VERSION" && GCC_VERSION=unknown
AC_MSG_RESULT($GCC_VERSION) AC_MSG_RESULT($GCC_VERSION)
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_GCC_WARNINGS version: 31 updated: 2013/11/19 19:23:35 dnl CF_GCC_WARNINGS version: 32 updated: 2015/04/12 15:39:00
dnl --------------- dnl ---------------
dnl Check if the compiler supports useful warning options. There's a few that dnl Check if the compiler supports useful warning options. There's a few that
dnl we don't use, simply because they're too noisy: dnl we don't use, simply because they're too noisy:
dnl dnl
dnl -Wconversion (useful in older versions of gcc, but not in gcc 2.7.x) dnl -Wconversion (useful in older versions of gcc, but not in gcc 2.7.x)
dnl -Wredundant-decls (system headers make this too noisy) dnl -Wredundant-decls (system headers make this too noisy)
dnl -Wtraditional (combines too many unrelated messages, only a few useful) dnl -Wtraditional (combines too many unrelated messages, only a few useful)
dnl -Wwrite-strings (too noisy, but should review occasionally). This dnl -Wwrite-strings (too noisy, but should review occasionally). This
dnl is enabled for ncurses using "--enable-const". dnl is enabled for ncurses using "--enable-const".
dnl -pedantic dnl -pedantic
skipping to change at line 593 skipping to change at line 593
Wmissing-prototypes \ Wmissing-prototypes \
Wnested-externs \ Wnested-externs \
Wpointer-arith \ Wpointer-arith \
Wshadow \ Wshadow \
Wstrict-prototypes \ Wstrict-prototypes \
Wundef $cf_gcc_warnings $cf_warn_CONST $1 Wundef $cf_gcc_warnings $cf_warn_CONST $1
do do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
test -n "$verbose" && AC_MSG_RESULT(... -$cf_opt) test -n "$verbose" && AC_MSG_RESULT(... -$cf_opt)
case $cf_opt in #(vi case $cf_opt in
Wcast-qual) #(vi (Wcast-qual)
CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
;; ;;
Winline) #(vi (Winline)
case $GCC_VERSION in case $GCC_VERSION in
[[34]].*) ([[34]].*)
CF_VERBOSE(feature is broken in gcc $GCC_ VERSION) CF_VERBOSE(feature is broken in gcc $GCC_ VERSION)
continue;; continue;;
esac esac
;; ;;
Wpointer-arith) #(vi (Wpointer-arith)
case $GCC_VERSION in case $GCC_VERSION in
[[12]].*) ([[12]].*)
CF_VERBOSE(feature is broken in gcc $GCC_ VERSION) CF_VERBOSE(feature is broken in gcc $GCC_ VERSION)
continue;; continue;;
esac esac
;; ;;
esac esac
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
fi fi
done done
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
fi fi
skipping to change at line 648 skipping to change at line 648
done done
]) ])
if test $cf_cv_getopt_header != none ; then if test $cf_cv_getopt_header != none ; then
AC_DEFINE(HAVE_GETOPT_HEADER,1,[Define to 1 if getopt variables are decla red in header]) AC_DEFINE(HAVE_GETOPT_HEADER,1,[Define to 1 if getopt variables are decla red in header])
fi fi
if test $cf_cv_getopt_header = getopt.h ; then if test $cf_cv_getopt_header = getopt.h ; then
AC_DEFINE(NEED_GETOPT_H,1,[Define to 1 if we must include getopt.h]) AC_DEFINE(NEED_GETOPT_H,1,[Define to 1 if we must include getopt.h])
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_INTEL_COMPILER version: 6 updated: 2014/03/17 13:13:07 dnl CF_INTEL_COMPILER version: 7 updated: 2015/04/12 15:39:00
dnl ----------------- dnl -----------------
dnl Check if the given compiler is really the Intel compiler for Linux. It dnl Check if the given compiler is really the Intel compiler for Linux. It
dnl tries to imitate gcc, but does not return an error when it finds a mismatch dnl tries to imitate gcc, but does not return an error when it finds a mismatch
dnl between prototypes, e.g., as exercised by CF_MISSING_CHECK. dnl between prototypes, e.g., as exercised by CF_MISSING_CHECK.
dnl dnl
dnl This macro should be run "soon" after AC_PROG_CC or AC_PROG_CPLUSPLUS, to dnl This macro should be run "soon" after AC_PROG_CC or AC_PROG_CPLUSPLUS, to
dnl ensure that it is not mistaken for gcc/g++. It is normally invoked from dnl ensure that it is not mistaken for gcc/g++. It is normally invoked from
dnl the wrappers for gcc and g++ warnings. dnl the wrappers for gcc and g++ warnings.
dnl dnl
dnl $1 = GCC (default) or GXX dnl $1 = GCC (default) or GXX
dnl $2 = INTEL_COMPILER (default) or INTEL_CPLUSPLUS dnl $2 = INTEL_COMPILER (default) or INTEL_CPLUSPLUS
dnl $3 = CFLAGS (default) or CXXFLAGS dnl $3 = CFLAGS (default) or CXXFLAGS
AC_DEFUN([CF_INTEL_COMPILER],[ AC_DEFUN([CF_INTEL_COMPILER],[
AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_CANONICAL_HOST])
ifelse([$2],,INTEL_COMPILER,[$2])=no ifelse([$2],,INTEL_COMPILER,[$2])=no
if test "$ifelse([$1],,[$1],GCC)" = yes ; then if test "$ifelse([$1],,[$1],GCC)" = yes ; then
case $host_os in case $host_os in
linux*|gnu*) (linux*|gnu*)
AC_MSG_CHECKING(if this is really Intel ifelse([$1],GXX,C++,C) co mpiler) AC_MSG_CHECKING(if this is really Intel ifelse([$1],GXX,C++,C) co mpiler)
cf_save_CFLAGS="$ifelse([$3],,CFLAGS,[$3])" cf_save_CFLAGS="$ifelse([$3],,CFLAGS,[$3])"
ifelse([$3],,CFLAGS,[$3])="$ifelse([$3],,CFLAGS,[$3]) -no-gcc" ifelse([$3],,CFLAGS,[$3])="$ifelse([$3],,CFLAGS,[$3]) -no-gcc"
AC_TRY_COMPILE([],[ AC_TRY_COMPILE([],[
#ifdef __INTEL_COMPILER #ifdef __INTEL_COMPILER
#else #else
make an error make an error
#endif #endif
],[ifelse([$2],,INTEL_COMPILER,[$2])=yes ],[ifelse([$2],,INTEL_COMPILER,[$2])=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147" cf_save_CFLAGS="$cf_save_CFLAGS -we147"
],[]) ],[])
ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS" ifelse([$3],,CFLAGS,[$3])="$cf_save_CFLAGS"
AC_MSG_RESULT($ifelse([$2],,INTEL_COMPILER,[$2])) AC_MSG_RESULT($ifelse([$2],,INTEL_COMPILER,[$2]))
;; ;;
esac esac
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_MAKE_DOCS version: 3 updated: 2014/01/05 13:21:25 dnl CF_MAKE_DOCS version: 4 updated: 2015/07/04 21:43:03
dnl ------------ dnl ------------
dnl $1 = name(s) to generate rules for dnl $1 = name(s) to generate rules for
dnl $2 = suffix of corresponding manpages used as input. dnl $2 = suffix of corresponding manpages used as input.
dnl
dnl This works best if called at the end of configure.in, following CF_WITH_MAN2
HTML
define([CF_MAKE_DOCS],[ define([CF_MAKE_DOCS],[
test -z "$cf_make_docs" && cf_make_docs=0 test -z "$cf_make_docs" && cf_make_docs=0
cf_output=makefile cf_output=makefile
test -f "$cf_output" || cf_output=Makefile test -f "$cf_output" || cf_output=Makefile
if test "$cf_make_docs" = 0 if test "$cf_make_docs" = 0
then then
cat >>$cf_output <<"CF_EOF" cat >>$cf_output <<CF_EOF
################################################################################ ################################################################################
## generated by $0
.SUFFIXES : .html .$2 .man .ps .pdf .txt .SUFFIXES : .html .$2 .man .ps .pdf .txt
.$2.html : ${NROFF_NOTE}.$2.txt :
GROFF_NO_SGR=stupid [$](SHELL) -c "tbl [$]*.$2 | groff -P -o0 -I$*_ -Thtm ${NROFF_NOTE} [\$](SHELL) -c "tbl [\$]*.$2 | nroff -man | col -bx" >[\$]@
l -man" >[$]@
.$2.ps :
[$](SHELL) -c "tbl [$]*.$2 | groff -man" >[$]@
.$2.txt : ${GROFF_NOTE}.ps.pdf :
GROFF_NO_SGR=stupid [$](SHELL) -c "tbl [$]*.$2 | nroff -Tascii -man | col ${GROFF_NOTE} ps2pdf [\$]*.ps
-bx" >[$]@ ${GROFF_NOTE}
${GROFF_NOTE}.$2.ps :
${GROFF_NOTE} [\$](SHELL) -c "tbl [\$]*.$2 | groff -man" >[\$]@
${GROFF_NOTE}
${GROFF_NOTE}.$2.txt :
${GROFF_NOTE} GROFF_NO_SGR=stupid [\$](SHELL) -c "tbl [\$]*.$2 | nroff -Tascii
-man | col -bx" >[\$]@
man | col -bx" <span class="insert">&gt;[\$]@</span> ${MAN2HTML_NOTE}.$2.html :
.ps.pdf : ${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} [\$]* $2 man >[\$]@
ps2pdf [$]*.ps
CF_EOF CF_EOF
cf_make_docs=1 cf_make_docs=1
fi fi
for cf_name in $1 for cf_name in $1
do do
cat >>$cf_output <<CF_EOF cat >>$cf_output <<CF_EOF
################################################################################ ################################################################################
docs-$cf_name \\ ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
docs :: $cf_name.html \\ ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
$cf_name.pdf \\ ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
$cf_name.ps \\ ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
$cf_name.txt ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
clean \\ clean \\
docs-clean :: docs-clean ::
rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt ${NROFF_NOTE} rm -f $cf_name.txt
${MAN2HTML_NOTE} rm -f $cf_name.html
$cf_name.html : $cf_name.\$2 ${GROFF_NOTE} rm -f $cf_name.pdf
$cf_name.pdf : $cf_name.ps ${GROFF_NOTE} rm -f $cf_name.ps
$cf_name.ps : $cf_name.\$2 ${GROFF_NOTE} rm -f $cf_name.txt
$cf_name.txt : $cf_name.\$2
${NROFF_NOTE}$cf_name.txt : $cf_name.$2
${MAN2HTML_NOTE}$cf_name.html : $cf_name.$2
${GROFF_NOTE}$cf_name.pdf : $cf_name.ps
${GROFF_NOTE}$cf_name.ps : $cf_name.$2
${GROFF_NOTE}$cf_name.txt : $cf_name.$2
CF_EOF CF_EOF
done done
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_MAKE_TAGS version: 6 updated: 2010/10/23 15:52:32 dnl CF_MAKE_TAGS version: 6 updated: 2010/10/23 15:52:32
dnl ------------ dnl ------------
dnl Generate tags/TAGS targets for makefiles. Do not generate TAGS if we have dnl Generate tags/TAGS targets for makefiles. Do not generate TAGS if we have
dnl a monocase filesystem. dnl a monocase filesystem.
AC_DEFUN([CF_MAKE_TAGS],[ AC_DEFUN([CF_MAKE_TAGS],[
AC_REQUIRE([CF_MIXEDCASE_FILENAMES]) AC_REQUIRE([CF_MIXEDCASE_FILENAMES])
skipping to change at line 777 skipping to change at line 788
MAKE_LOWER_TAGS="#" MAKE_LOWER_TAGS="#"
fi fi
AC_SUBST(CTAGS) AC_SUBST(CTAGS)
AC_SUBST(ETAGS) AC_SUBST(ETAGS)
AC_SUBST(MAKE_UPPER_TAGS) AC_SUBST(MAKE_UPPER_TAGS)
AC_SUBST(MAKE_LOWER_TAGS) AC_SUBST(MAKE_LOWER_TAGS)
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_MIXEDCASE_FILENAMES version: 6 updated: 2013/10/08 17:47:05 dnl CF_MIXEDCASE_FILENAMES version: 7 updated: 2015/04/12 15:39:00
dnl ---------------------- dnl ----------------------
dnl Check if the file-system supports mixed-case filenames. If we're able to dnl Check if the file-system supports mixed-case filenames. If we're able to
dnl create a lowercase name and see it as uppercase, it doesn't support that. dnl create a lowercase name and see it as uppercase, it doesn't support that.
AC_DEFUN([CF_MIXEDCASE_FILENAMES], AC_DEFUN([CF_MIXEDCASE_FILENAMES],
[ [
AC_CACHE_CHECK(if filesystem supports mixed-case filenames,cf_cv_mixedcase,[ AC_CACHE_CHECK(if filesystem supports mixed-case filenames,cf_cv_mixedcase,[
if test "$cross_compiling" = yes ; then if test "$cross_compiling" = yes ; then
case $target_alias in #(vi case $target_alias in
*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
cf_cv_mixedcase=no cf_cv_mixedcase=no
;; ;;
*) (*)
cf_cv_mixedcase=yes cf_cv_mixedcase=yes
;; ;;
esac esac
else else
rm -f conftest CONFTEST rm -f conftest CONFTEST
echo test >conftest echo test >conftest
if test -f CONFTEST ; then if test -f CONFTEST ; then
cf_cv_mixedcase=no cf_cv_mixedcase=no
else else
cf_cv_mixedcase=yes cf_cv_mixedcase=yes
skipping to change at line 815 skipping to change at line 826
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_MSG_LOG version: 5 updated: 2010/10/23 15:52:32 dnl CF_MSG_LOG version: 5 updated: 2010/10/23 15:52:32
dnl ---------- dnl ----------
dnl Write a debug message to config.log, along with the line number in the dnl Write a debug message to config.log, along with the line number in the
dnl configure script. dnl configure script.
AC_DEFUN([CF_MSG_LOG],[ AC_DEFUN([CF_MSG_LOG],[
echo "${as_me:-configure}:__oline__: testing $* ..." 1>&AC_FD_CC echo "${as_me:-configure}:__oline__: testing $* ..." 1>&AC_FD_CC
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_NO_LEAKS_OPTION version: 5 updated: 2012/10/02 20:55:03 dnl CF_NO_LEAKS_OPTION version: 6 updated: 2015/04/12 15:39:00
dnl ------------------ dnl ------------------
dnl see CF_WITH_NO_LEAKS dnl see CF_WITH_NO_LEAKS
AC_DEFUN([CF_NO_LEAKS_OPTION],[ AC_DEFUN([CF_NO_LEAKS_OPTION],[
AC_MSG_CHECKING(if you want to use $1 for testing) AC_MSG_CHECKING(if you want to use $1 for testing)
AC_ARG_WITH($1, AC_ARG_WITH($1,
[$2], [$2],
[AC_DEFINE_UNQUOTED($3,1,"Define to 1 if you want to use $1 for testing." )ifelse([$4],,[ [AC_DEFINE_UNQUOTED($3,1,"Define to 1 if you want to use $1 for testing." )ifelse([$4],,[
$4 $4
]) ])
: ${with_cflags:=-g} : ${with_cflags:=-g}
: ${with_no_leaks:=yes} : ${with_no_leaks:=yes}
with_$1=yes], with_$1=yes],
[with_$1=]) [with_$1=])
AC_MSG_RESULT(${with_$1:-no}) AC_MSG_RESULT(${with_$1:-no})
case .$with_cflags in #(vi case .$with_cflags in
.*-g*) (.*-g*)
case .$CFLAGS in #(vi case .$CFLAGS in
.*-g*) #(vi (.*-g*)
;; ;;
*) (*)
CF_ADD_CFLAGS([-g]) CF_ADD_CFLAGS([-g])
;; ;;
esac esac
;; ;;
esac esac
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_PROG_EXT version: 11 updated: 2012/10/06 08:57:51 dnl CF_PATH_SYNTAX version: 16 updated: 2015/04/18 08:56:57
dnl --------------
dnl Check the argument to see that it looks like a pathname. Rewrite it if it
dnl begins with one of the prefix/exec_prefix variables, and then again if the
dnl result begins with 'NONE'. This is necessary to work around autoconf's
dnl delayed evaluation of those symbols.
AC_DEFUN([CF_PATH_SYNTAX],[
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
else
cf_path_syntax="$ac_default_prefix"
fi
case ".[$]$1" in
(.\[$]\(*\)*|.\'*\'*)
;;
(..|./*|.\\*)
;;
(.[[a-zA-Z]]:[[\\/]]*) # OS/2 EMX
;;
(.\[$]{*prefix}*|.\[$]{*dir}*)
eval $1="[$]$1"
case ".[$]$1" in
(.NONE/*)
$1=`echo [$]$1 | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
(.no|.NONE/*)
$1=`echo [$]$1 | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
ifelse([$2],,[AC_MSG_ERROR([expected a pathname, not \"[$]$1\"])],$2)
;;
esac
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_PROG_EXT version: 13 updated: 2015/04/18 09:03:58
dnl ----------- dnl -----------
dnl Compute $PROG_EXT, used for non-Unix ports, such as OS/2 EMX. dnl Compute $PROG_EXT, used for non-Unix ports, such as OS/2 EMX.
AC_DEFUN([CF_PROG_EXT], AC_DEFUN([CF_PROG_EXT],
[ [
AC_REQUIRE([CF_CHECK_CACHE]) AC_REQUIRE([CF_CHECK_CACHE])
case $cf_cv_system_name in case $cf_cv_system_name in
os2*) (os2*)
CFLAGS="$CFLAGS -Zmt" CFLAGS="$CFLAGS -Zmt"
CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
CXXFLAGS="$CXXFLAGS -Zmt" CXXFLAGS="$CXXFLAGS -Zmt"
# autoconf's macro sets -Zexe and suffix both, which conflict:w # autoconf's macro sets -Zexe and suffix both, which conflict:w
LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
ac_cv_exeext=.exe ac_cv_exeext=.exe
;; ;;
esac esac
AC_EXEEXT AC_EXEEXT
AC_OBJEXT AC_OBJEXT
PROG_EXT="$EXEEXT" PROG_EXT="$EXEEXT"
AC_SUBST(PROG_EXT) AC_SUBST(PROG_EXT)
test -n "$PROG_EXT" && AC_DEFINE_UNQUOTED(PROG_EXT,"$PROG_EXT",[Define to the pr ogram extension (normally blank)]) test -n "$PROG_EXT" && AC_DEFINE_UNQUOTED(PROG_EXT,"$PROG_EXT",[Define to the pr ogram extension (normally blank)])
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_PROG_GROFF version: 2 updated: 2015/07/04 11:16:27
dnl -------------
dnl Check if groff is available, for cases (such as html output) where nroff
dnl is not enough.
AC_DEFUN([CF_PROG_GROFF],[
AC_PATH_PROG(GROFF_PATH,groff,no)
AC_PATH_PROG(NROFF_PATH,nroff,no)
if test "x$GROFF_PATH" = xno
then
NROFF_NOTE=
GROFF_NOTE="#"
else
NROFF_NOTE="#"
GROFF_NOTE=
fi
AC_SUBST(GROFF_NOTE)
AC_SUBST(NROFF_NOTE)
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_PROG_LINT version: 2 updated: 2009/08/12 04:43:14 dnl CF_PROG_LINT version: 2 updated: 2009/08/12 04:43:14
dnl ------------ dnl ------------
AC_DEFUN([CF_PROG_LINT], AC_DEFUN([CF_PROG_LINT],
[ [
AC_CHECK_PROGS(LINT, tdlint lint alint splint lclint) AC_CHECK_PROGS(LINT, tdlint lint alint splint lclint)
AC_SUBST(LINT_OPTS) AC_SUBST(LINT_OPTS)
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_REMOVE_DEFINE version: 3 updated: 2010/01/09 11:05:50 dnl CF_REMOVE_DEFINE version: 3 updated: 2010/01/09 11:05:50
dnl ---------------- dnl ----------------
skipping to change at line 941 skipping to change at line 1008
CF_NO_LEAKS_OPTION(dmalloc, CF_NO_LEAKS_OPTION(dmalloc,
[ --with-dmalloc test: use Gray Watson's dmalloc library], [ --with-dmalloc test: use Gray Watson's dmalloc library],
[USE_DMALLOC]) [USE_DMALLOC])
if test "$with_dmalloc" = yes ; then if test "$with_dmalloc" = yes ; then
AC_CHECK_HEADER(dmalloc.h, AC_CHECK_HEADER(dmalloc.h,
[AC_CHECK_LIB(dmalloc,[dmalloc_debug]ifelse([$1],,[],[,$1]))]) [AC_CHECK_LIB(dmalloc,[dmalloc_debug]ifelse([$1],,[],[,$1]))])
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_WITH_MAN2HTML version: 4 updated: 2015/05/03 19:10:48
dnl ----------------
dnl Check for man2html and groff. Optionally prefer man2html over groff.
dnl Generate a shell script which hides the differences between the two.
dnl
dnl We name that "man2html.tmp".
dnl
dnl The shell script can be removed later, e.g., using "make distclean".
AC_DEFUN([CF_WITH_MAN2HTML],[
AC_REQUIRE([CF_PROG_GROFF])
AC_MSG_CHECKING(for program to convert manpage to html)
AC_ARG_WITH(man2html,
[ --with-man2html=XXX use XXX rather than groff],
[cf_man2html=$withval],
[cf_man2html=$GROFF_PATH])
cf_with_groff=no
case $cf_man2html in
(yes)
AC_MSG_RESULT(man2html)
AC_PATH_PROG(cf_man2html,man2html,no)
;;
(no|groff|*/groff*)
cf_with_groff=yes
cf_man2html=$GROFF_PATH
AC_MSG_RESULT($cf_man2html)
;;
(*)
AC_MSG_RESULT($cf_man2html)
;;
esac
MAN2HTML_TEMP="man2html.tmp"
cat >$MAN2HTML_TEMP <<CF_EOF
#!/bin/sh
# Temporary script generated by CF_WITH_MAN2HTML
# Convert inputs to html, sending result to standard output.
#
# Parameters:
# \${1} = rootname of file to convert
# \${2} = suffix of file to convert, e.g., "1"
# \${3} = macros to use, e.g., "man"
#
ROOT=\[$]1
TYPE=\[$]2
MACS=\[$]3
unset LANG
unset LC_ALL
unset LC_CTYPE
unset LANGUAGE
GROFF_NO_SGR=stupid
export GROFF_NO_SGR
CF_EOF
if test "x$cf_with_groff" = xyes
then
MAN2HTML_NOTE="$GROFF_NOTE"
MAN2HTML_PATH="$GROFF_PATH"
cat >>$MAN2HTML_TEMP <<CF_EOF
/bin/sh -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MA
CS}"
CF_EOF
else
MAN2HTML_NOTE=""
CF_PATH_SYNTAX(cf_man2html)
MAN2HTML_PATH="$cf_man2html"
AC_MSG_CHECKING(for $cf_man2html top/bottom margins)
# for this example, expect 3 lines of content, the remainder is head/foot
cat >conftest.in <<CF_EOF
.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
.SH SECTION
MARKER
CF_EOF
LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.ou
t
cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[[^0-9]]*://' -
e 's/:.*//'`
cf_man2html_top=`expr $cf_man2html_1st - 2`
cf_man2html_bot=`wc -l conftest.out |sed -e 's/[[^0-9]]//g'`
cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
AC_MSG_RESULT($cf_man2html_top_bot)
AC_MSG_CHECKING(for pagesize to use)
for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
cat >>conftest.in <<CF_EOF
.nf
0
1
2
3
4
5
6
7
8
9
CF_EOF
done
LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.ou
t
cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[[^0
-9]]*://' -e 's/:.*//'`
test -z "$cf_man2html_page" && cf_man2html_page=99999
test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
rm -rf conftest*
AC_MSG_RESULT($cf_man2html_page)
cat >>$MAN2HTML_TEMP <<CF_EOF
: \${MAN2HTML_PATH=$MAN2HTML_PATH}
MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsiz
e $cf_man2html_page"
case \${TYPE} in
(ms)
tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0
\$MAN2HTML_OPTS
;;
(*)
tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_to
p_bot \$MAN2HTML_OPTS
;;
esac
CF_EOF
fi
chmod 700 $MAN2HTML_TEMP
AC_SUBST(MAN2HTML_NOTE)
AC_SUBST(MAN2HTML_PATH)
AC_SUBST(MAN2HTML_TEMP)
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_WITH_VALGRIND version: 1 updated: 2006/12/14 18:00:21 dnl CF_WITH_VALGRIND version: 1 updated: 2006/12/14 18:00:21
dnl ---------------- dnl ----------------
AC_DEFUN([CF_WITH_VALGRIND],[ AC_DEFUN([CF_WITH_VALGRIND],[
CF_NO_LEAKS_OPTION(valgrind, CF_NO_LEAKS_OPTION(valgrind,
[ --with-valgrind test: use valgrind], [ --with-valgrind test: use valgrind],
[USE_VALGRIND]) [USE_VALGRIND])
])dnl ])dnl
 End of changes. 53 change blocks. 
97 lines changed or deleted 306 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS