/[muddleftpd]/muddleftpd/configure.ac
ViewVC logotype

Diff of /muddleftpd/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rugger, Thu Oct 17 08:14:04 2002 UTC revision 1.2 by rugger, Sun Oct 20 11:51:26 2002 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
2  AC_INIT  AC_INIT
3    AC_PREREQ(2.54)
4    
5  AC_CONFIG_SRCDIR([src/acl.c])  AC_CONFIG_SRCDIR([src/acl.c])
6  AC_CONFIG_HEADER(config.h)  AC_CONFIG_HEADER(config.h)
7    
# Line 144  AC_CHECK_FUNCS(strerror getspnam) Line 146  AC_CHECK_FUNCS(strerror getspnam)
146  AC_CHECK_FUNCS(usleep pam_start fgetpwent fgetgrent sendfile)  AC_CHECK_FUNCS(usleep pam_start fgetpwent fgetgrent sendfile)
147  AC_CHECK_FUNCS(cap_init seteuid setegid)  AC_CHECK_FUNCS(cap_init seteuid setegid)
148  AC_PROG_CC_SWITCH(rdynamic)  AC_PROG_CC_SWITCH(rdynamic)
149  AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])  
150    dnl check for additional features
151    
152    dnl Checks for libraries.
153    
154    # MUD module
155    AC_ARG_WITH(authmud,
156            AC_HELP_STRING([--with-authmud], [create MUD authentication module. (no)]),
157            authmud=$withval, authmud=no
158    )
159    
160    if test "$authmud" != no; then
161            AC_CONFIG_SUBDIRS(modules/auth/authlibmud)
162            modules="$modules authmud"
163    fi
164    
165    # SMB module
166    AC_ARG_WITH(authsmb,
167            AC_HELP_STRING([--with-authsmb], [create SMB authentication module. (yes)]),
168            authsmb=$withval, authsmb=yes
169    )
170    
171    if test "$authsmb" != no; then
172            AC_CONFIG_SUBDIRS(modules/auth/authlibsmb)
173            modules="$modules authsmb"
174    fi
175    
176    # MSQL module
177    AC_ARG_WITH(authmsql,
178            AC_HELP_STRING([--with-authmsql], [create mSQL authentication module. (no)]),
179            authmsql=$withval, authmsql=no
180    )
181    
182    AC_ARG_WITH(msqlpath,
183            AC_HELP_STRING([--with-msqlpath], [specify the top level of the msql installation tree.  (default is /usr/local/Hughes)]),
184            mysqltop=$withval, msqltop=/usr/local/Hughes
185    )
186    
187    if test "$authmsql" != no; then
188            AC_CONFIG_SUBDIRS(modules/auth/authlibmsql)
189            modules="$modules authmsql"
190    fi
191    
192    # MYSQL module
193    AC_ARG_WITH(authmysql,
194            AC_HELP_STRING([--with-authmysql], [create MySQL authentication module. (no)]),
195            authmysql=$withval, authmysql=no
196    )
197    
198    AC_ARG_WITH(mysqlpath,
199            AC_HELP_STRING([--with-mysqlpath], [specify the top level of the MySQL installation tree.  (default is /usr/local/Hughes)]),
200            mysqltop=$withval, mysqltop=/usr/local/mysql
201    )
202    
203    if test "$authmysql" != no; then
204            AC_CONFIG_SUBDIRS(modules/auth/authlibmysql)
205            modules="$modules authmysql"
206    fi
207    
208    # work out zerobind default (false on linux, true on other systems)
209    
210    case `uname -s` in
211            Linux)
212                    zero_bind=FALSE
213                    ;;
214            *)
215                    zero_bind=TRUE
216                    ;;
217    esac
218    AC_SUBST(zerobind, "$zero_bind")
219    
220    AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile defaults.h])
221  AC_OUTPUT  AC_OUTPUT
222    
223    echo
224    echo Muddleftpd is now ready to be compiled!
225    echo
226    echo Modules selected for compile: $modules
227    echo
228    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26