Rev 8182 | Rev 13454 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8182 | Rev 13317 | ||
---|---|---|---|
Line 183... | Line 183... | ||
183 | # Configure options |
183 | # Configure options |
184 | AC_ARG_WITH(units, [ --without-units Don't compile units-filter (units recognition)],echo Compile units-filter: $with_units, with_units=yes; echo Compile units-filter: yes) |
184 | AC_ARG_WITH(units, [ --without-units Don't compile units-filter (units recognition)],echo Compile units-filter: $with_units, with_units=yes; echo Compile units-filter: yes) |
185 | BUILD_UNITS= |
185 | BUILD_UNITS= |
186 | if test "$with_units" = "yes"; then |
186 | if test "$with_units" = "yes"; then |
187 | case "$LEXLIB" in |
187 | case "$LEXLIB" in |
188 | -lfl) BUILD_UNITS=units-filter;; |
188 | -lfl | -ll) BUILD_UNITS=units-filter;; |
189 | *) with_units=no; echo "Wait ... flex is not available, Compile units : no";; |
189 | *) with_units=no; echo "Wait ... flex is not available, Compile units : no";; |
190 | esac |
190 | esac |
191 | fi |
191 | fi |
192 | 192 | ||
193 | AC_ARG_WITH(chemeq,[ --without-chemeq Don't compile chemeq (chemical equation analyzer)],echo Compile chemeq: $with_chemeq, with_chemeq=yes; echo Compile chemeq: yes) |
193 | AC_ARG_WITH(chemeq,[ --without-chemeq Don't compile chemeq (chemical equation analyzer)],echo Compile chemeq: $with_chemeq, with_chemeq=yes; echo Compile chemeq: yes) |
194 | BUILD_CHEMEQ= |
194 | BUILD_CHEMEQ= |
195 | if test "$with_chemeq" = "yes"; then |
195 | if test "$with_chemeq" = "yes"; then |
196 | case "$LEXLIB" in |
196 | case "$LEXLIB" in |
197 | -lfl) if test "$CXX" = "g++"; then |
197 | -lfl | -ll) if test "$CXX" = "g++"; then |
198 | case `"$CXX" --version` in |
198 | case `"$CXX" --version` in |
199 | [ 1*|2.[1-8]*|2.9[1-4]*|2.95.[1-2]) ] |
199 | [ 1*|2.[1-8]*|2.9[1-4]*|2.95.[1-2]) ] |
200 | with_chemeq=no |
200 | with_chemeq=no |
201 | echo "Wait ... I need at least g++-2.95.3, Compile chemeq: no" ;; |
201 | echo "Wait ... I need at least g++-2.95.3, Compile chemeq: no" ;; |
202 | *) BUILD_CHEMEQ=chemeq;; |
202 | *) BUILD_CHEMEQ=chemeq;; |