Mercurial > dwindows
comparison configure.in @ 2130:55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 30 Jun 2020 19:17:41 +0000 |
parents | 2fb132a1d1fa |
children | 07f1366a724c |
comparison
equal
deleted
inserted
replaced
2129:2fb132a1d1fa | 2130:55c6587f269c |
---|---|
62 [with_deprecated=no], | 62 [with_deprecated=no], |
63 ) | 63 ) |
64 | 64 |
65 dnl ---------------------- check for '--with-arch' switch ----------------- | 65 dnl ---------------------- check for '--with-arch' switch ----------------- |
66 AC_ARG_WITH(arch, | 66 AC_ARG_WITH(arch, |
67 [ --with-arch specify architecture: one of all, 32bit, 64bit, intel, ppc, ppc64, x86_64, i386], | 67 [ --with-arch specify MacOS architecture: one of all, 32bit, 64bit, intel, arm, ppc, ppc64, x86_64, i386], |
68 [with_arch=$withval], | 68 [with_arch=$withval], |
69 [with_arch=no], | 69 [with_arch=no], |
70 ) | |
71 | |
72 dnl ---------------------- check for '--with-sdk' switch ----------------- | |
73 AC_ARG_WITH(sdk, | |
74 [ --with-sdk specify this to build with an alternate MacOS SDK location], | |
75 [with_sdk=$withval], | |
76 [with_sdk=no], | |
70 ) | 77 ) |
71 | 78 |
72 AC_HEADER_STDC | 79 AC_HEADER_STDC |
73 AC_HEADER_DIRENT | 80 AC_HEADER_DIRENT |
74 AC_CHECK_HEADERS(unistd.h) | 81 AC_CHECK_HEADERS(unistd.h) |
137 arm) | 144 arm) |
138 ARCH="-arch arm64" | 145 ARCH="-arch arm64" |
139 ;; | 146 ;; |
140 *) | 147 *) |
141 ARCH="-arch $with_arch" | 148 ARCH="-arch $with_arch" |
149 ;; | |
150 esac | |
151 case "$with_sdk" in | |
152 no) | |
153 ;; | |
154 *) | |
155 CC="$CC -isysroot$with_sdk" | |
142 ;; | 156 ;; |
143 esac | 157 esac |
144 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" | 158 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" |
145 SOSUFFIX=dylib | 159 SOSUFFIX=dylib |
146 DW_DIR=mac | 160 DW_DIR=mac |