aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAiden Woodruff <aiden.woodruff@gmail.com>2018-09-04 18:09:51 -0500
committerAiden Woodruff <aiden.woodruff@gmail.com>2018-09-04 18:09:51 -0500
commitf4cb6a5879a7be0bbc15a2a04eb4977248316ad1 (patch)
tree35ff1234c26adbdf29ee1645351749315d587eaa
parent82911972c6e1b8e01e820b4e413ef684ed95bffc (diff)
downloadlife-f4cb6a5879a7be0bbc15a2a04eb4977248316ad1.tar.gz
life-f4cb6a5879a7be0bbc15a2a04eb4977248316ad1.tar.bz2
life-f4cb6a5879a7be0bbc15a2a04eb4977248316ad1.zip
Fix small autoconf, automake, etc. issues
autoconf: check for C preprocessor and typeof extension automake: Change headers to be noinst Use return at end of main, not exit sanity sanity don't run exec blank test correctly order redirections Signed-off-by: Aiden Woodruff <aiden.woodruff@gmail.com>
-rw-r--r--config.h.in6
-rwxr-xr-xconfigure212
-rw-r--r--configure.ac2
-rw-r--r--life-1.6.0.tar.gzbin135098 -> 134709 bytes
-rw-r--r--src/Makefile.am2
-rw-r--r--src/Makefile.in76
-rw-r--r--src/life.c2
-rwxr-xr-xtest/blank.sh2
-rwxr-xr-xtest/sanity2
9 files changed, 159 insertions, 145 deletions
diff --git a/config.h.in b/config.h.in
index b47e612..56181f0 100644
--- a/config.h.in
+++ b/config.h.in
@@ -33,6 +33,9 @@
33/* Define to 1 if you have the <sys/types.h> header file. */ 33/* Define to 1 if you have the <sys/types.h> header file. */
34#undef HAVE_SYS_TYPES_H 34#undef HAVE_SYS_TYPES_H
35 35
36/* Define to 1 if typeof works with your compiler. */
37#undef HAVE_TYPEOF
38
36/* Define to 1 if you have the <unistd.h> header file. */ 39/* Define to 1 if you have the <unistd.h> header file. */
37#undef HAVE_UNISTD_H 40#undef HAVE_UNISTD_H
38 41
@@ -62,3 +65,6 @@
62 65
63/* Version number of package */ 66/* Version number of package */
64#undef VERSION 67#undef VERSION
68
69/* Define to __typeof__ if your compiler spells it that way. */
70#undef typeof
diff --git a/configure b/configure
index 4572a18..b4680e9 100755
--- a/configure
+++ b/configure
@@ -1487,21 +1487,20 @@ fi
1487 1487
1488} # ac_fn_c_try_compile 1488} # ac_fn_c_try_compile
1489 1489
1490# ac_fn_c_try_link LINENO 1490# ac_fn_c_try_cpp LINENO
1491# ----------------------- 1491# ----------------------
1492# Try to link conftest.$ac_ext, and return whether this succeeded. 1492# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1493ac_fn_c_try_link () 1493ac_fn_c_try_cpp ()
1494{ 1494{
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext conftest$ac_exeext 1496 if { { ac_try="$ac_cpp conftest.$ac_ext"
1497 if { { ac_try="$ac_link"
1498case "(($ac_try" in 1497case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;; 1499 *) ac_try_echo=$ac_try;;
1501esac 1500esac
1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503$as_echo "$ac_try_echo"; } >&5 1502$as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_link") 2>conftest.err 1503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1505 ac_status=$? 1504 ac_status=$?
1506 if test -s conftest.err; then 1505 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1 1506 grep -v '^ *+' conftest.err >conftest.er1
@@ -1509,44 +1508,37 @@ $as_echo "$ac_try_echo"; } >&5
1509 mv -f conftest.er1 conftest.err 1508 mv -f conftest.er1 conftest.err
1510 fi 1509 fi
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && { 1511 test $ac_status = 0; } > conftest.i && {
1513 test -z "$ac_c_werror_flag" || 1512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514 test ! -s conftest.err 1513 test ! -s conftest.err
1515 } && test -s conftest$ac_exeext && {
1516 test "$cross_compiling" = yes ||
1517 test -x conftest$ac_exeext
1518 }; then : 1514 }; then :
1519 ac_retval=0 1515 ac_retval=0
1520else 1516else
1521 $as_echo "$as_me: failed program was:" >&5 1517 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5 1518sed 's/^/| /' conftest.$ac_ext >&5
1523 1519
1524 ac_retval=1 1520 ac_retval=1
1525fi 1521fi
1526 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1527 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1528 # interfere with the next link command; also delete a directory that is
1529 # left behind by Apple's compiler. We do this before executing the actions.
1530 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval 1523 as_fn_set_status $ac_retval
1533 1524
1534} # ac_fn_c_try_link 1525} # ac_fn_c_try_cpp
1535 1526
1536# ac_fn_c_try_cpp LINENO 1527# ac_fn_c_try_link LINENO
1537# ---------------------- 1528# -----------------------
1538# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1529# Try to link conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_cpp () 1530ac_fn_c_try_link ()
1540{ 1531{
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 if { { ac_try="$ac_cpp conftest.$ac_ext" 1533 rm -f conftest.$ac_objext conftest$ac_exeext
1534 if { { ac_try="$ac_link"
1543case "(($ac_try" in 1535case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;; 1537 *) ac_try_echo=$ac_try;;
1546esac 1538esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5 1540$as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1541 (eval "$ac_link") 2>conftest.err
1550 ac_status=$? 1542 ac_status=$?
1551 if test -s conftest.err; then 1543 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1 1544 grep -v '^ *+' conftest.err >conftest.er1
@@ -1554,21 +1546,29 @@ $as_echo "$ac_try_echo"; } >&5
1554 mv -f conftest.er1 conftest.err 1546 mv -f conftest.er1 conftest.err
1555 fi 1547 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } > conftest.i && { 1549 test $ac_status = 0; } && {
1558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1550 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err 1551 test ! -s conftest.err
1552 } && test -s conftest$ac_exeext && {
1553 test "$cross_compiling" = yes ||
1554 test -x conftest$ac_exeext
1560 }; then : 1555 }; then :
1561 ac_retval=0 1556 ac_retval=0
1562else 1557else
1563 $as_echo "$as_me: failed program was:" >&5 1558 $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5 1559sed 's/^/| /' conftest.$ac_ext >&5
1565 1560
1566 ac_retval=1 1561 ac_retval=1
1567fi 1562fi
1563 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1564 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1565 # interfere with the next link command; also delete a directory that is
1566 # left behind by Apple's compiler. We do this before executing the actions.
1567 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval 1569 as_fn_set_status $ac_retval
1570 1570
1571} # ac_fn_c_try_cpp 1571} # ac_fn_c_try_link
1572 1572
1573# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1573# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574# ------------------------------------------------------- 1574# -------------------------------------------------------
@@ -3214,56 +3214,6 @@ if test "x$ac_cv_prog_cc_c99" != xno; then :
3214fi 3214fi
3215 3215
3216 3216
3217
3218# Checks for libraries.
3219
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3221$as_echo_n "checking for initscr in -lncurses... " >&6; }
3222if ${ac_cv_lib_ncurses_initscr+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224else
3225 ac_check_lib_save_LIBS=$LIBS
3226LIBS="-lncurses $LIBS"
3227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h. */
3229
3230/* Override any GCC internal prototype to avoid an error.
3231 Use char because int might match the return type of a GCC
3232 builtin and then its argument prototype would still apply. */
3233#ifdef __cplusplus
3234extern "C"
3235#endif
3236char initscr ();
3237int
3238main ()
3239{
3240return initscr ();
3241 ;
3242 return 0;
3243}
3244_ACEOF
3245if ac_fn_c_try_link "$LINENO"; then :
3246 ac_cv_lib_ncurses_initscr=yes
3247else
3248 ac_cv_lib_ncurses_initscr=no
3249fi
3250rm -f core conftest.err conftest.$ac_objext \
3251 conftest$ac_exeext conftest.$ac_ext
3252LIBS=$ac_check_lib_save_LIBS
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3255$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3256if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
3257 cat >>confdefs.h <<_ACEOF
3258#define HAVE_LIBNCURSES 1
3259_ACEOF
3260
3261 LIBS="-lncurses $LIBS"
3262
3263fi
3264
3265
3266# Checks for header files.
3267ac_ext=c 3217ac_ext=c
3268ac_cpp='$CPP $CPPFLAGS' 3218ac_cpp='$CPP $CPPFLAGS'
3269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3402,6 +3352,110 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu 3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 3353
3404 3354
3355
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
3357$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
3358if ${ac_cv_c_typeof+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360else
3361 ac_cv_c_typeof=no
3362 for ac_kw in typeof __typeof__ no; do
3363 test $ac_kw = no && break
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h. */
3366
3367int
3368main ()
3369{
3370
3371 int value;
3372 typedef struct {
3373 char a [1
3374 + ! (($ac_kw (value))
3375 (($ac_kw (value)) 0 < ($ac_kw (value)) -1
3376 ? ($ac_kw (value)) - 1
3377 : ~ (~ ($ac_kw (value)) 0
3378 << sizeof ($ac_kw (value)))))]; }
3379 ac__typeof_type_;
3380 return
3381 (! ((void) ((ac__typeof_type_ *) 0), 0));
3382
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_cv_c_typeof=$ac_kw
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 test $ac_cv_c_typeof != no && break
3392 done
3393fi
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
3395$as_echo "$ac_cv_c_typeof" >&6; }
3396 if test $ac_cv_c_typeof != no; then
3397
3398$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
3399
3400 if test $ac_cv_c_typeof != typeof; then
3401
3402cat >>confdefs.h <<_ACEOF
3403#define typeof $ac_cv_c_typeof
3404_ACEOF
3405
3406 fi
3407 fi
3408
3409
3410# Checks for libraries.
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3412$as_echo_n "checking for initscr in -lncurses... " >&6; }
3413if ${ac_cv_lib_ncurses_initscr+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415else
3416 ac_check_lib_save_LIBS=$LIBS
3417LIBS="-lncurses $LIBS"
3418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419/* end confdefs.h. */
3420
3421/* Override any GCC internal prototype to avoid an error.
3422 Use char because int might match the return type of a GCC
3423 builtin and then its argument prototype would still apply. */
3424#ifdef __cplusplus
3425extern "C"
3426#endif
3427char initscr ();
3428int
3429main ()
3430{
3431return initscr ();
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436if ac_fn_c_try_link "$LINENO"; then :
3437 ac_cv_lib_ncurses_initscr=yes
3438else
3439 ac_cv_lib_ncurses_initscr=no
3440fi
3441rm -f core conftest.err conftest.$ac_objext \
3442 conftest$ac_exeext conftest.$ac_ext
3443LIBS=$ac_check_lib_save_LIBS
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3446$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3447if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
3448 cat >>confdefs.h <<_ACEOF
3449#define HAVE_LIBNCURSES 1
3450_ACEOF
3451
3452 LIBS="-lncurses $LIBS"
3453
3454fi
3455
3456
3457# Checks for header files.
3458
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3406$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3460$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3407if ${ac_cv_path_GREP+:} false; then : 3461if ${ac_cv_path_GREP+:} false; then :
diff --git a/configure.ac b/configure.ac
index 27ce705..4d8897a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,8 @@ AC_CONFIG_HEADERS([config.h])
9# Checks for programs. 9# Checks for programs.
10AC_PROG_CC 10AC_PROG_CC
11AC_PROG_CC_C99 11AC_PROG_CC_C99
12AC_PROG_CPP
13AC_C_TYPEOF
12 14
13# Checks for libraries. 15# Checks for libraries.
14AC_CHECK_LIB([ncurses], [initscr]) 16AC_CHECK_LIB([ncurses], [initscr])
diff --git a/life-1.6.0.tar.gz b/life-1.6.0.tar.gz
index b3087ed..60c1d7d 100644
--- a/life-1.6.0.tar.gz
+++ b/life-1.6.0.tar.gz
Binary files differ
diff --git a/src/Makefile.am b/src/Makefile.am
index e308a9f..3a59f50 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
1bin_PROGRAMS = life 1bin_PROGRAMS = life
2life_SOURCES = life.c cmdline-life.c updatemap.c menus.c 2life_SOURCES = life.c cmdline-life.c updatemap.c menus.c
3life_CFLAGS = -Wall -pedantic 3life_CFLAGS = -Wall -pedantic
4include_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h 4noinst_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h
diff --git a/src/Makefile.in b/src/Makefile.in
index bd9200c..61cc02b 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -93,13 +93,13 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93am__aclocal_m4_deps = $(top_srcdir)/configure.ac 93am__aclocal_m4_deps = $(top_srcdir)/configure.ac
94am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 94am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
95 $(ACLOCAL_M4) 95 $(ACLOCAL_M4)
96DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \ 96DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
97 $(am__DIST_COMMON) 97 $(am__DIST_COMMON)
98mkinstalldirs = $(install_sh) -d 98mkinstalldirs = $(install_sh) -d
99CONFIG_HEADER = $(top_builddir)/config.h 99CONFIG_HEADER = $(top_builddir)/config.h
100CONFIG_CLEAN_FILES = 100CONFIG_CLEAN_FILES =
101CONFIG_CLEAN_VPATH_FILES = 101CONFIG_CLEAN_VPATH_FILES =
102am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)" 102am__installdirs = "$(DESTDIR)$(bindir)"
103PROGRAMS = $(bin_PROGRAMS) 103PROGRAMS = $(bin_PROGRAMS)
104am_life_OBJECTS = life-life.$(OBJEXT) life-cmdline-life.$(OBJEXT) \ 104am_life_OBJECTS = life-life.$(OBJEXT) life-cmdline-life.$(OBJEXT) \
105 life-updatemap.$(OBJEXT) life-menus.$(OBJEXT) 105 life-updatemap.$(OBJEXT) life-menus.$(OBJEXT)
@@ -146,34 +146,7 @@ am__can_run_installinfo = \
146 n|no|NO) false;; \ 146 n|no|NO) false;; \
147 *) (install-info --version) >/dev/null 2>&1;; \ 147 *) (install-info --version) >/dev/null 2>&1;; \
148 esac 148 esac
149am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 149HEADERS = $(noinst_HEADERS)
150am__vpath_adj = case $$p in \
151 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
152 *) f=$$p;; \
153 esac;
154am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
155am__install_max = 40
156am__nobase_strip_setup = \
157 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
158am__nobase_strip = \
159 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
160am__nobase_list = $(am__nobase_strip_setup); \
161 for p in $$list; do echo "$$p $$p"; done | \
162 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
163 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
164 if (++n[$$2] == $(am__install_max)) \
165 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
166 END { for (dir in files) print dir, files[dir] }'
167am__base_list = \
168 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
169 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
170am__uninstall_files_from_dir = { \
171 test -z "$$files" \
172 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
173 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
174 $(am__cd) "$$dir" && rm -f $$files; }; \
175 }
176HEADERS = $(include_HEADERS)
177am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 150am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
178# Read a list of newline-separated strings from the standard input, 151# Read a list of newline-separated strings from the standard input,
179# and print each of them once, without duplicates. Input order is 152# and print each of them once, without duplicates. Input order is
@@ -285,7 +258,7 @@ top_builddir = @top_builddir@
285top_srcdir = @top_srcdir@ 258top_srcdir = @top_srcdir@
286life_SOURCES = life.c cmdline-life.c updatemap.c menus.c 259life_SOURCES = life.c cmdline-life.c updatemap.c menus.c
287life_CFLAGS = -Wall -pedantic 260life_CFLAGS = -Wall -pedantic
288include_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h 261noinst_HEADERS = life.h updatemap.h menus.h cmdline-life.h life-macros.h
289all: all-am 262all: all-am
290 263
291.SUFFIXES: 264.SUFFIXES:
@@ -446,27 +419,6 @@ life-menus.obj: menus.c
446@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='menus.c' object='life-menus.obj' libtool=no @AMDEPBACKSLASH@ 419@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='menus.c' object='life-menus.obj' libtool=no @AMDEPBACKSLASH@
447@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 420@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
448@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(life_CFLAGS) $(CFLAGS) -c -o life-menus.obj `if test -f 'menus.c'; then $(CYGPATH_W) 'menus.c'; else $(CYGPATH_W) '$(srcdir)/menus.c'; fi` 421@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(life_CFLAGS) $(CFLAGS) -c -o life-menus.obj `if test -f 'menus.c'; then $(CYGPATH_W) 'menus.c'; else $(CYGPATH_W) '$(srcdir)/menus.c'; fi`
449install-includeHEADERS: $(include_HEADERS)
450 @$(NORMAL_INSTALL)
451 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
452 if test -n "$$list"; then \
453 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
454 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
455 fi; \
456 for p in $$list; do \
457 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
458 echo "$$d$$p"; \
459 done | $(am__base_list) | \
460 while read files; do \
461 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
462 $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
463 done
464
465uninstall-includeHEADERS:
466 @$(NORMAL_UNINSTALL)
467 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
468 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
469 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
470 422
471ID: $(am__tagged_files) 423ID: $(am__tagged_files)
472 $(am__define_uniq_tagged_files); mkid -fID $$unique 424 $(am__define_uniq_tagged_files); mkid -fID $$unique
@@ -554,7 +506,7 @@ check-am: all-am
554check: check-am 506check: check-am
555all-am: Makefile $(PROGRAMS) $(HEADERS) 507all-am: Makefile $(PROGRAMS) $(HEADERS)
556installdirs: 508installdirs:
557 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"; do \ 509 for dir in "$(DESTDIR)$(bindir)"; do \
558 test -z "$$dir" || $(MKDIR_P) "$$dir"; \ 510 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
559 done 511 done
560install: install-am 512install: install-am
@@ -609,7 +561,7 @@ info: info-am
609 561
610info-am: 562info-am:
611 563
612install-data-am: install-includeHEADERS 564install-data-am:
613 565
614install-dvi: install-dvi-am 566install-dvi: install-dvi-am
615 567
@@ -654,7 +606,7 @@ ps: ps-am
654 606
655ps-am: 607ps-am:
656 608
657uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS 609uninstall-am: uninstall-binPROGRAMS
658 610
659.MAKE: install-am install-strip 611.MAKE: install-am install-strip
660 612
@@ -664,13 +616,13 @@ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS
664 distdir dvi dvi-am html html-am info info-am install \ 616 distdir dvi dvi-am html html-am info info-am install \
665 install-am install-binPROGRAMS install-data install-data-am \ 617 install-am install-binPROGRAMS install-data install-data-am \
666 install-dvi install-dvi-am install-exec install-exec-am \ 618 install-dvi install-dvi-am install-exec install-exec-am \
667 install-html install-html-am install-includeHEADERS \ 619 install-html install-html-am install-info install-info-am \
668 install-info install-info-am install-man install-pdf \ 620 install-man install-pdf install-pdf-am install-ps \
669 install-pdf-am install-ps install-ps-am install-strip \ 621 install-ps-am install-strip installcheck installcheck-am \
670 installcheck installcheck-am installdirs maintainer-clean \ 622 installdirs maintainer-clean maintainer-clean-generic \
671 maintainer-clean-generic mostlyclean mostlyclean-compile \ 623 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
672 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ 624 ps ps-am tags tags-am uninstall uninstall-am \
673 uninstall-am uninstall-binPROGRAMS uninstall-includeHEADERS 625 uninstall-binPROGRAMS
674 626
675.PRECIOUS: Makefile 627.PRECIOUS: Makefile
676 628
diff --git a/src/life.c b/src/life.c
index 61b61b4..7fa8a8c 100644
--- a/src/life.c
+++ b/src/life.c
@@ -261,5 +261,5 @@ int main (int argc, char * argv[]) {
261 delwin(stdscr); 261 delwin(stdscr);
262 free(map); 262 free(map);
263 map = NULL; 263 map = NULL;
264 exit(EXIT_SUCCESS); 264 return 0;
265} 265}
diff --git a/test/blank.sh b/test/blank.sh
index e375e97..33364de 100755
--- a/test/blank.sh
+++ b/test/blank.sh
@@ -1,3 +1,3 @@
1#!/bin/sh 1#!/bin/sh
2 2
3echo -n 'q' | ../src/life 2>&1 > /dev/null 3echo -n 'q' | ../src/life > /dev/null 2>&1
diff --git a/test/sanity b/test/sanity
index e2a8af0..376fae9 100755
--- a/test/sanity
+++ b/test/sanity
@@ -1,3 +1,3 @@
1#!/bin/sh 1#!/bin/sh
2 2
3exec ../src/life -V > /dev/null 2>&1 3../src/life -V > /dev/null 2>&1