summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac276
-rw-r--r--m4/efl.m468
2 files changed, 124 insertions, 220 deletions
diff --git a/configure.ac b/configure.ac
index 4ed7e76..36ee52b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -140,148 +140,6 @@ requirements_pc_crypto=""
140requirements_pc_deps_crypto="" 140requirements_pc_deps_crypto=""
141requirements_libs_crypto="" 141requirements_libs_crypto=""
142 142
143requirements_libs_evil=""
144requirements_libs_eina=""
145requirements_libs_eo=""
146requirements_libs_eet=""
147requirements_libs_evas=""
148requirements_libs_ecore=""
149requirements_libs_ecore_con=""
150requirements_libs_ecore_ipc=""
151requirements_libs_ecore_file=""
152requirements_libs_ecore_input=""
153requirements_libs_ecore_cocoa=""
154requirements_libs_ecore_fb=""
155requirements_libs_ecore_psl1ght=""
156requirements_libs_ecore_sdl=""
157requirements_libs_ecore_wayland=""
158requirements_libs_ecore_audio=""
159requirements_libs_ecore_win32=""
160requirements_libs_ecore_wince=""
161requirements_libs_ecore_x=""
162requirements_libs_ecore_evas=""
163requirements_libs_embryo=""
164requirements_libs_eio=""
165requirements_libs_edbus=""
166requirements_libs_efreet=""
167#requirements_libs_edje=""
168#requirements_libs_eeze=""
169#requirements_libs_emotion=""
170#requirements_libs_ethumb=""
171#requirements_libs_elementary=""
172
173requirements_pc_eina=""
174requirements_pc_eo=""
175requirements_pc_eet=""
176requirements_pc_evas=""
177requirements_pc_ecore=""
178requirements_pc_ecore_con=""
179requirements_pc_ecore_ipc=""
180requirements_pc_ecore_file=""
181requirements_pc_ecore_input=""
182requirements_pc_ecore_input_evas=""
183requirements_pc_ecore_cocoa=""
184requirements_pc_ecore_fb=""
185requirements_pc_ecore_psl1ght=""
186requirements_pc_ecore_sdl=""
187requirements_pc_ecore_wayland=""
188requirements_pc_ecore_audio=""
189requirements_pc_ecore_win32=""
190requirements_pc_ecore_wince=""
191requirements_pc_ecore_x=""
192requirements_pc_ecore_evas=""
193requirements_pc_embryo=""
194requirements_pc_eio=""
195requirements_pc_edbus=""
196requirements_pc_efreet=""
197#requirements_pc_edje=""
198#requirements_pc_eeze=""
199#requirements_pc_emotion=""
200#requirements_pc_ethumb=""
201#requirements_pc_elementary=""
202
203requirements_pc_deps_eina=""
204requirements_pc_deps_eo=""
205requirements_pc_deps_eet=""
206requirements_pc_deps_evas=""
207requirements_pc_deps_ecore=""
208requirements_pc_deps_ecore_con=""
209requirements_pc_deps_ecore_fb=""
210requirements_pc_deps_ecore_sdl=""
211requirements_pc_deps_ecore_wayland=""
212requirements_pc_deps_ecore_evas=""
213requirements_pc_deps_embryo=""
214requirements_pc_deps_edbus=""
215requirements_pc_deps_efreet=""
216#requirements_pc_deps_edje=""
217#requirements_pc_deps_eeze=""
218#requirements_pc_deps_emotion=""
219#requirements_pc_deps_ethumb=""
220#requirements_pc_deps_elementary=""
221
222AC_SUBST([requirements_libs_evil])
223AC_SUBST([requirements_libs_eina])
224AC_SUBST([requirements_libs_eo])
225AC_SUBST([requirements_libs_eet])
226AC_SUBST([requirements_libs_evas])
227AC_SUBST([requirements_libs_ecore])
228AC_SUBST([requirements_libs_ecore_con])
229AC_SUBST([requirements_libs_ecore_ipc])
230AC_SUBST([requirements_libs_ecore_file])
231AC_SUBST([requirements_libs_ecore_input])
232AC_SUBST([requirements_libs_ecore_cocoa])
233AC_SUBST([requirements_libs_ecore_fb])
234AC_SUBST([requirements_libs_ecore_psl1ght])
235AC_SUBST([requirements_libs_ecore_sdl])
236AC_SUBST([requirements_libs_ecore_wayland])
237AC_SUBST([requirements_libs_ecore_audio])
238AC_SUBST([requirements_libs_ecore_win32])
239AC_SUBST([requirements_libs_ecore_wince])
240AC_SUBST([requirements_libs_ecore_x])
241AC_SUBST([requirements_libs_ecore_evas])
242AC_SUBST([requirements_libs_embryo])
243AC_SUBST([requirements_libs_eio])
244AC_SUBST([requirements_libs_edbus])
245AC_SUBST([requirements_libs_efreet])
246#AC_SUBST([requirements_libs_edje])
247#AC_SUBST([requirements_libs_eeze])
248#AC_SUBST([requirements_libs_emotion])
249#AC_SUBST([requirements_libs_ethumb])
250#AC_SUBST([requirements_libs_elementary])
251
252AC_SUBST([requirements_pc_eina])
253AC_SUBST([requirements_pc_eo])
254AC_SUBST([requirements_pc_eet])
255AC_SUBST([requirements_pc_evas])
256AC_SUBST([requirements_pc_ecore])
257AC_SUBST([requirements_pc_ecore_con])
258AC_SUBST([requirements_pc_ecore_ipc])
259AC_SUBST([requirements_pc_ecore_file])
260AC_SUBST([requirements_pc_ecore_input])
261AC_SUBST([requirements_pc_ecore_input_evas])
262AC_SUBST([requirements_pc_ecore_imf])
263AC_SUBST([requirements_pc_ecore_imf_evas])
264AC_SUBST([requirements_pc_ecore_cocoa])
265AC_SUBST([requirements_pc_ecore_fb])
266AC_SUBST([requirements_pc_ecore_psl1ght])
267AC_SUBST([requirements_pc_ecore_sdl])
268AC_SUBST([requirements_pc_ecore_wayland])
269AC_SUBST([requirements_pc_ecore_audio])
270AC_SUBST([requirements_pc_ecore_win32])
271AC_SUBST([requirements_pc_ecore_wince])
272AC_SUBST([requirements_pc_ecore_x])
273AC_SUBST([requirements_pc_ecore_evas])
274AC_SUBST([requirements_pc_embryo])
275AC_SUBST([requirements_pc_eio])
276AC_SUBST([requirements_pc_edbus])
277AC_SUBST([requirements_pc_efreet])
278#AC_SUBST([requirements_pc_edje])
279#AC_SUBST([requirements_pc_eeze])
280#AC_SUBST([requirements_pc_emotion])
281#AC_SUBST([requirements_pc_ethumb])
282#AC_SUBST([requirements_pc_elementary])
283
284
285AC_CANONICAL_HOST 143AC_CANONICAL_HOST
286 144
287# TODO: move me to m4 file that setups module/so related variables 145# TODO: move me to m4 file that setups module/so related variables
@@ -708,9 +566,7 @@ DL_LIBS=""
708USE_EVIL_CFLAGS="" 566USE_EVIL_CFLAGS=""
709USE_EVIL_LIBS="" 567USE_EVIL_LIBS=""
710 568
711if test "x${have_windows}" = "xyes" ; then 569EFL_LIB_START_OPTIONAL([Evil], [test "${have_windows}" = "yes"])
712
713AC_MSG_NOTICE([Evil checks])
714 570
715### Default values 571### Default values
716 572
@@ -736,8 +592,6 @@ requirements_libs_evil="${EVIL_LIBS}"
736AC_SUBST([EVIL_LIBS]) 592AC_SUBST([EVIL_LIBS])
737AC_SUBST([EVIL_DLFCN_LIBS]) 593AC_SUBST([EVIL_DLFCN_LIBS])
738 594
739AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if Evil package is installed])
740
741### Checks for header files 595### Checks for header files
742 596
743### Checks for types 597### Checks for types
@@ -778,7 +632,8 @@ platform_libs="${platform_libs} ${platform_libs_evil}"
778USE_EVIL_CFLAGS="-I\$(top_srcdir)/src/lib/evil" 632USE_EVIL_CFLAGS="-I\$(top_srcdir)/src/lib/evil"
779USE_EVIL_LIBS="lib/evil/libevil.la" 633USE_EVIL_LIBS="lib/evil/libevil.la"
780DL_LIBS="lib/evil/libdl.la" 634DL_LIBS="lib/evil/libdl.la"
781fi 635
636EFL_LIB_END_OPTIONAL([Evil])
782 637
783AC_SUBST([USE_EVIL_CFLAGS]) 638AC_SUBST([USE_EVIL_CFLAGS])
784AC_SUBST([USE_EVIL_LIBS]) 639AC_SUBST([USE_EVIL_LIBS])
@@ -791,9 +646,7 @@ AC_SUBST([USE_EVIL_LIBS])
791USE_ESCAPE_CFLAGS="" 646USE_ESCAPE_CFLAGS=""
792USE_ESCAPE_LIBS="" 647USE_ESCAPE_LIBS=""
793 648
794if test "x${have_ps3}" = "xyes" ; then 649EFL_LIB_START_OPTIONAL([Escape], [test "${have_ps3}" = "yes"])
795
796AC_MSG_NOTICE([Escape checks])
797 650
798### Additional options to configure 651### Additional options to configure
799 652
@@ -825,11 +678,11 @@ platform_pc="${platform_pc} ${platform_pc_escape}"
825 678
826USE_ESCAPE_CFLAGS="-I\$(top_srcdir)/src/lib/escape" 679USE_ESCAPE_CFLAGS="-I\$(top_srcdir)/src/lib/escape"
827USE_ESCAPE_LIBS="lib/escape/libescape.la" 680USE_ESCAPE_LIBS="lib/escape/libescape.la"
828fi 681
682EFL_LIB_END_OPTIONAL([Escape])
829 683
830AC_SUBST([USE_ESCAPE_CFLAGS]) 684AC_SUBST([USE_ESCAPE_CFLAGS])
831AC_SUBST([USE_ESCAPE_LIBS]) 685AC_SUBST([USE_ESCAPE_LIBS])
832
833#### End of Escape 686#### End of Escape
834 687
835AC_SUBST([DL_LIBS]) 688AC_SUBST([DL_LIBS])
@@ -838,7 +691,7 @@ AC_SUBST([DL_LIBS])
838 691
839#### Eina 692#### Eina
840 693
841AC_MSG_NOTICE([Eina checks]) 694EFL_LIB_START([Eina])
842 695
843### Default values 696### Default values
844 697
@@ -993,13 +846,13 @@ EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
993EINA_CHECK_MODULE([pass-through], [static], [pass through]) 846EINA_CHECK_MODULE([pass-through], [static], [pass through])
994EINA_CHECK_MODULE([one-big], [static], [one big]) 847EINA_CHECK_MODULE([one-big], [static], [one big])
995 848
996 849EFL_LIB_END([Eina])
997#### End of Eina 850#### End of Eina
998 851
999 852
1000#### Eet 853#### Eet
1001 854
1002AC_MSG_NOTICE([Eet checks]) 855EFL_LIB_START([Eet])
1003 856
1004### Default values 857### Default values
1005 858
@@ -1067,12 +920,13 @@ esac
1067 920
1068### Check availability 921### Check availability
1069 922
923EFL_LIB_END([Eet])
1070#### End of Eet 924#### End of Eet
1071 925
1072 926
1073#### Eo 927#### Eo
1074 928
1075AC_MSG_NOTICE([Eo checks]) 929EFL_LIB_START([Eo])
1076 930
1077### Default values 931### Default values
1078 932
@@ -1111,12 +965,13 @@ AM_CONDITIONAL([EO_BUILD_EXAMPLE_EVAS], [test "x${have_elm}" = "xyes"])
1111 965
1112### Check availability 966### Check availability
1113 967
968EFL_LIB_END([Eo])
1114#### End of Eo 969#### End of Eo
1115 970
1116 971
1117#### Evas 972#### Evas
1118 973
1119AC_MSG_NOTICE([Evas checks]) 974EFL_LIB_START([Evas])
1120 975
1121### Additional options to configure 976### Additional options to configure
1122 977
@@ -1857,12 +1712,13 @@ case "${build_evas_dither_mask}" in
1857 ;; 1712 ;;
1858esac 1713esac
1859 1714
1715EFL_LIB_END([Evas])
1860#### End of Evas 1716#### End of Evas
1861 1717
1862 1718
1863#### Embryo 1719#### Embryo
1864 1720
1865AC_MSG_NOTICE([Embryo checks]) 1721EFL_LIB_START([Embryo])
1866 1722
1867### Default values 1723### Default values
1868 1724
@@ -1906,12 +1762,13 @@ fi
1906 1762
1907### Check availability 1763### Check availability
1908 1764
1765EFL_LIB_END([Embryo])
1909#### End of Embryo 1766#### End of Embryo
1910 1767
1911 1768
1912#### Ecore 1769#### Ecore
1913 1770
1914AC_MSG_NOTICE([Ecore checks]) 1771EFL_LIB_START([Ecore])
1915 1772
1916### Additional options to configure 1773### Additional options to configure
1917 1774
@@ -2059,12 +1916,13 @@ ECORE_LIBS="${ECORE_LIBS} ${LTLIBINTL} ${requirements_libs_ecore}"
2059 1916
2060### Check availability 1917### Check availability
2061 1918
1919EFL_LIB_END([Ecore])
2062#### End of Ecore 1920#### End of Ecore
2063 1921
2064 1922
2065#### Ecore_Con 1923#### Ecore_Con
2066 1924
2067AC_MSG_NOTICE([Ecore_Con checks]) 1925EFL_LIB_START([Ecore_Con])
2068 1926
2069### Additional options to configure 1927### Additional options to configure
2070 1928
@@ -2211,12 +2069,13 @@ EFL_CHECK_COMPILER_FLAGS([ECORE_CON], [-Wno-override-init -Wno-initializer-overr
2211 2069
2212### Checks for library functions 2070### Checks for library functions
2213 2071
2072EFL_LIB_END([Ecore_Con])
2214#### End of Ecore_Con 2073#### End of Ecore_Con
2215 2074
2216 2075
2217#### Ecore_Ipc 2076#### Ecore_Ipc
2218 2077
2219AC_MSG_NOTICE([Ecore_Ipc checks]) 2078EFL_LIB_START([Ecore_Ipc])
2220 2079
2221### Default values 2080### Default values
2222 2081
@@ -2244,12 +2103,13 @@ AC_CHECK_HEADERS([winsock2.h])
2244 2103
2245### Checks for library functions 2104### Checks for library functions
2246 2105
2106EFL_LIB_END([Ecore_Ipc])
2247#### End of Ecore_Ipc 2107#### End of Ecore_Ipc
2248 2108
2249 2109
2250#### Ecore_File 2110#### Ecore_File
2251 2111
2252AC_MSG_NOTICE([Ecore_File checks]) 2112EFL_LIB_START([Ecore_File])
2253 2113
2254### Additional options to configure 2114### Additional options to configure
2255 2115
@@ -2274,12 +2134,13 @@ requirements_pc_ecore_file="ecore-con >= ${PACKAGE_VERSION} ecore >= ${PACKAGE_V
2274 2134
2275### Checks for library functions 2135### Checks for library functions
2276 2136
2137EFL_LIB_END([Ecore_File])
2277#### End of Ecore_File 2138#### End of Ecore_File
2278 2139
2279 2140
2280#### Ecore_Input 2141#### Ecore_Input
2281 2142
2282AC_MSG_NOTICE([Ecore_Input checks]) 2143EFL_LIB_START([Ecore_Input])
2283 2144
2284### Additional options to configure 2145### Additional options to configure
2285 2146
@@ -2309,12 +2170,13 @@ requirements_pc_ecore_input_evas="ecore-input >= ${PACKAGE_VERSION} ecore >= ${P
2309 2170
2310### Checks for library functions 2171### Checks for library functions
2311 2172
2173EFL_LIB_END([Ecore_Input])
2312#### End of Ecore_Input 2174#### End of Ecore_Input
2313 2175
2314 2176
2315#### Ecore_Cocoa 2177#### Ecore_Cocoa
2316 2178
2317AC_MSG_NOTICE([Ecore_Cocoa checks]) 2179EFL_LIB_START([Ecore_Cocoa])
2318 2180
2319### Additional options to configure 2181### Additional options to configure
2320 2182
@@ -2383,15 +2245,14 @@ AM_CONDITIONAL([HAVE_ECORE_COCOA], [test "x${have_ecore_cocoa}" = "xyes"])
2383 2245
2384### Checks for library functions 2246### Checks for library functions
2385 2247
2248EFL_LIB_END([Ecore_Cocoa])
2386#### End of Ecore_Cocoa 2249#### End of Ecore_Cocoa
2387 2250
2388 2251
2389 2252
2390 2253
2391#### Ecore_FB 2254#### Ecore_FB
2392if test "${want_fb}" = "yes"; then 2255EFL_LIB_START_OPTIONAL([Ecore_FB], [test "${want_fb}" = "yes"])
2393
2394AC_MSG_NOTICE([Ecore_FB checks])
2395 2256
2396### Additional options to configure 2257### Additional options to configure
2397AC_ARG_ENABLE([tslib], 2258AC_ARG_ENABLE([tslib],
@@ -2444,16 +2305,12 @@ fi
2444 2305
2445### Checks for library functions 2306### Checks for library functions
2446 2307
2447fi 2308EFL_LIB_END_OPTIONAL([Ecore_FB])
2448AM_CONDITIONAL([HAVE_ECORE_FB], [test "x${want_fb}" = "xyes"])
2449#### End of Ecore_FB 2309#### End of Ecore_FB
2450 2310
2451 2311
2452#### Ecore_Psl1ght 2312#### Ecore_Psl1ght
2453 2313EFL_LIB_START_OPTIONAL([Ecore_Psl1ght], [test "${have_ps3}" = "yes"])
2454if test "x${have_ps3}" = "xyes" ; then
2455
2456AC_MSG_NOTICE([Ecore_Psl1ght checks])
2457 2314
2458### Additional options to configure 2315### Additional options to configure
2459 2316
@@ -2481,15 +2338,12 @@ requirements_libs_ecore_psl1ght="-lio -lsysutil -lgem -lcamera -lspurs"
2481 2338
2482### Checks for library functions 2339### Checks for library functions
2483 2340
2484fi 2341EFL_LIB_END_OPTIONAL([Ecore_Psl1ght])
2485
2486#### End of Ecore_Psl1ght 2342#### End of Ecore_Psl1ght
2487 2343
2488 2344
2489#### Ecore_SDL 2345#### Ecore_SDL
2490if test "${want_sdl}" = "yes"; then 2346EFL_LIB_START_OPTIONAL([Ecore_SDL], [test "${want_sdl}" = "yes"])
2491
2492AC_MSG_NOTICE([Ecore_SDL checks])
2493 2347
2494### Additional options to configure 2348### Additional options to configure
2495 2349
@@ -2523,15 +2377,12 @@ PKG_CHECK_MODULES([ECORE_SDL], [${requirements_pc_deps_ecore_sdl}])
2523 2377
2524### Checks for library functions 2378### Checks for library functions
2525 2379
2526fi 2380EFL_LIB_END_OPTIONAL([Ecore_SDL])
2527AM_CONDITIONAL([HAVE_ECORE_SDL], [test "x${want_sdl}" = "xyes"])
2528#### End of Ecore_SDL 2381#### End of Ecore_SDL
2529 2382
2530 2383
2531#### Ecore_Wayland 2384#### Ecore_Wayland
2532 2385EFL_LIB_START_OPTIONAL([Ecore_Wayland], [test "${want_wayland}" = "yes"])
2533if test "${want_wayland}" = "yes"; then
2534AC_MSG_NOTICE([Ecore_Wayland checks])
2535 2386
2536### Additional options to configure 2387### Additional options to configure
2537 2388
@@ -2562,9 +2413,7 @@ PKG_CHECK_MODULES([ECORE_WAYLAND], [${requirements_pc_deps_ecore_wayland}])
2562### Checks for linker characteristics 2413### Checks for linker characteristics
2563 2414
2564### Checks for library functions 2415### Checks for library functions
2565 2416EFL_LIB_END_OPTIONAL([Ecore_Wayland])
2566fi
2567AM_CONDITIONAL([HAVE_ECORE_WAYLAND], [test "x${have_wayland}" = "xyes"])
2568#### End of Ecore_Wayland 2417#### End of Ecore_Wayland
2569 2418
2570 2419
@@ -2582,10 +2431,7 @@ AC_ARG_ENABLE([audio],
2582 ], 2431 ],
2583 [want_audio="yes"]) 2432 [want_audio="yes"])
2584 2433
2585if test "${want_audio}" = "yes"; then 2434EFL_LIB_START_OPTIONAL([Ecore_Audio], [test "${want_audio}" = "yes"])
2586AC_MSG_NOTICE([Ecore_Audio checks])
2587
2588AC_DEFINE([HAVE_ECORE_AUDIO], [1], [build ecore_audio])
2589 2435
2590### Additional options to configure 2436### Additional options to configure
2591 2437
@@ -2649,14 +2495,11 @@ requirements_libs_ecore_audio="${requirements_libs_ecore_audio}"
2649 2495
2650### Checks for library functions 2496### Checks for library functions
2651 2497
2652fi 2498EFL_LIB_END_OPTIONAL([Ecore_Audio])
2653AM_CONDITIONAL([HAVE_ECORE_AUDIO], [test "${want_audio}" = "yes"]) 2499#### End of Ecore_Audio
2654 2500
2655#### Ecore_Win32 2501#### Ecore_Win32
2656 2502EFL_LIB_START_OPTIONAL([Ecore_Win32], [test "${have_win32}" = "yes"])
2657if test "x${have_win32}" = "xyes" ; then
2658
2659AC_MSG_NOTICE([Ecore_Win32 checks])
2660 2503
2661### Additional options to configure 2504### Additional options to configure
2662 2505
@@ -2686,16 +2529,12 @@ AC_SUBST([ECORE_WIN32_LIBS])
2686 2529
2687### Checks for library functions 2530### Checks for library functions
2688 2531
2689fi 2532EFL_LIB_END_OPTIONAL([Ecore_Win32])
2690
2691#### End of Ecore_Win32 2533#### End of Ecore_Win32
2692 2534
2693 2535
2694#### Ecore_WinCE 2536#### Ecore_WinCE
2695 2537EFL_LIB_START_OPTIONAL([Ecore_WinCE], [test "${have_wince}" = "yes"])
2696if test "x${have_wince}" = "xyes" ; then
2697
2698AC_MSG_NOTICE([Ecore_WinCE checks])
2699 2538
2700### Additional options to configure 2539### Additional options to configure
2701 2540
@@ -2722,14 +2561,12 @@ requirements_pc_ecore_wince="ecore-input >= ${PACKAGE_VERSION} ecore >= ${PACKAG
2722 2561
2723### Checks for library functions 2562### Checks for library functions
2724 2563
2725fi 2564EFL_LIB_END_OPTIONAL([Ecore_WinCE])
2726
2727#### End of Ecore_WinCE 2565#### End of Ecore_WinCE
2728 2566
2729 2567
2730#### Ecore_X 2568#### Ecore_X
2731if test "${want_x11_any}" = "yes"; then 2569EFL_LIB_START_OPTIONAL([Ecore_X], [test "${want_x11_any}" = "yes"])
2732AC_MSG_NOTICE([Ecore_X checks])
2733 2570
2734### Additional options to configure 2571### Additional options to configure
2735 2572
@@ -2965,17 +2802,15 @@ AC_SUBST([HAVE_ECORE_X_BACKEND])
2965AC_SUBST([ECORE_X_CFLAGS]) 2802AC_SUBST([ECORE_X_CFLAGS])
2966AC_SUBST([ECORE_X_LIBS]) 2803AC_SUBST([ECORE_X_LIBS])
2967 2804
2968fi 2805EFL_LIB_END_OPTIONAL([Ecore_X])
2806
2969AM_CONDITIONAL([HAVE_ECORE_X_XLIB], [test "${want_x11_xlib}" = "yes"]) 2807AM_CONDITIONAL([HAVE_ECORE_X_XLIB], [test "${want_x11_xlib}" = "yes"])
2970AM_CONDITIONAL([HAVE_ECORE_X_XCB], [test "${want_x11_xcb}" = "yes"]) 2808AM_CONDITIONAL([HAVE_ECORE_X_XCB], [test "${want_x11_xcb}" = "yes"])
2971AM_CONDITIONAL([HAVE_ECORE_X], [test "${want_x11_any}" = "yes"])
2972
2973#### End of Ecore_X 2809#### End of Ecore_X
2974 2810
2975 2811
2976#### Ecore_Imf 2812#### Ecore_Imf
2977 2813EFL_LIB_START([Ecore_Imf])
2978AC_MSG_NOTICE([Ecore_Imf checks])
2979 2814
2980### Additional options to configure 2815### Additional options to configure
2981 2816
@@ -3066,12 +2901,12 @@ AM_CONDITIONAL([BUILD_ECORE_IMF_XIM], [test "x${have_ecore_imf_xim}" = "xyes"])
3066 2901
3067### Checks for library functions 2902### Checks for library functions
3068 2903
2904EFL_LIB_END([Ecore_Imf])
3069#### End of Ecore_Imf 2905#### End of Ecore_Imf
3070 2906
3071 2907
3072#### Ecore_Evas 2908#### Ecore_Evas
3073 2909EFL_LIB_START([Ecore_Evas])
3074AC_MSG_NOTICE([Ecore_Evas checks])
3075 2910
3076### Additional options to configure 2911### Additional options to configure
3077 2912
@@ -3248,11 +3083,11 @@ fi
3248 3083
3249### Checks for library functions 3084### Checks for library functions
3250 3085
3086EFL_LIB_END([Ecore_Evas])
3251#### End of Ecore_Evas 3087#### End of Ecore_Evas
3252 3088
3253#### Eio 3089#### Eio
3254 3090EFL_LIB_START([Eio])
3255AC_MSG_NOTICE([Eio checks])
3256 3091
3257### Additional options to configure 3092### Additional options to configure
3258 3093
@@ -3352,12 +3187,12 @@ setxattr("/", "user.ethumb.md5", NULL, 0, 0);
3352 3187
3353AC_MSG_RESULT([${have_xattr}]) 3188AC_MSG_RESULT([${have_xattr}])
3354 3189
3190EFL_LIB_END([Eio])
3355#### End of Eio 3191#### End of Eio
3356 3192
3357 3193
3358#### EDBus 3194#### EDBus
3359 3195EFL_LIB_START([EDBus])
3360AC_MSG_NOTICE([EDBus checks])
3361 3196
3362### Additional options to configure 3197### Additional options to configure
3363 3198
@@ -3387,12 +3222,12 @@ PKG_CHECK_MODULES([EDBUS], [${requirements_pc_deps_edbus}])
3387 3222
3388### Checks for library functions 3223### Checks for library functions
3389 3224
3225EFL_LIB_END([EDBus])
3390#### End of EDBus 3226#### End of EDBus
3391 3227
3392 3228
3393#### Efreet 3229#### Efreet
3394 3230EFL_LIB_START([Efreet])
3395AC_MSG_NOTICE([Efreet checks])
3396 3231
3397### Additional options to configure 3232### Additional options to configure
3398 3233
@@ -3425,6 +3260,7 @@ AC_SUBST([EFREET_LIBS])
3425 3260
3426### Checks for library functions 3261### Checks for library functions
3427 3262
3263EFL_LIB_END([Efreet])
3428#### End of Efreet 3264#### End of Efreet
3429 3265
3430 3266
diff --git a/m4/efl.m4 b/m4/efl.m4
index d4a4d1a..2397e22 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -40,3 +40,71 @@ m4_pushdef([DOWN], m4_translit([$3], [-A-Z], [_a-z]))dnl
40 40
41m4_popdef([DOWN]) 41m4_popdef([DOWN])
42]) 42])
43
44dnl EFL_LIB_START(PKG)
45dnl start the setup of an EFL library, defines variables and prints a notice
46AC_DEFUN([EFL_LIB_START],
47[
48m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
49
50requirements_libs_[]m4_defn([DOWN])=""
51requirements_pc_[]m4_defn([DOWN])=""
52requirements_pc_deps_[]m4_defn([DOWN])=""
53
54AC_SUBST([requirements_libs_]m4_defn([DOWN]))
55AC_SUBST([requirements_pc_]m4_defn([DOWN]))
56
57AC_MSG_NOTICE([Start $1 checks])
58
59m4_popdef([DOWN])
60])
61
62dnl EFL_LIB_END(PKG)
63dnl finishes the setup of an EFL library
64AC_DEFUN([EFL_LIB_END],
65[
66AC_MSG_NOTICE([Finished $1 checks])
67])
68
69dnl EFL_LIB_START_OPTIONAL(PKG, TEST)
70dnl test if library should be build and then EFL_LIB_START()
71dnl must call EFL_LIB_END_OPTIONAL() to close it.
72AC_DEFUN([EFL_LIB_START_OPTIONAL],
73[
74m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
75m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
76
77if $2; then
78 efl_lib_optional_[]m4_defn([DOWN])="yes"
79else
80 efl_lib_optional_[]m4_defn([DOWN])="no"
81 AC_MSG_NOTICE([Skipping $1 checks (disabled)])
82fi
83
84if test "$efl_lib_optional_[]m4_defn([DOWN])" = "yes"; then
85 EFL_LIB_START([$1])
86 AC_DEFINE([HAVE_]m4_defn([UP]), [1], [optional EFL $1 is enabled])
87
88dnl closed at EFL_LIB_END_OPTIONAL()
89
90m4_popdef([UP])
91m4_popdef([DOWN])
92])
93
94dnl EFL_LIB_END_OPTIONAL(PKG)
95dnl closes block started by EFL_LIB_START_OPTIONAL() and then
96dnl defines AM_CONDITIONAL([HAVE_PKG]) and AC_DEFINE([HAVE_PKG])
97AC_DEFUN([EFL_LIB_END_OPTIONAL],
98[
99m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
100m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
101
102dnl close if started at EFL_LIB_START_OPTIONAL()
103 EFL_LIB_END([$1])
104fi
105
106AM_CONDITIONAL([HAVE_]m4_defn([UP]), [test "$efl_lib_optional_[]m4_defn([DOWN])" = "yes"])
107
108m4_popdef([UP])
109m4_popdef([DOWN])
110])