Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ok now this is interesting
I appear to have discovered a bug with automake
  • Loading branch information
cooljeanius committed Oct 22, 2023
1 parent 7b2e016 commit 8e2e78b
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 17 deletions.
10 changes: 6 additions & 4 deletions Makefile.in
Expand Up @@ -161,13 +161,13 @@ am__define_uniq_tagged_files = \
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \
$(top_srcdir)/config/config.sub \
$(top_srcdir)/config/config.sub $(top_srcdir)/config/depcomp \
$(top_srcdir)/config/install-sh $(top_srcdir)/config/ltmain.sh \
$(top_srcdir)/config/missing AUTHORS COPYING ChangeLog INSTALL \
NEWS README THANKS TODO config/compile config/config.guess \
config/config.sub config/install-sh config/ltmain.sh \
config/mdate-sh config/missing config/texinfo.tex \
config/ylwrap
config/config.sub config/depcomp config/install-sh \
config/ltmain.sh config/mdate-sh config/missing \
config/texinfo.tex config/ylwrap
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
Expand Down Expand Up @@ -358,6 +358,8 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
want_docs = @want_docs@
want_yywrap = @want_yywrap@
SUBDIRS = source doc sample
EXTRA_DIST = TODO
ACLOCAL_AMFLAGS = -I m4 --install
Expand Down
77 changes: 70 additions & 7 deletions configure
Expand Up @@ -667,15 +667,19 @@ ALLOCA
LEXLIB
LEX_OUTPUT_ROOT
LEX
want_yywrap
BISON
YFLAGS
YACC
ifnGNUmake
ifGNUmake
BUILD_DOCS_FALSE
BUILD_DOCS_TRUE
TEXI2DVI_BIN
DVIPS_BIN
LATEX2HTML_BIN
LATEX_BIN
want_docs
CXXCPP
LT_SYS_LIBRARY_PATH
OTOOL64
Expand Down Expand Up @@ -825,7 +829,9 @@ with_aix_soname
with_gnu_ld
with_sysroot
enable_libtool_lock
with_docs
with_bison_bin
with_yywrap
'
ac_precious_vars='build_alias
host_alias
Expand Down Expand Up @@ -1497,8 +1503,10 @@ Optional Packages:
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
compiler's sysroot if not specified).
--with-docs build documentation

--with-bison-bin=PATH specify where to find the bison program
--with-yywrap check for yywrap

Some influential environment variables:
CC C compiler command
Expand Down Expand Up @@ -2874,7 +2882,7 @@ as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"

# Auxiliary files required by this configure script.
ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub depcomp"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}/config"
Expand Down Expand Up @@ -3044,13 +3052,15 @@ ac_config_headers="$ac_config_headers config.h"






gaadatadir=${datadir}/gaa
gaadocdir=${datadir}/doc/gaa
gaasampledir=${datadir}/gaa/sample




# Make sure we can run config.sub.
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
Expand Down Expand Up @@ -17413,7 +17423,18 @@ else

fi

# Extract the first word of "latex", so it can be a program name with args.

# Check whether --with-docs was given.
if test ${with_docs+y}
then :
withval=$with_docs; build_docs="${withval}"

fi

if test "x${build_docs}" = "xyes"
then :

# Extract the first word of "latex", so it can be a program name with args.
set dummy latex; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
Expand Down Expand Up @@ -17459,7 +17480,7 @@ printf "%s\n" "no" >&6; }
fi


# Extract the first word of "latex2html", so it can be a program name with args.
# Extract the first word of "latex2html", so it can be a program name with args.
set dummy latex2html; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
Expand Down Expand Up @@ -17505,7 +17526,7 @@ printf "%s\n" "no" >&6; }
fi


# Extract the first word of "dvips", so it can be a program name with args.
# Extract the first word of "dvips", so it can be a program name with args.
set dummy dvips; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
Expand Down Expand Up @@ -17551,7 +17572,7 @@ printf "%s\n" "no" >&6; }
fi


# Extract the first word of "texi2dvi", so it can be a program name with args.
# Extract the first word of "texi2dvi", so it can be a program name with args.
set dummy texi2dvi; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
Expand Down Expand Up @@ -17597,6 +17618,27 @@ printf "%s\n" "no" >&6; }
fi



else $as_nop

LATEX_BIN=false

LATEX2HTML_BIN=false

DVIPS_BIN=false

TEXI2DVI_BIN=false


fi
if test "x${build_docs}" = "xyes"; then
BUILD_DOCS_TRUE=
BUILD_DOCS_FALSE='#'
else
BUILD_DOCS_TRUE='#'
BUILD_DOCS_FALSE=
fi

for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
Expand Down Expand Up @@ -18356,7 +18398,18 @@ printf "%s\n" "#define BISON_BIN_RELOCATABLE ${value}" >>confdefs.h

fi

for ac_prog in flex lex

# Check whether --with-yywrap was given.
if test ${with_yywrap+y}
then :
withval=$with_yywrap; want_yywrap="${withval}"

fi

if test "x${want_yywrap}" = "xyes"
then :

for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
Expand Down Expand Up @@ -18656,6 +18709,12 @@ fi
fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c

fi

else $as_nop



