1AC_ARG_WITH(drmingw, 2 AC_HELP_STRING([--with-drmingw=path],[use link against Dr. MinGW's crash reporting library found in path]), 3 [ drmingw_path="$with_drmingw" ],) 4 5USE_DRMINGW=no 6 7if ! test -z "$drmingw_path"; then 8 AC_CACHE_CHECK([for Dr. MinGW], [ax_cv_drmingw_found], [ 9 save_CFLAGS="$CFLAGS" 10 save_LIBS="$LIBS" 11 CFLAGS="$CFLAGS -I$drmingw_path/include" 12 LIBS="$LIBS -L$drmingw_path/lib -lexchndl" 13 AC_TRY_LINK( 14 [#include "exchndl.h"], 15 [ExcHndlInit();], 16 [ax_cv_drmingw_found=yes], 17 [ax_cv_drmingw_found=no]) 18 CFLAGS="$save_CFLAGS" 19 LIBS="$save_LIBS" 20 ]) 21 22 if test x"$ax_cv_drmingw_found" = xyes; then 23 DRMINGW_PATH="$drmingw_path" 24 USE_DRMINGW=yes 25 fi 26fi 27 28AC_SUBST(DRMINGW_PATH) 29AC_SUBST(USE_DRMINGW) 30