File: configure.in

package info (click to toggle)
ami 1.0.1-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,532 kB
  • ctags: 2,181
  • sloc: ansic: 19,793; sh: 357; makefile: 216
file content (79 lines) | stat: -rw-r--r-- 2,098 bytes parent folder | download
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
79
dnl Process this file with autoconf to produce configure script.  -*-m4-*-
AC_INIT(src/ami.c)
AM_INIT_AUTOMAKE(ami, 1.0.1)
AM_CONFIG_HEADER(config.h)

AM_MAINTAINER_MODE

AC_PROG_CC
AC_ISC_POSIX
AM_PROG_CC_STDC
AC_PROG_RANLIB

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_OFF_T

GNOME_COMPILE_WARNINGS

dnl build gnome applet?
AC_ARG_ENABLE(gnome-applet,
[  --enable-gnome-applet     make ami gnome-applet [default=no]])
if test x$enable_gnome_applet = xyes; then
    dnl Check GNOME,
    GNOME_INIT_HOOK(,fail,applets)
    X_LDFLAGS=$GNOME_LIBDIR
else
    enable_gnome_applet=no
    dnl Check just GTK+.
    AM_PATH_GTK(1.2.0,,[AC_MSG_ERROR(GTK+ 1.2.0 or above not found)])
    X_LDFLAGS=$GTK_LIBS
fi
AM_CONDITIONAL(GNOMEAPPLET, test x$enable_gnome_applet = xyes)

dnl set default of korean keyboard type
AC_ARG_WITH(hangul-keyboard, [  --with-hangul-keyboard=[2|3]  default=3])
if test "x$with_hangul_keyboard" = "x2"; then
   AC_DEFINE_UNQUOTED(HANGUL_KEYBOARD, "2")
else
   AC_DEFINE_UNQUOTED(HANGUL_KEYBOARD, "3")
fi

dnl set default of english keyboard type
AC_ARG_WITH(english-keyboard, [  --with-english-keyboard=[qwerty|dvorak]  default=qwerty ])
if test "x$with_english_keyboard" = "xdvorak"; then
   AC_DEFINE_UNQUOTED(ENGLISH_KEYBOARD, "2")
fi

dnl XIM or Ximp ?
saved_ldflags="$LDFLAGS"
LDFLAGS="$X_LDFLAGS"
AC_CHECK_LIB(X11, XConvertCase, [x11r6=yes], [x11r6=no])
AM_CONDITIONAL(X11R6, test x$x11r6 = xyes)
if test x$x11r6 = xyes; then
    IMDKIT_DEFINES="-DXIM_t -DUse_Xi18n"
else
    IMDKIT_DEFINES="-DUse_Ximp"
fi
AC_SUBST(IMDKIT_DEFINES)
LDFLAGS="$saved_ldflags"

dnl if test x$prefix != xNONE; then
dnl  AC_DEFINE_UNQUOTED(HANJA_DIC, "$datadir/$PACKAGE/hanja.dic")
dnl  AC_DEFINE_UNQUOTED(SYS_RCFILE, "$prefix/$PACKAGE/gtkrc")
dnl else
dnl  AC_DEFINE_UNQUOTED(HANJA_DIC, "$ac_default_prefix/share/$PACKAGE/hanja.dic")
dnl  AC_DEFINE_UNQUOTED(SYS_RCFILE, "$ac_default_prefix/share/$PACKAGE/gtkrc")
dnl fi

AC_OUTPUT([
Makefile
Ximd/Makefile
src/Makefile
ami.spec
])