Make wmaker XRandR aware
[wmaker-crm.git] / configure.ac
Commit [+]AuthorDateLineData
c1f19bc9 dan2001-07-30 21:44:15 +00001dnl
2dnl Window Maker autoconf input.
3dnl
4dnl Process with:
5dnl aclocal
6dnl autoheader
7dnl autoconf
8dnl libtoolize --force --automake
9dnl automake -a --gnu --include-deps
10dnl
11dnl
12
13
14AC_INIT(src/WindowMaker.h)
15
16
6b5cfc88 Tamas TEVESZ2010-04-08 21:38:03 +020017AC_CONFIG_MACRO_DIR([m4])
f55eef41 Carlos R. Mafra2010-01-07 16:30:51 +010018AM_INIT_AUTOMAKE(WindowMaker, 0.94.0-crm)
c1f19bc9 dan2001-07-30 21:44:15 +000019AM_CONFIG_HEADER(src/config.h)
20
21
22dnl Checks for host/os name
23dnl =======================
5fe90167 dan2002-03-03 20:33:44 +000024dnl AC_CANONICAL_HOST -- already done by AC_PROG_LIBTOOL
c1f19bc9 dan2001-07-30 21:44:15 +000025
26
27dnl Checks for programs.
28dnl ===================
29AC_ISC_POSIX
30AC_PROG_CC
c1f19bc9 dan2001-07-30 21:44:15 +000031AC_PROG_LN_S
32AC_PROG_GCC_TRADITIONAL
6b5cfc88 Tamas TEVESZ2010-04-08 21:38:03 +020033AC_PROG_LIBTOOL
c1f19bc9 dan2001-07-30 21:44:15 +000034
1bc042c1
TT
Tamas TEVESZ2010-03-31 04:54:11 +020035AX_CFLAGS_GCC_OPTION(-Wall)
36AX_CFLAGS_GCC_OPTION(-Wextra)
37
55959b4f
TT
Tamas TEVESZ2010-03-23 20:27:53 +010038dnl Platform-specific Makefile setup
39dnl ================================
40
41case "${host}" in
71aa4f28 Tamas TEVESZ2010-03-26 20:25:27 +010042 *-*-linux*|*-*-cygwin*)
55959b4f
TT
Tamas TEVESZ2010-03-23 20:27:53 +010043 WM_OSDEP="linux"
44 ;;
45 *-*-freebsd*)
46 WM_OSDEP="bsd"
47 CFLAGS="$CFLAGS -DFREEBSD"
48 ;;
49 *-*-netbsd*)
50 WM_OSDEP="bsd"
51 CFLAGS="$CFLAGS -DNETBSD"
52 ;;
53 *-*-openbsd*)
54 WM_OSDEP="bsd"
55 CFLAGS="$CFLAGS -DOPENBSD"
56 ;;
57 *-*-dragonfly*)
58 WM_OSDEP="bsd"
59 CFLAGS="$CFLAGS -DDRAGONFLYBSD"
60 ;;
61 *-apple-darwin*)
62 WM_OSDEP="darwin"
63 ;;
64 *-*-solaris*)
65 WM_OSDEP="stub" # solaris.c when done
66 ;;
67 *)
68 WM_OSDEP="stub"
ea4645bc Tamas TEVESZ2010-03-26 00:19:27 +010069 CFLAGS="-DSTUB_HINT=\\\"${host}\\\""
55959b4f
TT
Tamas TEVESZ2010-03-23 20:27:53 +010070 ;;
71esac
72AC_SUBST(WM_OSDEP)
73
c1f19bc9 dan2001-07-30 21:44:15 +000074
75dnl the prefix
76dnl ==========
77dnl
78dnl move this earlier in the script... anyone know why this is handled
79dnl in such a bizarre way?
80
81test "x$prefix" = xNONE && prefix=$ac_default_prefix
82dnl Let make expand exec_prefix.
83test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
84
85
86_bindir=`eval echo $bindir`
87_bindir=`eval echo $_bindir`
88
89_libdir=`eval echo $libdir`
90_libdir=`eval echo $_libdir`
91lib_search_path="-L$_libdir"
92
93inc_search_path=`eval echo $includedir`
94inc_search_path="-I`eval echo $inc_search_path`"
95
c1f19bc9 dan2001-07-30 21:44:15 +000096dnl
97dnl Specify paths to look for libraries and headers
98dnl ===============================================
99AC_ARG_WITH(libs-from,
17f26077 dan2002-10-09 05:14:28 +0000100[ --with-libs-from pass compiler flags to look for libraries],
c1f19bc9 dan2001-07-30 21:44:15 +0000101 [lib_search_path="$withval $lib_search_path"])
102
103AC_ARG_WITH(incs-from,
17f26077 dan2002-10-09 05:14:28 +0000104[ --with-incs-from pass compiler flags to look for header files],
c1f19bc9 dan2001-07-30 21:44:15 +0000105 [inc_search_path="$withval $inc_search_path"])
106
107
108
109dnl Checks for library functions.
110dnl ============================
111dnl not used anywhere
112dnl AC_FUNC_MEMCMP
113AC_FUNC_VPRINTF
74ba4f8e dan2003-08-07 00:26:21 +0000114AC_CHECK_FUNCS(gethostname select poll strerror strcasecmp strncasecmp \
115 setsid atexit mallinfo mkstemp snprintf vsnprintf asprintf \
0c09179f dan2004-10-14 23:05:20 +0000116 vasprintf)
c1f19bc9 dan2001-07-30 21:44:15 +0000117
aae7c8b7 dan2001-09-10 22:15:05 +0000118dnl ripped from samba
119dnl
120AC_CACHE_CHECK([for C99 vsnprintf],_cv_HAVE_C99_VSNPRINTF,[
121AC_TRY_RUN([
122#include <sys/types.h>
123#include <stdarg.h>
124void foo(const char *format, ...) {
125 va_list ap;
126 int len;
127 char buf[5];
128
129 va_start(ap, format);
130 len = vsnprintf(0, 0, format, ap);
131 va_end(ap);
132 if (len != 5) exit(1);
133
134 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
135
136 exit(0);
137}
138main() { foo("hello"); }
139],
140_cv_HAVE_C99_VSNPRINTF=yes,_cv_HAVE_C99_VSNPRINTF=no,_cv_HAVE_C99_VSNPRINTF=cross)])
141if test x"$_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
a2b404b5 dan2002-10-08 08:26:06 +0000142 AC_DEFINE(HAVE_C99_VSNPRINTF, 1, [define if you have vsnprintf with C99 semantics (set by configure)])
aae7c8b7 dan2001-09-10 22:15:05 +0000143fi
c1f19bc9 dan2001-07-30 21:44:15 +0000144
c7868fa4
TT
Tamas TEVESZ2010-03-18 19:18:18 +0100145dnl Check for inotify
146dnl =================
147AC_CHECK_HEADERS(sys/inotify.h, AC_DEFINE(HAVE_INOTIFY, 1, Check for inotify))
c1f19bc9 dan2001-07-30 21:44:15 +0000148
149dnl Check CPP
150dnl =========
151if test "x$CPP_PATH" = x; then
152 AC_PATH_PROG(CPP_PATH, cpp, notfound,
153 $PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib)
154fi
155
156dnl
157dnl Tell stupid Solaris cpp that the files it will process have C++ like syntax
158dnl RedHat 5.x is broken too, so it won't make a symlink from cpp to the
159dnl standard locations
160dnl
161if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
162 if test "$GCC" = "yes"; then
163 CPP_PATH="gcc -E -x c"
164 else
165 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
166 CPP_PATH="$CPP_PATH -B"
167 else
168 echo "cpp, the C preprocessor was not found in your system."
169 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
170 exit
171 fi
172 fi
173fi
a2b404b5 dan2002-10-08 08:26:06 +0000174AC_DEFINE_UNQUOTED(CPP_PATH, "$CPP_PATH", [define to the path to cpp])
c1f19bc9 dan2001-07-30 21:44:15 +0000175
176
177
178dnl Checks for header files.
179dnl =======================
c1f19bc9 dan2001-07-30 21:44:15 +0000180AC_HEADER_SYS_WAIT
181AC_HEADER_TIME
74ba4f8e dan2003-08-07 00:26:21 +0000182AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h \
183 libintl.h sys/select.h poll.h malloc.h ctype.h string.h \
0c09179f dan2004-10-14 23:05:20 +0000184 strings.h)
c1f19bc9 dan2001-07-30 21:44:15 +0000185
186
187
188dnl Checks for typedefs, structures, and compiler characteristics.
189dnl ==============================================================
190AC_DECL_SYS_SIGLIST
191AC_C_CONST
192#AC_TYPE_SIZE_T
193#AC_TYPE_PID_T
194AC_TYPE_SIGNAL
195
1941aaf3 dan2002-09-30 12:39:22 +0000196
197
198dnl Compiler/architecture specific optimizations
199dnl ============================================
200
201
202dnl GCC/as with MMX support
203dnl -----------------------
204
205# until we fix it, leave it disabled
206asm_support=no
207mmx_support=no
f6645ac5
AV
Alexey Voinov2009-09-14 02:07:20 +0200208
209check_for_mmx_support=yes
210AC_ARG_ENABLE(mmx,
211 [ --disable-mmx disable compilation of MMX inline assembly ],
212 [if test x$enableval != xyes; then
213 check_for_mmx_support=no
214 fi])
215
216if test "$ac_cv_prog_gcc" = yes -a "$check_for_mmx_support" = yes; then
217case $host_cpu in
218*i?86*)
d2114202 kojima2004-10-12 02:13:15 +0000219
d7d3003e dan2004-10-31 05:33:39 +0000220 # gcc-3.3 or newer complains about some of our stuff without this
221 NOSTRICTALIASING="-fno-strict-aliasing"
1941aaf3 dan2002-09-30 12:39:22 +0000222
d7d3003e dan2004-10-31 05:33:39 +0000223 AC_CACHE_CHECK(whether gcc supports x86 inline asm,
224 ac_cv_c_inline_asm,
91f5abc9 dan2005-08-22 19:07:57 +0000225 [AC_TRY_LINK(,[{int x; asm volatile("movl %%eax, %%ebx\n\t pushal\n\t popal"::
d7d3003e dan2004-10-31 05:33:39 +0000226 "m" (x),"m" (x),"m" (x),"m" (x),"m" (x),"m" (x),
227 "m" (x),"m" (x),"m" (x),"m" (x),"m" (x),"m" (x));}],
228 ac_cv_c_inline_asm=yes,
229 ac_cv_c_inline_asm=no)])
1941aaf3 dan2002-09-30 12:39:22 +0000230
d7d3003e dan2004-10-31 05:33:39 +0000231 if test "x$ac_cv_c_inline_asm" = xyes; then
a2b404b5 dan2002-10-08 08:26:06 +0000232 AC_DEFINE(ASM_X86, 1, [define if processor is x86 (normally detected by configure)])
1941aaf3 dan2002-09-30 12:39:22 +0000233 asm_support=yes
234
235 AC_CACHE_CHECK(whether gcc supports MMX(tm) inline asm,
236 ac_cv_c_inline_mmx,
d2114202 kojima2004-10-12 02:13:15 +0000237 [AC_TRY_LINK(,[asm ("movq %mm0, %mm1");],
1941aaf3 dan2002-09-30 12:39:22 +0000238 ac_cv_c_inline_mmx=yes,
239 ac_cv_c_inline_mmx=no)])
240
241 if test "x$ac_cv_c_inline_mmx" = xyes; then
a2b404b5 dan2002-10-08 08:26:06 +0000242 AC_DEFINE(ASM_X86_MMX, 1, [define if processor is x86 with MMX(tm) support (normally autodetected by configure)])
1941aaf3 dan2002-09-30 12:39:22 +0000243 mmx_support=yes
244 fi
245 fi
f6645ac5
AV
Alexey Voinov2009-09-14 02:07:20 +0200246 ;;
247esac
1941aaf3 dan2002-09-30 12:39:22 +0000248fi
d2114202 kojima2004-10-12 02:13:15 +0000249AC_SUBST(NOSTRICTALIASING)
1941aaf3 dan2002-09-30 12:39:22 +0000250
251
64468fcf dan2003-06-10 01:56:26 +0000252dnl pkg-config
253dnl ----------
254dnl AC_ARG_VAR(PKGCONFIG, [pkg-config command])
255AC_CHECK_PROG(PKGCONFIG, pkg-config, pkg-config)
256
c1f19bc9 dan2001-07-30 21:44:15 +0000257
258dnl gettext
64468fcf dan2003-06-10 01:56:26 +0000259dnl -------
c1f19bc9 dan2001-07-30 21:44:15 +0000260
261
262dnl AM_GNU_GETTEXT
263
264
265
266INTLIBS=""
267
268AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],
269 AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
270 INTLIBS="" ))
271
272AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
273
274if test "$XGETTEXT" != ""; then
275 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
276 echo "xgettext isn't GNU version"
277 XGETTEXT=""
278 fi
279fi
280
281if test "$LINGUAS" != ""; then
282 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
a2b404b5 dan2002-10-08 08:26:06 +0000283 AC_DEFINE(I18N, 1, [Internationalization (I18N) support (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000284 PO=""
c1f19bc9 dan2001-07-30 21:44:15 +0000285 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
286 else
287 LINGUAS=""
288 PO=""
289 echo "xgettext and libintl.a don't both exist; will not build i18n support"
290 fi
291else
292 INTLIBS=""
293 MOFILES=""
294 WPMOFILES=""
18618802 Carlos R. Mafra2010-01-25 10:55:33 +0100295 UTILMOFILES=""
c1f19bc9 dan2001-07-30 21:44:15 +0000296 PO=""
297fi
298
299
300dnl The Tower of Babel
301dnl ==================
302
303dnl List of supported locales
304dnl -------------------------
7f457fa2 Norayr Chilignaryan2009-09-21 12:28:24 +0500305supported_locales="be bg bs ca cs da de el es et fi fr gl hr hu hy it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW"
d63a0b48 kojima2004-10-27 02:54:32 +0000306supported_wprefs_locales="bg ca cs de es et fi fr hr hu it ja ko pt ru sk zh_CN zh_TW"
528243bb dan2003-04-06 23:18:07 +0000307supported_wings_locales="bg ca cs de fr sk"
18618802 Carlos R. Mafra2010-01-25 10:55:33 +0100308supported_util_locales="de"
c1f19bc9 dan2001-07-30 21:44:15 +0000309
310for lang in $LINGUAS; do
311 ok=0
312 for l in $supported_locales; do
313 if test "$l" = "$lang"; then
314 ok=1
315 break
316 fi
317 done
318 if test "$ok" = 1; then
319 MOFILES="$MOFILES $lang.mo"
320 else
321 echo "Locale $lang is not supported."
322 fi
323 ok=0
324 for l in $supported_wprefs_locales; do
325 if test "$l" = "$lang"; then
326 ok=1
327 break
328 fi
329 done
330 if test "$ok" = 1; then
331 WPMOFILES="$WPMOFILES $lang.mo"
332 fi
333 ok=0
18618802
CM
Carlos R. Mafra2010-01-25 10:55:33 +0100334 for l in $supported_util_locales; do
335 if test "$l" = "$lang"; then
336 ok=1
337 break
338 fi
339 done
340 if test "$ok" = 1; then
341 UTILMOFILES="$UTILMOFILES $lang.mo"
342 fi
343 ok=0
c1f19bc9 dan2001-07-30 21:44:15 +0000344 for l in $supported_wings_locales; do
345 if test "$l" = "$lang"; then
346 ok=1
347 break
348 fi
349 done
350 if test "$ok" = 1; then
351 WINGSMOFILES="$WINGSMOFILES $lang.mo"
352 fi
353done
354
355
c1f19bc9 dan2001-07-30 21:44:15 +0000356dnl Added by Oliver - Support for NLSDIR option, Hi Oliver!
357dnl ===========================================
358AC_ARG_WITH(nlsdir,
359 [ --with-nlsdir=PATH specify where the locale stuff should go ])
360
361
362if test "x$NLSDIR" = "x"; then
363 if test "x$with_nlsdir" != "x"; then
364 NLSDIR=$with_nlsdir
365 else
366 NLSDIR='$(prefix)/lib/locale'
367 fi
368fi
369
370
371
c1f19bc9 dan2001-07-30 21:44:15 +0000372AC_SUBST(INTLIBS)
373AC_SUBST(NLSDIR)
374AC_SUBST(MOFILES)
375AC_SUBST(WPMOFILES)
18618802 Carlos R. Mafra2010-01-25 10:55:33 +0100376AC_SUBST(UTILMOFILES)
c1f19bc9 dan2001-07-30 21:44:15 +0000377AC_SUBST(WINGSMOFILES)
378AC_SUBST(supported_locales)
379
380
381
382dnl Support for various hint things
383dnl ===============================
384
c1f19bc9 dan2001-07-30 21:44:15 +0000385dnl
72689513
CM
Carlos R. Mafra2008-11-05 02:09:10 +0100386dnl Beautify compilation messages
387dnl ---------------------------------------------
388AC_ARG_ENABLE(verbose-compile, AS_HELP_STRING([--disable-verbose-compile],
389 [Streamline compilation messages (default off)]),
390 [
d680e6e5
CM
Carlos R. Mafra2008-11-10 00:14:07 +0100391 QUIET='@echo " CC" $@;'
392 QUIET_AR='@echo " AR" $@;'
72689513 Carlos R. Mafra2008-11-05 02:09:10 +0100393 LIBTOOL_ARG="--silent"
ceeca912 Carlos R. Mafra2009-08-17 16:49:22 +0200394 MAKEFLAGS="-s"
72689513
CM
Carlos R. Mafra2008-11-05 02:09:10 +0100395 AC_SUBST(QUIET)
396 AC_SUBST(QUIET_AR)
397 AC_SUBST(LIBTOOL_ARG)
ceeca912 Carlos R. Mafra2009-08-17 16:49:22 +0200398 AC_SUBST(MAKEFLAGS)
72689513
CM
Carlos R. Mafra2008-11-05 02:09:10 +0100399])
400
401
c1f19bc9 dan2001-07-30 21:44:15 +0000402dnl ===========================================
403dnl Stuff that uses X
404dnl ===========================================
405
406AC_PATH_XTRA
407
408if test $no_x; then
409 AC_MSG_ERROR([The path for the X11 files not found!
410Make sure you have X and it's headers and libraries (the -devel packages
411in Linux) installed.])
412fi
413
414X_LIBRARY_PATH=$x_libraries
415
416XCFLAGS="$X_CFLAGS"
417
418XLFLAGS="$X_LIBS"
419
0a47a19b Tamas TEVESZ2009-09-13 21:05:57 +0200420XLIBS="-lX11 -lXmu $X_EXTRA_LIBS"
c1f19bc9 dan2001-07-30 21:44:15 +0000421
422
423lib_search_path="$lib_search_path $XLFLAGS"
424inc_search_path="$inc_search_path $XCFLAGS"
425
426
427AC_SUBST(X_LIBRARY_PATH)
428
429
430
431dnl Decide which locale function to use, setlocale() or _Xsetlocale()
432dnl by MANOME Tomonori
433dnl ===========================================
434use_locale=yes
435AC_ARG_ENABLE(locale,
17f26077 dan2002-10-09 05:14:28 +0000436[ --disable-locale disable use of X locale support],
c1f19bc9 dan2001-07-30 21:44:15 +0000437 use_locale=no)
438
439if test "$use_locale" = yes; then
a2b404b5 dan2002-10-08 08:26:06 +0000440 AC_CHECK_LIB(X11, _Xsetlocale,
441 AC_DEFINE(X_LOCALE, 1, [define if you want support for X window's X_LOCALE (set by configure)]),,
442 $XLFLAGS $XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000443fi
444
445
446dnl Check whether XInternAtoms() exist
447dnl ==================================
a2b404b5 dan2002-10-08 08:26:06 +0000448AC_CHECK_LIB(X11, XInternAtoms,
449 AC_DEFINE(HAVE_XINTERNATOMS, 1, [define if your X server has XInternAtoms() (set by configure)]),,
450 $XLFLAGS $XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000451
5ef342d9 kojima2001-09-06 21:42:28 +0000452dnl Check whether XConvertCase() exist
453dnl ==================================
a2b404b5 dan2002-10-08 08:26:06 +0000454AC_CHECK_LIB(X11, XConvertCase,
455 AC_DEFINE(HAVE_XCONVERTCASE, 1, [define if your X server has XConvertCase() (set by configure)]),,
456 $XLFLAGS $XLIBS)
5ef342d9 kojima2001-09-06 21:42:28 +0000457
c1f19bc9 dan2001-07-30 21:44:15 +0000458
459dnl XKB keyboard language status
460dnl ============================
461AC_ARG_ENABLE(modelock,
17f26077 dan2002-10-09 05:14:28 +0000462[ --enable-modelock XKB keyboard language status support],
a2b404b5 dan2002-10-08 08:26:06 +0000463 AC_DEFINE(XKB_MODELOCK, 1, [whether XKB language MODELOCK should be enabled]))
c1f19bc9 dan2001-07-30 21:44:15 +0000464
465
466
467dnl Shape support
468dnl =============
469shape=yes
470AC_ARG_ENABLE(shape,
17f26077 dan2002-10-09 05:14:28 +0000471[ --disable-shape disable shaped window extension support],
c1f19bc9 dan2001-07-30 21:44:15 +0000472 shape=$enableval, shape=yes)
473
474added_xext=no
475
476if test "$shape" = yes; then
477 AC_CHECK_LIB(Xext, XShapeSelectInput, [XLIBS="-lXext $XLIBS"
478 added_xext=yes
a2b404b5 dan2002-10-08 08:26:06 +0000479 AC_DEFINE(SHAPE, 1, [define if you want support for shaped windows (set by configure)])],
480 shape=no, $XLFLAGS $XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000481fi
482
c201e161
CM
Carlos R. Mafra2010-08-22 19:05:07 +0200483dnl XRandR support
484dnl =============
485xrandr=yes
486AC_ARG_ENABLE(XRandR,
487[ --disable-xrandr disable XRandR window extension support],
488 xrandr=$enableval, xrandr=yes)
489
490added_xext=no
491
492if test "$xrandr" = yes; then
493 AC_CHECK_LIB(Xrandr, XRRQueryExtension, [XLIBS="-lXrandr $XLIBS"
494 added_xext=yes
495 AC_DEFINE(HAVE_XRANDR, 1, [define if you want support for XRandR (set by configure)])],
496 xrandr=no, $XLFLAGS $XLIBS)
497fi
c1f19bc9 dan2001-07-30 21:44:15 +0000498
3f27b998 Andreas Metzler2010-08-01 15:19:27 +0200499dnl
c238d841
AM
Andreas Metzler2010-08-01 16:07:22 +0200500dnl libWINGS uses math functions, check whether usage requires linking
501dnl against libm
502dnl
503AC_CHECK_FUNC(atan,[mathneedslibm=no;LIBM=],[mathneedslibm=dunno])
504if test "x$mathneedslibm" = "xdunno" ; then
505 AC_CHECK_LIB(m, atan, [LIBM=-lm])
506fi
507AC_SUBST(LIBM)
508
509
510dnl
3f27b998
AM
Andreas Metzler2010-08-01 15:19:27 +0200511dnl libWINGS uses FcPatternDel from libfontconfig
512dnl
513AC_MSG_CHECKING([for fontconfig library])
514FCLIBS=`$PKGCONFIG fontconfig --libs`
515if test "x$FCLIBS" = "x" ; then
516 AC_MSG_RESULT([not found])
517else
518 AC_MSG_RESULT([found])
519fi
520AC_SUBST(FCLIBS)
521
522
51c2edf8 dan2004-10-23 02:26:13 +0000523dnl Xft2 antialiased font support
524dnl =============================
9aca0d5f dan2004-10-12 01:34:32 +0000525
17f26077 dan2002-10-09 05:14:28 +0000526xft=yes
527XFTLIBS=""
9aca0d5f dan2004-10-12 01:34:32 +0000528
529if test "x$PKGCONFIG" != x -a "`$PKGCONFIG xft; echo $?`" = 0; then
530 XFTCONFIG="$PKGCONFIG xft"
531 pkgconfig_xft=yes
532else
533 AC_CHECK_PROG(XFTCONFIG, xft-config, xft-config)
534fi
535
536AC_MSG_CHECKING([for the Xft2 library])
537
538if test "x$XFTCONFIG" != x; then
539 XFTLIBS=`$XFTCONFIG --libs`
540 XFTFLAGS=`$XFTCONFIG --cflags`
541 AC_MSG_RESULT([found])
542else
543 AC_MSG_RESULT([not found])
544 echo
545 echo "ERROR!!! libXft2 is not installed or could not be found."
546 echo " Xft2 is a requirement for building Window Maker."
547 echo " Please install it (along with fontconfig) before continuing."
548 echo
549 exit 1
109bb540 dan2004-07-16 18:18:36 +0000550fi
551
3b46cf38 dan2004-10-31 00:57:25 +0000552minXFT="2.1.0"
9aca0d5f dan2004-10-12 01:34:32 +0000553goodxft="no"
554
555dnl
556dnl The macro below will use $XFTFLAGS (defined above) to find Xft.h
557dnl
558WM_CHECK_XFT_VERSION($minXFT, goodxft=yes, goodxft=no)
559
560if test "$goodxft" = no; then
561 echo
562 echo "ERROR!!! libXft on this system is an old version."
563 echo " Please consider upgrading to at least version ${minXFT}."
564 echo
565 exit 1
566fi
567
568AC_SUBST(XFTFLAGS)
569AC_SUBST(XFTLIBS)
9aca0d5f dan2004-10-12 01:34:32 +0000570
571
c1f19bc9 dan2001-07-30 21:44:15 +0000572dnl XINERAMA support
573dnl ================
39d25088 dan2002-12-02 03:44:10 +0000574xinerama=no
575AC_ARG_ENABLE(xinerama,
576[ --enable-xinerama enable Xinerama extension support],
577 xinerama=$enableval, xinerama=no)
c1f19bc9 dan2001-07-30 21:44:15 +0000578
579if test "$xinerama" = yes; then
5dbb770a kojima2003-06-04 18:57:03 +0000580 AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
581 [XLIBS="-lXinerama $XLIBS"
ed0d234d kojima2003-06-04 20:40:00 +0000582 xfxine=yes],
583 xfxine=no, $XLFLAGS $XLIBS)
5dbb770a kojima2003-06-04 18:57:03 +0000584
585 AC_CHECK_LIB(Xext, XineramaGetInfo,
ed0d234d kojima2003-06-04 20:40:00 +0000586 [sunxine=yes
587 ], sunxine=no, $XLFLAGS $XLIBS)
588
589 if test "$xfxine" = yes; then
590 xine=1
591 fi
592
593 if test "$sunxine" = yes; then
594 xine=1
595 AC_DEFINE(SOLARIS_XINERAMA, 1,
596 [define if you want support for the XINERAMA extension and are in Solaris (set by configure)])
597 fi
598
599 if test "$xine" = 1; then
600 AC_DEFINE(XINERAMA, 1,
601 [define if you want support for the XINERAMA extension (set by configure)])
602 fi
c1f19bc9 dan2001-07-30 21:44:15 +0000603fi
604
605
606
607dnl MIT-SHM support
608dnl ===============
609shm=yes
610AC_ARG_ENABLE(shm,
611[ --disable-shm disable usage of MIT-SHM extension],
612 shm=$enableval, shm=yes)
613
614if test "$shm" = yes; then
615 AC_CHECK_LIB(Xext, XShmAttach, ok=yes, ok=no, $XLFLAGS $XLIBS)
616
617 if test "$ok" = yes; then
618 AC_CHECK_FUNC(shmget, ok=yes, ok=no)
619 fi
620
621 if test "$ok" = yes; then
622 if test "$added_xext" = no; then
623 XLIBS="-lXext $XLIBS"
624 fi
a2b404b5 dan2002-10-08 08:26:06 +0000625 AC_DEFINE(XSHM, 1, [define if X's shared memory extension is available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000626 fi
627fi
628
629
630dnl R6 Style Session Management Support
631dnl ===================================
632
633#
634#
635#AC_DEFINE(R6SM)
636#AC_SUBST(XSMPLIBS)
637#
638
639
c1f19bc9 dan2001-07-30 21:44:15 +0000640dnl ==============================================
641dnl Graphic Format Libraries
642dnl ==============================================
643
644
645
646
647
648dnl XPM Support
649dnl ===========
650xpm=yes
651AC_ARG_ENABLE(xpm,
17f26077 dan2002-10-09 05:14:28 +0000652[ --disable-xpm disable use of XPM pixmaps through libXpm],
c1f19bc9 dan2001-07-30 21:44:15 +0000653 xpm=$enableval, xpm=yes)
654
655if test "$xpm" = yes; then
656 WM_CHECK_LIB(Xpm, XpmCreatePixmapFromData, [$XLFLAGS $XLIBS])
657
658 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
659 WM_CHECK_HEADER(X11/xpm.h)
660 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
661 GFXLIBS="$GFXLIBS -lXpm"
662 supported_gfx="XPM"
a2b404b5 dan2002-10-08 08:26:06 +0000663 AC_DEFINE(USE_XPM, 1, [define if XPM libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000664 else
665 supported_gfx="builtin-XPM"
666 fi
667 fi
668fi
669
c1f19bc9 dan2001-07-30 21:44:15 +0000670AC_SUBST(XLFLAGS)
671AC_SUBST(XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000672AC_SUBST(X_EXTRA_LIBS)
673
674dnl ===============================================
675dnl End of stuff that uses X
676dnl ===============================================
677
678
679
c1f19bc9 dan2001-07-30 21:44:15 +0000680dnl PNG Support
681dnl ===========
682png=yes
683AC_ARG_ENABLE(png,
17f26077 dan2002-10-09 05:14:28 +0000684[ --disable-png disable PNG support through libpng],
c1f19bc9 dan2001-07-30 21:44:15 +0000685 png=$enableval, png=yes, png=no)
686
687
688if test "$png" = yes ; then
689 WM_CHECK_LIB(png, png_get_valid, [-lz -lm])
690
691 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
692 WM_CHECK_HEADER(png.h)
693 if test "x$ac_cv_header_png_h" = xyes; then
694 GFXLIBS="$GFXLIBS -lpng -lz"
695 supported_gfx="$supported_gfx PNG"
a2b404b5 dan2002-10-08 08:26:06 +0000696 AC_DEFINE(USE_PNG, 1, [define if PNG libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000697 fi
698 fi
699fi
700
701
702dnl JPEG Support
703dnl ============
704jpeg=yes
705ljpeg=""
706AC_ARG_ENABLE(jpeg,
17f26077 dan2002-10-09 05:14:28 +0000707[ --disable-jpeg disable JPEG support through libjpeg],
c1f19bc9 dan2001-07-30 21:44:15 +0000708 jpeg=$enableval, jpeg=yes, jpeg=no)
709
710if test "$jpeg" = yes; then
711 WM_CHECK_LIB(jpeg, jpeg_destroy_compress)
712
713 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
714
715 ljpeg="-ljpeg"
716
717 WM_CHECK_HEADER(jpeglib.h)
718 if test "x$ac_cv_header_jpeglib_h" = xyes; then
719 GFXLIBS="$GFXLIBS -ljpeg"
720 supported_gfx="$supported_gfx JPEG"
a2b404b5 dan2002-10-08 08:26:06 +0000721 AC_DEFINE(USE_JPEG, 1, [define if JPEG libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000722 fi
723 fi
724fi
725
726
727dnl GIF Support
728dnl ============
729gif=yes
730AC_ARG_ENABLE(gif,
731[ --disable-gif disable GIF support through libgif or libungif],
732 gif=$enableval, gif=yes, gif=no)
733
734if test "$gif" = yes; then
735 my_libname=""
736 WM_CHECK_LIB(ungif, DGifOpenFileName, [$XLFLAGS $XLIBS])
737 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
738 my_libname=-lungif
739 fi
740dnl
741dnl libungif is the same thing as libgif for all practical purposes.
742dnl
743 if test "x$my_libname" = x; then
744 WM_CHECK_LIB(gif, DGifOpenFileName, [$XLFLAGS $XLIBS])
745 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
746 my_libname=-lgif
747 fi
748 fi
749
750 if test "$my_libname" != x; then
751 WM_CHECK_HEADER(gif_lib.h)
752 if test "x$ac_cv_header_gif_lib_h" = xyes; then
753 GFXLIBS="$GFXLIBS $my_libname"
754 supported_gfx="$supported_gfx GIF"
a2b404b5 dan2002-10-08 08:26:06 +0000755 AC_DEFINE(USE_GIF, 1, [define if GIF libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000756 fi
757 fi
758fi
759
760
761
762dnl TIFF Support
763dnl ============
764AC_ARG_ENABLE(tiff,
17f26077 dan2002-10-09 05:14:28 +0000765[ --disable-tiff disable use of TIFF images through libtiff],
c1f19bc9 dan2001-07-30 21:44:15 +0000766 tif=$enableval, tif=yes, tif=no)
767
768#
769# TIFF can optionally have JPEG and/or zlib support. Must find out
770# when they are supported so that correct library flags are passed during
771# detection and linkage
772#
773#
774# By default use xpm icons if tiff is not found.
775ICONEXT="xpm"
776#
777
778if test "$tif" = yes; then
779 my_libname=""
780 WM_CHECK_LIB(tiff, TIFFGetVersion, [-lm])
781 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
782 my_libname="-ltiff"
783 fi
784dnl
785dnl Retry with zlib
786dnl
787 unset ac_cv_lib_tiff_TIFFGetVersion
788 if test "x$my_libname" = x; then
789 WM_CHECK_LIB(tiff, TIFFGetVersion, [$ljpeg -lz -lm])
790 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
791 my_libname="-ltiff -lz"
792 fi
793 fi
794
795 if test "x$my_libname" = x; then
796 WM_CHECK_LIB(tiff34, TIFFGetVersion, [$ljpeg -lm])
797 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
798 my_libname="-ltiff34"
799 fi
800 fi
801
802
803 if test "x$my_libname" != x; then
804 WM_CHECK_HEADER(tiffio.h)
805 if test "x$ac_cv_header_tiffio_h" = xyes; then
806 GFXLIBS="$my_libname $GFXLIBS"
807 ICONEXT="tiff"
808 supported_gfx="$supported_gfx TIFF"
a2b404b5 dan2002-10-08 08:26:06 +0000809 AC_DEFINE(USE_TIFF, 1, [define if TIFF libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000810 fi
811 fi
812fi
813
814LIBRARY_SEARCH_PATH="$lib_search_path"
815HEADER_SEARCH_PATH="$inc_search_path"
816
817AC_SUBST(LIBRARY_SEARCH_PATH)
818AC_SUBST(HEADER_SEARCH_PATH)
819
820
821AC_SUBST(GFXLIBS)
822AC_SUBST(ICONEXT)
823
824
825dnl ==============================================
826dnl End of Graphic Format Libraries
827dnl ==============================================
828
829
2d6f7571 dan2001-09-18 11:48:15 +0000830dnl
831dnl stdlib.h is checked here, because of conflict in jpeglib.h
832AC_CHECK_HEADERS(stdlib.h)
833
c1f19bc9 dan2001-07-30 21:44:15 +0000834# AC_PREFIX_PROGRAM(wmaker)
835
836dnl Support for PIXMAPDIR option
837dnl ============================
838AC_ARG_WITH(pixmapdir,
839[ --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]])
840
841if test "x$with_pixmapdir" != "x"; then
842 pixmapdir=$with_pixmapdir
843else
844 pixmapdir=`eval echo ${datadir}/pixmaps`
845fi
846
a2b404b5 dan2002-10-08 08:26:06 +0000847AC_DEFINE_UNQUOTED(PIXMAPDIR, "$pixmapdir", [define an extra path for pixmaps (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000848
849pkgdatadir=`eval echo $datadir`
a2b404b5 dan2002-10-08 08:26:06 +0000850AC_DEFINE_UNQUOTED(PKGDATADIR, "$pkgdatadir/WindowMaker", [where shared data is stored (defined by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000851
852_sysconfdir=`eval echo $sysconfdir`
a2b404b5 dan2002-10-08 08:26:06 +0000853AC_DEFINE_UNQUOTED(SYSCONFDIR, "$_sysconfdir", [where the configuration is stored (defined by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000854
855
856dnl Support for GNUSTEP_LOCAL_ROOT, for WPrefs.app
857dnl ==============================================
858
c1f19bc9 dan2001-07-30 21:44:15 +0000859AC_ARG_WITH(appspath,
bde572f6 dan2004-11-14 00:11:20 +0000860[ --with-gnustepdir=PATH specify the directory for GNUstep applications])
861
5f0a357b dan2005-07-05 08:44:00 +0000862if test "x`echo $with_gnustepdir | grep ^/`" != "x"; then
863 appspath=$with_gnustepdir
864fi
c1f19bc9 dan2001-07-30 21:44:15 +0000865
bde572f6 dan2004-11-14 00:11:20 +0000866if test "x$appspath$GNUSTEP_LOCAL_ROOT" = "x"; then
9f89695c dan2004-11-06 20:20:05 +0000867 wprefs_base_dir=${prefix}
acc868d9 kojima2004-11-01 00:50:19 +0000868 wprefs_datadir="${datadir}/WPrefs"
869 wprefs_bindir="${bindir}"
870else
871 gnustepdir=$appspath
c1f19bc9 dan2001-07-30 21:44:15 +0000872
873 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
874 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
875 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
876 fi
877
9f89695c dan2004-11-06 20:20:05 +0000878 wprefs_base_dir=$gnustepdir/Applications
879 wprefs_datadir=$wprefs_base_dir/WPrefs.app
880 wprefs_bindir=$wprefs_base_dir/WPrefs.app
c1f19bc9 dan2001-07-30 21:44:15 +0000881fi
882
acc868d9 kojima2004-11-01 00:50:19 +0000883AC_SUBST(wprefs_datadir)
884AC_SUBST(wprefs_bindir)
c1f19bc9 dan2001-07-30 21:44:15 +0000885
886
887dnl Enable User Defined Menu thing
888dnl ==================================
889AC_ARG_ENABLE(usermenu,
890[ --enable-usermenu user defined menus for applications
891],
892if test "$enableval" = yes; then
a2b404b5 dan2002-10-08 08:26:06 +0000893 AC_DEFINE(USER_MENU, 1, [define if you want user defined menus for applications])
c1f19bc9 dan2001-07-30 21:44:15 +0000894fi
895)
896
897
67a8a826 Tamas TEVESZ2010-03-23 17:13:47 +0100898AC_OUTPUT(Makefile po/Makefile util/Makefile util/po/Makefile \
c1f19bc9 dan2001-07-30 21:44:15 +0000899 WINGs/Makefile WINGs/WINGs/Makefile WINGs/Documentation/Makefile \
900 WINGs/Examples/Makefile WINGs/Resources/Makefile WINGs/Tests/Makefile \
901 WINGs/Extras/Makefile WINGs/po/Makefile \
67a8a826 Tamas TEVESZ2010-03-23 17:13:47 +0100902 wrlib/Makefile wrlib/tests/Makefile \
71f1d7f1 dan2005-01-06 15:48:42 +0000903 src/Makefile src/wconfig.h \
bbe55ba2 Brad Jorsch2010-04-09 10:40:51 -0400904 doc/Makefile doc/sk/Makefile doc/cs/Makefile \
ce32e2b5 NIR Ginko2010-08-18 18:44:37 +0400905 doc/ru/Makefile \
c1f19bc9 dan2001-07-30 21:44:15 +0000906 WindowMaker/Makefile WindowMaker/Backgrounds/Makefile \
907 WindowMaker/Defaults/Makefile WindowMaker/IconSets/Makefile \
908 WindowMaker/Icons/Makefile WindowMaker/Pixmaps/Makefile \
909 WindowMaker/Styles/Makefile WindowMaker/Themes/Makefile \
910 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
c960ae62 Tamas TEVESZ2010-04-09 03:44:23 +0200911 WPrefs.app/po/Makefile )
c1f19bc9 dan2001-07-30 21:44:15 +0000912
913
914
915dnl
916dnl Output some helpful data for compiling wraster and WINGs/WUtil apps
917dnl ===================================================================
918dnl
919
920dnl echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
921dnl echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
922dnl | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
923
924dnl The #lp# and #rp# stuff below is a hack because [ and ] get lost when
925dnl parsed by m4
926
927cat <<EOF >get-wraster-flags
928#!/bin/sh
929
4be9abcd dan2001-10-10 01:02:34 +0000930WCFLAGS="$inc_search_path"
931WLFLAGS="$lib_search_path"
c1f19bc9 dan2001-07-30 21:44:15 +0000932WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
933
934usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
935
936if test \$# -eq 0; then
937 echo "\${usage}" 1>&2
938 exit 1
939fi
940
941while test \$# -gt 0; do
942 case \$1 in
943 --cflags)
944 echo \$WCFLAGS
945 ;;
946 --ldflags|--lflags)
947 echo \$WLFLAGS
948 ;;
949 --libs)
950 echo \$WLIBS
951 ;;
952 *)
953 echo "\${usage}" 1>&2
954 exit 1
955 ;;
956 esac
957 shift
958done
959
960
961EOF
962
b0063c83 dan2003-04-18 01:15:07 +0000963cat <<EOF > wrlib/wrlib.pc
964Name: wrlib
965Description: Image manipulation and conversion library
966Version: $VERSION
967Libs: $lib_search_path -lwraster $GFXLIBS $XLIBS -lm
968Cflags: $inc_search_path
969EOF
970
c1f19bc9 dan2001-07-30 21:44:15 +0000971cat <<EOF >get-wings-flags
972#!/bin/sh
973
4be9abcd dan2001-10-10 01:02:34 +0000974WCFLAGS="$inc_search_path"
975WLFLAGS="$lib_search_path"
1f2b9999 Tamas TEVESZ2010-03-24 01:51:07 +0100976WLIBS="-lWINGs -lWUtil -lwraster $GFXLIBS $XFTLIBS $XLIBS -lm $INTLIBS"
c1f19bc9 dan2001-07-30 21:44:15 +0000977
978usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
979
980if test \$# -eq 0; then
981 echo "\${usage}" 1>&2
982 exit 1
983fi
984
985while test \$# -gt 0; do
986 case \$1 in
987 --cflags)
988 echo \$WCFLAGS
989 ;;
990 --ldflags|--lflags)
991 echo \$WLFLAGS
992 ;;
993 --libs)
994 echo \$WLIBS
995 ;;
996 *)
997 echo "\${usage}" 1>&2
998 exit 1
999 ;;
1000 esac
1001 shift
1002done
1003
1004
1005EOF
1006
b0063c83 dan2003-04-18 01:15:07 +00001007cat <<EOF > WINGs/WINGs.pc
1008Name: WINGs
1009Description: Small widget set with the NeXTStep(TM) look and feel
1010Version: $VERSION
1011Requires: wrlib
1f2b9999 Tamas TEVESZ2010-03-24 01:51:07 +01001012Libs: $lib_search_path -lWINGs $XFTLIBS $XLIBS -lm $INTLIBS
b0063c83 dan2003-04-18 01:15:07 +00001013Cflags: $inc_search_path
1014EOF
1015
c1f19bc9 dan2001-07-30 21:44:15 +00001016cat <<EOF >get-wutil-flags
1017#!/bin/sh
1018
4be9abcd dan2001-10-10 01:02:34 +00001019WCFLAGS="-I`eval echo ${includedir}`"
1020WLFLAGS="-L${_libdir}"
1f2b9999 Tamas TEVESZ2010-03-24 01:51:07 +01001021WLIBS="-lWUtil $INTLIBS"
c1f19bc9 dan2001-07-30 21:44:15 +00001022
1023usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
1024
1025if test \$# -eq 0; then
1026 echo "\${usage}" 1>&2
1027 exit 1
1028fi
1029
1030while test \$# -gt 0; do
1031 case \$1 in
1032 --cflags)
1033 echo \$WCFLAGS
1034 ;;
1035 --ldflags|--lflags)
1036 echo \$WLFLAGS
1037 ;;
1038 --libs)
1039 echo \$WLIBS
1040 ;;
1041 *)
1042 echo "\${usage}" 1>&2
1043 exit 1
1044 ;;
1045 esac
1046 shift
1047done
1048
1049
1050EOF
1051
1052sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
1053sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
1054sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
1055
1056chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
1057
1058rm -f get-wraster-flags get-wings-flags get-wutil-flags
1059
1060
1061dnl
1062dnl Spit out the configuration
1063dnl ==========================
1064
1065supported_gfx="$supported_gfx builtin-PPM"
1066
1067if test "x$MOFILES" = "x"; then
9aca0d5f dan2004-10-12 01:34:32 +00001068 mof=None
c1f19bc9 dan2001-07-30 21:44:15 +00001069else
ab511aca dan2002-12-02 04:42:13 +00001070 mof=`echo $MOFILES`
1071fi
1072
1073if test "x$MOFILES" = "x"; then
9aca0d5f dan2004-10-12 01:34:32 +00001074 languages=None
ab511aca dan2002-12-02 04:42:13 +00001075else
1076 languages=`echo $MOFILES | sed 's/.mo//g'`
c1f19bc9 dan2001-07-30 21:44:15 +00001077fi
1078
c1f19bc9 dan2001-07-30 21:44:15 +00001079echo
1080echo "Window Maker was configured as follows:"
1081echo
ab511aca dan2002-12-02 04:42:13 +00001082echo "Installation path prefix : $prefix"
1083echo "Installation path for binaries : $_bindir"
9f89695c dan2004-11-06 20:20:05 +00001084echo "Installation path for WPrefs.app : $wprefs_base_dir" | sed -e 's|\${prefix}|'"$prefix|"
ab511aca dan2002-12-02 04:42:13 +00001085echo "Supported graphic format libraries : $supported_gfx"
ab511aca dan2002-12-02 04:42:13 +00001086echo "Use assembly routines for wrlib : $asm_support"
1087echo "Use inline MMX(tm) x86 assembly : $mmx_support"
9aca0d5f dan2004-10-12 01:34:32 +00001088echo "Antialiased text support in WINGs : $xft"
1089echo "Xinerama extension support : $xinerama"
c201e161 Carlos R. Mafra2010-08-22 19:05:07 +02001090echo "XRandR extension support : $xrandr"
ab511aca dan2002-12-02 04:42:13 +00001091echo "Translated message files to install : $mof"
1092dnl echo "Supported languages beside English : $languages"
c1f19bc9 dan2001-07-30 21:44:15 +00001093if test "x$MOFILES" != "x"; then
ab511aca dan2002-12-02 04:42:13 +00001094 echo "Installation path for translations : $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
c1f19bc9 dan2001-07-30 21:44:15 +00001095fi
ab511aca dan2002-12-02 04:42:13 +00001096echo
c1f19bc9 dan2001-07-30 21:44:15 +00001097
1098dnl WM_PRINT_REDCRAP_BUG_STATUS
1099
1100if test "x$ac_cv_header_jpeglib_h" != xyes; then
1101echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
1102echo
1103echo "JPEG support will not be included because the JPEG library is"
1104echo "not installed correctly or was not found. Background images"
1105echo "from themes will not display as they usually are JPEG files."
1106echo
1107echo "To fix, download and install the jpeg library and/or make sure you"
1108echo "installed all jpeg related packages, SPECIALLY the development packages"
1109echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
1110echo
1111echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
1112fi
1113
1114
1115dnl This is for Emacs. I'm lazy, I know... (nicolai)
1116dnl ================================================
1117dnl Local Variables:
1118dnl compile-command: "autoconf"
1119dnl End:
1120