Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1a6f0f70
Commit
1a6f0f70
authored
Oct 11, 2008
by
unknown
Committed by
Build Team
Oct 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More portable sh in configure script
parent
df1dc099
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
27 deletions
+37
-27
configure.in
configure.in
+37
-27
No files found.
configure.in
View file @
1a6f0f70
...
@@ -405,12 +405,15 @@ dnl Find paths to some shell programs
...
@@ -405,12 +405,15 @@ dnl Find paths to some shell programs
AC_PATH_PROG
(
LN,
ln
,
ln
)
AC_PATH_PROG
(
LN,
ln
,
ln
)
# This must be able to take a -f flag like normal unix ln.
# This must be able to take a -f flag like normal unix ln.
AC_PATH_PROG
(
LN_CP_F,
ln
,
ln
)
AC_PATH_PROG
(
LN_CP_F,
ln
,
ln
)
if
!
(
expr
"
$SYSTEM_TYPE
"
:
".*netware.*"
>
/dev/null
)
;
then
case
$SYSTEM_TYPE
in
# If ln -f does not exists use -s (AFS systems)
*
netware
*
)
;;
if
test
-n
"
$LN_CP_F
"
;
then
*
)
LN_CP_F
=
"
$LN_CP_F
-s"
# If ln -f does not exists use -s (AFS systems)
fi
if
test
-n
"
$LN_CP_F
"
;
then
fi
LN_CP_F
=
"
$LN_CP_F
-s"
fi
;;
esac
AC_PATH_PROG
(
MV,
mv
,
mv
)
AC_PATH_PROG
(
MV,
mv
,
mv
)
AC_PATH_PROG
(
RM,
rm
,
rm
)
AC_PATH_PROG
(
RM,
rm
,
rm
)
...
@@ -1642,14 +1645,16 @@ else
...
@@ -1642,14 +1645,16 @@ else
OPTIMIZE_CXXFLAGS
=
"-O"
OPTIMIZE_CXXFLAGS
=
"-O"
fi
fi
if
expr
"
$SYSTEM_TYPE
"
:
".*netware.*"
>
/dev/null
;
then
case
$SYSTEM_TYPE
in
DEBUG_CFLAGS
=
"-g -DDEBUG -sym internal,codeview4"
*
netware
*
)
DEBUG_CXXFLAGS
=
"-g -DDEBUG -sym internal,codeview4"
DEBUG_CFLAGS
=
"-g -DDEBUG -sym internal,codeview4"
DEBUG_OPTIMIZE_CC
=
"-DDEBUG"
DEBUG_CXXFLAGS
=
"-g -DDEBUG -sym internal,codeview4"
DEBUG_OPTIMIZE_CXX
=
"-DDEBUG"
DEBUG_OPTIMIZE_CC
=
"-DDEBUG"
OPTIMIZE_CFLAGS
=
"-O3 -DNDEBUG"
DEBUG_OPTIMIZE_CXX
=
"-DDEBUG"
OPTIMIZE_CXXFLAGS
=
"-O3 -DNDEBUG"
OPTIMIZE_CFLAGS
=
"-O3 -DNDEBUG"
fi
OPTIMIZE_CXXFLAGS
=
"-O3 -DNDEBUG"
;;
esac
# If the user specified CFLAGS, we won't add any optimizations
# If the user specified CFLAGS, we won't add any optimizations
if
test
-n
"
$SAVE_CFLAGS
"
if
test
-n
"
$SAVE_CFLAGS
"
...
@@ -1915,15 +1920,18 @@ MYSQL_TZNAME
...
@@ -1915,15 +1920,18 @@ MYSQL_TZNAME
# Do the c++ compiler have a bool type
# Do the c++ compiler have a bool type
MYSQL_CXX_BOOL
MYSQL_CXX_BOOL
# Check some common bugs with gcc 2.8.# on sparc
# Check some common bugs with gcc 2.8.# on sparc
if
!
(
expr
"
$SYSTEM_TYPE
"
:
".*netware.*"
>
/dev/null
)
;
then
case
$SYSTEM_TYPE
in
MYSQL_CHECK_LONGLONG_TO_FLOAT
*
netware
*
)
;;
if
test
"
$ac_cv_conv_longlong_to_float
"
!=
"yes"
*
)
then
MYSQL_CHECK_LONGLONG_TO_FLOAT
AC_MSG_ERROR
([
Your compiler cannot convert a longlong value to a float!
if
test
"
$ac_cv_conv_longlong_to_float
"
!=
"yes"
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
then
again]
)
AC_MSG_ERROR
([
Your compiler cannot convert a longlong value to a float!
fi
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
fi
again]
)
fi
;;
esac
AC_CHECK_TYPES
([
sigset_t, off_t],
[]
,
[]
,
[
#include <sys/types.h>])
AC_CHECK_TYPES
([
sigset_t, off_t],
[]
,
[]
,
[
#include <sys/types.h>])
AC_CHECK_TYPES
([
size_t],
[]
,
[]
,
[
#include <stdio.h>])
AC_CHECK_TYPES
([
size_t],
[]
,
[]
,
[
#include <stdio.h>])
AC_CHECK_TYPES
([
u_int32_t]
)
AC_CHECK_TYPES
([
u_int32_t]
)
...
@@ -2549,11 +2557,12 @@ readline_h_ln_cmd=""
...
@@ -2549,11 +2557,12 @@ readline_h_ln_cmd=""
readline_link
=
""
readline_link
=
""
want_to_use_readline
=
"no"
want_to_use_readline
=
"no"
if
expr
"
$SYSTEM_TYPE
"
:
".*netware.*"
>
/dev/null
case
$SYSTEM_TYPE
in
then
*
netware
*
)
# For NetWare, do not need readline
# For NetWare, do not need readline
echo
"Skipping readline"
echo
"Skipping readline"
else
;;
*
)
if
[
test
"
$with_libedit
"
=
"yes"
]
||
[
test
"
$with_libedit
"
=
"undefined"
]
&&
[
test
"
$with_readline
"
=
"undefined"
]
if
[
test
"
$with_libedit
"
=
"yes"
]
||
[
test
"
$with_libedit
"
=
"undefined"
]
&&
[
test
"
$with_readline
"
=
"undefined"
]
then
then
readline_topdir
=
"cmd-line-utils"
readline_topdir
=
"cmd-line-utils"
...
@@ -2606,7 +2615,8 @@ else
...
@@ -2606,7 +2615,8 @@ else
be built with libreadline. Please use --with-libedit to use
be built with libreadline. Please use --with-libedit to use
the bundled version of libedit instead.])
the bundled version of libedit instead.])
fi
fi
fi
;;
esac
AC_SUBST(readline_dir)
AC_SUBST(readline_dir)
AC_SUBST(readline_topdir)
AC_SUBST(readline_topdir)
...
...
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