File: configure.in

package info (click to toggle)
prime 1.0.0.1-2.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,420 kB
  • sloc: ruby: 7,139; lisp: 1,866; sh: 442; makefile: 242
file content (69 lines) | stat: -rw-r--r-- 2,442 bytes parent folder | download | duplicates (4)
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
dnl configure.in: Creates a configure script for prime of PRIME.
dnl $Id: configure.in,v 1.28.2.6 2005/03/29 15:56:30 komatsu Exp $
dnl
dnl Copyright (C) 2003 Hiroyuki Komatsu <komatsu@taiyaki.org>
dnl     All rights reserved.
dnl     This is free software with ABSOLUTELY NO WARRANTY.
dnl
dnl You can redistribute it and/or modify it under the terms of 
dnl the GNU General Public License version 2.

# Process this file with autoconf to produce a configure script.
AC_INIT(prime, 1.0.0.1, komatsu@taiyaki.org,
	[PRIME - PRedictive Input Method Editor (Server)])
AC_PREREQ(2.53)

AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
# AM_MAINTAINER_MODE
AC_INIT_DEFAULT_VALUES
AC_SUBST(DATE, "2004-03-30")

MY_AC_PROG_RUBY
MY_AC_PROG_UIM

# Checks for user options.
AC_ARG_WITH(rubydir,
	AC_HELP_STRING([--with-rubydir=DIR],
		       [ruby libraries directory [[LIBDIR/ruby/RUBY_VERSION]]]),
	[rubydir=$withval],
	[rubydir=AC_RUBY_SITELIBDIR])
AC_SUBST(rubydir)

AC_ARG_WITH(prime-command,
	AC_HELP_STRING([--with-prime-command=COMMAND],
		       [Command name of PRIME [[prime]]]),
	[PRIME_COMMAND=$withval],
	[PRIME_COMMAND=prime])
AC_SUBST(PRIME_COMMAND)

AC_ARG_WITH(prime-configdir,
	AC_HELP_STRING([--with-prime-configdir=DIR],
		       [configuration directory (for "etc" files) [[SYSCONFDIR/prime]]]),
	[PRIME_CONFIG_DIR=$withval],
	[PRIME_CONFIG_DIR=AC_VAR_EXPAND($sysconfdir/prime)])
AC_SUBST(PRIME_CONFIG_DIR)

AC_ARG_WITH(prime-grammardir,
	AC_HELP_STRING([--with-prime-grammardir=DIR],
		       [grammar files [[DATADIR/prime/grammar]]]),
	[PRIME_GRAMMAR_DIR=$withval],
	[PRIME_GRAMMAR_DIR=AC_VAR_EXPAND($datadir/prime/grammar)])
AC_SUBST(PRIME_GRAMMAR_DIR)

AC_ARG_WITH(prime-docdir,
	AC_HELP_STRING([--with-prime-docdir=DIR],
		       [dictionaries [[DATADIR/doc/prime]]]),
	[PRIME_DOC_DIR=$withval],
	[PRIME_DOC_DIR=AC_VAR_EXPAND($datadir/doc/prime)])
AC_SUBST(PRIME_DOC_DIR)
AC_SUBST(PRIME_DATA_DIR, AC_VAR_EXPAND($datadir/prime))

# Output of configure files
AC_CONFIG_FILES([Makefile src/Makefile grammar/Makefile lib/Makefile
                 lib/engine/Makefile lib/grammar/Makefile lib/makedict/Makefile
                 etc/Makefile uim/Makefile doc/Makefile doc/figures/Makefile
                 doc/figures/src/Makefile doc/memo/Makefile
                 lib/prime-config.rb prime.pc
                 prime.spec packaging/Debian/debian/Makefile
                 packaging/Debian/Makefile packaging/Makefile])
AC_OUTPUT