summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2016-06-13 19:41:38 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-13 20:33:29 +0900
commitf70be6eb28a2ed6c6bfc23a14d6ad2cebfe1b95b (patch)
treea4147d38cf9d4a5447a8550edd87ac9136ec484f /configure.ac
parent59f3841803238a21972d17336a68616406bec8b3 (diff)
Ecore_Input: define data type for joysticks
Summary: This adds support for joysticks for ecore_input Reviewers: cedric, devilhorns, Sergeant_Whitespace, raster, thiepha, zmike, jpeg Reviewed By: thiepha, zmike, jpeg Subscribers: thiepha, stefan_schmidt, zmike, singh.amitesh, Sergeant_Whitespace, jgerecke, cedric, seoz Tags: #efl Differential Revision: https://phab.enlightenment.org/D1538
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac259
1 files changed, 131 insertions, 128 deletions
diff --git a/configure.ac b/configure.ac
index 9b220f5..f1cf8df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3135,6 +3135,135 @@ EFL_LIB_END([Ecore_File])
3135#### End of Ecore_File 3135#### End of Ecore_File
3136 3136
3137 3137
3138#### Eeze
3139have_libmount_new="no"
3140have_libmount_old="no"
3141have_eeze_mount="no"
3142
3143EFL_LIB_START_OPTIONAL([Eeze], [test "x${build_libeeze}" = "xyes"])
3144
3145### Additional options to configure
3146AC_ARG_WITH([mount],
3147 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
3148 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
3149AC_ARG_WITH([umount],
3150 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
3151 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
3152AC_ARG_WITH([eject],
3153 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
3154 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
3155
3156### Default values
3157
3158### Checks for programs
3159
3160### Checks for libraries
3161EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
3162EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
3163EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
3164EFL_INTERNAL_DEPEND_PKG([EEZE], [efl])
3165EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
3166EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3167EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3168EFL_INTERNAL_DEPEND_PKG([EEZE], [emile])
3169
3170EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3171
3172AC_ARG_ENABLE([libmount],
3173 [AS_HELP_STRING([--disable-libmount],[disable libmount support. @<:@default=enabled@:>@])],
3174 [
3175 if test "x${enableval}" = "xyes" ; then
3176 want_libmount="yes"
3177 else
3178 want_libmount="no"
3179 CFOPT_WARNING="xyes"
3180 fi
3181 ],
3182 [want_libmount="yes"])
3183
3184EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3185 [EEZE_MOUNT], [mount >= 2.18.0])
3186EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3187
3188PKG_CHECK_EXISTS([libudev < 199],
3189 [have_libudev_old="yes"],
3190 [have_libudev_old="no"])
3191AC_MSG_CHECKING([Use old libudev API (before 199)])
3192AC_MSG_RESULT([${have_libudev_old}])
3193
3194PKG_CHECK_EXISTS([mount < 2.19.0],
3195 [have_libmount_old="yes"],
3196 [have_libmount_old="no"])
3197AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3198AC_MSG_RESULT([${have_libmount_old}])
3199
3200PKG_CHECK_EXISTS([mount == 2.19.0],
3201 [have_libmount_219="yes"],
3202 [have_libmount_219="no"])
3203AC_MSG_CHECKING([Use libmount 2.19.0 API])
3204AC_MSG_RESULT([${have_libmount_219}])
3205
3206PKG_CHECK_EXISTS([mount > 2.19.0],
3207 [have_libmount_new="yes"],
3208 [have_libmount_new="no"])
3209AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
3210AC_MSG_RESULT([${have_libmount_new}])
3211
3212if test "x${have_libudev_old}" = "xyes"; then
3213 AC_DEFINE_UNQUOTED([OLD_LIBUDEV], [1], [using older version of libudev])
3214fi
3215
3216if test "x${have_libmount_old}" = "xyes"; then
3217 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3218fi
3219
3220## modules
3221if test "${want_tizen}" = "yes"; then
3222 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
3223fi
3224EFL_ADD_FEATURE([EEZE], [tizen])
3225
3226EFL_EVAL_PKGS([EEZE])
3227
3228### Checks for header files
3229
3230### Checks for types
3231
3232### Checks for structures
3233
3234### Checks for compiler characteristics
3235
3236### Checks for linker characteristics
3237
3238### Checks for library functions
3239
3240### Checks for binaries
3241if test "x$with_eeze_mount" = "xdetect"; then
3242 AC_PATH_PROG([with_eeze_mount], [mount], [])
3243fi
3244AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
3245
3246if test "x$with_eeze_umount" = "xdetect";then
3247 AC_PATH_PROG([with_eeze_umount], [umount], [])
3248fi
3249AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3250
3251if test "x$with_eeze_eject" = "xdetect";then
3252 AC_PATH_PROG([with_eeze_eject], [eject], [])
3253fi
3254AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3255
3256EFL_LIB_END_OPTIONAL([Eeze])
3257
3258AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3259 [test "x${have_libmount_new}" = "xyes"])
3260AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3261 [test "x${have_libmount_old}" = "xyes"])
3262AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3263AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3264#### End of Eeze
3265
3266
3138#### Ecore_Input 3267#### Ecore_Input
3139EFL_LIB_START([Ecore_Input]) 3268EFL_LIB_START([Ecore_Input])
3140 3269
@@ -3153,6 +3282,8 @@ EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eo])
3153EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [efl]) 3282EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [efl])
3154EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eina]) 3283EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eina])
3155 3284
3285EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [${efl_lib_optional_eeze}], [eeze])
3286
3156### Checks for header files 3287### Checks for header files
3157 3288
3158### Checks for types 3289### Checks for types
@@ -3486,134 +3617,6 @@ EFL_LIB_END([Eldbus])
3486#### End of Eldbus 3617#### End of Eldbus
3487 3618
3488 3619
3489#### Eeze
3490have_libmount_new="no"
3491have_libmount_old="no"
3492have_eeze_mount="no"
3493
3494EFL_LIB_START_OPTIONAL([Eeze], [test "x${build_libeeze}" = "xyes"])
3495
3496### Additional options to configure
3497AC_ARG_WITH([mount],
3498 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
3499 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
3500AC_ARG_WITH([umount],
3501 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
3502 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
3503AC_ARG_WITH([eject],
3504 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
3505 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
3506
3507### Default values
3508
3509### Checks for programs
3510
3511### Checks for libraries
3512EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
3513EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
3514EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
3515EFL_INTERNAL_DEPEND_PKG([EEZE], [efl])
3516EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
3517EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3518EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3519EFL_INTERNAL_DEPEND_PKG([EEZE], [emile])
3520
3521EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3522
3523AC_ARG_ENABLE([libmount],
3524 [AS_HELP_STRING([--disable-libmount],[disable libmount support. @<:@default=enabled@:>@])],
3525 [
3526 if test "x${enableval}" = "xyes" ; then
3527 want_libmount="yes"
3528 else
3529 want_libmount="no"
3530 CFOPT_WARNING="xyes"
3531 fi
3532 ],
3533 [want_libmount="yes"])
3534
3535EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3536 [EEZE_MOUNT], [mount >= 2.18.0])
3537EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3538
3539PKG_CHECK_EXISTS([libudev < 199],
3540 [have_libudev_old="yes"],
3541 [have_libudev_old="no"])
3542AC_MSG_CHECKING([Use old libudev API (before 199)])
3543AC_MSG_RESULT([${have_libudev_old}])
3544
3545PKG_CHECK_EXISTS([mount < 2.19.0],
3546 [have_libmount_old="yes"],
3547 [have_libmount_old="no"])
3548AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3549AC_MSG_RESULT([${have_libmount_old}])
3550
3551PKG_CHECK_EXISTS([mount == 2.19.0],
3552 [have_libmount_219="yes"],
3553 [have_libmount_219="no"])
3554AC_MSG_CHECKING([Use libmount 2.19.0 API])
3555AC_MSG_RESULT([${have_libmount_219}])
3556
3557PKG_CHECK_EXISTS([mount > 2.19.0],
3558 [have_libmount_new="yes"],
3559 [have_libmount_new="no"])
3560AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
3561AC_MSG_RESULT([${have_libmount_new}])
3562
3563if test "x${have_libudev_old}" = "xyes"; then
3564 AC_DEFINE_UNQUOTED([OLD_LIBUDEV], [1], [using older version of libudev])
3565fi
3566
3567if test "x${have_libmount_old}" = "xyes"; then
3568 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3569fi
3570
3571## modules
3572if test "${want_tizen}" = "yes"; then
3573 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
3574fi
3575EFL_ADD_FEATURE([EEZE], [tizen])
3576
3577EFL_EVAL_PKGS([EEZE])
3578
3579### Checks for header files
3580
3581### Checks for types
3582
3583### Checks for structures
3584
3585### Checks for compiler characteristics
3586
3587### Checks for linker characteristics
3588
3589### Checks for library functions
3590
3591### Checks for binaries
3592if test "x$with_eeze_mount" = "xdetect"; then
3593 AC_PATH_PROG([with_eeze_mount], [mount], [])
3594fi
3595AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
3596
3597if test "x$with_eeze_umount" = "xdetect";then
3598 AC_PATH_PROG([with_eeze_umount], [umount], [])
3599fi
3600AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3601
3602if test "x$with_eeze_eject" = "xdetect";then
3603 AC_PATH_PROG([with_eeze_eject], [eject], [])
3604fi
3605AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3606
3607EFL_LIB_END_OPTIONAL([Eeze])
3608
3609AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3610 [test "x${have_libmount_new}" = "xyes"])
3611AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3612 [test "x${have_libmount_old}" = "xyes"])
3613AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3614AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3615#### End of Eeze
3616
3617 3620
3618#### Ecore_Drm 3621#### Ecore_Drm
3619have_libinput_new="no" 3622have_libinput_new="no"