summaryrefslogtreecommitdiffstats
path: root/contrib/repo-conf/configure.ac
blob: 2babf18ad8b9f8fac2d3d38aa8492ec0aa078a29 (plain) (blame)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([rtems-]_RTEMS_API[-repo-conf],[0.19],[http://www.rtems.org/bugzilla],
  [rtems-]_RTEMS_API[-repo-conf])
RTEMS_VERSIONING

AC_CONFIG_SRCDIR([gpg])
AC_CONFIG_AUX_DIR([.])
AC_SUBST([RTEMS_API],[_RTEMS_API])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip 1.10])

AC_ARG_ENABLE(osname,AS_HELP_STRING(
[--enable-osname=<dir> ... os name]),
[osname="$enable_osname"],
[osname="fedora-11"])

case $osname in
fedora-10 | fedora-11 )
  os_name="Fedora"
  os_subdir="fedora"
  os_vers=`echo $osname| sed -e 's,^.*-,,'`
  yum_verdir="\$\$releasever"
  apt_verdir="\$\$(VERSION)"
  ;;
centos-5 | redhat-el5 | fedora-7 | fedora-8 | fedora-9 )
  os_name="CentOS"
  os_subdir="centos"
  os_vers=`echo $osname| sed -e 's,^.*-,,'`
  yum_verdir="5"
  apt_verdir="5"
  ;;
suse-10.3 | suse-11.0 | suse-11.1 )
  os_name="openSUSE"
  os_subdir="suse"
  os_vers=`echo $osname| sed -e 's,^.*-,,'`
  yum_verdir="\$\$releasever"
  apt_verdir="\$\$(VERSION)"
  ;;
*)
  AC_MSG_ERROR([Unsupported OS])
esac

AC_SUBST([OS_NAME],[$os_name])
AC_SUBST([OS_SUBDIR],[$os_subdir])
AC_SUBST([OS_VERS],[$os_vers])
AC_SUBST([YUM_VERDIR],[$yum_verdir])
AC_SUBST([APT_VERDIR],[$apt_verdir])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT