Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
42b81ea0
Commit
42b81ea0
authored
Aug 15, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Use a platform name check for MacOS shared library support,
it's completely different from the others anyway.
parent
e533e972
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
207 additions
and
272 deletions
+207
-272
configure
configure
+98
-159
configure.ac
configure.ac
+109
-113
No files found.
configure
View file @
42b81ea0
...
...
@@ -740,12 +740,12 @@ LIBEXT
IMPLIBEXT
DLLTOOL
DLLWRAP
LDEXECFLAGS
LDEXERPATH
LDDLLRPATH
COREFOUNDATIONLIB
IOKITLIB
LDEXECFLAGS
COREAUDIO
LDEXERPATH
LDDLLRPATH
CROSSTEST
CROSSCC
CROSSWINDRES
...
...
@@ -15278,10 +15278,33 @@ fi
WIN16_FILES
=
""
WIN16_INSTALL
=
""
;;
darwin
*
|
macosx
*
)
DLLEXT
=
".so"
LIBEXT
=
"dylib"
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
LDDLLFLAGS
=
"-bundle -multiply_defined suppress"
LDSHARED
=
"
\$
(CC) -dynamiclib -install_name @executable_path/
\`\$
(RELPATH)
\$
(bindir)
\$
(libdir)
\`
/
\$
(DYNAME)"
STRIP
=
"
$STRIP
-u -r"
COREFOUNDATIONLIB
=
"-framework CoreFoundation"
IOKITLIB
=
"-framework IOKit -framework CoreFoundation"
LDEXECFLAGS
=
"-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
if
test
"
$ac_cv_header_CoreAudio_CoreAudio_h
"
=
"yes"
-a
"
$ac_cv_header_AudioUnit_AudioUnit_h
"
=
"yes"
then
COREAUDIO
=
"-framework CoreAudio -framework AudioUnit -framework CoreServices"
fi
case
$host_cpu
in
*
powerpc
*
)
LDDLLFLAGS
=
"
$LDDLLFLAGS
-read_only_relocs warning"
;;
esac
;;
*
)
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
DLLEXT
=
".so"
{
echo
"
$as_me
:
$LINENO
: checking whether we can build a GNU style ELF dll"
>
&5
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
DLLEXT
=
".so"
{
echo
"
$as_me
:
$LINENO
: checking whether we can build a GNU style ELF dll"
>
&5
echo
$ECHO_N
"checking whether we can build a GNU style ELF dll...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_dll_gnuelf
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15339,11 +15362,11 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_dll_gnuelf
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_dll_gnuelf
"
>
&6
;
}
if
test
"
$ac_cv_c_dll_gnuelf
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -shared"
LDDLLFLAGS
=
"-shared -Wl,-Bsymbolic"
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts soname"
>
&5
if
test
"
$ac_cv_c_dll_gnuelf
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -shared"
LDDLLFLAGS
=
"-shared -Wl,-Bsymbolic"
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts soname"
>
&5
echo
$ECHO_N
"checking whether the linker accepts soname...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_sonames
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15413,11 +15436,11 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_sonames
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_sonames
"
>
&6
;
}
if
test
"
$ac_cv_c_sonames
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -shared
\$
(SONAME:%=-Wl,-soname,%)"
else
{
echo
"
$as_me
:
$LINENO
: checking check to see if -h soname is an alternate"
>
&5
if
test
"
$ac_cv_c_sonames
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -shared
\$
(SONAME:%=-Wl,-soname,%)"
else
{
echo
"
$as_me
:
$LINENO
: checking check to see if -h soname is an alternate"
>
&5
echo
$ECHO_N
"checking check to see if -h soname is an alternate...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_h_sonames
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15487,13 +15510,13 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_h_sonames
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_h_sonames
"
>
&6
;
}
if
test
"
$ac_cv_c_h_sonames
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -shared
\$
(SONAME:%=-Wl,-h,%)"
fi
if
test
"
$ac_cv_c_h_sonames
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -shared
\$
(SONAME:%=-Wl,-h,%)"
fi
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts -z defs"
>
&5
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts -z defs"
>
&5
echo
$ECHO_N
"checking whether the linker accepts -z defs...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_dll_zdefs
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15563,12 +15586,12 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_dll_zdefs
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_dll_zdefs
"
>
&6
;
}
if
test
"
$ac_cv_c_dll_zdefs
"
=
"yes"
then
LDDLLFLAGS
=
"
$LDDLLFLAGS
,-z,defs"
fi
if
test
"
$ac_cv_c_dll_zdefs
"
=
"yes"
then
LDDLLFLAGS
=
"
$LDDLLFLAGS
,-z,defs"
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts -init and -fini"
>
&5
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts -init and -fini"
>
&5
echo
$ECHO_N
"checking whether the linker accepts -init and -fini...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_dll_init_fini
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15638,18 +15661,18 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_dll_init_fini
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_dll_init_fini
"
>
&6
;
}
if
test
"
$ac_cv_c_dll_init_fini
"
=
"yes"
then
LDDLLFLAGS
=
"
$LDDLLFLAGS
,-init,__wine_spec_init,-fini,__wine_spec_fini"
fi
if
test
"
$ac_cv_c_dll_init_fini
"
=
"yes"
then
LDDLLFLAGS
=
"
$LDDLLFLAGS
,-init,__wine_spec_init,-fini,__wine_spec_fini"
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts version scripts"
>
&5
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts version scripts"
>
&5
echo
$ECHO_N
"checking whether the linker accepts version scripts...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_ld_version_scripts
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
echo
'{ global: *; };'
>
conftest.map
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fPIC -shared -Wl,--version-script=conftest.map"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
...
...
@@ -15711,16 +15734,16 @@ fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
rm
-f
conftest.map
rm
-f
conftest.map
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_ld_version_scripts
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_ld_version_scripts
"
>
&6
;
}
if
test
"
$ac_cv_c_ld_version_scripts
"
=
"yes"
then
LDSHARED
=
"
$LDSHARED
\$
(VERSCRIPT:%=-Wl,--version-script=%)"
fi
if
test
"
$ac_cv_c_ld_version_scripts
"
=
"yes"
then
LDSHARED
=
"
$LDSHARED
\$
(VERSCRIPT:%=-Wl,--version-script=%)"
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts --export-dynamic"
>
&5
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts --export-dynamic"
>
&5
echo
$ECHO_N
"checking whether the linker accepts --export-dynamic...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_export_dynamic
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15790,13 +15813,13 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_export_dynamic
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_export_dynamic
"
>
&6
;
}
if
test
"
$ac_cv_c_export_dynamic
"
=
"yes"
then
LDEXECFLAGS
=
"-Wl,--export-dynamic"
if
test
"
$ac_cv_c_export_dynamic
"
=
"yes"
then
LDEXECFLAGS
=
"-Wl,--export-dynamic"
fi
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts --rpath"
>
&5
{
echo
"
$as_me
:
$LINENO
: checking whether the linker accepts --rpath"
>
&5
echo
$ECHO_N
"checking whether the linker accepts --rpath...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_ld_rpath
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15866,17 +15889,17 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_ld_rpath
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_ld_rpath
"
>
&6
;
}
if
test
"
$ac_cv_ld_rpath
"
=
"yes"
then
LDEXERPATH
=
"-Wl,--rpath,
\\\$\$
ORIGIN/
\`\$
(RELPATH)
\$
(bindir)
\$
(libdir)
\`
"
if
test
"
$ac_cv_ld_rpath
"
=
"yes"
then
LDEXERPATH
=
"-Wl,--rpath,
\\\$\$
ORIGIN/
\`\$
(RELPATH)
\$
(bindir)
\$
(libdir)
\`
"
LDDLLRPATH
=
"-Wl,--rpath,
\\\$\$
ORIGIN/
\`\$
(RELPATH)
\$
(dlldir)
\$
(libdir)
\`
"
LDDLLRPATH
=
"-Wl,--rpath,
\\\$\$
ORIGIN/
\`\$
(RELPATH)
\$
(dlldir)
\$
(libdir)
\`
"
fi
fi
case
$host_cpu
in
*
i[3456789]86
*
|
x86_64
)
{
echo
"
$as_me
:
$LINENO
: checking whether we can relocate the executable to 0x7bf00000"
>
&5
case
$host_cpu
in
*
i[3456789]86
*
|
x86_64
)
{
echo
"
$as_me
:
$LINENO
: checking whether we can relocate the executable to 0x7bf00000"
>
&5
echo
$ECHO_N
"checking whether we can relocate the executable to 0x7bf00000...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_ld_reloc_exec
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -15946,15 +15969,15 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_ld_reloc_exec
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_ld_reloc_exec
"
>
&6
;
}
if
test
"
$ac_cv_ld_reloc_exec
"
=
"yes"
then
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,--section-start,.interp=0x7bf00400"
fi
;;
esac
if
test
"
$ac_cv_ld_reloc_exec
"
=
"yes"
then
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,--section-start,.interp=0x7bf00400"
fi
;;
esac
else
{
echo
"
$as_me
:
$LINENO
: checking whether we can build a UnixWare (Solaris) dll"
>
&5
else
{
echo
"
$as_me
:
$LINENO
: checking whether we can build a UnixWare (Solaris) dll"
>
&5
echo
$ECHO_N
"checking whether we can build a UnixWare (Solaris) dll...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_dll_unixware
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -16012,96 +16035,13 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_dll_unixware
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_dll_unixware
"
>
&6
;
}
if
test
"
$ac_cv_c_dll_unixware
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -Wl,-G
\$
(SONAME:%=-Wl,-h,%)"
LDDLLFLAGS
=
"-Wl,-G,-B,symbolic"
else
{
echo
"
$as_me
:
$LINENO
: checking whether we can build a Mach-O (Mac OS X/Darwin) dll"
>
&5
echo
$ECHO_N
"checking whether we can build a Mach-O (Mac OS X/Darwin) dll...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_dll_macho
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-bundle"
cat
>
conftest.
$ac_ext
<<
_ACEOF
void myfunc() {}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
ac_try
=
"
$ac_link
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_link
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_try
"
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_try
"
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_dll_macho
=
"yes"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_dll_macho
=
"no"
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_dll_macho
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_dll_macho
"
>
&6
;
}
if
test
"
$ac_cv_c_dll_macho
"
=
"yes"
then
LIBEXT
=
"dylib"
LDDLLFLAGS
=
"-bundle -multiply_defined suppress"
LDSHARED
=
"
\$
(CC) -dynamiclib -install_name @executable_path/
\`\$
(RELPATH)
\$
(bindir)
\$
(libdir)
\`
/
\$
(DYNAME)"
STRIP
=
"
$STRIP
-u -r"
COREFOUNDATIONLIB
=
"-framework CoreFoundation"
IOKITLIB
=
"-framework IOKit -framework CoreFoundation"
LDEXECFLAGS
=
"-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
if
test
"
$ac_cv_c_dll_unixware
"
=
"yes"
then
LDSHARED
=
"
\$
(CC) -Wl,-G
\$
(SONAME:%=-Wl,-h,%)"
LDDLLFLAGS
=
"-Wl,-G,-B,symbolic"
if
test
"
$ac_cv_header_CoreAudio_CoreAudio_h
"
=
"yes"
-a
"
$ac_cv_header_AudioUnit_AudioUnit_h
"
=
"yes"
then
COREAUDIO
=
"-framework CoreAudio -framework AudioUnit -framework CoreServices"
fi
case
$host_cpu
in
*
powerpc
*
)
CFLAGS
=
"
$CFLAGS
-ffixed-r13"
LDDLLFLAGS
=
"
$LDDLLFLAGS
-read_only_relocs warning"
;;
esac
else
{
echo
"
$as_me
:
$LINENO
: checking whether we can build an HP-UX dll"
>
&5
else
{
echo
"
$as_me
:
$LINENO
: checking whether we can build an HP-UX dll"
>
&5
echo
$ECHO_N
"checking whether we can build an HP-UX dll...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_dll_hpux
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -16159,16 +16099,15 @@ CFLAGS=$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_dll_hpux
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_dll_hpux
"
>
&6
;
}
if
test
"
$ac_cv_c_dll_hpux
"
=
"yes"
then
LIBEXT
=
"sl"
DLLEXT
=
".sl"
LDDLLFLAGS
=
"-shared -fPIC"
LDSHARED
=
"
\$
(CC) -shared"
fi
fi
if
test
"
$ac_cv_c_dll_hpux
"
=
"yes"
then
LIBEXT
=
"sl"
DLLEXT
=
".sl"
LDDLLFLAGS
=
"-shared -fPIC"
LDSHARED
=
"
\$
(CC) -shared"
fi
fi
fi
CROSSTEST
=
""
...
...
@@ -25086,12 +25025,12 @@ LIBEXT!$LIBEXT$ac_delim
IMPLIBEXT!
$IMPLIBEXT$ac_delim
DLLTOOL!
$DLLTOOL$ac_delim
DLLWRAP!
$DLLWRAP$ac_delim
LDEXECFLAGS!
$LDEXECFLAGS$ac_delim
LDEXERPATH!
$LDEXERPATH$ac_delim
LDDLLRPATH!
$LDDLLRPATH$ac_delim
COREFOUNDATIONLIB!
$COREFOUNDATIONLIB$ac_delim
IOKITLIB!
$IOKITLIB$ac_delim
LDEXECFLAGS!
$LDEXECFLAGS$ac_delim
COREAUDIO!
$COREAUDIO$ac_delim
LDEXERPATH!
$LDEXERPATH$ac_delim
LDDLLRPATH!
$LDDLLRPATH$ac_delim
CROSSTEST!
$CROSSTEST$ac_delim
CROSSCC!
$CROSSCC$ac_delim
CROSSWINDRES!
$CROSSWINDRES$ac_delim
...
...
configure.ac
View file @
42b81ea0
...
...
@@ -1031,134 +1031,130 @@ case $host_os in
WIN16_FILES=""
WIN16_INSTALL=""
;;
darwin*|macosx*)
DLLEXT=".so"
LIBEXT="dylib"
DLLFLAGS="$DLLFLAGS -fPIC"
LDDLLFLAGS="-bundle -multiply_defined suppress"
LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
STRIP="$STRIP -u -r"
dnl declare needed frameworks
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
AC_SUBST(IOKITLIB,"-framework IOKit -framework CoreFoundation")
AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"])
if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
then
dnl CoreServices needed by AudioUnit
AC_SUBST(COREAUDIO,"-framework CoreAudio -framework AudioUnit -framework CoreServices")
fi
case $host_cpu in
*powerpc*)
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" dnl FIXME
;;
esac
;;
*)
DLLFLAGS="$DLLFLAGS -fPIC"
DLLEXT=".so"
AC_CACHE_CHECK([whether we can build a GNU style ELF dll], ac_cv_c_dll_gnuelf,
[WINE_TRY_SHLIB_FLAGS([-fPIC -shared -Wl,-Bsymbolic],
ac_cv_c_dll_gnuelf="yes",ac_cv_c_dll_gnuelf="no")])
if test "$ac_cv_c_dll_gnuelf" = "yes"
DLLFLAGS="$DLLFLAGS -fPIC"
DLLEXT=".so"
AC_CACHE_CHECK([whether we can build a GNU style ELF dll], ac_cv_c_dll_gnuelf,
[WINE_TRY_SHLIB_FLAGS([-fPIC -shared -Wl,-Bsymbolic],
ac_cv_c_dll_gnuelf="yes",ac_cv_c_dll_gnuelf="no")])
if test "$ac_cv_c_dll_gnuelf" = "yes"
then
LDSHARED="\$(CC) -shared"
LDDLLFLAGS="-shared -Wl,-Bsymbolic"
AC_CACHE_CHECK([whether the linker accepts soname], ac_cv_c_sonames,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-soname,confest.so.1],
ac_cv_c_sonames="yes",ac_cv_c_sonames="no")])
if test "$ac_cv_c_sonames" = "yes"
then
LDSHARED="\$(CC) -shared"
LDDLLFLAGS="-shared -Wl,-Bsymbolic"
AC_CACHE_CHECK([
whether the linker accepts soname], ac_cv_c
_sonames,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-
soname
,confest.so.1],
ac_cv_c_
sonames="yes",ac_cv_c
_sonames="no")])
if test "$ac_cv_c_sonames" = "yes"
LDSHARED="\$(CC) -shared
\$(SONAME:%=-Wl,-soname,%)
"
else
AC_CACHE_CHECK([
check to see if -h soname is an alternate], ac_cv_c_h
_sonames,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-
h
,confest.so.1],
ac_cv_c_
h_sonames="yes",ac_cv_c_h
_sonames="no")])
if test "$ac_cv_c_
h_
sonames" = "yes"
then
LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
else
AC_CACHE_CHECK([check to see if -h soname is an alternate], ac_cv_c_h_sonames,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-h,confest.so.1],
ac_cv_c_h_sonames="yes",ac_cv_c_h_sonames="no")])
if test "$ac_cv_c_h_sonames" = "yes"
then
LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
fi
LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
fi
fi
AC_CACHE_CHECK([whether the linker accepts -z defs], ac_cv_c_dll_zdefs,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-z,defs],
ac_cv_c_dll_zdefs="yes",ac_cv_c_dll_zdefs="no")])
if test "$ac_cv_c_dll_zdefs" = "yes"
then
LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
fi
AC_CACHE_CHECK([whether the linker accepts -z defs], ac_cv_c_dll_zdefs,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-z,defs],
ac_cv_c_dll_zdefs="yes",ac_cv_c_dll_zdefs="no")])
if test "$ac_cv_c_dll_zdefs" = "yes"
then
LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
fi
AC_CACHE_CHECK([whether the linker accepts -init and -fini], ac_cv_c_dll_init_fini,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini],
ac_cv_c_dll_init_fini="yes",ac_cv_c_dll_init_fini="no")])
if test "$ac_cv_c_dll_init_fini" = "yes"
then
LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
fi
AC_CACHE_CHECK([whether the linker accepts -init and -fini], ac_cv_c_dll_init_fini,
[WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini],
ac_cv_c_dll_init_fini="yes",ac_cv_c_dll_init_fini="no")])
if test "$ac_cv_c_dll_init_fini" = "yes"
then
LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
fi
AC_CACHE_CHECK([whether the linker accepts version scripts], ac_cv_c_ld_version_scripts,
[echo '{ global: *; };' >conftest.map
WINE_TRY_CFLAGS([-fPIC -shared -Wl,--version-script=conftest.map],
ac_cv_c_ld_version_scripts="yes",ac_cv_c_ld_version_scripts="no")
rm -f conftest.map])
if test "$ac_cv_c_ld_version_scripts" = "yes"
then
LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
fi
AC_CACHE_CHECK([whether the linker accepts version scripts], ac_cv_c_ld_version_scripts,
[echo '{ global: *; };' >conftest.map
WINE_TRY_CFLAGS([-fPIC -shared -Wl,--version-script=conftest.map],
ac_cv_c_ld_version_scripts="yes",ac_cv_c_ld_version_scripts="no")
rm -f conftest.map])
if test "$ac_cv_c_ld_version_scripts" = "yes"
then
LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
fi
AC_CACHE_CHECK([whether the linker accepts --export-dynamic], ac_cv_c_export_dynamic,
[WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
ac_cv_c_export_dynamic="yes",ac_cv_c_export_dynamic="no")])
if test "$ac_cv_c_export_dynamic" = "yes"
then
AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])
fi
AC_CACHE_CHECK([whether the linker accepts --export-dynamic], ac_cv_c_export_dynamic,
[WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
ac_cv_c_export_dynamic="yes",ac_cv_c_export_dynamic="no")])
if test "$ac_cv_c_export_dynamic" = "yes"
then
AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])
fi
AC_CACHE_CHECK([whether the linker accepts --rpath], ac_cv_ld_rpath,
[WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
ac_cv_ld_rpath="yes",ac_cv_ld_rpath="no")])
if test "$ac_cv_ld_rpath" = "yes"
then
AC_SUBST(LDEXERPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"])
AC_SUBST(LDDLLRPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"])
fi
AC_CACHE_CHECK([whether the linker accepts --rpath], ac_cv_ld_rpath,
[WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
ac_cv_ld_rpath="yes",ac_cv_ld_rpath="no")])
if test "$ac_cv_ld_rpath" = "yes"
then
AC_SUBST(LDEXERPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"])
AC_SUBST(LDDLLRPATH,["-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"])
fi
case $host_cpu in
*i[[3456789]]86* | x86_64)
AC_CACHE_CHECK([whether we can relocate the executable to 0x7bf00000], ac_cv_ld_reloc_exec,
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
ac_cv_ld_reloc_exec="yes", ac_cv_ld_reloc_exec="no")])
if test "$ac_cv_ld_reloc_exec" = "yes"
then
LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
fi
;;
esac
case $host_cpu in
*i[[3456789]]86* | x86_64)
AC_CACHE_CHECK([whether we can relocate the executable to 0x7bf00000], ac_cv_ld_reloc_exec,
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
ac_cv_ld_reloc_exec="yes", ac_cv_ld_reloc_exec="no")])
if test "$ac_cv_ld_reloc_exec" = "yes"
then
LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
fi
;;
esac
else
AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll, ac_cv_c_dll_unixware,
[WINE_TRY_SHLIB_FLAGS([-fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic],
ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")])
if test "$ac_cv_c_dll_unixware" = "yes"
then
LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
LDDLLFLAGS="-Wl,-G,-B,symbolic"
else
AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll, ac_cv_c_dll_unixware,
[WINE_TRY_SHLIB_FLAGS([-fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic],
ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")])
if test "$ac_cv_c_dll_unixware" = "yes"
AC_CACHE_CHECK(whether we can build an HP-UX dll, ac_cv_c_dll_hpux,
[WINE_TRY_SHLIB_FLAGS([-shared], ac_cv_c_dll_hpux="yes", ac_cv_c_dll_hpux="no")])
if test "$ac_cv_c_dll_hpux" = "yes"
then
LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
LDDLLFLAGS="-Wl,-G,-B,symbolic"
else
AC_CACHE_CHECK(whether we can build a Mach-O (Mac OS X/Darwin) dll, ac_cv_c_dll_macho,
[WINE_TRY_SHLIB_FLAGS([-bundle], ac_cv_c_dll_macho="yes", ac_cv_c_dll_macho="no")])
if test "$ac_cv_c_dll_macho" = "yes"
then
LIBEXT="dylib"
LDDLLFLAGS="-bundle -multiply_defined suppress"
LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
STRIP="$STRIP -u -r"
dnl declare needed frameworks
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
AC_SUBST(IOKITLIB,"-framework IOKit -framework CoreFoundation")
AC_SUBST(LDEXECFLAGS,["-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"])
if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
then
dnl CoreServices needed by AudioUnit
AC_SUBST(COREAUDIO,"-framework CoreAudio -framework AudioUnit -framework CoreServices")
fi
case $host_cpu in
*powerpc*)
CFLAGS="$CFLAGS -ffixed-r13"
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
;;
esac
else
AC_CACHE_CHECK(whether we can build an HP-UX dll, ac_cv_c_dll_hpux,
[WINE_TRY_SHLIB_FLAGS([-shared], ac_cv_c_dll_hpux="yes", ac_cv_c_dll_hpux="no")])
if test "$ac_cv_c_dll_hpux" = "yes"
then
LIBEXT="sl"
DLLEXT=".sl"
LDDLLFLAGS="-shared -fPIC"
LDSHARED="\$(CC) -shared"
fi
fi
LIBEXT="sl"
DLLEXT=".sl"
LDDLLFLAGS="-shared -fPIC"
LDSHARED="\$(CC) -shared"
fi
fi
fi
dnl Check for cross compiler to build test programs
AC_SUBST(CROSSTEST,"")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment