Hmm
[diplomippbx.git] / diplom / configure.ac
blobe58fb3c6f8324161067e74efbf9f5b454a0398b6
1 AC_INIT( [diplom], [0.1], [http://bugzilla.altlinux.ru] )
3 AC_ARG_WITH(aptconf,
4             AC_HELP_STRING([--with-aptconf=file],
5                            [custom apt.conf location, e.g '--with-aptconf=/home/user/apt.conf']),
6                            [
7                             AC_MSG_CHECKING([apt.conf file])
8                             if test -r "$with_aptconf"  ; then
9                                     APTCONF="$with_aptconf"
10                                     AC_MSG_RESULT(["$with_aptconf exists"])
11                             fi
12                             ],
13                             [
14                              APTCONF=/etc/apt/apt.conf
15                              ])
16 AC_ARG_WITH(license,
17             AC_HELP_STRING([--with-license=suffix],
18                            [alt-license-suffix setting, e.g '--with-license=lite']),
19                            [
20                             if test -n "$with_license"  ; then
21                                     LICENSE="$with_license"
22                                     fi
23                                     ],
24                                     [
25                                      LICENSE="server"
26                                      ])
28 AC_ARG_WITH(arch,
29             AC_HELP_STRING([--with-arch=arch],
30                            [arch setting, e.g '--with-license=i586']),
31                            [
32                             if test -n "$with_arch"  ; then
33                                     ARCH="$with_arch"
34                                     if [ ! "$ARCH" = 'i586' ] ; then
35                                             I586='#';
36                                     fi
37                                     fi
38                                     ],
39                                     [
40                                      ARCH="i586"
41                                      ])
43 AC_ARG_WITH(theme,
44             AC_HELP_STRING([--with-theme=theme],
45                            [theme setting, e.g '--with-theme=lite']),
46                            [
47                             if test -n "$with_theme"  ; then
48                                     THEME="$with_theme"
49                                     INSTALLER_ICONS="$with_theme"
50                             fi
51                                ],
52                                     [
53                                      THEME="lite"
54                                      INSTALLER_ICONS="lite"
55                                      ])
56 AC_ARG_WITH(outdir,
57             AC_HELP_STRING([--with-outdir=dir],
58                            [custom output files location, e.g '--with-outdir=/home/user/out/']),
59                            [
60                             AC_MSG_CHECKING([outdir])
61                             if test -d "$with_outdir"; then
62                                     OUTDIR="$with_outdir"
63                                     AC_MSG_RESULT(["$with_outdir exists"])
64                             fi
65                             ],
66                             [
67                              OUTDIR=`pwd`/profiles/out
68                              ])
70 AC_ARG_WITH(mkimage,
71             AC_HELP_STRING([--with-mkimage=dir],
72                            [custom mkimage prefix, e.g '--with-mkimage=/home/user/']),
73                            [
74                             AC_MSG_CHECKING([mkimage])
75                             if test -d "$with_mkimage/usr/share/mkimage"; then
76                                     MKI_PREFIX="$with_mkimage"
77                                     AC_MSG_RESULT(["$with_mkimage/usr/share/mkimage exists"])
78                             fi
79                             ],
80                             [
81                              MKI_PREFIX=''
82                              ])
85 AC_SUBST(APTCONF)
86 AC_SUBST(ARCH)
87 AC_SUBST(I586)
88 AC_SUBST(OUTDIR)
89 AC_SUBST(MKI_PREFIX)
90 AC_SUBST(LICENSE)
91 AC_SUBST(THEME)
92 AC_SUBST(INSTALLER_ICONS)
96 AC_CONFIG_FILES([
97                  Makefile
98                  profiles/Makefile
99                  profiles/install2/Makefile
100                  profiles/diplom-base/Makefile
101                  profiles/diplom-disk/Makefile
102                  profiles/rescue/Makefile
105 AC_OUTPUT