Obsolete sys/time.h and HAVE_TIME_WITH_SYS_TIME
[citadel.git] / webcit / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl $Id$
3 AC_INIT([WebCit],[m4_esyscmd_s(grep CLIENT_VERSION webcit.h | sed 's/[^0-9]*//g')],[http://uncensored.citadel.org])
4
5 AC_SUBST(PROG_SUBDIRS)
6 AC_DEFINE(PROG_SUBDIRS, [], [Program dirs])
7 AC_CANONICAL_HOST
8 AC_PROG_INSTALL
9 missing_dir=`cd $ac_aux_dir && pwd`
10 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
11 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
12
13 dnl Make sure we see all GNU and Solaris extensions.
14 AC_USE_SYSTEM_EXTENSIONS
15
16 AC_CHECK_PROG(SED, sed, sed, no)
17 AC_PREFIX_DEFAULT(/usr/local/webcit)
18 if test "$prefix" = NONE; then
19         AC_DEFINE_UNQUOTED(WEBCITDIR, "$ac_default_prefix", [define this to the Citadel home directory])
20         ssl_dir="$ac_default_prefix/keys"
21 else
22         AC_DEFINE_UNQUOTED(WEBCITDIR, "$prefix", [define this to the Citadel home directory])
23         ssl_dir="$prefix/keys"
24 fi
25
26 AC_ARG_WITH(ssl,
27         [  --with-ssl=PATH         Specify path to OpenSSL installation ],
28         [
29                 if test "x$withval" != "xno" ; then
30                         tryssldir=$withval
31                 fi
32         ]
33 )
34 dnl Set some system-specific variables which are OK to set before compiler
35 dnl checks:
36 PTHREAD_DEFS=-D_REENTRANT
37 case "$host" in
38         dnl Tru64 Unix requires we use -pthread instead of linking the threads
39         dnl libraries directly, and we can't build threaded programs with gcc
40         dnl due to header file problems.
41         alpha*-dec-osf*)
42                 test -z "$CC" && CC=cc
43                 LIBS=-pthread
44         ;;
45         dnl FreeBSD is similar:
46         *-*-freebsd*)
47                 LIBS=-pthread
48                 PTHREAD_DEFS=-D_THREAD_SAFE
49         ;;
50         *-*-solaris*)
51                 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
52         ;;
53         *-*-darwin*)
54                 LIBS=-lintl
55 esac
56 AC_SUBST(PTHREAD_DEFS)
57
58 dnl Checks for programs.
59 AC_PROG_CC
60
61 dnl Configure compiler flags for GCC
62 if test "$GCC" = yes; then
63         case "$host" in
64                 *-*-solaris*)
65 dnl                     CFLAGS="$CFLAGS -Wall -Wno-char-subscripts --pedantic"
66                         CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
67                 ;;
68                 *)
69 dnl                     CFLAGS="$CFLAGS -Wall --pedantic"
70                         CFLAGS="$CFLAGS -Wall"
71                 ;;
72         esac
73 fi
74
75 # missing_dir=`cd $ac_aux_dir && pwd`
76 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
77
78 dnl Checks for libraries.
79 if test "$LIBS" != -pthread; then
80         AC_CHECK_LIB(pthread, pthread_create)
81         AC_CHECK_LIB(pthreads, pthread_create)
82 fi
83 AC_SEARCH_LIBS(gethostbyname, nsl)
84 AC_SEARCH_LIBS(connect, socket)
85
86 dnl Checks for header files.
87 m4_warn([obsolete],
88 [The preprocessor macro `STDC_HEADERS' is obsolete.
89   Except in unusual embedded environments, you can safely include all
90   ISO C90 headers unconditionally.])dnl
91 # Autoupdate added the next two lines to ensure that your configure
92 # script's behavior did not change.  They are probably safe to remove.
93 AC_CHECK_INCLUDES_DEFAULT
94 AC_PROG_EGREP
95
96 dnl AC_HEADER_SYS_WAIT
97
98 AC_CHECK_FUNCS(crypt gethostbyname connect flock getpwnam_r getpwuid_r getloadavg)
99 AC_CACHE_CHECK(
100         [for call semantics from getpwuid_r], 
101         ac_cv_call_getpwuid_r,
102         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
103 #include <pwd.h>]], [[
104                                 struct passwd pw, *pwp;
105                                 char pwbuf[64];
106                                 uid_t uid;
107
108                                 getpwuid_r(uid, &pw, pwbuf, sizeof(pwbuf), &pwp);
109                         ]])],[ac_cv_call_getpwuid_r=yes],[ac_cv_call_getpwuid_r=no])
110         ])
111
112 if test $ac_cv_call_getpwuid_r = no; then
113         AC_DEFINE(SOLARIS_GETPWUID,[],[do we need to use solaris call syntax?])
114         AC_DEFINE(SOLARIS_LOCALTIME_R,[], [do we need to use soralis call syntax?])
115         AC_DEFINE(F_UID_T, "%ld", [whats the matching format string for uid_t?])
116         AC_DEFINE(F_PID_T, "%ld",  [whats the matching format string for pid_t?])
117         AC_DEFINE(F_XPID_T, "%lx",  [whats the matching format string for xpid_t?])
118 else
119         AC_DEFINE(F_UID_T, "%d",  [whats the matching format string for uid_t?])
120         AC_DEFINE(F_PID_T, "%d",  [whats the matching format string for pid_t?])
121         AC_DEFINE(F_XPID_T, "%x",  [whats the matching format string for xpid_t?])
122 fi
123
124
125
126 dnl Checks for typedefs, structures, and compiler characteristics.
127 AC_C_CONST
128 AC_TYPE_OFF_T
129 AC_TYPE_SIZE_T
130 dnl Check the size of various builtin types; see typesize.h (error)
131 AC_CHECK_SIZEOF(char, 0)
132 AC_CHECK_SIZEOF(short, 0)
133 AC_CHECK_SIZEOF(int, 0)
134 AC_CHECK_SIZEOF(long, 0)
135 AC_CHECK_SIZEOF(long unsigned int, 0)
136 AC_CHECK_SIZEOF(size_t, 0)
137 dnl m4_warn([obsolete],
138 [Update your code to rely only on HAVE_SYS_TIME_H,
139 then remove this warning and the obsolete code below it.
140 All current systems provide time.h; it need not be checked for.
141 Not all systems provide sys/time.h, but those that do, all allow
142 you to include it and time.h simultaneously.])dnl
143 AC_CHECK_HEADERS_ONCE([sys/time.h])
144 # Obsolete code to be removed.
145 if test $ac_cv_header_sys_time_h = yes; then
146   AC_DEFINE([TIME_WITH_SYS_TIME],[1],[Define to 1 if you can safely include both <sys/time.h>
147              and <time.h>.  This macro is obsolete.])
148 fi
149 # End of obsolete code.
150
151
152 dnl Checks for library functions.
153 m4_warn([obsolete],
154 [your code may safely assume C89 semantics that RETSIGTYPE is void.
155 Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
156 AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
157 [AC_LANG_PROGRAM([#include <sys/types.h>
158 #include <signal.h>
159 ],
160                  [return *(signal (0, 0)) (0) == 1;])],
161                    [ac_cv_type_signal=int],
162                    [ac_cv_type_signal=void])])
163 AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
164                     (`int' or `void').])
165
166 dnl AC_FUNC_VPRINTF
167 AC_REPLACE_FUNCS(snprintf)
168 AC_CHECK_HEADER(CUnit/CUnit.h, [AC_DEFINE(ENABLE_TESTS, [], [whether we should compile the test-suite])])
169
170 AC_CHECK_HEADERS(fcntl.h limits.h unistd.h iconv.h xlocale.h)
171
172 dnl Checks for the zlib compression library.
173 saved_CFLAGS="$CFLAGS"
174 CFLAGS="$CFLAGS $SERVER_LIBS"
175 AC_CHECK_HEADER(zlib.h,
176         [AC_CHECK_LIB(z, zlibVersion,
177                 [
178                         LIBS="-lz $LIBS $SERVER_LIBS"
179                 ],
180                 [
181                         AC_MSG_ERROR(zlib was not found or is not usable.  Please install zlib.)
182                 ]
183         ,
184         )],
185         [
186                 AC_MSG_ERROR(zlib.h was not found or is not usable.  Please install zlib.)
187         ]
188 )
189 CFLAGS="$saved_CFLAGS"
190
191 dnl Here is the check for a libc integrated iconv
192 AC_ARG_ENABLE(iconv,
193         [  --disable-iconv         do not use iconv charset conversion],
194         ok_iconv=no, ok_iconv=yes)
195
196 AC_MSG_CHECKING(Checking to see if your system supports iconv)
197 AC_RUN_IFELSE([AC_LANG_SOURCE([[
198         #include <iconv.h>
199         main() {
200                 iconv_t ic = (iconv_t)(-1) ;
201                 ic = iconv_open("UTF-8", "us-ascii");
202                 iconv_close(ic);
203                 exit(0);
204         }
205  ]])],[
206                   ok_iconv=yes
207                   AC_MSG_RESULT([yes])
208                 ],[ 
209                   ok_iconv=no
210                   AC_MSG_RESULT([no])
211                 
212 ],[])
213
214 dnl Check for iconv in external libiconv
215 if test "$ok_iconv" = no; then
216         AC_MSG_CHECKING(Checking for an external libiconv)
217         OLD_LDFLAGS="$LDFLAGS"
218         LDFLAGS="$LDFLAGS -liconv"
219         AC_RUN_IFELSE([AC_LANG_SOURCE([[
220                         #include <iconv.h>
221                         main() {
222                                 iconv_t ic = (iconv_t)(-1) ;
223                                 ic = iconv_open("UTF-8", "us-ascii");
224                                 iconv_close(ic);
225                         }
226                 ]])],[
227                           ok_iconv=yes
228                           AC_MSG_RESULT([yes])
229                         ],[ 
230                           ok_iconv=no
231                           LDFLAGS="$OLD_LDFLAGS"
232                           AC_MSG_RESULT([no])
233                         
234                 ],[])
235 fi      
236 if test "$ok_iconv" != "no"; then
237         AC_MSG_RESULT(webcit will be built with character set conversion.)
238         AC_DEFINE(HAVE_ICONV,[],[whether we have iconv for charset conversion])
239 else
240         AC_MSG_RESULT(webcit will be built without character set conversion.)
241 fi
242
243 AC_CHECK_LIB(intl, libintl_bindtextdomain, [LDFLAGS="$LDFLAGS -lintl"])
244
245
246 dnl Checks for the libical iCalendar library.
247 AC_CHECK_HEADER(libical/ical.h,
248         [AC_CHECK_LIB(ical, icaltimezone_set_tzid_prefix,
249                 [
250                         LIBS="-lical $LIBS"
251                 ],
252                 [
253                         AC_MSG_ERROR(libical was not found and is required.  More info: http://www.citadel.org/doku.php/installation:start)
254                 ]
255         ,
256         )],
257         [
258                 AC_MSG_ERROR(libical/ical.h was not found and is required.  More info: http://www.citadel.org/doku.php/installation:start)
259         ]
260 )
261
262 dnl Checks for the discount markdown library.
263 AC_CHECK_LIB(markdown,
264          markdown,
265          [
266          LIBS="$LIBS -lmarkdown"
267          AC_DEFINE(HAVE_MARKDOWN,[],[whether we have markdown message rendering])
268 ])
269
270 dnl Check for libcitadel
271 AC_CHECK_HEADER(libcitadel.h,
272         [AC_CHECK_LIB(citadel, libcitadel_version_string,
273                 [
274                         LIBS="-lcitadel $LIBS"
275                         SETUP_LIBS="-lcitadel $SETUP_LIBS"
276                 ],
277                 [
278                         AC_MSG_ERROR(libcitadel was not found or is not usable.  Please install libcitadel.)
279                 ]
280         ,
281         )],
282         [
283                 AC_MSG_ERROR(libcitadel.h was not found or is not usable.  Please install libcitadel.)
284         ]
285 )
286
287 AC_MSG_CHECKING([whether your system likes memcpy + HKEY]) 
288 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
289 #define _GNU_SOURCE
290 #include <ctype.h>
291 #include <errno.h>
292 #include <string.h>
293 #include <unistd.h>
294 #include <string.h>
295 #include <stdio.h>
296 #include <sys/select.h>
297 #include <fcntl.h>
298 #include <sys/types.h>
299
300 #include "lib/libcitadel.h"
301 ]], [[
302         char foo[22];
303         memcpy(foo, HKEY("foo"));
304         
305 ]])],[
306
307                   AC_MSG_RESULT([yes])
308                 ],[ 
309                   AC_DEFINE(UNDEF_MEMCPY, [], [whether we need to undefine memcpy])
310                   AC_MSG_RESULT([no])
311                 
312 ])
313
314 dnl Checks for the Expat XML parser.
315 AC_CHECK_HEADER(expat.h,
316         [AC_CHECK_LIB(expat, XML_ParserCreateNS,
317                 [
318                         LIBS="-lexpat $LIBS"
319                 ],
320                 [
321                         AC_MSG_ERROR(The Expat XML parser was not found and is required.  More info: http://www.citadel.org/doku.php/installation:start)
322                 ]
323         ,
324         )],
325         [
326                 AC_MSG_ERROR(expat.h was not found and is required.  More info: http://www.citadel.org/doku.php/installation:start)
327         ]
328 )
329
330
331
332 found_ssl=no
333 # The big search for OpenSSL
334 if test "$with_ssl" != "no"; then
335         saved_LIBS="$LIBS"
336         saved_LDFLAGS="$LDFLAGS"
337         saved_CFLAGS="$CFLAGS"
338         if test "x$prefix" != "xNONE"; then
339                 tryssldir="$tryssldir $prefix"
340         fi
341         AC_CACHE_CHECK([for OpenSSL], ac_cv_openssldir, [
342                 for ssldir in $tryssldir "" /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
343                         CFLAGS="$saved_CFLAGS"
344                         LDFLAGS="$saved_LDFLAGS"
345                         LIBS="$saved_LIBS -lssl -lcrypto"
346         
347                         # Skip directories if they don't exist
348                         if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
349                                 continue;
350                         fi
351                         if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
352                                 # Try to use $ssldir/lib if it exists, otherwise
353                                 # $ssldir
354                                 if test -d "$ssldir/lib" ; then
355                                         LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
356                                         if test ! -z "$need_dash_r" ; then
357                                                 LDFLAGS="-R$ssldir/lib $LDFLAGS"
358                                         fi
359                                 else
360                                         LDFLAGS="-L$ssldir $saved_LDFLAGS"
361                                         if test ! -z "$need_dash_r" ; then
362                                                 LDFLAGS="-R$ssldir $LDFLAGS"
363                                         fi
364                                 fi
365                                 # Try to use $ssldir/include if it exists, otherwise
366                                 # $ssldir
367                                 if test -d "$ssldir/include" ; then
368                                         CFLAGS="-I$ssldir/include $saved_CFLAGS"
369                                 else
370                                         CFLAGS="-I$ssldir $saved_CFLAGS"
371                                 fi
372                         fi
373         
374                         # Basic test to check for compatible version and correct linking
375                         # *does not* test for RSA - that comes later.
376                         AC_RUN_IFELSE([AC_LANG_SOURCE([[
377         #include <string.h>
378         #include <openssl/rand.h>
379         int main(void)
380         {
381                 char a[2048];
382                 memset(a, 0, sizeof(a));
383                 RAND_add(a, sizeof(a), sizeof(a));
384                 return(RAND_status() <= 0);
385         }
386                                 ]])],[
387                                         found_crypto=1
388                                         break;
389                                 ],[
390                         ],[])
391         
392                         if test ! -z "$found_crypto" ; then
393                                 break;
394                         fi
395                 done
396         
397                 if test -z "$ssldir" ; then
398                         ssldir="(system)"
399                 fi
400         
401                 if test ! -z "$found_crypto" ; then
402                         ac_cv_openssldir=$ssldir
403                 else
404                         ac_cv_openssldir="no"
405                 fi
406         ])
407         LIBS="$saved_LIBS"
408         LDFLAGS="$saved_LDFLAGS"
409         CFLAGS="$saved_CFLAGS"
410         
411         if test "x$ac_cv_openssldir" != "xno" ; then
412                 AC_DEFINE(HAVE_OPENSSL,[],[whethe we have openssl])
413                 found_ssl=yes
414                 LIBS="-lssl -lcrypto $LIBS"
415                 dnl Need to recover ssldir - test above runs in subshell
416                 ssldir=$ac_cv_openssldir
417                 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
418                         # Try to use $ssldir/lib if it exists, otherwise
419                         # $ssldir
420                         if test -d "$ssldir/lib" ; then
421                                 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
422                                 if test ! -z "$need_dash_r" ; then
423                                         LDFLAGS="-R$ssldir/lib $LDFLAGS"
424                                 fi
425                         else
426                                 LDFLAGS="-L$ssldir $saved_LDFLAGS"
427                                 if test ! -z "$need_dash_r" ; then
428                                         LDFLAGS="-R$ssldir $LDFLAGS"
429                                 fi
430                         fi
431                         # Try to use $ssldir/include if it exists, otherwise
432                         # $ssldir
433                         if test -d "$ssldir/include" ; then
434                                 CFLAGS="-I$ssldir/include $saved_CFLAGS"
435                         else
436                                 CFLAGS="-I$ssldir $saved_CFLAGS"
437                         fi
438                 fi
439         fi
440 fi
441 dnl Checks for the SSLdir
442 dnl this is a bit different than the rest, 
443 dnl because of the citadel used to have a keys/ subdir.
444 AC_ARG_WITH(ssldir, 
445                     [  --with-ssldir          directory to store the ssl certificates under],
446                         [ if test "x$withval" != "xno" ; then
447                                               
448                                                   ssl_dir="$withval"
449                                                   if test "$found_ssl" = "no"; then
450                                                      echo "Your setup was incomplete; ssldir doesn't make sense without openssl"
451                                                      exit
452                                                   fi
453                           fi
454                         AC_SUBST(MAKE_SSL_DIR)
455                         ]
456 )
457 AC_DEFINE_UNQUOTED(SSL_DIR, "$ssl_dir", [were should we put our keys?])
458
459
460
461
462 AC_CHECK_FUNCS(strftime_l uselocale gettext)
463
464 if test "$ok_nls" != "no"; then
465         AC_CHECK_PROG(ok_xgettext, xgettext, yes, no)
466         ok_nls=$ok_xgettext
467 fi
468
469 if test "$ok_nls" != "no"; then
470         AC_CHECK_PROG(ok_msgmerge, msgmerge, yes, no)
471         ok_nls=$ok_msgmerge
472 fi
473
474 if test "$ok_nls" != "no"; then
475         AC_CHECK_PROG(ok_msgfmt, msgfmt, yes, no)
476         ok_nls=$ok_msgfmt
477 fi
478
479 if test "$ok_nls" != "no"; then
480         AC_MSG_RESULT(WebCit will be built with national language support.)
481         AC_DEFINE(ENABLE_NLS, [], [whether we have NLS support])
482         PROG_SUBDIRS="$PROG_SUBDIRS po/webcit/"
483 else
484         AC_MSG_RESULT(WebCit will be built without national language support.)
485 fi
486
487 AC_SUBST(SETUP_LIBS)
488
489 dnl disable backtrace if we don't want it.
490 AC_ARG_WITH(gprof, 
491                     [  --with-gprof          enable profiling],
492                         [ if test "x$withval" != "xno" ; then
493                              CFLAGS="$CFLAGS  -pg "
494                              LDFLAGS="$LDFLAGS  -pg "
495                           fi
496                         ]
497 )
498
499 dnl disable backtrace if we don't want it.
500 AC_ARG_WITH(backtrace, 
501                     [  --with-backtrace          enable backtrace dumps in the syslog],
502                         [ if test "x$withval" != "xno" ; then
503                              CFLAGS="$CFLAGS  -rdynamic "
504                              LDFLAGS="$LDFLAGS  -rdynamic "
505                              AC_CHECK_FUNCS(backtrace)
506                           fi
507                         ]
508 )
509
510 if test "$prefix" = NONE; then
511         datadir=$ac_default_prefix
512         localedir=$ac_default_prefix
513         wwwdir=$ac_default_prefix
514         rundir=$ac_default_prefix
515         editordir=$ac_default_prefix/tiny_mce
516         etcdir=$ac_default_prefix
517 else
518         localedir=$prefix
519         wwwdir=$prefix
520         datadir=$prefix
521         rundir=$prefix
522         editordir=$prefix/tiny_mce
523         etcdir=$prefix
524 fi
525
526 dnl where to put the locale files
527 AC_ARG_WITH(localedir, 
528                     [  --with-localedir          directory to put the locale files to],
529                         [ if test "x$withval" != "xno" ; then
530                             localedir=$withval
531                           fi
532                         ]
533 )
534 AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir",[where to find our pot files])
535 LOCALEDIR=$localedir
536 AC_SUBST(LOCALEDIR)
537
538 dnl Checks where to put our templates
539 AC_ARG_WITH(wwwdir, 
540                     [  --with-wwwdir             directory to put our templates],
541                         [ if test "x$withval" != "xno" ; then
542                                 wwwdir=$withval
543                           fi
544                         ]
545 )
546 AC_DEFINE_UNQUOTED(WWWDIR, "$wwwdir", [where to find our templates and pics])
547 WWWDIR=$wwwdir
548 AC_SUBST(WWWDIR)
549
550
551 dnl Checks for the run-dir for the sockets
552 AC_ARG_WITH(rundir, 
553                         [  --with-rundir           directory to place runtime files (UDS) to?],
554                         [ if test "x$withval" != "xno" ; then
555                                             AC_DEFINE(HAVE_RUN_DIR, [], [should we put our non volatile files elsewhere?])
556                                                 
557                                                 rundir=$withval
558                                                 AC_SUBST(MAKE_RUN_DIR)
559                           fi
560                         ]
561 )
562 AC_DEFINE_UNQUOTED(RUNDIR, "$rundir", [define, where the config should go in unix style])
563
564 dnl Checks for the Datadir
565 AC_ARG_WITH(datadir, 
566                     [  --with-datadir          directory to store the databases under],
567                         [ if test "x$withval" != "xno" ; then
568                                               datadir=$withval
569                           fi
570                         ]
571 )
572 AC_DEFINE_UNQUOTED(DATADIR, "$datadir",[define, if the user suplied a data-directory to use.])
573
574 dnl Checks where to put our editor
575 AC_ARG_WITH(editordir, 
576                     [  --with-editordir             directory to put our editor],
577                         [ if test "x$withval" != "xno" ; then
578                                 editordir=$withval
579                           fi
580                         ]
581 )
582
583 dnl Checks where to find our configs
584 AC_ARG_WITH(etcdir, 
585                     [  --with-etcdir             directory to read our configs],
586                         [ if test "x$withval" != "xno" ; then
587                                 etcdir=$withval
588                           fi
589                         ]
590 )
591 AC_DEFINE_UNQUOTED(ETCDIR, "$etcdir", [where to find our configs])
592 ETCDIR=$etcdir
593 AC_SUBST(ETCDIR)
594
595 abs_srcdir="`cd $srcdir && pwd`"
596 abs_builddir="`pwd`"
597 if test "$abs_srcdir" != "$abs_builddir"; then
598    CFLAGS="$CFLAGS -I $abs_builddir"
599 fi
600 AC_CONFIG_HEADERS([sysdep.h])
601 AC_CONFIG_FILES([Makefile po/webcit/Makefile])
602 AC_OUTPUT
603
604 if test "$abs_srcdir" != "$abs_builddir"; then
605    ln -s $abs_srcdir/static $abs_builddir
606    ln -s $abs_srcdir/tiny_mce $abs_builddir
607    ln -s $abs_srcdir/*.h $abs_builddir
608    make mkdir-init
609    
610 else
611 dnl just run it on devel systems and if non vdir build.
612    if test -d .svn; then
613       ./mk_module_init.sh
614    fi
615 fi
616
617 if test -n "$srcdir"; then 
618    export srcdir=.
619 fi
620
621
622 echo ------------------------------------------------------------------------
623 echo 'Character set conversion support:' $ok_iconv
624 echo 'National language support:       ' $ok_nls
625 echo