~ubuntu-branches/ubuntu/trusty/xmedcon/trusty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# filename: acinclude.m4                                                  #
#                                                                         #
# UTILITY text: Medical Image Conversion Utility                          #
#                                                                         #
# purpose     : m4 macro's for configure script                           #
#                                                                         #
# project     : (X)MedCon by Erik Nolf                                    #
#                                                                         #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

dnl Define some (X)MedCon macro's

dnl MDC_CHECK_GLIBSUPPORT(GLIBSUPPORT)
dnl check GLIB package
AC_DEFUN([MDC_CHECK_GLIBSUPPORT],[
AC_MSG_CHECKING([for glib support])
if test x$1 = xyes; then
  if test x$ac_cv_prog_glib = xno ; then
    GLIBSUPPORTED=0
    GLIBMDCETC="<unused>"
    mdc_cv_glibsupport=no
  else
    GLIBSUPPORTED=1
    if test x${prefix} != xNONE ; then
      GLIBMDCETC=${prefix}/etc
    else
      GLIBMDCETC=${ac_default_prefix}/etc
    fi
  fi
fi
if test x$mdc_cv_glibsupport = xno; then
  GLIBSUPPORTED=0
  GLIBMDCETC="<unused>"
  echo "no"
else
  echo "yes"
fi
])

dnl MDC_CHECK_XSUPPORT(XSUPPORT)
dnl check GTK and GDK_PIXBUF package
AC_DEFUN([MDC_CHECK_XSUPPORT],[
AC_MSG_CHECKING([for X-support])
if test x$1 = xyes; then
  if test x$ac_cv_prog_gtk = xno -o x$ac_cv_prog_gdk_pixbuf = xno ; then
    XSUPPORTED=0
    XMDCETC="<unused>"
    mdc_cv_xsupport=no
  else
    XSUPPORTED=1
    if test x${prefix} != xNONE ; then
      XMDCETC=${prefix}/etc
    else
      XMDCETC=${ac_default_prefix}/etc
    fi
  fi
fi
if test x$mdc_cv_xsupport = xno; then
  XSUPPORTED=0
  XMDCETC="<unused>"
  echo "no"
else
  echo "yes"
fi
])

dnl Get answer to set variable
AC_DEFUN([ReadAnswer],[
read answ 
if test x$answ = xn -o x$answ = xno -o x$answ = xN -o x$answ = xNO;
then
  echo "no" 
else
  echo "yes"
fi
])