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
6538cb44
Commit
6538cb44
authored
Sep 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Always use -fno-builtin if supported, since it's needed for scanf too.
parent
f78a8419
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
70 deletions
+60
-70
configure
configure
+59
-59
configure.ac
configure.ac
+1
-11
No files found.
configure
View file @
6538cb44
...
...
@@ -16266,6 +16266,65 @@ _ACEOF
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the compiler supports -fno-builtin"
>
&5
echo
$ECHO_N
"checking whether the compiler supports -fno-builtin...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_cflags__fno_builtin
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fno-builtin"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_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
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest
$ac_exeext
&&
$as_test_x
conftest
$ac_exeext
;
then
ac_cv_cflags__fno_builtin
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_cflags__fno_builtin
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_cflags__fno_builtin
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_cflags__fno_builtin
"
>
&6
;
}
if
test
$ac_cv_cflags__fno_builtin
=
yes
;
then
BUILTINFLAG
=
"-fno-builtin"
fi
{
echo
"
$as_me
:
$LINENO
: checking whether the compiler supports -fno-strict-aliasing"
>
&5
echo
$ECHO_N
"checking whether the compiler supports -fno-strict-aliasing...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_cflags__fno_strict_aliasing
+set
}
"
=
set
;
then
...
...
@@ -16555,65 +16614,6 @@ echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
then
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wpointer-arith"
fi
BUILTINFLAG
=
""
saved_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-Werror"
{
echo
"
$as_me
:
$LINENO
: checking for builtin wchar inlines"
>
&5
echo
$ECHO_N
"checking for builtin wchar inlines...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_c_builtin_wchar_ctype
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
int
main ()
{
int iswlower(unsigned short);
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
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_compile
"
)
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
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
ac_cv_c_builtin_wchar_ctype
=
no
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_builtin_wchar_ctype
=
yes
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_builtin_wchar_ctype
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_builtin_wchar_ctype
"
>
&6
;
}
CFLAGS
=
"
$saved_CFLAGS
"
if
test
"
$ac_cv_c_builtin_wchar_ctype
"
=
"yes"
then
BUILTINFLAG
=
"-fno-builtin"
fi
fi
...
...
configure.ac
View file @
6538cb44
...
...
@@ -1238,6 +1238,7 @@ then
WINE_TRY_CFLAGS([-fshort-wchar],
[AC_DEFINE(CC_FLAG_SHORT_WCHAR, "-fshort-wchar",
[Specifies the compiler flag that forces a short wchar_t])])
WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")])
WINE_TRY_CFLAGS([-fno-strict-aliasing])
WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
WINE_TRY_CFLAGS([-Wwrite-strings])
...
...
@@ -1253,17 +1254,6 @@ then
then
EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
fi
AC_SUBST(BUILTINFLAG,"")
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_CACHE_CHECK([for builtin wchar inlines], ac_cv_c_builtin_wchar_ctype,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int iswlower(unsigned short);]])],[ac_cv_c_builtin_wchar_ctype=no],[ac_cv_c_builtin_wchar_ctype=yes]))
CFLAGS="$saved_CFLAGS"
if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
then
BUILTINFLAG="-fno-builtin"
fi
fi
dnl **** Check how to define a function in assembly code ****
...
...
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