Changeset 3210 in Sophya for trunk/SophyaLib/BuildMgr/configure
- Timestamp:
- Apr 11, 2007, 3:23:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BuildMgr/configure
r3202 r3210 2 2 # SOPHYA configuration managment script 3 3 # C. Magneville / R. Ansari - Mai 2005 4 # Updated : 2006, Avr/Mai 2007 4 5 # Exemple: ./configure -sbase /laltmp/ansari/sbase/ -scxx cxx -extp /exp/planck/ExtLibs/Include/ \ 5 6 # -extp /exp/planck/ExtLibs/OSF1-cxx/ … … 38 39 unset incln 39 40 unset mincname 41 set compopt 40 42 unset arch64 41 43 unset sasz64 42 44 unset nofpic 45 unset nothsafe 43 46 unset boundcheck 44 47 unset sodebug 45 48 unset usefftw2 46 49 unset uselapack2 47 unset s ingleslb50 unset slballinone 48 51 while ( $#argv > 0 ) 49 52 50 53 if( "$1" == "-h" ) then 51 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] [-minc mymake.inc] ' 52 echo ' [-arch64] [-sasz64] [-nofpic] [-boundcheck] [-sodebug]' 54 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] ' 55 echo " [-minc mymake.inc] [-compopt 'cc/cxxOptions'] " 56 echo ' [-arch64] [-sasz64] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]' 53 57 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]' 54 echo ' [-noextlib -noext fits -noext fftw -noext lapack -noext astro]' 55 echo ' [-usefftw2 -uselapack2] [-singleslb]' 58 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]' 59 echo ' [-noPI] [-slballinone]' 60 echo ' [-usefftw2 -uselapack2] ' 61 echo ' (See SOPHYA manual/web pages for a detailed description of configure options)' 56 62 exit -1 57 63 endif … … 69 75 if( "$1" == "-minc" ) then 70 76 set mincname = ( $2 ) 77 shift 78 endif 79 if( "$1" == "-compopt" ) then 80 set spcompopt = ( $2 ) 71 81 shift 72 82 endif … … 97 107 end 98 108 shift 109 endif 110 if( "$1" == "-PI" ) then 111 set SOPPIOK = ( 0 0 0 ) 99 112 endif 100 113 if( "$1" == "-usefftw2" ) then … … 115 128 set uselapack2 116 129 endif 117 if( "$1" == "-s ingleslb" ) then130 if( "$1" == "-slballinone" ) then 118 131 # Pour utiliser une seule librairie libsophyaPIext.so au lieu 119 132 # des 3 libsophya.so libextsophya.so libPI.so 120 set s ingleslb133 set slballinone 121 134 endif 122 135 # Decodage options pour flags de machdefs.h … … 130 143 if( "$1" == "-nofpic" ) then 131 144 set nofpic 145 endif 146 if( "$1" == "-nothsafe" ) then 147 set nothsafe 132 148 endif 133 149 if( "$1" == "-boundcheck" ) then … … 396 412 397 413 echo " " >> $mfile 398 cat $mincname >> $mfile 414 cat $mincname >> $mfile 415 416 # --- Gestion des flags modifiants les options de compilation et liste de librairies (par sed) 417 set sprgfile = $TMPDIR/compop.scom 418 set scmd = "s/CNFPHFLF/ $compopt/g" 419 if ($?arch64) then 420 set a64cf = ' ' 421 if ( "$sname" == "IRIX64" ) && ("$SOPHYACXX" == "CC" ) set a64cf = '-64' 422 if ( "$sname" == "AIX" ) && ( ("$SOPHYACXX" == "xlC" ) || ("$SOPHYACXX" == "xlc" ) ) 423 set a64cf = '-q64' 424 set scmd = "s/CNFPHFLF/$a64cf $compopt/g" 425 endif 426 echo $scmd > $sprgfile 427 if ( $?nofpic ) echo "s/-fPIC/ /g" >> $sprgfile 428 if( $?slballinone ) then 429 echo "s/-lPI -lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile 430 echo "s/-lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile 431 endif 432 set scmd = "sed -f $sprgfile" 433 set mftmp = $TMPDIR/sopmake.inc 434 cp $mfile $mftmp 435 sed -f $sprgfile $mftmp > $mfile 436 rm -f $sprgfile $mftmp 437 # --- FIN de gestion des flags modifiants les options de compilation (par sed) 399 438 400 439 rm -f $mfile:t … … 418 457 echo "#endif" >> $mdefname 419 458 459 ## Definition de flags de compilation en fonction des options de configure 420 460 if ( $?arch64 ) echo "#define SO_ARCH64 1" >> $mdefname 461 if ( $?sasz64 ) echo "#define SO_SASIZET64 1" >> $mdefname 421 462 if ( $?nofpic ) echo "#define SO_NOFPIC 1" >> $mdefname 422 if ( $? sasz64 ) echo "#define SO_SASIZET641" >> $mdefname463 if ( $?nothsafe ) echo "#define SO_NOTHSAFE 1" >> $mdefname 423 464 if ( $?boundcheck ) echo "#define SO_BOUNDCHECKING 1" >> $mdefname 424 465 if ( $?sodebug ) echo "#define SOPHYA_DEBUG 1" >> $mdefname 425 466 426 467 if ( "$sname" == "IRIX64" ) then 427 # SGI_ARCH64 : compile avec -64 (en 64 bits)428 echo "#define SGI_ARCH64 1 /* Compile avec -64 */" >> $mdefname429 468 if ( "$SOPHYACXX" == "CC" ) then 430 469 # __SGICC__ : flag indiquant que c'est le compilo CC de SGI … … 478 517 echo " " >> $sinc/sspvflags.h 479 518 echo "/*------ Use of single shared lib for SOPHYA+extlibs+PI ---- */" >> $sinc/sspvflags.h 480 if( $?s ingleslb) then481 echo "#define S INGLESLB_SOPHYA_PI_EXT" >> $sinc/sspvflags.h519 if( $?slballinone ) then 520 echo "#define SO_SLBALLINONE " >> $sinc/sspvflags.h 482 521 endif 483 522 echo " " >> $sinc/sspvflags.h … … 516 555 echo " 7.c/ Creating $objlistname " 517 556 rm -f $objlistname ; touch $objlistname 518 foreach d ( $SOPPI ) 557 set i = 0 558 while ( $i < $#SOPPI ) 559 @ i += 1 560 set d = $SOPPI[$i] 519 561 rm -f $sconf/$d.conf 562 if( $SOPPIOK[$i] <= 0 ) continue 520 563 if ( ! -d ../$d ) continue 521 564 cat ../$d/objlist.list >> $objlistname
Note:
See TracChangeset
for help on using the changeset viewer.