Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
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
Abuhujair Javed
Postgres FD Implementation
Commits
cc618f26
Commit
cc618f26
authored
Jul 15, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add search for libgetopt.a in hopes of finding getopt_long().
parent
b9104e3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
17 deletions
+77
-17
configure
configure
+67
-8
configure.in
configure.in
+10
-9
No files found.
configure
View file @
cc618f26
...
...
@@ -6045,6 +6045,65 @@ _ACEOF
fi
echo
"
$as_me
:
$LINENO
: checking for main in -lgetopt"
>
&5
echo
$ECHO_N
"checking for main in -lgetopt...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_lib_getopt_main
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-lgetopt
$LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
main ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_lib_getopt_main
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
ac_cv_lib_getopt_main
=
no
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_getopt_main
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_lib_getopt_main
"
>
&6
if
test
$ac_cv_lib_getopt_main
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LIBGETOPT 1
_ACEOF
LIBS
=
"-lgetopt
$LIBS
"
fi
# QNX:
echo
"
$as_me
:
$LINENO
: checking for main in -lunix"
>
&5
...
...
@@ -11070,7 +11129,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
GETRUSAGE
=
'getrusage.o'
GETRUSAGE
=
'
$(top_builddir)/src/backend/port/
getrusage.o'
fi
done
...
...
@@ -11149,7 +11208,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
SRANDOM
=
'srandom.o'
SRANDOM
=
'
$(top_builddir)/src/backend/port/
srandom.o'
fi
done
...
...
@@ -11228,7 +11287,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
GETHOSTNAME
=
'gethostname.o'
GETHOSTNAME
=
'
$(top_builddir)/src/backend/port/
gethostname.o'
fi
done
...
...
@@ -11307,7 +11366,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
MISSING_RANDOM
=
'random.o'
MISSING_RANDOM
=
'
$(top_builddir)/src/backend/port/
random.o'
fi
done
...
...
@@ -11386,7 +11445,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
INET_ATON
=
'inet_aton.o'
INET_ATON
=
'
$(top_builddir)/src/backend/port/
inet_aton.o'
fi
done
...
...
@@ -11623,7 +11682,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
STRTOL
=
'strtol.o'
STRTOL
=
'
$(top_builddir)/src/backend/port/
strtol.o'
fi
done
...
...
@@ -11702,7 +11761,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
STRTOUL
=
'strtoul.o'
STRTOUL
=
'
$(top_builddir)/src/backend/port/
strtoul.o'
fi
done
...
...
@@ -11781,7 +11840,7 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
STRCASECMP
=
'strcasecmp.o'
STRCASECMP
=
'
$(top_builddir)/src/backend/port/
strcasecmp.o'
fi
done
...
...
configure.in
View file @
cc618f26
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.18
8 2002/07/15 21:34:04
momjian Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.18
9 2002/07/15 22:41:45
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -696,6 +696,7 @@ AC_CHECK_LIB(BSD, main)
AC_CHECK_LIB(gen, main)
AC_CHECK_LIB(PW, main)
AC_CHECK_LIB(resolv, main)
AC_CHECK_LIB(getopt, main)
# QNX:
AC_CHECK_LIB([[unix]], main)
AC_SEARCH_LIBS(crypt, crypt)
...
...
@@ -903,25 +904,25 @@ fi
AC_SUBST(ISINF)
AC_CHECK_FUNCS(getrusage, [], GETRUSAGE='getrusage.o')
AC_CHECK_FUNCS(getrusage, [], GETRUSAGE='
$(top_builddir)/src/backend/port/
getrusage.o')
AC_SUBST(GETRUSAGE)
AC_CHECK_FUNCS(srandom, [], SRANDOM='srandom.o')
AC_CHECK_FUNCS(srandom, [], SRANDOM='
$(top_builddir)/src/backend/port/
srandom.o')
AC_SUBST(SRANDOM)
AC_CHECK_FUNCS(gethostname, [], GETHOSTNAME='gethostname.o')
AC_CHECK_FUNCS(gethostname, [], GETHOSTNAME='
$(top_builddir)/src/backend/port/
gethostname.o')
AC_SUBST(GETHOSTNAME)
AC_CHECK_FUNCS(random, [], MISSING_RANDOM='random.o')
AC_CHECK_FUNCS(random, [], MISSING_RANDOM='
$(top_builddir)/src/backend/port/
random.o')
AC_SUBST(MISSING_RANDOM)
AC_CHECK_FUNCS(inet_aton, [], INET_ATON='inet_aton.o')
AC_CHECK_FUNCS(inet_aton, [], INET_ATON='
$(top_builddir)/src/backend/port/
inet_aton.o')
AC_SUBST(INET_ATON)
AC_CHECK_FUNCS(strerror, [], STRERROR='$(top_builddir)/src/backend/port/strerror.o')
AC_SUBST(STRERROR)
AC_CHECK_FUNCS(strdup, [], STRDUP='$(top_builddir)/src/utils/strdup.o')
AC_SUBST(STRDUP)
AC_CHECK_FUNCS(strtol, [], STRTOL='strtol.o')
AC_CHECK_FUNCS(strtol, [], STRTOL='
$(top_builddir)/src/backend/port/
strtol.o')
AC_SUBST(STRTOL)
AC_CHECK_FUNCS(strtoul, [], STRTOUL='strtoul.o')
AC_CHECK_FUNCS(strtoul, [], STRTOUL='
$(top_builddir)/src/backend/port/
strtoul.o')
AC_SUBST(STRTOUL)
AC_CHECK_FUNCS(strcasecmp, [], STRCASECMP='strcasecmp.o')
AC_CHECK_FUNCS(strcasecmp, [], STRCASECMP='
$(top_builddir)/src/backend/port/
strcasecmp.o')
AC_SUBST(STRCASECMP)
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
...
...
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