1 #
2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
319 if test "x$enable_$2" != x; then
320 AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])
321
322 if test "x$3" != x; then
323 AC_MSG_WARN([$3])
324 fi
325
326 fi
327 ])
328
329 AC_DEFUN_ONCE([BASIC_INIT],
330 [
331 # Save the original command line. This is passed to us by the wrapper configure script.
332 AC_SUBST(CONFIGURE_COMMAND_LINE)
333 # Save the path variable before it gets changed
334 ORIGINAL_PATH="$PATH"
335 AC_SUBST(ORIGINAL_PATH)
336 DATE_WHEN_CONFIGURED=`LANG=C date`
337 AC_SUBST(DATE_WHEN_CONFIGURED)
338 AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
339 AC_MSG_NOTICE([configure script generated at timestamp $DATE_WHEN_GENERATED.])
340 ])
341
342 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
343 # $1: variable to check
344 AC_DEFUN([BASIC_CHECK_NONEMPTY],
345 [
346 if test "x[$]$1" = x; then
347 AC_MSG_ERROR([Could not find required tool for $1])
348 fi
349 ])
350
351 # Check that there are no unprocessed overridden variables left.
352 # If so, they are an incorrect argument and we will exit with an error.
353 AC_DEFUN([BASIC_CHECK_LEFTOVER_OVERRIDDEN],
354 [
355 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
356 # Replace the separating ! with spaces before presenting for end user.
357 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
358 AC_MSG_WARN([The following variables might be unknown to configure: $unknown_variables])
359 fi
|
1 #
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
319 if test "x$enable_$2" != x; then
320 AC_MSG_WARN([Option --enable-$1 is deprecated and will be ignored.])
321
322 if test "x$3" != x; then
323 AC_MSG_WARN([$3])
324 fi
325
326 fi
327 ])
328
329 AC_DEFUN_ONCE([BASIC_INIT],
330 [
331 # Save the original command line. This is passed to us by the wrapper configure script.
332 AC_SUBST(CONFIGURE_COMMAND_LINE)
333 # Save the path variable before it gets changed
334 ORIGINAL_PATH="$PATH"
335 AC_SUBST(ORIGINAL_PATH)
336 DATE_WHEN_CONFIGURED=`LANG=C date`
337 AC_SUBST(DATE_WHEN_CONFIGURED)
338 AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
339 ])
340
341 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
342 # $1: variable to check
343 AC_DEFUN([BASIC_CHECK_NONEMPTY],
344 [
345 if test "x[$]$1" = x; then
346 AC_MSG_ERROR([Could not find required tool for $1])
347 fi
348 ])
349
350 # Check that there are no unprocessed overridden variables left.
351 # If so, they are an incorrect argument and we will exit with an error.
352 AC_DEFUN([BASIC_CHECK_LEFTOVER_OVERRIDDEN],
353 [
354 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
355 # Replace the separating ! with spaces before presenting for end user.
356 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
357 AC_MSG_WARN([The following variables might be unknown to configure: $unknown_variables])
358 fi
|