forked from erlyaws/yaws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
536 lines (450 loc) · 18.8 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
dnl ------------------------------------------------------------------
dnl Autoconf initialization.
dnl ------------------------------------------------------------------
m4_define([VERSION_NUMBER], m4_esyscmd([. ./vsn.mk && printf '%s' ${YAWS_VSN}]))
AC_INIT([yaws], VERSION_NUMBER)
AC_CONFIG_SRCDIR([src/yaws_app.erl])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([ac-aux])
dnl work out who the cpu, vendor and OS are
AC_CANONICAL_SYSTEM
AC_DEFINE_UNQUOTED(CPU_VENDOR_OS, "$host")
AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign])
AC_PREREQ([2.64])
ECHO=echo
COLORED_ECHO_INIT
dnl ------------------------------------------------------------------
dnl Compiler and other tools.
dnl ------------------------------------------------------------------
old_cflags="$CFLAGS"
AM_SILENT_RULES([yes])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
dnl AC_PREFIX_DEFAULT(/usr)
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AC_PROG_LD
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_SED
AM_DISABLE_STATIC
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
CFLAGS="-Werror -Wall -O3 $old_cflags"
dnl ------------------------------------------------------------------
dnl Handle configure options.
dnl ------------------------------------------------------------------
AC_ARG_WITH([defaultcharset],
AC_HELP_STRING([--with-defaultcharset=CHARSET],
[specify default charset, i.e UTF-8]),
with_defaultcharset=${withval%/},
with_defaultcharset="")
if test "x${with_defaultcharset}" = "x"; then
DEFAULT_CHARSET=undefined
else
DEFAULT_CHARSET="\"${with_defaultcharset}\""
fi
AC_SUBST(DEFAULT_CHARSET)
AC_ARG_WITH([extrainclude],
AS_HELP_STRING([--with-extrainclude=DIR],
[dir to include if e.g. pam is installed in some odd place]),
with_extrainclude=${withval%/},
with_extrainclude="")
if test "x$with_extrainclude" = "x" ; then
EXTRAINCLUDE=
else
EXTRAINCLUDE=-I${with_extrainclude}
fi
AC_SUBST(EXTRAINCLUDE)
AC_ARG_ENABLE([pam],
AC_HELP_STRING([--disable-pam],
[disable pam auth]))
AM_CONDITIONAL(WITH_EPAM, [test "x${enable_pam}" != "xno"])
APPDEPS=
AC_ARG_ENABLE(crypto,
AS_HELP_STRING([--enable-crypto],
[adds crypto application to yaws.app file]))
if test "x$enable_crypto" = "xyes"; then
APPDEPS=',crypto'
fi
AC_ARG_ENABLE(compiler,
AS_HELP_STRING([--enable-compiler],
[adds compiler application to yaws.app file]))
if test "x$enable_compiler" = "xyes"; then
APPDEPS="${APPDEPS},compiler"
fi
AC_SUBST(APPDEPS)
dnl ------------------------------------------------------------------
dnl Erlang environment.
dnl ------------------------------------------------------------------
echo
COLORED_ECHO([%BCheck Erlang environment & applications%b])
tmp_cross_compiling=$cross_compiling
cross_compiling=no
dnl Available flags.
AC_ARG_WITH([erlang],
AC_HELP_STRING([--with-erlang=PREFIX],
[prefix where Erlang is installed (optional)]),
with_erlang=${withval%/},
with_erlang="")
dnl erl(1) is used to compile Erlang modules.
if test "x${with_erlang}" = "x"; then
AC_ERLANG_PATH_ERL
AC_ERLANG_PATH_ERLC
else
erl_path="${with_erlang}/bin"
AC_ERLANG_PATH_ERL(, [$erl_path$PATH_SEPARATOR$PATH])
AC_ERLANG_PATH_ERLC(, [$erl_path$PATH_SEPARATOR$PATH])
fi
if test "x${ERL}" = "x"; then
AC_MSG_ERROR([
Erlang not found. Fill the ERL variable with erl(1) path or provide
Erlang prefix with --with-erlang.])
fi
dnl escript(1) is used by the testsuite.
AC_ARG_VAR([ESCRIPT], [Erlang/OTP interpreter command [autodetected]])
if test "x${ESCRIPT}" = "x"; then
if test "x${with_erlang}" = "x"; then
AC_PATH_PROG([ESCRIPT], [escript],,)
else
erl_path="${with_erlang}/bin"
AC_PATH_PROG([ESCRIPT], [escript],,
[$erl_path$PATH_SEPARATOR$PATH])
fi
else
AC_MSG_CHECKING([for escript])
AC_MSG_RESULT([$ESCRIPT])
fi
if test "x${ESCRIPT}" = "x"; then
AC_MSG_WARN([
escript(1) not found. Fill the ESCRIPT variable with escript(1) path if
you want to use the testsuite.])
fi
dnl dialyzer(1).
AC_ARG_VAR([DIALYZER], [Erlang/OTP discrepancy analyzer [autodetected]])
if test "x${DIALYZER}" = "x"; then
if test "x${with_erlang}" = "x"; then
AC_PATH_PROG([DIALYZER], [dialyzer],,)
else
erl_path="${with_erlang}/bin"
AC_PATH_PROG([DIALYZER], [dialyzer],,
[$erl_path$PATH_SEPARATOR$PATH])
fi
else
AC_MSG_CHECKING([for dialyzer])
AC_MSG_RESULT([$DIALYZER])
fi
if test "x${DIALYZER}" = "x"; then
AC_MSG_WARN([
dialyzer(1) not found. Fill the DIALYZER variable with dialyzer(1) path if
you want to use it.])
fi
dnl ct_run(1).
AC_ARG_VAR([CT_RUN], [Erlang/OTP Program used for starting Common Test [autodetected]])
if test "x${CT_RUN}" = "x"; then
if test "x${with_erlang}" = "x"; then
AC_PATH_PROG([CT_RUN], [ct_run],,)
else
erl_path="${with_erlang}/bin"
AC_PATH_PROG([CT_RUN], [ct_run],,
[$erl_path$PATH_SEPARATOR$PATH])
fi
else
AC_MSG_CHECKING([for ct_run])
AC_MSG_RESULT([$CT_RUN])
fi
if test "x${CT_RUN}" = "x"; then
AC_MSG_WARN([
ct_run(1) not found. Fill the CT_RUN variable with ct_run(1) path if
you want to use it.])
fi
dnl Declare ERL_LIBS as precious.
AC_ARG_VAR([ERL_LIBS], [Erlang/OTP applications search path [none]])
dnl Get Erlang $ROOT dir and lib dir.
AC_ERLANG_SUBST_ROOT_DIR
AC_ERLANG_SUBST_LIB_DIR
dnl Get ERTS version.
ERLANG_CHECK_ERTS
ERLANG_CHECK_RELEASE
dnl Require Erlang >=21.0 (ERTS 10.0) is required.
AX_COMPARE_VERSION([${ERLANG_ERTS_VER}], [ge], [10.0],
[],
[AC_MSG_ERROR([Erlang 21.0 or higher is required but only Erlang $ERLANG_RELEASE was found!])])
dnl Determine directories for installation.
if test "x${prefix}" != "xNONE" -a "x${ERLANG_INSTALL_LIB_DIR}" = "x"; then
dnl Under $prefix
ERLANG_INSTALL_LIB_DIR='${prefix}/lib'
else
dnl Under default erlang libdir
ERLANG_INSTALL_LIB_DIR='${ERLANG_LIB_DIR}'
fi
AC_ERLANG_SUBST_INSTALL_LIB_DIR
. ${srcdir}/vsn.mk
AC_SUBST(YAWS_VSN)
AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(AC_PACKAGE_NAME, ${YAWS_VSN})
. ${srcdir}/applications/yapp/vsn.mk
AC_SUBST(YAPP_VSN)
AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(yapp, ${YAPP_VSN})
dnl ------------------------------------------------------------------
dnl Erlang applicatons.
dnl ------------------------------------------------------------------
AC_ERLANG_CHECK_LIB([kernel],, [AC_MSG_ERROR(["kernel" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([stdlib],, [AC_MSG_ERROR(["stdlib" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([sasl],, [AC_MSG_ERROR(["sasl" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([erts],, [AC_MSG_ERROR(["erts" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([compiler],, [AC_MSG_ERROR(["compiler" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([crypto],, [AC_MSG_ERROR(["crypto" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([xmerl],, [AC_MSG_ERROR(["xmerl" Erlang application not found.])])
AC_ERLANG_CHECK_LIB([public_key],, [AC_MSG_WARN(["public_key" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([ssl],, [AC_MSG_WARN(["ssl" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([mnesia],, [AC_MSG_WARN(["mnesia" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([eunit],, [AC_MSG_WARN(["eunit" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([erlsom],, [AC_MSG_WARN(["erlsom" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([xmlrpc],, [AC_MSG_WARN(["xmlrpc" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([inets],, [AC_MSG_WARN(["inets" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([tools],, [AC_MSG_WARN(["tools" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
AC_ERLANG_CHECK_LIB([common_test],,[AC_MSG_WARN(["common_test" Erlang application not found.
It could be required to run Yaws or its testsuites.])])
cross_compiling=$tmp_cross_compiling
dnl ------------------------------------------------------------------
dnl Check platform-specific stuff
dnl ------------------------------------------------------------------
echo
COLORED_ECHO([%BCheck platform-specific and system requirements%b])
AC_MSG_CHECKING([for the build and host architectures])
case "$host_os" in
*cygwin*)
AC_MSG_RESULT([windows (native)])
CYGWIN=true
AC_PATH_PROG(WERL, werl)
AC_SUBST(WERL)
;;
mingw|mingw32*)
AC_MSG_RESULT([windows (cross-compiled)])
MINGW=true
AC_PATH_PROG(WERL, werl)
AC_SUBST(WERL)
;;
*)
AC_MSG_RESULT([$host_os])
dnl Sigh, pam headers do not seem to have a standard place. On FreeBSD and
dnl Linuxes I've seen they are in /usr/include/security, but MacOS has them
dnl in /usr/include/pam, /usr/include/security, or under a special SDK directory.
EPAM_CFLAGS=
EPAM_INCLUDE=
if test "x$enable_pam" != "xno"; then
AC_CHECK_HEADERS([security/pam_appl.h pam/pam_appl.h pam_appl.h],[break])
case "$host_os" in
darwin*)
if ! test -d /usr/include; then
AC_CHECK_PROGS([XCRUN], [xcrun])
if test "x$XCRUN" != "x"; then
AC_MSG_CHECKING([for $XCRUN --show-sdk-path])
sdk_dir=`$XCRUN --show-sdk-path`
if test "x$sdk_dir" != "x"; then
AC_MSG_RESULT([$sdk_dir])
EPAM_INCLUDE="$sdk_dir"
else
AC_MSG_RESULT([no])
fi
fi
fi
;;
*)
;;
esac
if test "x$ac_cv_header_security_pam_appl_h" = "xyes" ; then
EPAM_CFLAGS='-I$(EPAM_INCLUDE)/usr/include/security'
elif test "x$ac_cv_header_pam_pam_appl_h" = "xyes" ; then
EPAM_CFLAGS='-I$(EPAM_INCLUDE)/usr/include/pam'
elif test "x$ac_cv_header_pam_appl_h" = "xno" ; then
AC_MSG_ERROR("Could not find pam_appl.h required for pam authentication")
fi
AC_CHECK_LIB(pam,pam_start,[],[AC_MSG_ERROR("Could not find pam library")])
fi
AC_SUBST(EPAM_INCLUDE)
AC_SUBST(EPAM_CFLAGS)
;;
esac
AM_CONDITIONAL(CYGWIN, [test "x$CYGWIN" = "xtrue"])
AM_CONDITIONAL(MINGW, [test "x$MINGW" = "xtrue"])
AM_CONDITIONAL(WINDOWS, [test "x$MINGW" = "xtrue" -o "x$CYGWIN" = "xtrue"])
dnl ------------------------------------------------------------------
dnl Check for programs used during Yaws compilation/installation
dnl ------------------------------------------------------------------
echo
COLORED_ECHO([%BCheck programs support%b])
dnl Make LaTeX and related commands configurable
dnl
dnl We might want to check whether latex is pdflatex and creates PDF instead of
dnl DVI without being given -output-format=dvi. However, this at least allows
dnl to give the working command at configure time.
AC_ARG_VAR([DVILATEX], [(pdf)latex command creating DVI file])
AC_CHECK_PROG([DVILATEX], [latex], [latex])
AC_ARG_VAR([DVIPS], [dvips command])
AC_CHECK_PROG([DVIPS], [dvips], [dvips])
AC_ARG_VAR([PDFLATEX], [(pdf)latex command creating PDF file])
AC_CHECK_PROG([PDFLATEX], [pdflatex], [pdflatex])
AC_ARG_VAR([EPSTOPDF], [epstopdf command])
AC_CHECK_PROG([EPSTOPDF], [epstopdf], [epstopdf])
AC_ARG_VAR([MAN], [man command creating manpages])
AC_CHECK_PROG([MAN], [man], [man])
AC_ARG_VAR([PS2PDF], [ps2pdf command creating PDF file])
AC_CHECK_PROG([PS2PDF], [ps2pdf], [ps2pdf])
AM_CONDITIONAL(CAN_BUILD_DOC,
[test "x$DVILATEX" != "x" && test "x$DVIPS" != "x" && test "x$PDFLATEX" != "x" && test "x$EPSTOPDF" != "x"])
AC_ARG_VAR([CADAVER], [command-line WebDAV client for Unix])
AC_CHECK_PROG([CADAVER], [cadaver], [cadaver])
AC_ARG_VAR([CURL], [command-line tool for transferring data with URL syntax])
AC_CHECK_PROG([CURL], [curl], [curl])
AC_ARG_VAR([UNIX2DOS], [converts DOS <-> Unix text files])
AC_CHECK_PROG([UNIX2DOS], [unix2dos], [unix2dos])
AC_ARG_VAR([TODOS], [converts DOS <-> Unix text files])
AC_CHECK_PROG([TODOS], [todos], [todos])
AC_ARG_VAR([INSTALL_BUILDER], [BitRock InstallBuilder directory ['${HOME}/installbuilder-5.4.14']])
if test "x${INSTALL_BUILDER}" = "x"; then
INSTALL_BUILDER="${HOME}/installbuilder-5.4.14"
fi
dnl ------------------------------------------------------------------
dnl Final path substitutions
dnl ------------------------------------------------------------------
AM_CONDITIONAL(HAVE_TS_TOOLS, [(test "x${CT_RUN}" != "x") &&
(test "${ERLANG_LIB_DIR_common_test}" != "not found") &&
(test "${ERLANG_LIB_DIR_eunit}" != "not found") &&
(test "${ERLANG_LIB_DIR_inets}" != "not found") &&
(test "${ERLANG_LIB_DIR_tools}" != "not found")])
AC_ARG_VAR([confdir], [Default Yaws configuration directory ['$(sysconfdir)/yaws']])
if test "x${confdir}" = "x"; then
confdir='$(sysconfdir)/yaws'
fi
AC_ARG_VAR([wwwdir], [Default Yaws docroot ['$(localstatedir)/yaws/www']])
if test "x${wwwdir}" = "x"; then
wwwdir='$(localstatedir)/yaws/www'
fi
AC_ARG_VAR([appsdir], [Default Yaws applications directory ['$(localstatedir)/yaws']])
if test "x${appsdir}" = "x"; then
appsdir='$(localstatedir)/yaws'
fi
AC_ARG_VAR([logdir], [Default Yaws log directory ['$(localstatedir)/log/yaws']])
if test "x${logdir}" = "x"; then
logdir='$(localstatedir)/log/yaws'
fi
AC_ARG_VAR([yawsdir], [Default Yaws installation directory ['$(libdir)/yaws'].
If not specified, it is a link on '$(ERLANG_INSTALL_LIB_DIR_yaws)'])
if test "x${yawsdir}" = "x"; then
yawsdir='$(libdir)/yaws'
else
dnl If yawsdir is defined, replace ERLANG_INSTALL_LIB_DIR_yaws too
ERLANG_INSTALL_LIB_DIR_yaws='${yawsdir}'
fi
AC_ARG_VAR([yappdir], [Default Yapp installation directory ['$(libdir)/yapp'].
If not specified, it is a link on '$(ERLANG_INSTALL_LIB_DIR_yapp)'])
if test "x${yappdir}" = "x"; then
yappdir='$(libdir)/yapp'
else
dnl If yappdir is defined, replace ERLANG_INSTALL_LIB_DIR_yapp too
ERLANG_INSTALL_LIB_DIR_yapp='${yappdir}'
fi
dnl ------------------------------------------------------------------
dnl Autoconf output.
dnl ------------------------------------------------------------------
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
['$(top_srcdir)/vsn.mk \
$(top_srcdir)/erlang_deps.mk \
$(top_srcdir)/include.mk \
$(top_srcdir)/applications/yapp/vsn.mk \
$(top_srcdir)/testsuite/run_common_test.in \
$(top_srcdir)/testsuite/yaws.coverspec.in \
$(top_srcdir)/testsuite/cover_to_html.sh.in \
$(top_srcdir)/testsuite/analyze_coverdata.escript.in'])
AC_CONFIG_FILES([
yaws.pc
Makefile
c_src/Makefile
win32/Makefile
win32/build.xml
man/Makefile
doc/Makefile
scripts/Makefile
src/Makefile
ebin/Makefile
examples/src/Makefile
examples/ebin/Makefile
examples/include/Makefile
www/code/Makefile
www/shoppingcart/Makefile
testsuite/Makefile
testsuite/${PACKAGE_NAME}.coverspec
testsuite/testsuite.hrl
applications/chat/Makefile
applications/chat/src/Makefile
applications/chat/ebin/Makefile
applications/mail/Makefile
applications/mail/src/Makefile
applications/mail/ebin/Makefile
applications/wiki/Makefile
applications/wiki/src/Makefile
applications/wiki/ebin/Makefile
applications/yapp/Makefile
applications/yapp/src/Makefile
applications/yapp/ebin/Makefile
src/yaws_charset.hrl
src/yaws_appdeps.hrl
])
AC_CONFIG_FILES([testsuite/run_common_test], [chmod +x testsuite/run_common_test])
AC_CONFIG_FILES([testsuite/cover_to_html.sh], [chmod +x testsuite/cover_to_html.sh])
AC_CONFIG_FILES([testsuite/analyze_coverdata.escript], [chmod +x testsuite/analyze_coverdata.escript])
AC_CONFIG_FILES([scripts/make-release], [chmod +x scripts/make-release])
AC_CONFIG_FILES([applications/wiki/scripts/addFile], [chmod +x applications/wiki/scripts/addFile])
AC_CONFIG_FILES([applications/wiki/scripts/getPassword], [chmod +x applications/wiki/scripts/getPassword])
AC_CONFIG_FILES([applications/wiki/scripts/importFiles], [chmod +x applications/wiki/scripts/importFiles])
AC_CONFIG_FILES([applications/wiki/scripts/updateWiki], [chmod +x applications/wiki/scripts/updateWiki])
dnl when srcdir != builddir, we need to create some symlinks
AC_CONFIG_FILES([include/Makefile], [
AS_IF([test -e include/yaws.hrl],
[], [ln -s ${ac_abs_srcdir}/yaws.hrl include/yaws.hrl])
AS_IF([test -e include/yaws_api.hrl],
[], [ln -s ${ac_abs_srcdir}/yaws_api.hrl include/yaws_api.hrl])
])
AC_CONFIG_FILES([priv/Makefile], [
AS_IF([test -e priv/mime.types],
[], [ln -s ${ac_abs_srcdir}/mime.types priv/mime.types])
])
AC_OUTPUT
dnl --------------------------------------------------
dnl Configuration report
dnl --------------------------------------------------
echo
COLORED_ECHO([ %B== ${PACKAGE_NAME} ${PACKAGE_VERSION} ==%b])
echo
COLORED_ECHO([Configuration:])
COLORED_ECHO([ %BApplication dir.%b: ${ERLANG_INSTALL_LIB_DIR_yaws}])
echo
COLORED_ECHO([ %BPrefix%b: ${prefix}])
COLORED_ECHO([ %Betcdir%b: ${sysconfdir}])
COLORED_ECHO([ %Bconfdir%b: ${confdir}])
COLORED_ECHO([ %Bbindir%b: ${bindir}])
COLORED_ECHO([ %Bvardir%b: ${localstatedir}])
COLORED_ECHO([ %Bwwwdir%b: ${wwwdir}])
COLORED_ECHO([ %Bappsdir%b: ${appsdir}])
COLORED_ECHO([ %Blogdir%b: ${logdir}])
COLORED_ECHO([ %Byawsdir%b: ${yawsdir}])
COLORED_ECHO([ %Bdocdir%b: ${docdir}])
COLORED_ECHO([ %Bmandir%b: ${mandir}])
echo
COLORED_ECHO([ %BErlang root dir%b: ${ERLANG_ROOT_DIR}])
COLORED_ECHO([ %BErlang lib dir%b: ${ERLANG_LIB_DIR}])
COLORED_ECHO([ %BErlang compiler%b: ${ERLC}])
COLORED_ECHO([ %BErlang emulator%b: ${ERL}])
COLORED_ECHO([ %BWindows Erlang emulator%b: ${WERL}])
COLORED_ECHO([ %BErlang interpreter%b: ${ESCRIPT}])
COLORED_ECHO([ %BErlang dialyzer tool%b: ${DIALYZER}])
COLORED_ECHO([ %BErlang ct_run tool%b: ${CT_RUN}])
echo