~mmach/netext73/libglvnd

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: mmach
  • Date: 2020-02-22 07:06:53 UTC
  • Revision ID: netbit73@gmail.com-20200222070653-ojiqe91999vrhv8a
1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
 
4
4
AC_PREREQ([2.63])
5
 
AC_INIT([libglvnd], [1.3.0], [kbrenneman@nvidia.com])
 
5
AC_INIT([libglvnd], [1.3.1], [kbrenneman@nvidia.com])
6
6
AC_CONFIG_SRCDIR([config.h.in])
7
7
AC_CONFIG_HEADERS([config.h])
8
8
 
137
137
        asm_arch=aarch64
138
138
        ;;
139
139
    powerpc64le)
140
 
        asm_arch=ppc64le
 
140
        asm_arch=ppc64
141
141
        ;;
 
142
    powerpc64)
 
143
        AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 
144
        #if !defined(_CALL_ELF) || (_CALL_ELF) == 1
 
145
        #  error "ELFv1 ABI"
 
146
        #endif
 
147
        ])],
 
148
        [asm_arch=ppc64],[])
142
149
    esac
143
150
 
144
151
    case "$asm_arch" in
158
165
        DEFINES="$DEFINES -DUSE_AARCH64_ASM"
159
166
        AC_MSG_RESULT([yes, aarch64])
160
167
        ;;
161
 
    ppc64le)
162
 
        DEFINES="$DEFINES -DUSE_PPC64LE_ASM"
163
 
        AC_MSG_RESULT([yes, ppc64le])
 
168
    ppc64)
 
169
        DEFINES="$DEFINES -DUSE_PPC64_ASM"
 
170
        AC_MSG_RESULT([yes, ppc64])
164
171
        ;;
165
172
    *)
166
173
        AC_MSG_RESULT([no, platform '$host_cpu' not supported])
240
247
    gldispatch_entry_type=aarch64_tsd
241
248
    gldispatch_use_tls=no
242
249
    ;;
243
 
xppc64le)
244
 
    # For ppc64le, allow both the TLS and TSD stubs for now.
 
250
xppc64)
 
251
    # For ppc64, allow both the TLS and TSD stubs for now.
245
252
    if test "x$HAVE_INIT_TLS" = "xyes" ; then
246
 
        gldispatch_entry_type=ppc64le_tls
 
253
        gldispatch_entry_type=ppc64_tls
247
254
        gldispatch_use_tls=yes
248
255
    else
249
 
        gldispatch_entry_type=ppc64le_tsd
 
256
        gldispatch_entry_type=ppc64_tsd
250
257
        gldispatch_use_tls=no
251
258
    fi
252
259
    ;;
266
273
AM_CONDITIONAL([GLDISPATCH_TYPE_X86_TSD], [test "x$gldispatch_entry_type" = "xx86_tsd"])
267
274
AM_CONDITIONAL([GLDISPATCH_TYPE_X86_64_TLS], [test "x$gldispatch_entry_type" = "xx86_64_tls"])
268
275
AM_CONDITIONAL([GLDISPATCH_TYPE_X86_64_TSD], [test "x$gldispatch_entry_type" = "xx86_64_tsd"])
269
 
AM_CONDITIONAL([GLDISPATCH_TYPE_PPC64LE_TLS], [test "x$gldispatch_entry_type" = "xppc64le_tls"])
270
 
AM_CONDITIONAL([GLDISPATCH_TYPE_PPC64LE_TSD], [test "x$gldispatch_entry_type" = "xppc64le_tsd"])
 
276
AM_CONDITIONAL([GLDISPATCH_TYPE_PPC64_TLS], [test "x$gldispatch_entry_type" = "xppc64_tls"])
 
277
AM_CONDITIONAL([GLDISPATCH_TYPE_PPC64_TSD], [test "x$gldispatch_entry_type" = "xppc64_tsd"])
271
278
AM_CONDITIONAL([GLDISPATCH_TYPE_ARMV7_TSD], [test "x$gldispatch_entry_type" = "xarmv7_tsd"])
272
279
AM_CONDITIONAL([GLDISPATCH_TYPE_AARCH64_TSD], [test "x$gldispatch_entry_type" = "xaarch64_tsd"])
273
280
AM_CONDITIONAL([GLDISPATCH_TYPE_PURE_C], [test "x$gldispatch_entry_type" = "xpure_c"])