File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -16630,8 +16630,23 @@ esac
1663016630
1663116631fi
1663216632
16633- # similarly, use system's getopt_long() only if system provides struct option.
16634- if test x"$ac_cv_type_struct_option" = xyes ; then
16633+ # Similarly, use system's getopt_long() only if system provides struct option.
16634+ # Solaris' getopt() doesn't do what we want for long options, so always use
16635+ # our versions on that platform.
16636+ if test "$PORTNAME" = "solaris"; then
16637+ case " $LIBOBJS " in
16638+ *" getopt.$ac_objext "* ) ;;
16639+ *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16640+ ;;
16641+ esac
16642+
16643+ case " $LIBOBJS " in
16644+ *" getopt_long.$ac_objext "* ) ;;
16645+ *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16646+ ;;
16647+ esac
16648+
16649+ elif test x"$ac_cv_type_struct_option" = xyes ; then
1663516650
1663616651for ac_func in getopt_long
1663716652do
Original file line number Diff line number Diff line change 11dnl Process this file with autoconf to produce a configure script.
2- dnl $PostgreSQL: pgsql/configure.in,v 1.551 2008/02/19 01: 05:28 momjian Exp $
2+ dnl $PostgreSQL: pgsql/configure.in,v 1.552 2008/02/24 05:21:54 tgl Exp $
33dnl
44dnl Developers, please strive to achieve this order:
55dnl
@@ -1095,8 +1095,13 @@ else
10951095 AC_LIBOBJ(getaddrinfo)
10961096fi
10971097
1098- # similarly, use system's getopt_long() only if system provides struct option.
1099- if test x"$ac_cv_type_struct_option" = xyes ; then
1098+ # Similarly, use system's getopt_long() only if system provides struct option.
1099+ # Solaris' getopt() doesn't do what we want for long options, so always use
1100+ # our versions on that platform.
1101+ if test "$PORTNAME" = "solaris"; then
1102+ AC_LIBOBJ(getopt)
1103+ AC_LIBOBJ(getopt_long)
1104+ elif test x"$ac_cv_type_struct_option" = xyes ; then
11001105 AC_REPLACE_FUNCS([getopt_long])
11011106else
11021107 AC_LIBOBJ(getopt_long)
You can’t perform that action at this time.
0 commit comments