From db58637114ab57a0b60e3ad4338c5a9584f019ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Wed, 8 Jan 2003 14:28:49 +0000 Subject: [PATCH] fixed with-includedir [r582] --- configure | 13 +++++++++++++ configure.in | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 7bb5b2c1e..baa485a71 100755 --- a/configure +++ b/configure @@ -847,6 +847,11 @@ Optional Features: --enable-autodoc enable auto documentation --enable-firmjni check for tools necesarry to construct a java native interface for Firm +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-includedir=dir add directory to include search path + Some influential environment variables: CC C compiler command CFLAGS C compiler flags @@ -1285,6 +1290,14 @@ libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${ +# Check whether --with-includedir or --without-includedir was given. +if test "${with_includedir+set}" = set; then + withval="$with_includedir" + CPPFLAGS=$CPPFLAGS" -I"$withval +else + T_FLAG="" +fi; + # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then diff --git a/configure.in b/configure.in index 31476d8ac..a9051fce4 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl Process this file with autoconf to produce a configure script. +dnl Process this file withautoconf to produce a configure script. dnl Copyright (c) 2001 IPD, Universität Karlsruhe (TH) dnl libFIRM Project @@ -22,6 +22,9 @@ dnl keep track of the environment set by the user libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}" AC_SUBST(libfirm_conf_env) +dnl check for additional include dirs +AC_ARG_WITH(includedir, [ --with-includedir=dir add directory to include search path], + CPPFLAGS=$CPPFLAGS" -I"$withval, T_FLAG="") dnl Package options dnl =============== -- 2.20.1