summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blossom2010-12-06 19:10:45 -0800
committerEric Blossom2010-12-06 19:10:45 -0800
commite8542abdbf4da924dcdc54bfe2e7a20cda55c26b (patch)
tree2e23a55c6720c97a7529f4442d8a6989dc359a28
parent743bfc5bbc819741e23c1105ef89959c0ccee893 (diff)
downloadgnuradio-e8542abdbf4da924dcdc54bfe2e7a20cda55c26b.tar.gz
gnuradio-e8542abdbf4da924dcdc54bfe2e7a20cda55c26b.tar.bz2
gnuradio-e8542abdbf4da924dcdc54bfe2e7a20cda55c26b.zip
Add prefix = NONE test to gr-howto-write-a-block
-rw-r--r--gr-howto-write-a-block/configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-howto-write-a-block/configure.ac b/gr-howto-write-a-block/configure.ac
index 52c4639bb..fc4227d71 100644
--- a/gr-howto-write-a-block/configure.ac
+++ b/gr-howto-write-a-block/configure.ac
@@ -1,5 +1,5 @@
dnl
-dnl Copyright 2004,2005,2007,2008,2009 Free Software Foundation, Inc.
+dnl Copyright 2004,2005,2007,2008,2009,2010 Free Software Foundation, Inc.
dnl
dnl This file is part of GNU Radio
dnl
@@ -24,6 +24,12 @@ AC_INIT
AC_PREREQ(2.57)
AC_CONFIG_AUX_DIR([.])
+dnl Set the prefix to the default when --prefix is not specified.
+dnl This is critical for variable substitutions in the configure.
+if test "${prefix}" = "NONE"; then
+ prefix=${ac_default_prefix}
+fi
+
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET