| 33 | | AC_ARG_WITH(tweek, |
|---|
| 34 | | [ --with-tweek=<PATH> Directory where Tweek is |
|---|
| 35 | | installed [No default]], |
|---|
| 36 | | tweek_config_prefix="$withval", tweek_config_prefix="") |
|---|
| 37 | | AC_ARG_WITH(tweek-exec-prefix, |
|---|
| 38 | | [ --with-tweek-exec-prefix=<PATH> |
|---|
| 39 | | Exec prefix where Tweek is |
|---|
| 40 | | installed (optional) [No default]], |
|---|
| 41 | | tweek_config_exec_prefix="$withval", |
|---|
| 42 | | tweek_config_exec_prefix="") |
|---|
| 43 | | |
|---|
| 44 | | if test "x$tweek_config_exec_prefix" != "x" ; then |
|---|
| 45 | | tweek_config_args="$tweek_config_args --exec-prefix=$tweek_config_exec_prefix" |
|---|
| 46 | | |
|---|
| 47 | | if test x${TWEEK_CONFIG+set} != xset ; then |
|---|
| 48 | | TWEEK_CONFIG="$tweek_config_exec_prefix/bin/tweek-config" |
|---|
| 49 | | fi |
|---|
| | 33 | AC_ARG_WITH(tweek-meta-file, |
|---|
| | 34 | [ --with-tweek-meta-file=<PATH> Flagpoll metadata file |
|---|
| | 35 | for VPR [No default]], |
|---|
| | 36 | tweek_meta_file="$withval", tweek_meta_file="") |
|---|
| | 37 | |
|---|
| | 38 | dnl See if the user specified where to find vapor |
|---|
| | 39 | dnl if they didn't take a guess for them |
|---|
| | 40 | if test "x$tweek_meta_file" != "x" ; then |
|---|
| | 41 | tweek_flagpoll_args="--from-file=$tweek_meta_file" |
|---|
| | 42 | else |
|---|
| | 43 | tweek_flagpoll_args="--from-file=$instlinks/share/flagpoll/tweek.fpc" |
|---|
| 52 | | if test "x$tweek_config_prefix" != "x" ; then |
|---|
| 53 | | tweek_config_args="$tweek_config_args --prefix=$tweek_config_prefix" |
|---|
| 54 | | |
|---|
| 55 | | if test x${TWEEK_CONFIG+set} != xset ; then |
|---|
| 56 | | TWEEK_CONFIG="$tweek_config_prefix/bin/tweek-config" |
|---|
| 57 | | fi |
|---|
| 58 | | fi |
|---|
| 59 | | |
|---|
| 60 | | if test "x$TWEEK_BASE_DIR" != "x" ; then |
|---|
| 61 | | tweek_config_args="$tweek_config_args --prefix=$TWEEK_BASE_DIR" |
|---|
| 62 | | |
|---|
| 63 | | if test x${TWEEK_CONFIG+set} != xset ; then |
|---|
| 64 | | TWEEK_CONFIG="$TWEEK_BASE_DIR/bin/tweek-config" |
|---|
| 65 | | fi |
|---|
| 66 | | fi |
|---|
| 67 | | |
|---|
| 68 | | AC_PATH_PROG(TWEEK_CONFIG, tweek-config, no) |
|---|
| 69 | | |
|---|
| 70 | | dnl Do a sanity check to ensure that $TWEEK_CONFIG actually works. |
|---|
| 71 | | if ! (eval $TWEEK_CONFIG --cxxflags >/dev/null 2>&1) 2>&1 ; then |
|---|
| 72 | | TWEEK_CONFIG='no' |
|---|
| | 46 | tweek_flagpoll_args="tweek $tweek_flagpoll_args --no-deps" |
|---|
| | 47 | |
|---|
| | 48 | AC_PATH_PROG(FLAGPOLL, flagpoll, no) |
|---|
| | 49 | |
|---|
| | 50 | dnl Do a sanity check to ensure that $FLAGPOLL actually works. |
|---|
| | 51 | if ! (eval $FLAGPOLL --help >/dev/null 2>&1) 2>&1 ; then |
|---|
| | 52 | FLAGPOLL='no' |
|---|
| 177 | | TWEEK_CXXFLAGS=`$TWEEK_CONFIG $tweek_config_args --cxxflags $ABI` |
|---|
| 178 | | TWEEK_INCLUDES=`$TWEEK_CONFIG $tweek_config_args --includes` |
|---|
| 179 | | TWEEK_EXTRA_LIBS_CC=`$TWEEK_CONFIG $tweek_config_args --extra-libs $ABI` |
|---|
| 180 | | TWEEK_EXTRA_LIBS_LD=`$TWEEK_CONFIG $tweek_config_args --extra-libs $ABI --linker` |
|---|
| 181 | | TWEEK_LIBS_CC=`$TWEEK_CONFIG $tweek_config_args --libs $ABI` |
|---|
| 182 | | TWEEK_LIBS_LD=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker` |
|---|
| 183 | | TWEEK_PROF_LIBS_CC=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --profiled` |
|---|
| 184 | | TWEEK_PROF_LIBS_LD=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --profiled` |
|---|
| 185 | | TWEEK_LIBS_STATIC_CC=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --static` |
|---|
| 186 | | TWEEK_LIBS_STATIC_LD=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --static` |
|---|
| 187 | | TWEEK_PROF_LIBS_STATIC_CC=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --static --profiled` |
|---|
| 188 | | TWEEK_PROF_LIBS_STATIC_LD=`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --static --profiled` |
|---|
| 189 | | |
|---|
| 190 | | TWEEK_CXX_IDL="`$TWEEK_CONFIG $tweek_config_args --idl cxx`" |
|---|
| 191 | | TWEEK_CXX_IDL_OPTS="`$TWEEK_CONFIG $tweek_config_args --idlflags cxx`" |
|---|
| 192 | | TWEEK_CXX_IDL_GENDIR_OPT="`$TWEEK_CONFIG $tweek_config_args --idlgendir cxx`" |
|---|
| 193 | | TWEEK_CXX_IDL_INCFLAG="`$TWEEK_CONFIG $tweek_config_args --idlincflag cxx`" |
|---|
| 194 | | |
|---|
| 195 | | TWEEK_CXXFLAGS_MIN=`$TWEEK_CONFIG $tweek_config_args --cxxflags $ABI --min` |
|---|
| 196 | | TWEEK_INCLUDES_MIN=`$TWEEK_CONFIG $tweek_config_args --includes --min` |
|---|
| 197 | | TWEEK_EXTRA_LIBS_CC_MIN=`$TWEEK_CONFIG $tweek_config_args --extra-libs $ABI --min` |
|---|
| 198 | | TWEEK_EXTRA_LIBS_LD_MIN=`$TWEEK_CONFIG $tweek_config_args --extra-libs $ABI --linker --min` |
|---|
| 199 | | TWEEK_LIBS_CC_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --min`" |
|---|
| 200 | | TWEEK_LIBS_LD_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --min`" |
|---|
| 201 | | TWEEK_PROF_LIBS_CC_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --min --profiled`" |
|---|
| 202 | | TWEEK_PROF_LIBS_LD_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --min --profiled`" |
|---|
| 203 | | TWEEK_LIBS_STATIC_CC_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --static --min`" |
|---|
| 204 | | TWEEK_LIBS_STATIC_LD_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --static --min`" |
|---|
| 205 | | TWEEK_PROF_LIBS_STATIC_CC_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --static --min --profiled`" |
|---|
| 206 | | TWEEK_PROF_LIBS_STATIC_LD_MIN="`$TWEEK_CONFIG $tweek_config_args --libs $ABI --linker --static --min --profiled`" |
|---|
| | 127 | TWEEK_CXXFLAGS=`$FLAGPOLL $tweek_flagpoll_args --cflags` |
|---|
| | 128 | TWEEK_LIBS=`$FLAGPOLL $tweek_flagpoll_args --get-libs` |
|---|
| | 129 | TWEEK_EXTRA_LIBS=`$FLAGPOLL $tweek_flagpoll_args --get-extra-libs` |
|---|
| | 130 | TWEEK_PROF_LIBS=`$FLAGPOLL $tweek_flagpoll_args --get-profiled_libs` |
|---|
| | 131 | TWEEK_LIBS_STATIC=`$FLAGPOLL $tweek_flagpoll_args --get-static-libs` |
|---|
| | 132 | TWEEK_PROF_LIBS_STATIC_LD=`$FLAGPOLL $tweek_flagpoll_args --get-profiled-static-libs` |
|---|
| | 133 | |
|---|
| | 134 | TWEEK_CXX_IDL="`$FLAGPOLL $tweek_flagpoll_args --get-cxx-idl`" |
|---|
| | 135 | TWEEK_CXX_IDL_OPTS="`$FLAGPOLL $tweek_flagpoll_args --get-cxx-idlflags`" |
|---|
| | 136 | TWEEK_CXX_IDL_GENDIR_OPT="`$FLAGPOLL $tweek_flagpoll_args --get-cxx-idlgendir`" |
|---|
| | 137 | TWEEK_CXX_IDL_INCFLAG="`$FLAGPOLL $tweek_flagpoll_args --get-cxx-idlincflag`" |
|---|
| 217 | | AC_SUBST([TWEEK_LIBS_CC]) |
|---|
| 218 | | AC_SUBST([TWEEK_LIBS_LD]) |
|---|
| 219 | | AC_SUBST([TWEEK_PROF_LIBS_CC]) |
|---|
| 220 | | AC_SUBST([TWEEK_PROF_LIBS_LD]) |
|---|
| 221 | | AC_SUBST([TWEEK_LIBS_STATIC_LD]) |
|---|
| 222 | | AC_SUBST([TWEEK_LIBS_STATIC_CC]) |
|---|
| 223 | | AC_SUBST([TWEEK_PROF_LIBS_STATIC_LD]) |
|---|
| 224 | | AC_SUBST([TWEEK_PROF_LIBS_STATIC_CC]) |
|---|
| | 148 | AC_SUBST([TWEEK_LIBS]) |
|---|
| | 149 | AC_SUBST([TWEEK_PROF_LIBS]) |
|---|
| | 150 | AC_SUBST([TWEEK_LIBS_STATIC]) |
|---|
| | 151 | AC_SUBST([TWEEK_PROF_LIBS_STATIC]) |
|---|
| 231 | | AC_SUBST([TWEEK_CXXFLAGS_MIN]) |
|---|
| 232 | | AC_SUBST([TWEEK_INCLUDES_MIN]) |
|---|
| 233 | | AC_SUBST([TWEEK_LIBS_CC_MIN]) |
|---|
| 234 | | AC_SUBST([TWEEK_LIBS_LD_MIN]) |
|---|
| 235 | | AC_SUBST([TWEEK_PROF_LIBS_CC_MIN]) |
|---|
| 236 | | AC_SUBST([TWEEK_PROF_LIBS_LD_MIN]) |
|---|
| 237 | | AC_SUBST([TWEEK_LIBS_STATIC_CC_MIN]) |
|---|
| 238 | | AC_SUBST([TWEEK_LIBS_STATIC_LD_MIN]) |
|---|
| 239 | | AC_SUBST([TWEEK_PROF_LIBS_STATIC_CC_MIN]) |
|---|
| 240 | | AC_SUBST([TWEEK_PROF_LIBS_STATIC_LD_MIN]) |
|---|
| 281 | | TWEEK_JAVA_IDL="`$TWEEK_CONFIG $tweek_config_args --idl java`" |
|---|
| 282 | | TWEEK_JAVA_IDL_OPTS="`$TWEEK_CONFIG $tweek_config_args --idlflags java`" |
|---|
| 283 | | TWEEK_JAVA_IDL_GENDIR_OPT="`$TWEEK_CONFIG $tweek_config_args --idlgendir java`" |
|---|
| 284 | | TWEEK_JAVA_IDL_INCFLAG="`$TWEEK_CONFIG $tweek_config_args --idlincflag java`" |
|---|
| 285 | | TWEEK_JARS="`$TWEEK_CONFIG $tweek_config_args --jars`" |
|---|
| 286 | | TWEEK_EXT_JARS="`$TWEEK_CONFIG $tweek_config_args --ext-jars`" |
|---|
| | 198 | TWEEK_JAVA_IDL="`$FLAGPOLL $tweek_flagpoll_args --get-java-idl`" |
|---|
| | 199 | TWEEK_JAVA_IDL_OPTS="`$FLAGPOLL $tweek_flagpoll_args --get-java-idlflags`" |
|---|
| | 200 | TWEEK_JAVA_IDL_GENDIR_OPT="`$FLAGPOLL $tweek_flagpoll_args --get-java-idlgendir`" |
|---|
| | 201 | TWEEK_JAVA_IDL_INCFLAG="`$FLAGPOLL $tweek_flagpoll_args --get-java-idlincflag`" |
|---|
| | 202 | TWEEK_JARS="`$FLAGPOLL $tweek_flagpoll_args --get-jars`" |
|---|
| | 203 | TWEEK_EXT_JARS="`$FLAGPOLL $tweek_flagpoll_args --get-ext-jars`" |
|---|
| 339 | | TWEEK_PYTHON_IDL="`$TWEEK_CONFIG $tweek_config_args --idl java`" |
|---|
| 340 | | TWEEK_PYTHON_IDL_OPTS="`$TWEEK_CONFIG $tweek_config_args --idlflags java`" |
|---|
| 341 | | TWEEK_PYTHON_IDL_GENDIR_OPT="`$TWEEK_CONFIG $tweek_config_args --idlgendir java`" |
|---|
| 342 | | TWEEK_PYTHON_IDL_INCFLAG="`$TWEEK_CONFIG $tweek_config_args --idlincflag java`" |
|---|
| 343 | | TWEEK_JARS="`$TWEEK_CONFIG $tweek_config_args --jars`" |
|---|
| 344 | | TWEEK_EXT_JARS="`$TWEEK_CONFIG $tweek_config_args --ext-jars`" |
|---|
| | 256 | TWEEK_PYTHON_IDL="`$FLAGPOLL $tweek_flagpoll_args --get-python-idl`" |
|---|
| | 257 | TWEEK_PYTHON_IDL_OPTS="`$FLAGPOLL $tweek_flagpoll_args ---get-python-idlflags`" |
|---|
| | 258 | TWEEK_PYTHON_IDL_GENDIR_OPT="`$FLAGPOLL $tweek_flagpoll_args --get-python-idlgendir`" |
|---|
| | 259 | TWEEK_PYTHON_IDL_INCFLAG="`$FLAGPOLL $tweek_flagpoll_args --get-python-idlincflag`" |
|---|
| | 260 | TWEEK_JARS="`$FLAGPOLL $tweek_flagpoll_args --get-jars`" |
|---|
| | 261 | TWEEK_EXT_JARS="`$FLAGPOLL $tweek_flagpoll_args --get-ext-jars`" |
|---|