aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2014-11-06 07:00:38 +0100
committerTristan Gingold <tgingold@free.fr>2014-11-06 07:00:38 +0100
commit30e6f0ac82456a8d5e39e88b113bef635fc6877e (patch)
treef81c544f65a76c62ce98e62b9eca50d582e2c493 /configure
parent338c27598d9ca5de600b51d942de498dee5d6306 (diff)
downloadghdl-30e6f0ac82456a8d5e39e88b113bef635fc6877e.tar.gz
ghdl-30e6f0ac82456a8d5e39e88b113bef635fc6877e.tar.bz2
ghdl-30e6f0ac82456a8d5e39e88b113bef635fc6877e.zip
mcode build and install from top makefile.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index f7f9e93ce..fb3babb30 100755
--- a/configure
+++ b/configure
@@ -8,12 +8,14 @@ CC=${CC:-gcc}
CFLAGS=${CFLAGS:--g}
GNATMAKE=${GNATMAKE:-gnatmake}
prefix=/usr/local
+libdirsuffix=lib/ghdl
+libdirreverse=../..
build=
show_help=no
progname=$0
-subst_vars="CC GNATMAKE CFLAGS build srcdir"
+subst_vars="CC GNATMAKE CFLAGS build srcdir prefix backend libdirsuffix libdirreverse"
# Find srcdir
srcdir=`dirname $progname`
@@ -110,7 +112,7 @@ echo
echo 'sed_opts=""'
echo 'for v in $subst_vars; do'
echo ' eval vval=\$$v'
-echo ' sed_opts="$sed_opts -e s/@${v}@/$vval/g"'
+echo ' sed_opts="$sed_opts -e s%@${v}@%$vval%g"'
echo 'done'
echo
echo 'echo "Creating ghdl.gpr"'
@@ -154,8 +156,8 @@ sed -e "s%@COMPILER_GCC@%ghdl1-gcc%" \
-e "s%@COMPILER_MCODE@%ghdl1-mcode%" \
-e "s%@COMPILER_LLVM@%ghdl1-llvm%" \
-e "s%@POST_PROCESSOR@%oread-gcc%" \
- -e "s%@INSTALL_PREFIX@%%" \
- -e "s%@LIB_PREFIX@%$curdir/lib%" \
+ -e "s%@INSTALL_PREFIX@%$prefix%" \
+ -e "s%@LIB_PREFIX@%$libdirsuffix%" \
< $srcdir/src/ghdldrv/default_pathes.ads.in > default_pathes.ads
exit 0