File: configure.ac

package info (click to toggle)
suikyo 2.1.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 904 kB
  • ctags: 115
  • sloc: ruby: 1,160; sh: 548; lisp: 165; makefile: 112
file content (75 lines) | stat: -rw-r--r-- 2,727 bytes parent folder | download | duplicates (3)
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
dnl configure.in: Creates a configure script for suikyo.
dnl $Id: configure.ac,v 1.19 2005/03/29 02:07:09 komatsu Exp $
dnl
dnl Copyright (C) 2003, 2004 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(suikyo, 2.1.0, komatsu@taiyaki.org,
	[SUIKYO - Romaji-Kana conversion library])
AC_PREREQ(2.53)

AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
# AM_MAINTAINER_MODE
AC_INIT_DEFAULT_VALUES
AC_SUBST(DATE, "2005-03-29")

MY_AC_PROG_RUBY

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

AC_ARG_WITH(emacs-sitelispdir,
	AC_HELP_STRING([--with-emacs-sitelispdir=DIR],
		       [emacs lisp libraries directory [[DATADIR/emacs/site-lisp]]]),
	[emacs_sitelisp_dir=$withval],
	[emacs_sitelisp_dir=AC_VAR_EXPAND($datadir/emacs/site-lisp)])
AC_SUBST(emacs_sitelisp_dir)

AC_ARG_WITH(emacs-initdir,
	AC_HELP_STRING([--with-emacs-initdir=DIR],
		       [directory for emacs lisp initialization [[emacs-sitelisp-dir]]]),
	[EMACS_INIT_DIR=$withval],
	[EMACS_INIT_DIR=$emacs_sitelisp_dir])
AC_SUBST(EMACS_INIT_DIR)

AC_ARG_WITH(suikyo-el-initfile,
	AC_HELP_STRING([--with-suikyo-el-initfile=FILENAME],
		       [filename of suikyo-el initializing file [[init-suikyo.el]]]),
	[SUIKYOEL_INIT_FILE=$withval],
	[SUIKYOEL_INIT_FILE=init-suikyo.el])
AC_SUBST(SUIKYOEL_INIT_FILE)
AC_SUBST(SUIKYOEL_FEATURE_NAME, AC_FILE_SANS_EXT($SUIKYOEL_INIT_FILE))

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

AC_ARG_WITH(suikyo-tabledir,
	AC_HELP_STRING([--with-suikyo-tabledir=DIR],
		       [directory for conversion tables [[DATADIR/suikyo/conv-table]]]),
	[SUIKYO_TABLE_DIR=$withval],
	[SUIKYO_TABLE_DIR=AC_VAR_EXPAND($datadir/suikyo/conv-table)])
AC_SUBST(SUIKYO_TABLE_DIR)

# Output of configure files
AC_CONFIG_FILES([Makefile conv-table/Makefile contrib/Makefile
                 doc/Makefile elisp/Makefile ruby/Makefile
                 elisp/doc/Makefile elisp/etc/Makefile elisp/src/Makefile
                 ruby/doc/Makefile  ruby/test/Makefile ruby/src/Makefile
                 elisp/etc/_init-suikyo.el
                 elisp/src/suikyo-config.el ruby/src/suikyo-config.rb
                 suikyo.spec suikyo.pc])
AC_OUTPUT