Skip to content
Permalink
Browse files

configure: Add --without-startupitems option

This controls the value of the option startupitem_install in
macports.conf. It is meant to simplify a secondary installation.
  • Loading branch information
raimue committed Mar 28, 2018
1 parent 0f7d9e1 commit 8e663b9d62c69d9138989f4fc022beecfed1af4b
Showing with 48 additions and 1 deletion.
  1. +20 −0 aclocal.m4
  2. +26 −0 configure
  3. +1 −0 configure.ac
  4. +1 −1 doc/macports.conf.in
@@ -766,6 +766,26 @@ AC_DEFUN([MP_PATH_FRAMEWORKS],[
prefix=$oldprefix
])

# MP_CHECK_STARTUPITEMS
#-------------------------------------------------
AC_DEFUN([MP_CHECK_STARTUPITEMS],[
dnl if the user specifies --without-startupitems,
dnl set "startupitem_install no" in macports.conf
AC_ARG_WITH(startupitems, [AS_HELP_STRING([--without-startupitems],[set "startupitem_install no" in macports.conf])], [with_startupitems=$withval], [with_startupitems=yes] )
AC_MSG_CHECKING([for startupitem_install])
if test "x$with_startupitems" != "xno" ; then
startupitem_install="#startupitem_install yes"
else
startupitem_install="startupitem_install no"
fi
AC_MSG_RESULT([$with_startupitems])
AC_SUBST(startupitem_install)
])


# MP_UNIVERSAL_OPTIONS
#---------------------------------------
AC_DEFUN([MP_UNIVERSAL_OPTIONS],[
@@ -673,6 +673,7 @@ GREP
CPP
UNIVERSAL_ARCHFLAGS
UNIVERSAL_ARCHS
startupitem_install
MPFRAMEWORKSDIR
MPAPPLICATIONSDIR
DSTMODE
@@ -840,6 +841,7 @@ with_directory_mode
with_shared_directory
with_applications_dir
with_frameworks_dir
with_startupitems
with_universal_archs
enable_readline
with_curlprefix
@@ -1517,6 +1519,7 @@ Optional Packages:
--with-shared-directory use 0775 permissions for installed directories
--with-applications-dir applications installation directory
--with-frameworks-dir frameworks installation directory
--without-startupitems set "startupitem_install no" in macports.conf
--with-universal-archs="CPU"
universal CPU architectures (space separated)
--with-curlprefix base directory for the curl install ('/usr', '/usr/local', ...)
@@ -6693,6 +6696,29 @@ $as_echo "$MPFRAMEWORKSDIR" >&6; }
prefix=$oldprefix



# Check whether --with-startupitems was given.
if test "${with_startupitems+set}" = set; then :
withval=$with_startupitems; with_startupitems=$withval
else
with_startupitems=yes
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for startupitem_install" >&5
$as_echo_n "checking for startupitem_install... " >&6; }

if test "x$with_startupitems" != "xno" ; then
startupitem_install="#startupitem_install yes"
else
startupitem_install="startupitem_install no"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_startupitems" >&5
$as_echo "$with_startupitems" >&6; }



# Check for universal options


@@ -228,6 +228,7 @@ MP_SHARED_DIRECTORY
# Check for default directories
MP_PATH_APPLICATIONS
MP_PATH_FRAMEWORKS
MP_CHECK_STARTUPITEMS

# Check for universal options
MP_UNIVERSAL_OPTIONS
@@ -131,7 +131,7 @@ universal_archs @UNIVERSAL_ARCHS@
# "no", symlinks will not be created; otherwise, symlinks will be placed
# in /Library/LaunchDaemons or /Library/LaunchAgents as appropriate.
# This setting only applies when building ports from source.
#startupitem_install yes
@startupitem_install@

# Whether to allow ports to automatically load their StartupItems.
# If set to "no", StartupItems will never be loaded unless the user

0 comments on commit 8e663b9

Please sign in to comment.
You can’t perform that action at this time.