comparison configure @ 31943:339f812bb844

Fix arts check to actually check linking so it doesn't get enabled when e.g. cross-compiling under Linux for Windows.
author reimar
date Fri, 27 Aug 2010 16:19:24 +0000
parents 6ccc2a358030
children 923e9453ece9
comparison
equal deleted inserted replaced
31942:710e01dbd994 31943:339f812bb844
91 function_check() { 91 function_check() {
92 cat > $TMPC << EOF 92 cat > $TMPC << EOF
93 #include <$1> 93 #include <$1>
94 int main(void) { $2; return 0; } 94 int main(void) { $2; return 0; }
95 EOF 95 EOF
96 shift
96 shift 97 shift
97 compile_check $TMPC $@ 98 compile_check $TMPC $@
98 } 99 }
99 100
100 header_check() { 101 header_check() {
5693 5694
5694 echocheck "aRts" 5695 echocheck "aRts"
5695 if test "$_arts" = auto ; then 5696 if test "$_arts" = auto ; then
5696 _arts=no 5697 _arts=no
5697 if ( artsc-config --version ) >> "$TMPLOG" 2>&1 ; then 5698 if ( artsc-config --version ) >> "$TMPLOG" 2>&1 ; then
5698 header_check artsc.h $(artsc-config --libs) $(artsc-config --cflags) && 5699 function_check artsc.h "arts_init()" $(artsc-config --libs) $(artsc-config --cflags) &&
5699 _arts=yes 5700 _arts=yes
5700 fi 5701 fi
5701 fi 5702 fi
5702 5703
5703 if test "$_arts" = yes ; then 5704 if test "$_arts" = yes ; then