~fboucault/lightdm/crossbuild_fixes

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: robert.ancell at gmail
  • Date: 2010-05-05 06:57:07 UTC
  • Revision ID: robert.ancell@gmail.com-20100505065707-tgz078qyrk9twil1
MakeĀ optionsĀ configurable

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
AC_SUBST(DBUS_SYS_DIR)
57
57
 
58
58
dnl ###########################################################################
 
59
dnl Configurable values
 
60
dnl ###########################################################################
 
61
 
 
62
AC_ARG_WITH(config-file,
 
63
            AS_HELP_STRING([--config-file=<file>],
 
64
                           [Configuration file to load]))
 
65
if test x$withval != x; then
 
66
    CONFIG_FILE="$withval"
 
67
else
 
68
    CONFIG_FILE=$(sysconfdir)/lightdm.conf
 
69
fi
 
70
AC_SUBST(CONFIG_FILE)
 
71
 
 
72
AC_ARG_WITH(xserver-binary,
 
73
            AS_HELP_STRING([--xserver-binary=<binary>],
 
74
                           [X server binary name]))
 
75
if test x$withval != x; then
 
76
    XSERVER_BINARY="$withval"
 
77
else
 
78
    XSERVER_BINARY=${prefix}/bin/X
 
79
fi
 
80
AC_SUBST(XSERVER_BINARY)
 
81
 
 
82
AC_ARG_WITH(xsession-dir,
 
83
            AS_HELP_STRING([--xsession-dir=<dir>],
 
84
                           [X session directory]))
 
85
if test x$withval != x; then
 
86
    XSESSION_DIR="$withval"
 
87
else
 
88
    XSESSION_DIR=${prefix}/share/xsessions
 
89
fi
 
90
AC_SUBST(XSESSION_DIR)
 
91
 
 
92
AC_ARG_WITH(default-session,
 
93
            AS_HELP_STRING([--default-session=<name>],
 
94
                           [Default session to launch]))
 
95
if test x$withval != x; then
 
96
    DEFAULT_SESSION="$withval"
 
97
else
 
98
    DEFAULT_SESSION=gnome
 
99
fi
 
100
AC_SUBST(DEFAULT_SESSION)
 
101
 
 
102
AC_ARG_WITH(greeter-user,
 
103
            AS_HELP_STRING([--greeter-user=<username>],
 
104
                           [User to run greeter as]))
 
105
if test x$withval != x; then
 
106
    GREETER_USER="$withval"
 
107
else
 
108
    GREETER_USER=gdm
 
109
fi
 
110
AC_SUBST(GREETER_USER)
 
111
 
 
112
AC_ARG_WITH(greeter-binary,
 
113
            AS_HELP_STRING([--greeter-binary=<binary>],
 
114
                           [Greeter to execute]))
 
115
if test x$withval != x; then
 
116
    GREETER_BINARY="$withval"
 
117
else
 
118
    GREETER_BINARY=${prefix}/bin/ldmgreeter
 
119
fi
 
120
AC_SUBST(GREETER_BINARY)
 
121
 
 
122
dnl ###########################################################################
59
123
dnl Documentation
60
124
dnl ###########################################################################
61
125
 
80
144
po/Makefile.in
81
145
src/Makefile
82
146
])
 
147
 
 
148
dnl ###########################################################################
 
149
dnl Summary
 
150
dnl ###########################################################################
 
151
 
 
152
echo "
 
153
                    Light Display Manager $VERSION
 
154
                    ===========================
 
155
 
 
156
        prefix:                   ${prefix}
 
157
        Config file:              ${CONFIG_FILE}
 
158
        XServer binary:           ${XSERVER_BINARY}
 
159
        XSessions dir:            ${XSESSION_DIR}
 
160
        Default session:          ${DEFAULT_SESSION}
 
161
        Greeter user:             ${GREETER_USER}
 
162
        Greeter binary:           ${GREETER_BINARY}
 
163
"