comparison rogue4/configure.ac @ 93:8f7c082fde46

Don't set DESTDIR via configure. DESTDIR ought to be set via option passed to 'make install'.
author John "Elwin" Edwards
date Mon, 26 Aug 2013 19:58:44 -0700
parents ae4f413fe76c
children 65f3da34578a
comparison
equal deleted inserted replaced
92:53e69c17c313 93:8f7c082fde46
149 AC_MSG_RESULT([disabled]) 149 AC_MSG_RESULT([disabled])
150 fi 150 fi
151 151
152 AC_SUBST(SAVEDIR) 152 AC_SUBST(SAVEDIR)
153 153
154 AC_ARG_ENABLE([destdir],[AC_HELP_STRING([--enable-destdir=DESTDIR], [chroot to install into])],[],[])
155 AC_MSG_CHECKING([for chrooted install])
156 if test "x$enable_destdir" = "xno" ; then
157 DESTDIR=
158 elif test "x$enable_destdir" = "xyes" ; then
159 DESTDIR=
160 elif test "x$enable_destdir" = "x" ; then
161 DESTDIR=
162 else
163 DESTDIR=$enable_destdir
164 fi
165
166 if test "x$DESTDIR" != "x" ; then
167 AC_MSG_RESULT([$DESTDIR])
168 else
169 AC_MSG_RESULT([disabled])
170 fi
171
172 AC_SUBST(DESTDIR)
173
174 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) 154 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[])
175 AC_MSG_CHECKING([if wizard mode is enabled]) 155 AC_MSG_CHECKING([if wizard mode is enabled])
176 if test "x$enable_wizardmode" = "xno" ; then 156 if test "x$enable_wizardmode" = "xno" ; then
177 AC_MSG_RESULT([no]) 157 AC_MSG_RESULT([no])
178 elif test "x$enable_wizardmode" = "x" ; then 158 elif test "x$enable_wizardmode" = "x" ; then