diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -33,7 +33,9 @@ ADA_FLAGS=${ADA_FLAGS:-} MAKE=${MAKE:-make} LDFLAGS=${LDFLAGS:-} prefix=/usr/local -libdirsuffix=lib/ghdl +libdirsuffix=lib +libghdldirsuffix=lib/ghdl +incdirsuffix=include/ghdl libdirreverse=../.. gcc_src_dir= llvm_config= @@ -54,7 +56,11 @@ PIC_FLAGS=-fPIC show_help=no progname=$0 -subst_vars="CC CXX GNATMAKE ADA_FLAGS MAKE CFLAGS CXXFLAGS LDFLAGS build srcdir abs_srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pic enable_werror enable_checks enable_gplcompat enable_libghdl libghdl_version ghdl_version" +subst_vars="CC CXX GNATMAKE ADA_FLAGS MAKE CFLAGS CXXFLAGS LDFLAGS build +srcdir abs_srcdir prefix backend libdirsuffix libghdldirsuffix +libdirreverse incdirsuffix gcc_src_dir llvm_config llvm_be backtrace_lib +build_mode EXEEXT SOEXT PIC_FLAGS default_pic enable_werror enable_checks +enable_gplcompat enable_libghdl libghdl_version ghdl_version" # Find srcdir srcdir=`dirname $progname` @@ -93,6 +99,9 @@ for opt do ;; --prefix=*) prefix="$optarg";; --srcdir=*) srcdir="$optarg";; + --libdir=*) libdirsuffix="$optarg";; + --libghdldir=*) libghdldirsuffix="$optarg";; + --incdir=*) incdirsuffix="$optarg";; --with-gcc=*) gcc_src_dir="$optarg"; backend=gcc;; --with-llvm=*) echo "--with-llvm is deprecated, use --with-llvm-config" @@ -128,6 +137,9 @@ Usage: configure [options] Options [defaults in brackets]: --prefix=PREFIX install in PREFIX [$prefix] --srcdir=SRCDIR source code path [$srcdir] + --libdir=LIBDIR lib dir path relative to PREFIX [$libdirsuffix] + --libghdldir=LIBDIR ghdl lib dir path relative to PREFIX [$libdirsuffix] + --incdir=INCDIR C include dir path relative to PREFIX [$incdirsuffix] --with-gcc=DIR use gcc backend from DIR --with-llvm-config[=LLVM-CONFIG] use llvm backend [llvm-config] --with-backtrace-lib=LIB.a link with libbacktrace LIB.a to display a @@ -249,7 +261,7 @@ if test $backend = gcc; then fi if test "x$backtrace_lib" = x ; then # Automatically use libbacktrace from gcc. - backtrace_lib="$prefix/$libdirsuffix/libbacktrace.a" + backtrace_lib="$prefix/$libghdldirsuffix/libbacktrace.a" fi fi @@ -413,7 +425,9 @@ sed -e "s%@COMPILER_GCC@%ghdl1-gcc$EXEEXT%" \ -e "s%@COMPILER_LLVM@%ghdl1-llvm$EXEEXT%" \ -e "s%@POST_PROCESSOR@%oread-$backend%" \ -e "s%@INSTALL_PREFIX@%$prefix%" \ - -e "s%@LIB_PREFIX@%$libdirsuffix%" \ + -e "s%@LIBDIR_SUFFIX@%$libdirsuffix%" \ + -e "s%@LIBGHDLDIR_SUFFIX@%$libghdldirsuffix%" \ + -e "s%@INCDIR_SUFFIX@%$incdirsuffix%" \ -e "s%@SOEXT@%$SOEXT%" \ -e "s%@default_pic@%$default_pic%" \ < $srcdir/src/ghdldrv/default_paths.ads.in > default_paths.ads |