fi
if test "$LEX" = :; then
LEX=${am_missing_run}flex
Expand Down Expand Up @@ -19123,6 +19182,10 @@ if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi


: "${CONFIG_STATUS=./config.status}"
Expand Down
38 changes: 32 additions & 6 deletions configure.ac
Expand Up @@ -6,7 +6,8 @@ AC_INIT([gaa],[1.6.6],[nmav@gnutls.org])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])dnl
AC_CONFIG_AUX_DIR([config])
AC_REQUIRE_AUX_FILE([depcomp])dnl

gaadatadir=${datadir}/gaa
gaadocdir=${datadir}/doc/gaa
Expand Down Expand Up @@ -40,10 +41,25 @@ else
fi

dnl# Documentation tools.
AC_PATH_PROG([LATEX_BIN],[latex],[latex])
AC_PATH_PROG([LATEX2HTML_BIN],[latex2html],[latex2html])
AC_PATH_PROG([DVIPS_BIN],[dvips],[dvips])
AC_PATH_PROG([TEXI2DVI_BIN],[texi2dvi],[texi2dvi])dnl
AC_ARG_WITH([docs],
[AS_HELP_STRING([--with-docs],[build documentation])],
[build_docs="${withval}"
AC_SUBST([want_docs])dnl
])dnl

AS_IF([test "x${build_docs}" = "xyes"],[
AC_PATH_PROG([LATEX_BIN],[latex],[latex])
AC_PATH_PROG([LATEX2HTML_BIN],[latex2html],[latex2html])
AC_PATH_PROG([DVIPS_BIN],[dvips],[dvips])
AC_PATH_PROG([TEXI2DVI_BIN],[texi2dvi],[texi2dvi])
],[
AC_SUBST([LATEX_BIN],[false])
AC_SUBST([LATEX2HTML_BIN],[false])
AC_SUBST([DVIPS_BIN],[false])
AC_SUBST([TEXI2DVI_BIN],[false])
])dnl

AM_CONDITIONAL([BUILD_DOCS],[test "x${build_docs}" = "xyes"])dnl

dnl# AX_* macros come from the autoconf-archive package
AX_CHECK_GNU_MAKE
Expand Down Expand Up @@ -83,7 +99,17 @@ AS_HELP_STRING([--with-bison-bin=PATH],[specify where to find the bison program]
GDB_AC_DEFINE_RELOCATABLE([BISON_BIN],[bison],[${bison_bin}])dnl
])dnl

AC_PROG_LEX([yywrap])
AC_ARG_WITH([yywrap],
[AS_HELP_STRING([--with-yywrap],[check for yywrap])],
[want_yywrap="${withval}"
AC_SUBST([want_yywrap])dnl
])dnl

AS_IF([test "x${want_yywrap}" = "xyes"],[
AC_PROG_LEX([yywrap])
],[
AC_PROG_LEX([noyywrap])
])
AM_PROG_LEX

dnl# Checks for library functions.
Expand Down
5 changes: 5 additions & 0 deletions doc/Makefile.am
Expand Up @@ -71,8 +71,13 @@ gaa.tex.html: $(TEX_OBJECTS)
touch gaa.tex.html; \
fi

if BUILD_DOCS
info_TEXINFOS = gaa.texi
EXTRA_DIST += $(info_TEXINFOS)
else
dist_info_TEXINFOS = gaa.texi
EXTRA_DIST += $(dist_info_TEXINFOS)
endif

distclean-local:
if test "x$(srcdir)" != "x$(builddir)"; then \
Expand Down
2 changes: 2 additions & 0 deletions doc/Makefile.in
Expand Up @@ -343,6 +343,8 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
want_docs = @want_docs@
want_yywrap = @want_yywrap@
EXTRA_DIST = ref.tex gaa.html/index.html gaa.ps gaa.tex img1.png \
tut.tex gaa.css $(info_TEXINFOS)
dist_gaadoc_DATA = gaa.html/index.html gaa.ps img1.png gaa.css
Expand Down
2 changes: 2 additions & 0 deletions sample/Makefile.in
Expand Up @@ -300,6 +300,8 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
want_docs = @want_docs@
want_yywrap = @want_yywrap@
EXTRA_DIST = sample.gaa smain.c sample3.gaa sample2.gaa smain2.c config sample4.gaa
gaasample_DATA = sample3.gaa sample.gaa smain.c sample2.gaa smain2.c config sample4.gaa
all: all-am
Expand Down
2 changes: 2 additions & 0 deletions source/Makefile.in
Expand Up @@ -388,6 +388,8 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
want_docs = @want_docs@
want_yywrap = @want_yywrap@
SUBDIRS = skel
EXTRA_DIST = gaa.gaa gaa.c gaaout.h gaa.h
gaa_CFLAGS = -DSKEL_DIR=\"$(gaadatadir)\"
Expand Down
2 changes: 2 additions & 0 deletions source/skel/Makefile.in
Expand Up @@ -300,6 +300,8 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
want_docs = @want_docs@
want_yywrap = @want_yywrap@
gaadata_DATA = gaa.skel
EXTRA_DIST = gaa.skel
all: all-am
Expand Down

0 comments on commit 8e2e78b

Please sign in to comment.