diff options
| author | drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-02-11 20:46:31 +0000 |
|---|---|---|
| committer | drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-02-11 20:46:31 +0000 |
| commit | c2411bef502d2148fe6c5c7cdafbb4da68b030fa (patch) | |
| tree | 623cc29bd38137607ce61687e6ddfc7fdfd9e70d /configure.in | |
| parent | eea393f77fad8f1858fe5a7c5c19d54ca9860dbe (diff) | |
BUILD : 1.7.21 (1380) BUGS : 864 NOTES : Fixed configure script so it will complain about args.
git-svn-id: svn://svn.anope.org/anope/trunk@1380 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1095 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.in b/configure.in index e389f3a54..a5af8ea68 100644 --- a/configure.in +++ b/configure.in @@ -9,15 +9,16 @@ dnl details. dnl Based heavily on the Unreal configure.in script, and extra thanks to dnl codemastr from UnrealIRCD. - AC_INIT -AC_CONFIG_SRCDIR([src/actions.c]) -if test $# = 0; then - echo "You might want to run ./Config or provide some parameters to this script." - echo "./configure --help for information about this script" - exit 0 + +# If no bindir, we tell him to run ./Config. +if test "${with_bindir+set}" != set || test "${with_datadir+set}" != set; then + echo "You might want to run ./Config or provide some parameters to this script." + echo "./configure --help for information about this script" + exit 0 fi +AC_CONFIG_SRCDIR([src/actions.c]) AC_CONFIG_HEADER(include/sysconf.h) AC_PROG_CC if test "$ac_cv_c_compiler_gnu" = "yes"; then @@ -256,7 +257,6 @@ AC_CHECK_FUNCS(gethostbyname_r,AC_DEFINE(HAVE_GETHOSTBYNAME_R,1)) AC_CHECK_FUNCS(strlcpy,AC_DEFINE(HAVE_STRLCPY,1)) AC_CHECK_FUNCS(strlcat,AC_DEFINE(HAVE_STRLCAT,1)) - AC_ARG_WITH(rungroup, [ --with-rungroup=group Specify the rungroup for anope], [ AC_DEFINE_UNQUOTED(RUNGROUP,"$withval","Run group") RUNGROUP=$withval @@ -276,7 +276,7 @@ AC_ARG_WITH(bindir, [ --with-bindir=bindir Specify the default binary dir fo AC_SUBST(BINDEST) -AC_ARG_WITH(datadir, [ --with-datadir=datadir Specify the location of the services data folder], [ +AC_ARG_WITH(datadir, [ --with-datadir=datadir Specify the location of the services data folder], [ AC_DEFINE_UNQUOTED(SERVICES_DIR,"$withval","services bin dir") AC_DEFINE_UNQUOTED(MODULE_PATH,"${withval}/modules/","Module dir") DATDEST=$withval |
