From: stevewilliams Date: Sat, 24 Feb 2001 21:11:01 +0000 (+0000) Subject: Move library files and headers to an sdcc subdirectory. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ea870017f9fc4294d548c0654c3b757a1d764cc3;p=fw%2Fsdcc Move library files and headers to an sdcc subdirectory. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@653 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/configure b/configure index 1b577790..139bf14c 100755 --- a/configure +++ b/configure @@ -2454,21 +2454,31 @@ if test "${prefix}" = "NONE"; then fi config_in=`pwd` +sdcc_datadir=${datadir}/sdcc + + +# For some unknown reason, putting this assignment in a subshell +# like this causes the rvalue to be fully substituted. We need this +# for the defines below to generate the right thing. We keep this +# separate from the substituted sdcc_datadir because we want the +# latter for makefiles. if test "${datadir}" = "\${prefix}/share"; then - sdcc_datadir=${prefix}/share + sdcc_datadir_tmp=${prefix}/share else - sdcc_datadir=${datadir} + sdcc_datadir_tmp=${datadir} fi + + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <