~joh/alarm-clock/trunk

« back to all changes in this revision

Viewing changes to m4/ac-define-dir.m4

  • Committer: joh
  • Date: 2007-11-29 22:52:57 UTC
  • Revision ID: svn-v3-trunk0:09227056-e07b-4814-8d26-2976ae7b09e1:trunk:6
Working autotoolized.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl from ac-archives
 
2
AC_DEFUN([AC_DEFINE_DIR], [
 
3
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
4
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
5
  ac_define_dir=`eval echo [$]$2`
 
6
  ac_define_dir=`eval echo [$]ac_define_dir`
 
7
  $1="$ac_define_dir"
 
8
  AC_SUBST($1)
 
9
  ifelse($3, ,
 
10
    AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
 
11
    AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
 
12
])