Mercurial > hg > early-roguelike
annotate srogue/configure.ac @ 189:7c552cbc6ad9
srogue: make checking directories slightly more portable.
MSVC sys/stat.h doesn't define S_ISDIR().
| author | John "Elwin" Edwards |
|---|---|
| date | Mon, 03 Aug 2015 09:05:15 -0400 |
| parents | 5238b835d661 |
| children | 0e99eade579c |
| rev | line source |
|---|---|
| 101 | 1 # -*- Autoconf -*- |
| 2 # Process this file with autoconf to produce a configure script. | |
| 3 | |
| 4 AC_PREREQ(2.56) | |
| 5 AC_INIT([SRogue],[9.0], [yendor@rogueforge.net]) | |
| 6 AC_CONFIG_HEADERS([config.h]) | |
| 7 AC_CONFIG_FILES([Makefile]) | |
| 8 | |
| 9 # Checks for programs. | |
| 10 AC_PROG_CC | |
| 11 # Checks for libraries. | |
| 12 MP_WITH_CURSES | |
| 13 # Checks for header files. | |
| 14 AC_HEADER_STDC | |
| 118 | 15 AC_CHECK_HEADERS([arpa/inet.h pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h termios.h unistd.h term.h ncurses/term.h process.h]) |
| 101 | 16 |
| 17 # Checks for typedefs, structures, and compiler characteristics. | |
| 119 | 18 AC_TYPE_UID_T |
| 101 | 19 AC_TYPE_SIZE_T |
| 20 AC_STRUCT_TM | |
| 21 # Checks for library functions. | |
| 22 AC_FUNC_FORK | |
| 23 AC_PROG_GCC_TRADITIONAL | |
| 24 AC_TYPE_SIGNAL | |
| 25 AC_FUNC_STAT | |
| 26 AC_FUNC_VPRINTF | |
|
121
e6c8652473fe
srogue: more compatibility improvements.
John "Elwin" Edwards
parents:
119
diff
changeset
|
27 AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid lrand48 random srand48 srandom]) |
| 101 | 28 AC_PROG_INSTALL |
| 29 | |
| 30 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="srogue"] ) | |
| 31 PROGRAM=$progname | |
| 32 AC_SUBST(PROGRAM) | |
| 33 | |
| 34 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@])],[],[]) | |
| 35 AC_MSG_CHECKING([if using setgid execute bit]) | |
| 36 if test "x$enable_setgid" = "xno" ; then | |
| 37 GROUPOWNER= | |
| 38 elif test "x$enable_setgid" = "xyes" ; then | |
| 39 GROUPOWNER=games | |
| 40 elif test "x$enable_setgid" = "x" ; then | |
| 41 GROUPOWNER= | |
| 42 else | |
|
15f8229f38c1
srogue: begin porting to autoconf. |
