245 |
|
if test "$ESD_CONFIG" = "no" ; then |
246 |
|
no_esd=yes |
247 |
|
else |
248 |
– |
AC_LANG_SAVE |
249 |
– |
AC_LANG_C |
248 |
|
ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` |
249 |
|
ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` |
250 |
|
|
321 |
|
],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
322 |
|
CFLAGS="$ac_save_CFLAGS" |
323 |
|
LIBS="$ac_save_LIBS" |
326 |
– |
AC_LANG_RESTORE |
324 |
|
fi |
325 |
|
fi |
326 |
|
if test "x$no_esd" = x ; then |
340 |
|
echo "*** Could not run ESD test program, checking why..." |
341 |
|
CFLAGS="$CFLAGS $ESD_CFLAGS" |
342 |
|
LIBS="$LIBS $ESD_LIBS" |
346 |
– |
AC_LANG_SAVE |
347 |
– |
AC_LANG_C |
343 |
|
AC_TRY_LINK([ |
344 |
|
#include <stdio.h> |
345 |
|
#include <esd.h> |
359 |
|
echo "*** may want to edit the esd-config script: $ESD_CONFIG" ]) |
360 |
|
CFLAGS="$ac_save_CFLAGS" |
361 |
|
LIBS="$ac_save_LIBS" |
367 |
– |
AC_LANG_RESTORE |
362 |
|
fi |
363 |
|
fi |
364 |
|
ESD_CFLAGS="" |