Code update for Window Maker version 0.50.0
[wmaker-crm.git] / configure.in
blobb05d446ab263c31db5408f2dcf9732ca04762de3
1 dnl
2 dnl Window Maker autoconf input.
3 dnl
4 dnl Process with: aclocal; autoconf; automake
5 dnl
6 dnl
7 dnl Shared library generation stuff taken from configure script from zlib
8 dnl
11 AC_INIT(src/WindowMaker.h)
13 AM_INIT_AUTOMAKE(WindowMaker, 0.50.0)
15 AM_PROG_LIBTOOL
18 dnl configure/build bundled libraries
19 dnl ===================================
20 AC_CONFIG_SUBDIRS(libPropList)
23 AM_CONFIG_HEADER(src/config.h)
26 dnl Checks for host/os name
27 dnl =======================
28 AC_CANONICAL_HOST
31 dnl Checks for programs.
32 dnl ===================
33 AC_ISC_POSIX
34 AC_PROG_CC
35 AC_PROG_MAKE_SET
36 #AC_PROG_RANLIB
37 AC_PROG_INSTALL
38 AC_PROG_LN_S
39 AC_PROG_GCC_TRADITIONAL
42 dnl Checks for library functions.
43 dnl ============================
44 dnl not used anywhere
45 dnl AC_FUNC_MEMCMP  
46 AC_TYPE_SIGNAL
47 AC_FUNC_VPRINTF
48 AC_FUNC_ALLOCA
49 AC_CHECK_FUNCS(gethostname gettimeofday select poll strerror strncasecmp setpgid)
51 if test "$ac_cv_func_gettimeofday" != yes; then
52         echo "The gettimeofday() system call is not available in your system"
53         echo "but it is required by Window Maker. Sorry."
54         exit 1
57 if test "x$CPP_PATH" = x; then
58     AC_PATH_PROG(CPP_PATH, cpp, notfound,
59                 /lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH)
62 dnl
63 dnl Tell stupid Solaris cpp that the files it will process have C++ like syntax
64 dnl RedHat 5.x is broken too, so it won't make a symlink from cpp to the
65 dnl standard locations
66 dnl
67 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
68     if test "$GCC" = "yes"; then
69         CPP_PATH="gcc -E -x c"
70     else 
71         if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
72             CPP_PATH="$CPP_PATH -B"
73         else
74             echo "cpp, the C preprocessor was not found in your system."
75             echo "Create a symbolic link from it to /lib/cpp and rerun configure"
76             exit
77         fi
78     fi
80 AC_DEFINE_UNQUOTED(CPP_PATH, "$CPP_PATH")
82 dnl gettext
83 dnl =======
86 dnl AM_GNU_GETTEXT
90 INTLIBS=""
93 AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"], 
94         AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
95                          INTLIBS="" ))
97 AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
99 if test "$XGETTEXT" != ""; then 
100     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
101         echo "xgettext isn't GNU version"
102         XGETTEXT=""
103     fi
106 if test "$LINGUAS" != ""; then
107     if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
108         I18N="-DI18N"
109         PO=""
110 #       if test "$LINGUAS" = ""; then
111 #           ling=` (cd src/po; /bin/ls *.po) `
112 #           for l in $ling; do
113 #               lcode=`basename $l .po`
114 #               LINGUAS="$LINGUAS $lcode"
115 #           done
116 #       fi
117         echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
118     else
119         I18N=""
120         LINGUAS=""
121         PO=""
122         echo "xgettext and libintl.a don't both exist; will not build i18n support"
123     fi
124 else
125         INTLIBS=""
126         MOFILES=""
127         WPMOFILES=""
128         PO=""
132 dnl The Tower of Babel
133 dnl ==================
135 dnl List of supported locales
136 dnl -------------------------
137 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
138 supported_wprefs_locales="pt hr fr ko ja"
140 for lang in $LINGUAS; do
141         ok=0
142         for l in $supported_locales; do
143                 if test "$l" = "$lang"; then
144                         ok=1
145                         break
146                 fi
147         done
148         if test "$ok" = 1; then
149                 MOFILES="$MOFILES $lang.mo"
150         else
151                 echo "Locale $lang is not supported."
152         fi
153         ok=0
154         for l in $supported_wprefs_locales; do
155                 if test "$l" = "$lang"; then
156                         ok=1
157                         break
158                 fi
159         done
160         if test "$ok" = 1; then
161                 WPMOFILES="$WPMOFILES $lang.mo"
162         fi
163 done
166 dnl Kanji Characters support
167 dnl ========================
168 I18n=no
169 AC_ARG_ENABLE(kanji,
170 [  --enable-kanji         multibyte character support (kanji, Korean etc.)],,
171                 enable_kanji=no)
173 if test "$enable_kanji" = yes; then
174         I18N_MB="#define I18N_MB"
175         case $host_os in
176         freebsd*)
177                 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]);;
178         *)
179                 ;;
180         esac
181 else
182         I18N_MB="#undef I18N_MB"
184 AC_SUBST(I18N_MB)
187 dnl XKB keyboard language status
188 dnl ============================
189 AC_ARG_ENABLE(modelock,
190 [  --enable-modelock       XKB keyboard language status support],
191                 X_CFLAGS="$X_CFLAGS -DXKB_MODELOCK",)
195 dnl Added by Oliver - Support for NLSDIR option,   Hi Oliver!
196 dnl ===========================================
197 AC_ARG_WITH(nlsdir, 
198         [  --with-nlsdir=PATH      specify where the locale stuff should go ])
200 if test "x$NLSDIR" = "x"; then
201         if test "x$with_nlsdir" != "x"; then
202                 NLSDIR=$with_nlsdir
203         else
204                 NLSDIR='$(prefix)/lib/locale'
205         fi
209 AC_SUBST(I18N)
210 AC_SUBST(INTLIBS)
211 AC_SUBST(NLSDIR)
212 AC_SUBST(MOFILES)
213 AC_SUBST(WPMOFILES)
217 dnl Support for various hint things
218 dnl ===============================
221 AC_ARG_ENABLE(gnome,
222   [  --enable-gnome           enable stuff needed for GNOME ],
223   [if test x$enableval = xyes; then
224     AC_DEFINE(GNOME_STUFF)
225     gnome_on=yes
226   fi])
229 AC_ARG_ENABLE(kde,
230   [  --enable-kde             enable support for KDE window manager (kwm) hints ],
231   [if test x$enableval = xyes; then
232     AC_DEFINE(KWM_HINTS)
233     kde_on=yes
234   fi])
238 dnl Disable some stuff that are duplicated in kde
239 dnl ---------------------------------------------
240 LITE=
241 AC_ARG_ENABLE(lite,
242   [  --enable-lite             disable stuff duplicated in KDE/GNOME ],
243   [if test x$enableval = xyes; then
244         LITE=-DLITE
245   fi])
246 AC_SUBST(LITE)
249 dnl ===========================================
250 dnl             Stuff that uses X
251 dnl ===========================================
253 AC_PATH_XTRA
255 XCFLAGS="$X_CFLAGS"
257 XLFLAGS="$X_LIBS"
259 XLIBS="$X_EXTRA_LIBS -lX11"
261 dnl Decide which locale function to use, setlocale() or _Xsetlocale()
262 dnl by MANOME Tomonori 
263 dnl ===========================================
264 AC_CHECK_LIB(X11, _Xsetlocale, [X_LOCALE="-DX_LOCALE"],, $XLFLAGS $XLIBS)
265 AC_SUBST(X_LOCALE)
268 dnl Shape support
269 dnl =============
270 shape=yes
271 AC_ARG_ENABLE(shape, 
272 [  --disable-shape        disable shaped window extension support],
273                 shape=$enableval, shape=yes)
275 added_xext=no
277 if test "$shape" = yes; then
278         AC_CHECK_LIB(Xext, XShapeSelectInput, [XLIBS="-lXext $XLIBS"
279                 added_xext=yes SHAPE=-DSHAPE], shape=no, $XLFLAGS $XLIBS)
282 AC_SUBST(SHAPE)
285 dnl MIT-SHM support
286 dnl ===============
287 shm=yes
288 AC_ARG_ENABLE(shm,
289 [  --disable-shm           disable usage of MIT-SHM extension],
290                 shm=$enableval, shm=yes)
292 if test "$shm" = yes; then
293         AC_CHECK_LIB(Xext, XShmAttach, ok=yes, ok=no, $XLFLAGS $XLIBS)
295         if test "$ok" = yes; then
296         AC_CHECK_FUNC(shmget, ok=yes, ok=no)
297         fi
299         if test "$ok" = yes; then
300                 if test "$added_xext" = no; then
301                         XLIBS="-lXext $XLIBS"
302                 fi
303                 XSHM=-DXSHM
304         fi
307 AC_SUBST(XSHM)
310 dnl R6 Style Session Management Support
311 dnl ===================================
315 #AC_DEFINE(R6SM)
316 #AC_SUBST(XSMPLIBS)
319 dnl ==============================================
320 dnl         Graphic Format Libraries
321 dnl ==============================================
325 dnl Specify paths to look for graphic format libraries
326 dnl ==================================================
327 GFXLIBS=""
328 AC_ARG_WITH(gfx-libs,
329 [  --with-gfx-libs        pass compiler flags to look for gfx libraries],
330         [GFXLFLAGS=$withval], [GFXLFLAGS=""])
332 AC_ARG_WITH(gfx-incs,
333 [  --with-gfx-incs        pass compiler flags to look for gfx header files],
334         [GFXFLAGS="$withval" GFX_INC_PATH=$withval],
335         [GFXFLAGS="" GFX_INC_PATH=""])
340 dnl XPM Support
341 dnl ===========
342 xpm=yes
343 AC_ARG_ENABLE(xpm, 
344 [  --disable-xpm                  disable use of XPM pixmaps through libXpm],
345         xpm=$enableval, xpm=yes)
347 if test "$xpm" = yes; then
348     AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,
349         my_libok=yes, my_libok=no,
350         $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS)
352     if test "$my_libok" = yes; then
353         my_old_cppflags=$CPPFLAGS
354         CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
355         AC_CHECK_HEADER(X11/xpm.h,
356                 [GFXFLAGS="$GFXFLAGS -DUSE_XPM" GFXLIBS="$GFXLIBS -lXpm"
357                  supported_gfx="XPM"], supported_gfx="XPM (builtin)")
358         CPPFLAGS=$my_old_cppflags
359     fi
364 AC_SUBST(XLIBS)
365 AC_SUBST(XCFLAGS)
366 AC_SUBST(XLFLAGS)
368 AC_SUBST(X_EXTRA_LIBS)
370 dnl ===============================================
371 dnl             End of stuff that uses X
372 dnl ===============================================
375 dnl PNG Support
376 dnl ===========
377 png=yes
378 AC_ARG_ENABLE(png, 
379 [  --disable-png                  disable PNG support through libpng],
380         png=$enableval, png=yes, png=no)
383 if test "$png" = yes ; then
384     AC_CHECK_LIB(png, png_get_valid, my_libok=yes, my_libok=no,
385                 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS -lz -lm)
387     if test "$my_libok" = yes; then
388         my_old_cppflags=$CPPFLAGS
389         CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
390         AC_CHECK_HEADER(png.h,
391                 [GFXLIBS="$GFXLIBS -lpng -lz" GFXFLAGS="$GFXFLAGS -DUSE_PNG" 
392                 supported_gfx="$supported_gfx PNG"], )
393         CPPFLAGS=$my_old_cppflags
394     fi
398 dnl JPEG Support
399 dnl ============
400 jpeg=yes
401 AC_ARG_ENABLE(jpeg,
402 [  --disable-jpeg         disable JPEG support through libjpeg],
403         jpeg=$enableval, jpeg=yes, jpeg=no)
405 if test "$jpeg" = yes; then
406         AC_CHECK_LIB(jpeg, jpeg_destroy_compress, my_libok=yes, my_libok=no,
407                 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS)
409     if test "$my_libok" = yes; then
410         my_old_cppflags=$CPPFLAGS
411         CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
412         AC_TRY_CPP(jpeglib.h,
413                 [GFXLIBS="$GFXLIBS -ljpeg" GFXFLAGS="$GFXFLAGS -DUSE_JPEG"
414                 supported_gfx="$supported_gfx JPEG"], jpeg_not_found=yes)
415         CPPFLAGS=$my_old_cppflags
416     fi
420 dnl GIF Support
421 dnl ============
423 dnl giflib uses dangerous function naming... (namespace clashing)
425 gif=yes
426 AC_ARG_ENABLE(gif,
427 [  --disable-gif           disable GIF support through libgif or libungif],
428         gif=$enableval, gif=yes, gif=no)
430 if test "$gif" = yes; then
431         retry=no
432         AC_CHECK_LIB(ungif, DGifOpenFileName, 
433                 [my_libok=yes my_libname=ungif],
434                 [retry=yes my_libok=no],
435                 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS)
437 dnl libungif is the same thing as libgif for all practical purposes.
439         if test "$retry" = yes; then
440             AC_CHECK_LIB(gif, DGifOpenFileName, 
441                 [my_libok=yes my_libname=gif], 
442                 my_libok=no,
443                 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS)
444         fi
445         
446     if test "$my_libok" = yes; then
447         my_old_cppflags=$CPPFLAGS
448         CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
449         AC_CHECK_HEADER(gif_lib.h,
450                 [GFXLIBS="$GFXLIBS -l$my_libname" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
451                 supported_gfx="$supported_gfx GIF"], )
452         CPPFLAGS=$my_old_cppflags
453     fi
458 dnl TIFF Support
459 dnl ============
460 AC_ARG_ENABLE(tiff, 
461 [  --disable-tiff         disable use of TIFF images through libtiff],
462         tif=$enableval, tif=yes, tif=no)
465 # TIFF can optionally have JPEG and/or zlib support. Must find out
466 # when they are supported so that correct library flags are passed during
467 # detection and linkage
470 # By default use xpm icons if tiff is not found.
471 ICONEXT="xpm"
474 if test "$tif" = yes; then
475     my_libname=""
476     AC_CHECK_LIB(tiff, TIFFGetVersion, 
477         [my_libok=yes my_libname="-ltiff"], my_libok=no,
478         [$GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm])
480 dnl Retry with zlib
482     unset ac_cv_lib_tiff_TIFFGetVersion
483     if test "$my_libok" = no; then
484         AC_CHECK_LIB(tiff, TIFFGetVersion,
485                 [my_libok=yes my_libname="-ltiff -lz"], my_libok=no,
486                 [$GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lz -lm])
487     fi
488     
489     if test "$my_libok" = no; then
490         AC_CHECK_LIB(tiff34, TIFFGetVersion, 
491                 [my_libok=yes my_libname="-ltiff34"], my_libok=no,
492                 [$GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm])
493     fi
494     
495     if test "$my_libok" = yes; then
496         my_old_cppflags=$CPPFLAGS
497         CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
498         AC_CHECK_HEADER(tiffio.h,
499                 [GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="$my_libname $GFXLIBS"
500                 ICONEXT="tiff" supported_gfx="$supported_gfx TIFF"], )
501         CPPFLAGS=$my_old_cppflags
502     fi
507 AC_SUBST(GFXFLAGS)
508 AC_SUBST(GFXLFLAGS)
509 AC_SUBST(GFXLIBS)
510 AC_SUBST(ICONEXT)
513 dnl ==============================================
514 dnl         End of Graphic Format Libraries
515 dnl ==============================================
518 dnl Debugging setup
519 dnl ===============
520 AC_ARG_ENABLE(debug, 
521 [  --enable-debug         enable debugging ],, enable_debug=no)
523 if test "$enable_debug" = yes; then
524     DFLAGS="-g -DDEBUG"
525 #       Efence makes things too slow. Add it by hand in the Makefiles
526 #       if it is really needed.
527 #    AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
529 AC_SUBST(DFLAGS)
532 dnl Sound support - Dan
533 dnl =============================================
534 sound=yes
535 AC_ARG_ENABLE(sound, 
536 [  --disable-sound        disable sound support ],
537                 sound=$enableval, sound=yes)
538 if test "$sound" = yes; then    
539         SOUND="#define WMSOUND" 
540 else
541         SOUND="#undef WMSOUND"  
543 AC_SUBST(SOUND)
546 # AC_PREFIX_PROGRAM(wmaker)
548 if test "${prefix}" = "NONE"; then
549         prefix="/usr/local"
551 if test "${exec_prefix}" = "NONE"; then
552         exec_prefix='$(prefix)'
555 dnl Support for PIXMAPDIR option
556 dnl ============================
557 AC_ARG_WITH(pixmapdir,
558 [  --with-pixmapdir=PATH   specify where pixmaps are located [DATADIR/pixmaps]])
560 if test "x$with_pixmapdir" != "x"; then
561         pixmapdir=$with_pixmapdir
562 else
563         pixmapdir='$(datadir)/pixmaps'
566 AC_SUBST(pixmapdir)
569 dnl Support for GNUSTEP_LOCAL_ROOT, for WPrefs.app
570 dnl ==============================================
572 appspath=""
574 AC_ARG_WITH(appspath,
575 [  --with-appspath=PATH    specify the path of the GNUstep applications
576 directory], appspath=$withval )
578 if test "x$appspath" = "x"; then
579     gnustepdir='$(prefix)/GNUstep'
581     if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
582         gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
583         gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
584     fi
586     with_appspath=$gnustepdir/Apps
589 wprefsdir=$with_appspath/WPrefs.app
591 AC_SUBST(wprefsdir)
595 dnl Enable single appicon per wm instance+class combo -cls
596 dnl =====================================================
597 AC_ARG_ENABLE(single-icon,
598 [  --enable-single-icon    use single application icon per WM_INSTANCE+WM_CLASS
600 if test "$enableval" = yes; then
601         REDUCE_APPICONS="#define REDUCE_APPICONS"
602 else
603         REDUCE_APPICONS="#undef REDUCE_APPICONS"
605         REDUCE_APPICONS="#undef REDUCE_APPICONS"
606 )       
607 AC_SUBST(REDUCE_APPICONS)
610 dnl Checks for header files.
611 dnl =======================
612 dnl AC_HEADER_STDC
613 AC_HEADER_SYS_WAIT
614 AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
615                 libintl.h sys/select.h poll.h)
619 dnl Checks for typedefs, structures, and compiler characteristics.
620 dnl ==============================================================
621 AC_DECL_SYS_SIGLIST
622 AC_C_CONST
623 AC_TYPE_SIZE_T
624 AC_TYPE_PID_T
625 AC_HEADER_TIME
629 dnl Shared Library Support (unfinished)
630 dnl ===================================
632 enable_shared=no
633 #AC_ARG_ENABLE(shared,
634 #[  --enable-shared       build libraries as shared ], enable_shared=yes, 
635 #                                                       enable_shared=no)
637 if test "$enable_shared" = yes; then
638     if test "$GCC" = yes; then
639         _CFLAGS="-fPIC"
640         LDSHARED='$CC -shared'
641     else
642         # find system name and corresponding cc options
643         case `(uname -sr || echo unknown) 2>/dev/null` in
644           SunOS\ 5*)
645              _CFLAGS="-fast -xcg89 -KPIC -R."
646              LDSHARED='$CC -G';;
647           SunOS\ 4*)
648              _CFLAGS="-PIC"
649              LDSHARED="ld";;
650           IRIX*)
651              _CFLAGS="-ansi -rpath ."
652              LDSHARED='$CC -shared';;
653           SCO_SV\ 3.2*)
654              _CFLAGS="-dy -KPIC "
655              LDSHARED='$CC -dy -KPIC -G';;
656           HP-UX*)
657              _CFLAGS="+z"
658              LDSHARED="ld -b"
659              SHAREDLIBS='libz.sl';;
660           *)
661              _CFLAGS=""
662              LDSHARED='$CC -shared';;
663         esac
664     fi
666     AC_MSG_CHECKING([for shared library support])
668     test=tmptest$$
669     cat > $test.c <<EOF
670 int hello() { printf("hello\n"); }
674     # we must test in two steps (cc then ld), required at least on SunOS 4.x
675     if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
676                 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
677         CFLAGS="$CFLAGS $_CFLAGS"
678         WRASTERLIB='libwraster.so.$(WRASTER_VER)'
679         WINGSLIB='libWINGs.so.$(WINGS_VER)'
680         AC_MSG_RESULT([yes, building shared])
681     else
682         LDSHARED='$CC'
683         WRASTERLIB='libwraster.a'
684         WINGSLIB='libWINGs.a'
685         AC_MSG_RESULT([no, building static])
686     fi
687     rm -f $test.[co] $test.so
690 #AC_SUBST(WRASTER_VER)
691 #AC_SUBST(WINGS_VER)
692 #AC_SUBST(WRASTERLIB)
693 # AC_SUBST(WINGSLIB)
694 # AC_SUBST(LDSHARED)
699 dnl Nicolai:  Program tests for Documentation Section
700 dnl =================================================
701 dnl DOCTYPES=""
702 dnl AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ,$PATH)
703 dnl if test "x$MAKEINFO" != "x" ; then
704 dnl       DOCTYPES="$DOCTYPES info_doc"
705 dnl fi
706 dnl AC_CHECK_PROG(TEX, tex, tex, ,$PATH)
707 dnl if test "x$TEX" != "x" ; then
708 dnl       DOCTYPES="$DOCTYPES dvi_doc"
709 dnl fi
710 dnl AC_CHECK_PROG(DVIPS, dvips, dvips, ,$PATH)
711 dnl if test "x$DVIPS" != "x" ; then
712 dnl       DOCTYPES="$DOCTYPES ps_doc"
713 dnl fi
714 dnl AC_CHECK_PROG(PERL, perl, perl, ,$PATH)
715 dnl if test "x$PERL" != "x" ; then
716 dnl       DOCTYPES="$DOCTYPES html_doc"
717 dnl fi
718 dnl AC_PATH_PROG(PERL_PATH, perl, perl, ,$PATH)
719 dnl AC_CHECK_PROG(TEXI2HTML, texi2html, texi2html, ,$PATH)
720   
721 dnl AC_SUBST(DOCTYPES)
723 AC_OUTPUT(Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
724         WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
725         wrlib/Makefile doc/Makefile WindowMaker/Makefile \
726         WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
727         WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
728         WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
729         WindowMaker/Themes/Makefile \
730         WindowMaker/Themes/Night.themed/Makefile \
731         WindowMaker/Themes/Checker.themed/Makefile \
732         WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
733         WPrefs.app/po/Makefile )
738 dnl Output some helpfull data for compiling WINGs apps
739 dnl ==================================================
742 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
743 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
744         | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
748 dnl Spit out the configuration
749 dnl ==========================
751 supported_gfx="$supported_gfx PPM (built-in)"
753 if test "x$MOFILES" = "x"; then
754         mof=none
755 else
756         mof=$MOFILES
759 echo
760 echo "Window Maker was configured as follows:"
761 echo
762 echo "Installation path prefix: $prefix"
763 echo "Installation path prefix for binaries: $exec_prefix" | sed -e 's|\$(prefix)|'"$prefix|"
764 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
765 echo "Graphic format libraries: $supported_gfx"
766 echo "Sound support: $sound"
767 echo "Translated message files to install: $mof"
768 if test "x$MOFILES" != "x"; then
769         echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
771 if test x$kde_on != x; then
772         echo "KDE support enabled"
774 if test x$LITE != x; then
775         echo "Duplicated stuff with KDE will be removed"
776 fi 
777 if test x$gnome_on != x; then
778         echo "GNOME support enabled"
781 if test "$jpeg_not_found" = yes; then
782 echo "JPEG support will not be included because the JPEG library is"
783 echo "not installed correctly or was not found. Background images"
784 echo "from themes will not display as they usually are JPEG files."
788 dnl This is for Emacs.  I'm lazy, I know... (nicolai)
789 dnl ================================================
790 dnl Local Variables:
791 dnl compile-command: "autoconf"
792 dnl End: