X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.in;h=792e6f8c7401bf33c2319699e8bf9a24d373fec4;hp=79e546e8aebe49d590e228834bd0fa083950d217;hb=64e53c4fd8a5da944de57716b137a7dff5e67b63;hpb=c8bc0bb1aee7e7280229a6ec0c104a8fb512782f diff --git a/configure.in b/configure.in index 79e546e8ae..792e6f8c74 100644 --- a/configure.in +++ b/configure.in @@ -27,6 +27,18 @@ build_bitq=no is_cygwin=no is_mingw=no is_win32=no +build_release=yes + +AC_ARG_ENABLE(release, + AS_HELP_STRING([--enable-release], [Enable Release Build, default no]), + [build_release=$enableval], [build_release=no]) + +if test $cross_compiling = no; then + if test $build_release = no; then + # check we can find guess-rev.sh + AC_CHECK_FILE("$srcdir/guess-rev.sh", build_release=no, build_release=yes) + fi +fi # We are not *ALWAYS* being installed in the standard place. # We may be installed in a "tool-build" specific location. @@ -627,6 +639,7 @@ fi AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(openocd, 1.0) +AM_CONDITIONAL(RELEASE, test $build_release = yes) AM_CONDITIONAL(PARPORT, test $build_parport = yes) AM_CONDITIONAL(DUMMY, test $build_dummy = yes) AM_CONDITIONAL(GIVEIO, test $parport_use_giveio = yes)