put again eina tests in the source tree
[framework/uifw/eina.git] / configure.ac
1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [0])
5 m4_define([v_mic], [0])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7 m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8 ##--   When released, remove the dnl on the below line
9 m4_undefine([v_rev])
10 ##--   When doing snapshots - change soname. remove dnl on below line
11 dnl m4_define([relname], [ver-pre-svn-07])
12 dnl m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15 m4_define([lt_rev], m4_eval(v_maj + v_min))
16 m4_define([lt_cur], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21 AC_INIT([eina], [v_ver.beta3], [enlightenment-devel@lists.sourceforge.net])
22 AC_PREREQ([2.59])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_MACRO_DIR([m4])
25
26 AC_CONFIG_HEADERS([config.h])
27 AH_TOP([
28 #ifndef EFL_CONFIG_H__
29 #define EFL_CONFIG_H__
30 ])
31 AH_BOTTOM([
32 #endif /* EFL_CONFIG_H__ */
33 ])
34
35 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
37
38 AC_GNU_SOURCE
39
40 AC_LIBTOOL_WIN32_DLL
41 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
42 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
43 AC_PROG_LIBTOOL
44
45 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
46 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
47 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
48 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
49 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
50 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
51 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
52 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
53 version_info="lt_rev:lt_cur:lt_age"
54 release_info="v_rel"
55 AC_SUBST(version_info)
56 AC_SUBST(release_info)
57 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59 VMAJ=v_maj
60 AC_SUBST(VMAJ)
61
62
63 ### Needed information
64
65 AC_CANONICAL_BUILD
66 AC_CANONICAL_HOST
67
68 requirement_eina=""
69
70 case "$host_os" in
71    mingw32ce*)
72       MODULE_ARCH="$host_os-$host_cpu"
73       ;;
74    *)
75       MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
76       ;;
77 esac
78 AC_SUBST(MODULE_ARCH)
79 AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture")
80
81 case "$host_os" in
82    mingw*)
83       MODULE_EXT=".dll"
84       ;;
85    *)
86       MODULE_EXT=".so"
87       ;;
88 esac
89
90 AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "${MODULE_EXT}", [Suffix for shared objects])
91
92 EFL_CHECK_CPU_MMX([have_mmx="yes"], [have_mmx="no"])
93 EFL_CHECK_CPU_SSE([have_sse="yes"], [have_sse="no"])
94 EFL_CHECK_CPU_SSE2([have_sse2="yes"], [have_sse2="no"])
95 EFL_CHECK_CPU_ALTIVEC([have_altivec="yes"], [have_altivec="no"])
96
97 EFL_CHECK_THREADS(
98    [
99     if test "x${_efl_have_posix_threads}" = "xyes" ; then
100        have_threads="POSIX"
101     else
102        if test "x${_efl_have_win32_threads}" = "xyes" ; then
103           have_threads="Win32"
104        else
105           have_threads="no"
106        fi
107     fi
108    ],
109    [have_threads="no"])
110 EFL_CHECK_SPINLOCK([have_posix_threads_spinlock="yes"], [have_posix_threads_spinlock="no"])
111
112 ### Additional options to configure
113
114 # Magic debug
115 AC_ARG_ENABLE([magic-debug],
116    [AC_HELP_STRING([--disable-magic-debug], [disable magic debug of eina structure @<:@default=enabled@:>@])],
117    [
118     if test "x${enableval}" = "xyes" ; then
119        have_magic_debug="yes"
120     else
121        have_magic_debug="no"
122     fi
123    ],
124    [have_magic_debug="yes"])
125
126 AC_MSG_CHECKING([whether magic debug is enable])
127 AC_MSG_RESULT([${have_magic_debug}])
128
129 if test "x${have_magic_debug}" = "xyes" ; then
130    EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG"
131 fi
132 AC_SUBST(EINA_CONFIGURE_MAGIC_DEBUG)
133
134 # Valgrind
135 want_valgrind="auto"
136 have_valgrind="no"
137
138 AC_MSG_CHECKING(whether to enable build with valgrind)
139 AC_ARG_ENABLE(valgrind,
140   AC_HELP_STRING([--enable-valgrind], [improve valgrind support by hinting it of our memory usages, having it to report proper mempool leaks.]),
141   [want_valgrind=$enableval]
142 )
143 AC_MSG_RESULT($want_valgrind)
144
145 if test "x${want_valgrind}" = "xyes" -o "x${want_valgrind}" = "xauto"; then
146     PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
147         [
148          requirement_eina="valgrind ${requirement_eina}"
149          have_valgrind="yes"
150         ],
151         [
152          AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
153          if test "x$want_valgrind" = "xyes"; then
154             AC_MSG_ERROR([Valgrind >= 2.4.0 is required)])
155          fi
156         ]
157     )
158 else
159     AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
160 fi
161
162 # Safety checks (avoid crashes on wrong api usage)
163 AC_ARG_ENABLE(safety-checks,
164    [AC_HELP_STRING([--disable-safety-checks], [disable safety checks for NULL pointers and like. @<:@default=enabled@:>@])],
165    [
166     if test "x${enableval}" = "xyes" ; then
167        have_safety_checks="yes"
168     else
169        have_safety_checks="no"
170     fi
171    ],
172    [have_safety_checks="yes"])
173
174 AC_MSG_CHECKING(whether to do safety checking on api parameters)
175 AC_MSG_RESULT($have_safety_checks)
176
177 AM_CONDITIONAL(SAFETY_CHECKS, test "x$have_safety_checks" = "xyes")
178 if test "x$have_safety_checks" = "xyes"; then
179   AC_DEFINE(EINA_SAFETY_CHECKS, 1, [disable safety checks for NULL pointers and like.])
180   EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS"
181 fi
182 AC_SUBST(EINA_CONFIGURE_SAFETY_CHECKS)
183
184 with_max_log_level="<unset>"
185 AC_ARG_WITH(internal-maximum-log-level,
186    [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER],
187                    [limit eina internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
188    [
189     if test "x${withval}" != "xno"; then
190        if echo "${withval}" | grep '^[[0-9]]\+$' >/dev/null 2>/dev/null; then
191           AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
192           AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
193           with_max_log_level="${withval}"
194        else
195           AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.])
196        fi
197     fi
198     ], [:])
199
200 AC_ARG_ENABLE([amalgamation],
201    [AC_HELP_STRING([--enable-amalgamation], [enable generation of one single file with all source code in it, helps compiler optimizations.])],
202    [if test "x${enableval}" = "xyes"; then
203        do_amalgamation="yes"
204     else
205        do_amalgamation="no"
206     fi
207    ],
208    [do_amalgamation="no"]
209 )
210 AM_CONDITIONAL(EINA_AMALGAMATION, test "x${do_amalgamation}" = "xyes")
211
212 # Choose best memory pool
213 AC_ARG_ENABLE([default-mempool],
214    [AC_HELP_STRING([--enable-default-mempool], [Default memory allocator could be faster for some computer. @<:@default=disabled@:>@])],
215    [
216     if test "x${enableval}" = "xyes"; then
217        have_default_mempool="yes"
218     else
219        have_default_mempool="no"
220     fi
221    ],
222    [have_default_mempool="no"]
223 )
224 AC_MSG_CHECKING([whether to use default mempool allocator])
225 AC_MSG_RESULT([${have_default_mempool}])
226
227 if test "x${have_default_mempool}" = "xyes" ; then
228    EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL"
229 fi
230 AC_SUBST(EINA_CONFIGURE_DEFAULT_MEMPOOL)
231
232 # Report stringshare usage
233 AC_ARG_ENABLE([stringshare-usage],
234    [AC_HELP_STRING([--enable-stringshare-usage], [Report stringshare usage on stringshare shutdown. @<:@default=disabled@:>@])],
235    [
236     if test "x${enableval}" = "xyes"; then
237        have_stringshare_usage="yes"
238     else
239        have_stringshare_usage="no"
240     fi
241    ],
242    [have_stringshare_usage="no"]
243 )
244 AC_MSG_CHECKING([whether to report stringshare usage])
245 AC_MSG_RESULT([${have_stringshare_usage}])
246
247 if test "x${have_stringshare_usage}" = "xyes"; then
248    AC_DEFINE(EINA_STRINGSHARE_USAGE, 1, [Report Eina stringshare usage pattern])
249 fi
250
251 # Check if we want to benchmark on real data
252 enable_benchmark_e17="no"
253 AC_ARG_ENABLE([e17],
254    [AC_HELP_STRING([--enable-e17], [enable heavy benchmark @<:@default=no@:>@])],
255    [
256     if test "x${enableval}" = "xyes" ; then
257        enable_benchmark_e17="yes"
258     else
259        enable_benchmark_e17="no"
260     fi
261    ],
262    [enable_benchmark_e17="no"])
263
264 AC_MSG_CHECKING([whether e17 real data benchmark are built])
265 AC_MSG_RESULT([${enable_benchmark_e17}])
266
267 AM_CONDITIONAL(EINA_ENABLE_BENCHMARK_E17, test "x${enable_benchmark_e17}" = "xyes")
268
269
270 ### Checks for programs
271 AC_PROG_CC
272
273 # pkg-config
274 PKG_PROG_PKG_CONFIG
275
276 # Check whether pkg-config supports Requires.private
277 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
278    pkgconfig_requires_private="Requires.private"
279 else
280    pkgconfig_requires_private="Requires"
281 fi
282 AC_SUBST(pkgconfig_requires_private)
283
284 # doxygen program for documentation building
285
286 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
287
288
289 ### Checks for libraries
290
291 # Evil library for compilation on Windows CE
292
293 EFL_EINA_BUILD=""
294 case "$host_os" in
295    mingw*)
296       PKG_CHECK_MODULES([EVIL], [evil])
297       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
298       requirement_eina="evil"
299       EFL_EINA_BUILD="-DEFL_EINA_BUILD"
300    ;;
301 esac
302 AC_SUBST(EFL_EINA_BUILD)
303
304 # Check ememoa memory pool library
305
306 AC_ARG_ENABLE([ememoa],
307    [AC_HELP_STRING([--enable-ememoa], [build ememoa memory pool module @<:@default=yes@:>@])],
308    [
309     if test "x${enableval}" = "xyes" ; then
310        enable_ememoa="yes"
311     else
312        enable_ememoa="no"
313     fi
314    ],
315    [enable_ememoa="yes"]
316 )
317 AC_MSG_CHECKING([whether to use ememoa for memory pool])
318 AC_MSG_RESULT([$enable_ememoa])
319
320 if test "x${enable_ememoa}" = "xyes" ; then
321    PKG_CHECK_MODULES([EMEMOA],
322       [ememoa >= 0.0.26 ],
323       [enable_ememoa="yes"],
324       [enable_ememoa="no"]
325    )
326 fi
327
328
329 ### Checks for header files
330 AC_HEADER_ASSERT
331 AC_HEADER_DIRENT
332 AC_HEADER_TIME
333 EFL_CHECK_PATH_MAX
334
335 ### Checks for types
336 AC_CHECK_HEADER([inttypes.h],
337                 [EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"])
338 AC_SUBST(EINA_CONFIGURE_HAVE_INTTYPES_H)
339
340 AC_CHECK_HEADER([stdint.h],
341                 [EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H"])
342 AC_SUBST(EINA_CONFIGURE_HAVE_STDINT_H)
343
344 AC_CHECK_SIZEOF(wchar_t)
345 EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
346 AC_SUBST(EINA_SIZEOF_WCHAR_T)
347
348 ### Checks for structures
349
350
351 ### Checks for compiler characteristics
352 AC_C_CONST
353 AC_C_BIGENDIAN
354 AC_C_INLINE
355 AC_C___ATTRIBUTE__
356 AC_PROG_CC_STDC
357
358 have_win32="no"
359 EINA_CPPFLAGS=""
360 EINA_CFLAGS=""
361 case "$host_os" in
362    mingw32ce*)
363       EINA_CPPFLAGS="-D_WIN32_WCE=0x0420"
364       EINA_CFLAGS="${EVIL_CFLAGS}"
365       have_win32="yes"
366       ;;
367    mingw*)
368       EINA_CPPFLAGS="-D_WIN32_WINNT=0x0501"
369       EINA_CFLAGS="${EVIL_CFLAGS}"
370       have_win32="yes"
371       ;;
372 esac
373 AM_CONDITIONAL([EINA_HAVE_WIN32], [test "x$have_win32" = "xyes"])
374
375 m4_ifdef([v_mic],
376    [
377     EFL_COMPILER_FLAG([-Wall])
378     EFL_COMPILER_FLAG([-W])
379    ])
380
381 EFL_COMPILER_FLAG([-Wshadow])
382
383 AC_SUBST(EINA_CPPFLAGS)
384 AC_SUBST(EINA_CFLAGS)
385
386
387 ### Checks for linker characteristics
388 EINA_LIBS=
389 lt_enable_auto_import=""
390 case "${host_os}" in
391    mingw*)
392       EINA_LIBS="-ldl ${EVIL_LIBS} -lm"
393       lt_enable_auto_import="-Wl,--enable-auto-import"
394    ;;
395    dragonfly*|openbsd*)
396       EINA_LIBS="-lm"
397    ;;
398    freebsd*|netbsd*)
399       EINA_LIBS="-lrt -lm"
400    ;;
401    darwin*)
402       EINA_LIBS="-lm"
403    ;;
404    cygwin*)
405       EINA_LIBS="-ldl -lm"
406    ;;
407    *)
408       EINA_LIBS="-ldl -lrt -lm"
409    ;;
410 esac
411 AC_SUBST(EINA_LIBS)
412 AC_SUBST(lt_enable_auto_import)
413
414 EFL_LINKER_FLAG([-fno-strict-aliasing])
415
416
417 ### Checks for library functions
418 AC_ISC_POSIX
419 AC_FUNC_ALLOCA
420 AC_CHECK_FUNCS(strlcpy)
421
422 #dlopen and dladdr
423 dlopen_libs=""
424 case "$host_os" in
425    mingw*)
426 # managed by evil
427       AC_DEFINE(HAVE_DLADDR)
428       ;;
429    *)
430       AC_CHECK_FUNCS([dlopen], [res="yes"], [res="no"])
431       if test "x${res}" = "xyes" ; then
432          AC_CHECK_FUNCS([dladdr], [AC_DEFINE(HAVE_DLADDR)])
433       else
434          AC_CHECK_LIB([dl], [dlopen], [res="yes"], [res="no"])
435          if test "x${res}" = "xyes" ; then
436             AC_CHECK_LIB([dl], [dladdr], [AC_DEFINE(HAVE_DLADDR)])
437             dlopen_libs="-ldl"
438          else
439             AC_MSG_ERROR([Cannot find dlopen])
440          fi
441       fi
442       ;;
443 esac
444 AC_SUBST(dlopen_libs)
445
446 EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])])
447
448 # iconv library
449 have_iconv="no"
450 AC_ARG_WITH([iconv-link],
451    AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
452    [
453     LIBS="$withval $LIBS"
454     have_iconv="yes"
455    ])
456
457 AC_MSG_CHECKING(for explicit iconv link options)
458 if test "x${iconv_libs}" = "x" ; then
459    AC_MSG_RESULT([no explicit iconv link option])
460 else
461    AC_MSG_RESULT([$iconv_libs])
462 fi
463
464 if test "x${have_iconv}" = "xno" ; then
465    AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"])
466
467    if test "x${have_iconv}" = "xyes" ; then
468       AC_MSG_CHECKING([whether iconv() is in libc])
469
470       AC_LINK_IFELSE(
471          [AC_LANG_PROGRAM(
472              [[
473 #include <stdlib.h>
474 #include <iconv.h>
475              ]],
476              [[
477 iconv_t ic;
478 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
479              ]])],
480          [have_iconv="yes"],
481          [have_iconv="no"])
482
483       AC_MSG_RESULT([${have_iconv}])
484    fi
485
486    if test "x${have_iconv}" = "xno" ; then
487       AC_MSG_CHECKING([whether iconv() is in libiconv.a])
488
489       LIBS_save="${LIBS}"
490       LIBS="-liconv $LIBS"
491       AC_LINK_IFELSE(
492          [AC_LANG_PROGRAM(
493              [[
494 #include <stdlib.h>
495 #include <iconv.h>
496              ]],
497              [[
498 iconv_t ic;
499 size_t count;
500 count = iconv(ic, NULL, NULL, NULL, NULL);
501              ]])],
502          [have_iconv="yes"],
503          [
504           have_iconv="no"
505           LIBS=${LIBS_save}
506          ])
507
508       AC_MSG_RESULT([${have_iconv}])
509    fi
510
511    if test "x${have_iconv}" = "xno" ; then
512       AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a])
513
514       LIBS_save="${LIBS}"
515       LIBS="-liconv_plug $LIBS"
516       AC_LINK_IFELSE(
517          [AC_LANG_PROGRAM(
518              [[
519 #include <stdlib.h>
520 #include <iconv.h>
521              ]],
522              [[
523 iconv_t ic;
524 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
525              ]])],
526          [have_iconv="yes"],
527          [
528           have_iconv="no"
529           LIBS=${LIBS_save}
530          ])
531
532       AC_MSG_RESULT([${have_iconv}])
533    fi
534 fi
535
536 if test "x${have_iconv}" = "xyes" ; then
537    AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed])
538 fi
539
540 #check for dirfd API presence
541 have_dirfd="no"
542 AC_CHECK_FUNCS([dirfd], [have_dirfd="yes"], [])
543 if test "x${dirfd}" = "xyes"; then
544    AC_DEFINE(HAVE_DIRFD)
545 fi
546 AC_CHECK_FUNCS([openat], [AC_DEFINE(HAVE_OPENAT)], [])
547 AC_CHECK_FUNCS([statat], [AC_DEFINE(HAVE_STATAT)], [])
548 AC_CHECK_FUNCS([fpathconf], [AC_DEFINE(HAVE_FPATHCONF)], [])
549
550 ### Modules
551
552 if test "x${have_default_mempool}" = "xyes" ; then
553    enable_chained_pool="no"
554    enable_pass_through="static"
555 else
556    enable_chained_pool="static"
557    enable_pass_through="no"
558 fi
559
560 enable_one_big="static"
561
562 EINA_CHECK_MODULE([chained-pool],   [${enable_chained_pool}], [chained pool])
563 EINA_CHECK_MODULE([ememoa-fixed],   [${enable_ememoa}],       [ememoa fixed])
564 EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}],       [ememoa unknown])
565 EINA_CHECK_MODULE([fixed-bitmap],   [no],                     [fixed bitmap])
566 EINA_CHECK_MODULE([pass-through],   [${enable_pass_through}], [pass through])
567 EINA_CHECK_MODULE([buddy],          [no],                     [buddy])
568 EINA_CHECK_MODULE([one-big],        [${enable_one_big}],      [one big])
569
570 ### Make the debug preprocessor configurable
571
572 ### Unit tests, coverage and benchmarking
573
574 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
575
576 EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
577 EINA_CFLAGS="${EINA_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
578 EINA_LIBS="${EINA_LIBS} ${EFL_COVERAGE_LIBS}"
579 if test "x$enable_coverage" = "xyes" ; then
580    EINA_CFLAGS="${EINA_CFLAGS} ${EFL_DEBUG_CFLAGS}"
581 fi
582
583 EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"])
584 EINA_BENCH_MODULE([glib], [${enable_benchmark}], [glib-2.0], [enable_benchmark_glib="yes"], [enable_benchmark_glib="no"])
585
586 AC_SUBST(requirement_eina)
587
588 ### Create the .pc.in file according to the major version
589 #cat > ${srcdir}/eina-${VMAJ}.pc.in << EOF
590 #prefix=@prefix@
591 #exec_prefix=@exec_prefix@
592 #libdir=@libdir@
593 #includedir=@includedir@
594 #
595 #Name: Eina
596 #Description: A Library that implements fast data types and miscellaneous tools
597 #Requires:
598 #Version: @VERSION@
599 #Libs: -L${libdir} -leina
600 #Libs.private: -ldl
601 #Cflags: -I${includedir}/eina-@VMAJ@ -I${includedir}/eina-@VMAJ@/eina
602 #EOF
603
604 AC_CONFIG_FILES([
605 Makefile
606 eina.pc
607 eina.spec
608 doc/Makefile
609 src/Makefile
610 src/include/Makefile
611 src/include/eina_config.h
612 src/lib/Makefile
613 src/modules/Makefile
614 src/modules/mp/Makefile
615 src/modules/mp/chained_pool/Makefile
616 src/modules/mp/ememoa_fixed/Makefile
617 src/modules/mp/ememoa_unknown/Makefile
618 src/modules/mp/pass_through/Makefile
619 src/modules/mp/fixed_bitmap/Makefile
620 src/modules/mp/buddy/Makefile
621 src/modules/mp/one_big/Makefile
622 src/tests/Makefile
623 ])
624
625 AC_OUTPUT
626
627 #####################################################################
628 ## Info
629
630 echo
631 echo
632 echo
633 echo "------------------------------------------------------------------------"
634 echo "$PACKAGE $VERSION"
635 echo "------------------------------------------------------------------------"
636 echo
637 echo
638 echo "Configuration Options Summary:"
639 echo
640 echo "  Magic debug..........: ${have_magic_debug}"
641 echo "  Safety checks........: ${have_safety_checks}"
642 echo "  Maximum log level....: ${with_max_log_level}"
643 echo "  Report string usage..: ${have_stringshare_usage}"
644 echo "  Valgrind support.....: ${have_valgrind}"
645 echo "  Default mempool......: ${have_default_mempool}"
646 echo "  Thread Support.......: ${have_threads}"
647 if test "${have_threads}" = "POSIX" ; then
648 echo "    spinlock...........: ${have_posix_threads_spinlock}"
649 echo "    debug usage........: ${have_debug_threads}"
650 fi
651 echo "  Amalgamation.........: ${do_amalgamation}"
652 echo "  Iconv support........: ${have_iconv}"
653 echo "  File dirfd...........: ${have_dirfd}"
654 echo
655 echo "  Documentation........: ${build_doc}"
656 echo "  Tests................: ${enable_tests}"
657 echo "  Coverage.............: ${enable_coverage}"
658 echo "  Benchmark............: ${enable_benchmark}"
659 if test "x${enable_benchmark}" = "xyes" ; then
660 echo "    Glib...............: ${enable_benchmark_glib}"
661 echo "    E17 real data......: ${enable_benchmark_e17}"
662 fi
663 echo
664 echo "  CPU Specific Extensions:"
665 echo "    MMX................: ${have_mmx}"
666 echo "    SSE................: ${have_sse}"
667 echo "    SSE2...............: ${have_sse2}"
668 echo "    ALTIVEC............: ${have_altivec}"
669 echo
670 echo "  Memory pools:"
671 echo "    Chained pool.......: ${enable_chained_pool}"
672 echo "    Ememoa fixed.......: ${enable_ememoa_fixed}"
673 echo "    Ememoa unknown.....: ${enable_ememoa_unknown}"
674 echo "    Fixed bitmap.......: ${enable_fixed_bitmap}"
675 echo "    Pass through.......: ${enable_pass_through}"
676 echo "    Buddy..............: ${enable_buddy}"
677 echo "    One big............: ${enable_one_big}"
678 echo
679 echo "Compilation............: make (or gmake)"
680 echo "  CPPFLAGS.............: $CPPFLAGS"
681 echo "  CFLAGS...............: $CFLAGS"
682 echo "  LDFLAGS..............: $LDFLAGS"
683 echo
684 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
685 echo "  prefix...............: $prefix"
686 echo
687 EFL_FORM_VOLTRON