aboutsummaryrefslogblamecommitdiff
path: root/m4/ac_evas.m4
blob: 16feb10b62f2e0c3cf06c20cd4b0a2fdc9cb05f2 (plain) (tree)



















                                                                        
AC_DEFUN([AC_CHK_EVAS],
[
  AC_ARG_WITH(
    [evas-config],
    [  --with-evas-config=EVAS_CONFIG_PATH  use evas-config specified ],
    [EVAS_CONFIG=$withval;
     if ! test -x "$EVAS_CONFIG"; then
       AC_MSG_ERROR([$EVAS_CONFIG not found])
     fi],
    [AC_PATH_PROG(EVAS_CONFIG, "evas-config", "", $PATH)
     if test -z "$EVAS_CONFIG"; then
       AC_MSG_ERROR([You need evas !])
     fi])

  evas_cflags=`$EVAS_CONFIG --cflags`
  evas_libs=`$EVAS_CONFIG --libs`
  
  AC_SUBST(evas_cflags)
  AC_SUBST(evas_libs)
])