I'm not sure we should disable building the compiler directly from the top
of src directory totally or fix the issues found before.
GCC recommends to build the compiler from a separated directory but it still
can be built from the top of src directory.

Any other comments?

2010/10/21 Wu Yongchong <wuyongch...@gmail.com>

> Hi
> Can  a gatekeeper help review this .
>
> Most beginner will get this common issue when configure and make open64.
> I make a small change in the configure file,  the configuration will
> fail when configure
> under the top of trunk.
>
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 3369)
> +++ configure.ac        (working copy)
> @@ -424,4 +424,9 @@
>  # breaks "configure --help=recursive".  See autoconf documentation.
>  AC_CONFIG_SUBDIRS(osprey-gcc-4.2.0)
>
> +AC_CHECK_FILE(${PWD}/configure,
> +                 [AC_MSG_ERROR([do not configure under the top of source
> dir.
> +You can create a directory like "obj", configure and build under this
> directory   ])],
> +                 [])
> +
>  AC_OUTPUT
>
> Index: configure
> ===================================================================
> --- configure   (revision 3369)
> +++ configure   (working copy)
> @@ -1703,6 +1703,33 @@
>  subdirs="$subdirs osprey-gcc-4.2.0"
>
>
> +as_ac_File=`echo "ac_cv_file_${PWD}/configure" | $as_tr_sh`
> +echo "$as_me:$LINENO: checking for ${PWD}/configure" >&5
> +echo $ECHO_N "checking for ${PWD}/configure... $ECHO_C" >&6
> +if eval "test \"\${$as_ac_File+set}\" = set"; then
> +  echo $ECHO_N "(cached) $ECHO_C" >&6
> +else
> +  test "$cross_compiling" = yes &&
> +  { { echo "$as_me:$LINENO: error: cannot check for file existence
> when cross compiling" >&5
> +echo "$as_me: error: cannot check for file existence when cross
> compiling" >&2;}
> +   { (exit 1); exit 1; }; }
> +if test -r "${PWD}/configure"; then
> +  eval "$as_ac_File=yes"
> +else
> +  eval "$as_ac_File=no"
> +fi
> +fi
> +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
> +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
> +if test `eval echo '${'$as_ac_File'}'` = yes; then
> +  { { echo "$as_me:$LINENO: error: do not configure under the top of
> source dir.
> +You can create a directory like \"obj\", configure and build under
> this directory   " >&5
> +echo "$as_me: error: do not configure under the top of source dir.
> +You can create a directory like \"obj\", configure and build under
> this directory   " >&2;}
> +   { (exit 1); exit 1; }; }
> +fi
> +
> +
>  cat >confcache <<\_ACEOF
>  # This file is a shell script that caches the results of configure
>  # tests run on this system so they can be shared between configure
>
>
> --
> yongchong
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Open64-devel mailing list
> Open64-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/open64-devel
>



-- 
Regards,
Lai Jian-Xin
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to