Show
Ignore:
Timestamp:
11/28/08 16:41:58 (3 years ago)
Author:
farhi
Message:

now works properly in --prefix mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/tools/perl/mcstas_reconfigure.in

    r2307 r2335  
    2121 
    2222AC_INIT(McStas, X.Y.Z, www.mcstas.org) 
    23 AC_REVISION($Revision: 1.11 $) 
     23AC_REVISION($Revision: 1.12 $) 
    2424AC_COPYRIGHT([Copyright (C) 1997-2008  Copyright (C) 1997-2008, All rights reserved 
    2525Risoe National Laborartory, Roskilde, Denmark 
     
    2727This software is covered by the GNU LESSER GENERAL PUBLIC LICENSE 
    2828see file COPYING for further information]) 
     29 
     30AC_PREFIX_DEFAULT(/usr/local) 
     31test "x$prefix" = xNONE && prefix=$ac_default_prefix 
    2932 
    3033AC_ARG_WITH([cc], AC_HELP_STRING([--with-cc=c compiler], [Specify name of C compiler]), 
     
    9194fi 
    9295 
    93 AC_OUTPUT(mcstas_config.perl) 
     96AC_OUTPUT($prefix/lib/mcstas/tools/perl/mcstas_config.perl) 
    9497 
    95 chmod a+x mcstas_reconfigure 
    96 chmod a+w mcstas_config.perl 
     98chmod a+w $prefix/lib/mcstas/tools/perl/mcstas_config.perl 
    9799 
    98 echo "McStas has been reconfigured..." 
     100echo "McStas has been reconfigured in $prefix/lib/mcstas/tools/perl/mcstas_config.perl"