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
3558acac
Commit
3558acac
authored
Apr 06, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glu32: Load libGLU dynamically.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
acb480e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
21 deletions
+35
-21
configure
configure
+29
-16
configure.ac
configure.ac
+3
-3
Makefile.in
dlls/glu32/Makefile.in
+0
-2
glu.c
dlls/glu32/glu.c
+0
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
3558acac
...
@@ -10783,14 +10783,14 @@ _ACEOF
...
@@ -10783,14 +10783,14 @@ _ACEOF
fi
fi
if
test
"x
$with_glu
"
!=
"xno"
if
test
"x
$with_glu
"
!=
"xno"
then
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for
gluLookAt in
-lGLU"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for -lGLU"
>
&5
$as_echo_n
"checking for
gluLookAt in
-lGLU... "
>
&6
;
}
$as_echo_n
"checking for -lGLU... "
>
&6
;
}
if
${
ac_cv_lib_
GLU_gluLookAt
+
:
}
false
;
then
:
if
${
ac_cv_lib_
soname_GLU
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
$as_echo_n
"(cached) "
>
&6
else
else
ac_check_
lib
_save_LIBS
=
$LIBS
ac_check_
soname
_save_LIBS
=
$LIBS
LIBS
=
"-lGLU
$OPENGL_LIBS
$X_LIBS
-lm
$X_EXTRA_LIBS
$LIBS
"
LIBS
=
"-lGLU
$OPENGL_LIBS
$X_LIBS
-lm
$X_EXTRA_LIBS
$LIBS
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
/* Override any GCC internal prototype to avoid an error.
...
@@ -10809,21 +10809,34 @@ return gluLookAt ();
...
@@ -10809,21 +10809,34 @@ return gluLookAt ();
}
}
_ACEOF
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_lib_GLU_gluLookAt
=
yes
case
"
$LIBEXT
"
in
else
dll
)
ac_cv_lib_soname_GLU
=
`
$ac_cv_path_LDD
conftest.exe |
grep
"GLU"
|
sed
-e
"s/dll.*/dll/"
';2,$d'
`
;;
ac_cv_lib_GLU_gluLookAt
=
no
dylib
)
ac_cv_lib_soname_GLU
=
`
$OTOOL
-L
conftest
$ac_exeext
|
grep
"libGLU
\\
.[0-9A-Za-z.]*dylib"
|
sed
-e
"s/^.*
\/\(
libGLU
\.
[0-9A-Za-z.]*dylib
\)
.*
$/
\1
/"
';2,$d'
`
;;
*
)
ac_cv_lib_soname_GLU
=
`
$READELF
-d
conftest
$ac_exeext
|
grep
"NEEDED.*libGLU
\\
.
$LIBEXT
"
|
sed
-e
"s/^.*
\\
[
\\
(libGLU
\\
.
$LIBEXT
[^ ]*
\\
)
\\
].*
$/
\1
/"
';2,$d'
`
if
${
ac_cv_lib_soname_GLU
:+false
}
:
;
then
:
ac_cv_lib_soname_GLU
=
`
$LDD
conftest
$ac_exeext
|
grep
"libGLU
\\
.
$LIBEXT
"
|
sed
-e
"s/^.*
\(
libGLU
\.
$LIBEXT
[^ ]*
\)
.*
$/
\1
/"
';2,$d'
`
fi
;;
esac
fi
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
LIBS
=
$ac_check_soname_save_LIBS
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_GLU_gluLookAt
"
>
&5
$as_echo
"
$ac_cv_lib_GLU_gluLookAt
"
>
&6
;
}
if
test
"x
$ac_cv_lib_GLU_gluLookAt
"
=
xyes
;
then
:
:
fi
fi
if
${
ac_cv_lib_soname_GLU
:+false
}
:
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: not found"
>
&5
$as_echo
"not found"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_soname_GLU
"
>
&5
$as_echo
"
$ac_cv_lib_soname_GLU
"
>
&6
;
}
if
test
"x
$ac_cv_lib_GLU_gluLookAt
"
!=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define SONAME_LIBGLU "
$ac_cv_lib_soname_GLU
"
_ACEOF
fi
if
test
"x
$ac_cv_lib_soname_GLU
"
=
"x"
;
then
:
case
"x
$with_glu
"
in
case
"x
$with_glu
"
in
x
)
as_fn_append wine_notices
"|libGLU
${
notice_platform
}
development files not found, GLU won't be supported."
;;
x
)
as_fn_append wine_notices
"|libGLU
${
notice_platform
}
development files not found, GLU won't be supported."
;;
xno
)
;;
xno
)
;;
...
@@ -10928,7 +10941,7 @@ esac
...
@@ -10928,7 +10941,7 @@ esac
enable_winex11_drv
=
${
enable_winex11_drv
:-
no
}
enable_winex11_drv
=
${
enable_winex11_drv
:-
no
}
fi
fi
test
"x
$ac_cv_lib_
GLU_gluLookAt
"
!=
xyes
&&
enable_glu32
=
${
enable_glu32
:-
no
}
test
"x
$ac_cv_lib_
soname_GLU
"
=
"x"
&&
enable_glu32
=
${
enable_glu32
:-
no
}
if
test
"
$ac_cv_header_CL_cl_h
"
=
"yes"
if
test
"
$ac_cv_header_CL_cl_h
"
=
"yes"
then
then
...
...
configure.ac
View file @
3558acac
...
@@ -1142,8 +1142,8 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
...
@@ -1142,8 +1142,8 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
$X_LIBS -lm $X_EXTRA_LIBS)
$X_LIBS -lm $X_EXTRA_LIBS)
if test "x$with_glu" != "xno"
if test "x$with_glu" != "xno"
then
then
AC_CHECK_LIB(GLU,gluLookAt,[:]
,,[$OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS])
WINE_CHECK_SONAME(GLU,gluLookAt,
,,[$OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS])
WINE_NOTICE_WITH(glu,[test "x$ac_cv_lib_
GLU_gluLookAt" != xyes
],
WINE_NOTICE_WITH(glu,[test "x$ac_cv_lib_
soname_GLU" = "x"
],
[libGLU ${notice_platform}development files not found, GLU won't be supported.])
[libGLU ${notice_platform}development files not found, GLU won't be supported.])
fi
fi
...
@@ -1167,7 +1167,7 @@ without X support, which probably isn't what you want. You will need
...
@@ -1167,7 +1167,7 @@ without X support, which probably isn't what you want. You will need
to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.],
to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.],
[enable_winex11_drv])
[enable_winex11_drv])
test "x$ac_cv_lib_
GLU_gluLookAt" != xyes
&& enable_glu32=${enable_glu32:-no}
test "x$ac_cv_lib_
soname_GLU" = "x"
&& enable_glu32=${enable_glu32:-no}
dnl **** Check for OpenCL ****
dnl **** Check for OpenCL ****
if test "$ac_cv_header_CL_cl_h" = "yes"
if test "$ac_cv_header_CL_cl_h" = "yes"
...
...
dlls/glu32/Makefile.in
View file @
3558acac
MODULE
=
glu32.dll
MODULE
=
glu32.dll
IMPORTLIB
=
glu32
IMPORTLIB
=
glu32
EXTRAINCL
=
$(X_CFLAGS)
EXTRALIBS
=
-lGLU
$(OPENGL_LIBS)
$(X_LIBS)
$(X_EXTRA_LIBS)
C_SRCS
=
\
C_SRCS
=
\
glu.c
glu.c
dlls/glu32/glu.c
View file @
3558acac
This diff is collapsed.
Click to expand it.
include/config.h.in
View file @
3558acac
...
@@ -1412,6 +1412,9 @@
...
@@ -1412,6 +1412,9 @@
/* Define to the soname of the libGL library. */
/* Define to the soname of the libGL library. */
#undef SONAME_LIBGL
#undef SONAME_LIBGL
/* Define to the soname of the libGLU library. */
#undef SONAME_LIBGLU
/* Define to the soname of the libgnutls library. */
/* Define to the soname of the libgnutls library. */
#undef SONAME_LIBGNUTLS
#undef SONAME_LIBGNUTLS
...
...
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