-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
39 lines (28 loc) · 888 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([contents-delivery-manager],[1.0.0],[https://github.com/switchbrew/contents-delivery-manager/issues])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([source/manager.c])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_PROG_CC
AX_APPEND_COMPILE_FLAGS([-pthread])
AC_SYS_LARGEFILE
NET_LIBS=""
case "$host" in
*-*-mingw*)
NET_LIBS="-lws2_32"
CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO -D_WIN32_WINNT=0x0600"
;;
esac
case "$host" in
i686-*-mingw*)
CFLAGS="$CFLAGS -D\"__int128_t=struct __int128_t\" -D\"__uint128_t=struct __uint128_t\""
;;
esac
CFLAGS="$CFLAGS -std=gnu99 -iquote $DEVKITPRO/libnx/include"
AC_SUBST(NET_LIBS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT