source: rtems/contrib/repo-conf/configure.ac @ d09e7fc

4.104.115
Last change on this file since d09e7fc was 04a82e9c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/11/10 at 12:27:39

Update.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.64)
5AC_INIT([rtems-]_RTEMS_API[-repo-conf],[0.24],[http://www.rtems.org/bugzilla],
6  [rtems-]_RTEMS_API[-repo-conf])
7RTEMS_VERSIONING
8
9AC_CONFIG_SRCDIR([gpg])
10AC_CONFIG_AUX_DIR([.])
11AC_SUBST([RTEMS_API],[_RTEMS_API])
12AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip dist-xz 1.10.1])
13
14AC_ARG_ENABLE(osname,AS_HELP_STRING(
15[--enable-osname=<dir> ... os name]),
16[osname="$enable_osname"],
17[osname="fedora-12"])
18
19case $osname in
20fedora-11* | fedora-12* | fedora-13* )
21  os_name="Fedora"
22  os_subdir="fedora"
23  os_vers=`echo $osname| sed -e 's,^.*-,,'`
24  yum_verdir="\$\$releasever"
25  apt_verdir="\$\$(VERSION)"
26  ;;
27centos-5* | redhat-el5* | fedora-7* | fedora-8* | fedora-9* | fedora-10* )
28  os_name="CentOS"
29  os_subdir="centos"
30  os_vers=`echo $osname| sed -e 's,^.*-,,'`
31  yum_verdir="5"
32  apt_verdir="5"
33  ;;
34centos-4* | redhat-el4* | fedora-5* | fedora-6* )
35  os_name="CentOS"
36  os_subdir="centos"
37  os_vers=`echo $osname| sed -e 's,^.*-,,'`
38  yum_verdir="4"
39  apt_verdir="4"
40  ;;
41suse-*)
42  os_name="openSUSE"
43  os_subdir="suse"
44  os_vers=`echo $osname| sed -e 's,^.*-,,'`
45  yum_verdir="\$\$releasever"
46  apt_verdir="\$\$(VERSION)"
47  ;;
48*)
49  AC_MSG_ERROR([Unsupported OS])
50esac
51
52AC_SUBST([OS_NAME],[$os_name])
53AC_SUBST([OS_SUBDIR],[$os_subdir])
54AC_SUBST([OS_VERS],[$os_vers])
55AC_SUBST([YUM_VERDIR],[$yum_verdir])
56AC_SUBST([APT_VERDIR],[$apt_verdir])
57
58AC_CONFIG_FILES([Makefile])
59AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.