summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-06-18 15:38:33 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-06-18 15:38:33 +0200
commit81b1af37c2ac56e213b37aa4da7d6331019c5785 (patch)
treeecb7001a7f6d6e5a97b5df5d52bfd1d1e7b86b96 /configure
parent792be50a05be70c19c0e33772dd0a0ade66780bb (diff)
downloadfribid-81b1af37c2ac56e213b37aa4da7d6331019c5785.tar.gz
fribid-81b1af37c2ac56e213b37aa4da7d6331019c5785.tar.bz2
fribid-81b1af37c2ac56e213b37aa4da7d6331019c5785.zip
Fix warning messages from "make clean" when config.h doesn't exist
The Makefiles read some information from common/config.h, but when this file doesn't exist (for example if make clean is run before ./configure) then this will cause an error message to be displayed. This patch hides the error message because the Makefile rules that need config.h, depend on a rule that prints an error message if this file is not found.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 0e14a33..4fe7904 100755
--- a/configure
+++ b/configure
@@ -134,6 +134,7 @@ Options:
;;
--internal--get-define=*)
name=${flag#--internal--get-define=}
+ [ ! -r "$basedir/common/config" ] && exit 1 # Exit if not configured yet
printf '#define CALLED_FROM_CONFIGURE\n#include "%s"\n%s\n' "$basedir/common/defines.h" "$name" | cpp - | sed 's/#[^\n]*//g' | tr -d '\n' | sed 's/" "//g' | tr -d '\"'
exit 0
;;