diff options
Diffstat (limited to 'gphoto-m4/gp-asm-symver-ifelse.m4')
-rw-r--r-- | gphoto-m4/gp-asm-symver-ifelse.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gphoto-m4/gp-asm-symver-ifelse.m4 b/gphoto-m4/gp-asm-symver-ifelse.m4 new file mode 100644 index 000000000..33174f8f5 --- /dev/null +++ b/gphoto-m4/gp-asm-symver-ifelse.m4 @@ -0,0 +1,30 @@ +dnl #################################################################### +dnl GP_ASM_SYMVER_IFELSE([ACTION-IF-TRUE], [ACTION-IF-FALSE]) +dnl #################################################################### +dnl +AC_DEFUN([GP_ASM_SYMVER_IFELSE], [dnl +AC_MSG_CHECKING([for asm .symver support]) +AC_COMPILE_IFELSE([dnl + AC_LANG_PROGRAM([[ + void f1(void); + void f1() {} + void f2(void); + void f2() {} + asm(".symver f1, f@VER1"); + asm(".symver f2, f@@VER2"); + ]], [[ + ]])dnl +], [dnl +AC_MSG_RESULT([yes]) +$1 +], [dnl +AC_MSG_RESULT([no]) +$2 +]) +])dnl +dnl +dnl #################################################################### +dnl +dnl Local Variables: +dnl mode: autoconf +dnl End: |