common/autoconf/generated-configure.sh
changeset 28908 fc8fe39b34cf
parent 28907 769bc76d1f2c
parent 28809 6481e27e00ee
child 28909 58d622f06630
equal deleted inserted replaced
28907:769bc76d1f2c 28908:fc8fe39b34cf
   990 CHMOD
   990 CHMOD
   991 CAT
   991 CAT
   992 BASH
   992 BASH
   993 BASENAME
   993 BASENAME
   994 DATE_WHEN_CONFIGURED
   994 DATE_WHEN_CONFIGURED
       
   995 ORIGINAL_PATH
   995 CONFIGURE_COMMAND_LINE
   996 CONFIGURE_COMMAND_LINE
   996 target_alias
   997 target_alias
   997 host_alias
   998 host_alias
   998 build_alias
   999 build_alias
   999 LIBS
  1000 LIBS
  4389 # definitions. It is replaced with custom functionality when building
  4390 # definitions. It is replaced with custom functionality when building
  4390 # custom sources.
  4391 # custom sources.
  4391 #CUSTOM_AUTOCONF_INCLUDE
  4392 #CUSTOM_AUTOCONF_INCLUDE
  4392 
  4393 
  4393 # Do not change or remove the following line, it is needed for consistency checks:
  4394 # Do not change or remove the following line, it is needed for consistency checks:
  4394 DATE_WHEN_GENERATED=1423144508
  4395 DATE_WHEN_GENERATED=1423504354
  4395 
  4396 
  4396 ###############################################################################
  4397 ###############################################################################
  4397 #
  4398 #
  4398 # Initialization / Boot-strapping
  4399 # Initialization / Boot-strapping
  4399 #
  4400 #
  4421 
  4422 
  4422 
  4423 
  4423 # Basic initialization that must happen first of all in the normal process.
  4424 # Basic initialization that must happen first of all in the normal process.
  4424 
  4425 
  4425   # Save the original command line. This is passed to us by the wrapper configure script.
  4426   # Save the original command line. This is passed to us by the wrapper configure script.
       
  4427 
       
  4428   # Save the path variable before it gets changed
       
  4429   ORIGINAL_PATH="$PATH"
  4426 
  4430 
  4427   DATE_WHEN_CONFIGURED=`LANG=C date`
  4431   DATE_WHEN_CONFIGURED=`LANG=C date`
  4428 
  4432 
  4429   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
  4433   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
  4430 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
  4434 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
 27522 $as_echo "present but broken" >&6; }
 27526 $as_echo "present but broken" >&6; }
 27523       as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5
 27527       as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5
 27524     else
 27528     else
 27525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 27529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 27526 $as_echo "ok" >&6; }
 27530 $as_echo "ok" >&6; }
 27527       # Remove any trailing "\" and " " from the variables.
 27531       # Remove any trailing "\" ";" and " " from the variables.
 27528       VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'`
 27532       VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'`
 27529       VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'`
 27533       VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'`
 27530       VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'`
 27534       VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'`
 27531       WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'`
 27535       WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'`
 27532       WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'`
 27536       WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'`
 27533       # Remove any paths containing # (typically F#) as that messes up make. This
 27537       # Remove any paths containing # (typically F#) as that messes up make. This
 27534       # is needed if visual studio was installed with F# support.
 27538       # is needed if visual studio was installed with F# support.
 27535       VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'`
 27539       VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'`
 27536 
 27540 
 27537 
 27541 
 27538 
 27542 
 27539 
 27543 
       
 27544 
       
 27545       # Convert VS_INCLUDE into SYSROOT_CFLAGS
       
 27546       OLDIFS="$IFS"
       
 27547       IFS=";"
       
 27548       for i in $VS_INCLUDE; do
       
 27549         ipath=$i
       
 27550 	IFS="$OLDIFS"
       
 27551 
       
 27552   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 27553 
       
 27554   # Input might be given as Windows format, start by converting to
       
 27555   # unix format.
       
 27556   path="$ipath"
       
 27557   new_path=`$CYGPATH -u "$path"`
       
 27558 
       
 27559   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
       
 27560   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
       
 27561   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
       
 27562   # "foo.exe" is OK but "foo" is an error.
       
 27563   #
       
 27564   # This test is therefore slightly more accurate than "test -f" to check for file precense.
       
 27565   # It is also a way to make sure we got the proper file name for the real test later on.
       
 27566   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
       
 27567   if test "x$test_shortpath" = x; then
       
 27568     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5
       
 27569 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;}
       
 27570     as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5
       
 27571   fi
       
 27572 
       
 27573   # Call helper function which possibly converts this using DOS-style short mode.
       
 27574   # If so, the updated path is stored in $new_path.
       
 27575 
       
 27576   input_path="$new_path"
       
 27577   # Check if we need to convert this using DOS-style short mode. If the path
       
 27578   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 27579   # take no chances and rewrite it.
       
 27580   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 27581   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
       
 27582   if test "x$has_forbidden_chars" != x; then
       
 27583     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 27584     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
       
 27585     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
       
 27586     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
       
 27587       # Going to short mode and back again did indeed matter. Since short mode is
       
 27588       # case insensitive, let's make it lowercase to improve readability.
       
 27589       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 27590       # Now convert it back to Unix-stile (cygpath)
       
 27591       input_path=`$CYGPATH -u "$shortmode_path"`
       
 27592       new_path="$input_path"
       
 27593     fi
       
 27594   fi
       
 27595 
       
 27596   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
       
 27597   if test "x$test_cygdrive_prefix" = x; then
       
 27598     # As a simple fix, exclude /usr/bin since it's not a real path.
       
 27599     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
       
 27600       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
       
 27601       # a path prefixed by /cygdrive for fixpath to work.
       
 27602       new_path="$CYGWIN_ROOT_PATH$input_path"
       
 27603     fi
       
 27604   fi
       
 27605 
       
 27606 
       
 27607   if test "x$path" != "x$new_path"; then
       
 27608     ipath="$new_path"
       
 27609     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5
       
 27610 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;}
       
 27611   fi
       
 27612 
       
 27613   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 27614 
       
 27615   path="$ipath"
       
 27616   has_colon=`$ECHO $path | $GREP ^.:`
       
 27617   new_path="$path"
       
 27618   if test "x$has_colon" = x; then
       
 27619     # Not in mixed or Windows style, start by that.
       
 27620     new_path=`cmd //c echo $path`
       
 27621   fi
       
 27622 
       
 27623 
       
 27624   input_path="$new_path"
       
 27625   # Check if we need to convert this using DOS-style short mode. If the path
       
 27626   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 27627   # take no chances and rewrite it.
       
 27628   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 27629   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
       
 27630   if test "x$has_forbidden_chars" != x; then
       
 27631     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 27632     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 27633   fi
       
 27634 
       
 27635 
       
 27636   windows_path="$new_path"
       
 27637   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 27638     unix_path=`$CYGPATH -u "$windows_path"`
       
 27639     new_path="$unix_path"
       
 27640   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 27641     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
       
 27642     new_path="$unix_path"
       
 27643   fi
       
 27644 
       
 27645   if test "x$path" != "x$new_path"; then
       
 27646     ipath="$new_path"
       
 27647     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5
       
 27648 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;}
       
 27649   fi
       
 27650 
       
 27651   # Save the first 10 bytes of this path to the storage, so fixpath can work.
       
 27652   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
       
 27653 
       
 27654   else
       
 27655     # We're on a unix platform. Hooray! :)
       
 27656     path="$ipath"
       
 27657     has_space=`$ECHO "$path" | $GREP " "`
       
 27658     if test "x$has_space" != x; then
       
 27659       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5
       
 27660 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;}
       
 27661       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
       
 27662     fi
       
 27663 
       
 27664     # Use eval to expand a potential ~
       
 27665     eval path="$path"
       
 27666     if test ! -f "$path" && test ! -d "$path"; then
       
 27667       as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5
       
 27668     fi
       
 27669 
       
 27670     ipath="`cd "$path"; $THEPWDCMD -L`"
       
 27671   fi
       
 27672 
       
 27673 	IFS=";"
       
 27674       	SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath"
       
 27675       done
       
 27676       # Convert VS_LIB into SYSROOT_LDFLAGS
       
 27677       for i in $VS_LIB; do
       
 27678         libpath=$i
       
 27679 	IFS="$OLDIFS"
       
 27680 
       
 27681   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 27682 
       
 27683   # Input might be given as Windows format, start by converting to
       
 27684   # unix format.
       
 27685   path="$libpath"
       
 27686   new_path=`$CYGPATH -u "$path"`
       
 27687 
       
 27688   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
       
 27689   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
       
 27690   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
       
 27691   # "foo.exe" is OK but "foo" is an error.
       
 27692   #
       
 27693   # This test is therefore slightly more accurate than "test -f" to check for file precense.
       
 27694   # It is also a way to make sure we got the proper file name for the real test later on.
       
 27695   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
       
 27696   if test "x$test_shortpath" = x; then
       
 27697     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5
       
 27698 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;}
       
 27699     as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5
       
 27700   fi
       
 27701 
       
 27702   # Call helper function which possibly converts this using DOS-style short mode.
       
 27703   # If so, the updated path is stored in $new_path.
       
 27704 
       
 27705   input_path="$new_path"
       
 27706   # Check if we need to convert this using DOS-style short mode. If the path
       
 27707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 27708   # take no chances and rewrite it.
       
 27709   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 27710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
       
 27711   if test "x$has_forbidden_chars" != x; then
       
 27712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 27713     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
       
 27714     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
       
 27715     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
       
 27716       # Going to short mode and back again did indeed matter. Since short mode is
       
 27717       # case insensitive, let's make it lowercase to improve readability.
       
 27718       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 27719       # Now convert it back to Unix-stile (cygpath)
       
 27720       input_path=`$CYGPATH -u "$shortmode_path"`
       
 27721       new_path="$input_path"
       
 27722     fi
       
 27723   fi
       
 27724 
       
 27725   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
       
 27726   if test "x$test_cygdrive_prefix" = x; then
       
 27727     # As a simple fix, exclude /usr/bin since it's not a real path.
       
 27728     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
       
 27729       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
       
 27730       # a path prefixed by /cygdrive for fixpath to work.
       
 27731       new_path="$CYGWIN_ROOT_PATH$input_path"
       
 27732     fi
       
 27733   fi
       
 27734 
       
 27735 
       
 27736   if test "x$path" != "x$new_path"; then
       
 27737     libpath="$new_path"
       
 27738     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5
       
 27739 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;}
       
 27740   fi
       
 27741 
       
 27742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 27743 
       
 27744   path="$libpath"
       
 27745   has_colon=`$ECHO $path | $GREP ^.:`
       
 27746   new_path="$path"
       
 27747   if test "x$has_colon" = x; then
       
 27748     # Not in mixed or Windows style, start by that.
       
 27749     new_path=`cmd //c echo $path`
       
 27750   fi
       
 27751 
       
 27752 
       
 27753   input_path="$new_path"
       
 27754   # Check if we need to convert this using DOS-style short mode. If the path
       
 27755   # contains just simple characters, use it. Otherwise (spaces, weird characters),
       
 27756   # take no chances and rewrite it.
       
 27757   # Note: m4 eats our [], so we need to use [ and ] instead.
       
 27758   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
       
 27759   if test "x$has_forbidden_chars" != x; then
       
 27760     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
       
 27761     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
       
 27762   fi
       
 27763 
       
 27764 
       
 27765   windows_path="$new_path"
       
 27766   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 27767     unix_path=`$CYGPATH -u "$windows_path"`
       
 27768     new_path="$unix_path"
       
 27769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 27770     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
       
 27771     new_path="$unix_path"
       
 27772   fi
       
 27773 
       
 27774   if test "x$path" != "x$new_path"; then
       
 27775     libpath="$new_path"
       
 27776     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5
       
 27777 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;}
       
 27778   fi
       
 27779 
       
 27780   # Save the first 10 bytes of this path to the storage, so fixpath can work.
       
 27781   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
       
 27782 
       
 27783   else
       
 27784     # We're on a unix platform. Hooray! :)
       
 27785     path="$libpath"
       
 27786     has_space=`$ECHO "$path" | $GREP " "`
       
 27787     if test "x$has_space" != x; then
       
 27788       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5
       
 27789 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;}
       
 27790       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
       
 27791     fi
       
 27792 
       
 27793     # Use eval to expand a potential ~
       
 27794     eval path="$path"
       
 27795     if test ! -f "$path" && test ! -d "$path"; then
       
 27796       as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5
       
 27797     fi
       
 27798 
       
 27799     libpath="`cd "$path"; $THEPWDCMD -L`"
       
 27800   fi
       
 27801 
       
 27802 	IFS=";"
       
 27803       	SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath"
       
 27804       done
       
 27805       IFS="$OLDIFS"
 27540     fi
 27806     fi
 27541   else
 27807   else
 27542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 27808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 27543 $as_echo "not found" >&6; }
 27809 $as_echo "not found" >&6; }
 27544 
 27810